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


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

x86 assembly (clang, -O2):
<unpack7_32_avx2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
mov    $0x7f,%edi
call   1050 <_mm256_set1_epi32@plt>
mov    %eax,%r15d
mov    $0x11,%edi
mov    $0xa,%esi
mov    $0x3,%edx
xor    %ecx,%ecx
mov    $0x15,%r8d
mov    $0xe,%r9d
push   $0x0
push   $0x7
call   1070 <_mm256_set_epi32@plt>
add    $0x10,%rsp
mov    %eax,%ebp
mov    (%rbx),%r8d
mov    0x4(%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    %r14,%rdi
mov    %eax,%esi
call   1030 <_mm256_storeu_si256@plt>
lea    0x20(%r14),%r12
mov    $0x9,%edi
mov    $0x2,%esi
xor    %edx,%edx
mov    $0x14,%ecx
mov    $0xd,%r8d
mov    $0x6,%r9d
push   $0x18
push   $0x0
call   1070 <_mm256_set_epi32@plt>
add    $0x10,%rsp
mov    %eax,%r13d
mov    0xc(%rbx),%edi
mov    0x4(%rbx),%eax
mov    0x8(%rbx),%ecx
mov    %ecx,%esi
sar    $0x1b,%esi
mov    %edi,%edx
shl    $0x5,%edx
or     %esi,%edx
mov    %eax,%esi
sar    $0x1f,%esi
lea    (%rcx,%rcx,1),%ebp
or     %esi,%ebp
mov    %edi,%esi
mov    %ecx,%r8d
mov    %ecx,%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>
lea    0x40(%r14),%r12
mov    $0x1,%edi
xor    %esi,%esi
mov    $0x13,%edx
mov    $0xc,%ecx
mov    $0x5,%r8d
xor    %r9d,%r9d
push   $0x10
push   $0x17
call   1070 <_mm256_set_epi32@plt>
add    $0x10,%rsp
mov    %eax,%ebp
mov    0x14(%rbx),%edi
mov    0xc(%rbx),%eax
mov    0x10(%rbx),%ecx
mov    %ecx,%edx
sar    $0x1a,%edx
mov    %edi,%esi
shl    $0x6,%esi
or     %edx,%esi
mov    %eax,%edx
sar    $0x1e,%edx
lea    0x0(,%rcx,4),%r9d
or     %edx,%r9d
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>
add    $0x60,%r14
mov    $0x19,%edi
mov    $0x12,%esi
mov    $0xb,%edx
mov    $0x4,%ecx
xor    %r8d,%r8d
mov    $0x16,%r9d
push   $0x8
push   $0xf
call   1070 <_mm256_set_epi32@plt>
add    $0x10,%rsp
mov    %eax,%ebp
mov    0x14(%rbx),%r9d
mov    0x18(%rbx),%ecx
mov    %r9d,%eax
sar    $0x1d,%eax
lea    0x0(,%rcx,8),%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    %r14,%rdi
mov    %eax,%esi
call   1030 <_mm256_storeu_si256@plt>
add    $0x1c,%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* @unpack7_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 127, 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 17, i32 10, i32 3, i32 0, i32 21, i32 14, i32 7, 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 1
%21 = load i32, i32* %20
%22 = load i32*, i32** %3
%23 = getelementptr inbounds i32, i32* %22, i64 0
%24 = load i32, i32* %23
%25 = ashr i32 %24, 28
%26 = load i32*, i32** %3
%27 = getelementptr inbounds i32, i32* %26, i64 1
%28 = load i32, i32* %27
%29 = shl i32 %28, 4
%30 = or i32 %25, %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 %21, 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 9, i32 2, i32 0, i32 20, i32 13, i32 6, i32 0, i32 24)
store i32 %54, i32* %6
%55 = load i32*, i32** %3
%56 = getelementptr inbounds i32, i32* %55, i64 3
%57 = load i32, i32* %56
%58 = load i32*, i32** %3
%59 = getelementptr inbounds i32, i32* %58, i64 3
%60 = load i32, i32* %59
%61 = load i32*, i32** %3
%62 = getelementptr inbounds i32, i32* %61, i64 2
%63 = load i32, i32* %62
%64 = ashr i32 %63, 27
%65 = load i32*, i32** %3
%66 = getelementptr inbounds i32, i32* %65, i64 3
%67 = load i32, i32* %66
%68 = shl i32 %67, 5
%69 = or i32 %64, %68
%70 = load i32*, i32** %3
%71 = getelementptr inbounds i32, i32* %70, i64 2
%72 = load i32, i32* %71
%73 = load i32*, i32** %3
%74 = getelementptr inbounds i32, i32* %73, i64 2
%75 = load i32, i32* %74
%76 = load i32*, i32** %3
%77 = getelementptr inbounds i32, i32* %76, i64 2
%78 = load i32, i32* %77
%79 = load i32*, i32** %3
%80 = getelementptr inbounds i32, i32* %79, i64 1
%81 = load i32, i32* %80
%82 = ashr i32 %81, 31
%83 = load i32*, i32** %3
%84 = getelementptr inbounds i32, i32* %83, i64 2
%85 = load i32, i32* %84
%86 = shl i32 %85, 1
%87 = or i32 %82, %86
%88 = load i32*, i32** %3
%89 = getelementptr inbounds i32, i32* %88, i64 1
%90 = load i32, i32* %89
%91 = call i32 @_mm256_set_epi32(i32 %57, i32 %60, i32 %69, i32 %72, i32 %75, i32 %78, i32 %87, i32 %90)
store i32 %91, i32* %7
%92 = load i32, i32* %7
%93 = load i32, i32* %6
%94 = call i32 @_mm256_srlv_epi32(i32 %92, i32 %93)
%95 = load i32, i32* %8
%96 = call i32 @_mm256_and_si256(i32 %94, i32 %95)
store i32 %96, i32* %9
%97 = load i32*, i32** %4
%98 = load i32, i32* %9
%99 = call i32 @_mm256_storeu_si256(i32* %97, i32 %98)
%100 = load i32*, i32** %4
%101 = getelementptr inbounds i32, i32* %100, i64 8
store i32* %101, i32** %4
%102 = call i32 @_mm256_set_epi32(i32 1, i32 0, i32 19, i32 12, i32 5, i32 0, i32 23, i32 16)
store i32 %102, i32* %6
%103 = load i32*, i32** %3
%104 = getelementptr inbounds i32, i32* %103, i64 5
%105 = load i32, i32* %104
%106 = load i32*, i32** %3
%107 = getelementptr inbounds i32, i32* %106, i64 4
%108 = load i32, i32* %107
%109 = ashr i32 %108, 26
%110 = load i32*, i32** %3
%111 = getelementptr inbounds i32, i32* %110, i64 5
%112 = load i32, i32* %111
%113 = shl i32 %112, 6
%114 = or i32 %109, %113
%115 = load i32*, i32** %3
%116 = getelementptr inbounds i32, i32* %115, i64 4
%117 = load i32, i32* %116
%118 = load i32*, i32** %3
%119 = getelementptr inbounds i32, i32* %118, i64 4
%120 = load i32, i32* %119
%121 = load i32*, i32** %3
%122 = getelementptr inbounds i32, i32* %121, i64 4
%123 = load i32, i32* %122
%124 = load i32*, i32** %3
%125 = getelementptr inbounds i32, i32* %124, i64 3
%126 = load i32, i32* %125
%127 = ashr i32 %126, 30
%128 = load i32*, i32** %3
%129 = getelementptr inbounds i32, i32* %128, i64 4
%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 3
%135 = load i32, i32* %134
%136 = load i32*, i32** %3
%137 = getelementptr inbounds i32, i32* %136, i64 3
%138 = load i32, i32* %137
%139 = call i32 @_mm256_set_epi32(i32 %105, i32 %114, i32 %117, i32 %120, i32 %123, i32 %132, i32 %135, i32 %138)
store i32 %139, i32* %7
%140 = load i32, i32* %7
%141 = load i32, i32* %6
%142 = call i32 @_mm256_srlv_epi32(i32 %140, i32 %141)
%143 = load i32, i32* %8
%144 = call i32 @_mm256_and_si256(i32 %142, i32 %143)
store i32 %144, i32* %9
%145 = load i32*, i32** %4
%146 = load i32, i32* %9
%147 = call i32 @_mm256_storeu_si256(i32* %145, i32 %146)
%148 = load i32*, i32** %4
%149 = getelementptr inbounds i32, i32* %148, i64 8
store i32* %149, i32** %4
%150 = call i32 @_mm256_set_epi32(i32 25, i32 18, i32 11, i32 4, i32 0, i32 22, i32 15, i32 8)
store i32 %150, i32* %6
%151 = load i32*, i32** %3
%152 = getelementptr inbounds i32, i32* %151, i64 6
%153 = load i32, i32* %152
%154 = load i32*, i32** %3
%155 = getelementptr inbounds i32, i32* %154, i64 6
%156 = load i32, i32* %155
%157 = load i32*, i32** %3
%158 = getelementptr inbounds i32, i32* %157, i64 6
%159 = load i32, i32* %158
%160 = load i32*, i32** %3
%161 = getelementptr inbounds i32, i32* %160, i64 6
%162 = load i32, i32* %161
%163 = load i32*, i32** %3
%164 = getelementptr inbounds i32, i32* %163, i64 5
%165 = load i32, i32* %164
%166 = ashr i32 %165, 29
%167 = load i32*, i32** %3
%168 = getelementptr inbounds i32, i32* %167, i64 6
%169 = load i32, i32* %168
%170 = shl i32 %169, 3
%171 = or i32 %166, %170
%172 = load i32*, i32** %3
%173 = getelementptr inbounds i32, i32* %172, i64 5
%174 = load i32, i32* %173
%175 = load i32*, i32** %3
%176 = getelementptr inbounds i32, i32* %175, i64 5
%177 = load i32, i32* %176
%178 = load i32*, i32** %3
%179 = getelementptr inbounds i32, i32* %178, i64 5
%180 = load i32, i32* %179
%181 = call i32 @_mm256_set_epi32(i32 %153, i32 %156, i32 %159, i32 %162, i32 %171, i32 %174, i32 %177, i32 %180)
store i32 %181, i32* %7
%182 = load i32, i32* %7
%183 = load i32, i32* %6
%184 = call i32 @_mm256_srlv_epi32(i32 %182, i32 %183)
%185 = load i32, i32* %8
%186 = call i32 @_mm256_and_si256(i32 %184, i32 %185)
store i32 %186, i32* %9
%187 = load i32*, i32** %4
%188 = load i32, i32* %9
%189 = call i32 @_mm256_storeu_si256(i32* %187, i32 %188)
%190 = load i32*, i32** %4
%191 = getelementptr inbounds i32, i32* %190, i64 8
store i32* %191, i32** %4
%192 = load i32*, i32** %3
%193 = getelementptr inbounds i32, i32* %192, i64 7
store i32* %193, i32** %3
%194 = load i32*, i32** %3
ret i32* %194
}

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