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


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

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

LLVM IR (-O0):
define i32* @unpack5_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 31, 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 3, i32 0, i32 25, i32 20, i32 15, i32 10, i32 5, 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 0
%18 = load i32, i32* %17
%19 = ashr i32 %18, 30
%20 = load i32*, i32** %3
%21 = getelementptr inbounds i32, i32* %20, i64 1
%22 = load i32, i32* %21
%23 = shl i32 %22, 2
%24 = or i32 %19, %23
%25 = load i32*, i32** %3
%26 = getelementptr inbounds i32, i32* %25, i64 0
%27 = load i32, i32* %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 %24, 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 11, i32 6, i32 1, i32 0, i32 23, i32 18, i32 13, i32 8)
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 1
%66 = load i32, i32* %65
%67 = ashr i32 %66, 28
%68 = load i32*, i32** %3
%69 = getelementptr inbounds i32, i32* %68, i64 2
%70 = load i32, i32* %69
%71 = shl i32 %70, 4
%72 = or i32 %67, %71
%73 = load i32*, i32** %3
%74 = getelementptr inbounds i32, i32* %73, i64 1
%75 = load i32, i32* %74
%76 = load i32*, i32** %3
%77 = getelementptr inbounds i32, i32* %76, i64 1
%78 = load i32, i32* %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 %72, i32 %75, 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 19, i32 14, i32 9, i32 4, i32 0, i32 26, i32 21, i32 16)
store i32 %96, i32* %6
%97 = load i32*, i32** %3
%98 = getelementptr inbounds i32, i32* %97, i64 3
%99 = load i32, i32* %98
%100 = load i32*, i32** %3
%101 = getelementptr inbounds i32, i32* %100, i64 3
%102 = load i32, i32* %101
%103 = load i32*, i32** %3
%104 = getelementptr inbounds i32, i32* %103, i64 3
%105 = load i32, i32* %104
%106 = load i32*, i32** %3
%107 = getelementptr inbounds i32, i32* %106, i64 3
%108 = load i32, i32* %107
%109 = load i32*, i32** %3
%110 = getelementptr inbounds i32, i32* %109, i64 2
%111 = load i32, i32* %110
%112 = ashr i32 %111, 31
%113 = load i32*, i32** %3
%114 = getelementptr inbounds i32, i32* %113, i64 3
%115 = load i32, i32* %114
%116 = shl i32 %115, 1
%117 = or i32 %112, %116
%118 = load i32*, i32** %3
%119 = getelementptr inbounds i32, i32* %118, i64 2
%120 = load i32, i32* %119
%121 = load i32*, i32** %3
%122 = getelementptr inbounds i32, i32* %121, i64 2
%123 = load i32, i32* %122
%124 = load i32*, i32** %3
%125 = getelementptr inbounds i32, i32* %124, i64 2
%126 = load i32, i32* %125
%127 = call i32 @_mm256_set_epi32(i32 %99, i32 %102, i32 %105, i32 %108, 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 27, i32 22, i32 17, i32 12, i32 7, i32 2, i32 0, i32 24)
store i32 %138, i32* %6
%139 = load i32*, i32** %3
%140 = getelementptr inbounds i32, i32* %139, i64 4
%141 = load i32, i32* %140
%142 = load i32*, i32** %3
%143 = getelementptr inbounds i32, i32* %142, i64 4
%144 = load i32, i32* %143
%145 = load i32*, i32** %3
%146 = getelementptr inbounds i32, i32* %145, i64 4
%147 = load i32, i32* %146
%148 = load i32*, i32** %3
%149 = getelementptr inbounds i32, i32* %148, i64 4
%150 = load i32, i32* %149
%151 = load i32*, i32** %3
%152 = getelementptr inbounds i32, i32* %151, i64 4
%153 = load i32, i32* %152
%154 = load i32*, i32** %3
%155 = getelementptr inbounds i32, i32* %154, i64 4
%156 = load i32, i32* %155
%157 = load i32*, i32** %3
%158 = getelementptr inbounds i32, i32* %157, i64 3
%159 = load i32, i32* %158
%160 = ashr i32 %159, 29
%161 = load i32*, i32** %3
%162 = getelementptr inbounds i32, i32* %161, i64 4
%163 = load i32, i32* %162
%164 = shl i32 %163, 3
%165 = or i32 %160, %164
%166 = load i32*, i32** %3
%167 = getelementptr inbounds i32, i32* %166, i64 3
%168 = load i32, i32* %167
%169 = call i32 @_mm256_set_epi32(i32 %141, i32 %144, i32 %147, i32 %150, i32 %153, i32 %156, 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 5
store i32* %181, i32** %3
%182 = load i32*, i32** %3
ret i32* %182
}

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