//
// sub_1800976F0 from 0x1800976f0 to 0x180097791 (161 bytes)
//
// 2 xrefs:
// > FMOD::DSP::getOutputChannelFormat @ 0x1800a2724
// > ??> @ 0x1801faa04
//
// 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:53:47 +0000
//
__int64 __fastcall sub_1800976F0(__int64 a1, __int64 a2, int a3, int a4, _DWORD *a5, __int64 a6, __int64 a7)
{
if ( a5 )
*a5 = 0;
if ( *(_QWORD *)(a1 + 288) && (*(_BYTE *)(a1 + 282) & 1) != 0 )
{
sub_1801023B0(*(_QWORD *)(a1 + 168), a2);
*(_QWORD *)(a1 + 176) = a1;
(*(void (__fastcall **)(__int64, __int64, _QWORD))(a1 + 288))(a1 + 176, 1, 0);
sub_1801023F0(*(_QWORD *)(a1 + 168));
}
return sub_1800977A0(a1, a3, a4, a6, a7, 0);
}