//
// sub_6D7F8 from 0x6d7f8 to 0x6d8d0 (216 bytes)
//
// 1 xrefs:
// > FMOD::System::mixerSuspend @ 0xdd228
//
// 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_6D7F8(__int64 a1)
{
__int64 v1; // x19
_BYTE *v2; // x20
__int64 result; // x0
int v4; // w8
__int64 v5; // x8
__int64 v6; // x21
__int64 v7; // x22
__int64 v8; // x1
__int64 v9; // x0
__int64 (__fastcall *v10)(__int64, __int64); // x9
if ( !*(_BYTE *)(a1 + 8) )
return 0;
result = sub_70400();
if ( v4 )
return 0;
v5 = *(_QWORD *)(v1 + 1648);
if ( *(_QWORD *)(v5 + 1040) )
{
v6 = 0;
v7 = 48;
while ( v6 < *(int *)(v1 + 1684) )
{
v8 = *(_QWORD *)(*(_QWORD *)(v1 + 1696) + v7);
if ( v8 )
{
result = sub_7028C(result, v8, 1);
if ( (_DWORD)result )
return result;
}
++v6;
v7 += 56;
}
v5 = *(_QWORD *)(v1 + 1648);
}
if ( *(_QWORD *)(v5 + 976) )
{
v9 = sub_701C8(result);
result = v10(v9, 1);
if ( (_DWORD)result )
return result;
v5 = *(_QWORD *)(v1 + 1648);
}
if ( !*(_BYTE *)(v5 + 972) || (result = sub_769EC(v1), !(_DWORD)result) )
{
result = sub_7B9D0(v1, 12);
if ( !(_DWORD)result )
{
result = sub_5F4C4((__int64)off_114000);
if ( !(_DWORD)result )
*v2 = 1;
}
}
return result;
}