//
// sub_6B648 from 0x6b648 to 0x6b6ec (164 bytes)
//
// 1 xrefs:
// > FMOD::System::release @ 0xdae1c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_6B648(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x0
__int64 v4; // x8
_QWORD **v5; // x20
__int64 v6; // x0
__int64 v7; // x8
__int64 v8; // x9
__int64 v9; // x2
if ( !*(_BYTE *)(a1 + 8) || (result = sub_6B6EC(a1), !(_DWORD)result) )
{
v3 = sub_70510(*(_QWORD *)(a1 + 1648));
v5 = (_QWORD **)(a1 + v4);
if ( v3 )
{
sub_70184();
*(_QWORD *)(a1 + 1648) = 0;
}
if ( *v5 )
{
result = sub_61E60(*v5);
if ( (_DWORD)result )
return result;
*v5 = nullptr;
*(_BYTE *)(a1 + 9) = 0;
}
result = sub_5F434((__int64)off_114000);
if ( !(_DWORD)result )
{
v6 = sub_70114(result);
*(_QWORD *)(v7 + 8 * v8 + 368) = 0;
sub_7035C(v6, a1, v9, 1337, 1);
return 0;
}
}
return result;
}