//
// GJEffectManager::getTempGroupCommand from 0x8a9be0 to 0x8a9cb8 (216 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::processDynamicObjectActions @ 0x879938
// > GJEffectManager::prepareMoveActions @ 0x8b5a10
// > GJEffectManager::prepareMoveActions @ 0x8b5ad4
// > GJEffectManager::createKeyframeCommand @ 0x8bb2a4
// > ??> @ 0x8ccb8
//
// 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
//
GroupCommandObject2 *GJEffectManager::getTempGroupCommand(GJEffectManager *a1)
{
GroupCommandObject2 **m_finish; // x1
std::vector *p_m_unkVector518; // x19
GroupCommandObject2 **v4; // x1
GroupCommandObject2 *result; // x0
GroupCommandObject2 *v6; // x21
GroupCommandObject2 *v7; // [xsp+30h] [xbp+30h] BYREF
m_finish = a1->m_unkVector530.m_finish;
if ( a1->m_unkVector530.m_start == m_finish )
{
v6 = (GroupCommandObject2 *)operator new(0x208u);
GroupCommandObject2::GroupCommandObject2(v6);
v7 = v6;
}
else
{
v7 = *(m_finish - 1);
a1->m_unkVector530.m_finish = m_finish - 1;
}
p_m_unkVector518 = &a1->m_unkVector518;
v4 = p_m_unkVector518->m_finish;
if ( v4 == p_m_unkVector518->m_reserveEnd )
{
std::vector::_M_emplace_back_aux(
(__int64)p_m_unkVector518,
&v7);
return v7;
}
else
{
result = v7;
if ( v4 )
{
*v4 = v7;
v4 = p_m_unkVector518->m_finish;
result = v7;
}
p_m_unkVector518->m_finish = v4 + 1;
}
return result;
}