//
// FMOD::DSP::getOutputChannelFormat from 0xd3918 to 0xd3a00 (232 bytes)
//
// 4 xrefs:
// > FMOD::DSP::getOutputChannelFormat @ 0x107a9c
// > ??> @ 0x4f90
// > FMOD::DSP::getOutputChannelFormat @ 0x107a94
// > ??> @ 0x110610
//
// This function is hookable on this platform (idp: arm, 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 12:14:52 +0000
//
__int64 __fastcall FMOD::DSP::getOutputChannelFormat(
__int64 a1,
unsigned int a2,
unsigned int a3,
unsigned int a4,
_DWORD *a5,
int *a6,
_DWORD *a7)
{
unsigned int v13; // w22
__int64 v14; // x0
char v15; // w8
__int64 v16; // x0
__int64 v17; // x1
__int64 v19; // [xsp+108h] [xbp-58h] BYREF
__int64 v20; // [xsp+118h] [xbp-48h] BYREF
v19 = 0;
v13 = FMOD::DSPI::validate(a1, &v20, &v19);
if ( v13 || (v13 = sub_CC554(v20, a2, a3, a4, a5, a6, a7)) != 0 )
{
v14 = sub_D4D24();
if ( v15 < 0 )
{
v16 = sub_D5018(v14);
sub_D3A00(v16, v17, a2, a3, a4, a5, a6, a7);
sub_D4D74(v13, 7);
}
}
sub_51968(&v19);
return v13;
}