//
// FMOD::System::getCPUUsage from 0x1800acd10 to 0x1800acdc6 (182 bytes)
//
// 4 xrefs:
// > FMOD_System_GetCPUUsage @ 0x1800c6a79
// > ??> @ 0x180194348
// > ??> @ 0x1801fc294
// > ??> @ 0x1801fc2a0
//
// 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:55 +0000
//
__int64 __fastcall FMOD::System::getCPUUsage(__int64 a1, __int64 a2)
{
int v3; // esi
unsigned int v4; // ebx
__int64 result; // rax
__int64 v6; // [rsp+30h] [rbp-128h] BYREF
_BYTE v7[256]; // [rsp+40h] [rbp-118h] BYREF
v3 = a1;
v4 = FMOD::SystemI::validate(a1, &v6, 0);
if ( v4 || (result = sub_1800E3E80(v6, a2), (v4 = result) != 0) )
{
if ( *((char *)off_1801AED20 + 16) < 0 )
{
sub_1800F3230(v7, 256, a2);
sub_1800B20E0(v4, 1, v3, (unsigned int)"System::getCPUUsage", (__int64)v7);
}
return v4;
}
return result;
}