//
// sub_1800E5D80 from 0x1800e5d80 to 0x1800e5e7c (252 bytes)
//
// 2 xrefs:
// > FMOD::System::mixerResume @ 0x1800afbd5
// > ??> @ 0x1801ffd2c
//
// 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_1800E5D80(__int64 a1)
{
__int64 result; // rax
__int64 v3; // rax
__int64 (__fastcall *v4)(__int64, _QWORD); // r8
__int64 v5; // rcx
int v6; // edi
__int64 v7; // rsi
__int64 v8; // rdx
__int64 v9; // rax
__int64 v10; // rcx
if ( !*(_BYTE *)(a1 + 8) || !*(_BYTE *)(a1 + 69976) )
return 0;
if ( *(_BYTE *)(*(_QWORD *)(a1 + 1648) + 972LL) )
{
result = sub_1800FBCA0(a1, *(unsigned int *)(a1 + 1664));
if ( (_DWORD)result )
return result;
}
v3 = *(_QWORD *)(a1 + 1648);
v4 = *(__int64 (__fastcall **)(__int64, _QWORD))(v3 + 976);
if ( v4 )
{
v5 = v3 + 8;
if ( !v3 )
v5 = 0;
result = v4(v5, 0);
if ( (_DWORD)result )
return result;
}
if ( !*(_QWORD *)(*(_QWORD *)(a1 + 1648) + 1040LL) || (v6 = 0, *(int *)(a1 + 1684) <= 0) )
{
LABEL_17:
*(_BYTE *)(a1 + 69976) = 0;
return 0;
}
v7 = 0;
while ( 1 )
{
v8 = *(_QWORD *)(v7 + *(_QWORD *)(a1 + 1696) + 48);
if ( v8 )
{
v9 = *(_QWORD *)(a1 + 1648);
v10 = v9 + 8;
if ( !v9 )
v10 = 0;
result = (*(__int64 (__fastcall **)(__int64, __int64, _QWORD))(v9 + 1040))(v10, v8, 0);
if ( (_DWORD)result )
return result;
}
++v6;
v7 += 56;
if ( v6 >= *(_DWORD *)(a1 + 1684) )
goto LABEL_17;
}
}