//
// SetupPortalPopup::onUnboundMode from 0x1005703d0 to 0x10057044c (124 bytes)
//
// 1 xrefs:
// > SetupPortalPopup::init @ 0x10056fc60
//
// 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 __fastcall SetupPortalPopup::onUnboundMode(SetupPortalPopup *a1, cocos2d::CCObject *a2)
{
bool v2; // al
cocos2d::CCArray *m_gameObjects; // rcx
unsigned int v4; // r14d
v2 = !a1->m_freeMode;
a1->m_freeMode = v2;
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects )
{
LOBYTE(m_gameObjects[27].m_uReference) = v2;
}
else if ( (unsigned int)sub_100720070(a1->m_gameObject) )
{
v4 = 0;
do
*(_BYTE *)(sub_1007200C0(a1->m_gameObject, v4++) + 1748) = a1->m_freeMode;
while ( v4 < (unsigned int)sub_100720070(a1->m_gameObject) );
}
SetupPortalPopup::updateItemVisibility(a1);
}