//
// sub_4FB1A from 0x4fb1a to 0x4fb5a (64 bytes)
//
// 1 xrefs:
// > sub_4FBC4 @ 0x4fbc4
//
// 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_4FB1A(int a1, int a2, float a3)
{
int result; // r0
bool v5; // cc
if ( a2 < 0 )
return 31;
result = 31;
if ( a3 <= 1.0 )
{
v5 = a3 <= 0.0;
if ( a3 >= 0.0 )
v5 = *(_DWORD *)(a1 + 800) <= a2;
if ( !v5 )
{
*(float *)(*(_DWORD *)(a1 + 4 * a2 + 808) + 208) = a3;
return 0;
}
}
return result;
}