//
// FMOD::Sound::release from 0xd8094 to 0xd813c (168 bytes)
//
// 4 xrefs:
// > FMOD::Sound::release @ 0x10713c
// > ??> @ 0x8188
// > FMOD::Sound::release @ 0x107134
// > ??> @ 0x110160
//
// 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::Sound::release(FMOD::Sound *this)
{
__int64 v1; // x19
unsigned int v2; // w20
char v3; // w8
_QWORD v5[32]; // [xsp+0h] [xbp-120h] BYREF
__int64 *v6; // [xsp+108h] [xbp-18h] BYREF
v2 = sub_DA4B0(this, &v6, 0);
if ( v2 )
goto LABEL_5;
v5[0] = 0;
v2 = sub_50238(v5, v6[27]);
if ( !v2 )
v2 = (*(__int64 (__fastcall **)(__int64 *, __int64))(*v6 + 24))(v6, 1);
sub_51968(v5);
if ( v2 )
{
LABEL_5:
sub_DA344();
if ( v3 < 0 )
{
LOBYTE(v5[0]) = 0;
sub_DF504(v2, 5, v1, "Sound::release", v5);
}
}
return v2;
}