//
// GJPFollowCommandLayer::updateTargetGroupID from 0x100366ef0 to 0x100366f86 (150 bytes)
//
// 0 xrefs:
//
// 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 GJPFollowCommandLayer::updateTargetGroupID(GJPFollowCommandLayer *a1)
{
int m_targetGroupID; // ecx
int v3; // esi
EffectGameObject *m_gameObject; // rdi
unsigned int v5; // r14d
EffectGameObject *v6; // rax
m_targetGroupID = 0;
if ( a1->m_targetGroupID > 0 )
m_targetGroupID = a1->m_targetGroupID;
v3 = 9999;
if ( m_targetGroupID < 9999 )
v3 = m_targetGroupID;
a1->m_targetGroupID = v3;
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
EffectGameObject::setTargetID(m_gameObject, v3);
}
else if ( (unsigned int)sub_100720070(a1->m_gameObjects) )
{
v5 = 0;
do
{
v6 = (EffectGameObject *)sub_1007200C0(a1->m_gameObjects, v5);
EffectGameObject::setTargetID(v6, a1->m_targetGroupID);
++v5;
}
while ( v5 < (unsigned int)sub_100720070(a1->m_gameObjects) );
}
}