//
// SetupInstantCountPopup::updateTargetID from 0xa9ea90 to 0xa9eb14 (132 bytes)
//
// 2 xrefs:
// > SetupInstantCountPopup::textChanged @ 0xa9ecb0
// > ??> @ 0x7c768
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:00:47 +0000
//
cocos2d::CCArray *__fastcall SetupInstantCountPopup::updateTargetID(SetupInstantCountPopup *this)
{
int v2; // w1
__int64 v3; // x0
cocos2d::CCArray *result; // x0
unsigned int v5; // w19
__int64 v6; // x0
bool v7; // cf
unsigned int v8; // w1
v2 = *((_DWORD *)this + 261);
v3 = *((_QWORD *)this + 85);
if ( v2 < 0 )
v2 = 0;
if ( v2 > 9999 )
v2 = 9999;
*((_DWORD *)this + 261) = v2;
if ( v3 )
return (cocos2d::CCArray *)EffectGameObject::setTargetID(v3, v2);
result = *((cocos2d::CCArray **)this + 86);
if ( result )
{
v5 = 0;
while ( 1 )
{
result = (cocos2d::CCArray *)cocos2d::CCArray::count(result);
v7 = v5 >= (unsigned int)result;
v8 = v5++;
if ( v7 )
break;
v6 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 86), v8);
EffectGameObject::setTargetID(v6, *((_DWORD *)this + 261));
result = *((cocos2d::CCArray **)this + 86);
}
}
return result;
}