#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*/ bitch(char *, ...);
int extract_integer(char **, char *);
char *extract_label(char **, char *, char *);
scalar_t__ isdigit(char);
scalar_t__ strcmp(char *, char *);
int extract_certificate_type(char **s, char *what) {
  int type;
  char *str_type;
  if (isdigit(**s)) {
    type = extract_integer(s, what);
    if (type >= 1 && type <= 8)
      return type;
    if (type == 253 || type == 254)
      return type;
    if (type >= 65280 && type <= 65534)
      return type;
    if (type < 0 || type > 65535) {
      bitch("bad certificate type %d", type);
      return -1;
    }
    if (type == 0 || type == 255 || type == 65535) {
      bitch("certificate type %d is reserved by IANA", type);
      return -1;
    }
    bitch("certificate type %d is unassigned", type);
    return -1;
  } else {
    str_type = extract_label(s, what, "temporary");
    if (!str_type)
      return -1;
    if (strcmp(str_type, "pkix") == 0)
      return 1;
    if (strcmp(str_type, "spki") == 0)
      return 2;
    if (strcmp(str_type, "pgp") == 0)
      return 3;
    if (strcmp(str_type, "ipkix") == 0)
      return 4;
    if (strcmp(str_type, "ispki") == 0)
      return 5;
    if (strcmp(str_type, "ipgp") == 0)
      return 6;
    if (strcmp(str_type, "acpkix") == 0)
      return 7;
    if (strcmp(str_type, "iacpkix") == 0)
      return 8;
    if (strcmp(str_type, "uri") == 0)
      return 253;
    if (strcmp(str_type, "oid") == 0)
      return 254;
    bitch("bad certificate type %s", str_type);
    return -1;
  }
}


x86 assembly (clang, -O0):
<extract_certificate_type>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movsbl (%rax),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     1284 <extract_certificate_type+0x134>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1070 <extract_integer@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x1,-0x1c(%rbp)
jl     11a8 <extract_certificate_type+0x58>
cmpl   $0x8,-0x1c(%rbp)
jg     11a8 <extract_certificate_type+0x58>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1448 <extract_certificate_type+0x2f8>
cmpl   $0xfd,-0x1c(%rbp)
je     11c2 <extract_certificate_type+0x72>
cmpl   $0xfe,-0x1c(%rbp)
jne    11cd <extract_certificate_type+0x7d>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1448 <extract_certificate_type+0x2f8>
cmpl   $0xff00,-0x1c(%rbp)
jl     11f2 <extract_certificate_type+0xa2>
cmpl   $0xfffe,-0x1c(%rbp)
jg     11f2 <extract_certificate_type+0xa2>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    1448 <extract_certificate_type+0x2f8>
cmpl   $0x0,-0x1c(%rbp)
jl     1209 <extract_certificate_type+0xb9>
cmpl   $0xffff,-0x1c(%rbp)
jle    1226 <extract_certificate_type+0xd6>
mov    -0x1c(%rbp),%esi
lea    0xded(%rip),%rdi
mov    $0x0,%al
call   1040 <bitch@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1448 <extract_certificate_type+0x2f8>
cmpl   $0x0,-0x1c(%rbp)
je     124a <extract_certificate_type+0xfa>
cmpl   $0xff,-0x1c(%rbp)
je     124a <extract_certificate_type+0xfa>
cmpl   $0xffff,-0x1c(%rbp)
jne    1267 <extract_certificate_type+0x117>
mov    -0x1c(%rbp),%esi
lea    0xdc4(%rip),%rdi
mov    $0x0,%al
call   1040 <bitch@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1448 <extract_certificate_type+0x2f8>
mov    -0x1c(%rbp),%esi
lea    0xdcf(%rip),%rdi
mov    $0x0,%al
call   1040 <bitch@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1448 <extract_certificate_type+0x2f8>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    0xdcf(%rip),%rdx
call   1050 <extract_label@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    12b3 <extract_certificate_type+0x163>
movl   $0xffffffff,-0x4(%rbp)
jmp    1448 <extract_certificate_type+0x2f8>
mov    -0x28(%rbp),%rdi
lea    0xdc2(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    12d9 <extract_certificate_type+0x189>
movl   $0x1,-0x4(%rbp)
jmp    1448 <extract_certificate_type+0x2f8>
mov    -0x28(%rbp),%rdi
lea    0xd8f(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    12ff <extract_certificate_type+0x1af>
movl   $0x2,-0x4(%rbp)
jmp    1448 <extract_certificate_type+0x2f8>
mov    -0x28(%rbp),%rdi
lea    0xd6f(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1325 <extract_certificate_type+0x1d5>
movl   $0x3,-0x4(%rbp)
jmp    1448 <extract_certificate_type+0x2f8>
mov    -0x28(%rbp),%rdi
lea    0xd3c(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    134b <extract_certificate_type+0x1fb>
movl   $0x4,-0x4(%rbp)
jmp    1448 <extract_certificate_type+0x2f8>
mov    -0x28(%rbp),%rdi
lea    0xd1c(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1371 <extract_certificate_type+0x221>
movl   $0x5,-0x4(%rbp)
jmp    1448 <extract_certificate_type+0x2f8>
mov    -0x28(%rbp),%rdi
lea    0xcfc(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1397 <extract_certificate_type+0x247>
movl   $0x6,-0x4(%rbp)
jmp    1448 <extract_certificate_type+0x2f8>
mov    -0x28(%rbp),%rdi
lea    0xcdc(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    13bd <extract_certificate_type+0x26d>
movl   $0x7,-0x4(%rbp)
jmp    1448 <extract_certificate_type+0x2f8>
mov    -0x28(%rbp),%rdi
lea    0xcb5(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    13e3 <extract_certificate_type+0x293>
movl   $0x8,-0x4(%rbp)
jmp    1448 <extract_certificate_type+0x2f8>
mov    -0x28(%rbp),%rdi
lea    0xc97(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1409 <extract_certificate_type+0x2b9>
movl   $0xfd,-0x4(%rbp)
jmp    1448 <extract_certificate_type+0x2f8>
mov    -0x28(%rbp),%rdi
lea    0xc75(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    142f <extract_certificate_type+0x2df>
movl   $0xfe,-0x4(%rbp)
jmp    1448 <extract_certificate_type+0x2f8>
mov    -0x28(%rbp),%rsi
lea    0xc53(%rip),%rdi
mov    $0x0,%al
call   1040 <bitch@plt>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<extract_certificate_type>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
mov    (%rdi),%rax
movsbl (%rax),%edi
call   1030 <isdigit@plt>
test   %rax,%rax
je     11bb <extract_certificate_type+0x6b>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1070 <extract_integer@plt>
mov    %eax,%ebx
lea    -0xff00(%rbx),%eax
cmp    $0xff,%eax
jb     1344 <extract_certificate_type+0x1f4>
lea    -0x1(%rbx),%eax
cmp    $0x8,%eax
jb     1344 <extract_certificate_type+0x1f4>
lea    -0xfd(%rbx),%eax
cmp    $0x2,%eax
jb     1344 <extract_certificate_type+0x1f4>
cmp    $0x10000,%ebx
jb     12fd <extract_certificate_type+0x1ad>
lea    0xe4a(%rip),%rdi
jmp    1336 <extract_certificate_type+0x1e6>
lea    0xea0(%rip),%rdx
mov    %rbx,%rdi
mov    %r14,%rsi
call   1050 <extract_label@plt>
mov    $0xffffffff,%ebx
test   %rax,%rax
je     1344 <extract_certificate_type+0x1f4>
mov    %rax,%r14
lea    0xe9b(%rip),%rsi
mov    %rax,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     12e1 <extract_certificate_type+0x191>
lea    0xe76(%rip),%rsi
mov    %r14,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     12e8 <extract_certificate_type+0x198>
lea    0xe64(%rip),%rsi
mov    %r14,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     12ef <extract_certificate_type+0x19f>
lea    0xe3f(%rip),%rsi
mov    %r14,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     12f6 <extract_certificate_type+0x1a6>
lea    0xe2d(%rip),%rsi
mov    %r14,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     131a <extract_certificate_type+0x1ca>
lea    0xe1b(%rip),%rsi
mov    %r14,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1321 <extract_certificate_type+0x1d1>
lea    0xe09(%rip),%rsi
mov    %r14,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1328 <extract_certificate_type+0x1d8>
lea    0xdf0(%rip),%rsi
mov    %r14,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     134e <extract_certificate_type+0x1fe>
lea    0xde0(%rip),%rsi
mov    %r14,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1355 <extract_certificate_type+0x205>
lea    0xdcc(%rip),%rsi
mov    %r14,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     135c <extract_certificate_type+0x20c>
lea    0xdb8(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <bitch@plt>
jmp    1344 <extract_certificate_type+0x1f4>
mov    $0x1,%ebx
jmp    1344 <extract_certificate_type+0x1f4>
mov    $0x2,%ebx
jmp    1344 <extract_certificate_type+0x1f4>
mov    $0x3,%ebx
jmp    1344 <extract_certificate_type+0x1f4>
mov    $0x4,%ebx
jmp    1344 <extract_certificate_type+0x1f4>
test   %ebx,%ebx
je     1311 <extract_certificate_type+0x1c1>
cmp    $0xffff,%ebx
je     1311 <extract_certificate_type+0x1c1>
cmp    $0xff,%ebx
jne    132f <extract_certificate_type+0x1df>
lea    0xd00(%rip),%rdi
jmp    1336 <extract_certificate_type+0x1e6>
mov    $0x5,%ebx
jmp    1344 <extract_certificate_type+0x1f4>
mov    $0x6,%ebx
jmp    1344 <extract_certificate_type+0x1f4>
mov    $0x7,%ebx
jmp    1344 <extract_certificate_type+0x1f4>
lea    0xd0a(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <bitch@plt>
mov    $0xffffffff,%ebx
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
mov    $0x8,%ebx
jmp    1344 <extract_certificate_type+0x1f4>
mov    $0xfd,%ebx
jmp    1344 <extract_certificate_type+0x1f4>
mov    $0xfe,%ebx
jmp    1344 <extract_certificate_type+0x1f4>

LLVM IR (-O0):
@.str = [24 x i8] c"bad certificate type %d\00"
@.str.1 = [40 x i8] c"certificate type %d is reserved by IANA\00"
@.str.2 = [34 x i8] c"certificate type %d is unassigned\00"
@.str.3 = [10 x i8] c"temporary\00"
@.str.4 = [5 x i8] c"pkix\00"
@.str.5 = [5 x i8] c"spki\00"
@.str.6 = [4 x i8] c"pgp\00"
@.str.7 = [6 x i8] c"ipkix\00"
@.str.8 = [6 x i8] c"ispki\00"
@.str.9 = [5 x i8] c"ipgp\00"
@.str.10 = [7 x i8] c"acpkix\00"
@.str.11 = [8 x i8] c"iacpkix\00"
@.str.12 = [4 x i8] c"uri\00"
@.str.13 = [4 x i8] c"oid\00"
@.str.14 = [24 x i8] c"bad certificate type %s\00"
define i32 @extract_certificate_type(i8** %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i8*
store i8** %0, i8*** %4
store i8* %1, i8** %5
%8 = load i8**, i8*** %4
%9 = load i8*, i8** %8
%10 = load i8, i8* %9
%11 = call i64 @isdigit(i8 signext %10)
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %64
13: ; preds = %2
%14 = load i8**, i8*** %4
%15 = load i8*, i8** %5
%16 = call i32 @extract_integer(i8** %14, i8* %15)
store i32 %16, i32* %6
%17 = load i32, i32* %6
%18 = icmp sge i32 %17, 1
br i1 %18, label %19, label %24
19: ; preds = %13
%20 = load i32, i32* %6
%21 = icmp sle i32 %20, 8
br i1 %21, label %22, label %24
22: ; preds = %19
%23 = load i32, i32* %6
store i32 %23, i32* %3
br label %124
24: ; preds = %19, %13
%25 = load i32, i32* %6
%26 = icmp eq i32 %25, 253
br i1 %26, label %30, label %27
27: ; preds = %24
%28 = load i32, i32* %6
%29 = icmp eq i32 %28, 254
br i1 %29, label %30, label %32
30: ; preds = %27, %24
%31 = load i32, i32* %6
store i32 %31, i32* %3
br label %124
32: ; preds = %27
%33 = load i32, i32* %6
%34 = icmp sge i32 %33, 65280
br i1 %34, label %35, label %40
35: ; preds = %32
%36 = load i32, i32* %6
%37 = icmp sle i32 %36, 65534
br i1 %37, label %38, label %40
38: ; preds = %35
%39 = load i32, i32* %6
store i32 %39, i32* %3
br label %124
40: ; preds = %35, %32
%41 = load i32, i32* %6
%42 = icmp slt i32 %41, 0
br i1 %42, label %46, label %43
43: ; preds = %40
%44 = load i32, i32* %6
%45 = icmp sgt i32 %44, 65535
br i1 %45, label %46, label %49
46: ; preds = %43, %40
%47 = load i32, i32* %6
%48 = call i32 (i8*, ...) @bitch(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 %47)
store i32 -1, i32* %3
br label %124
49: ; preds = %43
%50 = load i32, i32* %6
%51 = icmp eq i32 %50, 0
br i1 %51, label %58, label %52
52: ; preds = %49
%53 = load i32, i32* %6
%54 = icmp eq i32 %53, 255
br i1 %54, label %58, label %55
55: ; preds = %52
%56 = load i32, i32* %6
%57 = icmp eq i32 %56, 65535
br i1 %57, label %58, label %61
58: ; preds = %55, %52, %49
%59 = load i32, i32* %6
%60 = call i32 (i8*, ...) @bitch(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0), i32 %59)
store i32 -1, i32* %3
br label %124
61: ; preds = %55
%62 = load i32, i32* %6
%63 = call i32 (i8*, ...) @bitch(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), i32 %62)
store i32 -1, i32* %3
br label %124
64: ; preds = %2
%65 = load i8**, i8*** %4
%66 = load i8*, i8** %5
%67 = call i8* @extract_label(i8** %65, i8* %66, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
store i8* %67, i8** %7
%68 = load i8*, i8** %7
%69 = icmp ne i8* %68, null
br i1 %69, label %71, label %70
70: ; preds = %64
store i32 -1, i32* %3
br label %124
71: ; preds = %64
%72 = load i8*, i8** %7
%73 = call i64 @strcmp(i8* %72, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%74 = icmp eq i64 %73, 0
br i1 %74, label %75, label %76
75: ; preds = %71
store i32 1, i32* %3
br label %124
76: ; preds = %71
%77 = load i8*, i8** %7
%78 = call i64 @strcmp(i8* %77, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%79 = icmp eq i64 %78, 0
br i1 %79, label %80, label %81
80: ; preds = %76
store i32 2, i32* %3
br label %124
81: ; preds = %76
%82 = load i8*, i8** %7
%83 = call i64 @strcmp(i8* %82, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%84 = icmp eq i64 %83, 0
br i1 %84, label %85, label %86
85: ; preds = %81
store i32 3, i32* %3
br label %124
86: ; preds = %81
%87 = load i8*, i8** %7
%88 = call i64 @strcmp(i8* %87, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%89 = icmp eq i64 %88, 0
br i1 %89, label %90, label %91
90: ; preds = %86
store i32 4, i32* %3
br label %124
91: ; preds = %86
%92 = load i8*, i8** %7
%93 = call i64 @strcmp(i8* %92, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%94 = icmp eq i64 %93, 0
br i1 %94, label %95, label %96
95: ; preds = %91
store i32 5, i32* %3
br label %124
96: ; preds = %91
%97 = load i8*, i8** %7
%98 = call i64 @strcmp(i8* %97, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%99 = icmp eq i64 %98, 0
br i1 %99, label %100, label %101
100: ; preds = %96
store i32 6, i32* %3
br label %124
101: ; preds = %96
%102 = load i8*, i8** %7
%103 = call i64 @strcmp(i8* %102, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0))
%104 = icmp eq i64 %103, 0
br i1 %104, label %105, label %106
105: ; preds = %101
store i32 7, i32* %3
br label %124
106: ; preds = %101
%107 = load i8*, i8** %7
%108 = call i64 @strcmp(i8* %107, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
%109 = icmp eq i64 %108, 0
br i1 %109, label %110, label %111
110: ; preds = %106
store i32 8, i32* %3
br label %124
111: ; preds = %106
%112 = load i8*, i8** %7
%113 = call i64 @strcmp(i8* %112, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0))
%114 = icmp eq i64 %113, 0
br i1 %114, label %115, label %116
115: ; preds = %111
store i32 253, i32* %3
br label %124
116: ; preds = %111
%117 = load i8*, i8** %7
%118 = call i64 @strcmp(i8* %117, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0))
%119 = icmp eq i64 %118, 0
br i1 %119, label %120, label %121
120: ; preds = %116
store i32 254, i32* %3
br label %124
121: ; preds = %116
%122 = load i8*, i8** %7
%123 = call i32 (i8*, ...) @bitch(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.14, i64 0, i64 0), i8* %122)
store i32 -1, i32* %3
br label %124
124: ; preds = %121, %120, %115, %110, %105, %100, %95, %90, %85, %80, %75, %70, %61, %58, %46, %38, %30, %22
%125 = load i32, i32* %3
ret i32 %125
}

LLVM IR (-O2):
@.str = [24 x i8] c"bad certificate type %d\00"
@.str.1 = [40 x i8] c"certificate type %d is reserved by IANA\00"
@.str.2 = [34 x i8] c"certificate type %d is unassigned\00"
@.str.3 = [10 x i8] c"temporary\00"
@.str.4 = [5 x i8] c"pkix\00"
@.str.5 = [5 x i8] c"spki\00"
@.str.6 = [4 x i8] c"pgp\00"
@.str.7 = [6 x i8] c"ipkix\00"
@.str.8 = [6 x i8] c"ispki\00"
@.str.9 = [5 x i8] c"ipgp\00"
@.str.10 = [7 x i8] c"acpkix\00"
@.str.11 = [8 x i8] c"iacpkix\00"
@.str.12 = [4 x i8] c"uri\00"
@.str.13 = [4 x i8] c"oid\00"
@.str.14 = [24 x i8] c"bad certificate type %s\00"
define i32 @extract_certificate_type(i8** %0, i8* %1) {
%3 = load i8*, i8** %0
%4 = load i8, i8* %3
%5 = tail call i64 @isdigit(i8 signext %4)
%6 = icmp eq i64 %5, 0
br i1 %6, label %22, label %7
7: ; preds = %2
%8 = tail call i32 @extract_integer(i8** %0, i8* %1)
%9 = freeze i32 %8
%10 = add i32 %9, -65280
%11 = icmp ult i32 %10, 255
br i1 %11, label %57, label %12
12: ; preds = %7
switch i32 %9, label %13 [
i32 254, label %57
i32 253, label %57
i32 8, label %57
i32 7, label %57
i32 6, label %57
i32 5, label %57
i32 4, label %57
i32 3, label %57
i32 2, label %57
i32 1, label %57
]
13: ; preds = %12
%14 = icmp ugt i32 %9, 65535
br i1 %14, label %15, label %17
15: ; preds = %13
%16 = tail call i32 (i8*, ...) @bitch(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 %9)
br label %57
17: ; preds = %13
switch i32 %9, label %20 [
i32 65535, label %18
i32 255, label %18
i32 0, label %18
]
18: ; preds = %17, %17, %17
%19 = tail call i32 (i8*, ...) @bitch(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0), i32 %9)
br label %57
20: ; preds = %17
%21 = tail call i32 (i8*, ...) @bitch(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), i32 %9)
br label %57
22: ; preds = %2
%23 = tail call i8* @extract_label(i8** %0, i8* %1, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%24 = icmp eq i8* %23, null
br i1 %24, label %57, label %25
25: ; preds = %22
%26 = tail call i64 @strcmp(i8* %23, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
br i1 %27, label %57, label %28
28: ; preds = %25
%29 = tail call i64 @strcmp(i8* %23, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%30 = icmp eq i64 %29, 0
br i1 %30, label %57, label %31
31: ; preds = %28
%32 = tail call i64 @strcmp(i8* %23, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%33 = icmp eq i64 %32, 0
br i1 %33, label %57, label %34
34: ; preds = %31
%35 = tail call i64 @strcmp(i8* %23, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %57, label %37
37: ; preds = %34
%38 = tail call i64 @strcmp(i8* %23, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%39 = icmp eq i64 %38, 0
br i1 %39, label %57, label %40
40: ; preds = %37
%41 = tail call i64 @strcmp(i8* %23, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%42 = icmp eq i64 %41, 0
br i1 %42, label %57, label %43
43: ; preds = %40
%44 = tail call i64 @strcmp(i8* %23, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
br i1 %45, label %57, label %46
46: ; preds = %43
%47 = tail call i64 @strcmp(i8* %23, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
%48 = icmp eq i64 %47, 0
br i1 %48, label %57, label %49
49: ; preds = %46
%50 = tail call i64 @strcmp(i8* %23, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0))
%51 = icmp eq i64 %50, 0
br i1 %51, label %57, label %52
52: ; preds = %49
%53 = tail call i64 @strcmp(i8* %23, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0))
%54 = icmp eq i64 %53, 0
br i1 %54, label %57, label %55
55: ; preds = %52
%56 = tail call i32 (i8*, ...) @bitch(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.14, i64 0, i64 0), i8* %23)
br label %57
57: ; preds = %12, %12, %12, %12, %12, %12, %12, %12, %12, %12, %7, %52, %49, %46, %43, %40, %37, %34, %31, %28, %25, %22, %55, %20, %18, %15
%58 = phi i32 [ -1, %15 ], [ -1, %18 ], [ -1, %20 ], [ -1, %55 ], [ %9, %12 ], [ -1, %22 ], [ 1, %25 ], [ 2, %28 ], [ 3, %31 ], [ 4, %34 ], [ 5, %37 ], [ 6, %40 ], [ 7, %43 ], [ 8, %46 ], [ 253, %49 ], [ 254, %52 ], [ %9, %7 ], [ %9, %12 ], [ %9, %12 ], [ %9, %12 ], [ %9, %12 ], [ %9, %12 ], [ %9, %12 ], [ %9, %12 ], [ %9, %12 ], [ %9, %12 ]
ret i32 %58
}