//
// SetupCameraOffsetTrigger::determineStartValues from 0x63208c to 0x63228c (512 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:55:17 +0000
//
cocos2d::CCArray *__fastcall SetupCameraOffsetTrigger::determineStartValues(cocos2d::CCObject **this)
{
cocos2d::CCArray *result; // r0
cocos2d::CCArray *v3; // r11
float v4; // s17
int v5; // r8
int v6; // r7
int v7; // r9
unsigned int v8; // r6
float v9; // s18
int v10; // r0
int v11; // r10
float *v12; // r3
float *v13; // r3
const cocos2d::CCPoint *v14; // r1
const cocos2d::CCPoint *v15; // r1
int v16; // [sp+0h] [bp-34h]
int v17; // [sp+4h] [bp-30h]
int v18; // [sp+8h] [bp-2Ch]
int v19; // [sp+Ch] [bp-28h]
int v20; // [sp+10h] [bp-24h]
int v21; // [sp+14h] [bp-20h]
int v22; // [sp+18h] [bp-1Ch]
float v23; // [sp+24h] [bp-10h] BYREF
float v24; // [sp+28h] [bp-Ch]
result = (cocos2d::CCArray *)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);
}
*(this + 180) = (cocos2d::CCObject *)-943501440;
*(this + 182) = (cocos2d::CCObject *)-99999;
*(this + 190) = (cocos2d::CCObject *)-99999;
*(this + 191) = (cocos2d::CCObject *)-99999;
*(this + 183) = (cocos2d::CCObject *)-943501440;
if ( v3 )
{
result = (cocos2d::CCArray *)cocos2d::CCArray::count(v3);
if ( result )
{
v4 = -99999.0;
v5 = -99999;
v6 = -99999;
v7 = -99999;
v8 = 0;
v16 = -99999;
v22 = 0;
v9 = -99999.0;
v21 = 0;
v20 = 0;
v19 = 0;
v18 = 0;
v17 = 0;
while ( 1 )
{
result = (cocos2d::CCArray *)cocos2d::CCArray::count(v3);
if ( v8 >= (unsigned int)result )
break;
v10 = cocos2d::CCArray::objectAtIndex(v3, v8);
v11 = v10;
if ( !v17 )
{
v12 = (float *)(v10 + 1272);
if ( v9 == -99999.0 )
{
v9 = *v12;
}
else if ( v9 != *v12 )
{
v9 = -99999.0;
v17 = 1;
}
}
if ( !v18 )
{
if ( v7 == -99999 )
{
v7 = *(_DWORD *)(v10 + 1316);
}
else if ( v7 != *(_DWORD *)(v10 + 1316) )
{
v7 = -99999;
v18 = 1;
}
}
if ( !v19 )
{
v13 = (float *)(v10 + 1320);
if ( v4 == -99999.0 )
{
v4 = *v13;
}
else if ( v4 != *v13 )
{
v4 = -99999.0;
v19 = 1;
}
}
if ( !v20 )
{
v14 = (const cocos2d::CCPoint *)(v10 + 1308);
if ( v6 == -99999 )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v23, v14);
v6 = (int)v23;
}
else
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v23, v14);
if ( v6 != (int)v23 )
{
v6 = -99999;
v20 = 1;
}
}
}
if ( !v21 )
{
v15 = (const cocos2d::CCPoint *)(v11 + 1308);
if ( v16 == -99999 )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v23, v15);
v16 = (int)v24;
}
else
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v23, v15);
if ( v16 != (int)v24 )
{
v21 = 1;
v16 = -99999;
}
}
}
if ( !v22 )
{
if ( v5 == -99999 )
{
v5 = *(_DWORD *)(v11 + 1332);
}
else if ( v5 != *(_DWORD *)(v11 + 1332) )
{
v5 = -99999;
v22 = 1;
}
}
++v8;
}
if ( v9 != -99999.0 )
*((float *)this + 180) = v9;
if ( v7 != -99999 )
*(this + 182) = (cocos2d::CCObject *)v7;
if ( v4 != -99999.0 )
*((float *)this + 183) = v4;
if ( v6 != -99999 )
*(this + 190) = (cocos2d::CCObject *)v6;
if ( v16 != -99999 )
*(this + 191) = (cocos2d::CCObject *)v16;
if ( v5 != -99999 )
*(this + 192) = (cocos2d::CCObject *)v5;
}
}
return result;
}