//
// GJEffectManager::resetMoveActions from 0x9fad10 to 0x9fb018 (776 bytes)
//
// 2 xrefs:
// > GJEffectManager::reset @ 0xa081e8
// > ??> @ 0x77a10
//
// 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:16 +0000
//
_QWORD *__fastcall GJEffectManager::resetMoveActions(GJEffectManager *this)
{
__int64 v2; // x24
__int64 v3; // x20
char *v4; // x0
char *v5; // x2
_QWORD *v6; // x21
_QWORD *v7; // x19
char *v8; // x0
char *v9; // x2
char *v10; // x0
char *v11; // x2
char *v12; // x0
char *v13; // x2
char *v14; // x0
char *v15; // x2
char *v16; // x0
char *v17; // x2
char *v18; // x0
char *v19; // x2
char *v20; // x0
char *v21; // x2
char *v22; // x0
char *v23; // x2
char *v24; // x0
char *v25; // x2
_BYTE *v26; // x0
void **v27; // x19
_QWORD *v28; // x0
_QWORD *v29; // x19
__int64 v30; // x2
__int64 v31; // x0
_QWORD *result; // x0
__int64 v33; // x2
__int64 v34; // x1
v2 = *((_QWORD *)this + 154);
while ( 1 )
{
v3 = *((_QWORD *)this + 155);
if ( v2 == v3 )
break;
while ( 1 )
{
*((_QWORD *)this + 155) = v3 - 520;
v4 = *(char **)(v3 - 32);
if ( v4 )
{
v5 = *(char **)(v3 - 24);
if ( v4 != v5 )
*(_QWORD *)(v3 - 24) = &v5[4 * ~((unsigned __int64)(v5 - 4 - v4) >> 2)];
operator delete(v4);
}
v6 = *(_QWORD **)(v3 - 80);
if ( !v6 )
break;
v7 = *(_QWORD **)(v3 - 72);
if ( v6 != v7 )
{
do
{
*(_QWORD *)(v3 - 72) = v7 - 56;
v8 = (char *)*(v7 - 19);
if ( v8 )
{
v9 = (char *)*(v7 - 18);
if ( v8 != v9 )
*(v7 - 18) = &v9[8 * ~((unsigned __int64)(v9 - 8 - v8) >> 3)];
operator delete(v8);
}
v10 = (char *)*(v7 - 22);
if ( v10 )
{
v11 = (char *)*(v7 - 21);
if ( v10 != v11 )
*(v7 - 21) = &v11[8 * ~((unsigned __int64)(v11 - 8 - v10) >> 3)];
operator delete(v10);
}
v12 = (char *)*(v7 - 25);
if ( v12 )
{
v13 = (char *)*(v7 - 24);
if ( v12 != v13 )
*(v7 - 24) = &v13[8 * ~((unsigned __int64)(v13 - 8 - v12) >> 3)];
operator delete(v12);
}
v14 = (char *)*(v7 - 28);
if ( v14 )
{
v15 = (char *)*(v7 - 27);
if ( v14 != v15 )
*(v7 - 27) = &v15[8 * ~((unsigned __int64)(v15 - 8 - v14) >> 3)];
operator delete(v14);
}
v16 = (char *)*(v7 - 31);
if ( v16 )
{
v17 = (char *)*(v7 - 30);
if ( v16 != v17 )
*(v7 - 30) = &v17[8 * ~((unsigned __int64)(v17 - 8 - v16) >> 3)];
operator delete(v16);
}
v18 = (char *)*(v7 - 40);
if ( v18 )
{
v19 = (char *)*(v7 - 39);
if ( v18 != v19 )
*(v7 - 39) = &v19[8 * ~((unsigned __int64)(v19 - 8 - v18) >> 3)];
operator delete(v18);
}
v20 = (char *)*(v7 - 43);
if ( v20 )
{
v21 = (char *)*(v7 - 42);
if ( v20 != v21 )
*(v7 - 42) = &v21[8 * ~((unsigned __int64)(v21 - 8 - v20) >> 3)];
operator delete(v20);
}
v22 = (char *)*(v7 - 46);
if ( v22 )
{
v23 = (char *)*(v7 - 45);
if ( v22 != v23 )
*(v7 - 45) = &v23[8 * ~((unsigned __int64)(v23 - 8 - v22) >> 3)];
operator delete(v22);
}
v24 = (char *)*(v7 - 49);
if ( v24 )
{
v25 = (char *)*(v7 - 48);
if ( v24 != v25 )
*(v7 - 48) = &v25[8 * ~((unsigned __int64)(v25 - 8 - v24) >> 3)];
operator delete(v24);
}
v26 = (_BYTE *)*(v7 - 52);
if ( v26 )
{
v27 = (void **)(v7 - 51);
if ( v26 != *v27 )
*v27 = (char *)*v27 + 8 * ~((unsigned __int64)((char *)*v27 - 8 - v26) >> 3);
operator delete(v26);
}
v7 = *(_QWORD **)(v3 - 72);
}
while ( v6 != v7 );
v7 = *(_QWORD **)(v3 - 80);
}
operator delete(v7);
v3 = *((_QWORD *)this + 155);
if ( v2 == v3 )
goto LABEL_52;
}
}
LABEL_52:
if ( *((_QWORD *)this + 160) )
{
v28 = *((_QWORD **)this + 159);
if ( v28 )
{
do
{
v29 = (_QWORD *)*v28;
operator delete(v28);
v28 = v29;
}
while ( v29 );
}
v30 = *((_QWORD *)this + 158);
v31 = 0;
*((_QWORD *)this + 159) = 0;
if ( v30 )
{
do
*(_QWORD *)(*((_QWORD *)this + 157) + 8 * v31++) = 0;
while ( v31 != v30 );
}
*((_QWORD *)this + 160) = 0;
}
result = std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::clear((_QWORD *)this + 173);
v33 = *((_QWORD *)this + 188);
v34 = *((_QWORD *)this + 189);
if ( v33 != v34 )
{
result = (_QWORD *)(v34 + 8 * ~((unsigned __int64)(v34 - 8 - v33) >> 3));
*((_QWORD *)this + 189) = result;
}
return result;
}