//
// SetupRandTriggerPopup::determineStartValues from 0x1005e6660 to 0x1005e6790 (304 bytes)
//
// 1 xrefs:
// > ??> @ 0x100977688
//
// 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 SetupRandTriggerPopup::determineStartValues(SetupRandTriggerPopup *a1)
{
__int64 v1; // rsi
__int64 m_gameObjects; // r14
unsigned int v3; // r15d
__int64 v4; // rax
int m_groupID1; // edx
int v6; // ecx
bool v7; // zf
int m_groupID2; // edx
int v9; // ecx
float m_chancePercent; // xmm1_4
float v11; // xmm0_4
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) )
{
*(_QWORD *)&a1->m_groupID1 = -1;
a1->m_chancePercent = -1.0;
if ( (unsigned int)sub_100720070(m_gameObjects) )
{
v3 = 0;
do
{
v4 = sub_1007200C0(m_gameObjects, v3);
m_groupID1 = a1->m_groupID1;
v6 = *(_DWORD *)(v4 + 1464);
if ( m_groupID1 == -1 || (v7 = m_groupID1 == v6, v6 = 0, !v7) )
a1->m_groupID1 = v6;
m_groupID2 = a1->m_groupID2;
v9 = *(_DWORD *)(v4 + 1468);
if ( m_groupID2 == -1 || (v7 = m_groupID2 == v9, v9 = 0, !v7) )
a1->m_groupID2 = v9;
m_chancePercent = a1->m_chancePercent;
v11 = *(float *)(v4 + 1452);
if ( m_chancePercent == -1.0 || (v7 = m_chancePercent == v11, v11 = 0.0, !v7) )
a1->m_chancePercent = v11;
++v3;
}
while ( v3 < (unsigned int)sub_100720070(m_gameObjects) );
}
}
}