{"type": "func", "start": 4297884096, "end": 4297884370, "name": "GJEffectManager::reset", "pseudocode": "// \n// GJEffectManager::reset from 0x1002c81c0 to 0x1002c82d2 (274 bytes)\n// \n// 5 xrefs:\n// > PlayLayer::loadDefaultColors @ 0x10007f1ce\n// > LevelEditorLayer::updateGameObjects @ 0x1000acb7e\n// > LevelEditorLayer::onPlaytest @ 0x1000c5b3a\n// > LevelEditorLayer::onStopPlaytest @ 0x1000c713f\n// > GJEffectManager::loadFromState @ 0x1002d9b17\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:28:09 +0000\n// \n\n__int64 __fastcall GJEffectManager::reset(_QWORD *a1)\n{\n  _QWORD *v2; // rdi\n  _QWORD *v3; // r14\n  __int64 v4; // rsi\n  __int64 v5; // rax\n  __int64 i; // rax\n  __int64 v7; // rdx\n\n  if ( a1[78] )\n  {\n    v2 = (_QWORD *)a1[77];\n    if ( v2 )\n    {\n      do\n      {\n        v3 = (_QWORD *)*v2;\n        operator delete(v2);\n        v2 = v3;\n      }\n      while ( v3 );\n    }\n    a1[77] = 0;\n    v4 = a1[76];\n    if ( v4 )\n      __bzero(a1[75], 8 * v4);\n    a1[78] = 0;\n  }\n  cocos2d::CCDictionary::removeAllObjects(a1[70]);\n  cocos2d::CCDictionary::removeAllObjects(a1[71]);\n  cocos2d::CCDictionary::removeAllObjects(a1[41]);\n  __bzero(a1[80], 8816);\n  __bzero(a1[72], 80000);\n  v5 = a1[42];\n  if ( v5 )\n  {\n    for ( i = *(_QWORD *)(v5 + 56); i; *(_QWORD *)(v7 + 336) = 0 )\n    {\n      v7 = *(_QWORD *)(i + 264);\n      i = *(_QWORD *)(i + 288);\n      *(_WORD *)(v7 + 324) = -1;\n      *(_QWORD *)(v7 + 316) = -3162570752LL;\n    }\n  }\n  GJEffectManager::resetEffects(a1);\n  return GJEffectManager::resetMoveActions(a1);\n}", "assembly": "; \n; GJEffectManager::reset from 0x1002c81c0 to 0x1002c82d2 (274 bytes)\n; \n; 5 xrefs:\n; > PlayLayer::loadDefaultColors @ 0x10007f1ce\n; > LevelEditorLayer::updateGameObjects @ 0x1000acb7e\n; > LevelEditorLayer::onPlaytest @ 0x1000c5b3a\n; > LevelEditorLayer::onStopPlaytest @ 0x1000c713f\n; > GJEffectManager::loadFromState @ 0x1002d9b17\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:28:09 +0000\n; \npush    rbp                                                            ; +0x0, 0x1002c81c0\nmov     rbp, rsp                                                       ; +0x1, 0x1002c81c1\npush    r14                                                            ; +0x4, 0x1002c81c4\npush    rbx                                                            ; +0x6, 0x1002c81c6\nmov     rbx, rdi                                                       ; +0x7, 0x1002c81c7\ncmp     qword ptr [rdi+270h], 0                                        ; +0xa, 0x1002c81ca\njz      short loc_1002C8222                                            ; +0x12, 0x1002c81d2\nmov     rdi, [rbx+268h]; __p                                           ; +0x14, 0x1002c81d4\ntest    rdi, rdi                                                       ; +0x1b, 0x1002c81db\njz      short loc_1002C81F0                                            ; +0x1e, 0x1002c81de\nmov     r14, [rdi]                                                     ; +0x20, 0x1002c81e0\ncall    __ZdlPv; operator delete(void *)                               ; +0x23, 0x1002c81e3\nmov     rdi, r14                                                       ; +0x28, 0x1002c81e8\ntest    r14, r14                                                       ; +0x2b, 0x1002c81eb\njnz     short loc_1002C81E0                                            ; +0x2e, 0x1002c81ee\nmov     qword ptr [rbx+268h], 0                                        ; +0x30, 0x1002c81f0\nmov     rsi, [rbx+260h]                                                ; +0x3b, 0x1002c81fb\ntest    rsi, rsi                                                       ; +0x42, 0x1002c8202\njz      short loc_1002C8217                                            ; +0x45, 0x1002c8205\nmov     rdi, [rbx+258h]                                                ; +0x47, 0x1002c8207\nshl     rsi, 3                                                         ; +0x4e, 0x1002c820e\ncall    ___bzero                                                       ; +0x52, 0x1002c8212\nmov     qword ptr [rbx+270h], 0                                        ; +0x57, 0x1002c8217\nmov     rdi, [rbx+230h]                                                ; +0x62, 0x1002c8222\ncall    cocos2d__CCDictionary__removeAllObjects                        ; +0x69, 0x1002c8229\nmov     rdi, [rbx+238h]                                                ; +0x6e, 0x1002c822e\ncall    cocos2d__CCDictionary__removeAllObjects                        ; +0x75, 0x1002c8235\nmov     rdi, [rbx+148h]                                                ; +0x7a, 0x1002c823a\ncall    cocos2d__CCDictionary__removeAllObjects                        ; +0x81, 0x1002c8241\nmov     rdi, [rbx+280h]                                                ; +0x86, 0x1002c8246\nmov     esi, 2270h                                                     ; +0x8d, 0x1002c824d\ncall    ___bzero                                                       ; +0x92, 0x1002c8252\nmov     rdi, [rbx+240h]                                                ; +0x97, 0x1002c8257\nmov     esi, 13880h                                                    ; +0x9e, 0x1002c825e\ncall    ___bzero                                                       ; +0xa3, 0x1002c8263\nmov     rax, [rbx+150h]                                                ; +0xa8, 0x1002c8268\ntest    rax, rax                                                       ; +0xaf, 0x1002c826f\njz      short loc_1002C82BE                                            ; +0xb2, 0x1002c8272\nmov     rax, [rax+38h]                                                 ; +0xb4, 0x1002c8274\ntest    rax, rax                                                       ; +0xb8, 0x1002c8278\njz      short loc_1002C82BE                                            ; +0xbb, 0x1002c827b\nmov     rcx, 0FFFFFFFF437F0000h                                        ; +0xbd, 0x1002c827d\nnop     word ptr [rax+rax+00000000h]                                   ; +0xc7, 0x1002c8287\nmov     rdx, [rax+108h]                                                ; +0xd0, 0x1002c8290\nmov     rax, [rax+120h]                                                ; +0xd7, 0x1002c8297\nmov     word ptr [rdx+144h], 0FFFFh                                    ; +0xde, 0x1002c829e\nmov     [rdx+13Ch], rcx                                                ; +0xe7, 0x1002c82a7\nmov     qword ptr [rdx+150h], 0                                        ; +0xee, 0x1002c82ae\ntest    rax, rax                                                       ; +0xf9, 0x1002c82b9\njnz     short loc_1002C8290                                            ; +0xfc, 0x1002c82bc\nmov     rdi, rbx                                                       ; +0xfe, 0x1002c82be\ncall    GJEffectManager__resetEffects                                  ; +0x101, 0x1002c82c1\nmov     rdi, rbx                                                       ; +0x106, 0x1002c82c6\npop     rbx                                                            ; +0x109, 0x1002c82c9\npop     r14                                                            ; +0x10a, 0x1002c82ca\npop     rbp                                                            ; +0x10c, 0x1002c82cc\njmp     GJEffectManager__resetMoveActions                              ; +0x10d, 0x1002c82cd", "xrefs": ["PlayLayer::loadDefaultColors @ 0x10007f1ce", "LevelEditorLayer::updateGameObjects @ 0x1000acb7e", "LevelEditorLayer::onPlaytest @ 0x1000c5b3a", "LevelEditorLayer::onStopPlaytest @ 0x1000c713f", "GJEffectManager::loadFromState @ 0x1002d9b17"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}