//
// sub_1800E69E0 from 0x1800e69e0 to 0x1800e6aac (204 bytes)
//
// 2 xrefs:
// > FMOD::System::release @ 0x1800b0761
// > ??> @ 0x1801ffe7c
//
// This function is hookable on this platform (idp: pc, 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 10:54:18 +0000
//
__int64 __fastcall sub_1800E69E0(__int64 a1)
{
__int64 result; // rax
void (__fastcall ***v3)(_QWORD); // rcx
__int64 v4; // rcx
if ( !*(_BYTE *)(a1 + 8) )
goto LABEL_5;
if ( *(_BYTE *)(a1 + 69976) )
return 28;
result = sub_1800E2620(a1, 0);
if ( !(_DWORD)result )
{
LABEL_5:
v3 = *(void (__fastcall ****)(_QWORD))(a1 + 1648);
if ( v3 )
{
(**v3)(v3);
*(_QWORD *)(a1 + 1648) = 0;
}
v4 = *(_QWORD *)(a1 + 69128);
if ( v4 )
{
result = sub_1800D9710(v4, 1u);
if ( (_DWORD)result )
return result;
*(_QWORD *)(a1 + 69128) = 0;
*(_BYTE *)(a1 + 9) = 0;
}
result = sub_1800D4520((__int64)off_1801AED20);
if ( !(_DWORD)result )
{
*((_QWORD *)off_1801AED20 + *(unsigned int *)(a1 + 69808) + 44) = 0;
sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), (_DWORD *)a1);
return 0;
}
}
return result;
}