//
// 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 (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 10:53:27 +0000
//
__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;
}