//
// SetupCameraModePopup::determineStartValues from 0xb45c88 to 0xb45e04 (380 bytes)
//
// 2 xrefs:
// > ??> @ 0x7c180
// > ??> @ 0x14bc910
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:01:53 +0000
//
__int64 __fastcall SetupCameraModePopup::determineStartValues(cocos2d::CCObject **this)
{
cocos2d::CCArray *v2; // x0
cocos2d::CCArray *v3; // x21
unsigned int v4; // w19
float v5; // s10
float v6; // s9
int v7; // w23
int i; // w22
__int64 v9; // x0
__int64 result; // x0
SetupTriggerPopup::determineStartValues((SetupTriggerPopup *)this);
v2 = *(this + 85);
if ( v2 )
{
v3 = (cocos2d::CCArray *)cocos2d::CCArray::create(v2);
cocos2d::CCArray::addObject(v3, *(this + 85));
}
else
{
v3 = *(this + 86);
}
if ( v3 && (unsigned int)cocos2d::CCArray::count(v3) )
{
*((_BYTE *)this + 1076) = 1;
v4 = 0;
v5 = -99999.0;
*((_BYTE *)this + 1077) = 1;
v6 = -99999.0;
*((_BYTE *)this + 1078) = 1;
v7 = 0;
for ( i = 0; v4 < (unsigned int)cocos2d::CCArray::count(v3); ++v4 )
{
v9 = cocos2d::CCArray::objectAtIndex(v3, v4);
if ( !*(_BYTE *)(v9 + 1748) )
*((_BYTE *)this + 1076) = 0;
if ( !*(_BYTE *)(v9 + 1749) )
*((_BYTE *)this + 1077) = 0;
if ( !i )
{
if ( v6 == -99999.0 )
{
v6 = *(float *)(v9 + 1752);
}
else if ( v6 != *(float *)(v9 + 1752) )
{
v6 = -99999.0;
i = 1;
}
}
if ( !v7 )
{
if ( v5 == -99999.0 )
{
v5 = *(float *)(v9 + 1756);
}
else if ( v5 != *(float *)(v9 + 1756) )
{
v5 = -99999.0;
v7 = 1;
}
}
if ( *(_DWORD *)(v9 + 1028) != 2925 )
*((_BYTE *)this + 1078) = 0;
}
if ( v6 != -99999.0 )
*((_DWORD *)this + 262) = (int)v6;
if ( v5 != -99999.0 )
*((float *)this + 268) = v5;
}
result = *((unsigned __int8 *)this + 1077);
if ( !*((_BYTE *)this + 1077) )
{
result = 10;
*((_DWORD *)this + 262) = 10;
*((float *)this + 268) = 0.5;
}
return result;
}