{"type": "func", "start": 9141128, "end": 9141384, "name": "GJEffectManager::reset", "pseudocode": "// \n// GJEffectManager::reset from 0x8b7b88 to 0x8b7c88 (256 bytes)\n// \n// 6 xrefs:\n// > PlayLayer::loadDefaultColors @ 0x5da7ec\n// > LevelEditorLayer::onStopPlaytest @ 0x662a7c\n// > LevelEditorLayer::onPlaytest @ 0x6640c0\n// > LevelEditorLayer::updateGameObjects @ 0x67b9d4\n// > GJEffectManager::loadFromState @ 0x8c10f8\n// > <???> @ 0x8a2b8\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  std::__detail::_Hash_node_base *M_nxt; // x0\n  std::__detail::_Hash_node_base *v3; // x20\n  cocos2d::CCDictionary *m_colorActionDict; // x0\n  __int64 i; // x0\n  __int64 j; // x0\n  cocos2d::CCDictionary *m_unkDict150; // x0\n  cocos2d::CCDictElement *m_pElements; // x3\n  cocos2d::CCDictElement *k; // x2\n  cocos2d::CCObject *m_pObject; // x0\n\n  M_nxt = a1->m_unkMap288._M_h._M_before_begin._M_nxt;\n  if ( M_nxt )\n  {\n    do\n    {\n      v3 = M_nxt->_M_nxt;\n      operator delete(M_nxt);\n      M_nxt = v3;\n    }\n    while ( v3 );\n  }\n  memset(a1->m_unkMap288._M_h._M_buckets, 0, 8 * a1->m_unkMap288._M_h._M_bucket_count);\n  a1->m_unkMap288._M_h._M_element_count = 0;\n  m_colorActionDict = a1->m_colorActionDict;\n  a1->m_unkMap288._M_h._M_before_begin._M_nxt = nullptr;\n  cocos2d::CCDictionary::removeAllObjects(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    {\n      for ( k = (cocos2d::CCDictElement *)m_pElements->hh.next; ; k = (cocos2d::CCDictElement *)k->hh.next )\n      {\n        m_pObject = m_pElements->m_pObject;\n        m_pElements = k;\n        LOBYTE(m_pObject[5].m_unknown2) = -1;\n        BYTE1(m_pObject[5].m_unknown2) = -1;\n        BYTE2(m_pObject[5].m_unknown2) = -1;\n        HIBYTE(m_pObject[5].m_unknown2) = -1;\n        LOBYTE(m_pObject[5].m_nZOrder) = -1;\n        BYTE1(m_pObject[5].m_nZOrder) = -1;\n        m_pObject[6].__vftable = nullptr;\n        m_pObject[5].m_uUnknown = 1132396544;\n        if ( !k )\n          break;\n      }\n    }\n  }\n  GJEffectManager::resetEffects(a1);\n  GJEffectManager::resetMoveActions(a1);\n}", "assembly": "; \n; GJEffectManager::reset from 0x8b7b88 to 0x8b7c88 (256 bytes)\n; \n; 6 xrefs:\n; > PlayLayer::loadDefaultColors @ 0x5da7ec\n; > LevelEditorLayer::onStopPlaytest @ 0x662a7c\n; > LevelEditorLayer::onPlaytest @ 0x6640c0\n; > LevelEditorLayer::updateGameObjects @ 0x67b9d4\n; > GJEffectManager::loadFromState @ 0x8c10f8\n; > <???> @ 0x8a2b8\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,#-0x20+var_s0]!                          ; +0x0, 0x8b7b88\nMOV             X29, SP                                                ; +0x4, 0x8b7b8c\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x8b7b90\nMOV             X19, X0                                                ; +0xc, 0x8b7b94\nLDR             X0, [X0,#0x298]; p                                     ; +0x10, 0x8b7b98\nCBZ             X0, loc_8B7BB0                                         ; +0x14, 0x8b7b9c\nLDR             X20, [X0]                                              ; +0x18, 0x8b7ba0\nBL              _ZdlPv; operator delete(void *)                        ; +0x1c, 0x8b7ba4\nMOV             X0, X20                                                ; +0x20, 0x8b7ba8\nCBNZ            X20, loc_8B7BA0                                        ; +0x24, 0x8b7bac\nLDR             X2, [X19,#0x290]                                       ; +0x28, 0x8b7bb0\nMOV             W1, #0; int                                            ; +0x2c, 0x8b7bb4\nLDR             X0, [X19,#0x288]; void *                               ; +0x30, 0x8b7bb8\nLSL             X2, X2, #3; size_t                                     ; +0x34, 0x8b7bbc\nBL              .memset                                                ; +0x38, 0x8b7bc0\nSTR             XZR, [X19,#0x2A0]                                      ; +0x3c, 0x8b7bc4\nLDR             X0, [X19,#0x260]; this                                 ; +0x40, 0x8b7bc8\nSTR             XZR, [X19,#0x298]                                      ; +0x44, 0x8b7bcc\nBL              _ZN7cocos2d12CCDictionary16removeAllObjectsEv; cocos2d::CCDictionary::removeAllObjects(void) ; +0x48, 0x8b7bd0\nLDR             X0, [X19,#0x268]; this                                 ; +0x4c, 0x8b7bd4\nBL              _ZN7cocos2d12CCDictionary16removeAllObjectsEv; cocos2d::CCDictionary::removeAllObjects(void) ; +0x50, 0x8b7bd8\nLDR             X0, [X19,#0x148]; this                                 ; +0x54, 0x8b7bdc\nBL              _ZN7cocos2d12CCDictionary16removeAllObjectsEv; cocos2d::CCDictionary::removeAllObjects(void) ; +0x58, 0x8b7be0\nMOV             X0, #0                                                 ; +0x5c, 0x8b7be4\nMOV             X2, #0x2270                                            ; +0x60, 0x8b7be8\nLDR             X1, [X19,#0x2C0]                                       ; +0x64, 0x8b7bec\nSTR             XZR, [X1,X0]                                           ; +0x68, 0x8b7bf0\nADD             X0, X0, #8                                             ; +0x6c, 0x8b7bf4\nCMP             X0, X2                                                 ; +0x70, 0x8b7bf8\nB.NE            loc_8B7BEC                                             ; +0x74, 0x8b7bfc\nMOV             X0, #0                                                 ; +0x78, 0x8b7c00\nLDR             X2, [X19,#0x270]                                       ; +0x7c, 0x8b7c04\nMOV             X1, #0x13880                                           ; +0x80, 0x8b7c08\nSTR             XZR, [X2,X0]                                           ; +0x88, 0x8b7c10\nADD             X0, X0, #8                                             ; +0x8c, 0x8b7c14\nCMP             X0, X1                                                 ; +0x90, 0x8b7c18\nB.NE            loc_8B7C04                                             ; +0x94, 0x8b7c1c\nLDR             X0, [X19,#0x150]                                       ; +0x98, 0x8b7c20\nCBZ             X0, loc_8B7C70                                         ; +0x9c, 0x8b7c24\nLDR             X3, [X0,#0x38]                                         ; +0xa0, 0x8b7c28\nCBZ             X3, loc_8B7C70                                         ; +0xa4, 0x8b7c2c\nLDR             W4, =0x437F0000                                        ; +0xa8, 0x8b7c30\nLDR             X2, [X3,#0x120]                                        ; +0xac, 0x8b7c34\nMOV             W1, #0xFFFFFFFF                                        ; +0xb0, 0x8b7c38\nB               loc_8B7C44                                             ; +0xb4, 0x8b7c3c\nLDR             X2, [X2,#0x120]                                        ; +0xb8, 0x8b7c40\nLDR             X0, [X3,#0x108]                                        ; +0xbc, 0x8b7c44\nMOV             X3, X2                                                 ; +0xc0, 0x8b7c48\nSTRB            W1, [X0,#0x140]                                        ; +0xc4, 0x8b7c4c\nSTRB            W1, [X0,#0x141]                                        ; +0xc8, 0x8b7c50\nSTRB            W1, [X0,#0x142]                                        ; +0xcc, 0x8b7c54\nSTRB            W1, [X0,#0x143]                                        ; +0xd0, 0x8b7c58\nSTRB            W1, [X0,#0x144]                                        ; +0xd4, 0x8b7c5c\nSTRB            W1, [X0,#0x145]                                        ; +0xd8, 0x8b7c60\nSTR             XZR, [X0,#0x150]                                       ; +0xdc, 0x8b7c64\nSTR             W4, [X0,#0x13C]                                        ; +0xe0, 0x8b7c68\nCBNZ            X2, loc_8B7C40                                         ; +0xe4, 0x8b7c6c\nMOV             X0, X19; this                                          ; +0xe8, 0x8b7c70\nBL              _ZN15GJEffectManager12resetEffectsEv; GJEffectManager::resetEffects(void) ; +0xec, 0x8b7c74\nMOV             X0, X19; this                                          ; +0xf0, 0x8b7c78\nLDP             X19, X20, [SP,#var_s10]                                ; +0xf4, 0x8b7c7c\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0xf8, 0x8b7c80\nB               _ZN15GJEffectManager16resetMoveActionsEv; GJEffectManager::resetMoveActions(void) ; +0xfc, 0x8b7c84", "xrefs": ["PlayLayer::loadDefaultColors @ 0x5da7ec", "LevelEditorLayer::onStopPlaytest @ 0x662a7c", "LevelEditorLayer::onPlaytest @ 0x6640c0", "LevelEditorLayer::updateGameObjects @ 0x67b9d4", "GJEffectManager::loadFromState @ 0x8c10f8", "<???> @ 0x8a2b8"], "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"}