//
// GJRotateCommandLayer::updateTargetGroupID from 0x928280 to 0x928300 (128 bytes)
//
// 3 xrefs:
// > GJRotateCommandLayer::onUpdateGroupID @ 0x92834c
// > GJRotateCommandLayer::textChanged @ 0x928974
// > ??> @ 0x69780
//
// 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 GJRotateCommandLayer::updateTargetGroupID(GJRotateCommandLayer *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);
}
}
}