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


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

x86 assembly (clang, -O2):
<unpack6_32_avx2>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %rsi,%r14
mov    %rdi,%rbx
mov    $0x3f,%edi
call   1050 <_mm256_set1_epi32@plt>
mov    %eax,%r15d
mov    $0xa,%edi
mov    $0x4,%esi
xor    %edx,%edx
mov    $0x18,%ecx
mov    $0x12,%r8d
mov    $0xc,%r9d
push   $0x0
push   $0x6
call   1070 <_mm256_set_epi32@plt>
add    $0x10,%rsp
mov    %eax,%ebp
mov    (%rbx),%ecx
mov    0x4(%rbx),%edi
mov    %ecx,%eax
sar    $0x1e,%eax
lea    0x0(,%rdi,4),%edx
or     %eax,%edx
mov    %edi,%esi
mov    %ecx,%r8d
mov    %ecx,%r9d
push   %rcx
push   %rcx
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    $0x1a,%edi
mov    $0x14,%esi
mov    $0xe,%edx
mov    $0x8,%ecx
mov    $0x2,%r8d
xor    %r9d,%r9d
push   $0x10
push   $0x16
call   1070 <_mm256_set_epi32@plt>
add    $0x10,%rsp
mov    %eax,%ebp
mov    0x4(%rbx),%eax
mov    0x8(%rbx),%ecx
mov    %eax,%edx
sar    $0x1c,%edx
mov    %ecx,%r9d
shl    $0x4,%r9d
or     %edx,%r9d
mov    %ecx,%edi
mov    %ecx,%esi
mov    %ecx,%edx
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    %r12,%rdi
mov    %eax,%esi
call   1030 <_mm256_storeu_si256@plt>
lea    0x40(%r14),%r12
mov    $0xa,%edi
mov    $0x4,%esi
xor    %edx,%edx
mov    $0x18,%ecx
mov    $0x12,%r8d
mov    $0xc,%r9d
push   $0x0
push   $0x6
call   1070 <_mm256_set_epi32@plt>
add    $0x10,%rsp
mov    %eax,%ebp
mov    0xc(%rbx),%ecx
mov    0x10(%rbx),%edi
mov    %ecx,%eax
sar    $0x1e,%eax
lea    0x0(,%rdi,4),%edx
or     %eax,%edx
mov    %edi,%esi
mov    %ecx,%r8d
mov    %ecx,%r9d
push   %rcx
push   %rcx
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    %r12,%rdi
mov    %eax,%esi
call   1030 <_mm256_storeu_si256@plt>
add    $0x60,%r14
mov    $0x1a,%edi
mov    $0x14,%esi
mov    $0xe,%edx
mov    $0x8,%ecx
mov    $0x2,%r8d
xor    %r9d,%r9d
push   $0x10
push   $0x16
call   1070 <_mm256_set_epi32@plt>
add    $0x10,%rsp
mov    %eax,%ebp
mov    0x10(%rbx),%eax
mov    0x14(%rbx),%ecx
mov    %eax,%edx
sar    $0x1c,%edx
mov    %ecx,%r9d
shl    $0x4,%r9d
or     %edx,%r9d
mov    %ecx,%edi
mov    %ecx,%esi
mov    %ecx,%edx
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    $0x18,%rbx
mov    %rbx,%rax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define i32* @unpack6_32_avx2(i32* %0, i32* %1) {
%3 = tail call i32 @_mm256_set1_epi32(i32 63)
%4 = tail call i32 @_mm256_set_epi32(i32 10, i32 4, i32 0, i32 24, i32 18, i32 12, i32 6, i32 0)
%5 = getelementptr inbounds i32, i32* %0, i64 1
%6 = load i32, i32* %5
%7 = load i32, i32* %0
%8 = ashr i32 %7, 30
%9 = shl i32 %6, 2
%10 = or i32 %8, %9
%11 = tail call i32 @_mm256_set_epi32(i32 %6, i32 %6, i32 %10, i32 %7, i32 %7, i32 %7, i32 %7, i32 %7)
%12 = tail call i32 @_mm256_srlv_epi32(i32 %11, i32 %4)
%13 = tail call i32 @_mm256_and_si256(i32 %12, i32 %3)
%14 = tail call i32 @_mm256_storeu_si256(i32* %1, i32 %13)
%15 = getelementptr inbounds i32, i32* %1, i64 8
%16 = tail call i32 @_mm256_set_epi32(i32 26, i32 20, i32 14, i32 8, i32 2, i32 0, i32 22, i32 16)
%17 = getelementptr inbounds i32, i32* %0, i64 2
%18 = load i32, i32* %17
%19 = load i32, i32* %5
%20 = ashr i32 %19, 28
%21 = shl i32 %18, 4
%22 = or i32 %20, %21
%23 = tail call i32 @_mm256_set_epi32(i32 %18, i32 %18, i32 %18, i32 %18, i32 %18, i32 %22, i32 %19, i32 %19)
%24 = tail call i32 @_mm256_srlv_epi32(i32 %23, i32 %16)
%25 = tail call i32 @_mm256_and_si256(i32 %24, i32 %3)
%26 = tail call i32 @_mm256_storeu_si256(i32* %15, i32 %25)
%27 = getelementptr inbounds i32, i32* %1, i64 16
%28 = tail call i32 @_mm256_set_epi32(i32 10, i32 4, i32 0, i32 24, i32 18, i32 12, i32 6, i32 0)
%29 = getelementptr inbounds i32, i32* %0, i64 4
%30 = load i32, i32* %29
%31 = getelementptr inbounds i32, i32* %0, i64 3
%32 = load i32, i32* %31
%33 = ashr i32 %32, 30
%34 = shl i32 %30, 2
%35 = or i32 %33, %34
%36 = tail call i32 @_mm256_set_epi32(i32 %30, i32 %30, i32 %35, i32 %32, i32 %32, i32 %32, i32 %32, i32 %32)
%37 = tail call i32 @_mm256_srlv_epi32(i32 %36, i32 %28)
%38 = tail call i32 @_mm256_and_si256(i32 %37, i32 %3)
%39 = tail call i32 @_mm256_storeu_si256(i32* %27, i32 %38)
%40 = getelementptr inbounds i32, i32* %1, i64 24
%41 = tail call i32 @_mm256_set_epi32(i32 26, i32 20, i32 14, i32 8, i32 2, i32 0, i32 22, i32 16)
%42 = getelementptr inbounds i32, i32* %0, i64 5
%43 = load i32, i32* %42
%44 = load i32, i32* %29
%45 = ashr i32 %44, 28
%46 = shl i32 %43, 4
%47 = or i32 %45, %46
%48 = tail call i32 @_mm256_set_epi32(i32 %43, i32 %43, i32 %43, i32 %43, i32 %43, i32 %47, i32 %44, i32 %44)
%49 = tail call i32 @_mm256_srlv_epi32(i32 %48, i32 %41)
%50 = tail call i32 @_mm256_and_si256(i32 %49, i32 %3)
%51 = tail call i32 @_mm256_storeu_si256(i32* %40, i32 %50)
%52 = getelementptr inbounds i32, i32* %0, i64 6
ret i32* %52
}