//
// SetupTimeWarpPopup::determineStartValues from 0x100148284 to 0x100148354 (208 bytes)
//
// 1 xrefs:
// > ??> @ 0x100796b20
//
// 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 __fastcall SetupTimeWarpPopup::determineStartValues(SetupTimeWarpPopup *a1)
{
__int64 v2; // x0
cocos2d::CCArray *m_gameObjects; // x20
__int64 v4; // x21
float v5; // s9
__int64 v6; // x0
SetupTriggerPopup::determineStartValues(a1);
if ( a1->m_gameObject )
{
m_gameObjects = (cocos2d::CCArray *)sub_10024A15C(v2);
sub_10024A2D0(m_gameObjects, a1->m_gameObject);
if ( !m_gameObjects )
return;
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( !m_gameObjects )
return;
}
if ( (unsigned int)sub_10024A36C(m_gameObjects) )
{
a1->m_timeWarpMod = 1.0;
if ( (unsigned int)sub_10024A36C(m_gameObjects) )
{
v4 = 0;
v5 = -1.0;
do
{
v6 = sub_10024A388(m_gameObjects, v4);
if ( v5 == -1.0 )
{
v5 = *(float *)(v6 + 1764);
}
else if ( v5 != *(float *)(v6 + 1764) )
{
v5 = -2.0;
}
v4 = (unsigned int)(v4 + 1);
}
while ( (unsigned int)v4 < (unsigned int)sub_10024A36C(m_gameObjects) );
if ( v5 > 0.0 )
a1->m_timeWarpMod = v5;
}
}
}