//
// SetupShakePopup::determineStartValues from 0x100665100 to 0x100665356 (598 bytes)
//
// 1 xrefs:
// > ??> @ 0x100987fd8
//
// 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 __fastcall SetupShakePopup::determineStartValues(SetupShakePopup *a1)
{
__int64 v1; // rsi
__int64 m_gameObjects; // r14
unsigned int v3; // r15d
__int64 v4; // rdi
char v5; // r14
char v6; // r13
char v7; // r12
__int64 v8; // r14
unsigned int v9; // eax
float *v10; // rax
float v11; // xmm1_4
char v12; // bl
float v13; // xmm0_4
__int64 v15; // [rsp+10h] [rbp-40h]
float v16; // [rsp+1Ch] [rbp-34h]
float v17; // [rsp+20h] [rbp-30h]
float v18; // [rsp+24h] [rbp-2Ch]
SetupTriggerPopup::determineStartValues(a1);
if ( a1->m_gameObject )
{
m_gameObjects = sub_10071F9E0(a1, v1);
sub_10071FCD0(m_gameObjects, a1->m_gameObject);
if ( !m_gameObjects )
return;
}
else
{
m_gameObjects = (__int64)a1->m_gameObjects;
if ( !m_gameObjects )
return;
}
if ( (unsigned int)sub_100720070(m_gameObjects) && (unsigned int)sub_100720070(m_gameObjects) )
{
v3 = 0;
v4 = m_gameObjects;
v5 = 0;
v18 = -99999.0;
v6 = 0;
v16 = -99999.0;
v7 = 0;
v17 = -99999.0;
v15 = v4;
while ( 1 )
{
v10 = (float *)sub_1007200C0(v4, v3);
if ( (v7 & 1) != 0 )
{
v7 = 1;
v11 = v18;
if ( (v6 & 1) != 0 )
goto LABEL_25;
}
else
{
v11 = v18;
if ( v17 == -99999.0 )
{
v7 = 0;
v17 = v10[363];
if ( (v6 & 1) != 0 )
goto LABEL_25;
}
else if ( v17 == v10[363] )
{
v7 = 0;
if ( (v6 & 1) != 0 )
goto LABEL_25;
}
else
{
v17 = -99999.0;
v7 = 1;
if ( (v6 & 1) != 0 )
goto LABEL_25;
}
}
if ( v16 == -99999.0 )
{
v6 = 0;
v16 = v10[369];
v12 = 1;
if ( (v5 & 1) != 0 )
goto LABEL_8;
goto LABEL_26;
}
if ( v16 != v10[369] )
{
v16 = -99999.0;
LABEL_25:
v6 = 1;
v12 = 1;
if ( (v5 & 1) != 0 )
goto LABEL_8;
goto LABEL_26;
}
v6 = 0;
v12 = 1;
if ( (v5 & 1) != 0 )
{
LABEL_8:
v8 = v15;
goto LABEL_9;
}
LABEL_26:
v13 = v10[370];
v8 = v15;
if ( v11 == -99999.0 )
{
v12 = 0;
LABEL_31:
v18 = v13;
goto LABEL_9;
}
if ( v11 != v13 )
{
v13 = -99999.0;
goto LABEL_31;
}
v12 = 0;
LABEL_9:
++v3;
v9 = sub_100720070(v8);
v4 = v8;
v5 = v12;
if ( v3 >= v9 )
{
if ( v17 != -99999.0 )
a1->m_duration = v17;
if ( v16 != -99999.0 )
a1->m_strength = v16;
if ( v18 != -99999.0 )
a1->m_interval = v18;
return;
}
}
}
}