//
// 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 (idp: arm, 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 12:14:59 +0000
//
__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;
}