// // sub_4CB8A from 0x4cb8a to 0x4cbf0 (102 bytes) // // 0 xrefs: // // 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_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; }
GD Web Decomp Icon

GD Web Decomp

Raw Source