//
// FMOD::DSP::getNumOutputs from 0xd3284 to 0xd32d8 (84 bytes)
//
// 4 xrefs:
// > FMOD::DSP::getNumOutputs @ 0x1079ec
// > ??> @ 0x6b98
// > FMOD::DSP::getNumOutputs @ 0x1079e4
// > ??> @ 0x1105b8
//
// 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::getNumOutputs(FMOD::DSP *this, int *a2)
{
unsigned int v2; // w20
__int64 v3; // x0
__int64 v4; // x1
__int64 v5; // x0
char v6; // w8
__int64 v7; // x0
__int64 v9; // [xsp+0h] [xbp-140h] BYREF
v2 = sub_D4D7C(this, a2);
if ( v2 || (v3 = sub_D4EE8(), v5 = sub_6E84C(v3, v4), (v2 = v5) != 0) )
{
v5 = sub_D4D24();
if ( v6 < 0 )
{
v7 = sub_D4FC0(&v9);
v5 = sub_D4D38(v7);
}
}
sub_D4EA8(v5);
return v2;
}