//
// sub_1004B3AE0 from 0x1004b3ae0 to 0x1004b3b24 (68 bytes)
//
// 4 xrefs:
// > sub_10046240C @ 0x100462480
// > sub_10046CDE4 @ 0x10046ce58
// > sub_10047B81C @ 0x10047b890
// > sub_100480EE8 @ 0x100480f5c
//
// 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_1004B3AE0(__int64 a1, unsigned int a2, float a3)
{
__int64 result; // x0
if ( (a2 & 0x80000000) != 0 )
return 31;
result = 31;
if ( a3 <= 1.0 && a3 >= 0.0 && *(_DWORD *)(a1 + 968) > (int)a2 )
{
result = 0;
*(float *)(*(_QWORD *)(a1 + 8LL * a2 + 976) + 240LL) = a3;
}
return result;
}