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


x86 assembly (clang, -O0):
<unpack14_32_avx2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x3fff,-0x14(%rbp)
mov    -0x14(%rbp),%edi
call   1050 <_mm256_set1_epi32@plt>
mov    %eax,-0x20(%rbp)
mov    $0x2,%edi
xor    %r9d,%r9d
mov    $0x6,%edx
mov    $0xa,%r8d
mov    %r9d,%esi
mov    %r9d,%ecx
movl   $0xe,(%rsp)
movl   $0x0,0x8(%rsp)
call   1070 <_mm256_set_epi32@plt>
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    0xc(%rax),%edi
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%esi
sar    $0x14,%esi
mov    -0x8(%rbp),%rax
mov    0xc(%rax),%eax
shl    $0xc,%eax
or     %eax,%esi
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%edx
mov    -0x8(%rbp),%rax
mov    0x4(%rax),%ecx
sar    $0x18,%ecx
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%eax
shl    $0x8,%eax
or     %eax,%ecx
mov    -0x8(%rbp),%rax
mov    0x4(%rax),%r8d
mov    -0x8(%rbp),%rax
mov    (%rax),%r9d
sar    $0x1c,%r9d
mov    -0x8(%rbp),%rax
mov    0x4(%rax),%eax
shl    $0x4,%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    $0x12,%edi
mov    $0x4,%esi
xor    %r8d,%r8d
mov    $0x8,%ecx
mov    $0xc,%r9d
mov    %r8d,%edx
movl   $0x0,(%rsp)
movl   $0x10,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    0x18(%rax),%esi
mov    -0x8(%rbp),%rax
mov    0x14(%rax),%edx
sar    $0x16,%edx
mov    -0x8(%rbp),%rax
mov    0x18(%rax),%eax
shl    $0xa,%eax
or     %eax,%edx
mov    -0x8(%rbp),%rax
mov    0x14(%rax),%ecx
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%r8d
sar    $0x1a,%r8d
mov    -0x8(%rbp),%rax
mov    0x14(%rax),%eax
shl    $0x6,%eax
or     %eax,%r8d
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%r9d
mov    -0x8(%rbp),%rax
mov    0xc(%rax),%r10d
sar    $0x1e,%r10d
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%eax
shl    $0x2,%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    $0x2,%edi
xor    %r9d,%r9d
mov    $0x6,%edx
mov    $0xa,%r8d
mov    %r9d,%esi
mov    %r9d,%ecx
movl   $0xe,(%rsp)
movl   $0x0,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    0x24(%rax),%esi
sar    $0x14,%esi
mov    -0x8(%rbp),%rax
mov    0x28(%rax),%eax
shl    $0xc,%eax
or     %eax,%esi
mov    -0x8(%rbp),%rax
mov    0x24(%rax),%edx
mov    -0x8(%rbp),%rax
mov    0x20(%rax),%ecx
sar    $0x18,%ecx
mov    -0x8(%rbp),%rax
mov    0x24(%rax),%eax
shl    $0x8,%eax
or     %eax,%ecx
mov    -0x8(%rbp),%rax
mov    0x20(%rax),%r8d
mov    -0x8(%rbp),%rax
mov    0x1c(%rax),%r9d
sar    $0x1c,%r9d
mov    -0x8(%rbp),%rax
mov    0x20(%rax),%eax
shl    $0x4,%eax
or     %eax,%r9d
mov    -0x8(%rbp),%rax
mov    0x1c(%rax),%r10d
mov    -0x8(%rbp),%rax
mov    0x1c(%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    $0x12,%edi
mov    $0x4,%esi
xor    %r8d,%r8d
mov    $0x8,%ecx
mov    $0xc,%r9d
mov    %r8d,%edx
movl   $0x0,(%rsp)
movl   $0x10,0x8(%rsp)
call   1070 <_mm256_set_epi32@plt>
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    0x34(%rax),%edi
mov    -0x8(%rbp),%rax
mov    0x34(%rax),%esi
mov    -0x8(%rbp),%rax
mov    0x30(%rax),%edx
sar    $0x16,%edx
mov    -0x8(%rbp),%rax
mov    0x34(%rax),%eax
shl    $0xa,%eax
or     %eax,%edx
mov    -0x8(%rbp),%rax
mov    0x30(%rax),%ecx
mov    -0x8(%rbp),%rax
mov    0x2c(%rax),%r8d
sar    $0x1a,%r8d
mov    -0x8(%rbp),%rax
mov    0x30(%rax),%eax
shl    $0x6,%eax
or     %eax,%r8d
mov    -0x8(%rbp),%rax
mov    0x2c(%rax),%r9d
mov    -0x8(%rbp),%rax
mov    0x28(%rax),%r10d
sar    $0x1e,%r10d
mov    -0x8(%rbp),%rax
mov    0x2c(%rax),%eax
shl    $0x2,%eax
or     %eax,%r10d
mov    -0x8(%rbp),%rax
mov    0x28(%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    $0x38,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<unpack14_32_avx2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
mov    $0x3fff,%edi
call   1050 <_mm256_set1_epi32@plt>
mov    %eax,%r15d
mov    $0x2,%edi
xor    %esi,%esi
mov    $0x6,%edx
xor    %ecx,%ecx
mov    $0xa,%r8d
xor    %r9d,%r9d
push   $0x0
push   $0xe
call   1070 <_mm256_set_epi32@plt>
add    $0x10,%rsp
mov    %eax,%r12d
mov    0xc(%rbx),%edi
mov    0x8(%rbx),%edx
mov    %edx,%eax
sar    $0x14,%eax
mov    %edi,%esi
shl    $0xc,%esi
or     %eax,%esi
mov    (%rbx),%eax
mov    0x4(%rbx),%r8d
mov    %r8d,%ebp
sar    $0x18,%ebp
mov    %edx,%ecx
shl    $0x8,%ecx
or     %ebp,%ecx
mov    %eax,%ebp
sar    $0x1c,%ebp
mov    %r8d,%r9d
shl    $0x4,%r9d
or     %ebp,%r9d
push   %rax
push   %rax
call   1070 <_mm256_set_epi32@plt>
add    $0x10,%rsp
mov    %eax,%edi
mov    %r12d,%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    $0x12,%edi
mov    $0x4,%esi
xor    %edx,%edx
mov    $0x8,%ecx
xor    %r8d,%r8d
mov    $0xc,%r9d
push   $0x10
push   $0x0
call   1070 <_mm256_set_epi32@plt>
add    $0x10,%rsp
mov    %eax,%r13d
mov    0x18(%rbx),%edi
mov    0x14(%rbx),%ecx
mov    %ecx,%eax
sar    $0x16,%eax
mov    %edi,%edx
shl    $0xa,%edx
or     %eax,%edx
mov    0xc(%rbx),%eax
mov    0x10(%rbx),%r9d
mov    %r9d,%esi
sar    $0x1a,%esi
mov    %ecx,%r8d
shl    $0x6,%r8d
or     %esi,%r8d
mov    %eax,%esi
sar    $0x1e,%esi
lea    0x0(,%r9,4),%ebp
or     %esi,%ebp
mov    %edi,%esi
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>
lea    0x40(%r14),%r12
mov    $0x2,%edi
xor    %esi,%esi
mov    $0x6,%edx
xor    %ecx,%ecx
mov    $0xa,%r8d
xor    %r9d,%r9d
push   $0x0
push   $0xe
call   1070 <_mm256_set_epi32@plt>
add    $0x10,%rsp
mov    %eax,%r13d
mov    0x28(%rbx),%edi
mov    0x24(%rbx),%edx
mov    %edx,%eax
sar    $0x14,%eax
mov    %edi,%esi
shl    $0xc,%esi
or     %eax,%esi
mov    0x1c(%rbx),%eax
mov    0x20(%rbx),%r8d
mov    %r8d,%ebp
sar    $0x18,%ebp
mov    %edx,%ecx
shl    $0x8,%ecx
or     %ebp,%ecx
mov    %eax,%ebp
sar    $0x1c,%ebp
mov    %r8d,%r9d
shl    $0x4,%r9d
or     %ebp,%r9d
push   %rax
push   %rax
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    $0x12,%edi
mov    $0x4,%esi
xor    %edx,%edx
mov    $0x8,%ecx
xor    %r8d,%r8d
mov    $0xc,%r9d
push   $0x10
push   $0x0
call   1070 <_mm256_set_epi32@plt>
add    $0x10,%rsp
mov    %eax,%r12d
mov    0x34(%rbx),%edi
mov    0x30(%rbx),%ecx
mov    %ecx,%eax
sar    $0x16,%eax
mov    %edi,%edx
shl    $0xa,%edx
or     %eax,%edx
mov    0x28(%rbx),%eax
mov    0x2c(%rbx),%r9d
mov    %r9d,%esi
sar    $0x1a,%esi
mov    %ecx,%r8d
shl    $0x6,%r8d
or     %esi,%r8d
mov    %eax,%esi
sar    $0x1e,%esi
lea    0x0(,%r9,4),%ebp
or     %esi,%ebp
mov    %edi,%esi
push   %rax
push   %rbp
call   1070 <_mm256_set_epi32@plt>
add    $0x10,%rsp
mov    %eax,%edi
mov    %r12d,%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    $0x38,%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* @unpack14_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 16383, 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 2, i32 0, i32 6, i32 0, i32 10, i32 0, i32 14, i32 0)
store i32 %12, i32* %6
%13 = load i32*, i32** %3
%14 = getelementptr inbounds i32, i32* %13, i64 3
%15 = load i32, i32* %14
%16 = load i32*, i32** %3
%17 = getelementptr inbounds i32, i32* %16, i64 2
%18 = load i32, i32* %17
%19 = ashr i32 %18, 20
%20 = load i32*, i32** %3
%21 = getelementptr inbounds i32, i32* %20, i64 3
%22 = load i32, i32* %21
%23 = shl i32 %22, 12
%24 = or i32 %19, %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, 24
%32 = load i32*, i32** %3
%33 = getelementptr inbounds i32, i32* %32, i64 2
%34 = load i32, i32* %33
%35 = shl i32 %34, 8
%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, 28
%44 = load i32*, i32** %3
%45 = getelementptr inbounds i32, i32* %44, i64 1
%46 = load i32, i32* %45
%47 = shl i32 %46, 4
%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 %15, 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 18, i32 4, i32 0, i32 8, i32 0, i32 12, i32 0, i32 16)
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 6
%72 = load i32, i32* %71
%73 = load i32*, i32** %3
%74 = getelementptr inbounds i32, i32* %73, i64 5
%75 = load i32, i32* %74
%76 = ashr i32 %75, 22
%77 = load i32*, i32** %3
%78 = getelementptr inbounds i32, i32* %77, i64 6
%79 = load i32, i32* %78
%80 = shl i32 %79, 10
%81 = or i32 %76, %80
%82 = load i32*, i32** %3
%83 = getelementptr inbounds i32, i32* %82, i64 5
%84 = load i32, i32* %83
%85 = load i32*, i32** %3
%86 = getelementptr inbounds i32, i32* %85, i64 4
%87 = load i32, i32* %86
%88 = ashr i32 %87, 26
%89 = load i32*, i32** %3
%90 = getelementptr inbounds i32, i32* %89, i64 5
%91 = load i32, i32* %90
%92 = shl i32 %91, 6
%93 = or i32 %88, %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, 30
%101 = load i32*, i32** %3
%102 = getelementptr inbounds i32, i32* %101, i64 4
%103 = load i32, i32* %102
%104 = shl i32 %103, 2
%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 %72, i32 %81, i32 %84, 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 2, i32 0, i32 6, i32 0, i32 10, i32 0, i32 14, i32 0)
store i32 %120, i32* %6
%121 = load i32*, i32** %3
%122 = getelementptr inbounds i32, i32* %121, i64 10
%123 = load i32, i32* %122
%124 = load i32*, i32** %3
%125 = getelementptr inbounds i32, i32* %124, i64 9
%126 = load i32, i32* %125
%127 = ashr i32 %126, 20
%128 = load i32*, i32** %3
%129 = getelementptr inbounds i32, i32* %128, i64 10
%130 = load i32, i32* %129
%131 = shl i32 %130, 12
%132 = or i32 %127, %131
%133 = load i32*, i32** %3
%134 = getelementptr inbounds i32, i32* %133, i64 9
%135 = load i32, i32* %134
%136 = load i32*, i32** %3
%137 = getelementptr inbounds i32, i32* %136, i64 8
%138 = load i32, i32* %137
%139 = ashr i32 %138, 24
%140 = load i32*, i32** %3
%141 = getelementptr inbounds i32, i32* %140, i64 9
%142 = load i32, i32* %141
%143 = shl i32 %142, 8
%144 = or i32 %139, %143
%145 = load i32*, i32** %3
%146 = getelementptr inbounds i32, i32* %145, i64 8
%147 = load i32, i32* %146
%148 = load i32*, i32** %3
%149 = getelementptr inbounds i32, i32* %148, i64 7
%150 = load i32, i32* %149
%151 = ashr i32 %150, 28
%152 = load i32*, i32** %3
%153 = getelementptr inbounds i32, i32* %152, i64 8
%154 = load i32, i32* %153
%155 = shl i32 %154, 4
%156 = or i32 %151, %155
%157 = load i32*, i32** %3
%158 = getelementptr inbounds i32, i32* %157, i64 7
%159 = load i32, i32* %158
%160 = load i32*, i32** %3
%161 = getelementptr inbounds i32, i32* %160, i64 7
%162 = load i32, i32* %161
%163 = call i32 @_mm256_set_epi32(i32 %123, i32 %132, i32 %135, i32 %144, i32 %147, i32 %156, 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 18, i32 4, i32 0, i32 8, i32 0, i32 12, i32 0, i32 16)
store i32 %174, i32* %6
%175 = load i32*, i32** %3
%176 = getelementptr inbounds i32, i32* %175, i64 13
%177 = load i32, i32* %176
%178 = load i32*, i32** %3
%179 = getelementptr inbounds i32, i32* %178, i64 13
%180 = load i32, i32* %179
%181 = load i32*, i32** %3
%182 = getelementptr inbounds i32, i32* %181, i64 12
%183 = load i32, i32* %182
%184 = ashr i32 %183, 22
%185 = load i32*, i32** %3
%186 = getelementptr inbounds i32, i32* %185, i64 13
%187 = load i32, i32* %186
%188 = shl i32 %187, 10
%189 = or i32 %184, %188
%190 = load i32*, i32** %3
%191 = getelementptr inbounds i32, i32* %190, i64 12
%192 = load i32, i32* %191
%193 = load i32*, i32** %3
%194 = getelementptr inbounds i32, i32* %193, i64 11
%195 = load i32, i32* %194
%196 = ashr i32 %195, 26
%197 = load i32*, i32** %3
%198 = getelementptr inbounds i32, i32* %197, i64 12
%199 = load i32, i32* %198
%200 = shl i32 %199, 6
%201 = or i32 %196, %200
%202 = load i32*, i32** %3
%203 = getelementptr inbounds i32, i32* %202, i64 11
%204 = load i32, i32* %203
%205 = load i32*, i32** %3
%206 = getelementptr inbounds i32, i32* %205, i64 10
%207 = load i32, i32* %206
%208 = ashr i32 %207, 30
%209 = load i32*, i32** %3
%210 = getelementptr inbounds i32, i32* %209, i64 11
%211 = load i32, i32* %210
%212 = shl i32 %211, 2
%213 = or i32 %208, %212
%214 = load i32*, i32** %3
%215 = getelementptr inbounds i32, i32* %214, i64 10
%216 = load i32, i32* %215
%217 = call i32 @_mm256_set_epi32(i32 %177, i32 %180, i32 %189, i32 %192, i32 %201, i32 %204, i32 %213, 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 14
store i32* %229, i32** %3
%230 = load i32*, i32** %3
ret i32* %230
}

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