{"type": "func", "start": 4297974336, "end": 4297974422, "name": "GJEffectManager::updateColors", "pseudocode": "// \n// GJEffectManager::updateColors from 0x1002de240 to 0x1002de296 (86 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::prepareCreateObjectsFromSetup @ 0x1000ad24b\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\n// local variable allocation has failed, the output may be wrong!\nvoid __fastcall GJEffectManager::updateColors(GJEffectManager *a1, cocos2d::ccColor3B a2, cocos2d::ccColor3B a3)\n{\n  cocos2d::CCDictionary *m_unkObject148; // rax\n  cocos2d::CCDictElement *m_pElements; // rax\n  int v5; // edi\n  cocos2d::CCObject *m_pObject; // rcx\n  int m_uIndexInArray; // r8d\n\n  m_unkObject148 = a1->m_unkObject148;\n  if ( m_unkObject148 )\n  {\n    m_pElements = m_unkObject148->m_pElements;\n    while ( 1 )\n    {\n      while ( 1 )\n      {\n        if ( !m_pElements )\n          return;\n        m_pObject = m_pElements->m_pObject;\n        m_pElements = (cocos2d::CCDictElement *)m_pElements->hh.next;\n        m_uIndexInArray = m_pObject[1].m_uIndexInArray;\n        v5 = *(_DWORD *)&a2.r;\n        if ( m_uIndexInArray != 1 )\n          break;\nLABEL_4:\n        LOWORD(m_pObject[1].m_nTag) = v5;\n        BYTE2(m_pObject[1].m_nTag) = BYTE2(v5);\n      }\n      if ( m_uIndexInArray == 2 )\n      {\n        v5 = *(_DWORD *)&a3.r;\n        goto LABEL_4;\n      }\n    }\n  }\n}", "assembly": "; \n; GJEffectManager::updateColors from 0x1002de240 to 0x1002de296 (86 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::prepareCreateObjectsFromSetup @ 0x1000ad24b\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\nmov     rax, [rdi+148h]                                                ; +0x0, 0x1002de240\ntest    rax, rax                                                       ; +0x7, 0x1002de247\njz      short locret_1002DE295                                         ; +0xa, 0x1002de24a\npush    rbp                                                            ; +0xc, 0x1002de24c\nmov     rbp, rsp                                                       ; +0xd, 0x1002de24d\nmov     rax, [rax+38h]                                                 ; +0x10, 0x1002de250\njmp     short loc_1002DE26D                                            ; +0x14, 0x1002de254\nalign 20h                                                              ; +0x16, 0x1002de256\nmov     edi, edx                                                       ; +0x20, 0x1002de260\nmov     [rcx+48h], di                                                  ; +0x22, 0x1002de262\nshr     edi, 10h                                                       ; +0x26, 0x1002de266\nmov     [rcx+4Ah], dil                                                 ; +0x29, 0x1002de269\ntest    rax, rax                                                       ; +0x2d, 0x1002de26d\njz      short loc_1002DE294                                            ; +0x30, 0x1002de270\nmov     rcx, [rax+108h]                                                ; +0x32, 0x1002de272\nmov     rax, [rax+120h]                                                ; +0x39, 0x1002de279\nmov     r8d, [rcx+58h]                                                 ; +0x40, 0x1002de280\nmov     edi, esi                                                       ; +0x44, 0x1002de284\ncmp     r8d, 1                                                         ; +0x46, 0x1002de286\njz      short loc_1002DE262                                            ; +0x4a, 0x1002de28a\ncmp     r8d, 2                                                         ; +0x4c, 0x1002de28c\njz      short loc_1002DE260                                            ; +0x50, 0x1002de290\njmp     short loc_1002DE26D                                            ; +0x52, 0x1002de292\npop     rbp                                                            ; +0x54, 0x1002de294\nretn                                                                   ; +0x55, 0x1002de295", "xrefs": ["PlayLayer::prepareCreateObjectsFromSetup @ 0x1000ad24b"], "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"}