//
// FMOD::DSP::setParameterBool from 0x10048626c to 0x100486384 (280 bytes)
//
// 3 xrefs:
// > FMODAudioEngine::setupAudioEngine @ 0x100138578
// > FMODAudioEngine::setupAudioEngine @ 0x1001385bc
// > sub_1004541A8 @ 0x1004541b4
//
// 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::setParameterBool(FMOD::DSP *a1, int a2, bool a3)
{
_BOOL8 v3; // x21
__int64 v4; // x22
int v6; // w3
int v7; // w4
int v8; // w5
int v9; // w6
int v10; // w7
__int64 v11; // x20
int v12; // w0
__int64 v13; // x22
int v14; // w3
int v15; // w4
int v16; // w5
int v17; // w6
int v18; // w7
int v19; // w0
__int64 v21; // [xsp+0h] [xbp-150h] BYREF
_BYTE v22[256]; // [xsp+8h] [xbp-148h] BYREF
v3 = a3;
v4 = *(_QWORD *)&a2;
v11 = sub_1004A3DB0(a1, &v21, 0);
if ( (_DWORD)v11 || (v11 = sub_1004A7AC8(v21, v4, v3), (_DWORD)v11) )
{
if ( (*((_BYTE *)off_1008524C8 + 32) & 0x80) != 0 )
{
v12 = sub_100435CDC(v22, 0x100u, v4, v6, v7, v8, v9, v10);
v13 = v12;
v19 = sub_100435EB4(&v22[v12], (unsigned int)(256 - v12), ", ", v14, v15, v16, v17, v18);
sub_100435E24(&v22[v13 + v19], (unsigned int)(256 - (v13 + v19)), v3);
sub_10048489C(v11, 7, (__int64)a1, (__int64)"DSP::setParameterBool", (__int64)v22);
}
}
return (unsigned int)v11;
}