//
// SetupShakePopup::determineStartValues from 0x4f9344 to 0x4f9464 (288 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 SetupShakePopup::determineStartValues(SetupShakePopup *a1)
{
cocos2d::CCArray *v2; // r0
cocos2d::CCArray *m_gameObjects; // r6
float v4; // s16
unsigned int v5; // r4
int v6; // r9
int v7; // r8
int v8; // r7
float v9; // s18
float v10; // s19
float *v11; // r0
float *v12; // r3
float *v13; // r3
float *v14; // r0
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;
}
if ( m_gameObjects && cocos2d::CCArray::count(m_gameObjects) )
{
v4 = -99999.0;
v5 = 0;
v6 = 0;
v7 = 0;
v8 = 0;
v9 = -99999.0;
v10 = -99999.0;
while ( v5 < cocos2d::CCArray::count(m_gameObjects) )
{
v11 = (float *)cocos2d::CCArray::objectAtIndex(m_gameObjects, v5);
if ( !v8 )
{
v12 = v11 + 316;
if ( v10 == -99999.0 )
{
v10 = *v12;
}
else if ( v10 != *v12 )
{
v10 = -99999.0;
v8 = 1;
}
}
if ( !v7 )
{
v13 = v11 + 322;
if ( v9 == -99999.0 )
{
v9 = *v13;
}
else if ( v9 != *v13 )
{
v9 = -99999.0;
v7 = 1;
}
}
if ( !v6 )
{
v14 = v11 + 323;
if ( v4 == -99999.0 )
{
v4 = *v14;
}
else if ( v4 != *v14 )
{
v4 = -99999.0;
v6 = 1;
}
}
++v5;
}
if ( v10 != -99999.0 )
a1->m_duration = v10;
if ( v9 != -99999.0 )
a1->m_strength = v9;
if ( v4 != -99999.0 )
a1->m_interval = v4;
}
}