//
// SetupShakePopup::determineStartValues from 0x140455a70 to 0x140455c33 (451 bytes)
//
// 4 xrefs:
// > ??> @ 0x1405f31a0
// > ??> @ 0x1406a34c8
// > ??> @ 0x1406a34d8
// > ??> @ 0x1406da8bc
//
// 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)
{
__int64 v2; // rcx
cocos2d::CCArray *m_gameObjects; // rbx
char v4; // bp
unsigned int v5; // esi
char v6; // r14
char v7; // r15
float v8; // xmm7_4
float v9; // xmm8_4
float v10; // xmm9_4
float *v11; // rax
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 )
{
if ( cocos2d::CCArray::count(m_gameObjects) )
{
v4 = 0;
v5 = 0;
v6 = 0;
v7 = 0;
v8 = -99999.0;
v9 = -99999.0;
v10 = -99999.0;
if ( cocos2d::CCArray::count(m_gameObjects) )
{
do
{
v11 = (float *)cocos2d::CCArray::objectAtIndex(m_gameObjects, v5);
if ( !v7 )
{
if ( v10 == -99999.0 )
{
v10 = v11[367];
}
else if ( v10 != v11[367] )
{
v10 = -99999.0;
v7 = 1;
}
}
if ( !v6 )
{
if ( v9 == -99999.0 )
{
v9 = v11[373];
}
else if ( v9 != v11[373] )
{
v9 = -99999.0;
v6 = 1;
}
}
if ( !v4 )
{
if ( v8 == -99999.0 )
{
v8 = v11[374];
}
else if ( v8 != v11[374] )
{
v8 = -99999.0;
v4 = 1;
}
}
++v5;
}
while ( v5 < cocos2d::CCArray::count(m_gameObjects) );
if ( v10 != -99999.0 )
a1->m_duration = v10;
if ( v9 != -99999.0 )
a1->m_strength = v9;
if ( v8 != -99999.0 )
a1->m_interval = v8;
}
}
}
}