//
// sub_1005F6230 from 0x1005f6230 to 0x1005f6300 (208 bytes)
//
// 1 xrefs:
// > FMOD::System::release @ 0x1005edb6c
//
// 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 11:09:51 +0000
//
__int64 __fastcall sub_1005F6230(__int64 a1)
{
__int64 v2; // x20
__int64 result; // x0
void (__fastcall ***v4)(_QWORD); // x0
v2 = a1 + 69128;
if ( !*(_BYTE *)(a1 + 8) )
goto LABEL_5;
if ( *(_BYTE *)(a1 + 69984) )
return 28;
result = sub_1005F4FC0(a1, 0);
if ( !(_DWORD)result )
{
LABEL_5:
v4 = *(void (__fastcall ****)(_QWORD))(a1 + 1648);
if ( v4 )
{
(**v4)(v4);
*(_QWORD *)(a1 + 1648) = 0;
}
if ( *(_QWORD *)v2 )
{
result = sub_1005E142C(*(_QWORD *)v2, 1);
if ( (_DWORD)result )
return result;
*(_QWORD *)v2 = 0;
*(_BYTE *)(a1 + 9) = 0;
}
result = sub_1005D71D0((__int64)off_1009DA5E8);
if ( !(_DWORD)result )
{
*((_QWORD *)off_1009DA5E8 + *(unsigned int *)(v2 + 688) + 46) = 0;
sub_1005D7AD8(*((_QWORD *)off_1009DA5E8 + 54), (int *)a1);
return 0;
}
}
return result;
}