//
// GJEffectManager::createRotateCommand from 0x8b26f0 to 0x8b2818 (296 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::triggerRotateCommand @ 0x661328
// > GJBaseGameLayer::triggerRotateCommand @ 0x86cf3c
// > ??> @ 0xc6018
//
// 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
//
void 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)
{
int v17; // w3
GroupCommandObject2 *m_finish; // x0
GroupCommandObject2 *v19; // x5
int v20; // [xsp+58h] [xbp+58h]
int v21; // [xsp+58h] [xbp+58h]
float v22; // [xsp+60h] [xbp+60h]
float v23; // [xsp+60h] [xbp+60h]
float v24; // [xsp+70h] [xbp+70h]
float v25; // [xsp+70h] [xbp+70h]
float v26; // [xsp+80h] [xbp+80h]
float v27; // [xsp+80h] [xbp+80h]
int v28; // [xsp+90h] [xbp+90h]
int v29; // [xsp+90h] [xbp+90h]
int v30; // [xsp+98h] [xbp+98h]
int v31; // [xsp+98h] [xbp+98h]
v17 = 1;
if ( !a9 )
{
if ( a10 )
v17 = 2;
else
v17 = 0;
}
m_finish = a1->m_unkVector560.m_finish;
if ( m_finish == a1->m_unkVector560.m_reserveEnd )
{
v21 = a11;
v23 = a7;
v29 = a6;
v25 = a3;
v31 = v17;
v27 = a2;
std::vector::_M_emplace_back_aux<>((char **)&a1->m_unkVector560);
v19 = a1->m_unkVector560.m_finish;
a11 = v21;
a7 = v23;
a6 = v29;
a3 = v25;
v17 = v31;
a2 = v27;
}
else
{
if ( m_finish )
{
v20 = a11;
v22 = a7;
v28 = a6;
v24 = a3;
v30 = v17;
v26 = a2;
GroupCommandObject2::GroupCommandObject2(m_finish);
a7 = v22;
m_finish = a1->m_unkVector560.m_finish;
a3 = v24;
a11 = v20;
a2 = v26;
a6 = v28;
v17 = v30;
}
v19 = m_finish + 1;
a1->m_unkVector560.m_finish = m_finish + 1;
}
v19[-1].m_targetGroupID = a4;
v19[-1].m_centerGroupID = a5;
v19[-1].m_controlID = a12;
v19[-1].m_triggerUniqueID = a11;
GroupCommandObject2::runRotateCommand(v19 - 1, a2, a3, a6, a7, a8, v17);
}