//
// GJEffectManager::createRotateCommand from 0x1002cb510 to 0x1002cb602 (242 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::triggerRotateCommand @ 0x1000c543c
// > GJBaseGameLayer::triggerRotateCommand @ 0x100115fee
//
// This function is hookable on this platform (idp: pc, 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:28:10 +0000
//
__int64 __fastcall GJEffectManager::createRotateCommand(
__int64 a1,
int a2,
int a3,
unsigned int a4,
unsigned __int8 a5,
char a6,
float a7,
float a8,
float a9,
unsigned __int8 a10,
int a11,
int a12)
{
unsigned __int64 v13; // r14
__int64 v14; // r14
__int64 v15; // rcx
v13 = *(_QWORD *)(a1 + 1240);
if ( v13 >= *(_QWORD *)(a1 + 1248) )
{
v14 = sub_1002DB3D0(a1 + 1232);
}
else
{
sub_1004E7A00(*(_QWORD *)(a1 + 1240));
v14 = v13 + 520;
*(_QWORD *)(a1 + 1240) = v14;
}
v15 = 1;
if ( !a6 )
v15 = 2 * (unsigned int)a10;
*(_QWORD *)(a1 + 1240) = v14;
*(_DWORD *)(v14 - 480) = a2;
*(_DWORD *)(v14 - 476) = a3;
*(_DWORD *)(v14 - 176) = a11;
*(_DWORD *)(v14 - 172) = a12;
return GroupCommandObject2::runRotateCommand(v14 - 520, a4, a5, v15, a7, a8, a9);
}