{"type": "func", "start": 4824048, "end": 4824122, "name": "GJEffectManager::addAllInheritedColorActions", "pseudocode": "// \n// GJEffectManager::addAllInheritedColorActions from 0x499bf0 to 0x499c3a (74 bytes)\n// \n// 0 xrefs:\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::addAllInheritedColorActions(GJEffectManager *a1, cocos2d::CCArray *a2)\n{\n  cocos2d::CCDictionary *m_unkObject148; // r3\n  cocos2d::CCDictElement *m_pElements; // r3\n  cocos2d::CCDictElement *next; // r4\n  cocos2d::CCObject *m_pObject; // r6\n  cocos2d::CCDictElement *v7; // r2\n\n  m_unkObject148 = a1->m_unkObject148;\n  if ( m_unkObject148 )\n  {\n    m_pElements = m_unkObject148->m_pElements;\n    if ( m_pElements )\n      next = (cocos2d::CCDictElement *)m_pElements->hh.next;\n    else\n      next = nullptr;\n    while ( m_pElements )\n    {\n      m_pObject = m_pElements->m_pObject;\n      if ( m_pObject[2].m_nTag > 0 )\n      {\n        if ( !a2 )\n          a2 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)a1);\n        a1 = (GJEffectManager *)cocos2d::CCArray::addObject(a2, m_pObject);\n      }\n      if ( next )\n        v7 = (cocos2d::CCDictElement *)next->hh.next;\n      else\n        v7 = nullptr;\n      m_pElements = next;\n      next = v7;\n    }\n  }\n}", "assembly": "; \n; GJEffectManager::addAllInheritedColorActions from 0x499bf0 to 0x499c3a (74 bytes)\n; \n; 0 xrefs:\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\nLDR.W           R3, [R0,#0x10C]                                        ; +0x0, 0x499bf0\nPUSH            {R4-R6,LR}                                             ; +0x4, 0x499bf4\nMOV             R5, R1                                                 ; +0x6, 0x499bf6\nCBZ             R3, locret_499C38                                      ; +0x8, 0x499bf8\nLDR             R3, [R3,#0x34]                                         ; +0xa, 0x499bfa\nCBZ             R3, loc_499C04                                         ; +0xc, 0x499bfc\nLDR.W           R4, [R3,#0x110]                                        ; +0xe, 0x499bfe\nB               loc_499C1C                                             ; +0x12, 0x499c02\nMOV             R4, R3                                                 ; +0x14, 0x499c04\nB               loc_499C1C                                             ; +0x16, 0x499c06\nLDR.W           R6, [R3,#0x104]                                        ; +0x18, 0x499c08\nLDR             R3, [R6,#0x74]                                         ; +0x1c, 0x499c0c\nCMP             R3, #0                                                 ; +0x1e, 0x499c0e\nBGT             loc_499C22                                             ; +0x20, 0x499c10\nCBZ             R4, loc_499C34                                         ; +0x22, 0x499c12\nLDR.W           R2, [R4,#0x110]                                        ; +0x24, 0x499c14\nMOV             R3, R4                                                 ; +0x28, 0x499c18\nMOV             R4, R2                                                 ; +0x2a, 0x499c1a\nCMP             R3, #0                                                 ; +0x2c, 0x499c1c\nBNE             loc_499C08                                             ; +0x2e, 0x499c1e\nB               locret_499C38                                          ; +0x30, 0x499c20\nCBNZ            R5, loc_499C2A                                         ; +0x32, 0x499c22\nBL              _ZN7cocos2d7CCArray6createEv; cocos2d::CCArray::create(void) ; +0x34, 0x499c24\nMOV             R5, R0                                                 ; +0x38, 0x499c28\nMOV             R0, R5; this                                           ; +0x3a, 0x499c2a\nMOV             R1, R6; cocos2d::CCObject *                            ; +0x3c, 0x499c2c\nBL              _ZN7cocos2d7CCArray9addObjectEPNS_8CCObjectE; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x3e, 0x499c2e\nB               loc_499C12                                             ; +0x42, 0x499c32\nMOV             R2, R4                                                 ; +0x44, 0x499c34\nB               loc_499C18                                             ; +0x46, 0x499c36\nPOP             {R4-R6,PC}                                             ; +0x48, 0x499c38", "xrefs": [], "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"}