//
// SetupCountTriggerPopup::updateTargetID from 0x954544 to 0x9545d4 (144 bytes)
//
// 4 xrefs:
// > SetupCountTriggerPopup::onTargetIDArrow @ 0x95460c
// > SetupCountTriggerPopup::onTargetIDArrow @ 0x95462c
// > SetupCountTriggerPopup::textChanged @ 0x954774
// > ??> @ 0x5e0f8
//
// 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 SetupCountTriggerPopup::updateTargetID(SetupCountTriggerPopup *a1)
{
int m_targetID; // w1
EffectGameObject *m_gameObject; // x0
cocos2d::CCArray *m_gameObjects; // x0
unsigned int v5; // w19
EffectGameObject *v6; // x0
bool v7; // cf
unsigned int v8; // w1
m_targetID = a1->m_targetID;
if ( m_targetID < 0 )
m_targetID = 0;
m_gameObject = a1->m_gameObject;
if ( m_targetID > 9999 )
m_targetID = 9999;
a1->m_targetID = m_targetID;
if ( m_gameObject )
{
EffectGameObject::setTargetID(m_gameObject, m_targetID);
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects )
{
v5 = 0;
while ( 1 )
{
v7 = v5 >= (unsigned int)cocos2d::CCArray::count(m_gameObjects);
v8 = v5++;
if ( v7 )
break;
v6 = (EffectGameObject *)cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v8);
EffectGameObject::setTargetID(v6, a1->m_targetID);
m_gameObjects = a1->m_gameObjects;
}
}
}
SetupTriggerPopup::updateEditorLabel(a1);
}