//
// SetupTouchTogglePopup::updateTargetID from 0xaa2c70 to 0xaa2cf4 (132 bytes)
//
// 2 xrefs:
// > SetupTouchTogglePopup::textChanged @ 0xaa2d8c
// > ??> @ 0xdb2c8
//
// 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:49 +0000
//
cocos2d::CCArray *__fastcall SetupTouchTogglePopup::updateTargetID(SetupTouchTogglePopup *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 + 256);
v3 = *((_QWORD *)this + 85);
if ( v2 < 0 )
v2 = 0;
if ( v2 > 9999 )
v2 = 9999;
*((_DWORD *)this + 256) = 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 + 256));
result = *((cocos2d::CCArray **)this + 86);
}
}
return result;
}