//
// FMOD::Reverb3D::setActive from 0xd7ecc to 0xd7f38 (108 bytes)
//
// 4 xrefs:
// > FMOD::Reverb3D::setActive @ 0x107e3c
// > ??> @ 0x84b8
// > FMOD::Reverb3D::setActive @ 0x107e34
// > ??> @ 0x1107e0
//
// 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:53 +0000
//
__int64 __fastcall FMOD::Reverb3D::setActive(FMOD::Reverb3D *this, char a2)
{
unsigned int v3; // w20
char v4; // w8
__int64 v5; // x0
_BYTE v7[256]; // [xsp+8h] [xbp-128h] BYREF
__int64 v8; // [xsp+108h] [xbp-28h] BYREF
v3 = sub_D8080(this, &v8);
if ( v3 || (v3 = sub_65F7C(v8, a2 & 1)) != 0 )
{
sub_D804C();
if ( v4 < 0 )
{
v5 = sub_71590((__int64)v7, 256, a2 & 1);
sub_D8038(v5);
}
}
return v3;
}