//
// GJEffectManager::resetTempGroupCommands from 0x5c7d58 to 0x5c7e02 (170 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::updateDebugDraw @ 0x47fd98
// > GJEffectManager::prepareMoveActions @ 0x5cd9f0
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:53:54 +0000
//
void __fastcall GJEffectManager::resetTempGroupCommands(GJEffectManager *this, int a2, int a3)
{
GroupCommandObject2 **v3; // r8
char *v4; // r10
GroupCommandObject2 **v6; // r7
GroupCommandObject2 *v8; // r5
GroupCommandObject2 *v9; // t1
int v10; // r3
int v11; // r5
_DWORD *v12; // r3
_DWORD v13[3]; // [sp+0h] [bp+0h] BYREF
v13[0] = this;
v13[1] = a2;
v13[2] = a3;
v3 = *((GroupCommandObject2 ***)this + 172);
v4 = (char *)this + 696;
v6 = *((GroupCommandObject2 ***)this + 171);
while ( v6 != v3 )
{
v9 = *v6++;
v8 = v9;
v13[0] = v9;
if ( a2 || (unsigned int)(*((_DWORD *)this + 175) - *((_DWORD *)this + 174)) >= 0xFA0 )
{
if ( v8 )
{
GroupCommandObject2::~GroupCommandObject2(v8);
operator delete(v8);
}
}
else
{
GroupCommandObject2::reset(v8);
v12 = *((_DWORD **)this + 175);
if ( v12 == *((_DWORD **)this + 176) )
{
std::vector::__push_back_slow_path((int)v4, v13);
}
else
{
if ( v12 )
*v12 = v13[0];
*((_DWORD *)this + 175) += 4;
}
}
}
v10 = *((_DWORD *)this + 171);
while ( 1 )
{
v11 = *((_DWORD *)this + 172);
if ( v10 == v11 )
break;
*((_DWORD *)this + 172) = v11 - 4;
}
}