{"type": "func", "start": 4865924, "end": 4866098, "name": "GJEffectManager::reset", "pseudocode": "// \n// GJEffectManager::reset from 0x4a3f84 to 0x4a4032 (174 bytes)\n// \n// 5 xrefs:\n// > PlayLayer::loadDefaultColors @ 0x31af36\n// > LevelEditorLayer::onStopPlaytest @ 0x369426\n// > LevelEditorLayer::onPlaytest @ 0x36ea48\n// > LevelEditorLayer::updateGameObjects @ 0x3759c4\n// > GJEffectManager::loadFromState @ 0x4a6a38\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::reset(GJEffectManager *a1)\n{\n  int i; // r3\n  int j; // r3\n  cocos2d::CCDictionary *m_unkDict150; // r3\n  cocos2d::CCDictElement *m_pElements; // r3\n  cocos2d::CCDictElement *next; // r2\n  cocos2d::CCObject *m_pObject; // r3\n  cocos2d::CCDictElement *v8; // r1\n\n  std::_Hashtable<int,std::pair<int const,bool>,std::allocator<std::pair<int const,bool>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::clear((int)&a1->m_unkMap288);\n  cocos2d::CCDictionary::removeAllObjects(a1->m_colorActionDict);\n  cocos2d::CCDictionary::removeAllObjects(a1->m_unkDict268);\n  cocos2d::CCDictionary::removeAllObjects(a1->m_unkObject148);\n  for ( i = 0; i != 1102; ++i )\n    a1->m_colorActionVector.m_start[i] = nullptr;\n  for ( j = 0; j != 10000; ++j )\n    a1->m_unkVector270.m_start[j] = nullptr;\n  m_unkDict150 = a1->m_unkDict150;\n  if ( m_unkDict150 )\n  {\n    m_pElements = m_unkDict150->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      m_pObject[5].m_uID = 1132396544;\n      LOWORD(m_pObject[5].m_nLuaID) = -1;\n      *(_WORD *)((char *)&m_pObject[5].m_nLuaID + 3) = -1;\n      BYTE2(m_pObject[5].m_nLuaID) = -1;\n      BYTE1(m_pObject[5].m_nTag) = -1;\n      m_pObject[5].m_eObjType = 0;\n      if ( next )\n        v8 = (cocos2d::CCDictElement *)next->hh.next;\n      else\n        v8 = nullptr;\n      m_pElements = next;\n      next = v8;\n    }\n  }\n  GJEffectManager::resetEffects(a1);\n  GJEffectManager::resetMoveActions(a1);\n}", "assembly": "; \n; GJEffectManager::reset from 0x4a3f84 to 0x4a4032 (174 bytes)\n; \n; 5 xrefs:\n; > PlayLayer::loadDefaultColors @ 0x31af36\n; > LevelEditorLayer::onStopPlaytest @ 0x369426\n; > LevelEditorLayer::onPlaytest @ 0x36ea48\n; > LevelEditorLayer::updateGameObjects @ 0x3759c4\n; > GJEffectManager::loadFromState @ 0x4a6a38\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            {R3-R7,LR}                                             ; +0x0, 0x4a3f84\nMOV             R4, R0                                                 ; +0x2, 0x4a3f86\nADD.W           R0, R0, #0x1AC                                         ; +0x4, 0x4a3f88\nBL              _ZNSt10_HashtableIiSt4pairIKibESaIS2_ENSt8__detail10_Select1stESt8equal_toIiESt4hashIiENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEE5clearEv; std::_Hashtable<int,std::pair<int const,bool>,std::allocator<std::pair<int const,bool>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::clear(void) ; +0x8, 0x4a3f8c\nLDR.W           R0, [R4,#0x198]; this                                  ; +0xc, 0x4a3f90\nBL              _ZN7cocos2d12CCDictionary16removeAllObjectsEv; cocos2d::CCDictionary::removeAllObjects(void) ; +0x10, 0x4a3f94\nLDR.W           R0, [R4,#0x19C]; this                                  ; +0x14, 0x4a3f98\nBL              _ZN7cocos2d12CCDictionary16removeAllObjectsEv; cocos2d::CCDictionary::removeAllObjects(void) ; +0x18, 0x4a3f9c\nLDR.W           R0, [R4,#0x10C]; this                                  ; +0x1c, 0x4a3fa0\nBL              _ZN7cocos2d12CCDictionary16removeAllObjectsEv; cocos2d::CCDictionary::removeAllObjects(void) ; +0x20, 0x4a3fa4\nMOVS            R3, #0                                                 ; +0x24, 0x4a3fa8\nMOV             R0, R3                                                 ; +0x26, 0x4a3faa\nMOVW            R2, #0x1138                                            ; +0x28, 0x4a3fac\nLDR.W           R1, [R4,#0x1C8]                                        ; +0x2c, 0x4a3fb0\nSTR             R0, [R1,R3]                                            ; +0x30, 0x4a3fb4\nADDS            R3, #4                                                 ; +0x32, 0x4a3fb6\nCMP             R3, R2                                                 ; +0x34, 0x4a3fb8\nBNE             loc_4A3FB0                                             ; +0x36, 0x4a3fba\nMOVS            R3, #0                                                 ; +0x38, 0x4a3fbc\nMOVW            R2, #0x9C40                                            ; +0x3a, 0x4a3fbe\nMOV             R0, R3                                                 ; +0x3e, 0x4a3fc2\nLDR.W           R1, [R4,#0x1A0]                                        ; +0x40, 0x4a3fc4\nSTR             R0, [R1,R3]                                            ; +0x44, 0x4a3fc8\nADDS            R3, #4                                                 ; +0x46, 0x4a3fca\nCMP             R3, R2                                                 ; +0x48, 0x4a3fcc\nBNE             loc_4A3FC4                                             ; +0x4a, 0x4a3fce\nLDR.W           R3, [R4,#0x110]                                        ; +0x4c, 0x4a3fd0\nCBNZ            R3, loc_4A3FE6                                         ; +0x50, 0x4a3fd4\nMOV             R0, R4; this                                           ; +0x52, 0x4a3fd6\nBL              _ZN15GJEffectManager12resetEffectsEv; GJEffectManager::resetEffects(void) ; +0x54, 0x4a3fd8\nMOV             R0, R4; this                                           ; +0x58, 0x4a3fdc\nPOP.W           {R3-R7,LR}                                             ; +0x5a, 0x4a3fde\nB.W             _ZN15GJEffectManager16resetMoveActionsEv; GJEffectManager::resetMoveActions(void) ; +0x5e, 0x4a3fe2\nLDR             R3, [R3,#0x34]                                         ; +0x62, 0x4a3fe6\nCBZ             R3, loc_4A3FF0                                         ; +0x64, 0x4a3fe8\nLDR.W           R2, [R3,#0x110]                                        ; +0x66, 0x4a3fea\nB               loc_4A3FF2                                             ; +0x6a, 0x4a3fee\nMOV             R2, R3                                                 ; +0x6c, 0x4a3ff0\nLDR             R5, =(unk_9AC080 - 0x4A3FFC)                           ; +0x6e, 0x4a3ff2\nMOVS            R7, #0                                                 ; +0x70, 0x4a3ff4\nLDR             R6, =0x437F0000                                        ; +0x72, 0x4a3ff6\nADD             R5, PC; unk_9AC080                                     ; +0x74, 0x4a3ff8\nCMP             R3, #0                                                 ; +0x76, 0x4a3ffa\nBEQ             loc_4A3FD6                                             ; +0x78, 0x4a3ffc\nMOV             R1, R5                                                 ; +0x7a, 0x4a3ffe\nLDR.W           R3, [R3,#0x104]                                        ; +0x7c, 0x4a4000\nLDRH.W          R0, [R1,#(word_9AC083 - 0x9AC080)]!                    ; +0x80, 0x4a4004\nSTR.W           R6, [R3,#0x108]                                        ; +0x84, 0x4a4008\nLDRB            R1, [R1,#(byte_9AC085 - 0x9AC083)]                     ; +0x88, 0x4a400c\nSTRH.W          R0, [R3,#0x10C]                                        ; +0x8a, 0x4a400e\nSTRH.W          R0, [R3,#0x10F]                                        ; +0x8e, 0x4a4012\nSTRB.W          R1, [R3,#0x10E]                                        ; +0x92, 0x4a4016\nSTRB.W          R1, [R3,#0x111]                                        ; +0x96, 0x4a401a\nSTR.W           R7, [R3,#0x11C]                                        ; +0x9a, 0x4a401e\nCBZ             R2, loc_4A402A                                         ; +0x9e, 0x4a4022\nLDR.W           R1, [R2,#0x110]                                        ; +0xa0, 0x4a4024\nB               loc_4A402C                                             ; +0xa4, 0x4a4028\nMOV             R1, R2                                                 ; +0xa6, 0x4a402a\nMOV             R3, R2                                                 ; +0xa8, 0x4a402c\nMOV             R2, R1                                                 ; +0xaa, 0x4a402e\nB               loc_4A3FFA                                             ; +0xac, 0x4a4030", "xrefs": ["PlayLayer::loadDefaultColors @ 0x31af36", "LevelEditorLayer::onStopPlaytest @ 0x369426", "LevelEditorLayer::onPlaytest @ 0x36ea48", "LevelEditorLayer::updateGameObjects @ 0x3759c4", "GJEffectManager::loadFromState @ 0x4a6a38"], "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"}