//
// SetupInstantCountPopup::determineStartValues from 0x1002527e0 to 0x100252910 (304 bytes)
//
// 1 xrefs:
// > ??> @ 0x10090cd78
//
// 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:01:32 +0000
//
void __fastcall SetupInstantCountPopup::determineStartValues(__int64 a1)
{
__int64 started; // x0
__int64 v3; // x20
__int64 v4; // x21
__int64 v5; // x0
int v6; // w9
int v7; // w8
int v8; // w9
int v9; // w8
int v10; // w9
int v11; // w8
int v12; // w9
int v13; // w8
started = SetupTriggerPopup::determineStartValues(a1);
if ( !*(_QWORD *)(a1 + 680) )
{
v3 = *(_QWORD *)(a1 + 688);
if ( !v3 )
return;
goto LABEL_5;
}
v3 = sub_1002E736C(started);
sub_1002E74E0(v3, *(_QWORD *)(a1 + 680));
if ( v3 )
{
LABEL_5:
*(_QWORD *)(a1 + 1040) = -1;
*(_DWORD *)(a1 + 1048) = 99999;
*(_BYTE *)(a1 + 1052) = 1;
*(_DWORD *)(a1 + 1056) = -1;
if ( !(unsigned int)sub_1002E757C(v3) )
return;
v4 = 0;
do
{
v5 = sub_1002E75A0(v3, v4);
if ( (*(_BYTE *)(v5 + 1637) & 1) == 0 )
*(_BYTE *)(a1 + 1052) = 0;
v6 = *(_DWORD *)(a1 + 1040);
v7 = *(_DWORD *)(v5 + 1680);
if ( v6 != -1 )
{
if ( v6 == v7 )
goto LABEL_13;
v7 = 0;
}
*(_DWORD *)(a1 + 1040) = v7;
LABEL_13:
v8 = *(_DWORD *)(a1 + 1044);
v9 = *(_DWORD *)(v5 + 1464);
if ( v8 != -1 )
{
if ( v8 == v9 )
goto LABEL_17;
v9 = 0;
}
*(_DWORD *)(a1 + 1044) = v9;
LABEL_17:
v10 = *(_DWORD *)(a1 + 1056);
v11 = *(_DWORD *)(v5 + 1844);
if ( v10 != -1 )
{
if ( v10 == v11 )
goto LABEL_21;
v11 = 0;
}
*(_DWORD *)(a1 + 1056) = v11;
LABEL_21:
v12 = *(_DWORD *)(a1 + 1048);
v13 = *(_DWORD *)(v5 + 1840);
if ( v12 == 99999 )
goto LABEL_24;
if ( v12 != v13 )
{
v13 = 0;
LABEL_24:
*(_DWORD *)(a1 + 1048) = v13;
}
v4 = (unsigned int)(v4 + 1);
}
while ( (unsigned int)v4 < (unsigned int)sub_1002E757C(v3) );
}
}