//
// sub_1005D9C48 from 0x1005d9c48 to 0x1005d9c8c (68 bytes)
//
// 4 xrefs:
// > sub_100588574 @ 0x1005885e8
// > sub_100592F4C @ 0x100592fc0
// > sub_1005A1984 @ 0x1005a19f8
// > sub_1005A7050 @ 0x1005a70c4
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:09:36 +0000
//
__int64 __fastcall sub_1005D9C48(__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;
}