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


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

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

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

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