//
// sub_676F0 from 0x676f0 to 0x6777e (142 bytes)
//
// 1 xrefs:
// > sub_677E6 @ 0x677e8
//
// 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
//
int __fastcall sub_676F0(int a1, int a2, _DWORD *a3, int a4)
{
int v4; // r0
const char *v6; // r1
if ( (unsigned int)(a2 - 33) > 0x1F )
{
if ( a2 )
return 31;
*a3 = *(_DWORD *)(a1 + 9068);
if ( a4 )
{
switch ( *(_DWORD *)(a1 + 9068) )
{
case 0:
v6 = "Default";
goto LABEL_16;
case 1:
v6 = "All Mono";
goto LABEL_16;
case 2:
v6 = "All Stereo";
goto LABEL_16;
case 3:
v6 = "All Quad";
goto LABEL_16;
case 4:
v6 = "All 5.1";
goto LABEL_16;
case 5:
v6 = "All 7.1";
goto LABEL_16;
case 6:
v6 = "All LFE";
goto LABEL_16;
case 7:
v6 = "All 7.1.4";
LABEL_16:
sub_BE220(a4, v6, 32);
break;
default:
return 0;
}
}
}
else
{
v4 = a1 + 4 * (a2 - 33);
*a3 = *(_DWORD *)(v4 + 9072);
if ( a4 )
sub_BE420(a4, 32, "%d", *(_DWORD *)(v4 + 9072));
}
return 0;
}