//
// SetupEndPopup::updateTargetID from 0x14041d9a0 to 0x14041da6d (205 bytes)
//
// 5 xrefs:
// > SetupEndPopup::onTargetIDArrow @ 0x14041d80a
// > SetupEndPopup::textChanged @ 0x14041d8fb
// > ??> @ 0x1406a02e4
// > ??> @ 0x1406a02f4
// > ??> @ 0x1406d944c
//
// 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 SetupEndPopup::updateTargetID(SetupEndPopup *a1)
{
int m_groupID; // edx
EffectGameObject *m_gameObject; // rax
cocos2d::CCArray *m_gameObjects; // rcx
unsigned int v5; // edi
struct cocos2d::CCObject *v6; // rax
int v7; // ecx
m_groupID = 0;
if ( a1->m_groupID >= 0 )
m_groupID = a1->m_groupID;
m_gameObject = a1->m_gameObject;
if ( m_groupID > 9999 )
m_groupID = 9999;
a1->m_groupID = m_groupID;
if ( m_gameObject )
{
m_gameObject->m_targetGroupID = m_groupID;
}
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_groupID;
if ( v7 < 0 )
v7 = 0;
if ( v7 > 9999 )
v7 = 9999;
++v5;
v6[26].m_uAutoReleaseCount = v7;
}
while ( v5 < cocos2d::CCArray::count(a1->m_gameObjects) );
}
}
}
}