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


x86 assembly (clang, -O0):
<unpack26_32_avx2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x3ffffff,-0x14(%rbp)
mov    -0x14(%rbp),%edi
call   1050 <_mm256_set1_epi32@plt>
mov    %eax,-0x20(%rbp)
xor    %r9d,%r9d
mov    $0x2,%edx
mov    %r9d,%edi
mov    %r9d,%esi
mov    %r9d,%ecx
mov    %r9d,%r8d
movl   $0x0,(%rsp)
movl   $0x0,0x8(%rsp)
call   1070 <_mm256_set_epi32@plt>
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    0x14(%rax),%edi
sar    $0x16,%edi
mov    -0x8(%rbp),%rax
mov    0x18(%rax),%eax
shl    $0xa,%eax
or     %eax,%edi
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%esi
sar    $0x1c,%esi
mov    -0x8(%rbp),%rax
mov    0x14(%rax),%eax
shl    $0x4,%eax
or     %eax,%esi
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%edx
mov    -0x8(%rbp),%rax
mov    0xc(%rax),%ecx
sar    $0x8,%ecx
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%eax
shl    $0x18,%eax
or     %eax,%ecx
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%r8d
sar    $0xe,%r8d
mov    -0x8(%rbp),%rax
mov    0xc(%rax),%eax
shl    $0x12,%eax
or     %eax,%r8d
mov    -0x8(%rbp),%rax
mov    0x4(%rax),%r9d
sar    $0x14,%r9d
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%eax
shl    $0xc,%eax
or     %eax,%r9d
mov    -0x8(%rbp),%rax
mov    (%rax),%r10d
sar    $0x1a,%r10d
mov    -0x8(%rbp),%rax
mov    0x4(%rax),%eax
shl    $0x6,%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)
mov    $0x6,%edi
xor    %r8d,%r8d
mov    $0x4,%r9d
mov    %r8d,%esi
mov    %r8d,%edx
mov    %r8d,%ecx
movl   $0x0,(%rsp)
movl   $0x0,0x8(%rsp)
call   1070 <_mm256_set_epi32@plt>
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    0x30(%rax),%edi
mov    -0x8(%rbp),%rax
mov    0x2c(%rax),%esi
sar    $0xc,%esi
mov    -0x8(%rbp),%rax
mov    0x30(%rax),%eax
shl    $0x14,%eax
or     %eax,%esi
mov    -0x8(%rbp),%rax
mov    0x28(%rax),%edx
sar    $0x12,%edx
mov    -0x8(%rbp),%rax
mov    0x2c(%rax),%eax
shl    $0xe,%eax
or     %eax,%edx
mov    -0x8(%rbp),%rax
mov    0x24(%rax),%ecx
sar    $0x18,%ecx
mov    -0x8(%rbp),%rax
mov    0x28(%rax),%eax
shl    $0x8,%eax
or     %eax,%ecx
mov    -0x8(%rbp),%rax
mov    0x20(%rax),%r8d
sar    $0x1e,%r8d
mov    -0x8(%rbp),%rax
mov    0x24(%rax),%eax
shl    $0x2,%eax
or     %eax,%r8d
mov    -0x8(%rbp),%rax
mov    0x20(%rax),%r9d
mov    -0x8(%rbp),%rax
mov    0x1c(%rax),%r10d
sar    $0xa,%r10d
mov    -0x8(%rbp),%rax
mov    0x20(%rax),%eax
shl    $0x16,%eax
or     %eax,%r10d
mov    -0x8(%rbp),%rax
mov    0x18(%rax),%eax
sar    $0x10,%eax
mov    -0x8(%rbp),%r11
mov    0x1c(%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)
xor    %r9d,%r9d
mov    $0x2,%edx
mov    %r9d,%edi
mov    %r9d,%esi
mov    %r9d,%ecx
mov    %r9d,%r8d
movl   $0x0,(%rsp)
movl   $0x0,0x8(%rsp)
call   1070 <_mm256_set_epi32@plt>
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    0x48(%rax),%edi
sar    $0x16,%edi
mov    -0x8(%rbp),%rax
mov    0x4c(%rax),%eax
shl    $0xa,%eax
or     %eax,%edi
mov    -0x8(%rbp),%rax
mov    0x44(%rax),%esi
sar    $0x1c,%esi
mov    -0x8(%rbp),%rax
mov    0x48(%rax),%eax
shl    $0x4,%eax
or     %eax,%esi
mov    -0x8(%rbp),%rax
mov    0x44(%rax),%edx
mov    -0x8(%rbp),%rax
mov    0x40(%rax),%ecx
sar    $0x8,%ecx
mov    -0x8(%rbp),%rax
mov    0x44(%rax),%eax
shl    $0x18,%eax
or     %eax,%ecx
mov    -0x8(%rbp),%rax
mov    0x3c(%rax),%r8d
sar    $0xe,%r8d
mov    -0x8(%rbp),%rax
mov    0x40(%rax),%eax
shl    $0x12,%eax
or     %eax,%r8d
mov    -0x8(%rbp),%rax
mov    0x38(%rax),%r9d
sar    $0x14,%r9d
mov    -0x8(%rbp),%rax
mov    0x3c(%rax),%eax
shl    $0xc,%eax
or     %eax,%r9d
mov    -0x8(%rbp),%rax
mov    0x34(%rax),%r10d
sar    $0x1a,%r10d
mov    -0x8(%rbp),%rax
mov    0x38(%rax),%eax
shl    $0x6,%eax
or     %eax,%r10d
mov    -0x8(%rbp),%rax
mov    0x34(%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    $0x6,%edi
xor    %r8d,%r8d
mov    $0x4,%r9d
mov    %r8d,%esi
mov    %r8d,%edx
mov    %r8d,%ecx
movl   $0x0,(%rsp)
movl   $0x0,0x8(%rsp)
call   1070 <_mm256_set_epi32@plt>
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    0x64(%rax),%edi
mov    -0x8(%rbp),%rax
mov    0x60(%rax),%esi
sar    $0xc,%esi
mov    -0x8(%rbp),%rax
mov    0x64(%rax),%eax
shl    $0x14,%eax
or     %eax,%esi
mov    -0x8(%rbp),%rax
mov    0x5c(%rax),%edx
sar    $0x12,%edx
mov    -0x8(%rbp),%rax
mov    0x60(%rax),%eax
shl    $0xe,%eax
or     %eax,%edx
mov    -0x8(%rbp),%rax
mov    0x58(%rax),%ecx
sar    $0x18,%ecx
mov    -0x8(%rbp),%rax
mov    0x5c(%rax),%eax
shl    $0x8,%eax
or     %eax,%ecx
mov    -0x8(%rbp),%rax
mov    0x54(%rax),%r8d
sar    $0x1e,%r8d
mov    -0x8(%rbp),%rax
mov    0x58(%rax),%eax
shl    $0x2,%eax
or     %eax,%r8d
mov    -0x8(%rbp),%rax
mov    0x54(%rax),%r9d
mov    -0x8(%rbp),%rax
mov    0x50(%rax),%r10d
sar    $0xa,%r10d
mov    -0x8(%rbp),%rax
mov    0x54(%rax),%eax
shl    $0x16,%eax
or     %eax,%r10d
mov    -0x8(%rbp),%rax
mov    0x4c(%rax),%eax
sar    $0x10,%eax
mov    -0x8(%rbp),%r11
mov    0x50(%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    -0x8(%rbp),%rax
add    $0x68,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<unpack26_32_avx2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%r13
mov    %rdi,%r15
mov    $0x3ffffff,%edi
call   1050 <_mm256_set1_epi32@plt>
mov    %eax,%r14d
xor    %edi,%edi
xor    %esi,%esi
mov    $0x2,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
push   $0x0
push   $0x0
call   1070 <_mm256_set_epi32@plt>
add    $0x10,%rsp
mov    %eax,%r12d
mov    0x14(%r15),%esi
mov    %esi,%eax
sar    $0x16,%eax
mov    0x18(%r15),%edi
shl    $0xa,%edi
or     %eax,%edi
mov    0x10(%r15),%edx
mov    %edx,%eax
sar    $0x1c,%eax
shl    $0x4,%esi
or     %eax,%esi
mov    0xc(%r15),%r8d
mov    %r8d,%eax
sar    $0x8,%eax
mov    %edx,%ecx
shl    $0x18,%ecx
or     %eax,%ecx
mov    0x8(%r15),%r9d
mov    %r9d,%eax
sar    $0xe,%eax
shl    $0x12,%r8d
or     %eax,%r8d
mov    (%r15),%r10d
mov    0x4(%r15),%ebp
mov    %ebp,%eax
sar    $0x14,%eax
shl    $0xc,%r9d
or     %eax,%r9d
mov    %r10d,%eax
sar    $0x1a,%eax
shl    $0x6,%ebp
or     %eax,%ebp
push   %r10
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    %r14d,%esi
mov    %r14d,0xc(%rsp)
call   1040 <_mm256_and_si256@plt>
mov    %r13,0x10(%rsp)
mov    %r13,%rdi
mov    %eax,%esi
call   1030 <_mm256_storeu_si256@plt>
lea    0x20(%r13),%r12
mov    $0x6,%edi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
mov    $0x4,%r9d
push   $0x0
push   $0x0
call   1070 <_mm256_set_epi32@plt>
add    $0x10,%rsp
mov    %eax,%r13d
mov    0x30(%r15),%edi
mov    0x2c(%r15),%edx
mov    %edx,%eax
sar    $0xc,%eax
mov    %edi,%esi
shl    $0x14,%esi
or     %eax,%esi
mov    0x28(%r15),%ecx
mov    %ecx,%eax
sar    $0x12,%eax
shl    $0xe,%edx
or     %eax,%edx
mov    0x24(%r15),%r8d
mov    %r8d,%eax
sar    $0x18,%eax
shl    $0x8,%ecx
or     %eax,%ecx
mov    0x1c(%r15),%eax
mov    0x20(%r15),%r9d
mov    %r9d,%ebp
sar    $0x1e,%ebp
shl    $0x2,%r8d
or     %ebp,%r8d
mov    %eax,%ebp
sar    $0xa,%ebp
mov    %r9d,%ebx
shl    $0x16,%ebx
or     %ebp,%ebx
movswl 0x1a(%r15),%ebp
shl    $0x10,%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    %r14d,%esi
call   1040 <_mm256_and_si256@plt>
mov    %r12,%rdi
mov    %eax,%esi
call   1030 <_mm256_storeu_si256@plt>
mov    0x10(%rsp),%r14
lea    0x40(%r14),%r12
xor    %edi,%edi
xor    %esi,%esi
mov    $0x2,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
push   $0x0
push   $0x0
call   1070 <_mm256_set_epi32@plt>
add    $0x10,%rsp
mov    %eax,%r13d
mov    0x48(%r15),%esi
mov    %esi,%eax
sar    $0x16,%eax
mov    0x4c(%r15),%edi
shl    $0xa,%edi
or     %eax,%edi
mov    0x44(%r15),%edx
mov    %edx,%eax
sar    $0x1c,%eax
shl    $0x4,%esi
or     %eax,%esi
mov    0x40(%r15),%r8d
mov    %r8d,%eax
sar    $0x8,%eax
mov    %edx,%ecx
shl    $0x18,%ecx
or     %eax,%ecx
mov    0x3c(%r15),%r9d
mov    %r9d,%eax
sar    $0xe,%eax
shl    $0x12,%r8d
or     %eax,%r8d
mov    0x34(%r15),%eax
mov    0x38(%r15),%ebx
mov    %ebx,%ebp
sar    $0x14,%ebp
shl    $0xc,%r9d
or     %ebp,%r9d
mov    %eax,%ebp
sar    $0x1a,%ebp
shl    $0x6,%ebx
or     %ebp,%ebx
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    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    $0x6,%edi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
mov    $0x4,%r9d
push   $0x0
push   $0x0
call   1070 <_mm256_set_epi32@plt>
add    $0x10,%rsp
mov    %eax,%r12d
mov    0x64(%r15),%edi
mov    0x60(%r15),%edx
mov    %edx,%eax
sar    $0xc,%eax
mov    %edi,%esi
shl    $0x14,%esi
or     %eax,%esi
mov    0x5c(%r15),%ecx
mov    %ecx,%eax
sar    $0x12,%eax
shl    $0xe,%edx
or     %eax,%edx
mov    0x58(%r15),%r8d
mov    %r8d,%eax
sar    $0x18,%eax
shl    $0x8,%ecx
or     %eax,%ecx
mov    0x50(%r15),%eax
mov    0x54(%r15),%r9d
mov    %r9d,%ebx
sar    $0x1e,%ebx
shl    $0x2,%r8d
or     %ebx,%r8d
mov    %eax,%ebx
sar    $0xa,%ebx
mov    %r9d,%ebp
shl    $0x16,%ebp
or     %ebx,%ebp
movswl 0x4e(%r15),%ebx
shl    $0x10,%eax
or     %ebx,%eax
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    %r13d,%esi
call   1040 <_mm256_and_si256@plt>
mov    %r14,%rdi
mov    %eax,%esi
call   1030 <_mm256_storeu_si256@plt>
add    $0x68,%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* @unpack26_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 67108863, 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 0, i32 0, i32 2, i32 0, i32 0, i32 0, i32 0, i32 0)
store i32 %12, i32* %6
%13 = load i32*, i32** %3
%14 = getelementptr inbounds i32, i32* %13, i64 5
%15 = load i32, i32* %14
%16 = ashr i32 %15, 22
%17 = load i32*, i32** %3
%18 = getelementptr inbounds i32, i32* %17, i64 6
%19 = load i32, i32* %18
%20 = shl i32 %19, 10
%21 = or i32 %16, %20
%22 = load i32*, i32** %3
%23 = getelementptr inbounds i32, i32* %22, i64 4
%24 = load i32, i32* %23
%25 = ashr i32 %24, 28
%26 = load i32*, i32** %3
%27 = getelementptr inbounds i32, i32* %26, i64 5
%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 4
%33 = load i32, i32* %32
%34 = load i32*, i32** %3
%35 = getelementptr inbounds i32, i32* %34, i64 3
%36 = load i32, i32* %35
%37 = ashr i32 %36, 8
%38 = load i32*, i32** %3
%39 = getelementptr inbounds i32, i32* %38, i64 4
%40 = load i32, i32* %39
%41 = shl i32 %40, 24
%42 = or i32 %37, %41
%43 = load i32*, i32** %3
%44 = getelementptr inbounds i32, i32* %43, i64 2
%45 = load i32, i32* %44
%46 = ashr i32 %45, 14
%47 = load i32*, i32** %3
%48 = getelementptr inbounds i32, i32* %47, i64 3
%49 = load i32, i32* %48
%50 = shl i32 %49, 18
%51 = or i32 %46, %50
%52 = load i32*, i32** %3
%53 = getelementptr inbounds i32, i32* %52, i64 1
%54 = load i32, i32* %53
%55 = ashr i32 %54, 20
%56 = load i32*, i32** %3
%57 = getelementptr inbounds i32, i32* %56, i64 2
%58 = load i32, i32* %57
%59 = shl i32 %58, 12
%60 = or i32 %55, %59
%61 = load i32*, i32** %3
%62 = getelementptr inbounds i32, i32* %61, i64 0
%63 = load i32, i32* %62
%64 = ashr i32 %63, 26
%65 = load i32*, i32** %3
%66 = getelementptr inbounds i32, i32* %65, i64 1
%67 = load i32, i32* %66
%68 = shl i32 %67, 6
%69 = or i32 %64, %68
%70 = load i32*, i32** %3
%71 = getelementptr inbounds i32, i32* %70, i64 0
%72 = load i32, i32* %71
%73 = call i32 @_mm256_set_epi32(i32 %21, i32 %30, i32 %33, i32 %42, i32 %51, i32 %60, i32 %69, i32 %72)
store i32 %73, i32* %7
%74 = load i32, i32* %7
%75 = load i32, i32* %6
%76 = call i32 @_mm256_srlv_epi32(i32 %74, i32 %75)
%77 = load i32, i32* %8
%78 = call i32 @_mm256_and_si256(i32 %76, i32 %77)
store i32 %78, i32* %9
%79 = load i32*, i32** %4
%80 = load i32, i32* %9
%81 = call i32 @_mm256_storeu_si256(i32* %79, i32 %80)
%82 = load i32*, i32** %4
%83 = getelementptr inbounds i32, i32* %82, i64 8
store i32* %83, i32** %4
%84 = call i32 @_mm256_set_epi32(i32 6, i32 0, i32 0, i32 0, i32 0, i32 4, i32 0, i32 0)
store i32 %84, i32* %6
%85 = load i32*, i32** %3
%86 = getelementptr inbounds i32, i32* %85, i64 12
%87 = load i32, i32* %86
%88 = load i32*, i32** %3
%89 = getelementptr inbounds i32, i32* %88, i64 11
%90 = load i32, i32* %89
%91 = ashr i32 %90, 12
%92 = load i32*, i32** %3
%93 = getelementptr inbounds i32, i32* %92, i64 12
%94 = load i32, i32* %93
%95 = shl i32 %94, 20
%96 = or i32 %91, %95
%97 = load i32*, i32** %3
%98 = getelementptr inbounds i32, i32* %97, i64 10
%99 = load i32, i32* %98
%100 = ashr i32 %99, 18
%101 = load i32*, i32** %3
%102 = getelementptr inbounds i32, i32* %101, i64 11
%103 = load i32, i32* %102
%104 = shl i32 %103, 14
%105 = or i32 %100, %104
%106 = load i32*, i32** %3
%107 = getelementptr inbounds i32, i32* %106, i64 9
%108 = load i32, i32* %107
%109 = ashr i32 %108, 24
%110 = load i32*, i32** %3
%111 = getelementptr inbounds i32, i32* %110, i64 10
%112 = load i32, i32* %111
%113 = shl i32 %112, 8
%114 = or i32 %109, %113
%115 = load i32*, i32** %3
%116 = getelementptr inbounds i32, i32* %115, i64 8
%117 = load i32, i32* %116
%118 = ashr i32 %117, 30
%119 = load i32*, i32** %3
%120 = getelementptr inbounds i32, i32* %119, i64 9
%121 = load i32, i32* %120
%122 = shl i32 %121, 2
%123 = or i32 %118, %122
%124 = load i32*, i32** %3
%125 = getelementptr inbounds i32, i32* %124, i64 8
%126 = load i32, i32* %125
%127 = load i32*, i32** %3
%128 = getelementptr inbounds i32, i32* %127, i64 7
%129 = load i32, i32* %128
%130 = ashr i32 %129, 10
%131 = load i32*, i32** %3
%132 = getelementptr inbounds i32, i32* %131, i64 8
%133 = load i32, i32* %132
%134 = shl i32 %133, 22
%135 = or i32 %130, %134
%136 = load i32*, i32** %3
%137 = getelementptr inbounds i32, i32* %136, i64 6
%138 = load i32, i32* %137
%139 = ashr i32 %138, 16
%140 = load i32*, i32** %3
%141 = getelementptr inbounds i32, i32* %140, i64 7
%142 = load i32, i32* %141
%143 = shl i32 %142, 16
%144 = or i32 %139, %143
%145 = call i32 @_mm256_set_epi32(i32 %87, i32 %96, i32 %105, i32 %114, i32 %123, i32 %126, i32 %135, i32 %144)
store i32 %145, i32* %7
%146 = load i32, i32* %7
%147 = load i32, i32* %6
%148 = call i32 @_mm256_srlv_epi32(i32 %146, i32 %147)
%149 = load i32, i32* %8
%150 = call i32 @_mm256_and_si256(i32 %148, i32 %149)
store i32 %150, i32* %9
%151 = load i32*, i32** %4
%152 = load i32, i32* %9
%153 = call i32 @_mm256_storeu_si256(i32* %151, i32 %152)
%154 = load i32*, i32** %4
%155 = getelementptr inbounds i32, i32* %154, i64 8
store i32* %155, i32** %4
%156 = call i32 @_mm256_set_epi32(i32 0, i32 0, i32 2, i32 0, i32 0, i32 0, i32 0, i32 0)
store i32 %156, i32* %6
%157 = load i32*, i32** %3
%158 = getelementptr inbounds i32, i32* %157, i64 18
%159 = load i32, i32* %158
%160 = ashr i32 %159, 22
%161 = load i32*, i32** %3
%162 = getelementptr inbounds i32, i32* %161, i64 19
%163 = load i32, i32* %162
%164 = shl i32 %163, 10
%165 = or i32 %160, %164
%166 = load i32*, i32** %3
%167 = getelementptr inbounds i32, i32* %166, i64 17
%168 = load i32, i32* %167
%169 = ashr i32 %168, 28
%170 = load i32*, i32** %3
%171 = getelementptr inbounds i32, i32* %170, i64 18
%172 = load i32, i32* %171
%173 = shl i32 %172, 4
%174 = or i32 %169, %173
%175 = load i32*, i32** %3
%176 = getelementptr inbounds i32, i32* %175, i64 17
%177 = load i32, i32* %176
%178 = load i32*, i32** %3
%179 = getelementptr inbounds i32, i32* %178, i64 16
%180 = load i32, i32* %179
%181 = ashr i32 %180, 8
%182 = load i32*, i32** %3
%183 = getelementptr inbounds i32, i32* %182, i64 17
%184 = load i32, i32* %183
%185 = shl i32 %184, 24
%186 = or i32 %181, %185
%187 = load i32*, i32** %3
%188 = getelementptr inbounds i32, i32* %187, i64 15
%189 = load i32, i32* %188
%190 = ashr i32 %189, 14
%191 = load i32*, i32** %3
%192 = getelementptr inbounds i32, i32* %191, i64 16
%193 = load i32, i32* %192
%194 = shl i32 %193, 18
%195 = or i32 %190, %194
%196 = load i32*, i32** %3
%197 = getelementptr inbounds i32, i32* %196, i64 14
%198 = load i32, i32* %197
%199 = ashr i32 %198, 20
%200 = load i32*, i32** %3
%201 = getelementptr inbounds i32, i32* %200, i64 15
%202 = load i32, i32* %201
%203 = shl i32 %202, 12
%204 = or i32 %199, %203
%205 = load i32*, i32** %3
%206 = getelementptr inbounds i32, i32* %205, i64 13
%207 = load i32, i32* %206
%208 = ashr i32 %207, 26
%209 = load i32*, i32** %3
%210 = getelementptr inbounds i32, i32* %209, i64 14
%211 = load i32, i32* %210
%212 = shl i32 %211, 6
%213 = or i32 %208, %212
%214 = load i32*, i32** %3
%215 = getelementptr inbounds i32, i32* %214, i64 13
%216 = load i32, i32* %215
%217 = call i32 @_mm256_set_epi32(i32 %165, i32 %174, i32 %177, i32 %186, i32 %195, i32 %204, i32 %213, i32 %216)
store i32 %217, i32* %7
%218 = load i32, i32* %7
%219 = load i32, i32* %6
%220 = call i32 @_mm256_srlv_epi32(i32 %218, i32 %219)
%221 = load i32, i32* %8
%222 = call i32 @_mm256_and_si256(i32 %220, i32 %221)
store i32 %222, i32* %9
%223 = load i32*, i32** %4
%224 = load i32, i32* %9
%225 = call i32 @_mm256_storeu_si256(i32* %223, i32 %224)
%226 = load i32*, i32** %4
%227 = getelementptr inbounds i32, i32* %226, i64 8
store i32* %227, i32** %4
%228 = call i32 @_mm256_set_epi32(i32 6, i32 0, i32 0, i32 0, i32 0, i32 4, i32 0, i32 0)
store i32 %228, i32* %6
%229 = load i32*, i32** %3
%230 = getelementptr inbounds i32, i32* %229, i64 25
%231 = load i32, i32* %230
%232 = load i32*, i32** %3
%233 = getelementptr inbounds i32, i32* %232, i64 24
%234 = load i32, i32* %233
%235 = ashr i32 %234, 12
%236 = load i32*, i32** %3
%237 = getelementptr inbounds i32, i32* %236, i64 25
%238 = load i32, i32* %237
%239 = shl i32 %238, 20
%240 = or i32 %235, %239
%241 = load i32*, i32** %3
%242 = getelementptr inbounds i32, i32* %241, i64 23
%243 = load i32, i32* %242
%244 = ashr i32 %243, 18
%245 = load i32*, i32** %3
%246 = getelementptr inbounds i32, i32* %245, i64 24
%247 = load i32, i32* %246
%248 = shl i32 %247, 14
%249 = or i32 %244, %248
%250 = load i32*, i32** %3
%251 = getelementptr inbounds i32, i32* %250, i64 22
%252 = load i32, i32* %251
%253 = ashr i32 %252, 24
%254 = load i32*, i32** %3
%255 = getelementptr inbounds i32, i32* %254, i64 23
%256 = load i32, i32* %255
%257 = shl i32 %256, 8
%258 = or i32 %253, %257
%259 = load i32*, i32** %3
%260 = getelementptr inbounds i32, i32* %259, i64 21
%261 = load i32, i32* %260
%262 = ashr i32 %261, 30
%263 = load i32*, i32** %3
%264 = getelementptr inbounds i32, i32* %263, i64 22
%265 = load i32, i32* %264
%266 = shl i32 %265, 2
%267 = or i32 %262, %266
%268 = load i32*, i32** %3
%269 = getelementptr inbounds i32, i32* %268, i64 21
%270 = load i32, i32* %269
%271 = load i32*, i32** %3
%272 = getelementptr inbounds i32, i32* %271, i64 20
%273 = load i32, i32* %272
%274 = ashr i32 %273, 10
%275 = load i32*, i32** %3
%276 = getelementptr inbounds i32, i32* %275, i64 21
%277 = load i32, i32* %276
%278 = shl i32 %277, 22
%279 = or i32 %274, %278
%280 = load i32*, i32** %3
%281 = getelementptr inbounds i32, i32* %280, i64 19
%282 = load i32, i32* %281
%283 = ashr i32 %282, 16
%284 = load i32*, i32** %3
%285 = getelementptr inbounds i32, i32* %284, i64 20
%286 = load i32, i32* %285
%287 = shl i32 %286, 16
%288 = or i32 %283, %287
%289 = call i32 @_mm256_set_epi32(i32 %231, i32 %240, i32 %249, i32 %258, i32 %267, i32 %270, i32 %279, i32 %288)
store i32 %289, i32* %7
%290 = load i32, i32* %7
%291 = load i32, i32* %6
%292 = call i32 @_mm256_srlv_epi32(i32 %290, i32 %291)
%293 = load i32, i32* %8
%294 = call i32 @_mm256_and_si256(i32 %292, i32 %293)
store i32 %294, i32* %9
%295 = load i32*, i32** %4
%296 = load i32, i32* %9
%297 = call i32 @_mm256_storeu_si256(i32* %295, i32 %296)
%298 = load i32*, i32** %4
%299 = getelementptr inbounds i32, i32* %298, i64 8
store i32* %299, i32** %4
%300 = load i32*, i32** %3
%301 = getelementptr inbounds i32, i32* %300, i64 26
store i32* %301, i32** %3
%302 = load i32*, i32** %3
ret i32* %302
}

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