//
// SetupCameraRotatePopup::determineStartValues from 0x9ab95c to 0x9abb34 (472 bytes)
//
// 2 xrefs:
// > ??> @ 0x53298
// > ??> @ 0x11c6d40
//
// 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 SetupCameraRotatePopup::determineStartValues(SetupCameraRotatePopup *a1)
{
EffectGameObject *m_gameObject; // x1
cocos2d::CCArray *m_gameObjects; // x20
float v4; // s9
float v5; // s11
unsigned int v6; // w19
float v7; // s10
int v8; // w26
int v9; // w25
int v10; // w23
int v11; // w24
EasingType v12; // w21
__int64 v13; // x0
SetupTriggerPopup::determineStartValues(a1);
m_gameObject = a1->m_gameObject;
a1->m_cameraEasingType = -99999;
a1->m_moveTime = -99999.0;
a1->m_degrees = -99999.0;
a1->m_cameraEasingRate = -99999.0;
if ( m_gameObject )
{
m_gameObjects = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)0xFFFE7961LL);
cocos2d::CCArray::addObject(m_gameObjects, a1->m_gameObject);
}
else
{
m_gameObjects = a1->m_gameObjects;
}
if ( m_gameObjects && (unsigned int)cocos2d::CCArray::count(m_gameObjects) )
{
v4 = -99999.0;
v5 = -99999.0;
v6 = 0;
v7 = -99999.0;
v8 = 0;
v9 = 0;
v10 = 0;
v11 = 0;
v12 = -99999;
while ( v6 < (unsigned int)cocos2d::CCArray::count(m_gameObjects) )
{
v13 = cocos2d::CCArray::objectAtIndex(m_gameObjects, v6);
if ( !v11 )
{
if ( v7 == -99999.0 )
{
v7 = *(float *)(v13 + 1436);
}
else if ( v7 != *(float *)(v13 + 1436) )
{
v7 = -99999.0;
v11 = 1;
}
}
if ( !v10 )
{
if ( v12 == -99999 )
{
v12 = *(_DWORD *)(v13 + 1480);
}
else if ( v12 != *(_DWORD *)(v13 + 1480) )
{
v10 = 1;
v12 = -99999;
}
}
if ( !v9 )
{
if ( v4 == -99999.0 )
{
v4 = *(float *)(v13 + 1484);
}
else if ( v4 != *(float *)(v13 + 1484) )
{
v4 = -99999.0;
v9 = 1;
}
}
if ( !v8 )
{
if ( v5 == -99999.0 )
{
v5 = *(float *)(v13 + 1528);
}
else if ( v5 != *(float *)(v13 + 1528) )
{
v5 = -99999.0;
v8 = 1;
++v6;
continue;
}
}
++v6;
}
if ( v7 != -99999.0 )
a1->m_moveTime = v7;
if ( v12 != -99999 )
a1->m_cameraEasingType = v12;
if ( v4 != -99999.0 )
a1->m_cameraEasingRate = v4;
a1->m_degrees = v5;
}
}