{"type": "func", "start": 4297975264, "end": 4297975660, "name": "GJEffectManager::processColors", "pseudocode": "// \n// GJEffectManager::processColors from 0x1002de5e0 to 0x1002de76c (396 bytes)\n// \n// 6 xrefs:\n// > PlayLayer::updateVisibility @ 0x1000b704d\n// > LevelEditorLayer::updateGameObjects @ 0x1000de04f\n// > LevelEditorLayer::updateGameObjects @ 0x1000de6e9\n// > LevelEditorLayer::onPlaytest @ 0x1000f22e8\n// > LevelEditorLayer::postUpdate @ 0x1000f344c\n// > GJBaseGameLayer::loadUpToPosition @ 0x10014e971\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 __fastcall GJEffectManager::processColors(GJEffectManager *a1)\n{\n  __int64 v1; // rax\n  cocos2d::CCDictionary *m_unkDict150; // rax\n  cocos2d::CCDictElement *i; // r15\n  cocos2d::CCObject *m_pObject; // r12\n  cocos2d::CCObject_vtbl *v5; // rax\n  PulseEffectAction *begin; // r14\n  __int64 v7; // r15\n  unsigned __int64 v8; // r13\n  ColorAction *ColorAction; // rax\n  ColorActionSprite *m_colorSprite; // r12\n  int v11; // [rsp+0h] [rbp-2Ch] BYREF\n\n  v11 = HIDWORD(v1);\n  m_unkDict150 = a1->m_unkDict150;\n  if ( m_unkDict150 )\n  {\n    for ( i = m_unkDict150->m_pElements; i; *(_WORD *)((char *)&m_pObject[5].m_unknown2 + 3) = v11 )\n    {\n      m_pObject = i->m_pObject;\n      i = (cocos2d::CCDictElement *)i->hh.next;\n      v5 = m_pObject[6].__vftable;\n      BYTE2(v11) = BYTE2(m_pObject[5].m_unknown2);\n      LOWORD(v11) = m_pObject[5].m_unknown2;\n      if ( v5 && SLODWORD(v5[1].update) > 0 && !BYTE6(v5[1].update) )\n        *(cocos2d::ccColor3B *)&v11 = GameToolbox::transformColor_1(\n                                        (const cocos2d::ccColor3B *)&v11,\n                                        *(cocos2d::ccHSVValue *)&v5[1].isEqual);\n      BYTE1(m_pObject[5].m_nZOrder) = BYTE2(v11);\n    }\n  }\n  begin = a1->m_pulseEffectVector.__begin_;\n  if ( a1->m_pulseEffectVector.__end_ != begin )\n  {\n    v7 = 0;\n    v8 = 0;\n    do\n    {\n      ColorAction = GJEffectManager::getColorAction(a1, begin[v7].m_targetGroupID);\n      if ( !begin[v7].m_colorIndex && !ColorAction->m_copyID )\n      {\n        m_colorSprite = ColorAction->m_colorSprite;\n        m_colorSprite->m_copyColor = GJEffectManager::colorForPulseEffect(a1, &m_colorSprite->m_copyColor, &begin[v7]);\n      }\n      ++v8;\n      begin = a1->m_pulseEffectVector.__begin_;\n      ++v7;\n    }\n    while ( 0x8E38E38E38E38E39LL * (((char *)a1->m_pulseEffectVector.__end_ - (char *)begin) >> 3) > v8 );\n  }\n  GJEffectManager::processInheritedColors(a1);\n  GJEffectManager::processCopyColorPulseActions(a1);\n}", "assembly": "; \n; GJEffectManager::processColors from 0x1002de5e0 to 0x1002de76c (396 bytes)\n; \n; 6 xrefs:\n; > PlayLayer::updateVisibility @ 0x1000b704d\n; > LevelEditorLayer::updateGameObjects @ 0x1000de04f\n; > LevelEditorLayer::updateGameObjects @ 0x1000de6e9\n; > LevelEditorLayer::onPlaytest @ 0x1000f22e8\n; > LevelEditorLayer::postUpdate @ 0x1000f344c\n; > GJBaseGameLayer::loadUpToPosition @ 0x10014e971\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, 0x1002de5e0\nmov     rbp, rsp                                                       ; +0x1, 0x1002de5e1\npush    r15                                                            ; +0x4, 0x1002de5e4\npush    r14                                                            ; +0x6, 0x1002de5e6\npush    r13                                                            ; +0x8, 0x1002de5e8\npush    r12                                                            ; +0xa, 0x1002de5ea\npush    rbx                                                            ; +0xc, 0x1002de5ec\npush    rax                                                            ; +0xd, 0x1002de5ed\nmov     rbx, rdi                                                       ; +0xe, 0x1002de5ee\nmov     rax, [rdi+150h]                                                ; +0x11, 0x1002de5f1\ntest    rax, rax                                                       ; +0x18, 0x1002de5f8\njz      loc_1002DE69B                                                  ; +0x1b, 0x1002de5fb\nmov     r15, [rax+38h]                                                 ; +0x21, 0x1002de601\ntest    r15, r15                                                       ; +0x25, 0x1002de605\njz      loc_1002DE69B                                                  ; +0x28, 0x1002de608\nlea     r14, [rbp+var_2C]                                              ; +0x2e, 0x1002de60e\njmp     short loc_1002DE63E                                            ; +0x32, 0x1002de612\nalign 20h                                                              ; +0x34, 0x1002de614\nmovzx   eax, [rbp+var_2A]                                              ; +0x40, 0x1002de620\nmov     [r12+145h], al                                                 ; +0x44, 0x1002de624\nmovzx   eax, [rbp+var_2C]                                              ; +0x4c, 0x1002de62c\nmov     [r12+143h], ax                                                 ; +0x50, 0x1002de630\ntest    r15, r15                                                       ; +0x59, 0x1002de639\njz      short loc_1002DE69B                                            ; +0x5c, 0x1002de63c\nmov     r12, [r15+108h]                                                ; +0x5e, 0x1002de63e\nmov     r15, [r15+120h]                                                ; +0x65, 0x1002de645\nmov     rax, [r12+150h]                                                ; +0x6c, 0x1002de64c\nmovzx   ecx, byte ptr [r12+142h]                                       ; +0x74, 0x1002de654\nmov     [rbp+var_2A], cl                                               ; +0x7d, 0x1002de65d\nmovzx   ecx, word ptr [r12+140h]                                       ; +0x80, 0x1002de660\nmov     [rbp+var_2C], cx                                               ; +0x89, 0x1002de669\ntest    rax, rax                                                       ; +0x8d, 0x1002de66d\njz      short loc_1002DE620                                            ; +0x90, 0x1002de670\ncmp     dword ptr [rax+78h], 0                                         ; +0x92, 0x1002de672\njle     short loc_1002DE620                                            ; +0x96, 0x1002de676\ncmp     byte ptr [rax+7Eh], 0                                          ; +0x98, 0x1002de678\njnz     short loc_1002DE620                                            ; +0x9c, 0x1002de67c\nmovsd   xmm0, qword ptr [rax+68h]                                      ; +0x9e, 0x1002de67e\nmov     rsi, [rax+70h]                                                 ; +0xa3, 0x1002de683\nmov     rdi, r14                                                       ; +0xa7, 0x1002de687\ncall    GameToolbox__transformColor_1                                  ; +0xaa, 0x1002de68a\nmov     [rbp+var_2C], ax                                               ; +0xaf, 0x1002de68f\nshr     eax, 10h                                                       ; +0xb3, 0x1002de693\nmov     [rbp+var_2A], al                                               ; +0xb6, 0x1002de696\njmp     short loc_1002DE620                                            ; +0xb9, 0x1002de699\nmov     r14, [rbx+158h]                                                ; +0xbb, 0x1002de69b\ncmp     [rbx+160h], r14                                                ; +0xc2, 0x1002de6a2\njz      loc_1002DE74D                                                  ; +0xc9, 0x1002de6a9\nxor     r15d, r15d                                                     ; +0xcf, 0x1002de6af\nmov     r12, 8E38E38E38E38E39h                                         ; +0xd2, 0x1002de6b2\nxor     r13d, r13d                                                     ; +0xdc, 0x1002de6bc\njmp     short loc_1002DE6F5                                            ; +0xdf, 0x1002de6bf\nalign 10h                                                              ; +0xe1, 0x1002de6c1\ninc     r13                                                            ; +0xf0, 0x1002de6d0\nmov     r14, [rbx+158h]                                                ; +0xf3, 0x1002de6d3\nmov     rax, [rbx+160h]                                                ; +0xfa, 0x1002de6da\nsub     rax, r14                                                       ; +0x101, 0x1002de6e1\nsar     rax, 3                                                         ; +0x104, 0x1002de6e4\nimul    rax, r12                                                       ; +0x108, 0x1002de6e8\nadd     r15, 48h ; 'H'                                                 ; +0x10c, 0x1002de6ec\ncmp     rax, r13                                                       ; +0x110, 0x1002de6f0\njbe     short loc_1002DE74D                                            ; +0x113, 0x1002de6f3\nmov     esi, [r14+r15+14h]                                             ; +0x115, 0x1002de6f5\nmov     rdi, rbx                                                       ; +0x11a, 0x1002de6fa\ncall    GJEffectManager__getColorAction                                ; +0x11d, 0x1002de6fd\ncmp     dword ptr [r14+r15+34h], 0                                     ; +0x122, 0x1002de702\njnz     short loc_1002DE6D0                                            ; +0x128, 0x1002de708\ncmp     dword ptr [rax+78h], 0                                         ; +0x12a, 0x1002de70a\njnz     short loc_1002DE6D0                                            ; +0x12e, 0x1002de70e\nadd     r14, r15                                                       ; +0x130, 0x1002de710\nmov     r12, [rax+90h]                                                 ; +0x133, 0x1002de713\nlea     rsi, [r12+143h]                                                ; +0x13a, 0x1002de71a\nmov     rdi, rbx                                                       ; +0x142, 0x1002de722\nmov     rdx, r14                                                       ; +0x145, 0x1002de725\ncall    GJEffectManager__colorForPulseEffect                           ; +0x148, 0x1002de728\nmov     [r12+143h], ax                                                 ; +0x14d, 0x1002de72d\nshr     eax, 10h                                                       ; +0x156, 0x1002de736\nmov     [r12+145h], al                                                 ; +0x159, 0x1002de739\nmov     r12, 8E38E38E38E38E39h                                         ; +0x161, 0x1002de741\njmp     short loc_1002DE6D0                                            ; +0x16b, 0x1002de74b\nmov     rdi, rbx                                                       ; +0x16d, 0x1002de74d\ncall    GJEffectManager__processInheritedColors                        ; +0x170, 0x1002de750\nmov     rdi, rbx                                                       ; +0x175, 0x1002de755\ncall    GJEffectManager__processCopyColorPulseActions                  ; +0x178, 0x1002de758\nadd     rsp, 8                                                         ; +0x17d, 0x1002de75d\npop     rbx                                                            ; +0x181, 0x1002de761\npop     r12                                                            ; +0x182, 0x1002de762\npop     r13                                                            ; +0x184, 0x1002de764\npop     r14                                                            ; +0x186, 0x1002de766\npop     r15                                                            ; +0x188, 0x1002de768\npop     rbp                                                            ; +0x18a, 0x1002de76a\nretn                                                                   ; +0x18b, 0x1002de76b", "xrefs": ["PlayLayer::updateVisibility @ 0x1000b704d", "LevelEditorLayer::updateGameObjects @ 0x1000de04f", "LevelEditorLayer::updateGameObjects @ 0x1000de6e9", "LevelEditorLayer::onPlaytest @ 0x1000f22e8", "LevelEditorLayer::postUpdate @ 0x1000f344c", "GJBaseGameLayer::loadUpToPosition @ 0x10014e971"], "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"}