//
// GJPFollowCommandLayer::updateTargetGroupID from 0x14028cd50 to 0x14028ce1d (205 bytes)
//
// 3 xrefs:
// > GJPFollowCommandLayer::onUpdateGroupID @ 0x14028c635
// > GJPFollowCommandLayer::textChanged @ 0x14028c755
// > ??> @ 0x1406d16f4
//
// 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; // edx
EffectGameObject *m_gameObject; // rax
unsigned int i; // edi
struct cocos2d::CCObject *v5; // rax
int v6; // ecx
m_targetGroupID = 0;
if ( a1->m_targetGroupID >= 0 )
m_targetGroupID = a1->m_targetGroupID;
m_gameObject = a1->m_gameObject;
if ( m_targetGroupID > 9999 )
m_targetGroupID = 9999;
a1->m_targetGroupID = m_targetGroupID;
if ( m_gameObject )
{
m_gameObject->m_targetGroupID = m_targetGroupID;
}
else
{
for ( i = 0; i < cocos2d::CCArray::count(a1->m_gameObjects); v5[26].m_uAutoReleaseCount = v6 )
{
v5 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, i);
v6 = a1->m_targetGroupID;
if ( v6 < 0 )
v6 = 0;
if ( v6 > 9999 )
v6 = 9999;
++i;
}
}
}