{"type": "func", "start": 4301897264, "end": 4301897499, "name": "GameObject::updateMainColor", "pseudocode": "// \n// GameObject::updateMainColor from 0x10069be30 to 0x10069bf1b (235 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::updateVisibility @ 0x100084e73\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:35:16 +0000\n// \n\n__int64 __fastcall GameObject::updateMainColor(__int64 a1)\n{\n  __int64 v1; // rax\n  int v2; // eax\n  float v3; // xmm0_4\n  float v4; // xmm0_4\n  __int64 v5; // r14\n  float v6; // xmm1_4\n  __int64 result; // rax\n  float v8; // [rsp+Ch] [rbp-14h]\n\n  v1 = GameObject::colorForMode(a1, *(unsigned int *)(a1 + 656), 1);\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1584LL))(a1, v1);\n  if ( *(int *)(a1 + 656) > 0 && (v2 = (int)*(float *)(*(_QWORD *)(a1 + 1264) + 316LL), (unsigned __int8)v2 < 0xFAu) )\n  {\n    v3 = (float)(unsigned __int8)v2 * 0.0040000002;\n    if ( *(__int16 *)(a1 + 1200) <= 0 )\n      goto LABEL_10;\n  }\n  else\n  {\n    v3 = 1.0;\n    if ( *(__int16 *)(a1 + 1200) <= 0 )\n      goto LABEL_10;\n  }\n  v8 = v3;\n  v4 = 1.0;\n  v5 = 0;\n  do\n  {\n    v4 = GJEffectManager::opacityModForGroup(*(_QWORD *)(a1 + 1280), *(__int16 *)(*(_QWORD *)(a1 + 1192) + 2 * v5)) * v4;\n    v6 = 0.0;\n    if ( v4 <= 0.0 )\n      break;\n    ++v5;\n    v6 = v4;\n  }\n  while ( v5 < *(__int16 *)(a1 + 1200) );\n  v3 = v8 * v6;\nLABEL_10:\n  result = *(_QWORD *)(a1 + 1096);\n  *(float *)(result + 8) = v3;\n  return result;\n}", "assembly": "; \n; GameObject::updateMainColor from 0x10069be30 to 0x10069bf1b (235 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::updateVisibility @ 0x100084e73\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:35:16 +0000\n; \npush    rbp                                                            ; +0x0, 0x10069be30\nmov     rbp, rsp                                                       ; +0x1, 0x10069be31\npush    r14                                                            ; +0x4, 0x10069be34\npush    rbx                                                            ; +0x6, 0x10069be36\nsub     rsp, 10h                                                       ; +0x7, 0x10069be37\nmov     rbx, rdi                                                       ; +0xb, 0x10069be3b\nmov     esi, [rdi+290h]                                                ; +0xe, 0x10069be3e\nmov     edx, 1                                                         ; +0x14, 0x10069be44\ncall    GameObject__colorForMode                                       ; +0x19, 0x10069be49\nmov     rcx, [rbx]                                                     ; +0x1e, 0x10069be4e\nmov     rdi, rbx                                                       ; +0x21, 0x10069be51\nmov     rsi, rax                                                       ; +0x24, 0x10069be54\ncall    qword ptr [rcx+630h]                                           ; +0x27, 0x10069be57\ncmp     dword ptr [rbx+290h], 0                                        ; +0x2d, 0x10069be5d\njle     short loc_10069BE79                                            ; +0x34, 0x10069be64\nmov     rax, [rbx+4F0h]                                                ; +0x36, 0x10069be66\ncvttss2si eax, dword ptr [rax+13Ch]                                    ; +0x3d, 0x10069be6d\ncmp     al, 0FAh                                                       ; +0x45, 0x10069be75\njb      short loc_10069BE8D                                            ; +0x47, 0x10069be77\nmovss   xmm0, cs:alpha                                                 ; +0x49, 0x10069be79\ncmp     word ptr [rbx+4B0h], 0                                         ; +0x51, 0x10069be81\njg      short loc_10069BEA6                                            ; +0x59, 0x10069be89\njmp     short loc_10069BF06                                            ; +0x5b, 0x10069be8b\nmovzx   eax, al                                                        ; +0x5d, 0x10069be8d\ncvtsi2ss xmm0, eax                                                     ; +0x60, 0x10069be90\nmulss   xmm0, cs:dword_100A05CE0                                       ; +0x64, 0x10069be94\ncmp     word ptr [rbx+4B0h], 0                                         ; +0x6c, 0x10069be9c\njle     short loc_10069BF06                                            ; +0x74, 0x10069bea4\nmovss   [rbp+var_14], xmm0                                             ; +0x76, 0x10069bea6\nmovss   xmm0, cs:alpha                                                 ; +0x7b, 0x10069beab\nxor     r14d, r14d                                                     ; +0x83, 0x10069beb3\nnop     word ptr [rax+rax+00000000h]                                   ; +0x86, 0x10069beb6\nmovss   [rbp+var_18], xmm0                                             ; +0x90, 0x10069bec0\nmov     rax, [rbx+4A8h]                                                ; +0x95, 0x10069bec5\nmov     rdi, [rbx+500h]                                                ; +0x9c, 0x10069becc\nmovsx   esi, word ptr [rax+r14*2]                                      ; +0xa3, 0x10069bed3\ncall    GJEffectManager__opacityModForGroup                            ; +0xa8, 0x10069bed8\nmulss   xmm0, [rbp+var_18]                                             ; +0xad, 0x10069bedd\nxorps   xmm1, xmm1                                                     ; +0xb2, 0x10069bee2\nucomiss xmm1, xmm0                                                     ; +0xb5, 0x10069bee5\njnb     short loc_10069BEFD                                            ; +0xb8, 0x10069bee8\ninc     r14                                                            ; +0xba, 0x10069beea\nmovsx   rax, word ptr [rbx+4B0h]                                       ; +0xbd, 0x10069beed\nmovaps  xmm1, xmm0                                                     ; +0xc5, 0x10069bef5\ncmp     r14, rax                                                       ; +0xc8, 0x10069bef8\njl      short loc_10069BEC0                                            ; +0xcb, 0x10069befb\nmovss   xmm0, [rbp+var_14]                                             ; +0xcd, 0x10069befd\nmulss   xmm0, xmm1                                                     ; +0xd2, 0x10069bf02\nmov     rax, [rbx+448h]                                                ; +0xd6, 0x10069bf06\nmovss   dword ptr [rax+8], xmm0                                        ; +0xdd, 0x10069bf0d\nadd     rsp, 10h                                                       ; +0xe2, 0x10069bf12\npop     rbx                                                            ; +0xe6, 0x10069bf16\npop     r14                                                            ; +0xe7, 0x10069bf17\npop     rbp                                                            ; +0xe9, 0x10069bf19\nretn                                                                   ; +0xea, 0x10069bf1a", "xrefs": ["PlayLayer::updateVisibility @ 0x100084e73"], "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"}