#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*/ fprintRTF(char *, ...);
char getTexChar();
void TranslateGerman(void) {
  char cThis;
  cThis = getTexChar();
  switch (cThis) {
  case 'a':
    fprintRTF("\\'e4");
    break;
  case 'o':
    fprintRTF("\\'f6");
    break;
  case 'u':
    fprintRTF("\\'fc");
    break;
  case 's':
    fprintRTF("\\'df");
    break;
  case 'A':
    fprintRTF("\\'c4");
    break;
  case 'O':
    fprintRTF("\\'d6");
    break;
  case 'U':
    fprintRTF("\\'dc");
    break;
  case '|':
    break;
  case '-':
    break;
  case '"':
    break;
  case '\'':
    fprintRTF("\\ldblquote ");
    break;
  case '`':
    fprintRTF("{\\'84}");
    break;
  case '<':
    fprintRTF("\\'ab");
    break;
  case '>':
    fprintRTF("\\'bb");
    break;
  default:
    fprintRTF("%c", cThis);
  }
}


x86 assembly (clang, -O0):
<TranslateGerman>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
xor    %eax,%eax
call   1030 <getTexChar@plt>
mov    %al,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
add    $0xffffffde,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0x5a,%eax
ja     123c <TranslateGerman+0x11c>
mov    -0x10(%rbp),%rax
lea    0xead(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x1009(%rip),%rdi
mov    $0x0,%al
call   1040 <fprintRTF@plt>
jmp    124e <TranslateGerman+0x12e>
lea    0xffb(%rip),%rdi
mov    $0x0,%al
call   1040 <fprintRTF@plt>
jmp    124e <TranslateGerman+0x12e>
lea    0xfed(%rip),%rdi
mov    $0x0,%al
call   1040 <fprintRTF@plt>
jmp    124e <TranslateGerman+0x12e>
lea    0xfdf(%rip),%rdi
mov    $0x0,%al
call   1040 <fprintRTF@plt>
jmp    124e <TranslateGerman+0x12e>
lea    0xfd1(%rip),%rdi
mov    $0x0,%al
call   1040 <fprintRTF@plt>
jmp    124e <TranslateGerman+0x12e>
lea    0xfc3(%rip),%rdi
mov    $0x0,%al
call   1040 <fprintRTF@plt>
jmp    124e <TranslateGerman+0x12e>
lea    0xfb5(%rip),%rdi
mov    $0x0,%al
call   1040 <fprintRTF@plt>
jmp    124e <TranslateGerman+0x12e>
jmp    124e <TranslateGerman+0x12e>
jmp    124e <TranslateGerman+0x12e>
jmp    124e <TranslateGerman+0x12e>
lea    0xf98(%rip),%rdi
mov    $0x0,%al
call   1040 <fprintRTF@plt>
jmp    124e <TranslateGerman+0x12e>
lea    0xf91(%rip),%rdi
mov    $0x0,%al
call   1040 <fprintRTF@plt>
jmp    124e <TranslateGerman+0x12e>
lea    0xf85(%rip),%rdi
mov    $0x0,%al
call   1040 <fprintRTF@plt>
jmp    124e <TranslateGerman+0x12e>
lea    0xf77(%rip),%rdi
mov    $0x0,%al
call   1040 <fprintRTF@plt>
jmp    124e <TranslateGerman+0x12e>
movsbl -0x1(%rbp),%esi
lea    0xf65(%rip),%rdi
mov    $0x0,%al
call   1040 <fprintRTF@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<TranslateGerman>:
push   %rax
xor    %eax,%eax
call   1030 <getTexChar@plt>
movsbl %al,%esi
lea    -0x22(%rsi),%eax
cmp    $0x5a,%eax
ja     1145 <TranslateGerman+0x25>
lea    0xec6(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
pop    %rax
ret
lea    0x1060(%rip),%rdi
xor    %eax,%eax
pop    %rcx
jmp    1040 <fprintRTF@plt>
lea    0x1034(%rip),%rdi
jmp    11b5 <TranslateGerman+0x95>
lea    0x103e(%rip),%rdi
jmp    11b5 <TranslateGerman+0x95>
lea    0x103a(%rip),%rdi
jmp    11b5 <TranslateGerman+0x95>
lea    0x100a(%rip),%rdi
jmp    11b5 <TranslateGerman+0x95>
lea    0x1006(%rip),%rdi
jmp    11b5 <TranslateGerman+0x95>
lea    0x1002(%rip),%rdi
jmp    11b5 <TranslateGerman+0x95>
lea    0x100a(%rip),%rdi
jmp    11b5 <TranslateGerman+0x95>
lea    0xfd2(%rip),%rdi
jmp    11b5 <TranslateGerman+0x95>
lea    0xfce(%rip),%rdi
jmp    11b5 <TranslateGerman+0x95>
lea    0xfcf(%rip),%rdi
jmp    11b5 <TranslateGerman+0x95>
lea    0xfc1(%rip),%rdi
xor    %eax,%eax
pop    %rcx
jmp    1040 <fprintRTF@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"\\'e4\00"
@.str.1 = [5 x i8] c"\\'f6\00"
@.str.2 = [5 x i8] c"\\'fc\00"
@.str.3 = [5 x i8] c"\\'df\00"
@.str.4 = [5 x i8] c"\\'c4\00"
@.str.5 = [5 x i8] c"\\'d6\00"
@.str.6 = [5 x i8] c"\\'dc\00"
@.str.7 = [12 x i8] c"\\ldblquote \00"
@.str.8 = [7 x i8] c"{\\'84}\00"
@.str.9 = [5 x i8] c"\\'ab\00"
@.str.10 = [5 x i8] c"\\'bb\00"
@.str.11 = [3 x i8] c"%c\00"
define void @TranslateGerman() {
%1 = alloca i8
%2 = call signext i8 (...) @getTexChar()
store i8 %2, i8* %1
%3 = load i8, i8* %1
%4 = sext i8 %3 to i32
switch i32 %4, label %30 [
i32 97, label %5
i32 111, label %7
i32 117, label %9
i32 115, label %11
i32 65, label %13
i32 79, label %15
i32 85, label %17
i32 124, label %19
i32 45, label %20
i32 34, label %21
i32 39, label %22
i32 96, label %24
i32 60, label %26
i32 62, label %28
]
5: ; preds = %0
%6 = call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
br label %34
7: ; preds = %0
%8 = call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %34
9: ; preds = %0
%10 = call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %34
11: ; preds = %0
%12 = call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
br label %34
13: ; preds = %0
%14 = call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
br label %34
15: ; preds = %0
%16 = call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %34
17: ; preds = %0
%18 = call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
br label %34
19: ; preds = %0
br label %34
20: ; preds = %0
br label %34
21: ; preds = %0
br label %34
22: ; preds = %0
%23 = call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0))
br label %34
24: ; preds = %0
%25 = call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
br label %34
26: ; preds = %0
%27 = call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
br label %34
28: ; preds = %0
%29 = call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
br label %34
30: ; preds = %0
%31 = load i8, i8* %1
%32 = sext i8 %31 to i32
%33 = call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32 %32)
br label %34
34: ; preds = %30, %28, %26, %24, %22, %21, %20, %19, %17, %15, %13, %11, %9, %7, %5
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"\\'e4\00"
@.str.1 = [5 x i8] c"\\'f6\00"
@.str.2 = [5 x i8] c"\\'fc\00"
@.str.3 = [5 x i8] c"\\'df\00"
@.str.4 = [5 x i8] c"\\'c4\00"
@.str.5 = [5 x i8] c"\\'d6\00"
@.str.6 = [5 x i8] c"\\'dc\00"
@.str.7 = [12 x i8] c"\\ldblquote \00"
@.str.8 = [7 x i8] c"{\\'84}\00"
@.str.9 = [5 x i8] c"\\'ab\00"
@.str.10 = [5 x i8] c"\\'bb\00"
@.str.11 = [3 x i8] c"%c\00"
define void @TranslateGerman() {
%1 = tail call signext i8 (...) @getTexChar()
%2 = sext i8 %1 to i32
switch i32 %2, label %25 [
i32 97, label %3
i32 111, label %5
i32 117, label %7
i32 115, label %9
i32 65, label %11
i32 79, label %13
i32 85, label %15
i32 124, label %27
i32 45, label %27
i32 34, label %27
i32 39, label %17
i32 96, label %19
i32 60, label %21
i32 62, label %23
]
3: ; preds = %0
%4 = tail call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
br label %27
5: ; preds = %0
%6 = tail call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %27
7: ; preds = %0
%8 = tail call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %27
9: ; preds = %0
%10 = tail call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
br label %27
11: ; preds = %0
%12 = tail call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
br label %27
13: ; preds = %0
%14 = tail call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %27
15: ; preds = %0
%16 = tail call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
br label %27
17: ; preds = %0
%18 = tail call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0))
br label %27
19: ; preds = %0
%20 = tail call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
br label %27
21: ; preds = %0
%22 = tail call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
br label %27
23: ; preds = %0
%24 = tail call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
br label %27
25: ; preds = %0
%26 = tail call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32 %2)
br label %27
27: ; preds = %25, %23, %21, %19, %17, %0, %0, %0, %15, %13, %11, %9, %7, %5, %3
ret void
}