//
// 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 (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:41:48 +0000
//
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;
}