//
// SetupTimeWarpPopup::determineStartValues from 0x9aaee0 to 0x9aafbc (220 bytes)
//
// 2 xrefs:
// > ??> @ 0x9b508
// > ??> @ 0x11c5d50
//
// 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 SetupTimeWarpPopup::determineStartValues(SetupTimeWarpPopup *a1)
{
EffectGameObject *m_gameObject; // x0
cocos2d::CCArray *m_gameObjects; // x20
float v4; // s8
unsigned int v5; // w19
bool v6; // cf
unsigned int v7; // w1
cocos2d::CCArray *i; // x0
__int64 v9; // x0
SetupTriggerPopup::determineStartValues(a1);
m_gameObject = a1->m_gameObject;
if ( m_gameObject )
{
m_gameObjects = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)m_gameObject);
cocos2d::CCArray::addObject(m_gameObjects, a1->m_gameObject);
}
else
{
m_gameObjects = a1->m_gameObjects;
}
if ( m_gameObjects && (unsigned int)cocos2d::CCArray::count(m_gameObjects) )
{
v4 = -1.0;
v5 = 0;
a1->m_timeWarpMod = 1.0;
v6 = (unsigned int)cocos2d::CCArray::count(m_gameObjects) == 0;
v7 = 0;
for ( i = m_gameObjects; !v6; i = m_gameObjects )
{
v9 = cocos2d::CCArray::objectAtIndex(i, v7);
if ( v4 == -1.0 )
{
v4 = *(float *)(v9 + 1748);
}
else if ( v4 != *(float *)(v9 + 1748) )
{
v4 = -2.0;
++v5;
goto LABEL_9;
}
++v5;
LABEL_9:
v6 = v5 >= (unsigned int)cocos2d::CCArray::count(m_gameObjects);
v7 = v5;
}
if ( v4 > 0.0 )
a1->m_timeWarpMod = v4;
}
}