//
// SetupShakePopup::determineStartValues from 0x1405eb340 to 0x1405eb503 (451 bytes)
//
// 5 xrefs:
// > ??> @ 0x140802598
// > ??> @ 0x1408e2a48
// > ??> @ 0x1408e2a58
// > ??> @ 0x14092ef4c
// > ??> @ 0x14092ef58
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:35:03 +0000
//
void __fastcall SetupShakePopup::determineStartValues(__int64 a1)
{
__int64 v2; // rcx
cocos2d::CCArray *v3; // 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();
if ( *(_QWORD *)(a1 + 680) )
{
v3 = (cocos2d::CCArray *)cocos2d::CCArray::create(v2);
cocos2d::CCArray::addObject(v3, *(struct cocos2d::CCObject **)(a1 + 680));
}
else
{
v3 = *(cocos2d::CCArray **)(a1 + 688);
}
if ( v3 )
{
if ( cocos2d::CCArray::count(v3) )
{
v4 = 0;
v5 = 0;
v6 = 0;
v7 = 0;
v8 = -99999.0;
v9 = -99999.0;
v10 = -99999.0;
if ( cocos2d::CCArray::count(v3) )
{
do
{
v11 = (float *)cocos2d::CCArray::objectAtIndex(v3, 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(v3) );
if ( v10 != -99999.0 )
*(float *)(a1 + 1016) = v10;
if ( v9 != -99999.0 )
*(float *)(a1 + 1040) = v9;
if ( v8 != -99999.0 )
*(float *)(a1 + 1064) = v8;
}
}
}
}