//
// GJEffectManager::resetTempGroupCommands from 0x100012b70 to 0x100012c34 (196 bytes)
//
// 2 xrefs:
// > GJEffectManager::prepareMoveActions @ 0x100012c88
// > LevelEditorLayer::updateDebugDraw @ 0x100368458
//
// 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 __fastcall GJEffectManager::resetTempGroupCommands(GJEffectManager *a1, bool a2)
{
std::__vector_base::pointer begin; // x22
std::__vector_base::pointer end; // x23
GroupCommandObject2 *v6; // x21
int *v7; // x0
GroupCommandObject2 *v8; // [xsp+0h] [xbp-40h] BYREF
std::vector *p_m_keyframes; // [xsp+8h] [xbp-38h] BYREF
begin = a1->m_unkVector518.__begin_;
end = a1->m_unkVector518.__end_;
if ( begin != end )
{
do
{
v6 = *begin;
v8 = *begin;
if ( a2 || (unsigned __int64)((char *)a1->m_unkVector530.__end_ - (char *)a1->m_unkVector530.__begin_) >> 6 > 0x7C )
{
if ( v6 )
{
v7 = v6->m_remapKeys.__begin_;
if ( v7 )
{
v6->m_remapKeys.__end_ = v7;
operator delete(v7);
}
p_m_keyframes = &v6->m_keyframes;
sub_10000B004((void ***)&p_m_keyframes);
operator delete(v6);
}
}
else
{
GroupCommandObject2::reset(v6);
sub_1000115B8((__int64)&a1->m_unkVector530, &v8);
}
++begin;
}
while ( begin != end );
begin = a1->m_unkVector518.__begin_;
}
a1->m_unkVector518.__end_ = begin;
}