//
// GJEffectManager::createRotateCommand from 0xa15e60 to 0xa15f88 (296 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::triggerRotateCommand @ 0x78d170
// > GJBaseGameLayer::triggerRotateCommand @ 0x9be844
// > ??> @ 0x101a40
//
// 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:33 +0000
//
__int64 __fastcall GJEffectManager::createRotateCommand(
GJEffectManager *this,
float a2,
float a3,
int a4,
int a5,
int a6,
float a7,
bool a8,
char a9,
char a10,
int a11,
int a12)
{
int v17; // w3
unsigned __int64 v18; // x2
GroupCommandObject2 *v19; // x0
char *v20; // x5
int v22; // [xsp+58h] [xbp+58h]
int v23; // [xsp+58h] [xbp+58h]
float v24; // [xsp+60h] [xbp+60h]
float v25; // [xsp+60h] [xbp+60h]
float v26; // [xsp+70h] [xbp+70h]
float v27; // [xsp+70h] [xbp+70h]
float v28; // [xsp+80h] [xbp+80h]
float v29; // [xsp+80h] [xbp+80h]
int v30; // [xsp+90h] [xbp+90h]
int v31; // [xsp+90h] [xbp+90h]
int v32; // [xsp+98h] [xbp+98h]
int v33; // [xsp+98h] [xbp+98h]
v17 = 1;
if ( !a9 )
{
if ( a10 )
v17 = 2;
else
v17 = 0;
}
v18 = *((_QWORD *)this + 156);
v19 = *((GroupCommandObject2 **)this + 155);
if ( (unsigned __int64)v19 >= v18 )
{
v23 = a11;
v25 = a7;
v31 = a6;
v27 = a3;
v33 = v17;
v29 = a2;
std::vector::__emplace_back_slow_path<>((void **)this + 154);
v20 = *((char **)this + 155);
a11 = v23;
a7 = v25;
a6 = v31;
a3 = v27;
v17 = v33;
a2 = v29;
}
else
{
if ( v19 )
{
v22 = a11;
v24 = a7;
v30 = a6;
v26 = a3;
v32 = v17;
v28 = a2;
GroupCommandObject2::GroupCommandObject2(v19);
a7 = v24;
v19 = *((GroupCommandObject2 **)this + 155);
a3 = v26;
a11 = v22;
a2 = v28;
a6 = v30;
v17 = v32;
}
v20 = (char *)v19 + 520;
*((_QWORD *)this + 155) = (char *)v19 + 520;
}
*((_DWORD *)v20 - 120) = a4;
*((_DWORD *)v20 - 119) = a5;
*((_DWORD *)v20 - 44) = a11;
*((_DWORD *)v20 - 43) = a12;
return GroupCommandObject2::runRotateCommand((GroupCommandObject2 *)(v20 - 520), a2, a3, a6, a7, a8, v17);
}