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

/* Variables and functions */
int Winst90(int, int);
int Winst92(int, int);
int Winst94(int, int);
int Winst96(int, int);
int Winst97(int, int);
int Winst98(int, int);
int Winst99(int, int);
int Winst9A(int, int);
int Winst9B(int, int);
int Winst9C(int, int);
int Winst9(int i, int code) {
  switch ((code >> 8) & 0xf) {
  case 0x0:
  case 0x1:
    return Winst90(i, code);
    break;
  case 0x2:
  case 0x3:
    return Winst92(i, code);
    break;
  case 0x4:
  case 0x5:
    return Winst94(i, code);
    break;
  case 0x6:
    return Winst96(i, code);
    break;
  case 0x7:
    return Winst97(i, code);
    break;
  case 0x8:
    return Winst98(i, code);
    break;
  case 0x9:
    return Winst99(i, code);
    break;
  case 0xA:
    return Winst9A(i, code);
    break;
  case 0xB:
    return Winst9B(i, code);
    break;
  case 0xC:
  case 0xD:
  case 0xE:
  case 0xF:
    return Winst9C(i, code);
    break;
  }
  return 0;
}


x86 assembly (clang, -O0):
<Winst9>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
shr    $0x8,%eax
and    $0xf,%eax
mov    %eax,%ecx
mov    %rcx,-0x18(%rbp)
sub    $0xf,%eax
ja     1298 <Winst9+0xf8>
mov    -0x18(%rbp),%rax
lea    0xe2f(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1040 <Winst90@plt>
mov    %eax,-0x4(%rbp)
jmp    129f <Winst9+0xff>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1030 <Winst92@plt>
mov    %eax,-0x4(%rbp)
jmp    129f <Winst9+0xff>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1050 <Winst94@plt>
mov    %eax,-0x4(%rbp)
jmp    129f <Winst9+0xff>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1060 <Winst96@plt>
mov    %eax,-0x4(%rbp)
jmp    129f <Winst9+0xff>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   10a0 <Winst97@plt>
mov    %eax,-0x4(%rbp)
jmp    129f <Winst9+0xff>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1070 <Winst98@plt>
mov    %eax,-0x4(%rbp)
jmp    129f <Winst9+0xff>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   10b0 <Winst99@plt>
mov    %eax,-0x4(%rbp)
jmp    129f <Winst9+0xff>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1080 <Winst9A@plt>
mov    %eax,-0x4(%rbp)
jmp    129f <Winst9+0xff>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   10c0 <Winst9B@plt>
mov    %eax,-0x4(%rbp)
jmp    129f <Winst9+0xff>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1090 <Winst9C@plt>
mov    %eax,-0x4(%rbp)
jmp    129f <Winst9+0xff>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Winst9>:
mov    %esi,%eax
shr    $0x8,%eax
and    $0xf,%eax
lea    0xe51(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
jmp    1090 <Winst9C@plt>
jmp    1040 <Winst90@plt>
jmp    1030 <Winst92@plt>
jmp    1050 <Winst94@plt>
jmp    1060 <Winst96@plt>
jmp    10a0 <Winst97@plt>
jmp    10b0 <Winst99@plt>
jmp    1080 <Winst9A@plt>
jmp    10c0 <Winst9B@plt>
jmp    1070 <Winst98@plt>

LLVM IR (-O0):
define i32 @Winst9(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
%6 = load i32, i32* %5
%7 = ashr i32 %6, 8
%8 = and i32 %7, 15
switch i32 %8, label %49 [
i32 0, label %9
i32 1, label %9
i32 2, label %13
i32 3, label %13
i32 4, label %17
i32 5, label %17
i32 6, label %21
i32 7, label %25
i32 8, label %29
i32 9, label %33
i32 10, label %37
i32 11, label %41
i32 12, label %45
i32 13, label %45
i32 14, label %45
i32 15, label %45
]
9: ; preds = %2, %2
%10 = load i32, i32* %4
%11 = load i32, i32* %5
%12 = call i32 @Winst90(i32 %10, i32 %11)
store i32 %12, i32* %3
br label %50
13: ; preds = %2, %2
%14 = load i32, i32* %4
%15 = load i32, i32* %5
%16 = call i32 @Winst92(i32 %14, i32 %15)
store i32 %16, i32* %3
br label %50
17: ; preds = %2, %2
%18 = load i32, i32* %4
%19 = load i32, i32* %5
%20 = call i32 @Winst94(i32 %18, i32 %19)
store i32 %20, i32* %3
br label %50
21: ; preds = %2
%22 = load i32, i32* %4
%23 = load i32, i32* %5
%24 = call i32 @Winst96(i32 %22, i32 %23)
store i32 %24, i32* %3
br label %50
25: ; preds = %2
%26 = load i32, i32* %4
%27 = load i32, i32* %5
%28 = call i32 @Winst97(i32 %26, i32 %27)
store i32 %28, i32* %3
br label %50
29: ; preds = %2
%30 = load i32, i32* %4
%31 = load i32, i32* %5
%32 = call i32 @Winst98(i32 %30, i32 %31)
store i32 %32, i32* %3
br label %50
33: ; preds = %2
%34 = load i32, i32* %4
%35 = load i32, i32* %5
%36 = call i32 @Winst99(i32 %34, i32 %35)
store i32 %36, i32* %3
br label %50
37: ; preds = %2
%38 = load i32, i32* %4
%39 = load i32, i32* %5
%40 = call i32 @Winst9A(i32 %38, i32 %39)
store i32 %40, i32* %3
br label %50
41: ; preds = %2
%42 = load i32, i32* %4
%43 = load i32, i32* %5
%44 = call i32 @Winst9B(i32 %42, i32 %43)
store i32 %44, i32* %3
br label %50
45: ; preds = %2, %2, %2, %2
%46 = load i32, i32* %4
%47 = load i32, i32* %5
%48 = call i32 @Winst9C(i32 %46, i32 %47)
store i32 %48, i32* %3
br label %50
49: ; preds = %2
store i32 0, i32* %3
br label %50
50: ; preds = %49, %45, %41, %37, %33, %29, %25, %21, %17, %13, %9
%51 = load i32, i32* %3
ret i32 %51
}

LLVM IR (-O2):
define i32 @Winst9(i32 %0, i32 %1) {
%3 = lshr i32 %1, 8
%4 = and i32 %3, 15
switch i32 %4, label %25 [
i32 0, label %5
i32 1, label %5
i32 2, label %7
i32 3, label %7
i32 4, label %9
i32 5, label %9
i32 6, label %11
i32 7, label %13
i32 8, label %15
i32 9, label %17
i32 10, label %19
i32 11, label %21
i32 12, label %23
i32 13, label %23
i32 14, label %23
i32 15, label %23
]
5: ; preds = %2, %2
%6 = tail call i32 @Winst90(i32 %0, i32 %1)
br label %26
7: ; preds = %2, %2
%8 = tail call i32 @Winst92(i32 %0, i32 %1)
br label %26
9: ; preds = %2, %2
%10 = tail call i32 @Winst94(i32 %0, i32 %1)
br label %26
11: ; preds = %2
%12 = tail call i32 @Winst96(i32 %0, i32 %1)
br label %26
13: ; preds = %2
%14 = tail call i32 @Winst97(i32 %0, i32 %1)
br label %26
15: ; preds = %2
%16 = tail call i32 @Winst98(i32 %0, i32 %1)
br label %26
17: ; preds = %2
%18 = tail call i32 @Winst99(i32 %0, i32 %1)
br label %26
19: ; preds = %2
%20 = tail call i32 @Winst9A(i32 %0, i32 %1)
br label %26
21: ; preds = %2
%22 = tail call i32 @Winst9B(i32 %0, i32 %1)
br label %26
23: ; preds = %2, %2, %2, %2
%24 = tail call i32 @Winst9C(i32 %0, i32 %1)
br label %26
25: ; preds = %2
unreachable
26: ; preds = %23, %21, %19, %17, %15, %13, %11, %9, %7, %5
%27 = phi i32 [ %24, %23 ], [ %22, %21 ], [ %20, %19 ], [ %18, %17 ], [ %16, %15 ], [ %14, %13 ], [ %12, %11 ], [ %10, %9 ], [ %8, %7 ], [ %6, %5 ]
ret i32 %27
}