{"type": "func", "start": 4826836, "end": 4826920, "name": "GJEffectManager::traverseInheritanceChain", "pseudocode": "// \n// GJEffectManager::traverseInheritanceChain from 0x49a6d4 to 0x49a728 (84 bytes)\n// \n// 1 xrefs:\n// > GJEffectManager::processInheritedColors @ 0x49a8b4\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  cocos2d::CCArray *m_unkArray430; // r3\n  cocos2d::ccArray *data; // r3\n  unsigned int arr; // r6\n  int *v7; // r4\n  int v8; // r3\n  int v9; // t1\n\n  while ( a2 )\n  {\n    cocos2d::CCArray::addObject(a1->m_unkArray430, a2);\n    a2 = a2->m_inheritanceNode;\n  }\n  m_unkArray430 = a1->m_unkArray430;\n  if ( m_unkArray430 )\n  {\n    data = m_unkArray430->data;\n    if ( data->num )\n    {\n      arr = (unsigned int)data->arr;\n      v7 = (int *)(arr + 4 * (data->num + 0x3FFFFFFF));\n      while ( (unsigned int)v7 >= arr )\n      {\n        v9 = *v7--;\n        v8 = v9;\n        if ( !v9 )\n          break;\n        GJEffectManager::calculateInheritedColor(a1, *(_DWORD *)(v8 + 52), *(ColorAction **)(v8 + 60));\n      }\n    }\n  }\n  cocos2d::CCArray::removeAllObjects(a1->m_unkArray430);\n}", "assembly": "; \n; GJEffectManager::traverseInheritanceChain from 0x49a6d4 to 0x49a728 (84 bytes)\n; \n; 1 xrefs:\n; > GJEffectManager::processInheritedColors @ 0x49a8b4\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            {R4-R6,LR}                                             ; +0x0, 0x49a6d4\nMOV             R5, R0                                                 ; +0x2, 0x49a6d6\nMOV             R4, R1                                                 ; +0x4, 0x49a6d8\nCBZ             R4, loc_49A6EA                                         ; +0x6, 0x49a6da\nMOV             R1, R4; cocos2d::CCObject *                            ; +0x8, 0x49a6dc\nLDR.W           R0, [R5,#0x2B8]; this                                  ; +0xa, 0x49a6de\nBL              _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0xe, 0x49a6e2\nLDR             R4, [R4,#0x38]                                         ; +0x12, 0x49a6e6\nB               loc_49A6DA                                             ; +0x14, 0x49a6e8\nLDR.W           R3, [R5,#0x2B8]                                        ; +0x16, 0x49a6ea\nCBNZ            R3, loc_49A6FC                                         ; +0x1a, 0x49a6ee\nLDR.W           R0, [R5,#0x2B8]; this                                  ; +0x1c, 0x49a6f0\nPOP.W           {R4-R6,LR}                                             ; +0x20, 0x49a6f4\nB.W             _ZN7cocos2d7CCArray16removeAllObjectsEv; cocos2d::CCArray::removeAllObjects(void) ; +0x24, 0x49a6f8\nLDR             R3, [R3,#0x34]                                         ; +0x28, 0x49a6fc\nLDR             R4, [R3]                                               ; +0x2a, 0x49a6fe\nCMP             R4, #0                                                 ; +0x2c, 0x49a700\nBEQ             loc_49A6F0                                             ; +0x2e, 0x49a702\nADD.W           R4, R4, #0x40000000                                    ; +0x30, 0x49a704\nLDR             R6, [R3,#0xC]                                          ; +0x34, 0x49a708\nSUBS            R4, #1                                                 ; +0x36, 0x49a70a\nADD.W           R4, R6, R4,LSL#2                                       ; +0x38, 0x49a70c\nCMP             R4, R6                                                 ; +0x3c, 0x49a710\nBCC             loc_49A6F0                                             ; +0x3e, 0x49a712\nLDR.W           R3, [R4],#-4                                           ; +0x40, 0x49a714\nCMP             R3, #0                                                 ; +0x44, 0x49a718\nBEQ             loc_49A6F0                                             ; +0x46, 0x49a71a\nMOV             R0, R5; this                                           ; +0x48, 0x49a71c\nLDR             R1, [R3,#0x34]; int                                    ; +0x4a, 0x49a71e\nLDR             R2, [R3,#0x3C]; ColorAction *                          ; +0x4c, 0x49a720\nBL              _ZN15GJEffectManager23calculateInheritedColorEiP11ColorAction; GJEffectManager::calculateInheritedColor(int,ColorAction *) ; +0x4e, 0x49a722\nB               loc_49A710                                             ; +0x52, 0x49a726", "xrefs": ["GJEffectManager::processInheritedColors @ 0x49a8b4"], "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"}