//
// GJEffectManager::getTempGroupCommand from 0x5c7ccc to 0x5c7d52 (134 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::processDynamicObjectActions @ 0x5ad606
// > GJEffectManager::prepareMoveActions @ 0x5ce268
// > GJEffectManager::prepareMoveActions @ 0x5ce46c
// > GJEffectManager::createKeyframeCommand @ 0x5d0e08
//
// 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
//
int __fastcall GJEffectManager::getTempGroupCommand(GJEffectManager *this, int a2)
{
int v3; // r3
int v4; // r3
int v5; // t1
int v6; // r2
GroupCommandObject2 *v7; // r6
_DWORD *v8; // r3
_DWORD v10[2]; // [sp+0h] [bp-8h] BYREF
v10[0] = this;
v10[1] = a2;
v3 = *((_DWORD *)this + 175);
if ( *((_DWORD *)this + 174) == v3 )
{
v7 = (GroupCommandObject2 *)operator new(0x1E8u);
GroupCommandObject2::GroupCommandObject2(v7);
v10[0] = v7;
}
else
{
v5 = *(_DWORD *)(v3 - 4);
v4 = v3 - 4;
v10[0] = v5;
while ( 1 )
{
v6 = *((_DWORD *)this + 175);
if ( v4 == v6 )
break;
*((_DWORD *)this + 175) = v6 - 4;
}
}
v8 = *((_DWORD **)this + 172);
if ( v8 == *((_DWORD **)this + 173) )
{
std::vector::__push_back_slow_path((int)this + 684, v10);
}
else
{
if ( v8 )
*v8 = v10[0];
*((_DWORD *)this + 172) += 4;
}
return v10[0];
}