//
// sub_75BD08 from 0x75bd08 to 0x75bd2c (36 bytes)
//
// 0 xrefs:
//
// 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_75BD08(_DWORD *a1)
{
unsigned int v1; // r3
unsigned int v2; // r2
unsigned __int8 *v3; // r3
if ( (a1[8] & 8) == 0 )
return -1;
v1 = a1[5];
v2 = a1[3];
if ( v1 )
{
if ( v1 > v2 )
{
a1[3] = v1;
v2 = v1;
}
}
v3 = (unsigned __int8 *)a1[2];
if ( (unsigned int)v3 < v2 )
return *v3;
else
return -1;
}