//
// sub_4CB8A from 0x4cb8a to 0x4cbf0 (102 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:40:41 +0000
//
int __fastcall sub_4CB8A(int a1, int a2, __int16 a3, int a4)
{
__int16 v4; // r1
int v5; // r2
int v6; // r0
int i; // r1
*(_DWORD *)(a1 + 4) = 6;
*(_DWORD *)(a1 + 8) = 2;
switch ( a4 )
{
case 32000:
v4 = 2;
break;
case 48000:
v4 = 0;
break;
case 44100:
v4 = 1;
break;
default:
return 51;
}
*(_WORD *)(a1 + 174) = a3;
v5 = 0;
*(_WORD *)(a1 + 172) = v4;
while ( v5 != 6 )
*(_WORD *)(a1 + 148 + 2 * v5++) = 6;
v6 = a1 + 168;
for ( i = 0; i != 2; ++i )
*(_WORD *)(v6 + 2 * i) = 2;
return 0;
}