//
// SetupInstantCountPopup::updateTargetCount from 0xa9eb14 to 0xa9eb84 (112 bytes)
//
// 4 xrefs:
// > SetupInstantCountPopup::onTargetCountArrow @ 0xa9ebbc
// > SetupInstantCountPopup::onTargetCountArrow @ 0xa9ebdc
// > SetupInstantCountPopup::textChanged @ 0xa9ed38
// > ??> @ 0x5f920
//
// 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::updateTargetCount(SetupInstantCountPopup *this)
{
cocos2d::CCArray *result; // x0
unsigned int v3; // w20
bool v4; // cf
unsigned int v5; // w1
result = *((cocos2d::CCArray **)this + 85);
if ( result )
{
*((_DWORD *)result + 460) = *((_DWORD *)this + 262);
}
else
{
result = *((cocos2d::CCArray **)this + 86);
if ( result )
{
v3 = 0;
while ( 1 )
{
result = (cocos2d::CCArray *)cocos2d::CCArray::count(result);
v4 = v3 >= (unsigned int)result;
v5 = v3++;
if ( v4 )
break;
*(_DWORD *)(cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 86), v5) + 1840) = *((_DWORD *)this + 262);
result = *((cocos2d::CCArray **)this + 86);
}
}
}
return result;
}