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


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

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

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

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