//
// SetupRandTriggerPopup::determineStartValues from 0x1001cab34 to 0x1001cac3c (264 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007b98c0
//
// 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 v2; // x0
cocos2d::CCArray *m_gameObjects; // x20
__int64 v4; // x21
__int64 v5; // x0
int m_groupID1; // w9
int v7; // w8
int m_groupID2; // w9
int v9; // w8
float m_chancePercent; // s1
float v11; // s0
bool v12; // zf
SetupTriggerPopup::determineStartValues(a1);
if ( a1->m_gameObject )
{
m_gameObjects = (cocos2d::CCArray *)sub_10024A15C(v2);
sub_10024A2D0(m_gameObjects, a1->m_gameObject);
if ( !m_gameObjects )
return;
}
else
{
m_gameObjects = a1->m_gameObjects;
if ( !m_gameObjects )
return;
}
if ( (unsigned int)sub_10024A36C(m_gameObjects) )
{
*(_QWORD *)&a1->m_groupID1 = -1;
a1->m_chancePercent = -1.0;
if ( (unsigned int)sub_10024A36C(m_gameObjects) )
{
v4 = 0;
do
{
v5 = sub_10024A388(m_gameObjects, v4);
m_groupID1 = a1->m_groupID1;
v7 = *(_DWORD *)(v5 + 1464);
if ( m_groupID1 != -1 )
{
if ( m_groupID1 == v7 )
goto LABEL_12;
v7 = 0;
}
a1->m_groupID1 = v7;
LABEL_12:
m_groupID2 = a1->m_groupID2;
v9 = *(_DWORD *)(v5 + 1468);
if ( m_groupID2 != -1 )
{
if ( m_groupID2 == v9 )
goto LABEL_16;
v9 = 0;
}
a1->m_groupID2 = v9;
LABEL_16:
m_chancePercent = a1->m_chancePercent;
v11 = *(float *)(v5 + 1452);
if ( m_chancePercent == -1.0 || (v12 = m_chancePercent == v11, v11 = 0.0, !v12) )
a1->m_chancePercent = v11;
v4 = (unsigned int)(v4 + 1);
}
while ( (unsigned int)v4 < (unsigned int)sub_10024A36C(m_gameObjects) );
}
}
}