//
// FMOD::System::release from 0xb6ef4 to 0xb6f54 (96 bytes)
//
// 1 xrefs:
// > FMOD::System::release @ 0xdfec8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:41:43 +0000
//
int __fastcall FMOD::System::release(FMOD::System *this)
{
int v2; // r5
_BYTE v4[256]; // [sp+8h] [bp-110h] BYREF
int v5; // [sp+108h] [bp-10h] BYREF
int v6; // [sp+10Ch] [bp-Ch] BYREF
v5 = 0;
v2 = FMOD::SystemI::validate((int)this, &v6, &v5);
if ( v2 || (sub_444C0(&v5), (v2 = sub_581BC(v6)) != 0) )
{
if ( (*((_BYTE *)&dword_14 + (_DWORD)off_E8000) & 0x80) != 0 )
{
v4[0] = 0;
sub_BAB40(v2, 1, this, "System::release", v4);
}
}
else
{
v2 = 0;
}
sub_444C0(&v5);
return v2;
}