//
// FMOD::System::unloadPlugin from 0xdbcf4 to 0xdbd50 (92 bytes)
//
// 4 xrefs:
// > FMOD::System::unloadPlugin @ 0x106cbc
// > ??> @ 0x4af8
// > FMOD::System::unloadPlugin @ 0x106cb4
// > ??> @ 0x10ff20
//
// 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:55 +0000
//
__int64 __fastcall FMOD::System::unloadPlugin(FMOD::System *this)
{
unsigned int v1; // w20
__int64 v2; // x0
unsigned int v3; // w1
__int64 v4; // x0
char v5; // w8
__int64 v6; // x0
v1 = sub_DF034(this);
if ( v1 || (v2 = sub_DF2F4(), v4 = sub_6BF34(v2, v3), (v1 = v4) != 0) )
{
v4 = sub_DEFD0();
if ( v5 < 0 )
{
v6 = sub_DF430(v4);
v4 = sub_DEFE4(v6);
}
}
sub_DF11C(v4);
return v1;
}