//
// SetupPulsePopup::updateTargetID from 0x8ed56c to 0x8ed5d8 (108 bytes)
//
// 5 xrefs:
// > SetupPulsePopup::colorSelectClosed @ 0x8ed770
// > SetupPulsePopup::textChanged @ 0x8edcbc
// > SetupPulsePopup::onSelectTargetMode @ 0x8ee654
// > SetupPulsePopup::onUpdateCustomColor @ 0x8ee798
// > ??> @ 0xc78c0
//
// 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 SetupPulsePopup::updateTargetID(SetupPulsePopup *a1)
{
EffectGameObject *m_gameObject; // x0
cocos2d::CCArray *m_gameObjects; // x0
unsigned int v4; // w19
EffectGameObject *v5; // x0
bool v6; // cf
unsigned int v7; // w1
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
EffectGameObject::setTargetID(m_gameObject, a1->m_targetGroupID);
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects )
{
v4 = 0;
while ( 1 )
{
v6 = v4 >= (unsigned int)cocos2d::CCArray::count(m_gameObjects);
v7 = v4++;
if ( v6 )
break;
v5 = (EffectGameObject *)cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v7);
EffectGameObject::setTargetID(v5, a1->m_targetGroupID);
m_gameObjects = a1->m_gameObjects;
}
}
}
}