//
// FMOD::System::getCPUUsage from 0x1004cb870 to 0x1004cb938 (200 bytes)
//
// 2 xrefs:
// > FMODAudioEngine::getFMODStatus @ 0x10013eb9c
// > sub_100452CC4 @ 0x100452cc8
//
// 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::System::getCPUUsage(__int64 a1, __int64 a2)
{
int v4; // w3
int v5; // w4
int v6; // w5
int v7; // w6
int v8; // w7
__int64 v9; // x20
__int64 v11; // [xsp+0h] [xbp-130h] BYREF
_BYTE v12[256]; // [xsp+8h] [xbp-128h] BYREF
v9 = sub_1004CE440(a1, &v11, 0);
if ( (_DWORD)v9 || (v9 = sub_1004D2854(v11, a2), (_DWORD)v9) )
{
if ( (*((_BYTE *)off_1008524C8 + 32) & 0x80) != 0 )
{
sub_100436324((int)v12, 0x100u, a2, v4, v5, v6, v7, v8);
sub_10048489C(v9, 1, a1, (__int64)"System::getCPUUsage", (__int64)v12);
}
}
return v9;
}