//
// sub_68808 from 0x68808 to 0x68868 (96 bytes)
//
// 4 xrefs:
// > ??> @ 0x10ca08
// > ??> @ 0x10cbb0
// > ??> @ 0x10cd58
// > ??> @ 0x10cee8
//
// 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
//
__int64 __fastcall sub_68808(__int64 a1, __int64 a2, int a3)
{
__int64 v3; // x8
float *v4; // x10
float v5; // t1
float v6; // s1
unsigned int v8; // w8
if ( a3 < 0 )
{
return 31;
}
else
{
if ( a2 )
{
v3 = 0;
v4 = (float *)(a2 + 16);
while ( ++v3 < a3 )
{
if ( *(v4 - 1) > *(v4 - 4) )
{
v5 = *v4;
v4 += 3;
v6 = v5;
if ( v5 >= 0.0 && v6 <= 1.0 )
continue;
}
return 31;
}
}
v8 = 0;
*(_QWORD *)(a1 + 144) = a2;
*(_DWORD *)(a1 + 152) = a3;
}
return v8;
}