//
// FMOD::Sound::release from 0xb4924 to 0xb4998 (116 bytes)
//
// 1 xrefs:
// > FMOD::Sound::release @ 0xe0488
//
// 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:42 +0000
//
int __fastcall FMOD::Sound::release(FMOD::Sound *this)
{
int v2; // r5
_DWORD v4[64]; // [sp+4h] [bp-114h] BYREF
int *v5; // [sp+104h] [bp-14h] BYREF
v2 = sub_54E84((int)this, &v5, 0);
if ( v2 )
goto LABEL_5;
v4[0] = 0;
v2 = sub_431D0(v4, v5[39]);
if ( !v2 )
v2 = (*(int (__fastcall **)(int *, int))(*v5 + 12))(v5, 1);
sub_444C0(v4);
if ( !v2 )
return 0;
LABEL_5:
if ( (*((_BYTE *)&dword_14 + (_DWORD)off_E8000) & 0x80) != 0 )
{
LOBYTE(v4[0]) = 0;
sub_BAB40(v2, 5, this, "Sound::release", v4);
}
return v2;
}