//
// sub_10048BAF8 from 0x10048baf8 to 0x10048bb68 (112 bytes)
//
// 0 xrefs:
//
// 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_10048BAF8(__int64 a1)
{
unsigned int v1; // w8
v1 = *(_DWORD *)(a1 + 592);
if ( !v1 )
{
v1 = ((unsigned int)(float)((float)((float)(*(float *)(a1 + 536) / 1000.0)
* (float)*(int *)(*(_QWORD *)(a1 + 168) + 1744LL))
+ 0.5)
+ 7)
& 0xFFFFFFF8;
*(_DWORD *)(a1 + 592) = v1;
}
*(_DWORD *)(a1 + 600) = 0;
*(_DWORD *)(a1 + 596) = v1;
*(_DWORD *)(a1 + 608) = 0;
if ( *(_QWORD *)(a1 + 568) )
bzero(*(void **)(a1 + 568), *(unsigned int *)(a1 + 584));
return 0;
}