{"type": "func", "start": 5371179168, "end": 5371179713, "name": "GJEffectManager::reset", "pseudocode": "// \n// GJEffectManager::reset from 0x14025b0a0 to 0x14025b2c1 (545 bytes)\n// \n// 6 xrefs:\n// > GJEffectManager::loadFromState @ 0x1402644bc\n// > LevelEditorLayer::updateGameObjects @ 0x1402dc275\n// > LevelEditorLayer::onPlaytest @ 0x1402dfe5c\n// > LevelEditorLayer::onStopPlaytest @ 0x1402e0c37\n// > PlayLayer::loadDefaultColors @ 0x1403b1ceb\n// > <???> @ 0x1406cfc78\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::vector<ColorAction *> *p_m_colorActionVector; // rdx\n  std::_Vector_val<std::_Simple_types<ColorAction *>>::pointer Myfirst; // rax\n  __int64 i; // rcx\n  __int64 v5; // rcx\n  std::vector<InheritanceNode *> *p_m_unkVector270; // rdx\n  std::_Vector_val<std::_Simple_types<InheritanceNode *>>::pointer v7; // rcx\n  __int64 j; // rcx\n  cocos2d::CCDictionary *m_unkDict150; // rcx\n  cocos2d::CCDictElement *m_pElements; // rcx\n  cocos2d::CCDictElement *k; // rdx\n  cocos2d::CCObject *m_pObject; // rcx\n  std::_Vector_val<std::_Simple_types<GroupCommandObject2>>::pointer v13; // rbx\n  std::_Vector_val<std::_Simple_types<GroupCommandObject2>>::pointer Mylast; // rsi\n  std::_Simple_types<CCMoveCNode *>::value_type *v15; // rax\n\n  sub_14005E0D0(&a1->m_unkMap288._Traitsobj._Mypair._Myval2._Myval2);\n  cocos2d::CCDictionary::removeAllObjects(a1->m_colorActionDict);\n  cocos2d::CCDictionary::removeAllObjects(a1->m_unkDict268);\n  cocos2d::CCDictionary::removeAllObjects(a1->m_unkObject148);\n  p_m_colorActionVector = &a1->m_colorActionVector;\n  Myfirst = a1->m_colorActionVector._Mypair._Myval2._Myfirst;\n  if ( Myfirst > (std::_Vector_val<std::_Simple_types<ColorAction *>>::pointer)&a1->m_colorActionVector\n    || Myfirst + 1101 < (std::_Vector_val<std::_Simple_types<ColorAction *>>::pointer)p_m_colorActionVector )\n  {\n    v5 = 137;\n    do\n    {\n      *Myfirst = nullptr;\n      Myfirst[1] = nullptr;\n      Myfirst[2] = nullptr;\n      Myfirst += 8;\n      *(Myfirst - 5) = nullptr;\n      *(Myfirst - 4) = nullptr;\n      *(Myfirst - 3) = nullptr;\n      *(Myfirst - 2) = nullptr;\n      *(Myfirst - 1) = nullptr;\n      --v5;\n    }\n    while ( v5 );\n    *Myfirst = nullptr;\n    Myfirst[1] = nullptr;\n    Myfirst[2] = nullptr;\n    Myfirst[3] = nullptr;\n    Myfirst[4] = nullptr;\n    Myfirst[5] = nullptr;\n  }\n  else\n  {\n    for ( i = 0; i <= 1101; ++i )\n      p_m_colorActionVector->_Mypair._Myval2._Myfirst[i] = nullptr;\n  }\n  p_m_unkVector270 = &a1->m_unkVector270;\n  v7 = a1->m_unkVector270._Mypair._Myval2._Myfirst;\n  if ( v7 > (std::_Vector_val<std::_Simple_types<InheritanceNode *>>::pointer)&a1->m_unkVector270\n    || v7 + 9999 < (std::_Vector_val<std::_Simple_types<InheritanceNode *>>::pointer)p_m_unkVector270 )\n  {\n    memset(v7, 0, 0x13880u);\n  }\n  else\n  {\n    for ( j = 0; j <= 9999; ++j )\n      p_m_unkVector270->_Mypair._Myval2._Myfirst[j] = nullptr;\n  }\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        LOWORD(m_pObject[5].m_nZOrder) = -1;\n        BYTE2(m_pObject[5].m_nZOrder) = -1;\n        *(_WORD *)((char *)&m_pObject[5].m_nZOrder + 3) = -1;\n        BYTE1(m_pObject[5].m_uOrderOfArrival) = -1;\n        m_pObject[5].m_unknown2 = 1132396544;\n        *(_QWORD *)&m_pObject[6].m_uID = 0;\n        m_pElements = k;\n        if ( !k )\n          break;\n      }\n    }\n  }\n  GJEffectManager::resetEffects(a1);\n  v13 = a1->m_unkVector560._Mypair._Myval2._Myfirst;\n  Mylast = a1->m_unkVector560._Mypair._Myval2._Mylast;\n  if ( v13 != Mylast )\n  {\n    do\n    {\n      sub_14005E430((__int64)&v13->m_remapKeys);\n      sub_140257B50(&v13->m_keyframes._Mypair._Myval2._Myfirst);\n      ++v13;\n    }\n    while ( v13 != Mylast );\n    a1->m_unkVector560._Mypair._Myval2._Mylast = a1->m_unkVector560._Mypair._Myval2._Myfirst;\n  }\n  sub_1402651F0(&a1->m_unkMap578);\n  sub_14005D290(&a1->m_unkMap618._Traitsobj._Mypair._Myval2._Myval2);\n  v15 = a1->m_unkVector6c0._Mypair._Myval2._Myfirst;\n  if ( v15 != a1->m_unkVector6c0._Mypair._Myval2._Mylast )\n    a1->m_unkVector6c0._Mypair._Myval2._Mylast = v15;\n}", "assembly": "; \n; GJEffectManager::reset from 0x14025b0a0 to 0x14025b2c1 (545 bytes)\n; \n; 6 xrefs:\n; > GJEffectManager::loadFromState @ 0x1402644bc\n; > LevelEditorLayer::updateGameObjects @ 0x1402dc275\n; > LevelEditorLayer::onPlaytest @ 0x1402dfe5c\n; > LevelEditorLayer::onStopPlaytest @ 0x1402e0c37\n; > PlayLayer::loadDefaultColors @ 0x1403b1ceb\n; > <???> @ 0x1406cfc78\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14025b0a0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x14025b0a5\npush    rdi                                                            ; +0xa, 0x14025b0aa\nsub     rsp, 20h                                                       ; +0xb, 0x14025b0ab\nmov     rdi, rcx                                                       ; +0xf, 0x14025b0af\nadd     rcx, 2A0h                                                      ; +0x12, 0x14025b0b2\ncall    sub_14005E0D0                                                  ; +0x19, 0x14025b0b9\nmov     rcx, [rdi+278h]                                                ; +0x1e, 0x14025b0be\ncall    cs:?removeAllObjects@CCDictionary@cocos2d@@QEAAXXZ; cocos2d::CCDictionary::removeAllObjects(void) ; +0x25, 0x14025b0c5\nmov     rcx, [rdi+280h]                                                ; +0x2b, 0x14025b0cb\ncall    cs:?removeAllObjects@CCDictionary@cocos2d@@QEAAXXZ; cocos2d::CCDictionary::removeAllObjects(void) ; +0x32, 0x14025b0d2\nmov     rcx, [rdi+148h]                                                ; +0x38, 0x14025b0d8\ncall    cs:?removeAllObjects@CCDictionary@cocos2d@@QEAAXXZ; cocos2d::CCDictionary::removeAllObjects(void) ; +0x3f, 0x14025b0df\nlea     rdx, [rdi+2E0h]                                                ; +0x45, 0x14025b0e5\nxor     ebx, ebx                                                       ; +0x4c, 0x14025b0ec\nmov     rax, [rdx]                                                     ; +0x4e, 0x14025b0ee\nlea     rcx, [rax+2268h]                                               ; +0x51, 0x14025b0f1\ncmp     rax, rdx                                                       ; +0x58, 0x14025b0f8\nja      short loc_14025B126                                            ; +0x5b, 0x14025b0fb\ncmp     rcx, rdx                                                       ; +0x5d, 0x14025b0fd\njb      short loc_14025B126                                            ; +0x60, 0x14025b100\nlea     rcx, ds:0[rbx*8]                                               ; +0x62, 0x14025b102\nnop     word ptr [rax+rax+00h]                                         ; +0x6a, 0x14025b10a\nmov     rax, [rdx]                                                     ; +0x70, 0x14025b110\nmov     [rcx+rax], rbx                                                 ; +0x73, 0x14025b113\nadd     rcx, 8                                                         ; +0x77, 0x14025b117\ncmp     rcx, 2268h                                                     ; +0x7b, 0x14025b11b\njle     short loc_14025B110                                            ; +0x82, 0x14025b122\njmp     short loc_14025B170                                            ; +0x84, 0x14025b124\nmov     ecx, 89h                                                       ; +0x86, 0x14025b126\nnop     dword ptr [rax+rax+00h]                                        ; +0x8b, 0x14025b12b\nmov     [rax], rbx                                                     ; +0x90, 0x14025b130\nmov     [rax+8], rbx                                                   ; +0x93, 0x14025b133\nmov     [rax+10h], rbx                                                 ; +0x97, 0x14025b137\nlea     rax, [rax+40h]                                                 ; +0x9b, 0x14025b13b\nmov     [rax-28h], rbx                                                 ; +0x9f, 0x14025b13f\nmov     [rax-20h], rbx                                                 ; +0xa3, 0x14025b143\nmov     [rax-18h], rbx                                                 ; +0xa7, 0x14025b147\nmov     [rax-10h], rbx                                                 ; +0xab, 0x14025b14b\nmov     [rax-8], rbx                                                   ; +0xaf, 0x14025b14f\nsub     rcx, 1                                                         ; +0xb3, 0x14025b153\njnz     short loc_14025B130                                            ; +0xb7, 0x14025b157\nmov     [rax], rbx                                                     ; +0xb9, 0x14025b159\nmov     [rax+8], rbx                                                   ; +0xbc, 0x14025b15c\nmov     [rax+10h], rbx                                                 ; +0xc0, 0x14025b160\nmov     [rax+18h], rbx                                                 ; +0xc4, 0x14025b164\nmov     [rax+20h], rbx                                                 ; +0xc8, 0x14025b168\nmov     [rax+28h], rbx                                                 ; +0xcc, 0x14025b16c\nlea     rdx, [rdi+288h]                                                ; +0xd0, 0x14025b170\nmov     rcx, [rdx]; void *                                             ; +0xd7, 0x14025b177\nlea     rax, [rcx+13878h]                                              ; +0xda, 0x14025b17a\ncmp     rcx, rdx                                                       ; +0xe1, 0x14025b181\nja      short loc_14025B1A9                                            ; +0xe4, 0x14025b184\ncmp     rax, rdx                                                       ; +0xe6, 0x14025b186\njb      short loc_14025B1A9                                            ; +0xe9, 0x14025b189\nlea     rcx, ds:0[rbx*8]                                               ; +0xeb, 0x14025b18b\nmov     rax, [rdx]                                                     ; +0xf3, 0x14025b193\nmov     [rcx+rax], rbx                                                 ; +0xf6, 0x14025b196\nadd     rcx, 8                                                         ; +0xfa, 0x14025b19a\ncmp     rcx, 13878h                                                    ; +0xfe, 0x14025b19e\njle     short loc_14025B193                                            ; +0x105, 0x14025b1a5\njmp     short loc_14025B1B6                                            ; +0x107, 0x14025b1a7\nxor     edx, edx; Val                                                  ; +0x109, 0x14025b1a9\nmov     r8d, 13880h; Size                                              ; +0x10b, 0x14025b1ab\ncall    memset                                                         ; +0x111, 0x14025b1b1\nmov     rcx, [rdi+150h]                                                ; +0x116, 0x14025b1b6\ntest    rcx, rcx                                                       ; +0x11d, 0x14025b1bd\njz      short loc_14025B231                                            ; +0x120, 0x14025b1c0\nmov     rcx, [rcx+38h]                                                 ; +0x122, 0x14025b1c2\ntest    rcx, rcx                                                       ; +0x126, 0x14025b1c6\njz      short loc_14025B231                                            ; +0x129, 0x14025b1c9\nmov     rdx, [rcx+120h]                                                ; +0x12b, 0x14025b1cb\nmovzx   eax, cs:word_140529AB0                                         ; +0x132, 0x14025b1d2\nmov     rcx, [rcx+108h]                                                ; +0x139, 0x14025b1d9\nmov     [rcx+144h], ax                                                 ; +0x140, 0x14025b1e0\nmovzx   eax, cs:byte_140529AB2                                         ; +0x147, 0x14025b1e7\nmov     [rcx+146h], al                                                 ; +0x14e, 0x14025b1ee\nmovzx   eax, cs:word_140529AB0                                         ; +0x154, 0x14025b1f4\nmov     [rcx+147h], ax                                                 ; +0x15b, 0x14025b1fb\nmovzx   eax, cs:byte_140529AB2                                         ; +0x162, 0x14025b202\nmov     [rcx+149h], al                                                 ; +0x169, 0x14025b209\nmov     dword ptr [rcx+140h], 437F0000h                                ; +0x16f, 0x14025b20f\nmov     [rcx+158h], rbx                                                ; +0x179, 0x14025b219\nmov     rcx, rdx                                                       ; +0x180, 0x14025b220\ntest    rdx, rdx                                                       ; +0x183, 0x14025b223\njz      short loc_14025B231                                            ; +0x186, 0x14025b226\nmov     rdx, [rdx+120h]                                                ; +0x188, 0x14025b228\njmp     short loc_14025B1D2                                            ; +0x18f, 0x14025b22f\nmov     rcx, rdi                                                       ; +0x191, 0x14025b231\ncall    GJEffectManager__resetEffects                                  ; +0x194, 0x14025b234\nmov     rbx, [rdi+608h]                                                ; +0x199, 0x14025b239\nmov     rsi, [rdi+610h]                                                ; +0x1a0, 0x14025b240\ncmp     rbx, rsi                                                       ; +0x1a7, 0x14025b247\njz      short loc_14025B282                                            ; +0x1aa, 0x14025b24a\nnop     dword ptr [rax+00h]                                            ; +0x1ac, 0x14025b24c\nlea     rcx, [rbx+1E8h]                                                ; +0x1b0, 0x14025b250\ncall    sub_14005E430                                                  ; +0x1b7, 0x14025b257\nlea     rcx, [rbx+1B8h]                                                ; +0x1bc, 0x14025b25c\ncall    sub_140257B50                                                  ; +0x1c3, 0x14025b263\nadd     rbx, 208h                                                      ; +0x1c8, 0x14025b268\ncmp     rbx, rsi                                                       ; +0x1cf, 0x14025b26f\njnz     short loc_14025B250                                            ; +0x1d2, 0x14025b272\nmov     rax, [rdi+608h]                                                ; +0x1d4, 0x14025b274\nmov     [rdi+610h], rax                                                ; +0x1db, 0x14025b27b\nlea     rcx, [rdi+620h]                                                ; +0x1e2, 0x14025b282\ncall    sub_1402651F0                                                  ; +0x1e9, 0x14025b289\nlea     rcx, [rdi+6D0h]                                                ; +0x1ee, 0x14025b28e\ncall    sub_14005D290                                                  ; +0x1f5, 0x14025b295\nmov     rax, [rdi+790h]                                                ; +0x1fa, 0x14025b29a\ncmp     rax, [rdi+798h]                                                ; +0x201, 0x14025b2a1\njz      short loc_14025B2B1                                            ; +0x208, 0x14025b2a8\nmov     [rdi+798h], rax                                                ; +0x20a, 0x14025b2aa\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x211, 0x14025b2b1\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x216, 0x14025b2b6\nadd     rsp, 20h                                                       ; +0x21b, 0x14025b2bb\npop     rdi                                                            ; +0x21f, 0x14025b2bf\nretn                                                                   ; +0x220, 0x14025b2c0", "xrefs": ["GJEffectManager::loadFromState @ 0x1402644bc", "LevelEditorLayer::updateGameObjects @ 0x1402dc275", "LevelEditorLayer::onPlaytest @ 0x1402dfe5c", "LevelEditorLayer::onStopPlaytest @ 0x1402e0c37", "PlayLayer::loadDefaultColors @ 0x1403b1ceb", "<???> @ 0x1406cfc78"], "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"}