//
// SetupEnterTriggerPopup::determineStartValues from 0x100371640 to 0x1003716f0 (176 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009383c8
//
// 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:23 +0000
//
__int64 __fastcall SetupEnterTriggerPopup::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 )
{
*(_DWORD *)(a1 + 1032) = -1;
result = sub_1002E757C((__int64)v3);
if ( (_DWORD)result )
{
v4 = 0;
while ( 1 )
{
v5 = sub_1002E75A0((__int64)v3, v4);
v6 = *(_DWORD *)(a1 + 1032);
v7 = *(_DWORD *)(v5 + 1840);
if ( v6 < 0 )
goto LABEL_11;
if ( v6 != v7 )
break;
LABEL_12:
++v4;
result = sub_1002E757C((__int64)v3);
if ( v4 >= (unsigned int)result )
return result;
}
v7 = 0;
LABEL_11:
*(_DWORD *)(a1 + 1032) = v7;
goto LABEL_12;
}
}
return result;
}