//
// SetupCameraModePopup::onUnboundMode from 0xa162c0 to 0xa16338 (120 bytes)
//
// 3 xrefs:
// > ??> @ 0x6f318
// > SetupCameraModePopup::init @ 0xa1671c
// > ??> @ 0x122ba80
//
// 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 SetupCameraModePopup::onUnboundMode(SetupCameraModePopup *a1, cocos2d::CCObject *a2)
{
bool v3; // w0
EffectGameObject *m_gameObject; // x1
unsigned int v5; // w20
bool v6; // cf
unsigned int v7; // w1
v3 = !a1->m_freeMode;
m_gameObject = a1->m_gameObject;
a1->m_freeMode = v3;
if ( m_gameObject )
{
m_gameObject->m_cameraIsFreeMode = v3;
SetupCameraModePopup::updateItemVisibility(a1);
}
else
{
v5 = 0;
while ( 1 )
{
v6 = v5 >= (unsigned int)cocos2d::CCArray::count(a1->m_gameObjects);
v7 = v5++;
if ( v6 )
break;
*(_BYTE *)(cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, v7) + 1732) = a1->m_freeMode;
}
SetupCameraModePopup::updateItemVisibility(a1);
}
}