//
// SetupEndPopup::determineStartValues from 0x100669810 to 0x100669935 (293 bytes)
//
// 1 xrefs:
// > ??> @ 0x100988800
//
// 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 SetupEndPopup::determineStartValues(SetupEndPopup *a1)
{
__int64 v1; // rsi
__int64 m_gameObjects; // r14
unsigned int i; // r15d
__int64 v4; // rax
int m_groupID; // ecx
int v6; // eax
bool v7; // zf
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) )
{
*(_WORD *)&a1->m_reversed = 257;
a1->m_groupID = -1;
if ( (unsigned int)sub_100720070(m_gameObjects) )
{
for ( i = 0; i < (unsigned int)sub_100720070(m_gameObjects); ++i )
{
v4 = sub_1007200C0(m_gameObjects, i);
if ( *(_BYTE *)(v4 + 1761) )
{
if ( *(_BYTE *)(v4 + 1505) )
goto LABEL_12;
}
else
{
a1->m_reversed = 0;
if ( *(_BYTE *)(v4 + 1505) )
{
LABEL_12:
m_groupID = a1->m_groupID;
v6 = *(_DWORD *)(v4 + 1464);
if ( m_groupID != -1 )
goto LABEL_16;
goto LABEL_8;
}
}
a1->m_lockY = 0;
m_groupID = a1->m_groupID;
v6 = *(_DWORD *)(v4 + 1464);
if ( m_groupID != -1 )
{
LABEL_16:
v7 = m_groupID == v6;
v6 = 0;
if ( v7 )
continue;
}
LABEL_8:
a1->m_groupID = v6;
}
}
}
}