//
// FMOD::System::lockDSP from 0xb9f90 to 0xb9fde (78 bytes)
//
// 1 xrefs:
// > FMOD::System::lockDSP @ 0xe0358
//
// 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:45 +0000
//
int __fastcall FMOD::System::lockDSP(FMOD::System *this)
{
int v2; // r5
_BYTE v4[256]; // [sp+4h] [bp-10Ch] BYREF
int v5; // [sp+104h] [bp-Ch] BYREF
v2 = FMOD::SystemI::validate((int)this, &v5, nullptr);
if ( !v2 )
{
v2 = sub_5B044(v5);
if ( !v2 )
return 0;
}
if ( (*((_BYTE *)&dword_14 + (_DWORD)off_E8000) & 0x80) != 0 )
{
v4[0] = 0;
sub_BAB40(v2, 1, this, "System::lockDSP", v4);
}
return v2;
}