// // sub_180016340 from 0x180016340 to 0x180016417 (215 bytes) // // 2 xrefs: // > sub_1800165A0 @ 0x1800167b9 // > @ 0x1801f717c // // 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 // char __fastcall sub_180016340(unsigned __int64 *a1, _DWORD *a2, _DWORD *a3, _DWORD *a4, _DWORD *a5, _BYTE *a6) { unsigned __int64 v6; // r10 unsigned __int64 v7; // rax _OWORD v9[2]; // [rsp+0h] [rbp-58h] int v10; // [rsp+20h] [rbp-38h] int v11; // [rsp+24h] [rbp-34h] int v12; // [rsp+28h] [rbp-30h] __m128i si128; // [rsp+30h] [rbp-28h] v6 = *a1; if ( a2 ) { v7 = v6 >> 34; *a2 = v6 >> 34; } if ( a3 ) { LODWORD(v7) = 32 * (v6 >> 7); *a3 = v7; } if ( a6 ) { LOBYTE(v7) = v6 & 1; *a6 = v6 & 1; } if ( a4 ) { si128 = _mm_load_si128((const __m128i *)&xmmword_180145AD0); LODWORD(v7) = si128.m128i_i32[(v6 >> 5) & 3]; *a4 = v7; } if ( a5 ) { v10 = 44100; v9[0] = _mm_load_si128((const __m128i *)&xmmword_180145AE0); v11 = 48000; v9[1] = _mm_load_si128((const __m128i *)&xmmword_180145AF0); v12 = 96000; LODWORD(v7) = *((_DWORD *)v9 + ((v6 >> 1) & 0xF)); *a5 = v7; } return v7; }