{"type": "func", "start": 4297887872, "end": 4297888268, "name": "GJEffectManager::processColors", "pseudocode": "// \n// GJEffectManager::processColors from 0x1002c9080 to 0x1002c920c (396 bytes)\n// \n// 6 xrefs:\n// > PlayLayer::updateVisibility @ 0x10008495a\n// > LevelEditorLayer::updateGameObjects @ 0x1000ad16f\n// > LevelEditorLayer::updateGameObjects @ 0x1000ad809\n// > LevelEditorLayer::onPlaytest @ 0x1000c5b72\n// > LevelEditorLayer::postUpdate @ 0x1000c733c\n// > GJBaseGameLayer::loadUpToPosition @ 0x10012c83b\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::processColors(_QWORD *a1)\n{\n  __int64 v1; // rax\n  __int64 v2; // rax\n  __int64 i; // r15\n  __int64 v4; // r12\n  __int64 v5; // rax\n  int v6; // eax\n  __int64 v7; // r14\n  __int64 v8; // r15\n  unsigned __int64 v9; // r13\n  char *ColorAction; // rax\n  __int64 v11; // r12\n  __int64 v12; // rax\n  int v14; // [rsp+0h] [rbp-2Ch] BYREF\n\n  v14 = HIDWORD(v1);\n  v2 = a1[42];\n  if ( v2 )\n  {\n    for ( i = *(_QWORD *)(v2 + 56); i; *(_WORD *)(v4 + 323) = v14 )\n    {\n      v4 = *(_QWORD *)(i + 264);\n      i = *(_QWORD *)(i + 288);\n      v5 = *(_QWORD *)(v4 + 336);\n      BYTE2(v14) = *(_BYTE *)(v4 + 322);\n      LOWORD(v14) = *(_WORD *)(v4 + 320);\n      if ( v5 && *(int *)(v5 + 120) > 0 && !*(_BYTE *)(v5 + 126) )\n      {\n        v6 = GameToolbox::transformColor_1(&v14, *(_QWORD *)(v5 + 112), *(double *)(v5 + 104));\n        LOWORD(v14) = v6;\n        BYTE2(v14) = BYTE2(v6);\n      }\n      *(_BYTE *)(v4 + 325) = BYTE2(v14);\n    }\n  }\n  v7 = a1[43];\n  if ( a1[44] != v7 )\n  {\n    v8 = 0;\n    v9 = 0;\n    do\n    {\n      ColorAction = GJEffectManager::getColorAction((__int64)a1, *(_DWORD *)(v7 + v8 + 20));\n      if ( !*(_DWORD *)(v7 + v8 + 52) && !*((_DWORD *)ColorAction + 30) )\n      {\n        v11 = *((_QWORD *)ColorAction + 18);\n        v12 = GJEffectManager::colorForPulseEffect(a1, v11 + 323, v8 + v7);\n        *(_WORD *)(v11 + 323) = v12;\n        *(_BYTE *)(v11 + 325) = BYTE2(v12);\n      }\n      ++v9;\n      v7 = a1[43];\n      v8 += 72;\n    }\n    while ( 0x8E38E38E38E38E39LL * ((a1[44] - v7) >> 3) > v9 );\n  }\n  GJEffectManager::processInheritedColors(a1);\n  return GJEffectManager::processCopyColorPulseActions(a1);\n}", "assembly": "; \n; GJEffectManager::processColors from 0x1002c9080 to 0x1002c920c (396 bytes)\n; \n; 6 xrefs:\n; > PlayLayer::updateVisibility @ 0x10008495a\n; > LevelEditorLayer::updateGameObjects @ 0x1000ad16f\n; > LevelEditorLayer::updateGameObjects @ 0x1000ad809\n; > LevelEditorLayer::onPlaytest @ 0x1000c5b72\n; > LevelEditorLayer::postUpdate @ 0x1000c733c\n; > GJBaseGameLayer::loadUpToPosition @ 0x10012c83b\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; \npush    rbp                                                            ; +0x0, 0x1002c9080\nmov     rbp, rsp                                                       ; +0x1, 0x1002c9081\npush    r15                                                            ; +0x4, 0x1002c9084\npush    r14                                                            ; +0x6, 0x1002c9086\npush    r13                                                            ; +0x8, 0x1002c9088\npush    r12                                                            ; +0xa, 0x1002c908a\npush    rbx                                                            ; +0xc, 0x1002c908c\npush    rax                                                            ; +0xd, 0x1002c908d\nmov     rbx, rdi                                                       ; +0xe, 0x1002c908e\nmov     rax, [rdi+150h]                                                ; +0x11, 0x1002c9091\ntest    rax, rax                                                       ; +0x18, 0x1002c9098\njz      loc_1002C913B                                                  ; +0x1b, 0x1002c909b\nmov     r15, [rax+38h]                                                 ; +0x21, 0x1002c90a1\ntest    r15, r15                                                       ; +0x25, 0x1002c90a5\njz      loc_1002C913B                                                  ; +0x28, 0x1002c90a8\nlea     r14, [rbp+var_2C]                                              ; +0x2e, 0x1002c90ae\njmp     short loc_1002C90DE                                            ; +0x32, 0x1002c90b2\nalign 20h                                                              ; +0x34, 0x1002c90b4\nmovzx   eax, [rbp+var_2A]                                              ; +0x40, 0x1002c90c0\nmov     [r12+145h], al                                                 ; +0x44, 0x1002c90c4\nmovzx   eax, [rbp+var_2C]                                              ; +0x4c, 0x1002c90cc\nmov     [r12+143h], ax                                                 ; +0x50, 0x1002c90d0\ntest    r15, r15                                                       ; +0x59, 0x1002c90d9\njz      short loc_1002C913B                                            ; +0x5c, 0x1002c90dc\nmov     r12, [r15+108h]                                                ; +0x5e, 0x1002c90de\nmov     r15, [r15+120h]                                                ; +0x65, 0x1002c90e5\nmov     rax, [r12+150h]                                                ; +0x6c, 0x1002c90ec\nmovzx   ecx, byte ptr [r12+142h]                                       ; +0x74, 0x1002c90f4\nmov     [rbp+var_2A], cl                                               ; +0x7d, 0x1002c90fd\nmovzx   ecx, word ptr [r12+140h]                                       ; +0x80, 0x1002c9100\nmov     [rbp+var_2C], cx                                               ; +0x89, 0x1002c9109\ntest    rax, rax                                                       ; +0x8d, 0x1002c910d\njz      short loc_1002C90C0                                            ; +0x90, 0x1002c9110\ncmp     dword ptr [rax+78h], 0                                         ; +0x92, 0x1002c9112\njle     short loc_1002C90C0                                            ; +0x96, 0x1002c9116\ncmp     byte ptr [rax+7Eh], 0                                          ; +0x98, 0x1002c9118\njnz     short loc_1002C90C0                                            ; +0x9c, 0x1002c911c\nmovsd   xmm0, qword ptr [rax+68h]                                      ; +0x9e, 0x1002c911e\nmov     rsi, [rax+70h]                                                 ; +0xa3, 0x1002c9123\nmov     rdi, r14                                                       ; +0xa7, 0x1002c9127\ncall    GameToolbox__transformColor_1                                  ; +0xaa, 0x1002c912a\nmov     [rbp+var_2C], ax                                               ; +0xaf, 0x1002c912f\nshr     eax, 10h                                                       ; +0xb3, 0x1002c9133\nmov     [rbp+var_2A], al                                               ; +0xb6, 0x1002c9136\njmp     short loc_1002C90C0                                            ; +0xb9, 0x1002c9139\nmov     r14, [rbx+158h]                                                ; +0xbb, 0x1002c913b\ncmp     [rbx+160h], r14                                                ; +0xc2, 0x1002c9142\njz      loc_1002C91ED                                                  ; +0xc9, 0x1002c9149\nxor     r15d, r15d                                                     ; +0xcf, 0x1002c914f\nmov     r12, 8E38E38E38E38E39h                                         ; +0xd2, 0x1002c9152\nxor     r13d, r13d                                                     ; +0xdc, 0x1002c915c\njmp     short loc_1002C9195                                            ; +0xdf, 0x1002c915f\nalign 10h                                                              ; +0xe1, 0x1002c9161\ninc     r13                                                            ; +0xf0, 0x1002c9170\nmov     r14, [rbx+158h]                                                ; +0xf3, 0x1002c9173\nmov     rax, [rbx+160h]                                                ; +0xfa, 0x1002c917a\nsub     rax, r14                                                       ; +0x101, 0x1002c9181\nsar     rax, 3                                                         ; +0x104, 0x1002c9184\nimul    rax, r12                                                       ; +0x108, 0x1002c9188\nadd     r15, 48h ; 'H'                                                 ; +0x10c, 0x1002c918c\ncmp     rax, r13                                                       ; +0x110, 0x1002c9190\njbe     short loc_1002C91ED                                            ; +0x113, 0x1002c9193\nmov     esi, [r14+r15+14h]                                             ; +0x115, 0x1002c9195\nmov     rdi, rbx                                                       ; +0x11a, 0x1002c919a\ncall    GJEffectManager__getColorAction                                ; +0x11d, 0x1002c919d\ncmp     dword ptr [r14+r15+34h], 0                                     ; +0x122, 0x1002c91a2\njnz     short loc_1002C9170                                            ; +0x128, 0x1002c91a8\ncmp     dword ptr [rax+78h], 0                                         ; +0x12a, 0x1002c91aa\njnz     short loc_1002C9170                                            ; +0x12e, 0x1002c91ae\nadd     r14, r15                                                       ; +0x130, 0x1002c91b0\nmov     r12, [rax+90h]                                                 ; +0x133, 0x1002c91b3\nlea     rsi, [r12+143h]                                                ; +0x13a, 0x1002c91ba\nmov     rdi, rbx                                                       ; +0x142, 0x1002c91c2\nmov     rdx, r14                                                       ; +0x145, 0x1002c91c5\ncall    GJEffectManager__colorForPulseEffect                           ; +0x148, 0x1002c91c8\nmov     [r12+143h], ax                                                 ; +0x14d, 0x1002c91cd\nshr     eax, 10h                                                       ; +0x156, 0x1002c91d6\nmov     [r12+145h], al                                                 ; +0x159, 0x1002c91d9\nmov     r12, 8E38E38E38E38E39h                                         ; +0x161, 0x1002c91e1\njmp     short loc_1002C9170                                            ; +0x16b, 0x1002c91eb\nmov     rdi, rbx                                                       ; +0x16d, 0x1002c91ed\ncall    GJEffectManager__processInheritedColors                        ; +0x170, 0x1002c91f0\nmov     rdi, rbx                                                       ; +0x175, 0x1002c91f5\ncall    GJEffectManager__processCopyColorPulseActions                  ; +0x178, 0x1002c91f8\nadd     rsp, 8                                                         ; +0x17d, 0x1002c91fd\npop     rbx                                                            ; +0x181, 0x1002c9201\npop     r12                                                            ; +0x182, 0x1002c9202\npop     r13                                                            ; +0x184, 0x1002c9204\npop     r14                                                            ; +0x186, 0x1002c9206\npop     r15                                                            ; +0x188, 0x1002c9208\npop     rbp                                                            ; +0x18a, 0x1002c920a\nretn                                                                   ; +0x18b, 0x1002c920b", "xrefs": ["PlayLayer::updateVisibility @ 0x10008495a", "LevelEditorLayer::updateGameObjects @ 0x1000ad16f", "LevelEditorLayer::updateGameObjects @ 0x1000ad809", "LevelEditorLayer::onPlaytest @ 0x1000c5b72", "LevelEditorLayer::postUpdate @ 0x1000c733c", "GJBaseGameLayer::loadUpToPosition @ 0x10012c83b"], "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"}