//
// FMOD::DSP::getNumParameters from 0x1800a2440 to 0x1800a24f6 (182 bytes)
//
// 3 xrefs:
// > FMOD_DSP_GetNumParameters @ 0x1800c5ce9
// > ??> @ 0x180194348
// > ??> @ 0x1801fb22c
//
// 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
//
__int64 __fastcall FMOD::DSP::getNumParameters(__int64 a1, _DWORD *a2)
{
int v3; // esi
unsigned int v4; // ebx
__int64 result; // rax
__int64 v6; // [rsp+30h] [rbp-128h] BYREF
_BYTE v7[256]; // [rsp+40h] [rbp-118h] BYREF
v3 = a1;
v4 = FMOD::DSPI::validate(a1, &v6, nullptr);
if ( v4 || (result = sub_1800976C0(v6, a2), (v4 = result) != 0) )
{
if ( *((char *)off_1801AED20 + 16) < 0 )
{
sub_1800F3020(v7, 256, a2);
sub_1800B20E0(v4, 7, v3, (unsigned int)"DSP::getNumParameters", (__int64)v7);
}
return v4;
}
return result;
}