{"type": "func", "start": 9178576, "end": 9178732, "name": "GJEffectManager::traverseInheritanceChain", "pseudocode": "// \n// GJEffectManager::traverseInheritanceChain from 0x8c0dd0 to 0x8c0e6c (156 bytes)\n// \n// 2 xrefs:\n// > GJEffectManager::processInheritedColors @ 0x8c1044\n// > <???> @ 0x73188\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::traverseInheritanceChain(GJEffectManager *a1, InheritanceNode *a2)\n{\n  InheritanceNode *i; // x19\n  cocos2d::CCArray *m_unkArray430; // x0\n  cocos2d::ccArray *data; // x2\n  unsigned __int64 arr; // x21\n  __int64 v7; // x1\n  __int64 *v8; // x19\n  __int64 v9; // x2\n\n  for ( i = a2; i; i = i->m_inheritanceNode )\n    cocos2d::CCArray::addObject(a1->m_unkArray430, i);\n  m_unkArray430 = a1->m_unkArray430;\n  if ( m_unkArray430 )\n  {\n    data = m_unkArray430->data;\n    if ( data->num )\n    {\n      arr = (unsigned __int64)data->arr;\n      v7 = 8LL * data->num - 8;\n      v8 = (__int64 *)(arr + v7);\n      if ( arr <= arr + v7 )\n      {\n        v9 = *(_QWORD *)(arr + v7);\n        if ( v9 )\n        {\n          do\n          {\n            --v8;\n            GJEffectManager::calculateInheritedColor(a1, *(_DWORD *)(v9 + 56), *(ColorAction **)(v9 + 72));\n            if ( arr > (unsigned __int64)v8 )\n              break;\n            v9 = *v8;\n          }\n          while ( *v8 );\n          m_unkArray430 = a1->m_unkArray430;\n        }\n      }\n    }\n  }\n  cocos2d::CCArray::removeAllObjects(m_unkArray430);\n}", "assembly": "; \n; GJEffectManager::traverseInheritanceChain from 0x8c0dd0 to 0x8c0e6c (156 bytes)\n; \n; 2 xrefs:\n; > GJEffectManager::processInheritedColors @ 0x8c1044\n; > <???> @ 0x73188\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\nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x8c0dd0\nMOV             X29, SP                                                ; +0x4, 0x8c0dd4\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x8c0dd8\nSTR             X21, [SP,#0x30+var_10]                                 ; +0xc, 0x8c0ddc\nMOV             X19, X1                                                ; +0x10, 0x8c0de0\nMOV             X20, X0                                                ; +0x14, 0x8c0de4\nCBZ             X1, loc_8C0E00                                         ; +0x18, 0x8c0de8\nLDR             X0, [X20,#0x4A0]; this                                 ; +0x1c, 0x8c0dec\nMOV             X1, X19; cocos2d::CCObject *                           ; +0x20, 0x8c0df0\nBL              _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x24, 0x8c0df4\nLDR             X19, [X19,#0x40]                                       ; +0x28, 0x8c0df8\nCBNZ            X19, loc_8C0DEC                                        ; +0x2c, 0x8c0dfc\nLDR             X0, [X20,#0x4A0]                                       ; +0x30, 0x8c0e00\nCBZ             X0, loc_8C0E5C                                         ; +0x34, 0x8c0e04\nLDR             X2, [X0,#0x38]                                         ; +0x38, 0x8c0e08\nLDR             W1, [X2]                                               ; +0x3c, 0x8c0e0c\nCBZ             W1, loc_8C0E5C                                         ; +0x40, 0x8c0e10\nLDR             X21, [X2,#0x10]                                        ; +0x44, 0x8c0e14\nMOV             X2, #0xFFFFFFFFFFFFFFF8                                ; +0x48, 0x8c0e18\nADD             X1, X2, W1,UXTW#3                                      ; +0x4c, 0x8c0e1c\nADD             X19, X21, X1                                           ; +0x50, 0x8c0e20\nCMP             X21, X19                                               ; +0x54, 0x8c0e24\nB.HI            loc_8C0E5C                                             ; +0x58, 0x8c0e28\nLDR             X2, [X21,X1]                                           ; +0x5c, 0x8c0e2c\nCBZ             X2, loc_8C0E5C                                         ; +0x60, 0x8c0e30\nLDR             W1, [X2,#0x38]; int                                    ; +0x64, 0x8c0e34\nMOV             X0, X20; this                                          ; +0x68, 0x8c0e38\nLDR             X2, [X2,#0x48]; ColorAction *                          ; +0x6c, 0x8c0e3c\nSUB             X19, X19, #8                                           ; +0x70, 0x8c0e40\nBL              _ZN15GJEffectManager23calculateInheritedColorEiP11ColorAction; GJEffectManager::calculateInheritedColor(int,ColorAction *) ; +0x74, 0x8c0e44\nCMP             X21, X19                                               ; +0x78, 0x8c0e48\nB.HI            loc_8C0E58                                             ; +0x7c, 0x8c0e4c\nLDR             X2, [X19]                                              ; +0x80, 0x8c0e50\nCBNZ            X2, loc_8C0E34                                         ; +0x84, 0x8c0e54\nLDR             X0, [X20,#0x4A0]; this                                 ; +0x88, 0x8c0e58\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x8c, 0x8c0e5c\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x90, 0x8c0e60\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x94, 0x8c0e64\nB               _ZN7cocos2d7CCArray16removeAllObjectsEv; cocos2d::CCArray::removeAllObjects(void) ; +0x98, 0x8c0e68", "xrefs": ["GJEffectManager::processInheritedColors @ 0x8c1044", "<???> @ 0x73188"], "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"}