//
// GroupCommandObject2::step from 0xba2708 to 0xba27dc (212 bytes)
//
// 5 xrefs:
// > GJEffectManager::prepareMoveActions @ 0xa116c4
// > GJEffectManager::prepareMoveActions @ 0xa116d8
// > GJEffectManager::prepareMoveActions @ 0xa11738
// > GroupCommandObject2::stepTransformCommand @ 0xba2854
// > ??> @ 0x63958
//
// 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 13:02:47 +0000
//
double __fastcall GroupCommandObject2::step(GroupCommandObject2 *this, double result)
{
int v2; // w1
double v3; // d1
int v4; // w1
GroupCommandObject2 *v5; // x19
float v6; // s0
int v7; // w1
float v8; // s0
if ( *((_BYTE *)this + 113) )
return result;
v2 = *((unsigned __int8 *)this + 112);
v3 = *(float *)&result + *((double *)this + 4);
*((double *)this + 4) = v3;
if ( v2 )
return result;
if ( *((_BYTE *)this + 432) )
{
v4 = *((_DWORD *)this + 100);
v5 = this;
*((_BYTE *)this + 432) = 0;
if ( !v4 )
goto LABEL_5;
LABEL_10:
v6 = *((double *)v5 + 51);
result = GroupCommandObject2::updateAction(v5, v4, v6);
v7 = *((_DWORD *)v5 + 101);
if ( v7 )
{
v8 = *((double *)v5 + 52);
result = GroupCommandObject2::updateAction(v5, v7, v8);
}
LODWORD(result) = *((_DWORD *)v5 + 107);
if ( *(float *)&result > 0.0 )
{
result = *(float *)&result;
if ( result >= *((double *)v5 + 3) )
goto LABEL_7;
}
return result;
}
v4 = *((_DWORD *)this + 100);
v5 = this;
*((float *)this + 107) = *((float *)this + 107) + *(float *)&result;
if ( v4 )
goto LABEL_10;
LABEL_5:
result = *((double *)v5 + 3);
if ( v3 >= result && result != -1.0 )
LABEL_7:
*((_BYTE *)v5 + 112) = 1;
return result;
}