//
// sub_68DB8 from 0x68db8 to 0x68e16 (94 bytes)
//
// 1 xrefs:
// > sub_692F4 @ 0x692f6
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall sub_68DB8(int a1, int a2, int a3)
{
int v4; // r1
float v5; // s2
float v6; // s4
if ( a2 != 10 )
return 31;
v4 = a3;
if ( a3 )
v4 = 1;
if ( *(unsigned __int8 *)(a1 + 481) != v4 )
{
*(_BYTE *)(a1 + 481) = a3 != 0;
if ( a3 )
{
v5 = *(float *)(a1 + 404);
v6 = v5;
if ( *(float *)(a1 + 400) < v5 )
v6 = *(float *)(a1 + 400);
*(float *)(a1 + 504) = v6;
*(float *)(a1 + 508) = v5;
}
else
{
*(_QWORD *)(a1 + 504) = *(_QWORD *)(a1 + 392);
}
++*(_DWORD *)(a1 + 472);
}
return 0;
}