//
// SetupCollisionTriggerPopup::updateTargetID from 0x140419d40 to 0x140419e0d (205 bytes)
//
// 5 xrefs:
// > SetupCollisionTriggerPopup::onTargetIDArrow @ 0x14041976a
// > SetupCollisionTriggerPopup::textChanged @ 0x1404199d5
// > ??> @ 0x14069fec4
// > ??> @ 0x14069fed4
// > ??> @ 0x1406d91dc
//
// 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 SetupCollisionTriggerPopup::updateTargetID(SetupCollisionTriggerPopup *a1)
{
int m_targetID; // edx
EffectGameObject *m_gameObject; // rax
cocos2d::CCArray *m_gameObjects; // rcx
unsigned int v5; // edi
struct cocos2d::CCObject *v6; // rax
int v7; // ecx
m_targetID = 0;
if ( a1->m_targetID >= 0 )
m_targetID = a1->m_targetID;
m_gameObject = a1->m_gameObject;
if ( m_targetID > 9999 )
m_targetID = 9999;
a1->m_targetID = m_targetID;
if ( m_gameObject )
{
m_gameObject->m_targetGroupID = m_targetID;
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects )
{
v5 = 0;
if ( cocos2d::CCArray::count(m_gameObjects) )
{
do
{
v6 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v5);
v7 = a1->m_targetID;
if ( v7 < 0 )
v7 = 0;
if ( v7 > 9999 )
v7 = 9999;
++v5;
v6[26].m_uAutoReleaseCount = v7;
}
while ( v5 < cocos2d::CCArray::count(a1->m_gameObjects) );
}
}
}
}