//
// SetupCameraModePopup::determineStartValues from 0x55de08 to 0x55df3c (308 bytes)
//
// 0 xrefs:
//
// 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::determineStartValues(SetupCameraModePopup *a1)
{
cocos2d::CCArray *v2; // r0
cocos2d::CCArray *m_gameObjects; // r6
int v4; // r0
unsigned int v5; // r5
float v6; // s16
int v7; // r8
int v8; // r7
float v9; // s17
float *v10; // r3
float *v11; // r3
SetupTriggerPopup::determineStartValues(a1);
if ( a1->m_gameObject )
{
m_gameObjects = (cocos2d::CCArray *)cocos2d::CCArray::create(v2);
cocos2d::CCArray::addObject(m_gameObjects, a1->m_gameObject);
}
else
{
m_gameObjects = a1->m_gameObjects;
}
if ( m_gameObjects && cocos2d::CCArray::count(m_gameObjects) )
{
v6 = -99999.0;
v5 = 0;
v7 = 0;
a1->m_freeMode = 1;
v8 = 0;
a1->m_cameraSettingsEnabled = 1;
a1->m_cameraModeObjects = 1;
v9 = -99999.0;
while ( v5 < cocos2d::CCArray::count(m_gameObjects) )
{
v4 = cocos2d::CCArray::objectAtIndex(m_gameObjects, v5);
if ( !*(_BYTE *)(v4 + 1556) )
a1->m_freeMode = 0;
if ( !*(_BYTE *)(v4 + 1557) )
a1->m_cameraSettingsEnabled = 0;
if ( !v8 )
{
v10 = (float *)(v4 + 1560);
if ( v9 == -99999.0 )
{
v9 = *v10;
}
else if ( v9 != *v10 )
{
v8 = 1;
v9 = -99999.0;
}
}
if ( !v7 )
{
v11 = (float *)(v4 + 1564);
if ( v6 == -99999.0 )
{
v6 = *v11;
}
else if ( v6 != *v11 )
{
v7 = 1;
v6 = -99999.0;
}
}
++v5;
if ( *(_DWORD *)(v4 + 884) != 2925 )
a1->m_cameraModeObjects = 0;
}
if ( v9 != -99999.0 )
a1->m_cameraEasing = (int)v9;
if ( v6 != -99999.0 )
a1->m_cameraPadding = v6;
}
if ( !a1->m_cameraSettingsEnabled )
{
a1->m_cameraEasing = 10;
a1->m_cameraPadding = 0.5;
}
}