#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*/ __m128i;

/* Variables and functions */
int _mm_extract_epi32(int /*<<< orphan*/, int);
int iunpackselect1(int /*<<< orphan*/ *, int /*<<< orphan*/ const *, int);
int iunpackselect10(int /*<<< orphan*/ *, int /*<<< orphan*/ const *, int);
int iunpackselect11(int /*<<< orphan*/ *, int /*<<< orphan*/ const *, int);
int iunpackselect12(int /*<<< orphan*/ *, int /*<<< orphan*/ const *, int);
int iunpackselect13(int /*<<< orphan*/ *, int /*<<< orphan*/ const *, int);
int iunpackselect14(int /*<<< orphan*/ *, int /*<<< orphan*/ const *, int);
int iunpackselect15(int /*<<< orphan*/ *, int /*<<< orphan*/ const *, int);
int iunpackselect16(int /*<<< orphan*/ *, int /*<<< orphan*/ const *, int);
int iunpackselect17(int /*<<< orphan*/ *, int /*<<< orphan*/ const *, int);
int iunpackselect18(int /*<<< orphan*/ *, int /*<<< orphan*/ const *, int);
int iunpackselect19(int /*<<< orphan*/ *, int /*<<< orphan*/ const *, int);
int iunpackselect2(int /*<<< orphan*/ *, int /*<<< orphan*/ const *, int);
int iunpackselect20(int /*<<< orphan*/ *, int /*<<< orphan*/ const *, int);
int iunpackselect21(int /*<<< orphan*/ *, int /*<<< orphan*/ const *, int);
int iunpackselect22(int /*<<< orphan*/ *, int /*<<< orphan*/ const *, int);
int iunpackselect23(int /*<<< orphan*/ *, int /*<<< orphan*/ const *, int);
int iunpackselect24(int /*<<< orphan*/ *, int /*<<< orphan*/ const *, int);
int iunpackselect25(int /*<<< orphan*/ *, int /*<<< orphan*/ const *, int);
int iunpackselect26(int /*<<< orphan*/ *, int /*<<< orphan*/ const *, int);
int iunpackselect27(int /*<<< orphan*/ *, int /*<<< orphan*/ const *, int);
int iunpackselect28(int /*<<< orphan*/ *, int /*<<< orphan*/ const *, int);
int iunpackselect29(int /*<<< orphan*/ *, int /*<<< orphan*/ const *, int);
int iunpackselect3(int /*<<< orphan*/ *, int /*<<< orphan*/ const *, int);
int iunpackselect30(int /*<<< orphan*/ *, int /*<<< orphan*/ const *, int);
int iunpackselect31(int /*<<< orphan*/ *, int /*<<< orphan*/ const *, int);
int iunpackselect32(int /*<<< orphan*/ *, int /*<<< orphan*/ const *, int);
int iunpackselect4(int /*<<< orphan*/ *, int /*<<< orphan*/ const *, int);
int iunpackselect5(int /*<<< orphan*/ *, int /*<<< orphan*/ const *, int);
int iunpackselect6(int /*<<< orphan*/ *, int /*<<< orphan*/ const *, int);
int iunpackselect7(int /*<<< orphan*/ *, int /*<<< orphan*/ const *, int);
int iunpackselect8(int /*<<< orphan*/ *, int /*<<< orphan*/ const *, int);
int iunpackselect9(int /*<<< orphan*/ *, int /*<<< orphan*/ const *, int);
uint32_t simdselectd1(__m128i *initOffset, const __m128i *in, uint32_t bit,
                      int slot) {
  slot &= 127;
  switch (bit) {
  case 0:
    return _mm_extract_epi32(*initOffset, 3);
    break;
  case 1:
    return iunpackselect1(initOffset, in, slot);
    break;
  case 2:
    return iunpackselect2(initOffset, in, slot);
    break;
  case 3:
    return iunpackselect3(initOffset, in, slot);
    break;
  case 4:
    return iunpackselect4(initOffset, in, slot);
    break;
  case 5:
    return iunpackselect5(initOffset, in, slot);
    break;
  case 6:
    return iunpackselect6(initOffset, in, slot);
    break;
  case 7:
    return iunpackselect7(initOffset, in, slot);
    break;
  case 8:
    return iunpackselect8(initOffset, in, slot);
    break;
  case 9:
    return iunpackselect9(initOffset, in, slot);
    break;
  case 10:
    return iunpackselect10(initOffset, in, slot);
    break;
  case 11:
    return iunpackselect11(initOffset, in, slot);
    break;
  case 12:
    return iunpackselect12(initOffset, in, slot);
    break;
  case 13:
    return iunpackselect13(initOffset, in, slot);
    break;
  case 14:
    return iunpackselect14(initOffset, in, slot);
    break;
  case 15:
    return iunpackselect15(initOffset, in, slot);
    break;
  case 16:
    return iunpackselect16(initOffset, in, slot);
    break;
  case 17:
    return iunpackselect17(initOffset, in, slot);
    break;
  case 18:
    return iunpackselect18(initOffset, in, slot);
    break;
  case 19:
    return iunpackselect19(initOffset, in, slot);
    break;
  case 20:
    return iunpackselect20(initOffset, in, slot);
    break;
  case 21:
    return iunpackselect21(initOffset, in, slot);
    break;
  case 22:
    return iunpackselect22(initOffset, in, slot);
    break;
  case 23:
    return iunpackselect23(initOffset, in, slot);
    break;
  case 24:
    return iunpackselect24(initOffset, in, slot);
    break;
  case 25:
    return iunpackselect25(initOffset, in, slot);
    break;
  case 26:
    return iunpackselect26(initOffset, in, slot);
    break;
  case 27:
    return iunpackselect27(initOffset, in, slot);
    break;
  case 28:
    return iunpackselect28(initOffset, in, slot);
    break;
  case 29:
    return iunpackselect29(initOffset, in, slot);
    break;
  case 30:
    return iunpackselect30(initOffset, in, slot);
    break;
  case 31:
    return iunpackselect31(initOffset, in, slot);
    break;
  case 32:
    return iunpackselect32(initOffset, in, slot);
    break;
  default:
    break;
  }
  return (-1);
}


x86 assembly (clang, -O0):
<simdselectd1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    %ecx,-0x20(%rbp)
mov    -0x20(%rbp),%eax
and    $0x7f,%eax
mov    %eax,-0x20(%rbp)
mov    -0x1c(%rbp),%eax
mov    %rax,-0x28(%rbp)
sub    $0x20,%rax
ja     166c <simdselectd1+0x35c>
mov    -0x28(%rbp),%rax
lea    0xcb5(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x10(%rbp),%rax
mov    (%rax),%edi
mov    $0x3,%esi
call   1030 <_mm_extract_epi32@plt>
mov    %eax,-0x4(%rbp)
jmp    1678 <simdselectd1+0x368>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   1150 <iunpackselect1@plt>
mov    %eax,-0x4(%rbp)
jmp    1678 <simdselectd1+0x368>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   1090 <iunpackselect2@plt>
mov    %eax,-0x4(%rbp)
jmp    1678 <simdselectd1+0x368>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   1190 <iunpackselect3@plt>
mov    %eax,-0x4(%rbp)
jmp    1678 <simdselectd1+0x368>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   1060 <iunpackselect4@plt>
mov    %eax,-0x4(%rbp)
jmp    1678 <simdselectd1+0x368>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   1160 <iunpackselect5@plt>
mov    %eax,-0x4(%rbp)
jmp    1678 <simdselectd1+0x368>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   1080 <iunpackselect6@plt>
mov    %eax,-0x4(%rbp)
jmp    1678 <simdselectd1+0x368>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   1180 <iunpackselect7@plt>
mov    %eax,-0x4(%rbp)
jmp    1678 <simdselectd1+0x368>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   1050 <iunpackselect8@plt>
mov    %eax,-0x4(%rbp)
jmp    1678 <simdselectd1+0x368>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   1140 <iunpackselect9@plt>
mov    %eax,-0x4(%rbp)
jmp    1678 <simdselectd1+0x368>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   1170 <iunpackselect10@plt>
mov    %eax,-0x4(%rbp)
jmp    1678 <simdselectd1+0x368>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   1070 <iunpackselect11@plt>
mov    %eax,-0x4(%rbp)
jmp    1678 <simdselectd1+0x368>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   11a0 <iunpackselect12@plt>
mov    %eax,-0x4(%rbp)
jmp    1678 <simdselectd1+0x368>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   10c0 <iunpackselect13@plt>
mov    %eax,-0x4(%rbp)
jmp    1678 <simdselectd1+0x368>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   11e0 <iunpackselect14@plt>
mov    %eax,-0x4(%rbp)
jmp    1678 <simdselectd1+0x368>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   10e0 <iunpackselect15@plt>
mov    %eax,-0x4(%rbp)
jmp    1678 <simdselectd1+0x368>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   11d0 <iunpackselect16@plt>
mov    %eax,-0x4(%rbp)
jmp    1678 <simdselectd1+0x368>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   10d0 <iunpackselect17@plt>
mov    %eax,-0x4(%rbp)
jmp    1678 <simdselectd1+0x368>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   11c0 <iunpackselect18@plt>
mov    %eax,-0x4(%rbp)
jmp    1678 <simdselectd1+0x368>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   10b0 <iunpackselect19@plt>
mov    %eax,-0x4(%rbp)
jmp    1678 <simdselectd1+0x368>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   10a0 <iunpackselect20@plt>
mov    %eax,-0x4(%rbp)
jmp    1678 <simdselectd1+0x368>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   11b0 <iunpackselect21@plt>
mov    %eax,-0x4(%rbp)
jmp    1678 <simdselectd1+0x368>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   1100 <iunpackselect22@plt>
mov    %eax,-0x4(%rbp)
jmp    1678 <simdselectd1+0x368>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   1230 <iunpackselect23@plt>
mov    %eax,-0x4(%rbp)
jmp    1678 <simdselectd1+0x368>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   1120 <iunpackselect24@plt>
mov    %eax,-0x4(%rbp)
jmp    1678 <simdselectd1+0x368>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   1220 <iunpackselect25@plt>
mov    %eax,-0x4(%rbp)
jmp    1678 <simdselectd1+0x368>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   1110 <iunpackselect26@plt>
mov    %eax,-0x4(%rbp)
jmp    1678 <simdselectd1+0x368>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   1200 <iunpackselect27@plt>
mov    %eax,-0x4(%rbp)
jmp    1678 <simdselectd1+0x368>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   10f0 <iunpackselect28@plt>
mov    %eax,-0x4(%rbp)
jmp    1678 <simdselectd1+0x368>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   1210 <iunpackselect29@plt>
mov    %eax,-0x4(%rbp)
jmp    1678 <simdselectd1+0x368>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   11f0 <iunpackselect30@plt>
mov    %eax,-0x4(%rbp)
jmp    1678 <simdselectd1+0x368>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   1130 <iunpackselect31@plt>
mov    %eax,-0x4(%rbp)
jmp    1678 <simdselectd1+0x368>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   1040 <iunpackselect32@plt>
mov    %eax,-0x4(%rbp)
jmp    1678 <simdselectd1+0x368>
jmp    1671 <simdselectd1+0x361>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<simdselectd1>:
cmp    $0x20,%edx
ja     1336 <simdselectd1+0x26>
and    $0x7f,%ecx
mov    %edx,%eax
lea    0xcdf(%rip),%rdx
movslq (%rdx,%rax,4),%rax
add    %rdx,%rax
jmp    *%rax
mov    (%rdi),%edi
mov    $0x3,%esi
jmp    1030 <_mm_extract_epi32@plt>
mov    $0xffffffff,%eax
ret
mov    %ecx,%edx
jmp    1150 <iunpackselect1@plt>
mov    %ecx,%edx
jmp    1090 <iunpackselect2@plt>
mov    %ecx,%edx
jmp    1190 <iunpackselect3@plt>
mov    %ecx,%edx
jmp    1060 <iunpackselect4@plt>
mov    %ecx,%edx
jmp    1160 <iunpackselect5@plt>
mov    %ecx,%edx
jmp    1080 <iunpackselect6@plt>
mov    %ecx,%edx
jmp    1180 <iunpackselect7@plt>
mov    %ecx,%edx
jmp    1050 <iunpackselect8@plt>
mov    %ecx,%edx
jmp    1140 <iunpackselect9@plt>
mov    %ecx,%edx
jmp    1170 <iunpackselect10@plt>
mov    %ecx,%edx
jmp    1070 <iunpackselect11@plt>
mov    %ecx,%edx
jmp    11a0 <iunpackselect12@plt>
mov    %ecx,%edx
jmp    10c0 <iunpackselect13@plt>
mov    %ecx,%edx
jmp    11e0 <iunpackselect14@plt>
mov    %ecx,%edx
jmp    10e0 <iunpackselect15@plt>
mov    %ecx,%edx
jmp    11d0 <iunpackselect16@plt>
mov    %ecx,%edx
jmp    10d0 <iunpackselect17@plt>
mov    %ecx,%edx
jmp    11c0 <iunpackselect18@plt>
mov    %ecx,%edx
jmp    10b0 <iunpackselect19@plt>
mov    %ecx,%edx
jmp    10a0 <iunpackselect20@plt>
mov    %ecx,%edx
jmp    11b0 <iunpackselect21@plt>
mov    %ecx,%edx
jmp    1100 <iunpackselect22@plt>
mov    %ecx,%edx
jmp    1230 <iunpackselect23@plt>
mov    %ecx,%edx
jmp    1120 <iunpackselect24@plt>
mov    %ecx,%edx
jmp    1220 <iunpackselect25@plt>
mov    %ecx,%edx
jmp    1110 <iunpackselect26@plt>
mov    %ecx,%edx
jmp    1200 <iunpackselect27@plt>
mov    %ecx,%edx
jmp    10f0 <iunpackselect28@plt>
mov    %ecx,%edx
jmp    1210 <iunpackselect29@plt>
mov    %ecx,%edx
jmp    11f0 <iunpackselect30@plt>
mov    %ecx,%edx
jmp    1130 <iunpackselect31@plt>
mov    %ecx,%edx
jmp    1040 <iunpackselect32@plt>

LLVM IR (-O0):
define i32 @simdselectd1(i32* %0, i32* %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32*
%7 = alloca i32*
%8 = alloca i32
%9 = alloca i32
store i32* %0, i32** %6
store i32* %1, i32** %7
store i32 %2, i32* %8
store i32 %3, i32* %9
%10 = load i32, i32* %9
%11 = and i32 %10, 127
store i32 %11, i32* %9
%12 = load i32, i32* %8
switch i32 %12, label %177 [
i32 0, label %13
i32 1, label %17
i32 2, label %22
i32 3, label %27
i32 4, label %32
i32 5, label %37
i32 6, label %42
i32 7, label %47
i32 8, label %52
i32 9, label %57
i32 10, label %62
i32 11, label %67
i32 12, label %72
i32 13, label %77
i32 14, label %82
i32 15, label %87
i32 16, label %92
i32 17, label %97
i32 18, label %102
i32 19, label %107
i32 20, label %112
i32 21, label %117
i32 22, label %122
i32 23, label %127
i32 24, label %132
i32 25, label %137
i32 26, label %142
i32 27, label %147
i32 28, label %152
i32 29, label %157
i32 30, label %162
i32 31, label %167
i32 32, label %172
]
13: ; preds = %4
%14 = load i32*, i32** %6
%15 = load i32, i32* %14
%16 = call i32 @_mm_extract_epi32(i32 %15, i32 3)
store i32 %16, i32* %5
br label %179
17: ; preds = %4
%18 = load i32*, i32** %6
%19 = load i32*, i32** %7
%20 = load i32, i32* %9
%21 = call i32 @iunpackselect1(i32* %18, i32* %19, i32 %20)
store i32 %21, i32* %5
br label %179
22: ; preds = %4
%23 = load i32*, i32** %6
%24 = load i32*, i32** %7
%25 = load i32, i32* %9
%26 = call i32 @iunpackselect2(i32* %23, i32* %24, i32 %25)
store i32 %26, i32* %5
br label %179
27: ; preds = %4
%28 = load i32*, i32** %6
%29 = load i32*, i32** %7
%30 = load i32, i32* %9
%31 = call i32 @iunpackselect3(i32* %28, i32* %29, i32 %30)
store i32 %31, i32* %5
br label %179
32: ; preds = %4
%33 = load i32*, i32** %6
%34 = load i32*, i32** %7
%35 = load i32, i32* %9
%36 = call i32 @iunpackselect4(i32* %33, i32* %34, i32 %35)
store i32 %36, i32* %5
br label %179
37: ; preds = %4
%38 = load i32*, i32** %6
%39 = load i32*, i32** %7
%40 = load i32, i32* %9
%41 = call i32 @iunpackselect5(i32* %38, i32* %39, i32 %40)
store i32 %41, i32* %5
br label %179
42: ; preds = %4
%43 = load i32*, i32** %6
%44 = load i32*, i32** %7
%45 = load i32, i32* %9
%46 = call i32 @iunpackselect6(i32* %43, i32* %44, i32 %45)
store i32 %46, i32* %5
br label %179
47: ; preds = %4
%48 = load i32*, i32** %6
%49 = load i32*, i32** %7
%50 = load i32, i32* %9
%51 = call i32 @iunpackselect7(i32* %48, i32* %49, i32 %50)
store i32 %51, i32* %5
br label %179
52: ; preds = %4
%53 = load i32*, i32** %6
%54 = load i32*, i32** %7
%55 = load i32, i32* %9
%56 = call i32 @iunpackselect8(i32* %53, i32* %54, i32 %55)
store i32 %56, i32* %5
br label %179
57: ; preds = %4
%58 = load i32*, i32** %6
%59 = load i32*, i32** %7
%60 = load i32, i32* %9
%61 = call i32 @iunpackselect9(i32* %58, i32* %59, i32 %60)
store i32 %61, i32* %5
br label %179
62: ; preds = %4
%63 = load i32*, i32** %6
%64 = load i32*, i32** %7
%65 = load i32, i32* %9
%66 = call i32 @iunpackselect10(i32* %63, i32* %64, i32 %65)
store i32 %66, i32* %5
br label %179
67: ; preds = %4
%68 = load i32*, i32** %6
%69 = load i32*, i32** %7
%70 = load i32, i32* %9
%71 = call i32 @iunpackselect11(i32* %68, i32* %69, i32 %70)
store i32 %71, i32* %5
br label %179
72: ; preds = %4
%73 = load i32*, i32** %6
%74 = load i32*, i32** %7
%75 = load i32, i32* %9
%76 = call i32 @iunpackselect12(i32* %73, i32* %74, i32 %75)
store i32 %76, i32* %5
br label %179
77: ; preds = %4
%78 = load i32*, i32** %6
%79 = load i32*, i32** %7
%80 = load i32, i32* %9
%81 = call i32 @iunpackselect13(i32* %78, i32* %79, i32 %80)
store i32 %81, i32* %5
br label %179
82: ; preds = %4
%83 = load i32*, i32** %6
%84 = load i32*, i32** %7
%85 = load i32, i32* %9
%86 = call i32 @iunpackselect14(i32* %83, i32* %84, i32 %85)
store i32 %86, i32* %5
br label %179
87: ; preds = %4
%88 = load i32*, i32** %6
%89 = load i32*, i32** %7
%90 = load i32, i32* %9
%91 = call i32 @iunpackselect15(i32* %88, i32* %89, i32 %90)
store i32 %91, i32* %5
br label %179
92: ; preds = %4
%93 = load i32*, i32** %6
%94 = load i32*, i32** %7
%95 = load i32, i32* %9
%96 = call i32 @iunpackselect16(i32* %93, i32* %94, i32 %95)
store i32 %96, i32* %5
br label %179
97: ; preds = %4
%98 = load i32*, i32** %6
%99 = load i32*, i32** %7
%100 = load i32, i32* %9
%101 = call i32 @iunpackselect17(i32* %98, i32* %99, i32 %100)
store i32 %101, i32* %5
br label %179
102: ; preds = %4
%103 = load i32*, i32** %6
%104 = load i32*, i32** %7
%105 = load i32, i32* %9
%106 = call i32 @iunpackselect18(i32* %103, i32* %104, i32 %105)
store i32 %106, i32* %5
br label %179
107: ; preds = %4
%108 = load i32*, i32** %6
%109 = load i32*, i32** %7
%110 = load i32, i32* %9
%111 = call i32 @iunpackselect19(i32* %108, i32* %109, i32 %110)
store i32 %111, i32* %5
br label %179
112: ; preds = %4
%113 = load i32*, i32** %6
%114 = load i32*, i32** %7
%115 = load i32, i32* %9
%116 = call i32 @iunpackselect20(i32* %113, i32* %114, i32 %115)
store i32 %116, i32* %5
br label %179
117: ; preds = %4
%118 = load i32*, i32** %6
%119 = load i32*, i32** %7
%120 = load i32, i32* %9
%121 = call i32 @iunpackselect21(i32* %118, i32* %119, i32 %120)
store i32 %121, i32* %5
br label %179
122: ; preds = %4
%123 = load i32*, i32** %6
%124 = load i32*, i32** %7
%125 = load i32, i32* %9
%126 = call i32 @iunpackselect22(i32* %123, i32* %124, i32 %125)
store i32 %126, i32* %5
br label %179
127: ; preds = %4
%128 = load i32*, i32** %6
%129 = load i32*, i32** %7
%130 = load i32, i32* %9
%131 = call i32 @iunpackselect23(i32* %128, i32* %129, i32 %130)
store i32 %131, i32* %5
br label %179
132: ; preds = %4
%133 = load i32*, i32** %6
%134 = load i32*, i32** %7
%135 = load i32, i32* %9
%136 = call i32 @iunpackselect24(i32* %133, i32* %134, i32 %135)
store i32 %136, i32* %5
br label %179
137: ; preds = %4
%138 = load i32*, i32** %6
%139 = load i32*, i32** %7
%140 = load i32, i32* %9
%141 = call i32 @iunpackselect25(i32* %138, i32* %139, i32 %140)
store i32 %141, i32* %5
br label %179
142: ; preds = %4
%143 = load i32*, i32** %6
%144 = load i32*, i32** %7
%145 = load i32, i32* %9
%146 = call i32 @iunpackselect26(i32* %143, i32* %144, i32 %145)
store i32 %146, i32* %5
br label %179
147: ; preds = %4
%148 = load i32*, i32** %6
%149 = load i32*, i32** %7
%150 = load i32, i32* %9
%151 = call i32 @iunpackselect27(i32* %148, i32* %149, i32 %150)
store i32 %151, i32* %5
br label %179
152: ; preds = %4
%153 = load i32*, i32** %6
%154 = load i32*, i32** %7
%155 = load i32, i32* %9
%156 = call i32 @iunpackselect28(i32* %153, i32* %154, i32 %155)
store i32 %156, i32* %5
br label %179
157: ; preds = %4
%158 = load i32*, i32** %6
%159 = load i32*, i32** %7
%160 = load i32, i32* %9
%161 = call i32 @iunpackselect29(i32* %158, i32* %159, i32 %160)
store i32 %161, i32* %5
br label %179
162: ; preds = %4
%163 = load i32*, i32** %6
%164 = load i32*, i32** %7
%165 = load i32, i32* %9
%166 = call i32 @iunpackselect30(i32* %163, i32* %164, i32 %165)
store i32 %166, i32* %5
br label %179
167: ; preds = %4
%168 = load i32*, i32** %6
%169 = load i32*, i32** %7
%170 = load i32, i32* %9
%171 = call i32 @iunpackselect31(i32* %168, i32* %169, i32 %170)
store i32 %171, i32* %5
br label %179
172: ; preds = %4
%173 = load i32*, i32** %6
%174 = load i32*, i32** %7
%175 = load i32, i32* %9
%176 = call i32 @iunpackselect32(i32* %173, i32* %174, i32 %175)
store i32 %176, i32* %5
br label %179
177: ; preds = %4
br label %178
178: ; preds = %177
store i32 -1, i32* %5
br label %179
179: ; preds = %178, %172, %167, %162, %157, %152, %147, %142, %137, %132, %127, %122, %117, %112, %107, %102, %97, %92, %87, %82, %77, %72, %67, %62, %57, %52, %47, %42, %37, %32, %27, %22, %17, %13
%180 = load i32, i32* %5
ret i32 %180
}

LLVM IR (-O2):
define i32 @simdselectd1(i32* %0, i32* %1, i32 %2, i32 %3) {
%5 = and i32 %3, 127
switch i32 %2, label %73 [
i32 0, label %6
i32 1, label %9
i32 2, label %11
i32 3, label %13
i32 4, label %15
i32 5, label %17
i32 6, label %19
i32 7, label %21
i32 8, label %23
i32 9, label %25
i32 10, label %27
i32 11, label %29
i32 12, label %31
i32 13, label %33
i32 14, label %35
i32 15, label %37
i32 16, label %39
i32 17, label %41
i32 18, label %43
i32 19, label %45
i32 20, label %47
i32 21, label %49
i32 22, label %51
i32 23, label %53
i32 24, label %55
i32 25, label %57
i32 26, label %59
i32 27, label %61
i32 28, label %63
i32 29, label %65
i32 30, label %67
i32 31, label %69
i32 32, label %71
]
6: ; preds = %4
%7 = load i32, i32* %0
%8 = tail call i32 @_mm_extract_epi32(i32 %7, i32 3)
br label %73
9: ; preds = %4
%10 = tail call i32 @iunpackselect1(i32* %0, i32* %1, i32 %5)
br label %73
11: ; preds = %4
%12 = tail call i32 @iunpackselect2(i32* %0, i32* %1, i32 %5)
br label %73
13: ; preds = %4
%14 = tail call i32 @iunpackselect3(i32* %0, i32* %1, i32 %5)
br label %73
15: ; preds = %4
%16 = tail call i32 @iunpackselect4(i32* %0, i32* %1, i32 %5)
br label %73
17: ; preds = %4
%18 = tail call i32 @iunpackselect5(i32* %0, i32* %1, i32 %5)
br label %73
19: ; preds = %4
%20 = tail call i32 @iunpackselect6(i32* %0, i32* %1, i32 %5)
br label %73
21: ; preds = %4
%22 = tail call i32 @iunpackselect7(i32* %0, i32* %1, i32 %5)
br label %73
23: ; preds = %4
%24 = tail call i32 @iunpackselect8(i32* %0, i32* %1, i32 %5)
br label %73
25: ; preds = %4
%26 = tail call i32 @iunpackselect9(i32* %0, i32* %1, i32 %5)
br label %73
27: ; preds = %4
%28 = tail call i32 @iunpackselect10(i32* %0, i32* %1, i32 %5)
br label %73
29: ; preds = %4
%30 = tail call i32 @iunpackselect11(i32* %0, i32* %1, i32 %5)
br label %73
31: ; preds = %4
%32 = tail call i32 @iunpackselect12(i32* %0, i32* %1, i32 %5)
br label %73
33: ; preds = %4
%34 = tail call i32 @iunpackselect13(i32* %0, i32* %1, i32 %5)
br label %73
35: ; preds = %4
%36 = tail call i32 @iunpackselect14(i32* %0, i32* %1, i32 %5)
br label %73
37: ; preds = %4
%38 = tail call i32 @iunpackselect15(i32* %0, i32* %1, i32 %5)
br label %73
39: ; preds = %4
%40 = tail call i32 @iunpackselect16(i32* %0, i32* %1, i32 %5)
br label %73
41: ; preds = %4
%42 = tail call i32 @iunpackselect17(i32* %0, i32* %1, i32 %5)
br label %73
43: ; preds = %4
%44 = tail call i32 @iunpackselect18(i32* %0, i32* %1, i32 %5)
br label %73
45: ; preds = %4
%46 = tail call i32 @iunpackselect19(i32* %0, i32* %1, i32 %5)
br label %73
47: ; preds = %4
%48 = tail call i32 @iunpackselect20(i32* %0, i32* %1, i32 %5)
br label %73
49: ; preds = %4
%50 = tail call i32 @iunpackselect21(i32* %0, i32* %1, i32 %5)
br label %73
51: ; preds = %4
%52 = tail call i32 @iunpackselect22(i32* %0, i32* %1, i32 %5)
br label %73
53: ; preds = %4
%54 = tail call i32 @iunpackselect23(i32* %0, i32* %1, i32 %5)
br label %73
55: ; preds = %4
%56 = tail call i32 @iunpackselect24(i32* %0, i32* %1, i32 %5)
br label %73
57: ; preds = %4
%58 = tail call i32 @iunpackselect25(i32* %0, i32* %1, i32 %5)
br label %73
59: ; preds = %4
%60 = tail call i32 @iunpackselect26(i32* %0, i32* %1, i32 %5)
br label %73
61: ; preds = %4
%62 = tail call i32 @iunpackselect27(i32* %0, i32* %1, i32 %5)
br label %73
63: ; preds = %4
%64 = tail call i32 @iunpackselect28(i32* %0, i32* %1, i32 %5)
br label %73
65: ; preds = %4
%66 = tail call i32 @iunpackselect29(i32* %0, i32* %1, i32 %5)
br label %73
67: ; preds = %4
%68 = tail call i32 @iunpackselect30(i32* %0, i32* %1, i32 %5)
br label %73
69: ; preds = %4
%70 = tail call i32 @iunpackselect31(i32* %0, i32* %1, i32 %5)
br label %73
71: ; preds = %4
%72 = tail call i32 @iunpackselect32(i32* %0, i32* %1, i32 %5)
br label %73
73: ; preds = %4, %71, %69, %67, %65, %63, %61, %59, %57, %55, %53, %51, %49, %47, %45, %43, %41, %39, %37, %35, %33, %31, %29, %27, %25, %23, %21, %19, %17, %15, %13, %11, %9, %6
%74 = phi i32 [ %72, %71 ], [ %70, %69 ], [ %68, %67 ], [ %66, %65 ], [ %64, %63 ], [ %62, %61 ], [ %60, %59 ], [ %58, %57 ], [ %56, %55 ], [ %54, %53 ], [ %52, %51 ], [ %50, %49 ], [ %48, %47 ], [ %46, %45 ], [ %44, %43 ], [ %42, %41 ], [ %40, %39 ], [ %38, %37 ], [ %36, %35 ], [ %34, %33 ], [ %32, %31 ], [ %30, %29 ], [ %28, %27 ], [ %26, %25 ], [ %24, %23 ], [ %22, %21 ], [ %20, %19 ], [ %18, %17 ], [ %16, %15 ], [ %14, %13 ], [ %12, %11 ], [ %10, %9 ], [ %8, %6 ], [ -1, %4 ]
ret i32 %74
}