//
// sub_1005089F4 from 0x1005089f4 to 0x100508a30 (60 bytes)
//
// 3 xrefs:
// > sub_10045AFB0 @ 0x10045afdc
// > sub_10045EBA8 @ 0x10045ebd8
// > ??> @ 0x10082a490
//
// 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_1005089F4(__int64 a1, unsigned int a2, float a3)
{
if ( (~LODWORD(a3) & 0x7F800000) == 0 )
return 29;
if ( a2 > 3 )
return 59;
*(float *)(a1 + 4LL * a2 + 316) = a3;
return 0;
}