//
// SetupPulsePopup::updateTargetID from 0x5ec3fc to 0x5ec440 (68 bytes)
//
// 3 xrefs:
// > SetupPulsePopup::textChanged @ 0x5ec706
// > SetupPulsePopup::colorSelectClosed @ 0x5ecd20
// > SetupPulsePopup::onSelectTargetMode @ 0x5ecf5a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:54:23 +0000
//
unsigned int __fastcall SetupPulsePopup::updateTargetID(SetupPulsePopup *this)
{
unsigned int result; // r0
unsigned int i; // r4
int v4; // r0
result = *((_DWORD *)this + 132);
if ( result )
return EffectGameObject::setTargetID(result, *((_DWORD *)this + 210));
if ( *((_DWORD *)this + 133) )
{
for ( i = 0; ; ++i )
{
result = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 133));
if ( i >= result )
break;
v4 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 133), i);
EffectGameObject::setTargetID(v4, *((_DWORD *)this + 210));
}
}
return result;
}