//
// SetupPortalPopup::onUnboundMode from 0x969d3c to 0x969db4 (120 bytes)
//
// 3 xrefs:
// > ??> @ 0x3d7d0
// > SetupPortalPopup::init @ 0x96a21c
// > ??> @ 0x1229f68
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void SetupPortalPopup::onUnboundMode(SetupPortalPopup *a1, cocos2d::CCObject *a2)
{
bool v3; // w0
cocos2d::CCArray *m_gameObjects; // x1
unsigned int v5; // w20
bool v6; // cf
unsigned int v7; // w1
v3 = !a1->m_freeMode;
m_gameObjects = a1->m_gameObjects;
a1->m_freeMode = v3;
if ( m_gameObjects )
{
BYTE4(m_gameObjects[27].__vftable) = v3;
SetupPortalPopup::updateItemVisibility(a1);
}
else
{
v5 = 0;
while ( 1 )
{
v6 = v5 >= (unsigned int)cocos2d::CCArray::count((cocos2d::CCArray *)a1->m_gameObject);
v7 = v5++;
if ( v6 )
break;
*(_BYTE *)(cocos2d::CCArray::objectAtIndex((cocos2d::CCArray *)a1->m_gameObject, v7) + 1732) = a1->m_freeMode;
}
SetupPortalPopup::updateItemVisibility(a1);
}
}