//
// GJEffectManager::createRotateCommand from 0x1002e0a70 to 0x1002e0b62 (242 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::triggerRotateCommand @ 0x1000f1b4c
// > GJBaseGameLayer::triggerRotateCommand @ 0x10013861e
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// local variable allocation has failed, the output may be wrong!
void __fastcall GJEffectManager::createRotateCommand(
GJEffectManager *a1,
float a2,
float a3,
int a4,
int a5,
int a6,
float a7,
bool a8,
bool a9,
bool a10,
int a11,
int a12)
{
GroupCommandObject2 *end; // r14
GroupCommandObject2 *v14; // r14
int v15; // ecx
end = a1->m_unkVector560.__end_;
if ( end >= a1->m_unkVector560.__end_cap_.__value_ )
{
v14 = (GroupCommandObject2 *)sub_1002F0910(&a1->m_unkVector560, *(double *)&a2, *(double *)&a3, *(double *)&a7);
}
else
{
sub_1004ECE70(a1->m_unkVector560.__end_, *(double *)&a2, *(double *)&a3, *(double *)&a7);
v14 = end + 1;
a1->m_unkVector560.__end_ = v14;
}
v15 = 1;
if ( !a9 )
v15 = 2 * a10;
a1->m_unkVector560.__end_ = v14;
v14[-1].m_targetGroupID = a4;
v14[-1].m_centerGroupID = a5;
v14[-1].m_triggerUniqueID = a11;
v14[-1].m_controlID = a12;
GroupCommandObject2::runRotateCommand(v14 - 1, a2, a3, a6, a7, a8, v15);
}