// // sub_5CB90 from 0x5cb90 to 0x5cc2c (156 bytes) // // 1 xrefs: // > @ 0x10c870 // // 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_5CB90(__int64 a1, __int64 a2, __int16 a3, int a4) { __int16 v4; // w9 __int64 v5; // x8 __int64 i; // x8 *(_QWORD *)(a1 + 8) = 0x200000006LL; switch ( a4 ) { case 32000: v4 = 2; break; case 48000: v4 = 0; break; case 44100: v4 = 1; break; default: return 51; } v5 = 0; *(_WORD *)(a1 + 284) = v4; *(_WORD *)(a1 + 286) = a3; while ( v5 != 12 ) { *(_WORD *)(a1 + 248 + v5) = 6; v5 += 2; } for ( i = 0; i != 4; i += 2 ) *(_WORD *)(a1 + 280 + i) = 2; return 0; }