//
// GJEffectManager::createPlayerFollowCommand from 0x1002e0da0 to 0x1002e0e73 (211 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::triggerPlayerFollowCommand @ 0x1000f1bfe
// > EffectGameObject::triggerObject @ 0x1001ba00b
//
// 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::createPlayerFollowCommand(
GJEffectManager *a1,
float a2,
float a3,
int a4,
float a5,
float a6,
int a7,
int a8,
int a9)
{
GroupCommandObject2 *end; // r13
GroupCommandObject2 *v13; // r13
end = a1->m_unkVector560.__end_;
if ( end >= a1->m_unkVector560.__end_cap_.__value_ )
{
v13 = (GroupCommandObject2 *)sub_1002F0910(&a1->m_unkVector560, *(double *)&a2, *(double *)&a3, *(double *)&a5);
}
else
{
sub_1004ECE70(a1->m_unkVector560.__end_, *(double *)&a2, *(double *)&a3, *(double *)&a5);
v13 = end + 1;
a1->m_unkVector560.__end_ = v13;
}
a1->m_unkVector560.__end_ = v13;
GroupCommandObject2::reset(v13 - 1);
v13[-1].m_targetGroupID = a7;
v13[-1].m_triggerUniqueID = a8;
v13[-1].m_controlID = a9;
GroupCommandObject2::runPlayerFollowCommand(v13 - 1, a2, a3, a4, a5, a6);
}