//
// FMOD::DSP::getCPUUsage from 0xb2570 to 0xb25e6 (118 bytes)
//
// 1 xrefs:
// > FMOD::DSP::getCPUUsage @ 0xe1008
//
// 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:41 +0000
//
int __fastcall FMOD::DSP::getCPUUsage(FMOD::DSP *this, unsigned int *a2, unsigned int *a3)
{
int v6; // r5
_BYTE v8[256]; // [sp+8h] [bp-120h] BYREF
int v9; // [sp+108h] [bp-20h] BYREF
_DWORD *v10; // [sp+10Ch] [bp-1Ch] BYREF
v9 = 0;
v6 = FMOD::DSPI::validate(this, &v10, &v9);
if ( v6 || (v6 = sub_ABD58(v10, a2, a3)) != 0 )
{
if ( (*((_BYTE *)&dword_14 + (_DWORD)off_E8000) & 0x80) != 0 )
{
sub_B25F0(v8, 256, a2, a3);
sub_BAB40(v6, 7, this, "DSP::getCPUUsage", v8);
}
}
else
{
v6 = 0;
}
sub_444C0(&v9);
return v6;
}