//
// SetupPulsePopup::updateTargetID from 0xa45734 to 0xa457a0 (108 bytes)
//
// 4 xrefs:
// > SetupPulsePopup::textChanged @ 0xa45904
// > SetupPulsePopup::colorSelectClosed @ 0xa460a4
// > SetupPulsePopup::onSelectTargetMode @ 0xa46540
// > ??> @ 0x1038b8
//
// 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 12:59:58 +0000
//
cocos2d::CCArray *__fastcall SetupPulsePopup::updateTargetID(SetupPulsePopup *this)
{
__int64 v2; // x0
cocos2d::CCArray *result; // x0
unsigned int v4; // w19
__int64 v5; // x0
bool v6; // cf
unsigned int v7; // w1
v2 = *((_QWORD *)this + 85);
if ( v2 )
return (cocos2d::CCArray *)EffectGameObject::setTargetID(v2, *((_DWORD *)this + 317));
result = *((cocos2d::CCArray **)this + 86);
if ( result )
{
v4 = 0;
while ( 1 )
{
result = (cocos2d::CCArray *)cocos2d::CCArray::count(result);
v6 = v4 >= (unsigned int)result;
v7 = v4++;
if ( v6 )
break;
v5 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 86), v7);
EffectGameObject::setTargetID(v5, *((_DWORD *)this + 317));
result = *((cocos2d::CCArray **)this + 86);
}
}
return result;
}