#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 /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ glutPostRedisplay();
int /*<<< orphan*/ rotationBas();
int /*<<< orphan*/ rotationDroite();
int /*<<< orphan*/ rotationGauche();
int /*<<< orphan*/ rotationHaut();
int /*<<< orphan*/ window_geo_extrudeMe();
void keyboard(unsigned char keycode, int x, int y) {
  switch (keycode) {
  case '2':
    rotationBas();
    break;
  case '4':
    rotationGauche();
    break;
  case '6':
    rotationDroite();
    break;
  case '8':
    rotationHaut();
    break;
  case 'e':
    window_geo_extrudeMe();
    break;
  case 27:
    exit(0);
    break;
  default:
    break;
  }
  glutPostRedisplay();
}


x86 assembly (clang, -O0):
<keyboard>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
movzbl -0x1(%rbp),%eax
mov    %eax,-0x10(%rbp)
sub    $0x1b,%eax
je     122a <keyboard+0xba>
jmp    1199 <keyboard+0x29>
mov    -0x10(%rbp),%eax
sub    $0x32,%eax
je     11ee <keyboard+0x7e>
jmp    11aa <keyboard+0x3a>
mov    -0x10(%rbp),%eax
sub    $0x34,%eax
je     11fa <keyboard+0x8a>
jmp    11bb <keyboard+0x4b>
mov    -0x10(%rbp),%eax
sub    $0x36,%eax
je     1206 <keyboard+0x96>
jmp    11cc <keyboard+0x5c>
mov    -0x10(%rbp),%eax
sub    $0x38,%eax
je     1212 <keyboard+0xa2>
jmp    11dd <keyboard+0x6d>
mov    -0x10(%rbp),%eax
sub    $0x65,%eax
je     121e <keyboard+0xae>
jmp    1231 <keyboard+0xc1>
mov    $0x0,%al
call   1070 <rotationBas@plt>
jmp    1236 <keyboard+0xc6>
mov    $0x0,%al
call   1090 <rotationGauche@plt>
jmp    1236 <keyboard+0xc6>
mov    $0x0,%al
call   1030 <rotationDroite@plt>
jmp    1236 <keyboard+0xc6>
mov    $0x0,%al
call   1040 <rotationHaut@plt>
jmp    1236 <keyboard+0xc6>
mov    $0x0,%al
call   1050 <window_geo_extrudeMe@plt>
jmp    1236 <keyboard+0xc6>
xor    %edi,%edi
call   1080 <exit@plt>
jmp    1236 <keyboard+0xc6>
mov    $0x0,%al
call   1060 <glutPostRedisplay@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<keyboard>:
push   %rax
lea    -0x1b(%rdi),%eax
cmp    $0x1d,%al
ja     1194 <keyboard+0x24>
movzbl %al,%eax
lea    0xe7e(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
xor    %eax,%eax
call   1070 <rotationBas@plt>
jmp    11bc <keyboard+0x4c>
cmp    $0x65,%dil
jne    11bc <keyboard+0x4c>
xor    %eax,%eax
call   1050 <window_geo_extrudeMe@plt>
jmp    11bc <keyboard+0x4c>
xor    %eax,%eax
call   1090 <rotationGauche@plt>
jmp    11bc <keyboard+0x4c>
xor    %eax,%eax
call   1030 <rotationDroite@plt>
jmp    11bc <keyboard+0x4c>
xor    %eax,%eax
call   1040 <rotationHaut@plt>
xor    %eax,%eax
pop    %rcx
jmp    1060 <glutPostRedisplay@plt>
xor    %edi,%edi
call   1080 <exit@plt>

LLVM IR (-O0):
define void @keyboard(i8 zeroext %0, i32 %1, i32 %2) {
%4 = alloca i8
%5 = alloca i32
%6 = alloca i32
store i8 %0, i8* %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%7 = load i8, i8* %4
%8 = zext i8 %7 to i32
switch i32 %8, label %21 [
i32 50, label %9
i32 52, label %11
i32 54, label %13
i32 56, label %15
i32 101, label %17
i32 27, label %19
]
9: ; preds = %3
%10 = call i32 (...) @rotationBas()
br label %22
11: ; preds = %3
%12 = call i32 (...) @rotationGauche()
br label %22
13: ; preds = %3
%14 = call i32 (...) @rotationDroite()
br label %22
15: ; preds = %3
%16 = call i32 (...) @rotationHaut()
br label %22
17: ; preds = %3
%18 = call i32 (...) @window_geo_extrudeMe()
br label %22
19: ; preds = %3
%20 = call i32 @exit(i32 0)
unreachable
21: ; preds = %3
br label %22
22: ; preds = %21, %17, %15, %13, %11, %9
%23 = call i32 (...) @glutPostRedisplay()
ret void
}

LLVM IR (-O2):
define void @keyboard(i8 zeroext %0, i32 %1, i32 %2) {
switch i8 %0, label %16 [
i8 50, label %4
i8 52, label %6
i8 54, label %8
i8 56, label %10
i8 101, label %12
i8 27, label %14
]
4: ; preds = %3
%5 = tail call i32 (...) @rotationBas()
br label %16
6: ; preds = %3
%7 = tail call i32 (...) @rotationGauche()
br label %16
8: ; preds = %3
%9 = tail call i32 (...) @rotationDroite()
br label %16
10: ; preds = %3
%11 = tail call i32 (...) @rotationHaut()
br label %16
12: ; preds = %3
%13 = tail call i32 (...) @window_geo_extrudeMe()
br label %16
14: ; preds = %3
%15 = tail call i32 @exit(i32 0)
unreachable
16: ; preds = %3, %12, %10, %8, %6, %4
%17 = tail call i32 (...) @glutPostRedisplay()
ret void
}