//
// SetupOpacityPopup::updateTargetID from 0x5e94b4 to 0x5e950a (86 bytes)
//
// 1 xrefs:
// > SetupOpacityPopup::textChanged @ 0x5e955e
//
// 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:21 +0000
//
unsigned int __fastcall SetupOpacityPopup::updateTargetID(SetupOpacityPopup *this)
{
int v2; // r1
unsigned int result; // r0
unsigned int i; // r4
int v5; // r0
v2 = *((_DWORD *)this + 185) & ~(*((int *)this + 185) >> 31);
if ( v2 >= 9999 )
v2 = 9999;
*((_DWORD *)this + 185) = v2;
result = *((_DWORD *)this + 132);
if ( result )
return EffectGameObject::setTargetID(result, v2);
if ( *((_DWORD *)this + 133) )
{
for ( i = 0; ; ++i )
{
result = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 133));
if ( i >= result )
break;
v5 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 133), i);
EffectGameObject::setTargetID(v5, *((_DWORD *)this + 185));
}
}
return result;
}