//
// SetupAnimationPopup::determineStartValues from 0x1003bec80 to 0x1003bed68 (232 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b38318
//
// This function is hookable on this platform (idp: pc, 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 12:29:32 +0000
//
__int64 __fastcall SetupAnimationPopup::determineStartValues(__int64 a1)
{
__int64 result; // rax
__int64 v2; // r14
unsigned int v3; // r15d
__int64 v4; // rax
int v5; // edx
int v6; // ecx
bool v7; // zf
int v8; // ecx
int v9; // eax
result = SetupTriggerPopup::determineStartValues(a1);
if ( *(_QWORD *)(a1 + 680) )
{
v2 = sub_1007FE900(a1);
result = sub_1007FEBF0(v2, *(_QWORD *)(a1 + 680));
if ( !v2 )
return result;
}
else
{
v2 = *(_QWORD *)(a1 + 688);
if ( !v2 )
return result;
}
result = sub_1007FEF90(v2);
if ( (_DWORD)result )
{
*(_QWORD *)(a1 + 1032) = -1;
result = sub_1007FEF90(v2);
if ( (_DWORD)result )
{
v3 = 0;
do
{
v4 = sub_1007FEFE0(v2, v3);
v5 = *(_DWORD *)(a1 + 1032);
v6 = *(_DWORD *)(v4 + 1464);
if ( v5 == -1 || (v7 = v5 == v6, v6 = 0, !v7) )
*(_DWORD *)(a1 + 1032) = v6;
v8 = *(_DWORD *)(a1 + 1036);
v9 = *(_DWORD *)(v4 + 1652);
if ( v8 == -1 || (v7 = v8 == v9, v9 = 0, !v7) )
*(_DWORD *)(a1 + 1036) = v9;
++v3;
result = sub_1007FEF90(v2);
}
while ( v3 < (unsigned int)result );
}
}
return result;
}