//
// FMOD::DSP::getActive from 0xb1174 to 0xb11ec (120 bytes)
//
// 1 xrefs:
// > FMOD::DSP::getActive @ 0xe0e28
//
// 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:40 +0000
//
int __fastcall FMOD::DSP::getActive(FMOD::DSP *this, bool *a2)
{
int v4; // r4
int v5; // r0
_BYTE v7[256]; // [sp+8h] [bp-118h] BYREF
int v8; // [sp+108h] [bp-18h] BYREF
int v9; // [sp+10Ch] [bp-14h] BYREF
v8 = 0;
v4 = FMOD::DSPI::validate(this, &v9, &v8);
if ( !v4 )
{
if ( a2 )
{
v4 = 0;
v5 = *(_DWORD *)(v9 + 92);
__dmb(0xBu);
*a2 = (unsigned __int8)v5 >> 7;
goto LABEL_6;
}
v4 = 31;
}
if ( (*((_BYTE *)&dword_14 + (_DWORD)off_E8000) & 0x80) != 0 )
{
sub_5CAD8((int)v7, 256, a2);
sub_BAB40(v4, 7, this, "DSP::getActive", v7);
}
LABEL_6:
sub_444C0(&v8);
return v4;
}