//
// SetupCountTriggerPopup::updateTargetID from 0x1000f4cfc to 0x1000f4d80 (132 bytes)
//
// 2 xrefs:
// > SetupCountTriggerPopup::onTargetIDArrow @ 0x1000f483c
// > SetupCountTriggerPopup::textChanged @ 0x1000f4ea0
//
// 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 __fastcall SetupCountTriggerPopup::updateTargetID(SetupCountTriggerPopup *a1)
{
int v2; // w1
EffectGameObject *m_gameObject; // x0
cocos2d::CCArray *m_gameObjects; // x0
__int64 v5; // x20
EffectGameObject *v6; // x0
if ( (a1->m_targetID & ~(a1->m_targetID >> 31)) >= 9999 )
v2 = 9999;
else
v2 = a1->m_targetID & ~(a1->m_targetID >> 31);
a1->m_targetID = v2;
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
EffectGameObject::setTargetID(m_gameObject, v2);
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects && (unsigned int)sub_10024A36C(m_gameObjects) )
{
v5 = 0;
do
{
v6 = (EffectGameObject *)sub_10024A388(a1->m_gameObjects, v5);
EffectGameObject::setTargetID(v6, a1->m_targetID);
v5 = (unsigned int)(v5 + 1);
}
while ( (unsigned int)v5 < (unsigned int)sub_10024A36C(a1->m_gameObjects) );
}
}
SetupTriggerPopup::updateEditorLabel(a1);
}