//
// GJEffectManager::getTempGroupCommand from 0x49cdb0 to 0x49ce0e (94 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::processDynamicObjectActions @ 0x48310e
// > GJEffectManager::prepareMoveActions @ 0x4a0cbe
// > GJEffectManager::prepareMoveActions @ 0x4a0ea8
// > GJEffectManager::createKeyframeCommand @ 0x4a552c
//
// 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; // r2
GroupCommandObject2 *v3; // r6
GJEffectManager *v5; // [sp+0h] [bp-8h] BYREF
v5 = a1;
m_finish = a1->m_unkVector530.m_finish;
if ( a1->m_unkVector530.m_start == m_finish )
{
v3 = (GroupCommandObject2 *)operator new(0x1E8u);
GroupCommandObject2::GroupCommandObject2(v3);
v5 = (GJEffectManager *)v3;
}
else
{
v5 = (GJEffectManager *)*(m_finish - 1);
a1->m_unkVector530.m_finish = m_finish - 1;
}
std::vector::push_back((const void **)&a1->m_unkVector518.m_start, &v5);
return (GroupCommandObject2 *)v5;
}