//
// SetupMGTrigger::determineStartValues from 0x5624c0 to 0x56264e (398 bytes)
//
// 0 xrefs:
//
// 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 SetupMGTrigger::determineStartValues(SetupMGTrigger *a1)
{
cocos2d::CCArray *v2; // r0
cocos2d::CCArray *m_gameObjects; // r8
float v4; // s17
unsigned int v5; // r9
int v6; // r11
int v7; // r10
int y; // r6
EasingType v9; // r7
float v10; // s18
int v11; // r0
float *v12; // r2
float *v13; // r2
const cocos2d::CCPoint *v14; // r1
int v15; // [sp+4h] [bp-20h]
int v16; // [sp+8h] [bp-1Ch]
cocos2d::CCPoint v17; // [sp+14h] [bp-10h] BYREF
SetupTriggerPopup::determineStartValues(a1);
if ( a1->m_gameObject )
{
m_gameObjects = (cocos2d::CCArray *)cocos2d::CCArray::create(v2);
cocos2d::CCArray::addObject(m_gameObjects, a1->m_gameObject);
}
else
{
m_gameObjects = a1->m_gameObjects;
}
a1->m_moveTime = -99999.0;
a1->m_mgEasingType = -99999;
a1->m_offsetY = -99999;
a1->m_mgEasingRate = -99999.0;
if ( m_gameObjects && cocos2d::CCArray::count(m_gameObjects) )
{
v4 = -99999.0;
v5 = 0;
v6 = 0;
v7 = 0;
y = -99999;
v9 = -99999;
v16 = 0;
v10 = -99999.0;
v15 = 0;
while ( v5 < cocos2d::CCArray::count(m_gameObjects) )
{
v11 = cocos2d::CCArray::objectAtIndex(m_gameObjects, v5);
if ( !v15 )
{
v12 = (float *)(v11 + 1264);
if ( v10 == -99999.0 )
{
v10 = *v12;
}
else if ( v10 != *v12 )
{
v10 = -99999.0;
v15 = 1;
}
}
if ( !v16 )
{
if ( v9 == -99999 )
{
v9 = *(_DWORD *)(v11 + 1308);
}
else if ( v9 != *(_DWORD *)(v11 + 1308) )
{
v9 = -99999;
v16 = 1;
}
}
if ( !v7 )
{
v13 = (float *)(v11 + 1312);
if ( v4 == -99999.0 )
{
v4 = *v13;
}
else if ( v4 != *v13 )
{
v4 = -99999.0;
v7 = 1;
}
}
if ( !v6 )
{
v14 = (const cocos2d::CCPoint *)(v11 + 1300);
if ( y == -99999 )
{
cocos2d::CCPoint::CCPoint(&v17, v14);
y = (int)v17.y;
}
else
{
cocos2d::CCPoint::CCPoint(&v17, v14);
if ( y != (int)v17.y )
{
y = -99999;
v6 = 1;
}
}
}
++v5;
}
if ( v10 != -99999.0 )
a1->m_moveTime = v10;
if ( v9 != -99999 )
a1->m_mgEasingType = v9;
if ( v4 != -99999.0 )
a1->m_mgEasingRate = v4;
if ( y != -99999 )
a1->m_offsetY = y;
}
}