//
// sub_1004A07A4 from 0x1004a07a4 to 0x1004a07e0 (60 bytes)
//
// 2 xrefs:
// > sub_100457B04 @ 0x100457b6c
// > ??> @ 0x100828188
//
// 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_1004A07A4(__int64 a1, float a2)
{
if ( a2 >= 0.0 )
{
if ( *(_QWORD *)(a1 + 544) && (*(_BYTE *)(*(_QWORD *)(a1 + 536) + 56LL) & 4) == 0 )
*(_DWORD *)(a1 + 576) = 0;
}
else
{
*(_DWORD *)(a1 + 576) = 1;
a2 = -a2;
}
*(float *)(a1 + 552) = a2;
return 0;
}