//
// SetupEndPopup::determineStartValues from 0x100748800 to 0x100748925 (293 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b9cb78
//
// 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 12:36:32 +0000
//
__int64 __fastcall SetupEndPopup::determineStartValues(__int64 a1)
{
__int64 result; // rax
__int64 v2; // r14
unsigned int i; // r15d
__int64 v4; // rax
int v5; // ecx
int v6; // eax
bool v7; // zf
result = SetupTriggerPopup::determineStartValues(a1);
if ( *(_QWORD *)(a1 + 680) )
{
v2 = sub_1007FE900(a1);
result = sub_1007FEBF0(v2, *(_QWORD *)(a1 + 680));
if ( !v2 )
return result;
}
else
{
v2 = *(_QWORD *)(a1 + 688);
if ( !v2 )
return result;
}
result = sub_1007FEF90(v2);
if ( (_DWORD)result )
{
*(_WORD *)(a1 + 1024) = 257;
*(_DWORD *)(a1 + 1028) = -1;
result = sub_1007FEF90(v2);
if ( (_DWORD)result )
{
for ( i = 0; i < (unsigned int)result; ++i )
{
v4 = sub_1007FEFE0(v2, i);
if ( *(_BYTE *)(v4 + 1761) )
{
if ( *(_BYTE *)(v4 + 1505) )
goto LABEL_12;
}
else
{
*(_BYTE *)(a1 + 1024) = 0;
if ( *(_BYTE *)(v4 + 1505) )
{
LABEL_12:
v5 = *(_DWORD *)(a1 + 1028);
v6 = *(_DWORD *)(v4 + 1464);
if ( v5 != -1 )
goto LABEL_16;
goto LABEL_8;
}
}
*(_BYTE *)(a1 + 1025) = 0;
v5 = *(_DWORD *)(a1 + 1028);
v6 = *(_DWORD *)(v4 + 1464);
if ( v5 != -1 )
{
LABEL_16:
v7 = v5 == v6;
v6 = 0;
if ( v7 )
goto LABEL_9;
}
LABEL_8:
*(_DWORD *)(a1 + 1028) = v6;
LABEL_9:
result = sub_1007FEF90(v2);
}
}
}
return result;
}