{"type": "func", "start": 4297971504, "end": 4297971778, "name": "GJEffectManager::reset", "pseudocode": "// \n// GJEffectManager::reset from 0x1002dd730 to 0x1002dd842 (274 bytes)\n// \n// 5 xrefs:\n// > PlayLayer::loadDefaultColors @ 0x1000b1c7e\n// > LevelEditorLayer::updateGameObjects @ 0x1000dda5e\n// > LevelEditorLayer::onPlaytest @ 0x1000f22b0\n// > LevelEditorLayer::onStopPlaytest @ 0x1000f329f\n// > GJEffectManager::loadFromState @ 0x1002eee87\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 __fastcall GJEffectManager::reset(GJEffectManager *a1)\n{\n  std::__hash_node_base<std::__hash_node<std::__hash_value_type<int, bool>, void *> *>::__next_pointer next; // rdi\n  std::__hash_node_base<std::__hash_node<std::__hash_value_type<int, bool>, void *> *> *v3; // r14\n  unsigned __int64 value; // rsi\n  cocos2d::CCDictionary *m_unkDict150; // rax\n  cocos2d::CCDictElement *i; // rax\n  cocos2d::CCObject *m_pObject; // rdx\n\n  if ( a1->m_unkMap288.__table_.__p2_.__value_ )\n  {\n    next = a1->m_unkMap288.__table_.__p1_.__value_.__next_;\n    if ( next )\n    {\n      do\n      {\n        v3 = next->__next_;\n        operator delete(next);\n        next = v3;\n      }\n      while ( v3 );\n    }\n    a1->m_unkMap288.__table_.__p1_.__value_.__next_ = nullptr;\n    value = a1->m_unkMap288.__table_.__bucket_list_.__ptr_.__value_.__data_.__value_;\n    if ( value )\n      __bzero(a1->m_unkMap288.__table_.__bucket_list_.__ptr_.__value_, 8 * value);\n    a1->m_unkMap288.__table_.__p2_.__value_ = 0;\n  }\n  cocos2d::CCDictionary::removeAllObjects(a1->m_colorActionDict);\n  cocos2d::CCDictionary::removeAllObjects(a1->m_unkDict268);\n  cocos2d::CCDictionary::removeAllObjects(a1->m_unkObject148);\n  __bzero(a1->m_colorActionVector.__begin_, 8816);\n  __bzero(a1->m_unkVector270.__begin_, 80000);\n  m_unkDict150 = a1->m_unkDict150;\n  if ( m_unkDict150 )\n  {\n    for ( i = m_unkDict150->m_pElements; i; m_pObject[6].__vftable = nullptr )\n    {\n      m_pObject = i->m_pObject;\n      i = (cocos2d::CCDictElement *)i->hh.next;\n      LOWORD(m_pObject[5].m_nZOrder) = -1;\n      *(_QWORD *)&m_pObject[5].m_uUnknown = -3162570752LL;\n    }\n  }\n  GJEffectManager::resetEffects(a1);\n  GJEffectManager::resetMoveActions(a1);\n}", "assembly": "; \n; GJEffectManager::reset from 0x1002dd730 to 0x1002dd842 (274 bytes)\n; \n; 5 xrefs:\n; > PlayLayer::loadDefaultColors @ 0x1000b1c7e\n; > LevelEditorLayer::updateGameObjects @ 0x1000dda5e\n; > LevelEditorLayer::onPlaytest @ 0x1000f22b0\n; > LevelEditorLayer::onStopPlaytest @ 0x1000f329f\n; > GJEffectManager::loadFromState @ 0x1002eee87\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    rbp                                                            ; +0x0, 0x1002dd730\nmov     rbp, rsp                                                       ; +0x1, 0x1002dd731\npush    r14                                                            ; +0x4, 0x1002dd734\npush    rbx                                                            ; +0x6, 0x1002dd736\nmov     rbx, rdi                                                       ; +0x7, 0x1002dd737\ncmp     qword ptr [rdi+270h], 0                                        ; +0xa, 0x1002dd73a\njz      short loc_1002DD792                                            ; +0x12, 0x1002dd742\nmov     rdi, [rbx+268h]; __p                                           ; +0x14, 0x1002dd744\ntest    rdi, rdi                                                       ; +0x1b, 0x1002dd74b\njz      short loc_1002DD760                                            ; +0x1e, 0x1002dd74e\nmov     r14, [rdi]                                                     ; +0x20, 0x1002dd750\ncall    __ZdlPv; operator delete(void *)                               ; +0x23, 0x1002dd753\nmov     rdi, r14                                                       ; +0x28, 0x1002dd758\ntest    r14, r14                                                       ; +0x2b, 0x1002dd75b\njnz     short loc_1002DD750                                            ; +0x2e, 0x1002dd75e\nmov     qword ptr [rbx+268h], 0                                        ; +0x30, 0x1002dd760\nmov     rsi, [rbx+260h]                                                ; +0x3b, 0x1002dd76b\ntest    rsi, rsi                                                       ; +0x42, 0x1002dd772\njz      short loc_1002DD787                                            ; +0x45, 0x1002dd775\nmov     rdi, [rbx+258h]                                                ; +0x47, 0x1002dd777\nshl     rsi, 3                                                         ; +0x4e, 0x1002dd77e\ncall    ___bzero                                                       ; +0x52, 0x1002dd782\nmov     qword ptr [rbx+270h], 0                                        ; +0x57, 0x1002dd787\nmov     rdi, [rbx+230h]                                                ; +0x62, 0x1002dd792\ncall    cocos2d__CCDictionary__removeAllObjects                        ; +0x69, 0x1002dd799\nmov     rdi, [rbx+238h]                                                ; +0x6e, 0x1002dd79e\ncall    cocos2d__CCDictionary__removeAllObjects                        ; +0x75, 0x1002dd7a5\nmov     rdi, [rbx+148h]                                                ; +0x7a, 0x1002dd7aa\ncall    cocos2d__CCDictionary__removeAllObjects                        ; +0x81, 0x1002dd7b1\nmov     rdi, [rbx+280h]                                                ; +0x86, 0x1002dd7b6\nmov     esi, 2270h                                                     ; +0x8d, 0x1002dd7bd\ncall    ___bzero                                                       ; +0x92, 0x1002dd7c2\nmov     rdi, [rbx+240h]                                                ; +0x97, 0x1002dd7c7\nmov     esi, 13880h                                                    ; +0x9e, 0x1002dd7ce\ncall    ___bzero                                                       ; +0xa3, 0x1002dd7d3\nmov     rax, [rbx+150h]                                                ; +0xa8, 0x1002dd7d8\ntest    rax, rax                                                       ; +0xaf, 0x1002dd7df\njz      short loc_1002DD82E                                            ; +0xb2, 0x1002dd7e2\nmov     rax, [rax+38h]                                                 ; +0xb4, 0x1002dd7e4\ntest    rax, rax                                                       ; +0xb8, 0x1002dd7e8\njz      short loc_1002DD82E                                            ; +0xbb, 0x1002dd7eb\nmov     rcx, 0FFFFFFFF437F0000h                                        ; +0xbd, 0x1002dd7ed\nnop     word ptr [rax+rax+00000000h]                                   ; +0xc7, 0x1002dd7f7\nmov     rdx, [rax+108h]                                                ; +0xd0, 0x1002dd800\nmov     rax, [rax+120h]                                                ; +0xd7, 0x1002dd807\nmov     word ptr [rdx+144h], 0FFFFh                                    ; +0xde, 0x1002dd80e\nmov     [rdx+13Ch], rcx                                                ; +0xe7, 0x1002dd817\nmov     qword ptr [rdx+150h], 0                                        ; +0xee, 0x1002dd81e\ntest    rax, rax                                                       ; +0xf9, 0x1002dd829\njnz     short loc_1002DD800                                            ; +0xfc, 0x1002dd82c\nmov     rdi, rbx                                                       ; +0xfe, 0x1002dd82e\ncall    GJEffectManager__resetEffects                                  ; +0x101, 0x1002dd831\nmov     rdi, rbx                                                       ; +0x106, 0x1002dd836\npop     rbx                                                            ; +0x109, 0x1002dd839\npop     r14                                                            ; +0x10a, 0x1002dd83a\npop     rbp                                                            ; +0x10c, 0x1002dd83c\njmp     GJEffectManager__resetMoveActions                              ; +0x10d, 0x1002dd83d", "xrefs": ["PlayLayer::loadDefaultColors @ 0x1000b1c7e", "LevelEditorLayer::updateGameObjects @ 0x1000dda5e", "LevelEditorLayer::onPlaytest @ 0x1000f22b0", "LevelEditorLayer::onStopPlaytest @ 0x1000f329f", "GJEffectManager::loadFromState @ 0x1002eee87"], "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"}