{"type": "func", "start": 4297888272, "end": 4297888449, "name": "GJEffectManager::calculateBaseActiveColors", "pseudocode": "// \n// GJEffectManager::calculateBaseActiveColors from 0x1002c9210 to 0x1002c92c1 (177 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::loadDefaultColors @ 0x10007f474\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:28:09 +0000\n// \n\n__int64 __fastcall GJEffectManager::calculateBaseActiveColors(__int64 a1)\n{\n  __int64 result; // rax\n  __int64 i; // r14\n  __int64 v3; // r15\n  __int64 v4; // rax\n  int v5; // eax\n  __int64 v6; // [rsp-28h] [rbp-28h] BYREF\n\n  result = *(_QWORD *)(a1 + 336);\n  if ( result )\n  {\n    v6 = *(_QWORD *)(a1 + 336);\n    for ( i = *(_QWORD *)(result + 56); i; *(_WORD *)(v3 + 323) = WORD2(v6) )\n    {\n      v3 = *(_QWORD *)(i + 264);\n      i = *(_QWORD *)(i + 288);\n      v4 = *(_QWORD *)(v3 + 336);\n      BYTE6(v6) = *(_BYTE *)(v3 + 322);\n      WORD2(v6) = *(_WORD *)(v3 + 320);\n      if ( v4 && *(int *)(v4 + 120) > 0 && !*(_BYTE *)(v4 + 126) )\n      {\n        v5 = GameToolbox::transformColor_1((char *)&v6 + 4, *(_QWORD *)(v4 + 112), *(double *)(v4 + 104));\n        WORD2(v6) = v5;\n        BYTE6(v6) = BYTE2(v5);\n      }\n      *(_BYTE *)(v3 + 325) = BYTE6(v6);\n      result = WORD2(v6);\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJEffectManager::calculateBaseActiveColors from 0x1002c9210 to 0x1002c92c1 (177 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::loadDefaultColors @ 0x10007f474\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:28:09 +0000\n; \nmov     rax, [rdi+150h]                                                ; +0x0, 0x1002c9210\ntest    rax, rax                                                       ; +0x7, 0x1002c9217\njz      locret_1002C92C0                                               ; +0xa, 0x1002c921a\npush    rbp                                                            ; +0x10, 0x1002c9220\nmov     rbp, rsp                                                       ; +0x11, 0x1002c9221\npush    r15                                                            ; +0x14, 0x1002c9224\npush    r14                                                            ; +0x16, 0x1002c9226\npush    rbx                                                            ; +0x18, 0x1002c9228\npush    rax                                                            ; +0x19, 0x1002c9229\nmov     r14, [rax+38h]                                                 ; +0x1a, 0x1002c922a\ntest    r14, r14                                                       ; +0x1e, 0x1002c922e\njz      loc_1002C92B6                                                  ; +0x21, 0x1002c9231\nlea     rbx, [rbp-1Ch]                                                 ; +0x27, 0x1002c9237\njmp     short loc_1002C925C                                            ; +0x2b, 0x1002c923b\nalign 20h                                                              ; +0x2d, 0x1002c923d\nmovzx   eax, byte ptr [rbp-1Ah]                                        ; +0x30, 0x1002c9240\nmov     [r15+145h], al                                                 ; +0x34, 0x1002c9244\nmovzx   eax, word ptr [rbp-1Ch]                                        ; +0x3b, 0x1002c924b\nmov     [r15+143h], ax                                                 ; +0x3f, 0x1002c924f\ntest    r14, r14                                                       ; +0x47, 0x1002c9257\njz      short loc_1002C92B6                                            ; +0x4a, 0x1002c925a\nmov     r15, [r14+108h]                                                ; +0x4c, 0x1002c925c\nmov     r14, [r14+120h]                                                ; +0x53, 0x1002c9263\nmov     rax, [r15+150h]                                                ; +0x5a, 0x1002c926a\nmovzx   ecx, byte ptr [r15+142h]                                       ; +0x61, 0x1002c9271\nmov     [rbp-1Ah], cl                                                  ; +0x69, 0x1002c9279\nmovzx   ecx, word ptr [r15+140h]                                       ; +0x6c, 0x1002c927c\nmov     [rbp-1Ch], cx                                                  ; +0x74, 0x1002c9284\ntest    rax, rax                                                       ; +0x78, 0x1002c9288\njz      short loc_1002C9240                                            ; +0x7b, 0x1002c928b\ncmp     dword ptr [rax+78h], 0                                         ; +0x7d, 0x1002c928d\njle     short loc_1002C9240                                            ; +0x81, 0x1002c9291\ncmp     byte ptr [rax+7Eh], 0                                          ; +0x83, 0x1002c9293\njnz     short loc_1002C9240                                            ; +0x87, 0x1002c9297\nmovsd   xmm0, qword ptr [rax+68h]                                      ; +0x89, 0x1002c9299\nmov     rsi, [rax+70h]                                                 ; +0x8e, 0x1002c929e\nmov     rdi, rbx                                                       ; +0x92, 0x1002c92a2\ncall    GameToolbox__transformColor_1                                  ; +0x95, 0x1002c92a5\nmov     [rbp-1Ch], ax                                                  ; +0x9a, 0x1002c92aa\nshr     eax, 10h                                                       ; +0x9e, 0x1002c92ae\nmov     [rbp-1Ah], al                                                  ; +0xa1, 0x1002c92b1\njmp     short loc_1002C9240                                            ; +0xa4, 0x1002c92b4\nadd     rsp, 8                                                         ; +0xa6, 0x1002c92b6\npop     rbx                                                            ; +0xaa, 0x1002c92ba\npop     r14                                                            ; +0xab, 0x1002c92bb\npop     r15                                                            ; +0xad, 0x1002c92bd\npop     rbp                                                            ; +0xaf, 0x1002c92bf\nretn                                                                   ; +0xb0, 0x1002c92c0", "xrefs": ["PlayLayer::loadDefaultColors @ 0x10007f474"], "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"}