#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 */
scalar_t__ strcmp(char *, char *);
char *lcd_parsespecial(char *t) {
  if (strcmp(t, "\xee\x80\x80") == 0)
    return "E";
  if (strcmp(t, "\xee\x80\x81") == 0)
    return "N";
  if (strcmp(t, "\xee\x80\x82") == 0)
    return "D";
  if (strcmp(t, "\xee\x80\x83") == 0)
    return "D";
  if (strcmp(t, "\xee\x80\x84") == 0)
    return "E";
  if (strcmp(t, "\xee\x80\x85") == 0)
    return "L";
  return t;
}


x86 assembly (clang, -O0):
<lcd_parsespecial>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xed9(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1146 <lcd_parsespecial+0x36>
lea    0xec7(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1220 <lcd_parsespecial+0x110>
mov    -0x10(%rbp),%rdi
lea    0xeb5(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1170 <lcd_parsespecial+0x60>
lea    0xea3(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1220 <lcd_parsespecial+0x110>
mov    -0x10(%rbp),%rdi
lea    0xe91(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    119a <lcd_parsespecial+0x8a>
lea    0xe7f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1220 <lcd_parsespecial+0x110>
mov    -0x10(%rbp),%rdi
lea    0xe6d(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    11c4 <lcd_parsespecial+0xb4>
lea    0xe55(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1220 <lcd_parsespecial+0x110>
mov    -0x10(%rbp),%rdi
lea    0xe47(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    11ee <lcd_parsespecial+0xde>
lea    0xe1f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1220 <lcd_parsespecial+0x110>
mov    -0x10(%rbp),%rdi
lea    0xe21(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1218 <lcd_parsespecial+0x108>
lea    0xe0f(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1220 <lcd_parsespecial+0x110>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<lcd_parsespecial>:
push   %r15
push   %r14
push   %rbx
mov    %rdi,%r14
lea    0xee1(%rip),%rsi
call   1030 <strcmp@plt>
lea    0xed9(%rip),%r15
test   %rax,%rax
je     11a9 <lcd_parsespecial+0x99>
lea    0xecf(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     11ae <lcd_parsespecial+0x9e>
lea    0xec1(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcmp@plt>
lea    0xeb6(%rip),%rbx
test   %rax,%rax
je     11b5 <lcd_parsespecial+0xa5>
lea    0xeac(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     11b5 <lcd_parsespecial+0xa5>
lea    0xe9c(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcmp@plt>
mov    %r15,%rbx
test   %rax,%rax
je     11b5 <lcd_parsespecial+0xa5>
lea    0xe89(%rip),%rsi
mov    %r14,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
lea    0xe7b(%rip),%rbx
cmovne %r14,%rbx
jmp    11b5 <lcd_parsespecial+0xa5>
mov    %r15,%rbx
jmp    11b5 <lcd_parsespecial+0xa5>
lea    0xe55(%rip),%rbx
mov    %rbx,%rax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [4 x i8] c"\EE\80\80\00"
@.str.1 = [2 x i8] c"E\00"
@.str.2 = [4 x i8] c"\EE\80\81\00"
@.str.3 = [2 x i8] c"N\00"
@.str.4 = [4 x i8] c"\EE\80\82\00"
@.str.5 = [2 x i8] c"D\00"
@.str.6 = [4 x i8] c"\EE\80\83\00"
@.str.7 = [4 x i8] c"\EE\80\84\00"
@.str.8 = [4 x i8] c"\EE\80\85\00"
@.str.9 = [2 x i8] c"L\00"
define i8* @lcd_parsespecial(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %1
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %35
8: ; preds = %1
%9 = load i8*, i8** %3
%10 = call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %8
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i8** %2
br label %35
13: ; preds = %8
%14 = load i8*, i8** %3
%15 = call i64 @strcmp(i8* %14, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %13
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i8** %2
br label %35
18: ; preds = %13
%19 = load i8*, i8** %3
%20 = call i64 @strcmp(i8* %19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %18
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i8** %2
br label %35
23: ; preds = %18
%24 = load i8*, i8** %3
%25 = call i64 @strcmp(i8* %24, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %23
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i8** %2
br label %35
28: ; preds = %23
%29 = load i8*, i8** %3
%30 = call i64 @strcmp(i8* %29, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %33
32: ; preds = %28
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0), i8** %2
br label %35
33: ; preds = %28
%34 = load i8*, i8** %3
store i8* %34, i8** %2
br label %35
35: ; preds = %33, %32, %27, %22, %17, %12, %7
%36 = load i8*, i8** %2
ret i8* %36
}

LLVM IR (-O2):
@.str = [4 x i8] c"\EE\80\80\00"
@.str.1 = [2 x i8] c"E\00"
@.str.2 = [4 x i8] c"\EE\80\81\00"
@.str.3 = [2 x i8] c"N\00"
@.str.4 = [4 x i8] c"\EE\80\82\00"
@.str.5 = [2 x i8] c"D\00"
@.str.6 = [4 x i8] c"\EE\80\83\00"
@.str.7 = [4 x i8] c"\EE\80\84\00"
@.str.8 = [4 x i8] c"\EE\80\85\00"
@.str.9 = [2 x i8] c"L\00"
define i8* @lcd_parsespecial(i8* %0) {
%2 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i64 %2, 0
br i1 %3, label %20, label %4
4: ; preds = %1
%5 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%6 = icmp eq i64 %5, 0
br i1 %6, label %20, label %7
7: ; preds = %4
%8 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%9 = icmp eq i64 %8, 0
br i1 %9, label %20, label %10
10: ; preds = %7
%11 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
br i1 %12, label %20, label %13
13: ; preds = %10
%14 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
br i1 %15, label %20, label %16
16: ; preds = %13
%17 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%18 = icmp eq i64 %17, 0
%19 = select i1 %18, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0), i8* %0
br label %20
20: ; preds = %16, %13, %10, %7, %4, %1
%21 = phi i8* [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), %1 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), %4 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), %7 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), %10 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), %13 ], [ %19, %16 ]
ret i8* %21
}