{"type": "func", "start": 4298662080, "end": 4298662262, "name": "EndPortalObject::updateColors", "pseudocode": "// \n// EndPortalObject::updateColors from 0x1003860c0 to 0x100386176 (182 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::createObjectsFromSetupFinished @ 0x100084476\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:29:10 +0000\n// \n\n__int64 __fastcall EndPortalObject::updateColors(__int64 a1, int a2, double a3, __m128 a4, __m128 a5, __m128 a6)\n{\n  __int64 v7; // rdi\n  __int64 v8; // rdi\n  __m128 v10; // [rsp+0h] [rbp-30h]\n  __m128 v11; // [rsp+10h] [rbp-20h] BYREF\n  __int16 v12; // [rsp+24h] [rbp-Ch] BYREF\n  char v13; // [rsp+26h] [rbp-Ah]\n\n  v12 = a2;\n  v13 = BYTE2(a2);\n  v7 = *(_QWORD *)(a1 + 776);\n  if ( v7 )\n  {\n    a6.f32[0] = (float)(unsigned __int8)a2 / 255.0;\n    a4.f32[0] = (float)BYTE1(a2) / 255.0;\n    a5.f32[0] = (float)((a2 & 0xFF0000u) >> 16) / 255.0;\n    v10 = _mm_movelh_ps(_mm_insert_ps(a6, a4, 16), _mm_blend_ps(a5, (__m128)xmmword_100A03610, 14));\n    v11 = v10;\n    (*(void (__fastcall **)(__int64, __m128 *))(*(_QWORD *)v7 + 1360LL))(v7, &v11);\n    v8 = *(_QWORD *)(a1 + 776);\n    v11 = v10;\n    (*(void (__fastcall **)(__int64, __m128 *))(*(_QWORD *)v8 + 1392LL))(v8, &v11);\n  }\n  return (*(__int64 (__fastcall **)(_QWORD, __int16 *))(**(_QWORD **)(a1 + 1352) + 960LL))(*(_QWORD *)(a1 + 1352), &v12);\n}", "assembly": "; \n; EndPortalObject::updateColors from 0x1003860c0 to 0x100386176 (182 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::createObjectsFromSetupFinished @ 0x100084476\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:29:10 +0000\n; \npush    rbp                                                            ; +0x0, 0x1003860c0\nmov     rbp, rsp                                                       ; +0x1, 0x1003860c1\npush    rbx                                                            ; +0x4, 0x1003860c4\nsub     rsp, 28h                                                       ; +0x5, 0x1003860c5\nmov     eax, esi                                                       ; +0x9, 0x1003860c9\nmov     rbx, rdi                                                       ; +0xb, 0x1003860cb\nmov     [rbp+var_C], ax                                                ; +0xe, 0x1003860ce\nmov     ecx, esi                                                       ; +0x12, 0x1003860d2\nshr     ecx, 10h                                                       ; +0x14, 0x1003860d4\nmov     [rbp+var_A], cl                                                ; +0x17, 0x1003860d7\nmov     rdi, [rdi+308h]                                                ; +0x1a, 0x1003860da\ntest    rdi, rdi                                                       ; +0x21, 0x1003860e1\njz      short loc_10038615B                                            ; +0x24, 0x1003860e4\nmov     ecx, eax                                                       ; +0x26, 0x1003860e6\nand     ecx, 0FF0000h                                                  ; +0x28, 0x1003860e8\nshr     ecx, 10h                                                       ; +0x2e, 0x1003860ee\nmovzx   edx, al                                                        ; +0x31, 0x1003860f1\ncvtsi2ss xmm3, edx                                                     ; +0x34, 0x1003860f4\nmovss   xmm0, cs:dword_100A03F80                                       ; +0x38, 0x1003860f8\nmovzx   eax, ah                                                        ; +0x40, 0x100386100\ncvtsi2ss xmm1, eax                                                     ; +0x43, 0x100386103\ndivss   xmm3, xmm0                                                     ; +0x47, 0x100386107\ncvtsi2ss xmm2, ecx                                                     ; +0x4b, 0x10038610b\ndivss   xmm1, xmm0                                                     ; +0x4f, 0x10038610f\ndivss   xmm2, xmm0                                                     ; +0x53, 0x100386113\nblendps xmm2, cs:xmmword_100A03610, 0Eh                                ; +0x57, 0x100386117\ninsertps xmm3, xmm1, 10h                                               ; +0x61, 0x100386121\nmovlhps xmm3, xmm2                                                     ; +0x67, 0x100386127\nmovaps  [rbp+var_30], xmm3                                             ; +0x6a, 0x10038612a\nmovups  [rbp+var_20], xmm3                                             ; +0x6e, 0x10038612e\nmov     rax, [rdi]                                                     ; +0x72, 0x100386132\nlea     rsi, [rbp+var_20]                                              ; +0x75, 0x100386135\ncall    qword ptr [rax+550h]                                           ; +0x79, 0x100386139\nmov     rdi, [rbx+308h]                                                ; +0x7f, 0x10038613f\nmovaps  xmm0, [rbp+var_30]                                             ; +0x86, 0x100386146\nmovups  [rbp+var_20], xmm0                                             ; +0x8a, 0x10038614a\nmov     rax, [rdi]                                                     ; +0x8e, 0x10038614e\nlea     rsi, [rbp+var_20]                                              ; +0x91, 0x100386151\ncall    qword ptr [rax+570h]                                           ; +0x95, 0x100386155\nmov     rdi, [rbx+548h]                                                ; +0x9b, 0x10038615b\nmov     rax, [rdi]                                                     ; +0xa2, 0x100386162\nlea     rsi, [rbp+var_C]                                               ; +0xa5, 0x100386165\ncall    qword ptr [rax+3C0h]                                           ; +0xa9, 0x100386169\nadd     rsp, 28h                                                       ; +0xaf, 0x10038616f\npop     rbx                                                            ; +0xb3, 0x100386173\npop     rbp                                                            ; +0xb4, 0x100386174\nretn                                                                   ; +0xb5, 0x100386175", "xrefs": ["PlayLayer::createObjectsFromSetupFinished @ 0x100084476"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}