{"type": "func", "start": 5371179840, "end": 5371180114, "name": "GJEffectManager::processColors", "pseudocode": "// \n// GJEffectManager::processColors from 0x14025b340 to 0x14025b452 (274 bytes)\n// \n// 9 xrefs:\n// > GJBaseGameLayer::loadUpToPosition @ 0x140235c20\n// > LevelEditorLayer::updateGameObjects @ 0x1402dc871\n// > LevelEditorLayer::updateGameObjects @ 0x1402dcd0e\n// > LevelEditorLayer::onPlaytest @ 0x1402dfe94\n// > LevelEditorLayer::postUpdate @ 0x1402e0f69\n// > PlayLayer::updateVisibility @ 0x1403af42b\n// > <???> @ 0x14068494c\n// > <???> @ 0x14068495c\n// > <???> @ 0x1406cfc90\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid GJEffectManager::processColors(GJEffectManager *a1)\n{\n  std::_Vector_val<std::_Simple_types<PulseEffectAction>>::pointer Myfirst; // r8\n  int v3; // ebp\n  __int64 v4; // r14\n  PulseEffectAction *v5; // rsi\n  ColorAction *ColorAction; // rax\n  const cocos2d::ccColor3B *m_colorSprite; // rbx\n  char v8; // [rsp+40h] [rbp+8h] BYREF\n\n  GJEffectManager::calculateBaseActiveColors(a1);\n  Myfirst = a1->m_pulseEffectVector._Mypair._Myval2._Myfirst;\n  v3 = 0;\n  if ( a1->m_pulseEffectVector._Mypair._Myval2._Mylast - Myfirst )\n  {\n    v4 = 0;\n    do\n    {\n      v5 = &Myfirst[v4];\n      ColorAction = GJEffectManager::getColorAction(a1, Myfirst[v4].m_targetGroupID);\n      if ( !v5->m_colorIndex && (!ColorAction || !ColorAction->m_copyID) )\n      {\n        m_colorSprite = (const cocos2d::ccColor3B *)ColorAction->m_colorSprite;\n        m_colorSprite[109] = *GJEffectManager::colorForPulseEffect(\n                                (cocos2d::ccColor3B *)a1,\n                                (GJEffectManager *)&v8,\n                                m_colorSprite + 109,\n                                v5);\n      }\n      Myfirst = a1->m_pulseEffectVector._Mypair._Myval2._Myfirst;\n      ++v3;\n      ++v4;\n    }\n    while ( v3 < (unsigned __int64)(a1->m_pulseEffectVector._Mypair._Myval2._Mylast - Myfirst) );\n  }\n  GJEffectManager::processInheritedColors(a1);\n  GJEffectManager::processCopyColorPulseActions(a1);\n}", "assembly": "; \n; GJEffectManager::processColors from 0x14025b340 to 0x14025b452 (274 bytes)\n; \n; 9 xrefs:\n; > GJBaseGameLayer::loadUpToPosition @ 0x140235c20\n; > LevelEditorLayer::updateGameObjects @ 0x1402dc871\n; > LevelEditorLayer::updateGameObjects @ 0x1402dcd0e\n; > LevelEditorLayer::onPlaytest @ 0x1402dfe94\n; > LevelEditorLayer::postUpdate @ 0x1402e0f69\n; > PlayLayer::updateVisibility @ 0x1403af42b\n; > <???> @ 0x14068494c\n; > <???> @ 0x14068495c\n; > <???> @ 0x1406cfc90\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x14025b340\npush    rdi                                                            ; +0x2, 0x14025b342\npush    r15                                                            ; +0x3, 0x14025b343\nsub     rsp, 20h                                                       ; +0x5, 0x14025b345\nmov     rdi, rcx                                                       ; +0x9, 0x14025b349\ncall    GJEffectManager__calculateBaseActiveColors                     ; +0xc, 0x14025b34c\nmov     r8, [rdi+158h]                                                 ; +0x11, 0x14025b351\nmov     r15, 0E38E38E38E38E39h                                         ; +0x18, 0x14025b358\nmov     rdx, [rdi+160h]                                                ; +0x22, 0x14025b362\nmov     rax, r15                                                       ; +0x29, 0x14025b369\nsub     rdx, r8                                                        ; +0x2c, 0x14025b36c\nxor     ebp, ebp                                                       ; +0x2f, 0x14025b36f\nimul    rdx                                                            ; +0x31, 0x14025b371\nsar     rdx, 2                                                         ; +0x34, 0x14025b374\nmov     rax, rdx                                                       ; +0x38, 0x14025b378\nshr     rax, 3Fh                                                       ; +0x3b, 0x14025b37b\nadd     rdx, rax                                                       ; +0x3f, 0x14025b37f\njz      loc_14025B43A                                                  ; +0x42, 0x14025b382\nmov     [rsp+38h+arg_10], rsi                                          ; +0x48, 0x14025b388\nmov     [rsp+38h+arg_18], r14                                          ; +0x4d, 0x14025b38d\nmov     r14d, ebp                                                      ; +0x52, 0x14025b392\nmov     [rsp+38h+arg_8], rbx                                           ; +0x55, 0x14025b395\nnop     word ptr [rax+rax+00h]                                         ; +0x5a, 0x14025b39a\nmov     edx, [r14+r8+14h]                                              ; +0x60, 0x14025b3a0\nlea     rsi, [r14+r8]                                                  ; +0x65, 0x14025b3a5\nmov     rcx, rdi                                                       ; +0x69, 0x14025b3a9\ncall    GJEffectManager__getColorAction                                ; +0x6c, 0x14025b3ac\ncmp     dword ptr [rsi+34h], 0                                         ; +0x71, 0x14025b3b1\njnz     short loc_14025B3F4                                            ; +0x75, 0x14025b3b5\ntest    rax, rax                                                       ; +0x77, 0x14025b3b7\njz      short loc_14025B3C2                                            ; +0x7a, 0x14025b3ba\ncmp     dword ptr [rax+78h], 0                                         ; +0x7c, 0x14025b3bc\njnz     short loc_14025B3F4                                            ; +0x80, 0x14025b3c0\nmov     rbx, [rax+90h]                                                 ; +0x82, 0x14025b3c2\nlea     rdx, [rsp+38h+arg_0]                                           ; +0x89, 0x14025b3c9\nmov     r9, rsi                                                        ; +0x8e, 0x14025b3ce\nmov     rcx, rdi                                                       ; +0x91, 0x14025b3d1\nlea     r8, [rbx+147h]                                                 ; +0x94, 0x14025b3d4\ncall    GJEffectManager__colorForPulseEffect                           ; +0x9b, 0x14025b3db\nmovzx   ecx, word ptr [rax]                                            ; +0xa0, 0x14025b3e0\nmov     [rbx+147h], cx                                                 ; +0xa3, 0x14025b3e3\nmovzx   eax, byte ptr [rax+2]                                          ; +0xaa, 0x14025b3ea\nmov     [rbx+149h], al                                                 ; +0xae, 0x14025b3ee\nmov     r8, [rdi+158h]                                                 ; +0xb4, 0x14025b3f4\ninc     ebp                                                            ; +0xbb, 0x14025b3fb\nmov     rcx, [rdi+160h]                                                ; +0xbd, 0x14025b3fd\nmov     rax, r15                                                       ; +0xc4, 0x14025b404\nsub     rcx, r8                                                        ; +0xc7, 0x14025b407\nadd     r14, 48h ; 'H'                                                 ; +0xca, 0x14025b40a\nimul    rcx                                                            ; +0xce, 0x14025b40e\nsar     rdx, 2                                                         ; +0xd1, 0x14025b411\nmov     rax, rdx                                                       ; +0xd5, 0x14025b415\nshr     rax, 3Fh                                                       ; +0xd8, 0x14025b418\nadd     rdx, rax                                                       ; +0xdc, 0x14025b41c\nmovsxd  rax, ebp                                                       ; +0xdf, 0x14025b41f\ncmp     rax, rdx                                                       ; +0xe2, 0x14025b422\njb      loc_14025B3A0                                                  ; +0xe5, 0x14025b425\nmov     r14, [rsp+38h+arg_18]                                          ; +0xeb, 0x14025b42b\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xf0, 0x14025b430\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xf5, 0x14025b435\nmov     rcx, rdi                                                       ; +0xfa, 0x14025b43a\ncall    GJEffectManager__processInheritedColors                        ; +0xfd, 0x14025b43d\nmov     rcx, rdi                                                       ; +0x102, 0x14025b442\nadd     rsp, 20h                                                       ; +0x105, 0x14025b445\npop     r15                                                            ; +0x109, 0x14025b449\npop     rdi                                                            ; +0x10b, 0x14025b44b\npop     rbp                                                            ; +0x10c, 0x14025b44c\njmp     GJEffectManager__processCopyColorPulseActions                  ; +0x10d, 0x14025b44d", "xrefs": ["GJBaseGameLayer::loadUpToPosition @ 0x140235c20", "LevelEditorLayer::updateGameObjects @ 0x1402dc871", "LevelEditorLayer::updateGameObjects @ 0x1402dcd0e", "LevelEditorLayer::onPlaytest @ 0x1402dfe94", "LevelEditorLayer::postUpdate @ 0x1402e0f69", "PlayLayer::updateVisibility @ 0x1403af42b", "<???> @ 0x14068494c", "<???> @ 0x14068495c", "<???> @ 0x1406cfc90"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}