//
// SetupPortalPopup::onEditCameraSettings from 0x100570450 to 0x1005705af (351 bytes)
//
// 1 xrefs:
// > SetupPortalPopup::init @ 0x10056fd6c
//
// 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::onEditCameraSettings(SetupPortalPopup *a1, cocos2d::CCObject *a2)
{
bool v2; // al
cocos2d::CCArray *m_gameObjects; // rcx
unsigned int v4; // r14d
cocos2d::CCArray *v5; // rax
unsigned int v6; // r14d
cocos2d::CCArray *v7; // rax
unsigned int v8; // r14d
v2 = !a1->m_cameraSettingsEnabled;
a1->m_cameraSettingsEnabled = v2;
m_gameObjects = a1->m_gameObjects;
if ( m_gameObjects )
{
BYTE1(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++) + 1749) = a1->m_cameraSettingsEnabled;
while ( v4 < (unsigned int)sub_100720070(a1->m_gameObject) );
}
if ( a1->m_cameraSettingsEnabled )
{
v5 = a1->m_gameObjects;
if ( v5 )
{
*(float *)&v5[27].m_uAutoReleaseCount = (float)a1->m_cameraEasing;
}
else if ( (unsigned int)sub_100720070(a1->m_gameObject) )
{
v6 = 0;
do
*(float *)(sub_1007200C0(a1->m_gameObject, v6++) + 1752) = (float)a1->m_cameraEasing;
while ( v6 < (unsigned int)sub_100720070(a1->m_gameObject) );
}
v7 = a1->m_gameObjects;
if ( v7 )
{
v7[27].m_eObjType = LODWORD(a1->m_cameraPadding);
}
else if ( (unsigned int)sub_100720070(a1->m_gameObject) )
{
v8 = 0;
do
*(float *)(sub_1007200C0(a1->m_gameObject, v8++) + 1756) = a1->m_cameraPadding;
while ( v8 < (unsigned int)sub_100720070(a1->m_gameObject) );
}
}
SetupPortalPopup::updateItemVisibility(a1);
}