//
// SetupMGTrigger::determineStartValues from 0xb4d134 to 0xb4d380 (588 bytes)
//
// 2 xrefs:
// > ??> @ 0x99f28
// > ??> @ 0x14bf190
//
// 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:57 +0000
//
__int64 __fastcall SetupMGTrigger::determineStartValues(cocos2d::CCObject **this)
{
cocos2d::CCArray *v2; // x0
cocos2d::CCArray *v3; // x20
float v4; // s9
float v5; // s10
unsigned int v6; // w19
int v7; // w25
int v8; // w27
int v9; // w24
int v10; // w26
int v11; // w21
int v12; // w22
__int64 v13; // x0
const cocos2d::CCPoint *v14; // x1
_BYTE v16[4]; // [xsp+80h] [xbp+80h] BYREF
float v17; // [xsp+84h] [xbp+84h]
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);
}
*((_DWORD *)this + 262) = -99999;
*((_DWORD *)this + 272) = -99999;
*((_DWORD *)this + 258) = -943501440;
*((_DWORD *)this + 263) = -943501440;
if ( v3 && (unsigned int)cocos2d::CCArray::count(v3) )
{
v4 = -99999.0;
v5 = -99999.0;
v6 = 0;
v7 = 0;
v8 = 0;
v9 = 0;
v10 = 0;
v11 = -99999;
v12 = -99999;
while ( v6 < (unsigned int)cocos2d::CCArray::count(v3) )
{
v13 = cocos2d::CCArray::objectAtIndex(v3, v6);
if ( !v10 )
{
if ( v5 == -99999.0 )
{
v5 = *(float *)(v13 + 1452);
}
else if ( v5 != *(float *)(v13 + 1452) )
{
v5 = -99999.0;
v10 = 1;
}
}
if ( !v9 )
{
if ( v12 == -99999 )
{
v12 = *(_DWORD *)(v13 + 1496);
}
else if ( v12 != *(_DWORD *)(v13 + 1496) )
{
v9 = 1;
v12 = -99999;
}
}
if ( !v8 )
{
if ( v4 == -99999.0 )
{
v4 = *(float *)(v13 + 1500);
}
else if ( v4 != *(float *)(v13 + 1500) )
{
v4 = -99999.0;
v8 = 1;
}
}
if ( !v7 )
{
v14 = (const cocos2d::CCPoint *)(v13 + 1488);
if ( v11 == -99999 )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, v14);
++v6;
v11 = (int)v17;
continue;
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, v14);
if ( v11 != (int)v17 )
{
v7 = 1;
v11 = -99999;
}
}
++v6;
}
if ( v5 != -99999.0 )
*((float *)this + 258) = v5;
if ( v12 != -99999 )
*((_DWORD *)this + 262) = v12;
if ( v4 != -99999.0 )
*((float *)this + 263) = v4;
if ( v11 != -99999 )
*((_DWORD *)this + 272) = v11;
}
return _stack_chk_guard;
}