//
// sub_18000FDB0 from 0x18000fdb0 to 0x18000fe46 (150 bytes)
//
// 2 xrefs:
// > ??> @ 0x18016c848
// > ??> @ 0x1801f6db0
//
// 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_18000FDB0(float *a1, float a2)
{
__int64 result; // rax
float v4; // [rsp+40h] [rbp+8h] BYREF
result = (*(__int64 (__fastcall **)(float *, float *))(*(_QWORD *)a1 + 152LL))(a1, &v4);
if ( !(_DWORD)result )
{
if ( (LOBYTE(v4) & 0x10) != 0 )
{
v4 = a2;
if ( (LODWORD(a2) & 0x7F800000) == 0x7F800000 )
{
return 29;
}
else if ( a2 < 0.0 || a2 > 1.0 )
{
return 31;
}
else
{
a1[60] = a2;
return 0;
}
}
else
{
return 40;
}
}
return result;
}