//
// sub_C7440 from 0xc7440 to 0xc7478 (56 bytes)
//
// 2 xrefs:
// > sub_5382C @ 0x53898
// > ??> @ 0x10ef40
//
// 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_C7440(__int64 a1, float a2)
{
if ( a2 >= 0.0 )
{
if ( *(_QWORD *)(a1 + 552) && (*(_BYTE *)(*(_QWORD *)(a1 + 544) + 56LL) & 4) == 0 )
*(_DWORD *)(a1 + 584) = 0;
}
else
{
*(_DWORD *)(a1 + 584) = 1;
a2 = -a2;
}
*(float *)(a1 + 560) = a2;
return 0;
}