//
// GJEffectManager::createRotateCommand from 0x5d0ae4 to 0x5d0b9a (182 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::triggerRotateCommand @ 0x4621fc
// > GJBaseGameLayer::triggerRotateCommand @ 0x5a25ec
//
// 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:54:04 +0000
//
int __fastcall GJEffectManager::createRotateCommand(
GJEffectManager *this,
float a2,
float a3,
int a4,
int a5,
int a6,
float a7,
bool a8,
double a9,
int a10,
int a11,
int a12)
{
int v16; // r5
GroupCommandObject2 *v17; // r0
GroupCommandObject2 *v18; // r0
_DWORD *v19; // r3
if ( LOBYTE(a9) )
{
v16 = 1;
}
else if ( BYTE4(a9) )
{
v16 = 2;
}
else
{
v16 = 0;
}
v17 = *((GroupCommandObject2 **)this + 181);
if ( (unsigned int)v17 >= *((_DWORD *)this + 182) )
{
std::vector::__emplace_back_slow_path<>((const GroupCommandObject2 **)this + 180);
}
else
{
if ( v17 )
GroupCommandObject2::GroupCommandObject2(v17);
*((_DWORD *)this + 181) += 488;
}
v18 = *((GroupCommandObject2 **)this + 181);
*((_DWORD *)v18 - 112) = a4;
v19 = (_DWORD *)((char *)v18 - 444);
v18 = (GroupCommandObject2 *)((char *)v18 - 488);
*v19 = a5;
*((_DWORD *)v18 + 86) = a10;
*((_DWORD *)v18 + 87) = a11;
return GroupCommandObject2::runRotateCommand(v18, a2, a3, a6, a7, a8, v16);
}