//
// sub_1800683A0 from 0x1800683a0 to 0x180068423 (131 bytes)
//
// 4 xrefs:
// > sub_180066F10 @ 0x180066f13
// > sub_180066F80 @ 0x180066fe4
// > sub_180067510 @ 0x180067940
// > ??> @ 0x1801f945c
//
// 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_1800683A0(__int64 a1)
{
unsigned int v1; // eax
void *v2; // rax
v1 = *(_DWORD *)(a1 + 600);
if ( !v1 )
{
v1 = ((int)(float)((float)((float)(*(float *)(a1 + 544) * 0.001) * (float)*(int *)(*(_QWORD *)(a1 + 168) + 1744LL))
+ 0.5)
+ 7)
& 0xFFFFFFF8;
*(_DWORD *)(a1 + 600) = v1;
}
*(_DWORD *)(a1 + 604) = v1;
v2 = *(void **)(a1 + 576);
*(_DWORD *)(a1 + 608) = 0;
*(_DWORD *)(a1 + 616) = 0;
if ( v2 )
memset(v2, 0, *(unsigned int *)(a1 + 592));
return 0;
}