//
// FMOD::DSP::release from 0xd2e94 to 0xd2ef0 (92 bytes)
//
// 4 xrefs:
// > FMOD::DSP::release @ 0x10798c
// > ??> @ 0x1e10
// > FMOD::DSP::release @ 0x107984
// > ??> @ 0x110588
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:14:51 +0000
//
__int64 __fastcall FMOD::DSP::release(FMOD::DSP *this)
{
__int64 v1; // x29
unsigned int v2; // w20
__int64 v3; // x0
char v4; // w8
v2 = sub_D4F0C(this);
if ( v2 || (v2 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v1 - 24) + 16LL))(*(_QWORD *)(v1 - 24))) != 0 )
{
v3 = sub_D4D24();
if ( v4 < 0 )
sub_D4F7C(v3);
}
sub_51968((_QWORD *)(v1 - 40));
return v2;
}