//
// GJPFollowCommandLayer::updateTargetGroupID from 0x924998 to 0x924a18 (128 bytes)
//
// 3 xrefs:
// > GJPFollowCommandLayer::onUpdateGroupID @ 0x924a64
// > GJPFollowCommandLayer::textChanged @ 0x924f1c
// > ??> @ 0x6acc8
//
// 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 GJPFollowCommandLayer::updateTargetGroupID(GJPFollowCommandLayer *a1)
{
int m_targetGroupID; // w1
EffectGameObject *m_gameObject; // x3
unsigned int v4; // w19
EffectGameObject *v5; // x0
bool v6; // cf
unsigned int v7; // w1
m_targetGroupID = a1->m_targetGroupID;
m_gameObject = a1->m_gameObject;
if ( m_targetGroupID < 0 )
m_targetGroupID = 0;
if ( m_targetGroupID > 9999 )
m_targetGroupID = 9999;
a1->m_targetGroupID = m_targetGroupID;
if ( m_gameObject )
{
EffectGameObject::setTargetID(m_gameObject, m_targetGroupID);
}
else
{
v4 = 0;
while ( 1 )
{
v6 = v4 >= (unsigned int)cocos2d::CCArray::count(a1->m_gameObjects);
v7 = v4++;
if ( v6 )
break;
v5 = (EffectGameObject *)cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v7);
EffectGameObject::setTargetID(v5, a1->m_targetGroupID);
}
}
}