//
// FMOD_OS_Time_Sleep from 0xe6cc8 to 0xe6d14 (76 bytes)
//
// 4 xrefs:
// > .FMOD_OS_Time_Sleep @ 0x107f4c
// > ??> @ 0x3b80
// > .FMOD_OS_Time_Sleep @ 0x107f44
// > ??> @ 0x110868
//
// 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 FMOD_OS_Time_Sleep(unsigned int a1)
{
_QWORD v2[2]; // [xsp+0h] [xbp-10h] BYREF
v2[0] = a1 / 0x3E8;
v2[1] = 1000000 * (-1000LL * v2[0] + a1);
nanosleep((const struct timespec *)v2, nullptr);
return 0;
}