//
// SetupInstantCountPopup::updateTargetID from 0x140423710 to 0x1404237dd (205 bytes)
//
// 5 xrefs:
// > SetupInstantCountPopup::onTargetID2Arrow @ 0x14042347a
// > SetupInstantCountPopup::textChanged @ 0x1404236e5
// > ??> @ 0x1406a07a0
// > ??> @ 0x1406a07b0
// > ??> @ 0x1406d965c
//
// 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 SetupInstantCountPopup::updateTargetID(SetupInstantCountPopup *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) );
}
}
}
}