//
// SetupAreaTintTriggerPopup::determineStartValues from 0x10003be18 to 0x10003bf58 (320 bytes)
//
// 2 xrefs:
// > ??> @ 0x1008b7948
// > ??> @ 0x1008b89f0
//
// 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 10:57:34 +0000
//
__int64 __fastcall SetupAreaTintTriggerPopup::determineStartValues(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x20
char v4; // w24
__int64 v5; // x21
char v6; // w23
__int64 v7; // x0
__int64 v8; // x8
__int64 v9; // x9
result = SetupTriggerPopup::determineStartValues();
if ( *(_QWORD *)(a1 + 680) )
{
v3 = sub_1002E736C(result);
result = sub_1002E74E0(v3, *(_QWORD *)(a1 + 680));
if ( !v3 )
return result;
}
else
{
v3 = *(_QWORD *)(a1 + 688);
if ( !v3 )
return result;
}
result = sub_1002E757C(v3);
if ( (_DWORD)result )
{
*(_OWORD *)(a1 + 1048) = xmmword_1009F2730;
result = sub_1002E757C(v3);
if ( (_DWORD)result )
{
v4 = 0;
v5 = 0;
v6 = 1;
do
{
v7 = sub_1002E75A0(v3, v5);
if ( (v4 & 1) != 0 )
{
v4 = 1;
}
else
{
v9 = *(_QWORD *)(v7 + 1612);
v8 = *(_QWORD *)(v7 + 1620);
if ( (v6 & 1) != 0 )
goto LABEL_17;
if ( *(float *)(a1 + 1048) != *(float *)&v9
|| *(float *)(a1 + 1052) != *((float *)&v9 + 1)
|| *(float *)(a1 + 1056) != *(float *)&v8
|| __PAIR64__(*(unsigned __int8 *)(a1 + 1061), *(unsigned __int8 *)(a1 + 1060)) != __PAIR64__(
BYTE5(v8),
BYTE4(v8)) )
{
v8 = 0;
v9 = 3129152111LL;
LABEL_17:
v4 = v6 ^ 1;
*(_QWORD *)(a1 + 1048) = v9;
*(_QWORD *)(a1 + 1056) = v8;
v6 = 0;
goto LABEL_18;
}
v6 = 0;
v4 = 0;
}
LABEL_18:
v5 = (unsigned int)(v5 + 1);
result = sub_1002E757C(v3);
}
while ( (unsigned int)v5 < (unsigned int)result );
}
}
return result;
}