#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 *unpack16_32_avx2(const uint32_t *in, uint32_t *out) {
  uint32_t mask = 0xffff;
  __m256i reg_shifts, reg_inls, reg_masks;
  __m256i results;
  reg_masks = _mm256_set1_epi32(mask);
  reg_shifts = _mm256_set_epi32(16, 0, 16, 0, 16, 0, 16, 0);
  reg_inls =
      _mm256_set_epi32(in[3], in[3], in[2], in[2], in[1], in[1], 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(16, 0, 16, 0, 16, 0, 16, 0);
  reg_inls =
      _mm256_set_epi32(in[7], in[7], in[6], in[6], in[5], in[5], in[4], in[4]);
  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(16, 0, 16, 0, 16, 0, 16, 0);
  reg_inls = _mm256_set_epi32(in[11], in[11], in[10], in[10], in[9], in[9],
                              in[8], in[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(16, 0, 16, 0, 16, 0, 16, 0);
  reg_inls = _mm256_set_epi32(in[15], in[15], in[14], in[14], in[13], in[13],
                              in[12], in[12]);
  results =
      _mm256_and_si256(_mm256_srlv_epi32(reg_inls, reg_shifts), reg_masks);
  _mm256_storeu_si256((__m256i *)(out), results);
  out += 8;
  in += 16;
  return in;
}


x86 assembly (clang, -O0):
<unpack16_32_avx2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0xffff,-0x14(%rbp)
mov    -0x14(%rbp),%edi
call   1050 <_mm256_set1_epi32@plt>
mov    %eax,-0x20(%rbp)
mov    $0x10,%r8d
xor    %r9d,%r9d
mov    %r8d,%edi
mov    %r9d,%esi
mov    %r8d,%edx
mov    %r9d,%ecx
movl   $0x10,(%rsp)
movl   $0x0,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
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%ecx
mov    -0x8(%rbp),%rax
mov    0x4(%rax),%r8d
mov    -0x8(%rbp),%rax
mov    0x4(%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    $0x10,%r8d
xor    %r9d,%r9d
mov    %r8d,%edi
mov    %r9d,%esi
mov    %r8d,%edx
mov    %r9d,%ecx
movl   $0x10,(%rsp)
movl   $0x0,0x8(%rsp)
call   1070 <_mm256_set_epi32@plt>
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    0x1c(%rax),%edi
mov    -0x8(%rbp),%rax
mov    0x1c(%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
mov    -0x8(%rbp),%rax
mov    0x14(%rax),%r9d
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%r10d
mov    -0x8(%rbp),%rax
mov    0x10(%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    $0x10,%r8d
xor    %r9d,%r9d
mov    %r8d,%edi
mov    %r9d,%esi
mov    %r8d,%edx
mov    %r9d,%ecx
movl   $0x10,(%rsp)
movl   $0x0,0x8(%rsp)
call   1070 <_mm256_set_epi32@plt>
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    0x2c(%rax),%edi
mov    -0x8(%rbp),%rax
mov    0x2c(%rax),%esi
mov    -0x8(%rbp),%rax
mov    0x28(%rax),%edx
mov    -0x8(%rbp),%rax
mov    0x28(%rax),%ecx
mov    -0x8(%rbp),%rax
mov    0x24(%rax),%r8d
mov    -0x8(%rbp),%rax
mov    0x24(%rax),%r9d
mov    -0x8(%rbp),%rax
mov    0x20(%rax),%r10d
mov    -0x8(%rbp),%rax
mov    0x20(%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    $0x10,%r8d
xor    %r9d,%r9d
mov    %r8d,%edi
mov    %r9d,%esi
mov    %r8d,%edx
mov    %r9d,%ecx
movl   $0x10,(%rsp)
movl   $0x0,0x8(%rsp)
call   1070 <_mm256_set_epi32@plt>
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    0x3c(%rax),%edi
mov    -0x8(%rbp),%rax
mov    0x3c(%rax),%esi
mov    -0x8(%rbp),%rax
mov    0x38(%rax),%edx
mov    -0x8(%rbp),%rax
mov    0x38(%rax),%ecx
mov    -0x8(%rbp),%rax
mov    0x34(%rax),%r8d
mov    -0x8(%rbp),%rax
mov    0x34(%rax),%r9d
mov    -0x8(%rbp),%rax
mov    0x30(%rax),%r10d
mov    -0x8(%rbp),%rax
mov    0x30(%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    $0x40,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<unpack16_32_avx2>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %rsi,%r14
mov    %rdi,%rbx
mov    $0xffff,%edi
call   1050 <_mm256_set1_epi32@plt>
mov    %eax,%r15d
mov    $0x10,%edi
xor    %esi,%esi
mov    $0x10,%edx
xor    %ecx,%ecx
mov    $0x10,%r8d
xor    %r9d,%r9d
push   $0x0
push   $0x10
call   1070 <_mm256_set_epi32@plt>
add    $0x10,%rsp
mov    %eax,%ebp
mov    0xc(%rbx),%edi
mov    0x8(%rbx),%ecx
mov    (%rbx),%eax
mov    0x4(%rbx),%r8d
mov    %edi,%esi
mov    %ecx,%edx
mov    %r8d,%r9d
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    %r14,%rdi
mov    %eax,%esi
call   1030 <_mm256_storeu_si256@plt>
lea    0x20(%r14),%r12
mov    $0x10,%edi
xor    %esi,%esi
mov    $0x10,%edx
xor    %ecx,%ecx
mov    $0x10,%r8d
xor    %r9d,%r9d
push   $0x0
push   $0x10
call   1070 <_mm256_set_epi32@plt>
add    $0x10,%rsp
mov    %eax,%ebp
mov    0x1c(%rbx),%edi
mov    0x18(%rbx),%ecx
mov    0x10(%rbx),%eax
mov    0x14(%rbx),%r8d
mov    %edi,%esi
mov    %ecx,%edx
mov    %r8d,%r9d
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    $0x10,%edi
xor    %esi,%esi
mov    $0x10,%edx
xor    %ecx,%ecx
mov    $0x10,%r8d
xor    %r9d,%r9d
push   $0x0
push   $0x10
call   1070 <_mm256_set_epi32@plt>
add    $0x10,%rsp
mov    %eax,%ebp
mov    0x2c(%rbx),%edi
mov    0x28(%rbx),%ecx
mov    0x20(%rbx),%eax
mov    0x24(%rbx),%r8d
mov    %edi,%esi
mov    %ecx,%edx
mov    %r8d,%r9d
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    $0x10,%edi
xor    %esi,%esi
mov    $0x10,%edx
xor    %ecx,%ecx
mov    $0x10,%r8d
xor    %r9d,%r9d
push   $0x0
push   $0x10
call   1070 <_mm256_set_epi32@plt>
add    $0x10,%rsp
mov    %eax,%ebp
mov    0x3c(%rbx),%edi
mov    0x38(%rbx),%ecx
mov    0x30(%rbx),%eax
mov    0x34(%rbx),%r8d
mov    %edi,%esi
mov    %ecx,%edx
mov    %r8d,%r9d
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    %r14,%rdi
mov    %eax,%esi
call   1030 <_mm256_storeu_si256@plt>
add    $0x40,%rbx
mov    %rbx,%rax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32* @unpack16_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 65535, 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 16, i32 0, i32 16, i32 0, i32 16, i32 0, i32 16, i32 0)
store i32 %12, i32* %6
%13 = load i32*, i32** %3
%14 = getelementptr inbounds i32, i32* %13, i64 3
%15 = load i32, i32* %14
%16 = load i32*, i32** %3
%17 = getelementptr inbounds i32, i32* %16, i64 3
%18 = load i32, i32* %17
%19 = load i32*, i32** %3
%20 = getelementptr inbounds i32, i32* %19, i64 2
%21 = load i32, i32* %20
%22 = load i32*, i32** %3
%23 = getelementptr inbounds i32, i32* %22, i64 2
%24 = load i32, i32* %23
%25 = load i32*, i32** %3
%26 = getelementptr inbounds i32, i32* %25, i64 1
%27 = load i32, i32* %26
%28 = load i32*, i32** %3
%29 = getelementptr inbounds i32, i32* %28, i64 1
%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 16, i32 0, i32 16, i32 0, i32 16, i32 0, i32 16, i32 0)
store i32 %48, i32* %6
%49 = load i32*, i32** %3
%50 = getelementptr inbounds i32, i32* %49, i64 7
%51 = load i32, i32* %50
%52 = load i32*, i32** %3
%53 = getelementptr inbounds i32, i32* %52, i64 7
%54 = load i32, i32* %53
%55 = load i32*, i32** %3
%56 = getelementptr inbounds i32, i32* %55, i64 6
%57 = load i32, i32* %56
%58 = load i32*, i32** %3
%59 = getelementptr inbounds i32, i32* %58, i64 6
%60 = load i32, i32* %59
%61 = load i32*, i32** %3
%62 = getelementptr inbounds i32, i32* %61, i64 5
%63 = load i32, i32* %62
%64 = load i32*, i32** %3
%65 = getelementptr inbounds i32, i32* %64, i64 5
%66 = load i32, i32* %65
%67 = load i32*, i32** %3
%68 = getelementptr inbounds i32, i32* %67, i64 4
%69 = load i32, i32* %68
%70 = load i32*, i32** %3
%71 = getelementptr inbounds i32, i32* %70, i64 4
%72 = load i32, i32* %71
%73 = call i32 @_mm256_set_epi32(i32 %51, i32 %54, i32 %57, i32 %60, i32 %63, i32 %66, 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 16, i32 0, i32 16, i32 0, i32 16, i32 0, i32 16, i32 0)
store i32 %84, i32* %6
%85 = load i32*, i32** %3
%86 = getelementptr inbounds i32, i32* %85, i64 11
%87 = load i32, i32* %86
%88 = load i32*, i32** %3
%89 = getelementptr inbounds i32, i32* %88, i64 11
%90 = load i32, i32* %89
%91 = load i32*, i32** %3
%92 = getelementptr inbounds i32, i32* %91, i64 10
%93 = load i32, i32* %92
%94 = load i32*, i32** %3
%95 = getelementptr inbounds i32, i32* %94, i64 10
%96 = load i32, i32* %95
%97 = load i32*, i32** %3
%98 = getelementptr inbounds i32, i32* %97, i64 9
%99 = load i32, i32* %98
%100 = load i32*, i32** %3
%101 = getelementptr inbounds i32, i32* %100, i64 9
%102 = load i32, i32* %101
%103 = load i32*, i32** %3
%104 = getelementptr inbounds i32, i32* %103, i64 8
%105 = load i32, i32* %104
%106 = load i32*, i32** %3
%107 = getelementptr inbounds i32, i32* %106, i64 8
%108 = load i32, i32* %107
%109 = call i32 @_mm256_set_epi32(i32 %87, i32 %90, i32 %93, i32 %96, i32 %99, i32 %102, i32 %105, i32 %108)
store i32 %109, i32* %7
%110 = load i32, i32* %7
%111 = load i32, i32* %6
%112 = call i32 @_mm256_srlv_epi32(i32 %110, i32 %111)
%113 = load i32, i32* %8
%114 = call i32 @_mm256_and_si256(i32 %112, i32 %113)
store i32 %114, i32* %9
%115 = load i32*, i32** %4
%116 = load i32, i32* %9
%117 = call i32 @_mm256_storeu_si256(i32* %115, i32 %116)
%118 = load i32*, i32** %4
%119 = getelementptr inbounds i32, i32* %118, i64 8
store i32* %119, i32** %4
%120 = call i32 @_mm256_set_epi32(i32 16, i32 0, i32 16, i32 0, i32 16, i32 0, i32 16, i32 0)
store i32 %120, i32* %6
%121 = load i32*, i32** %3
%122 = getelementptr inbounds i32, i32* %121, i64 15
%123 = load i32, i32* %122
%124 = load i32*, i32** %3
%125 = getelementptr inbounds i32, i32* %124, i64 15
%126 = load i32, i32* %125
%127 = load i32*, i32** %3
%128 = getelementptr inbounds i32, i32* %127, i64 14
%129 = load i32, i32* %128
%130 = load i32*, i32** %3
%131 = getelementptr inbounds i32, i32* %130, i64 14
%132 = load i32, i32* %131
%133 = load i32*, i32** %3
%134 = getelementptr inbounds i32, i32* %133, i64 13
%135 = load i32, i32* %134
%136 = load i32*, i32** %3
%137 = getelementptr inbounds i32, i32* %136, i64 13
%138 = load i32, i32* %137
%139 = load i32*, i32** %3
%140 = getelementptr inbounds i32, i32* %139, i64 12
%141 = load i32, i32* %140
%142 = load i32*, i32** %3
%143 = getelementptr inbounds i32, i32* %142, i64 12
%144 = load i32, i32* %143
%145 = call i32 @_mm256_set_epi32(i32 %123, i32 %126, i32 %129, i32 %132, i32 %135, i32 %138, i32 %141, 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 = load i32*, i32** %3
%157 = getelementptr inbounds i32, i32* %156, i64 16
store i32* %157, i32** %3
%158 = load i32*, i32** %3
ret i32* %158
}

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