//
// sub_180107B90 from 0x180107b90 to 0x180107c94 (260 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801b06a8
// > ??> @ 0x1802015d4
//
// 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_180107B90(__int64 *a1, int a2, _DWORD *a3, _BYTE *a4)
{
__int64 v5; // r9
__int64 v6; // rcx
char *v8; // rdx
v5 = *a1;
if ( (unsigned int)(a2 - 33) > 0x1F )
{
if ( a2 )
return 31;
*a3 = *(_DWORD *)(v5 + 9304);
if ( a4 )
{
switch ( *(_DWORD *)(v5 + 9304) )
{
case 0:
v8 = "Default";
goto LABEL_16;
case 1:
v8 = "All Mono";
goto LABEL_16;
case 2:
v8 = "All Stereo";
goto LABEL_16;
case 3:
v8 = "All Quad";
goto LABEL_16;
case 4:
v8 = "All 5.1";
goto LABEL_16;
case 5:
v8 = "All 7.1";
goto LABEL_16;
case 6:
v8 = "All LFE";
goto LABEL_16;
case 7:
v8 = "All 7.1.4";
LABEL_16:
sub_1800B7D20(a4, v8, 32);
break;
default:
return 0;
}
}
}
else
{
v6 = v5 + 4LL * a2;
*a3 = *(_DWORD *)(v6 + 9176);
if ( a4 )
{
sub_1800B7CA0((int)a4, 32, "%d", *(_DWORD *)(v6 + 9176));
return 0;
}
}
return 0;
}