//
// FMOD::DSP::disconnectAll from 0x100484d48 to 0x100484e70 (296 bytes)
//
// 1 xrefs:
// > sub_100453FF8 @ 0x10045400c
//
// 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
//
// local variable allocation has failed, the output may be wrong!
FMOD_RESULT __fastcall FMOD::DSP::disconnectAll(FMOD::DSP *a1, bool a2, bool a3)
{
_BOOL8 v3; // x21
_BOOL8 v4; // x22
__int64 v6; // x19
int v7; // w0
__int64 v8; // x22
int v9; // w3
int v10; // w4
int v11; // w5
int v12; // w6
int v13; // w7
int v14; // w0
__int64 v16; // [xsp+8h] [xbp-158h] BYREF
__int64 v17; // [xsp+10h] [xbp-150h] BYREF
_BYTE v18[256]; // [xsp+18h] [xbp-148h] BYREF
v3 = a3;
v4 = a2;
v16 = 0;
v6 = sub_1004A3DB0(a1, &v17, &v16);
if ( (_DWORD)v6 || (v6 = sub_1004A7688(v17, v4, v3), (_DWORD)v6) )
{
if ( (*((_BYTE *)off_1008524C8 + 32) & 0x80) != 0 )
{
v7 = sub_100435E24(v18, 0x100u, v4);
v8 = v7;
v14 = sub_100435EB4(&v18[v7], (unsigned int)(256 - v7), ", ", v9, v10, v11, v12, v13);
sub_100435E24(&v18[v8 + v14], (unsigned int)(256 - (v8 + v14)), v3);
sub_10048489C(v6, 7, (__int64)a1, (__int64)"DSP::disconnectAll", (__int64)v18);
}
}
if ( v16 )
sub_100442D80(v16);
return (unsigned int)v6;
}