//
// SetupOpacityPopup::determineStartValues from 0x10002720c to 0x10002733c (304 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008b0200
//
// 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:26 +0000
//
__int64 __fastcall SetupOpacityPopup::determineStartValues(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x20
__int64 v4; // x21
float v5; // s8
float v6; // s9
__int64 v7; // x0
float v8; // s1
int v9; // w9
int v10; // w8
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 )
{
*(_DWORD *)(a1 + 1056) = 1065353216;
*(_DWORD *)(a1 + 1064) = -99999;
result = sub_1002E757C(v3);
if ( (_DWORD)result )
{
v4 = 0;
v5 = -99999.0;
v6 = -99999.0;
while ( 1 )
{
v7 = sub_1002E75A0(v3, v4);
if ( v6 == *(float *)(v7 + 1452) )
v8 = v6;
else
v8 = -2.0;
if ( v6 == -99999.0 )
v6 = *(float *)(v7 + 1452);
else
v6 = v8;
if ( v5 == -99999.0 )
{
v5 = *(float *)(v7 + 1456);
}
else if ( v5 != *(float *)(v7 + 1456) )
{
v5 = -2.0;
}
v9 = *(_DWORD *)(a1 + 1064);
v10 = *(_DWORD *)(v7 + 1464);
if ( v9 == -99999 )
goto LABEL_21;
if ( v9 != v10 )
break;
LABEL_22:
v4 = (unsigned int)(v4 + 1);
result = sub_1002E757C(v3);
if ( (unsigned int)v4 >= (unsigned int)result )
{
if ( v6 >= 0.0 )
*(float *)(a1 + 1060) = v6;
if ( v5 >= 0.0 )
*(float *)(a1 + 1056) = v5;
return result;
}
}
v10 = 0;
LABEL_21:
*(_DWORD *)(a1 + 1064) = v10;
goto LABEL_22;
}
}
return result;
}