//
// SetupCountTriggerPopup::updateTargetID from 0x4f6b66 to 0x4f6bc0 (90 bytes)
//
// 2 xrefs:
// > SetupCountTriggerPopup::onTargetIDArrow @ 0x4f6be0
// > SetupCountTriggerPopup::textChanged @ 0x4f6cbc
//
// 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 v1; // r1
EffectGameObject *m_gameObject; // r0
unsigned int i; // r5
EffectGameObject *v5; // r0
v1 = a1->m_targetID & ~(a1->m_targetID >> 31);
if ( v1 >= 9999 )
v1 = 9999;
a1->m_targetID = v1;
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
EffectGameObject::setTargetID(m_gameObject, v1);
}
else if ( a1->m_gameObjects )
{
for ( i = 0; i < cocos2d::CCArray::count(a1->m_gameObjects); ++i )
{
v5 = (EffectGameObject *)cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, i);
EffectGameObject::setTargetID(v5, a1->m_targetID);
}
}
SetupTriggerPopup::updateEditorLabel(a1);
}