//
// SetupPortalPopup::onUnboundMode from 0x633fa6 to 0x633fee (72 bytes)
//
// 0 xrefs:
//
// 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:55:19 +0000
//
unsigned int __fastcall SetupPortalPopup::onUnboundMode(SetupPortalPopup *this, cocos2d::CCObject *a2)
{
unsigned int v3; // r4
char v4; // r3
int v5; // r0
v3 = *((_DWORD *)this + 131);
v4 = *((_BYTE *)this + 560) ^ 1;
*((_BYTE *)this + 560) = v4;
if ( v3 )
{
*(_BYTE *)(v3 + 1564) = v4;
}
else
{
while ( v3 < cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 130)) )
{
v5 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 130), v3++);
*(_BYTE *)(v5 + 1564) = *((_BYTE *)this + 560);
}
}
return SetupPortalPopup::updateItemVisibility((cocos2d::CCArray **)this);
}