#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 */
#define ABS_BRAKE 151
#define ABS_DISTANCE 150
#define ABS_GAS 149
#define ABS_HAT0X 148
#define ABS_HAT0Y 147
#define ABS_HAT1X 146
#define ABS_HAT1Y 145
#define ABS_HAT2X 144
#define ABS_HAT2Y 143
#define ABS_HAT3X 142
#define ABS_HAT3Y 141
#define ABS_MISC 140
#define ABS_PRESSURE 139
#define ABS_RUDDER 138
#define ABS_RX 137
#define ABS_RY 136
#define ABS_RZ 135
#define ABS_THROTTLE 134
#define ABS_TILT_X 133
#define ABS_TILT_Y 132
#define ABS_WHEEL 131
#define ABS_X 130
#define ABS_Y 129
#define ABS_Z 128
int /*<<< orphan*/ printf(char *);
void printAxisType(int i) {
  switch (i) {
  case ABS_X:
    printf(" (X Axis) ");
    break;
  case ABS_Y:
    printf(" (Y Axis) ");
    break;
  case ABS_Z:
    printf(" (Z Axis) ");
    break;
  case ABS_RX:
    printf(" (X Rate Axis) ");
    break;
  case ABS_RY:
    printf(" (Y Rate Axis) ");
    break;
  case ABS_RZ:
    printf(" (Z Rate Axis) ");
    break;
  case ABS_THROTTLE:
    printf(" (Throttle) ");
    break;
  case ABS_RUDDER:
    printf(" (Rudder) ");
    break;
  case ABS_WHEEL:
    printf(" (Wheel) ");
    break;
  case ABS_GAS:
    printf(" (Accelerator) ");
    break;
  case ABS_BRAKE:
    printf(" (Brake) ");
    break;
  case ABS_HAT0X:
    printf(" (Hat zero, x axis) ");
    break;
  case ABS_HAT0Y:
    printf(" (Hat zero, y axis) ");
    break;
  case ABS_HAT1X:
    printf(" (Hat one, x axis) ");
    break;
  case ABS_HAT1Y:
    printf(" (Hat one, y axis) ");
    break;
  case ABS_HAT2X:
    printf(" (Hat two, x axis) ");
    break;
  case ABS_HAT2Y:
    printf(" (Hat two, y axis) ");
    break;
  case ABS_HAT3X:
    printf(" (Hat three, x axis) ");
    break;
  case ABS_HAT3Y:
    printf(" (Hat three, y axis) ");
    break;
  case ABS_PRESSURE:
    printf(" (Pressure) ");
    break;
  case ABS_DISTANCE:
    printf(" (Distance) ");
    break;
  case ABS_TILT_X:
    printf(" (Tilt, X axis) ");
    break;
  case ABS_TILT_Y:
    printf(" (Tilt, Y axis) ");
    break;
  case ABS_MISC:
    printf(" (Miscellaneous) ");
    break;
  default:
    printf(" (Unknown absolute feature) ");
  }
}


x86 assembly (clang, -O0):
<printAxisType>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xffffff80,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0x17,%eax
ja     12dc <printAxisType+0x1cc>
mov    -0x10(%rbp),%rax
lea    0xec5(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf15(%rip),%rdi
call   1030 <printf@plt>
jmp    12e8 <printAxisType+0x1d8>
lea    0xf0f(%rip),%rdi
call   1030 <printf@plt>
jmp    12e8 <printAxisType+0x1d8>
lea    0xf09(%rip),%rdi
call   1030 <printf@plt>
jmp    12e8 <printAxisType+0x1d8>
lea    0xf03(%rip),%rdi
call   1030 <printf@plt>
jmp    12e8 <printAxisType+0x1d8>
lea    0xf02(%rip),%rdi
call   1030 <printf@plt>
jmp    12e8 <printAxisType+0x1d8>
lea    0xf01(%rip),%rdi
call   1030 <printf@plt>
jmp    12e8 <printAxisType+0x1d8>
lea    0xf00(%rip),%rdi
call   1030 <printf@plt>
jmp    12e8 <printAxisType+0x1d8>
lea    0xefc(%rip),%rdi
call   1030 <printf@plt>
jmp    12e8 <printAxisType+0x1d8>
lea    0xef6(%rip),%rdi
call   1030 <printf@plt>
jmp    12e8 <printAxisType+0x1d8>
lea    0xeef(%rip),%rdi
call   1030 <printf@plt>
jmp    12e8 <printAxisType+0x1d8>
lea    0xeee(%rip),%rdi
call   1030 <printf@plt>
jmp    12e8 <printAxisType+0x1d8>
lea    0xee7(%rip),%rdi
call   1030 <printf@plt>
jmp    12e8 <printAxisType+0x1d8>
lea    0xeeb(%rip),%rdi
call   1030 <printf@plt>
jmp    12e8 <printAxisType+0x1d8>
lea    0xeef(%rip),%rdi
call   1030 <printf@plt>
jmp    12e8 <printAxisType+0x1d8>
lea    0xef2(%rip),%rdi
call   1030 <printf@plt>
jmp    12e8 <printAxisType+0x1d8>
lea    0xef5(%rip),%rdi
call   1030 <printf@plt>
jmp    12e8 <printAxisType+0x1d8>
lea    0xef8(%rip),%rdi
call   1030 <printf@plt>
jmp    12e8 <printAxisType+0x1d8>
lea    0xefb(%rip),%rdi
call   1030 <printf@plt>
jmp    12e8 <printAxisType+0x1d8>
lea    0xf00(%rip),%rdi
call   1030 <printf@plt>
jmp    12e8 <printAxisType+0x1d8>
lea    0xf05(%rip),%rdi
call   1030 <printf@plt>
jmp    12e8 <printAxisType+0x1d8>
lea    0xf01(%rip),%rdi
call   1030 <printf@plt>
jmp    12e8 <printAxisType+0x1d8>
lea    0xefd(%rip),%rdi
call   1030 <printf@plt>
jmp    12e8 <printAxisType+0x1d8>
lea    0xefd(%rip),%rdi
call   1030 <printf@plt>
jmp    12e8 <printAxisType+0x1d8>
lea    0xefd(%rip),%rdi
call   1030 <printf@plt>
jmp    12e8 <printAxisType+0x1d8>
lea    0xefe(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printAxisType>:
add    $0xffffff80,%edi
cmp    $0x17,%edi
ja     112e <printAxisType+0x1e>
movslq %edi,%rax
lea    0x107e(%rip),%rcx
movslq (%rcx,%rax,4),%rdi
add    %rcx,%rdi
jmp    1030 <printf@plt>
lea    0x104c(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [11 x i8] c" (X Axis) \00"
@.str.1 = [11 x i8] c" (Y Axis) \00"
@.str.2 = [11 x i8] c" (Z Axis) \00"
@.str.3 = [16 x i8] c" (X Rate Axis) \00"
@.str.4 = [16 x i8] c" (Y Rate Axis) \00"
@.str.5 = [16 x i8] c" (Z Rate Axis) \00"
@.str.6 = [13 x i8] c" (Throttle) \00"
@.str.7 = [11 x i8] c" (Rudder) \00"
@.str.8 = [10 x i8] c" (Wheel) \00"
@.str.9 = [16 x i8] c" (Accelerator) \00"
@.str.10 = [10 x i8] c" (Brake) \00"
@.str.11 = [21 x i8] c" (Hat zero, x axis) \00"
@.str.12 = [21 x i8] c" (Hat zero, y axis) \00"
@.str.13 = [20 x i8] c" (Hat one, x axis) \00"
@.str.14 = [20 x i8] c" (Hat one, y axis) \00"
@.str.15 = [20 x i8] c" (Hat two, x axis) \00"
@.str.16 = [20 x i8] c" (Hat two, y axis) \00"
@.str.17 = [22 x i8] c" (Hat three, x axis) \00"
@.str.18 = [22 x i8] c" (Hat three, y axis) \00"
@.str.19 = [13 x i8] c" (Pressure) \00"
@.str.20 = [13 x i8] c" (Distance) \00"
@.str.21 = [17 x i8] c" (Tilt, X axis) \00"
@.str.22 = [17 x i8] c" (Tilt, Y axis) \00"
@.str.23 = [18 x i8] c" (Miscellaneous) \00"
@.str.24 = [29 x i8] c" (Unknown absolute feature) \00"
define void @printAxisType(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
switch i32 %3, label %52 [
i32 130, label %4
i32 129, label %6
i32 128, label %8
i32 137, label %10
i32 136, label %12
i32 135, label %14
i32 134, label %16
i32 138, label %18
i32 131, label %20
i32 149, label %22
i32 151, label %24
i32 148, label %26
i32 147, label %28
i32 146, label %30
i32 145, label %32
i32 144, label %34
i32 143, label %36
i32 142, label %38
i32 141, label %40
i32 139, label %42
i32 150, label %44
i32 133, label %46
i32 132, label %48
i32 140, label %50
]
4: ; preds = %1
%5 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
br label %54
6: ; preds = %1
%7 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
br label %54
8: ; preds = %1
%9 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
br label %54
10: ; preds = %1
%11 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
br label %54
12: ; preds = %1
%13 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
br label %54
14: ; preds = %1
%15 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
br label %54
16: ; preds = %1
%17 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0))
br label %54
18: ; preds = %1
%19 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
br label %54
20: ; preds = %1
%21 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0))
br label %54
22: ; preds = %1
%23 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0))
br label %54
24: ; preds = %1
%25 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0))
br label %54
26: ; preds = %1
%27 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0))
br label %54
28: ; preds = %1
%29 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.12, i64 0, i64 0))
br label %54
30: ; preds = %1
%31 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.13, i64 0, i64 0))
br label %54
32: ; preds = %1
%33 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.14, i64 0, i64 0))
br label %54
34: ; preds = %1
%35 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.15, i64 0, i64 0))
br label %54
36: ; preds = %1
%37 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.16, i64 0, i64 0))
br label %54
38: ; preds = %1
%39 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.17, i64 0, i64 0))
br label %54
40: ; preds = %1
%41 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.18, i64 0, i64 0))
br label %54
42: ; preds = %1
%43 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.19, i64 0, i64 0))
br label %54
44: ; preds = %1
%45 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.20, i64 0, i64 0))
br label %54
46: ; preds = %1
%47 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.21, i64 0, i64 0))
br label %54
48: ; preds = %1
%49 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.22, i64 0, i64 0))
br label %54
50: ; preds = %1
%51 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.23, i64 0, i64 0))
br label %54
52: ; preds = %1
%53 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.24, i64 0, i64 0))
br label %54
54: ; preds = %52, %50, %48, %46, %44, %42, %40, %38, %36, %34, %32, %30, %28, %26, %24, %22, %20, %18, %16, %14, %12, %10, %8, %6, %4
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c" (X Axis) \00"
@.str.1 = [11 x i8] c" (Y Axis) \00"
@.str.2 = [11 x i8] c" (Z Axis) \00"
@.str.3 = [16 x i8] c" (X Rate Axis) \00"
@.str.4 = [16 x i8] c" (Y Rate Axis) \00"
@.str.5 = [16 x i8] c" (Z Rate Axis) \00"
@.str.6 = [13 x i8] c" (Throttle) \00"
@.str.7 = [11 x i8] c" (Rudder) \00"
@.str.8 = [10 x i8] c" (Wheel) \00"
@.str.9 = [16 x i8] c" (Accelerator) \00"
@.str.10 = [10 x i8] c" (Brake) \00"
@.str.11 = [21 x i8] c" (Hat zero, x axis) \00"
@.str.12 = [21 x i8] c" (Hat zero, y axis) \00"
@.str.13 = [20 x i8] c" (Hat one, x axis) \00"
@.str.14 = [20 x i8] c" (Hat one, y axis) \00"
@.str.15 = [20 x i8] c" (Hat two, x axis) \00"
@.str.16 = [20 x i8] c" (Hat two, y axis) \00"
@.str.17 = [22 x i8] c" (Hat three, x axis) \00"
@.str.18 = [22 x i8] c" (Hat three, y axis) \00"
@.str.19 = [13 x i8] c" (Pressure) \00"
@.str.20 = [13 x i8] c" (Distance) \00"
@.str.21 = [17 x i8] c" (Tilt, X axis) \00"
@.str.22 = [17 x i8] c" (Tilt, Y axis) \00"
@.str.23 = [18 x i8] c" (Miscellaneous) \00"
@.str.24 = [29 x i8] c" (Unknown absolute feature) \00"
@reltable.printAxisType = [24 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.2 to i64), i64 ptrtoint ([24 x i32]* @reltable.printAxisType to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.1 to i64), i64 ptrtoint ([24 x i32]* @reltable.printAxisType to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str to i64), i64 ptrtoint ([24 x i32]* @reltable.printAxisType to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @.str.8 to i64), i64 ptrtoint ([24 x i32]* @reltable.printAxisType to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([17 x i8]* @.str.22 to i64), i64 ptrtoint ([24 x i32]* @reltable.printAxisType to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([17 x i8]* @.str.21 to i64), i64 ptrtoint ([24 x i32]* @reltable.printAxisType to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([13 x i8]* @.str.6 to i64), i64 ptrtoint ([24 x i32]* @reltable.printAxisType to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([16 x i8]* @.str.5 to i64), i64 ptrtoint ([24 x i32]* @reltable.printAxisType to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([16 x i8]* @.str.4 to i64), i64 ptrtoint ([24 x i32]* @reltable.printAxisType to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([16 x i8]* @.str.3 to i64), i64 ptrtoint ([24 x i32]* @reltable.printAxisType to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.7 to i64), i64 ptrtoint ([24 x i32]* @reltable.printAxisType to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([13 x i8]* @.str.19 to i64), i64 ptrtoint ([24 x i32]* @reltable.printAxisType to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([18 x i8]* @.str.23 to i64), i64 ptrtoint ([24 x i32]* @reltable.printAxisType to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([22 x i8]* @.str.18 to i64), i64 ptrtoint ([24 x i32]* @reltable.printAxisType to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([22 x i8]* @.str.17 to i64), i64 ptrtoint ([24 x i32]* @reltable.printAxisType to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @.str.16 to i64), i64 ptrtoint ([24 x i32]* @reltable.printAxisType to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @.str.15 to i64), i64 ptrtoint ([24 x i32]* @reltable.printAxisType to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @.str.14 to i64), i64 ptrtoint ([24 x i32]* @reltable.printAxisType to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @.str.13 to i64), i64 ptrtoint ([24 x i32]* @reltable.printAxisType to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @.str.12 to i64), i64 ptrtoint ([24 x i32]* @reltable.printAxisType to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @.str.11 to i64), i64 ptrtoint ([24 x i32]* @reltable.printAxisType to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([16 x i8]* @.str.9 to i64), i64 ptrtoint ([24 x i32]* @reltable.printAxisType to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([13 x i8]* @.str.20 to i64), i64 ptrtoint ([24 x i32]* @reltable.printAxisType to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @.str.10 to i64), i64 ptrtoint ([24 x i32]* @reltable.printAxisType to i64)) to i32)]
define void @printAxisType(i32 %0) {
%2 = add i32 %0, -128
%3 = icmp ult i32 %2, 24
br i1 %3, label %4, label %8
4: ; preds = %1
%5 = sext i32 %2 to i64
%6 = shl i64 %5, 2
%7 = call i8* @llvm.load.relative.i64(i8* bitcast ([24 x i32]* @reltable.printAxisType to i8*), i64 %6)
br label %8
8: ; preds = %1, %4
%9 = phi i8* [ %7, %4 ], [ getelementptr inbounds ([29 x i8], [29 x i8]* @.str.24, i64 0, i64 0), %1 ]
%10 = tail call i32 @printf(i8* dereferenceable(1) %9)
ret void
}