//
// SetupCameraModePopup::determineStartValues from 0x695508 to 0x69563c (308 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:56:14 +0000
//
cocos2d::CCArray *__fastcall SetupCameraModePopup::determineStartValues(cocos2d::CCObject **this)
{
cocos2d::CCArray *result; // r0
cocos2d::CCArray *v3; // 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
result = SetupTriggerPopup::determineStartValues((SetupTriggerPopup *)this);
if ( *(this + 132) )
{
v3 = (cocos2d::CCArray *)cocos2d::CCArray::create(result);
result = (cocos2d::CCArray *)cocos2d::CCArray::addObject(v3, *(this + 132));
}
else
{
v3 = *(this + 133);
}
if ( v3 )
{
result = (cocos2d::CCArray *)cocos2d::CCArray::count(v3);
if ( result )
{
v6 = -99999.0;
v5 = 0;
v7 = 0;
*((_BYTE *)this + 744) = 1;
v8 = 0;
*((_BYTE *)this + 745) = 1;
*((_BYTE *)this + 746) = 1;
v9 = -99999.0;
while ( 1 )
{
result = (cocos2d::CCArray *)cocos2d::CCArray::count(v3);
if ( v5 >= (unsigned int)result )
break;
v4 = cocos2d::CCArray::objectAtIndex(v3, v5);
if ( !*(_BYTE *)(v4 + 1564) )
*((_BYTE *)this + 744) = 0;
if ( !*(_BYTE *)(v4 + 1565) )
*((_BYTE *)this + 745) = 0;
if ( !v8 )
{
v10 = (float *)(v4 + 1568);
if ( v9 == -99999.0 )
{
v9 = *v10;
}
else if ( v9 != *v10 )
{
v8 = 1;
v9 = -99999.0;
}
}
if ( !v7 )
{
v11 = (float *)(v4 + 1572);
if ( v6 == -99999.0 )
{
v6 = *v11;
}
else if ( v6 != *v11 )
{
v7 = 1;
v6 = -99999.0;
}
}
++v5;
if ( *(_DWORD *)(v4 + 892) != 2925 )
*((_BYTE *)this + 746) = 0;
}
if ( v9 != -99999.0 )
*(this + 182) = (cocos2d::CCObject *)(int)v9;
if ( v6 != -99999.0 )
*((float *)this + 185) = v6;
}
}
if ( !*((_BYTE *)this + 745) )
{
*(this + 182) = (cocos2d::CCObject *)(byte_9 + 1);
*(this + 185) = (cocos2d::CCObject *)1056964608;
}
return result;
}