// // GJEffectManager::resetEffects from 0xa07e28 to 0xa080d8 (688 bytes) // // 4 xrefs: // > LevelEditorLayer::onPlaytest @ 0x7965bc // > GJBaseGameLayer::resetLevelVariables @ 0x9e74c0 // > GJEffectManager::reset @ 0xa081d8 // > @ 0x701e0 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:59:22 +0000 // float __fastcall GJEffectManager::resetEffects(GJEffectManager *this) { _QWORD *v2; // x0 _QWORD *v3; // x20 __int64 v4; // x2 __int64 v5; // x0 __int64 v6; // x20 __int64 v7; // x2 char *v8; // x0 char *v9; // x3 __int64 v10; // x20 __int64 i; // x2 char *v12; // x0 char *v13; // x3 __int64 v14; // x20 __int64 j; // x2 char *v16; // x0 char *v17; // x3 __int64 v18; // x20 __int64 k; // x2 char *v20; // x0 char *v21; // x3 __int64 m; // x20 __int64 v24; // x2 __int64 v25; // x0 __int64 v26; // x0 __int64 v27; // x2 __int64 v28; // x0 GJEffectManager::removeAllPulseActions(this); if ( *((_QWORD *)this + 54) ) { v2 = *((_QWORD **)this + 53); if ( v2 ) { do { v3 = (_QWORD *)*v2; operator delete(v2); v2 = v3; } while ( v3 ); } v4 = *((_QWORD *)this + 52); v5 = 0; *((_QWORD *)this + 53) = 0; if ( v4 ) { do *(_QWORD *)(*((_QWORD *)this + 51) + 8 * v5++) = 0; while ( v5 != v4 ); } *((_QWORD *)this + 54) = 0; } v6 = *((_QWORD *)this + 56); while ( 1 ) { v7 = *((_QWORD *)this + 57); if ( v6 == v7 ) break; while ( 1 ) { *((_QWORD *)this + 57) = v7 - 56; v8 = *(char **)(v7 - 24); if ( !v8 ) break; v9 = *(char **)(v7 - 16); if ( v8 != v9 ) *(_QWORD *)(v7 - 16) = &v9[4 * ~((unsigned __int64)(v9 - 4 - v8) >> 2)]; operator delete(v8); v7 = *((_QWORD *)this + 57); if ( v6 == v7 ) goto LABEL_13; } } LABEL_13: v10 = *((_QWORD *)this + 67); for ( i = *((_QWORD *)this + 68); v10 != i; i = *((_QWORD *)this + 68) ) { *((_QWORD *)this + 68) = i - 48; v12 = *(char **)(i - 24); if ( v12 ) { v13 = *(char **)(i - 16); if ( v12 != v13 ) *(_QWORD *)(i - 16) = &v13[4 * ~((unsigned __int64)(v13 - 4 - v12) >> 2)]; operator delete(v12); } } v14 = *((_QWORD *)this + 64); for ( j = *((_QWORD *)this + 65); v14 != j; j = *((_QWORD *)this + 65) ) { *((_QWORD *)this + 65) = j - 56; v16 = *(char **)(j - 24); if ( v16 ) { v17 = *(char **)(j - 16); if ( v16 != v17 ) *(_QWORD *)(j - 16) = &v17[4 * ~((unsigned __int64)(v17 - 4 - v16) >> 2)]; operator delete(v16); } } GJEffectManager::resetToggledGroups(this); std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::clear((_QWORD *)this + 89); GJEffectManager::transferPersistentItems(this); *((_DWORD *)this + 208) = 0; GJEffectManager::resetTriggeredIDs(this); v18 = *((_QWORD *)this + 142); for ( k = *((_QWORD *)this + 143); v18 != k; k = *((_QWORD *)this + 143) ) { *((_QWORD *)this + 143) = k - 72; v20 = *(char **)(k - 24); if ( v20 ) { v21 = *(char **)(k - 16); if ( v20 != v21 ) *(_QWORD *)(k - 16) = &v21[4 * ~((unsigned __int64)(v21 - 4 - v20) >> 2)]; operator delete(v20); } } std::__hash_table,std::equal_to,std::allocator>::clear((_QWORD *)this + 137); if ( *((_QWORD *)this + 62) ) { sub_9F83D4(*((_QWORD **)this + 61)); *((_QWORD *)this + 61) = 0; v24 = *((_QWORD *)this + 60); v25 = 0; if ( v24 ) { do *(_QWORD *)(*((_QWORD *)this + 59) + 8 * v25++) = 0; while ( v25 != v24 ); } v26 = *((_QWORD *)this + 123); *((_QWORD *)this + 62) = 0; if ( !v26 ) goto LABEL_33; goto LABEL_42; } if ( *((_QWORD *)this + 123) ) { LABEL_42: sub_9F8474(*((_QWORD **)this + 122)); *((_QWORD *)this + 122) = 0; v27 = *((_QWORD *)this + 121); v28 = 0; if ( v27 ) { do *(_QWORD *)(*((_QWORD *)this + 120) + 8 * v28++) = 0; while ( v28 != v27 ); } *((_QWORD *)this + 123) = 0; } LABEL_33: for ( m = *((_QWORD *)this + 117); m; m = std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::erase( (__int64 *)this + 115, (_QWORD *)m) ) { while ( std::__hash_table,std::equal_to,std::allocator>::find( (_QWORD *)this + 99, (int *)(m + 16)) ) { m = *(_QWORD *)m; if ( !m ) goto LABEL_37; } } LABEL_37: *((_DWORD *)this + 406) = 0; *((_DWORD *)this + 407) = 0; *((_DWORD *)this + 408) = 0; *((_DWORD *)this + 409) = 0; *((_DWORD *)this + 410) = 0; *((_DWORD *)this + 411) = 0; return 0.0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source