//
// FMOD::DSP::reset from 0x1800a3500 to 0x1800a35b4 (180 bytes)
//
// 3 xrefs:
// > FMOD_DSP_Reset @ 0x1800c5df9
// > ??> @ 0x180194348
// > ??> @ 0x1801fb3d0
//
// 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::reset(__int64 a1)
{
int v1; // edi
__int64 v2; // rdx
unsigned int v3; // ebx
__int64 v4; // r8
__int64 v5; // r9
__int64 v7; // [rsp+30h] [rbp-128h] BYREF
__int64 v8; // [rsp+38h] [rbp-120h] BYREF
_BYTE v9[256]; // [rsp+40h] [rbp-118h] BYREF
v7 = 0;
v1 = a1;
v3 = FMOD::DSPI::validate(a1, &v8, &v7);
if ( (v3 || (v3 = sub_1800992C0(v8, v2, v4, v5)) != 0) && *((char *)off_1801AED20 + 16) < 0 )
{
v9[0] = 0;
sub_1800B20E0(v3, 7, v1, (unsigned int)"DSP::reset", (__int64)v9);
}
if ( v7 )
sub_180102320();
return v3;
}