//
// FMOD::System::unlockDSP from 0x1004ccf6c to 0x1004cd020 (180 bytes)
//
// 2 xrefs:
// > FMODAudioEngine::loadAudioState @ 0x10013a174
// > sub_100452E1C @ 0x100452e20
//
// 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
//
FMOD_RESULT __fastcall FMOD::System::unlockDSP(FMOD::System *a1)
{
__int64 v2; // x20
__int64 v4; // [xsp+0h] [xbp-130h] BYREF
_BYTE v5[256]; // [xsp+8h] [xbp-128h] BYREF
v2 = sub_1004CE440(a1, &v4, 0);
if ( (_DWORD)v2 || (v2 = sub_1004D40F4(v4), (_DWORD)v2) )
{
if ( (*((_BYTE *)off_1008524C8 + 32) & 0x80) != 0 )
{
v5[0] = 0;
sub_10048489C(v2, 1, (__int64)a1, (__int64)"System::unlockDSP", (__int64)v5);
}
}
return (unsigned int)v2;
}