//
// SetupShakePopup::determineStartValues from 0x95908c to 0x9591f8 (364 bytes)
//
// 2 xrefs:
// > ??> @ 0x85878
// > ??> @ 0x11baa00
//
// 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 SetupShakePopup::determineStartValues(SetupShakePopup *a1)
{
EffectGameObject *m_gameObject; // x0
cocos2d::CCArray *m_gameObjects; // x20
unsigned int v4; // w19
int v5; // w23
float v6; // s9
int v7; // w22
float v8; // s10
int v9; // w21
float v10; // s11
float *v11; // 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 = 0;
v5 = 0;
v6 = -99999.0;
v7 = 0;
v8 = -99999.0;
v9 = 0;
v10 = -99999.0;
while ( v4 < (unsigned int)cocos2d::CCArray::count(m_gameObjects) )
{
v11 = (float *)cocos2d::CCArray::objectAtIndex(m_gameObjects, v4);
if ( !v9 )
{
if ( v10 == -99999.0 )
{
v10 = v11[359];
}
else if ( v10 != v11[359] )
{
v10 = -99999.0;
v9 = 1;
}
}
if ( !v7 )
{
if ( v8 == -99999.0 )
{
v8 = v11[365];
}
else if ( v8 != v11[365] )
{
v8 = -99999.0;
v7 = 1;
}
}
if ( !v5 )
{
if ( v6 == -99999.0 )
{
v6 = v11[366];
}
else if ( v6 != v11[366] )
{
v6 = -99999.0;
v5 = 1;
++v4;
continue;
}
}
++v4;
}
if ( v10 != -99999.0 )
a1->m_duration = v10;
if ( v8 != -99999.0 )
a1->m_strength = v8;
if ( v6 != -99999.0 )
a1->m_interval = v6;
}
}