//
// FMOD::DSP::release from 0x1800a3440 to 0x1800a34f5 (181 bytes)
//
// 3 xrefs:
// > FMOD_DSP_Release @ 0x1800c5de9
// > ??> @ 0x180194348
// > ??> @ 0x1801fb3c4
//
// This function is hookable on this platform (idp: pc, 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 10:53:53 +0000
//
__int64 __fastcall FMOD::DSP::release(__int64 a1)
{
int v1; // edi
unsigned int v2; // ebx
__int64 v4; // [rsp+30h] [rbp-128h] BYREF
__int64 v5; // [rsp+38h] [rbp-120h] BYREF
_BYTE v6[256]; // [rsp+40h] [rbp-118h] BYREF
v4 = 0;
v1 = a1;
v2 = FMOD::DSPI::validate(a1, &v5, &v4);
if ( (v2 || (v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 16LL))(v5)) != 0)
&& *((char *)off_1801AED20 + 16) < 0 )
{
v6[0] = 0;
sub_1800B20E0(v2, 7, v1, (unsigned int)"DSP::release", (__int64)v6);
}
if ( v4 )
sub_180102320();
return v2;
}