{"type": "func", "start": 4301898528, "end": 4301898795, "name": "GameObject::updateSecondaryColor", "pseudocode": "// \n// GameObject::updateSecondaryColor from 0x10069c320 to 0x10069c42b (267 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::updateVisibility @ 0x100084e7b\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\nvoid __fastcall GameObject::updateSecondaryColor(\n        __int64 a1,\n        double a2,\n        double a3,\n        double a4,\n        double a5,\n        double a6,\n        double a7,\n        double a8,\n        double a9)\n{\n  int v9; // esi\n  unsigned __int16 *v10; // rax\n  int v11; // eax\n  float v12; // xmm0_4\n  float v13; // xmm0_4\n  __int64 v14; // r14\n  float v15; // xmm1_4\n  float v16; // [rsp-1Ch] [rbp-1Ch]\n\n  if ( *(_QWORD *)(a1 + 888) )\n  {\n    v9 = *(_DWORD *)(a1 + 660);\n    if ( v9 || *(_WORD *)(a1 + 1168) )\n    {\n      v10 = GameObject::colorForMode(a1, v9, 0, a2, a3, a4, a5, a6, a7, a8, a9);\n      (*(void (__fastcall **)(__int64, unsigned __int16 *))(*(_QWORD *)a1 + 1592LL))(a1, v10);\n      if ( *(int *)(a1 + 660) > 0\n        && (v11 = (int)*(float *)(*(_QWORD *)(a1 + 1272) + 316LL), (unsigned __int8)v11 < 0xFAu) )\n      {\n        v12 = (float)(unsigned __int8)v11 * 0.0040000002;\n        if ( *(__int16 *)(a1 + 1200) <= 0 )\n        {\nLABEL_13:\n          *(float *)(*(_QWORD *)(a1 + 1104) + 8LL) = v12;\n          return;\n        }\n      }\n      else\n      {\n        v12 = 1.0;\n        if ( *(__int16 *)(a1 + 1200) <= 0 )\n          goto LABEL_13;\n      }\n      v16 = v12;\n      v13 = 1.0;\n      v14 = 0;\n      do\n      {\n        v13 = GJEffectManager::opacityModForGroup(\n                *(_QWORD *)(a1 + 1280),\n                *(__int16 *)(*(_QWORD *)(a1 + 1192) + 2 * v14))\n            * v13;\n        v15 = 0.0;\n        if ( v13 <= 0.0 )\n          break;\n        ++v14;\n        v15 = v13;\n      }\n      while ( v14 < *(__int16 *)(a1 + 1200) );\n      v12 = v16 * v15;\n      goto LABEL_13;\n    }\n  }\n}", "assembly": "; \n; GameObject::updateSecondaryColor from 0x10069c320 to 0x10069c42b (267 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::updateVisibility @ 0x100084e7b\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; \ncmp     qword ptr [rdi+378h], 0                                        ; +0x0, 0x10069c320\njz      locret_10069C42A                                               ; +0x8, 0x10069c328\npush    rbp                                                            ; +0xe, 0x10069c32e\nmov     rbp, rsp                                                       ; +0xf, 0x10069c32f\npush    r14                                                            ; +0x12, 0x10069c332\npush    rbx                                                            ; +0x14, 0x10069c334\nsub     rsp, 10h                                                       ; +0x15, 0x10069c335\nmov     rbx, rdi                                                       ; +0x19, 0x10069c339\nmov     esi, [rdi+294h]                                                ; +0x1c, 0x10069c33c\ntest    esi, esi                                                       ; +0x22, 0x10069c342\njnz     short loc_10069C354                                            ; +0x24, 0x10069c344\ncmp     word ptr [rbx+490h], 0                                         ; +0x26, 0x10069c346\njz      loc_10069C422                                                  ; +0x2e, 0x10069c34e\nmov     rdi, rbx                                                       ; +0x34, 0x10069c354\nxor     edx, edx                                                       ; +0x37, 0x10069c357\ncall    GameObject__colorForMode                                       ; +0x39, 0x10069c359\nmov     rcx, [rbx]                                                     ; +0x3e, 0x10069c35e\nmov     rdi, rbx                                                       ; +0x41, 0x10069c361\nmov     rsi, rax                                                       ; +0x44, 0x10069c364\ncall    qword ptr [rcx+638h]                                           ; +0x47, 0x10069c367\ncmp     dword ptr [rbx+294h], 0                                        ; +0x4d, 0x10069c36d\njle     short loc_10069C389                                            ; +0x54, 0x10069c374\nmov     rax, [rbx+4F8h]                                                ; +0x56, 0x10069c376\ncvttss2si eax, dword ptr [rax+13Ch]                                    ; +0x5d, 0x10069c37d\ncmp     al, 0FAh                                                       ; +0x65, 0x10069c385\njb      short loc_10069C39D                                            ; +0x67, 0x10069c387\nmovss   xmm0, cs:alpha                                                 ; +0x69, 0x10069c389\ncmp     word ptr [rbx+4B0h], 0                                         ; +0x71, 0x10069c391\njg      short loc_10069C3B6                                            ; +0x79, 0x10069c399\njmp     short loc_10069C416                                            ; +0x7b, 0x10069c39b\nmovzx   eax, al                                                        ; +0x7d, 0x10069c39d\ncvtsi2ss xmm0, eax                                                     ; +0x80, 0x10069c3a0\nmulss   xmm0, cs:dword_100A05CE0                                       ; +0x84, 0x10069c3a4\ncmp     word ptr [rbx+4B0h], 0                                         ; +0x8c, 0x10069c3ac\njle     short loc_10069C416                                            ; +0x94, 0x10069c3b4\nmovss   dword ptr [rbp-14h], xmm0                                      ; +0x96, 0x10069c3b6\nmovss   xmm0, cs:alpha                                                 ; +0x9b, 0x10069c3bb\nxor     r14d, r14d                                                     ; +0xa3, 0x10069c3c3\nnop     word ptr [rax+rax+00000000h]                                   ; +0xa6, 0x10069c3c6\nmovss   dword ptr [rbp-18h], xmm0                                      ; +0xb0, 0x10069c3d0\nmov     rax, [rbx+4A8h]                                                ; +0xb5, 0x10069c3d5\nmov     rdi, [rbx+500h]                                                ; +0xbc, 0x10069c3dc\nmovsx   esi, word ptr [rax+r14*2]                                      ; +0xc3, 0x10069c3e3\ncall    GJEffectManager__opacityModForGroup                            ; +0xc8, 0x10069c3e8\nmulss   xmm0, dword ptr [rbp-18h]                                      ; +0xcd, 0x10069c3ed\nxorps   xmm1, xmm1                                                     ; +0xd2, 0x10069c3f2\nucomiss xmm1, xmm0                                                     ; +0xd5, 0x10069c3f5\njnb     short loc_10069C40D                                            ; +0xd8, 0x10069c3f8\ninc     r14                                                            ; +0xda, 0x10069c3fa\nmovsx   rax, word ptr [rbx+4B0h]                                       ; +0xdd, 0x10069c3fd\nmovaps  xmm1, xmm0                                                     ; +0xe5, 0x10069c405\ncmp     r14, rax                                                       ; +0xe8, 0x10069c408\njl      short loc_10069C3D0                                            ; +0xeb, 0x10069c40b\nmovss   xmm0, dword ptr [rbp-14h]                                      ; +0xed, 0x10069c40d\nmulss   xmm0, xmm1                                                     ; +0xf2, 0x10069c412\nmov     rax, [rbx+450h]                                                ; +0xf6, 0x10069c416\nmovss   dword ptr [rax+8], xmm0                                        ; +0xfd, 0x10069c41d\nadd     rsp, 10h                                                       ; +0x102, 0x10069c422\npop     rbx                                                            ; +0x106, 0x10069c426\npop     r14                                                            ; +0x107, 0x10069c427\npop     rbp                                                            ; +0x109, 0x10069c429\nretn                                                                   ; +0x10a, 0x10069c42a", "xrefs": ["PlayLayer::updateVisibility @ 0x100084e7b"], "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"}