//
// sub_180053B10 from 0x180053b10 to 0x180053b8c (124 bytes)
//
// 1 xrefs:
// > ??> @ 0x18016ec50
//
// 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_180053B10(__int64 a1, __int64 a2, __int16 a3, int a4)
{
__int16 v4; // ax
*(_DWORD *)(a1 + 8) = 6;
*(_DWORD *)(a1 + 12) = 2;
switch ( a4 )
{
case 48000:
v4 = 0;
LABEL_7:
*(_WORD *)(a1 + 284) = v4;
*(_WORD *)(a1 + 286) = a3;
*(_DWORD *)(a1 + 248) = 393222;
*(_DWORD *)(a1 + 252) = 393222;
*(_DWORD *)(a1 + 256) = 393222;
*(_DWORD *)(a1 + 280) = 131074;
return 0;
case 44100:
v4 = 1;
goto LABEL_7;
case 32000:
v4 = 2;
goto LABEL_7;
}
return 51;
}