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


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

x86 assembly (clang, -O2):
<unpack19_32_avx2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%r14
mov    %rdi,%r15
mov    $0x7ffff,%edi
call   1050 <_mm256_set1_epi32@plt>
mov    %eax,%ebx
mov    $0x5,%edi
xor    %esi,%esi
xor    %edx,%edx
mov    $0xc,%ecx
xor    %r8d,%r8d
mov    $0x6,%r9d
push   $0x0
push   $0x0
call   1070 <_mm256_set_epi32@plt>
add    $0x10,%rsp
mov    %eax,%r12d
mov    0x10(%r15),%edi
mov    0xc(%r15),%edx
mov    %edx,%eax
sar    $0x12,%eax
mov    %edi,%esi
shl    $0xe,%esi
or     %eax,%esi
mov    0x8(%r15),%ecx
mov    %ecx,%eax
sar    $0x1f,%eax
add    %edx,%edx
or     %eax,%edx
mov    (%r15),%r10d
mov    0x4(%r15),%r9d
mov    %r9d,%ebp
sar    $0x19,%ebp
mov    %ecx,%r8d
shl    $0x7,%r8d
or     %ebp,%r8d
mov    %r10d,%ebp
sar    $0x13,%ebp
mov    %r9d,%eax
shl    $0xd,%eax
or     %ebp,%eax
push   %r10
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    %ebx,%esi
mov    %ebx,%r12d
mov    %ebx,0xc(%rsp)
call   1040 <_mm256_and_si256@plt>
mov    %r14,%rdi
mov    %eax,%esi
call   1030 <_mm256_storeu_si256@plt>
lea    0x20(%r14),%rax
mov    %rax,0x10(%rsp)
xor    %edi,%edi
mov    $0xa,%esi
xor    %edx,%edx
mov    $0x4,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
push   $0x0
push   $0xb
call   1070 <_mm256_set_epi32@plt>
add    $0x10,%rsp
mov    %eax,%r13d
mov    0x20(%r15),%esi
mov    %esi,%eax
sar    $0x1d,%eax
mov    0x24(%r15),%edi
shl    $0x3,%edi
or     %eax,%edi
mov    0x1c(%r15),%ecx
mov    %ecx,%eax
sar    $0x17,%eax
mov    %esi,%edx
shl    $0x9,%edx
or     %eax,%edx
mov    0x14(%r15),%ebx
mov    0x18(%r15),%r9d
mov    %r9d,%ebp
sar    $0x11,%ebp
mov    %ecx,%r8d
shl    $0xf,%r8d
or     %ebp,%r8d
mov    %ebx,%ebp
sar    $0x1e,%ebp
shl    $0x2,%r9d
or     %ebp,%r9d
movsbl 0x13(%r15),%ebp
mov    %ebx,%eax
shl    $0x8,%eax
or     %ebp,%eax
push   %rax
push   %rbx
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    %r12d,%esi
call   1040 <_mm256_and_si256@plt>
mov    0x10(%rsp),%rdi
mov    %eax,%esi
call   1030 <_mm256_storeu_si256@plt>
lea    0x40(%r14),%r12
xor    %edi,%edi
mov    $0x2,%esi
xor    %edx,%edx
xor    %ecx,%ecx
mov    $0x9,%r8d
xor    %r9d,%r9d
push   $0x0
push   $0x3
call   1070 <_mm256_set_epi32@plt>
add    $0x10,%rsp
mov    %eax,%r13d
mov    0x34(%r15),%esi
mov    %esi,%eax
sar    $0x15,%eax
mov    0x38(%r15),%edi
shl    $0xb,%edi
or     %eax,%edi
mov    0x30(%r15),%ecx
mov    %ecx,%eax
sar    $0xf,%eax
mov    %esi,%edx
shl    $0x11,%edx
or     %eax,%edx
mov    0x28(%r15),%ebp
mov    0x2c(%r15),%r8d
mov    %r8d,%ebx
sar    $0x1c,%ebx
shl    $0x4,%ecx
or     %ebx,%ecx
mov    %ebp,%ebx
sar    $0x16,%ebx
mov    %r8d,%r9d
shl    $0xa,%r9d
or     %ebx,%r9d
movswl 0x26(%r15),%ebx
mov    %ebp,%eax
shl    $0x10,%eax
or     %ebx,%eax
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    0xc(%rsp),%r13d
mov    %r13d,%esi
call   1040 <_mm256_and_si256@plt>
mov    %r12,%rdi
mov    %eax,%esi
call   1030 <_mm256_storeu_si256@plt>
add    $0x60,%r14
mov    $0xd,%edi
xor    %esi,%esi
mov    $0x7,%edx
xor    %ecx,%ecx
mov    $0x1,%r8d
xor    %r9d,%r9d
push   $0x8
push   $0x0
call   1070 <_mm256_set_epi32@plt>
add    $0x10,%rsp
mov    %eax,%r12d
mov    0x48(%r15),%edi
mov    0x44(%r15),%edx
mov    %edx,%eax
sar    $0x1a,%eax
mov    %edi,%esi
shl    $0x6,%esi
or     %eax,%esi
mov    0x40(%r15),%r8d
mov    %r8d,%eax
sar    $0x14,%eax
mov    %edx,%ecx
shl    $0xc,%ecx
or     %eax,%ecx
mov    0x38(%r15),%eax
mov    0x3c(%r15),%ebx
mov    %ebx,%ebp
sar    $0xe,%ebp
mov    %r8d,%r9d
shl    $0x12,%r9d
or     %ebp,%r9d
mov    %eax,%ebp
sar    $0x1b,%ebp
shl    $0x5,%ebx
or     %ebp,%ebx
push   %rax
push   %rbx
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    %r13d,%esi
call   1040 <_mm256_and_si256@plt>
mov    %r14,%rdi
mov    %eax,%esi
call   1030 <_mm256_storeu_si256@plt>
add    $0x4c,%r15
mov    %r15,%rax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32* @unpack19_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 524287, 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 5, i32 0, i32 0, i32 12, i32 0, i32 6, i32 0, i32 0)
store i32 %12, i32* %6
%13 = load i32*, i32** %3
%14 = getelementptr inbounds i32, i32* %13, i64 4
%15 = load i32, i32* %14
%16 = load i32*, i32** %3
%17 = getelementptr inbounds i32, i32* %16, i64 3
%18 = load i32, i32* %17
%19 = ashr i32 %18, 18
%20 = load i32*, i32** %3
%21 = getelementptr inbounds i32, i32* %20, i64 4
%22 = load i32, i32* %21
%23 = shl i32 %22, 14
%24 = or i32 %19, %23
%25 = load i32*, i32** %3
%26 = getelementptr inbounds i32, i32* %25, i64 2
%27 = load i32, i32* %26
%28 = ashr i32 %27, 31
%29 = load i32*, i32** %3
%30 = getelementptr inbounds i32, i32* %29, i64 3
%31 = load i32, i32* %30
%32 = shl i32 %31, 1
%33 = or i32 %28, %32
%34 = load i32*, i32** %3
%35 = getelementptr inbounds i32, i32* %34, i64 2
%36 = load i32, i32* %35
%37 = load i32*, i32** %3
%38 = getelementptr inbounds i32, i32* %37, i64 1
%39 = load i32, i32* %38
%40 = ashr i32 %39, 25
%41 = load i32*, i32** %3
%42 = getelementptr inbounds i32, i32* %41, i64 2
%43 = load i32, i32* %42
%44 = shl i32 %43, 7
%45 = or i32 %40, %44
%46 = load i32*, i32** %3
%47 = getelementptr inbounds i32, i32* %46, i64 1
%48 = load i32, i32* %47
%49 = load i32*, i32** %3
%50 = getelementptr inbounds i32, i32* %49, i64 0
%51 = load i32, i32* %50
%52 = ashr i32 %51, 19
%53 = load i32*, i32** %3
%54 = getelementptr inbounds i32, i32* %53, i64 1
%55 = load i32, i32* %54
%56 = shl i32 %55, 13
%57 = or i32 %52, %56
%58 = load i32*, i32** %3
%59 = getelementptr inbounds i32, i32* %58, i64 0
%60 = load i32, i32* %59
%61 = call i32 @_mm256_set_epi32(i32 %15, i32 %24, i32 %33, i32 %36, i32 %45, i32 %48, i32 %57, i32 %60)
store i32 %61, i32* %7
%62 = load i32, i32* %7
%63 = load i32, i32* %6
%64 = call i32 @_mm256_srlv_epi32(i32 %62, i32 %63)
%65 = load i32, i32* %8
%66 = call i32 @_mm256_and_si256(i32 %64, i32 %65)
store i32 %66, i32* %9
%67 = load i32*, i32** %4
%68 = load i32, i32* %9
%69 = call i32 @_mm256_storeu_si256(i32* %67, i32 %68)
%70 = load i32*, i32** %4
%71 = getelementptr inbounds i32, i32* %70, i64 8
store i32* %71, i32** %4
%72 = call i32 @_mm256_set_epi32(i32 0, i32 10, i32 0, i32 4, i32 0, i32 0, i32 11, i32 0)
store i32 %72, i32* %6
%73 = load i32*, i32** %3
%74 = getelementptr inbounds i32, i32* %73, i64 8
%75 = load i32, i32* %74
%76 = ashr i32 %75, 29
%77 = load i32*, i32** %3
%78 = getelementptr inbounds i32, i32* %77, i64 9
%79 = load i32, i32* %78
%80 = shl i32 %79, 3
%81 = or i32 %76, %80
%82 = load i32*, i32** %3
%83 = getelementptr inbounds i32, i32* %82, i64 8
%84 = load i32, i32* %83
%85 = load i32*, i32** %3
%86 = getelementptr inbounds i32, i32* %85, i64 7
%87 = load i32, i32* %86
%88 = ashr i32 %87, 23
%89 = load i32*, i32** %3
%90 = getelementptr inbounds i32, i32* %89, i64 8
%91 = load i32, i32* %90
%92 = shl i32 %91, 9
%93 = or i32 %88, %92
%94 = load i32*, i32** %3
%95 = getelementptr inbounds i32, i32* %94, i64 7
%96 = load i32, i32* %95
%97 = load i32*, i32** %3
%98 = getelementptr inbounds i32, i32* %97, i64 6
%99 = load i32, i32* %98
%100 = ashr i32 %99, 17
%101 = load i32*, i32** %3
%102 = getelementptr inbounds i32, i32* %101, i64 7
%103 = load i32, i32* %102
%104 = shl i32 %103, 15
%105 = or i32 %100, %104
%106 = load i32*, i32** %3
%107 = getelementptr inbounds i32, i32* %106, i64 5
%108 = load i32, i32* %107
%109 = ashr i32 %108, 30
%110 = load i32*, i32** %3
%111 = getelementptr inbounds i32, i32* %110, i64 6
%112 = load i32, i32* %111
%113 = shl i32 %112, 2
%114 = or i32 %109, %113
%115 = load i32*, i32** %3
%116 = getelementptr inbounds i32, i32* %115, i64 5
%117 = load i32, i32* %116
%118 = load i32*, i32** %3
%119 = getelementptr inbounds i32, i32* %118, i64 4
%120 = load i32, i32* %119
%121 = ashr i32 %120, 24
%122 = load i32*, i32** %3
%123 = getelementptr inbounds i32, i32* %122, i64 5
%124 = load i32, i32* %123
%125 = shl i32 %124, 8
%126 = or i32 %121, %125
%127 = call i32 @_mm256_set_epi32(i32 %81, i32 %84, i32 %93, i32 %96, i32 %105, i32 %114, i32 %117, 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 0, i32 2, i32 0, i32 0, i32 9, i32 0, i32 3, i32 0)
store i32 %138, i32* %6
%139 = load i32*, i32** %3
%140 = getelementptr inbounds i32, i32* %139, i64 13
%141 = load i32, i32* %140
%142 = ashr i32 %141, 21
%143 = load i32*, i32** %3
%144 = getelementptr inbounds i32, i32* %143, i64 14
%145 = load i32, i32* %144
%146 = shl i32 %145, 11
%147 = or i32 %142, %146
%148 = load i32*, i32** %3
%149 = getelementptr inbounds i32, i32* %148, i64 13
%150 = load i32, i32* %149
%151 = load i32*, i32** %3
%152 = getelementptr inbounds i32, i32* %151, i64 12
%153 = load i32, i32* %152
%154 = ashr i32 %153, 15
%155 = load i32*, i32** %3
%156 = getelementptr inbounds i32, i32* %155, i64 13
%157 = load i32, i32* %156
%158 = shl i32 %157, 17
%159 = or i32 %154, %158
%160 = load i32*, i32** %3
%161 = getelementptr inbounds i32, i32* %160, i64 11
%162 = load i32, i32* %161
%163 = ashr i32 %162, 28
%164 = load i32*, i32** %3
%165 = getelementptr inbounds i32, i32* %164, i64 12
%166 = load i32, i32* %165
%167 = shl i32 %166, 4
%168 = or i32 %163, %167
%169 = load i32*, i32** %3
%170 = getelementptr inbounds i32, i32* %169, i64 11
%171 = load i32, i32* %170
%172 = load i32*, i32** %3
%173 = getelementptr inbounds i32, i32* %172, i64 10
%174 = load i32, i32* %173
%175 = ashr i32 %174, 22
%176 = load i32*, i32** %3
%177 = getelementptr inbounds i32, i32* %176, i64 11
%178 = load i32, i32* %177
%179 = shl i32 %178, 10
%180 = or i32 %175, %179
%181 = load i32*, i32** %3
%182 = getelementptr inbounds i32, i32* %181, i64 10
%183 = load i32, i32* %182
%184 = load i32*, i32** %3
%185 = getelementptr inbounds i32, i32* %184, i64 9
%186 = load i32, i32* %185
%187 = ashr i32 %186, 16
%188 = load i32*, i32** %3
%189 = getelementptr inbounds i32, i32* %188, i64 10
%190 = load i32, i32* %189
%191 = shl i32 %190, 16
%192 = or i32 %187, %191
%193 = call i32 @_mm256_set_epi32(i32 %147, i32 %150, i32 %159, i32 %168, i32 %171, i32 %180, i32 %183, i32 %192)
store i32 %193, i32* %7
%194 = load i32, i32* %7
%195 = load i32, i32* %6
%196 = call i32 @_mm256_srlv_epi32(i32 %194, i32 %195)
%197 = load i32, i32* %8
%198 = call i32 @_mm256_and_si256(i32 %196, i32 %197)
store i32 %198, i32* %9
%199 = load i32*, i32** %4
%200 = load i32, i32* %9
%201 = call i32 @_mm256_storeu_si256(i32* %199, i32 %200)
%202 = load i32*, i32** %4
%203 = getelementptr inbounds i32, i32* %202, i64 8
store i32* %203, i32** %4
%204 = call i32 @_mm256_set_epi32(i32 13, i32 0, i32 7, i32 0, i32 1, i32 0, i32 0, i32 8)
store i32 %204, i32* %6
%205 = load i32*, i32** %3
%206 = getelementptr inbounds i32, i32* %205, i64 18
%207 = load i32, i32* %206
%208 = load i32*, i32** %3
%209 = getelementptr inbounds i32, i32* %208, i64 17
%210 = load i32, i32* %209
%211 = ashr i32 %210, 26
%212 = load i32*, i32** %3
%213 = getelementptr inbounds i32, i32* %212, i64 18
%214 = load i32, i32* %213
%215 = shl i32 %214, 6
%216 = or i32 %211, %215
%217 = load i32*, i32** %3
%218 = getelementptr inbounds i32, i32* %217, i64 17
%219 = load i32, i32* %218
%220 = load i32*, i32** %3
%221 = getelementptr inbounds i32, i32* %220, i64 16
%222 = load i32, i32* %221
%223 = ashr i32 %222, 20
%224 = load i32*, i32** %3
%225 = getelementptr inbounds i32, i32* %224, i64 17
%226 = load i32, i32* %225
%227 = shl i32 %226, 12
%228 = or i32 %223, %227
%229 = load i32*, i32** %3
%230 = getelementptr inbounds i32, i32* %229, i64 16
%231 = load i32, i32* %230
%232 = load i32*, i32** %3
%233 = getelementptr inbounds i32, i32* %232, i64 15
%234 = load i32, i32* %233
%235 = ashr i32 %234, 14
%236 = load i32*, i32** %3
%237 = getelementptr inbounds i32, i32* %236, i64 16
%238 = load i32, i32* %237
%239 = shl i32 %238, 18
%240 = or i32 %235, %239
%241 = load i32*, i32** %3
%242 = getelementptr inbounds i32, i32* %241, i64 14
%243 = load i32, i32* %242
%244 = ashr i32 %243, 27
%245 = load i32*, i32** %3
%246 = getelementptr inbounds i32, i32* %245, i64 15
%247 = load i32, i32* %246
%248 = shl i32 %247, 5
%249 = or i32 %244, %248
%250 = load i32*, i32** %3
%251 = getelementptr inbounds i32, i32* %250, i64 14
%252 = load i32, i32* %251
%253 = call i32 @_mm256_set_epi32(i32 %207, i32 %216, i32 %219, i32 %228, i32 %231, i32 %240, i32 %249, i32 %252)
store i32 %253, i32* %7
%254 = load i32, i32* %7
%255 = load i32, i32* %6
%256 = call i32 @_mm256_srlv_epi32(i32 %254, i32 %255)
%257 = load i32, i32* %8
%258 = call i32 @_mm256_and_si256(i32 %256, i32 %257)
store i32 %258, i32* %9
%259 = load i32*, i32** %4
%260 = load i32, i32* %9
%261 = call i32 @_mm256_storeu_si256(i32* %259, i32 %260)
%262 = load i32*, i32** %4
%263 = getelementptr inbounds i32, i32* %262, i64 8
store i32* %263, i32** %4
%264 = load i32*, i32** %3
%265 = getelementptr inbounds i32, i32* %264, i64 19
store i32* %265, i32** %3
%266 = load i32*, i32** %3
ret i32* %266
}

LLVM IR (-O2):
define i32* @unpack19_32_avx2(i32* %0, i32* %1) {
%3 = tail call i32 @_mm256_set1_epi32(i32 524287)
%4 = tail call i32 @_mm256_set_epi32(i32 5, i32 0, i32 0, i32 12, i32 0, i32 6, i32 0, i32 0)
%5 = getelementptr inbounds i32, i32* %0, i64 4
%6 = load i32, i32* %5
%7 = getelementptr inbounds i32, i32* %0, i64 3
%8 = load i32, i32* %7
%9 = ashr i32 %8, 18
%10 = shl i32 %6, 14
%11 = or i32 %9, %10
%12 = getelementptr inbounds i32, i32* %0, i64 2
%13 = load i32, i32* %12
%14 = ashr i32 %13, 31
%15 = shl i32 %8, 1
%16 = or i32 %14, %15
%17 = getelementptr inbounds i32, i32* %0, i64 1
%18 = load i32, i32* %17
%19 = ashr i32 %18, 25
%20 = shl i32 %13, 7
%21 = or i32 %19, %20
%22 = load i32, i32* %0
%23 = ashr i32 %22, 19
%24 = shl i32 %18, 13
%25 = or i32 %23, %24
%26 = tail call i32 @_mm256_set_epi32(i32 %6, i32 %11, i32 %16, i32 %13, i32 %21, i32 %18, i32 %25, i32 %22)
%27 = tail call i32 @_mm256_srlv_epi32(i32 %26, i32 %4)
%28 = tail call i32 @_mm256_and_si256(i32 %27, i32 %3)
%29 = tail call i32 @_mm256_storeu_si256(i32* %1, i32 %28)
%30 = getelementptr inbounds i32, i32* %1, i64 8
%31 = tail call i32 @_mm256_set_epi32(i32 0, i32 10, i32 0, i32 4, i32 0, i32 0, i32 11, i32 0)
%32 = getelementptr inbounds i32, i32* %0, i64 8
%33 = load i32, i32* %32
%34 = ashr i32 %33, 29
%35 = getelementptr inbounds i32, i32* %0, i64 9
%36 = load i32, i32* %35
%37 = shl i32 %36, 3
%38 = or i32 %37, %34
%39 = getelementptr inbounds i32, i32* %0, i64 7
%40 = load i32, i32* %39
%41 = ashr i32 %40, 23
%42 = shl i32 %33, 9
%43 = or i32 %41, %42
%44 = getelementptr inbounds i32, i32* %0, i64 6
%45 = load i32, i32* %44
%46 = ashr i32 %45, 17
%47 = shl i32 %40, 15
%48 = or i32 %46, %47
%49 = getelementptr inbounds i32, i32* %0, i64 5
%50 = load i32, i32* %49
%51 = ashr i32 %50, 30
%52 = shl i32 %45, 2
%53 = or i32 %51, %52
%54 = load i32, i32* %5
%55 = ashr i32 %54, 24
%56 = shl i32 %50, 8
%57 = or i32 %55, %56
%58 = tail call i32 @_mm256_set_epi32(i32 %38, i32 %33, i32 %43, i32 %40, i32 %48, i32 %53, i32 %50, i32 %57)
%59 = tail call i32 @_mm256_srlv_epi32(i32 %58, i32 %31)
%60 = tail call i32 @_mm256_and_si256(i32 %59, i32 %3)
%61 = tail call i32 @_mm256_storeu_si256(i32* %30, i32 %60)
%62 = getelementptr inbounds i32, i32* %1, i64 16
%63 = tail call i32 @_mm256_set_epi32(i32 0, i32 2, i32 0, i32 0, i32 9, i32 0, i32 3, i32 0)
%64 = getelementptr inbounds i32, i32* %0, i64 13
%65 = load i32, i32* %64
%66 = ashr i32 %65, 21
%67 = getelementptr inbounds i32, i32* %0, i64 14
%68 = load i32, i32* %67
%69 = shl i32 %68, 11
%70 = or i32 %69, %66
%71 = getelementptr inbounds i32, i32* %0, i64 12
%72 = load i32, i32* %71
%73 = ashr i32 %72, 15
%74 = shl i32 %65, 17
%75 = or i32 %73, %74
%76 = getelementptr inbounds i32, i32* %0, i64 11
%77 = load i32, i32* %76
%78 = ashr i32 %77, 28
%79 = shl i32 %72, 4
%80 = or i32 %78, %79
%81 = getelementptr inbounds i32, i32* %0, i64 10
%82 = load i32, i32* %81
%83 = ashr i32 %82, 22
%84 = shl i32 %77, 10
%85 = or i32 %83, %84
%86 = load i32, i32* %35
%87 = ashr i32 %86, 16
%88 = shl i32 %82, 16
%89 = or i32 %87, %88
%90 = tail call i32 @_mm256_set_epi32(i32 %70, i32 %65, i32 %75, i32 %80, i32 %77, i32 %85, i32 %82, i32 %89)
%91 = tail call i32 @_mm256_srlv_epi32(i32 %90, i32 %63)
%92 = tail call i32 @_mm256_and_si256(i32 %91, i32 %3)
%93 = tail call i32 @_mm256_storeu_si256(i32* %62, i32 %92)
%94 = getelementptr inbounds i32, i32* %1, i64 24
%95 = tail call i32 @_mm256_set_epi32(i32 13, i32 0, i32 7, i32 0, i32 1, i32 0, i32 0, i32 8)
%96 = getelementptr inbounds i32, i32* %0, i64 18
%97 = load i32, i32* %96
%98 = getelementptr inbounds i32, i32* %0, i64 17
%99 = load i32, i32* %98
%100 = ashr i32 %99, 26
%101 = shl i32 %97, 6
%102 = or i32 %100, %101
%103 = getelementptr inbounds i32, i32* %0, i64 16
%104 = load i32, i32* %103
%105 = ashr i32 %104, 20
%106 = shl i32 %99, 12
%107 = or i32 %105, %106
%108 = getelementptr inbounds i32, i32* %0, i64 15
%109 = load i32, i32* %108
%110 = ashr i32 %109, 14
%111 = shl i32 %104, 18
%112 = or i32 %110, %111
%113 = load i32, i32* %67
%114 = ashr i32 %113, 27
%115 = shl i32 %109, 5
%116 = or i32 %114, %115
%117 = tail call i32 @_mm256_set_epi32(i32 %97, i32 %102, i32 %99, i32 %107, i32 %104, i32 %112, i32 %116, i32 %113)
%118 = tail call i32 @_mm256_srlv_epi32(i32 %117, i32 %95)
%119 = tail call i32 @_mm256_and_si256(i32 %118, i32 %3)
%120 = tail call i32 @_mm256_storeu_si256(i32* %94, i32 %119)
%121 = getelementptr inbounds i32, i32* %0, i64 19
ret i32* %121
}