//
// SetupCameraEdgePopup::updateTargetID from 0x67ec8c to 0x67ece2 (86 bytes)
//
// 2 xrefs:
// > SetupCameraEdgePopup::textChanged @ 0x67ed1e
// > SetupCameraEdgePopup::onUnlockEdge @ 0x67edca
//
// 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:56:00 +0000
//
unsigned int __fastcall SetupCameraEdgePopup::updateTargetID(SetupCameraEdgePopup *this)
{
int v2; // r1
unsigned int result; // r0
unsigned int i; // r4
int v5; // r0
v2 = *((_DWORD *)this + 179) & ~(*((int *)this + 179) >> 31);
if ( v2 >= 9999 )
v2 = 9999;
*((_DWORD *)this + 179) = 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 + 179));
}
}
return result;
}