//
// FMOD::DSP::setActive from 0xd344c to 0xd34b0 (100 bytes)
//
// 4 xrefs:
// > FMOD::DSP::setActive @ 0x107a1c
// > ??> @ 0x2548
// > FMOD::DSP::setActive @ 0x107a14
// > ??> @ 0x1105d0
//
// 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::setActive(FMOD::DSP *this, char a2)
{
unsigned int v3; // w20
__int64 v4; // x0
char v5; // w8
__int64 v6; // x0
__int64 v8; // [xsp+108h] [xbp-28h]
v3 = sub_D4DA0(this);
if ( v3 || (v4 = sub_C7D1C(v8, a2 & 1), (v3 = v4) != 0) )
{
v4 = sub_D4D24();
if ( v5 < 0 )
{
v6 = sub_D4FE0(v4);
v4 = sub_D4D38(v6);
}
}
sub_D4EA8(v4);
return v3;
}