//
// SetupEndPopup::determineStartValues from 0x10034c904 to 0x10034c9d8 (212 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009305f8
//
// This function is hookable on this platform (idp: arm, 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 11:03:17 +0000
//
__int64 __fastcall SetupEndPopup::determineStartValues(__int64 a1)
{
__int64 result; // x0
_QWORD *v3; // x20
unsigned int v4; // w21
__int64 v5; // x0
int v6; // w9
int v7; // w8
result = SetupTriggerPopup::determineStartValues(a1);
if ( *(_QWORD *)(a1 + 680) )
{
v3 = sub_1002E736C();
result = sub_1002E74E0((__int64)v3);
if ( !v3 )
return result;
}
else
{
v3 = *(_QWORD **)(a1 + 688);
if ( !v3 )
return result;
}
result = sub_1002E757C((__int64)v3);
if ( (_DWORD)result )
{
*(_WORD *)(a1 + 1024) = 257;
*(_DWORD *)(a1 + 1028) = -1;
result = sub_1002E757C((__int64)v3);
if ( (_DWORD)result )
{
v4 = 0;
while ( 1 )
{
v5 = sub_1002E75A0((__int64)v3, v4);
if ( (*(_BYTE *)(v5 + 1761) & 1) == 0 )
*(_BYTE *)(a1 + 1024) = 0;
if ( (*(_BYTE *)(v5 + 1505) & 1) == 0 )
*(_BYTE *)(a1 + 1025) = 0;
v6 = *(_DWORD *)(a1 + 1028);
v7 = *(_DWORD *)(v5 + 1464);
if ( v6 == -1 )
goto LABEL_15;
if ( v6 != v7 )
break;
LABEL_16:
++v4;
result = sub_1002E757C((__int64)v3);
if ( v4 >= (unsigned int)result )
return result;
}
v7 = 0;
LABEL_15:
*(_DWORD *)(a1 + 1028) = v7;
goto LABEL_16;
}
}
return result;
}