//
// sub_BA5D0 from 0xba5d0 to 0xba64c (124 bytes)
//
// 1 xrefs:
// > sub_BA958 @ 0xba95c
//
// 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_BA5D0(__int64 a1, int a2, int a3)
{
float v3; // s1
__int64 v5; // x0
if ( a2 != 23 )
return 31;
if ( *(_BYTE *)(a1 + 576) != (a3 != 0) )
{
*(_BYTE *)(a1 + 576) = a3 != 0;
if ( a3 )
{
v3 = *(float *)(a1 + 572);
*(float *)(a1 + 960) = fminf(*(float *)(a1 + 568), v3);
*(float *)(a1 + 964) = v3;
}
else
{
*(_QWORD *)(a1 + 960) = *(_QWORD *)(a1 + 560);
}
v5 = sub_BA9F4(a1);
sub_BA9A0(v5);
}
return 0;
}