//
// FMOD_OS_Time_GetUs from 0xc0274 to 0xc02c4 (80 bytes)
//
// 1 xrefs:
// > j_FMOD_OS_Time_GetUs @ 0xe2df8
//
// 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
//
int __fastcall FMOD_OS_Time_GetUs(_DWORD *a1)
{
int v3; // r0
int v4; // r1
int v5; // [sp+0h] [bp-10h] BYREF
unsigned int v6; // [sp+4h] [bp-Ch]
v5 = 0;
v6 = 0;
if ( clock_gettime(1, (struct timespec *)&v5) )
return 28;
v3 = v5;
v4 = *(int *)((char *)&dword_150 + (_DWORD)off_E8000);
if ( !v4 )
{
v4 = v5;
*(int *)((char *)&dword_150 + (_DWORD)off_E8000) = v5;
}
*a1 = v6 / 0x3E8 + 1000000 * (v3 - v4);
return 0;
}