//
// GJRotateCommandLayer::updateTargetGroupID2 from 0x928370 to 0x9283f0 (128 bytes)
//
// 3 xrefs:
// > GJRotateCommandLayer::onUpdateGroupID2 @ 0x92843c
// > GJRotateCommandLayer::textChanged @ 0x928a94
// > ??> @ 0x9f330
//
// 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::updateTargetGroupID2(GJRotateCommandLayer *a1)
{
int m_centerGroupID; // w1
EffectGameObject *m_gameObject; // x3
unsigned int v4; // w19
EffectGameObject *v5; // x0
bool v6; // cf
unsigned int v7; // w1
m_centerGroupID = a1->m_centerGroupID;
m_gameObject = a1->m_gameObject;
if ( m_centerGroupID < 0 )
m_centerGroupID = 0;
if ( m_centerGroupID > 9999 )
m_centerGroupID = 9999;
a1->m_centerGroupID = m_centerGroupID;
if ( m_gameObject )
{
EffectGameObject::setTargetID2(m_gameObject, m_centerGroupID);
}
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::setTargetID2(v5, a1->m_centerGroupID);
}
}
}