#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int uint32_t;
typedef int /*<<< orphan*/ __m256i;

/* Variables and functions */
int /*<<< orphan*/ _mm256_and_si256(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm256_set1_epi32(int);
int /*<<< orphan*/ _mm256_set_epi32(int const, int const, int const, int const,
                                    int const, int const, int const, int const);
int /*<<< orphan*/ _mm256_srlv_epi32(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm256_storeu_si256(int /*<<< orphan*/ *,
                                       int /*<<< orphan*/);
const uint32_t *unpack11_32_avx2(const uint32_t *in, uint32_t *out) {
  uint32_t mask = 0x7ff;
  __m256i reg_shifts, reg_inls, reg_masks;
  __m256i results;
  reg_masks = _mm256_set1_epi32(mask);
  reg_shifts = _mm256_set_epi32(13, 2, 0, 12, 1, 0, 11, 0);
  reg_inls = _mm256_set_epi32(in[2], in[2], in[1] >> 23 | in[2] << 9, in[1],
                              in[1], in[0] >> 22 | in[1] << 10, in[0], in[0]);
  results =
      _mm256_and_si256(_mm256_srlv_epi32(reg_inls, reg_shifts), reg_masks);
  _mm256_storeu_si256((__m256i *)(out), results);
  out += 8;
  reg_shifts = _mm256_set_epi32(5, 0, 15, 4, 0, 14, 3, 0);
  reg_inls = _mm256_set_epi32(in[5], in[4] >> 26 | in[5] << 6, in[4], in[4],
                              in[3] >> 25 | in[4] << 7, in[3], in[3],
                              in[2] >> 24 | in[3] << 8);
  results =
      _mm256_and_si256(_mm256_srlv_epi32(reg_inls, reg_shifts), reg_masks);
  _mm256_storeu_si256((__m256i *)(out), results);
  out += 8;
  reg_shifts = _mm256_set_epi32(0, 18, 7, 0, 17, 6, 0, 16);
  reg_inls = _mm256_set_epi32(in[7] >> 29 | in[8] << 3, in[7], in[7],
                              in[6] >> 28 | in[7] << 4, in[6], in[6],
                              in[5] >> 27 | in[6] << 5, in[5]);
  results =
      _mm256_and_si256(_mm256_srlv_epi32(reg_inls, reg_shifts), reg_masks);
  _mm256_storeu_si256((__m256i *)(out), results);
  out += 8;
  reg_shifts = _mm256_set_epi32(21, 10, 0, 20, 9, 0, 19, 8);
  reg_inls = _mm256_set_epi32(in[10], in[10], in[9] >> 31 | in[10] << 1, in[9],
                              in[9], in[8] >> 30 | in[9] << 2, in[8], in[8]);
  results =
      _mm256_and_si256(_mm256_srlv_epi32(reg_inls, reg_shifts), reg_masks);
  _mm256_storeu_si256((__m256i *)(out), results);
  out += 8;
  in += 11;
  return in;
}


x86 assembly (clang, -O0):
<unpack11_32_avx2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x7ff,-0x14(%rbp)
mov    -0x14(%rbp),%edi
call   1050 <_mm256_set1_epi32@plt>
mov    %eax,-0x20(%rbp)
mov    $0xd,%edi
mov    $0x2,%esi
xor    %r9d,%r9d
mov    $0xc,%ecx
mov    $0x1,%r8d
mov    %r9d,%edx
movl   $0xb,(%rsp)
movl   $0x0,0x8(%rsp)
call   1070 <_mm256_set_epi32@plt>
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%edi
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%esi
mov    -0x8(%rbp),%rax
mov    0x4(%rax),%edx
sar    $0x17,%edx
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%eax
shl    $0x9,%eax
or     %eax,%edx
mov    -0x8(%rbp),%rax
mov    0x4(%rax),%ecx
mov    -0x8(%rbp),%rax
mov    0x4(%rax),%r8d
mov    -0x8(%rbp),%rax
mov    (%rax),%r9d
sar    $0x16,%r9d
mov    -0x8(%rbp),%rax
mov    0x4(%rax),%eax
shl    $0xa,%eax
or     %eax,%r9d
mov    -0x8(%rbp),%rax
mov    (%rax),%r10d
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1070 <_mm256_set_epi32@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%edi
mov    -0x18(%rbp),%esi
call   1060 <_mm256_srlv_epi32@plt>
mov    %eax,%edi
mov    -0x20(%rbp),%esi
call   1040 <_mm256_and_si256@plt>
mov    %eax,-0x24(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x24(%rbp),%esi
call   1030 <_mm256_storeu_si256@plt>
mov    -0x10(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x10(%rbp)
mov    $0x5,%edi
xor    %r8d,%r8d
mov    $0xf,%edx
mov    $0x4,%ecx
mov    $0xe,%r9d
mov    %r8d,%esi
movl   $0x3,(%rsp)
movl   $0x0,0x8(%rsp)
call   1070 <_mm256_set_epi32@plt>
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    0x14(%rax),%edi
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%esi
sar    $0x1a,%esi
mov    -0x8(%rbp),%rax
mov    0x14(%rax),%eax
shl    $0x6,%eax
or     %eax,%esi
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%edx
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%ecx
mov    -0x8(%rbp),%rax
mov    0xc(%rax),%r8d
sar    $0x19,%r8d
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%eax
shl    $0x7,%eax
or     %eax,%r8d
mov    -0x8(%rbp),%rax
mov    0xc(%rax),%r9d
mov    -0x8(%rbp),%rax
mov    0xc(%rax),%r10d
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%eax
sar    $0x18,%eax
mov    -0x8(%rbp),%r11
mov    0xc(%r11),%r11d
shl    $0x8,%r11d
or     %r11d,%eax
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1070 <_mm256_set_epi32@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%edi
mov    -0x18(%rbp),%esi
call   1060 <_mm256_srlv_epi32@plt>
mov    %eax,%edi
mov    -0x20(%rbp),%esi
call   1040 <_mm256_and_si256@plt>
mov    %eax,-0x24(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x24(%rbp),%esi
call   1030 <_mm256_storeu_si256@plt>
mov    -0x10(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x10(%rbp)
xor    %ecx,%ecx
mov    $0x12,%esi
mov    $0x7,%edx
mov    $0x11,%r8d
mov    $0x6,%r9d
mov    %ecx,%edi
movl   $0x0,(%rsp)
movl   $0x10,0x8(%rsp)
call   1070 <_mm256_set_epi32@plt>
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    0x1c(%rax),%edi
sar    $0x1d,%edi
mov    -0x8(%rbp),%rax
mov    0x20(%rax),%eax
shl    $0x3,%eax
or     %eax,%edi
mov    -0x8(%rbp),%rax
mov    0x1c(%rax),%esi
mov    -0x8(%rbp),%rax
mov    0x1c(%rax),%edx
mov    -0x8(%rbp),%rax
mov    0x18(%rax),%ecx
sar    $0x1c,%ecx
mov    -0x8(%rbp),%rax
mov    0x1c(%rax),%eax
shl    $0x4,%eax
or     %eax,%ecx
mov    -0x8(%rbp),%rax
mov    0x18(%rax),%r8d
mov    -0x8(%rbp),%rax
mov    0x18(%rax),%r9d
mov    -0x8(%rbp),%rax
mov    0x14(%rax),%r10d
sar    $0x1b,%r10d
mov    -0x8(%rbp),%rax
mov    0x18(%rax),%eax
shl    $0x5,%eax
or     %eax,%r10d
mov    -0x8(%rbp),%rax
mov    0x14(%rax),%eax
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1070 <_mm256_set_epi32@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%edi
mov    -0x18(%rbp),%esi
call   1060 <_mm256_srlv_epi32@plt>
mov    %eax,%edi
mov    -0x20(%rbp),%esi
call   1040 <_mm256_and_si256@plt>
mov    %eax,-0x24(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x24(%rbp),%esi
call   1030 <_mm256_storeu_si256@plt>
mov    -0x10(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x10(%rbp)
mov    $0x15,%edi
mov    $0xa,%esi
xor    %r9d,%r9d
mov    $0x14,%ecx
mov    $0x9,%r8d
mov    %r9d,%edx
movl   $0x13,(%rsp)
movl   $0x8,0x8(%rsp)
call   1070 <_mm256_set_epi32@plt>
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    0x28(%rax),%edi
mov    -0x8(%rbp),%rax
mov    0x28(%rax),%esi
mov    -0x8(%rbp),%rax
mov    0x24(%rax),%edx
sar    $0x1f,%edx
mov    -0x8(%rbp),%rax
mov    0x28(%rax),%eax
shl    $0x1,%eax
or     %eax,%edx
mov    -0x8(%rbp),%rax
mov    0x24(%rax),%ecx
mov    -0x8(%rbp),%rax
mov    0x24(%rax),%r8d
mov    -0x8(%rbp),%rax
mov    0x20(%rax),%r9d
sar    $0x1e,%r9d
mov    -0x8(%rbp),%rax
mov    0x24(%rax),%eax
shl    $0x2,%eax
or     %eax,%r9d
mov    -0x8(%rbp),%rax
mov    0x20(%rax),%r10d
mov    -0x8(%rbp),%rax
mov    0x20(%rax),%eax
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1070 <_mm256_set_epi32@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%edi
mov    -0x18(%rbp),%esi
call   1060 <_mm256_srlv_epi32@plt>
mov    %eax,%edi
mov    -0x20(%rbp),%esi
call   1040 <_mm256_and_si256@plt>
mov    %eax,-0x24(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x24(%rbp),%esi
call   1030 <_mm256_storeu_si256@plt>
mov    -0x10(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rax
add    $0x2c,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<unpack11_32_avx2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
mov    $0x7ff,%edi
call   1050 <_mm256_set1_epi32@plt>
mov    %eax,%r15d
mov    $0xd,%edi
mov    $0x2,%esi
xor    %edx,%edx
mov    $0xc,%ecx
mov    $0x1,%r8d
xor    %r9d,%r9d
push   $0x0
push   $0xb
call   1070 <_mm256_set_epi32@plt>
add    $0x10,%rsp
mov    %eax,%ebp
mov    0x8(%rbx),%edi
mov    (%rbx),%eax
mov    0x4(%rbx),%ecx
mov    %ecx,%esi
sar    $0x17,%esi
mov    %edi,%edx
shl    $0x9,%edx
or     %esi,%edx
mov    %eax,%esi
sar    $0x16,%esi
mov    %ecx,%r9d
shl    $0xa,%r9d
or     %esi,%r9d
mov    %edi,%esi
mov    %ecx,%r8d
push   %rax
push   %rax
call   1070 <_mm256_set_epi32@plt>
add    $0x10,%rsp
mov    %eax,%edi
mov    %ebp,%esi
call   1060 <_mm256_srlv_epi32@plt>
mov    %eax,%edi
mov    %r15d,%esi
call   1040 <_mm256_and_si256@plt>
mov    %r14,%rdi
mov    %eax,%esi
call   1030 <_mm256_storeu_si256@plt>
lea    0x20(%r14),%r12
mov    $0x5,%edi
xor    %esi,%esi
mov    $0xf,%edx
mov    $0x4,%ecx
xor    %r8d,%r8d
mov    $0xe,%r9d
push   $0x0
push   $0x3
call   1070 <_mm256_set_epi32@plt>
add    $0x10,%rsp
mov    %eax,%r13d
mov    0x14(%rbx),%edi
mov    0xc(%rbx),%r9d
mov    0x10(%rbx),%ecx
mov    %ecx,%eax
sar    $0x1a,%eax
mov    %edi,%esi
shl    $0x6,%esi
or     %eax,%esi
mov    %r9d,%eax
sar    $0x19,%eax
mov    %ecx,%r8d
shl    $0x7,%r8d
or     %eax,%r8d
movsbl 0xb(%rbx),%eax
mov    %r9d,%ebp
shl    $0x8,%ebp
or     %eax,%ebp
mov    %ecx,%edx
push   %rbp
push   %r9
call   1070 <_mm256_set_epi32@plt>
add    $0x10,%rsp
mov    %eax,%edi
mov    %r13d,%esi
call   1060 <_mm256_srlv_epi32@plt>
mov    %eax,%edi
mov    %r15d,%esi
call   1040 <_mm256_and_si256@plt>
mov    %r12,%rdi
mov    %eax,%esi
call   1030 <_mm256_storeu_si256@plt>
lea    0x40(%r14),%r12
xor    %edi,%edi
mov    $0x12,%esi
mov    $0x7,%edx
xor    %ecx,%ecx
mov    $0x11,%r8d
mov    $0x6,%r9d
push   $0x10
push   $0x0
call   1070 <_mm256_set_epi32@plt>
add    $0x10,%rsp
mov    %eax,%r13d
mov    0x1c(%rbx),%edx
mov    %edx,%eax
sar    $0x1d,%eax
mov    0x20(%rbx),%edi
shl    $0x3,%edi
or     %eax,%edi
mov    0x14(%rbx),%eax
mov    0x18(%rbx),%r8d
mov    %r8d,%esi
sar    $0x1c,%esi
mov    %edx,%ecx
shl    $0x4,%ecx
or     %esi,%ecx
mov    %eax,%esi
sar    $0x1b,%esi
mov    %r8d,%ebp
shl    $0x5,%ebp
or     %esi,%ebp
mov    %edx,%esi
mov    %r8d,%r9d
push   %rax
push   %rbp
call   1070 <_mm256_set_epi32@plt>
add    $0x10,%rsp
mov    %eax,%edi
mov    %r13d,%esi
call   1060 <_mm256_srlv_epi32@plt>
mov    %eax,%edi
mov    %r15d,%esi
call   1040 <_mm256_and_si256@plt>
mov    %r12,%rdi
mov    %eax,%esi
call   1030 <_mm256_storeu_si256@plt>
add    $0x60,%r14
mov    $0x15,%edi
mov    $0xa,%esi
xor    %edx,%edx
mov    $0x14,%ecx
mov    $0x9,%r8d
xor    %r9d,%r9d
push   $0x8
push   $0x13
call   1070 <_mm256_set_epi32@plt>
add    $0x10,%rsp
mov    %eax,%ebp
mov    0x28(%rbx),%edi
mov    0x20(%rbx),%eax
mov    0x24(%rbx),%ecx
mov    %ecx,%esi
sar    $0x1f,%esi
lea    (%rdi,%rdi,1),%edx
or     %esi,%edx
mov    %eax,%esi
sar    $0x1e,%esi
lea    0x0(,%rcx,4),%r9d
or     %esi,%r9d
mov    %edi,%esi
mov    %ecx,%r8d
push   %rax
push   %rax
call   1070 <_mm256_set_epi32@plt>
add    $0x10,%rsp
mov    %eax,%edi
mov    %ebp,%esi
call   1060 <_mm256_srlv_epi32@plt>
mov    %eax,%edi
mov    %r15d,%esi
call   1040 <_mm256_and_si256@plt>
mov    %r14,%rdi
mov    %eax,%esi
call   1030 <_mm256_storeu_si256@plt>
add    $0x2c,%rbx
mov    %rbx,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32* @unpack11_32_avx2(i32* %0, i32* %1) {
%3 = alloca i32*
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32* %0, i32** %3
store i32* %1, i32** %4
store i32 2047, i32* %5
%10 = load i32, i32* %5
%11 = call i32 @_mm256_set1_epi32(i32 %10)
store i32 %11, i32* %8
%12 = call i32 @_mm256_set_epi32(i32 13, i32 2, i32 0, i32 12, i32 1, i32 0, i32 11, i32 0)
store i32 %12, i32* %6
%13 = load i32*, i32** %3
%14 = getelementptr inbounds i32, i32* %13, i64 2
%15 = load i32, i32* %14
%16 = load i32*, i32** %3
%17 = getelementptr inbounds i32, i32* %16, i64 2
%18 = load i32, i32* %17
%19 = load i32*, i32** %3
%20 = getelementptr inbounds i32, i32* %19, i64 1
%21 = load i32, i32* %20
%22 = ashr i32 %21, 23
%23 = load i32*, i32** %3
%24 = getelementptr inbounds i32, i32* %23, i64 2
%25 = load i32, i32* %24
%26 = shl i32 %25, 9
%27 = or i32 %22, %26
%28 = load i32*, i32** %3
%29 = getelementptr inbounds i32, i32* %28, i64 1
%30 = load i32, i32* %29
%31 = load i32*, i32** %3
%32 = getelementptr inbounds i32, i32* %31, i64 1
%33 = load i32, i32* %32
%34 = load i32*, i32** %3
%35 = getelementptr inbounds i32, i32* %34, i64 0
%36 = load i32, i32* %35
%37 = ashr i32 %36, 22
%38 = load i32*, i32** %3
%39 = getelementptr inbounds i32, i32* %38, i64 1
%40 = load i32, i32* %39
%41 = shl i32 %40, 10
%42 = or i32 %37, %41
%43 = load i32*, i32** %3
%44 = getelementptr inbounds i32, i32* %43, i64 0
%45 = load i32, i32* %44
%46 = load i32*, i32** %3
%47 = getelementptr inbounds i32, i32* %46, i64 0
%48 = load i32, i32* %47
%49 = call i32 @_mm256_set_epi32(i32 %15, i32 %18, i32 %27, i32 %30, i32 %33, i32 %42, i32 %45, i32 %48)
store i32 %49, i32* %7
%50 = load i32, i32* %7
%51 = load i32, i32* %6
%52 = call i32 @_mm256_srlv_epi32(i32 %50, i32 %51)
%53 = load i32, i32* %8
%54 = call i32 @_mm256_and_si256(i32 %52, i32 %53)
store i32 %54, i32* %9
%55 = load i32*, i32** %4
%56 = load i32, i32* %9
%57 = call i32 @_mm256_storeu_si256(i32* %55, i32 %56)
%58 = load i32*, i32** %4
%59 = getelementptr inbounds i32, i32* %58, i64 8
store i32* %59, i32** %4
%60 = call i32 @_mm256_set_epi32(i32 5, i32 0, i32 15, i32 4, i32 0, i32 14, i32 3, i32 0)
store i32 %60, i32* %6
%61 = load i32*, i32** %3
%62 = getelementptr inbounds i32, i32* %61, i64 5
%63 = load i32, i32* %62
%64 = load i32*, i32** %3
%65 = getelementptr inbounds i32, i32* %64, i64 4
%66 = load i32, i32* %65
%67 = ashr i32 %66, 26
%68 = load i32*, i32** %3
%69 = getelementptr inbounds i32, i32* %68, i64 5
%70 = load i32, i32* %69
%71 = shl i32 %70, 6
%72 = or i32 %67, %71
%73 = load i32*, i32** %3
%74 = getelementptr inbounds i32, i32* %73, i64 4
%75 = load i32, i32* %74
%76 = load i32*, i32** %3
%77 = getelementptr inbounds i32, i32* %76, i64 4
%78 = load i32, i32* %77
%79 = load i32*, i32** %3
%80 = getelementptr inbounds i32, i32* %79, i64 3
%81 = load i32, i32* %80
%82 = ashr i32 %81, 25
%83 = load i32*, i32** %3
%84 = getelementptr inbounds i32, i32* %83, i64 4
%85 = load i32, i32* %84
%86 = shl i32 %85, 7
%87 = or i32 %82, %86
%88 = load i32*, i32** %3
%89 = getelementptr inbounds i32, i32* %88, i64 3
%90 = load i32, i32* %89
%91 = load i32*, i32** %3
%92 = getelementptr inbounds i32, i32* %91, i64 3
%93 = load i32, i32* %92
%94 = load i32*, i32** %3
%95 = getelementptr inbounds i32, i32* %94, i64 2
%96 = load i32, i32* %95
%97 = ashr i32 %96, 24
%98 = load i32*, i32** %3
%99 = getelementptr inbounds i32, i32* %98, i64 3
%100 = load i32, i32* %99
%101 = shl i32 %100, 8
%102 = or i32 %97, %101
%103 = call i32 @_mm256_set_epi32(i32 %63, i32 %72, i32 %75, i32 %78, i32 %87, i32 %90, i32 %93, i32 %102)
store i32 %103, i32* %7
%104 = load i32, i32* %7
%105 = load i32, i32* %6
%106 = call i32 @_mm256_srlv_epi32(i32 %104, i32 %105)
%107 = load i32, i32* %8
%108 = call i32 @_mm256_and_si256(i32 %106, i32 %107)
store i32 %108, i32* %9
%109 = load i32*, i32** %4
%110 = load i32, i32* %9
%111 = call i32 @_mm256_storeu_si256(i32* %109, i32 %110)
%112 = load i32*, i32** %4
%113 = getelementptr inbounds i32, i32* %112, i64 8
store i32* %113, i32** %4
%114 = call i32 @_mm256_set_epi32(i32 0, i32 18, i32 7, i32 0, i32 17, i32 6, i32 0, i32 16)
store i32 %114, i32* %6
%115 = load i32*, i32** %3
%116 = getelementptr inbounds i32, i32* %115, i64 7
%117 = load i32, i32* %116
%118 = ashr i32 %117, 29
%119 = load i32*, i32** %3
%120 = getelementptr inbounds i32, i32* %119, i64 8
%121 = load i32, i32* %120
%122 = shl i32 %121, 3
%123 = or i32 %118, %122
%124 = load i32*, i32** %3
%125 = getelementptr inbounds i32, i32* %124, i64 7
%126 = load i32, i32* %125
%127 = load i32*, i32** %3
%128 = getelementptr inbounds i32, i32* %127, i64 7
%129 = load i32, i32* %128
%130 = load i32*, i32** %3
%131 = getelementptr inbounds i32, i32* %130, i64 6
%132 = load i32, i32* %131
%133 = ashr i32 %132, 28
%134 = load i32*, i32** %3
%135 = getelementptr inbounds i32, i32* %134, i64 7
%136 = load i32, i32* %135
%137 = shl i32 %136, 4
%138 = or i32 %133, %137
%139 = load i32*, i32** %3
%140 = getelementptr inbounds i32, i32* %139, i64 6
%141 = load i32, i32* %140
%142 = load i32*, i32** %3
%143 = getelementptr inbounds i32, i32* %142, i64 6
%144 = load i32, i32* %143
%145 = load i32*, i32** %3
%146 = getelementptr inbounds i32, i32* %145, i64 5
%147 = load i32, i32* %146
%148 = ashr i32 %147, 27
%149 = load i32*, i32** %3
%150 = getelementptr inbounds i32, i32* %149, i64 6
%151 = load i32, i32* %150
%152 = shl i32 %151, 5
%153 = or i32 %148, %152
%154 = load i32*, i32** %3
%155 = getelementptr inbounds i32, i32* %154, i64 5
%156 = load i32, i32* %155
%157 = call i32 @_mm256_set_epi32(i32 %123, i32 %126, i32 %129, i32 %138, i32 %141, i32 %144, i32 %153, i32 %156)
store i32 %157, i32* %7
%158 = load i32, i32* %7
%159 = load i32, i32* %6
%160 = call i32 @_mm256_srlv_epi32(i32 %158, i32 %159)
%161 = load i32, i32* %8
%162 = call i32 @_mm256_and_si256(i32 %160, i32 %161)
store i32 %162, i32* %9
%163 = load i32*, i32** %4
%164 = load i32, i32* %9
%165 = call i32 @_mm256_storeu_si256(i32* %163, i32 %164)
%166 = load i32*, i32** %4
%167 = getelementptr inbounds i32, i32* %166, i64 8
store i32* %167, i32** %4
%168 = call i32 @_mm256_set_epi32(i32 21, i32 10, i32 0, i32 20, i32 9, i32 0, i32 19, i32 8)
store i32 %168, i32* %6
%169 = load i32*, i32** %3
%170 = getelementptr inbounds i32, i32* %169, i64 10
%171 = load i32, i32* %170
%172 = load i32*, i32** %3
%173 = getelementptr inbounds i32, i32* %172, i64 10
%174 = load i32, i32* %173
%175 = load i32*, i32** %3
%176 = getelementptr inbounds i32, i32* %175, i64 9
%177 = load i32, i32* %176
%178 = ashr i32 %177, 31
%179 = load i32*, i32** %3
%180 = getelementptr inbounds i32, i32* %179, i64 10
%181 = load i32, i32* %180
%182 = shl i32 %181, 1
%183 = or i32 %178, %182
%184 = load i32*, i32** %3
%185 = getelementptr inbounds i32, i32* %184, i64 9
%186 = load i32, i32* %185
%187 = load i32*, i32** %3
%188 = getelementptr inbounds i32, i32* %187, i64 9
%189 = load i32, i32* %188
%190 = load i32*, i32** %3
%191 = getelementptr inbounds i32, i32* %190, i64 8
%192 = load i32, i32* %191
%193 = ashr i32 %192, 30
%194 = load i32*, i32** %3
%195 = getelementptr inbounds i32, i32* %194, i64 9
%196 = load i32, i32* %195
%197 = shl i32 %196, 2
%198 = or i32 %193, %197
%199 = load i32*, i32** %3
%200 = getelementptr inbounds i32, i32* %199, i64 8
%201 = load i32, i32* %200
%202 = load i32*, i32** %3
%203 = getelementptr inbounds i32, i32* %202, i64 8
%204 = load i32, i32* %203
%205 = call i32 @_mm256_set_epi32(i32 %171, i32 %174, i32 %183, i32 %186, i32 %189, i32 %198, i32 %201, i32 %204)
store i32 %205, i32* %7
%206 = load i32, i32* %7
%207 = load i32, i32* %6
%208 = call i32 @_mm256_srlv_epi32(i32 %206, i32 %207)
%209 = load i32, i32* %8
%210 = call i32 @_mm256_and_si256(i32 %208, i32 %209)
store i32 %210, i32* %9
%211 = load i32*, i32** %4
%212 = load i32, i32* %9
%213 = call i32 @_mm256_storeu_si256(i32* %211, i32 %212)
%214 = load i32*, i32** %4
%215 = getelementptr inbounds i32, i32* %214, i64 8
store i32* %215, i32** %4
%216 = load i32*, i32** %3
%217 = getelementptr inbounds i32, i32* %216, i64 11
store i32* %217, i32** %3
%218 = load i32*, i32** %3
ret i32* %218
}

LLVM IR (-O2):
define i32* @unpack11_32_avx2(i32* %0, i32* %1) {
%3 = tail call i32 @_mm256_set1_epi32(i32 2047)
%4 = tail call i32 @_mm256_set_epi32(i32 13, i32 2, i32 0, i32 12, i32 1, i32 0, i32 11, i32 0)
%5 = getelementptr inbounds i32, i32* %0, i64 2
%6 = load i32, i32* %5
%7 = getelementptr inbounds i32, i32* %0, i64 1
%8 = load i32, i32* %7
%9 = ashr i32 %8, 23
%10 = shl i32 %6, 9
%11 = or i32 %9, %10
%12 = load i32, i32* %0
%13 = ashr i32 %12, 22
%14 = shl i32 %8, 10
%15 = or i32 %13, %14
%16 = tail call i32 @_mm256_set_epi32(i32 %6, i32 %6, i32 %11, i32 %8, i32 %8, i32 %15, i32 %12, i32 %12)
%17 = tail call i32 @_mm256_srlv_epi32(i32 %16, i32 %4)
%18 = tail call i32 @_mm256_and_si256(i32 %17, i32 %3)
%19 = tail call i32 @_mm256_storeu_si256(i32* %1, i32 %18)
%20 = getelementptr inbounds i32, i32* %1, i64 8
%21 = tail call i32 @_mm256_set_epi32(i32 5, i32 0, i32 15, i32 4, i32 0, i32 14, i32 3, i32 0)
%22 = getelementptr inbounds i32, i32* %0, i64 5
%23 = load i32, i32* %22
%24 = getelementptr inbounds i32, i32* %0, i64 4
%25 = load i32, i32* %24
%26 = ashr i32 %25, 26
%27 = shl i32 %23, 6
%28 = or i32 %26, %27
%29 = getelementptr inbounds i32, i32* %0, i64 3
%30 = load i32, i32* %29
%31 = ashr i32 %30, 25
%32 = shl i32 %25, 7
%33 = or i32 %31, %32
%34 = load i32, i32* %5
%35 = ashr i32 %34, 24
%36 = shl i32 %30, 8
%37 = or i32 %35, %36
%38 = tail call i32 @_mm256_set_epi32(i32 %23, i32 %28, i32 %25, i32 %25, i32 %33, i32 %30, i32 %30, i32 %37)
%39 = tail call i32 @_mm256_srlv_epi32(i32 %38, i32 %21)
%40 = tail call i32 @_mm256_and_si256(i32 %39, i32 %3)
%41 = tail call i32 @_mm256_storeu_si256(i32* %20, i32 %40)
%42 = getelementptr inbounds i32, i32* %1, i64 16
%43 = tail call i32 @_mm256_set_epi32(i32 0, i32 18, i32 7, i32 0, i32 17, i32 6, i32 0, i32 16)
%44 = getelementptr inbounds i32, i32* %0, i64 7
%45 = load i32, i32* %44
%46 = ashr i32 %45, 29
%47 = getelementptr inbounds i32, i32* %0, i64 8
%48 = load i32, i32* %47
%49 = shl i32 %48, 3
%50 = or i32 %49, %46
%51 = getelementptr inbounds i32, i32* %0, i64 6
%52 = load i32, i32* %51
%53 = ashr i32 %52, 28
%54 = shl i32 %45, 4
%55 = or i32 %53, %54
%56 = load i32, i32* %22
%57 = ashr i32 %56, 27
%58 = shl i32 %52, 5
%59 = or i32 %57, %58
%60 = tail call i32 @_mm256_set_epi32(i32 %50, i32 %45, i32 %45, i32 %55, i32 %52, i32 %52, i32 %59, i32 %56)
%61 = tail call i32 @_mm256_srlv_epi32(i32 %60, i32 %43)
%62 = tail call i32 @_mm256_and_si256(i32 %61, i32 %3)
%63 = tail call i32 @_mm256_storeu_si256(i32* %42, i32 %62)
%64 = getelementptr inbounds i32, i32* %1, i64 24
%65 = tail call i32 @_mm256_set_epi32(i32 21, i32 10, i32 0, i32 20, i32 9, i32 0, i32 19, i32 8)
%66 = getelementptr inbounds i32, i32* %0, i64 10
%67 = load i32, i32* %66
%68 = getelementptr inbounds i32, i32* %0, i64 9
%69 = load i32, i32* %68
%70 = ashr i32 %69, 31
%71 = shl i32 %67, 1
%72 = or i32 %70, %71
%73 = load i32, i32* %47
%74 = ashr i32 %73, 30
%75 = shl i32 %69, 2
%76 = or i32 %74, %75
%77 = tail call i32 @_mm256_set_epi32(i32 %67, i32 %67, i32 %72, i32 %69, i32 %69, i32 %76, i32 %73, i32 %73)
%78 = tail call i32 @_mm256_srlv_epi32(i32 %77, i32 %65)
%79 = tail call i32 @_mm256_and_si256(i32 %78, i32 %3)
%80 = tail call i32 @_mm256_storeu_si256(i32* %64, i32 %79)
%81 = getelementptr inbounds i32, i32* %0, i64 11
ret i32* %81
}