//
// sub_10056D438 from 0x10056d438 to 0x10056d53c (260 bytes)
//
// 1 xrefs:
// > sub_10056D5C0 @ 0x10056d5c4
//
// 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 11:08:16 +0000
//
__int64 __fastcall sub_10056D438(__int64 a1, int a2, _DWORD *a3, __int64 a4, int a5, int a6, int a7, int a8)
{
__int64 v8; // x8
const char *v10; // x1
if ( (unsigned int)(a2 - 33) > 0x1F )
{
if ( a2 )
return 31;
*a3 = *(_DWORD *)(a1 + 9296);
if ( a4 )
{
switch ( *(_DWORD *)(a1 + 9296) )
{
case 0:
v10 = "Default";
goto LABEL_16;
case 1:
v10 = "All Mono";
goto LABEL_16;
case 2:
v10 = "All Stereo";
goto LABEL_16;
case 3:
v10 = "All Quad";
goto LABEL_16;
case 4:
v10 = "All 5.1";
goto LABEL_16;
case 5:
v10 = "All 7.1";
goto LABEL_16;
case 6:
v10 = "All LFE";
goto LABEL_16;
case 7:
v10 = "All 7.1.4";
LABEL_16:
sub_1005ECD38(a4, v10, 32);
break;
default:
return 0;
}
}
}
else
{
v8 = a1 + 4LL * (unsigned int)(a2 - 33);
*a3 = *(_DWORD *)(v8 + 9300);
if ( a4 )
sub_1005ED57C(a4, 0x20u, (int)"%d", a4, a5, a6, a7, a8, *(_DWORD *)(v8 + 9300));
}
return 0;
}