#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*/ strlen(char *);
int /*<<< orphan*/ strncasecmp(char *, char *, int /*<<< orphan*/);
int keynote_get_sig_algorithm(char *sig, int *hash, int *enc, int *internal) {
  if (sig == (char *)NULL)
    return 0;
  if (!strncasecmp("sig-dsa-sha1-hex:", sig, strlen("sig-dsa-sha1-hex:"))) {
    *hash = 1;
    *enc = 1;
    *internal = 2;
    return 1;
  }
  if (!strncasecmp("sig-dsa-sha1-base64:", sig,
                   strlen("sig-dsa-sha1-base64:"))) {
    *hash = 1;
    *enc = 2;
    *internal = 2;
    return 1;
  }
  if (!strncasecmp("sig-rsa-md5-hex:", sig, strlen("sig-rsa-md5-hex:"))) {
    *hash = 2;
    *enc = 1;
    *internal = 1;
    return 6;
  }
  if (!strncasecmp("sig-rsa-sha1-hex:", sig, strlen("sig-rsa-sha1-hex:"))) {
    *hash = 1;
    *enc = 1;
    *internal = 1;
    return 6;
  }
  if (!strncasecmp("sig-rsa-md5-base64:", sig, strlen("sig-rsa-md5-base64:"))) {
    *hash = 2;
    *enc = 2;
    *internal = 1;
    return 6;
  }
  if (!strncasecmp("sig-rsa-sha1-base64:", sig,
                   strlen("sig-rsa-sha1-base64:"))) {
    *hash = 1;
    *enc = 2;
    *internal = 1;
    return 6;
  }
  if (!strncasecmp("sig-x509-sha1-base64:", sig,
                   strlen("sig-x509-sha1-base64:"))) {
    *hash = 1;
    *enc = 2;
    *internal = 2;
    return 5;
  }
  if (!strncasecmp("sig-x509-sha1-hex:", sig, strlen("sig-x509-sha1-hex:"))) {
    *hash = 1;
    *enc = 1;
    *internal = 2;
    return 5;
  }
  *hash = 0;
  *enc = 0;
  *internal = 0;
  return 0;
}


x86 assembly (clang, -O0):
<keynote_get_sig_algorithm>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    114f <keynote_get_sig_algorithm+0x2f>
movl   $0x0,-0x4(%rbp)
jmp    143c <keynote_get_sig_algorithm+0x31c>
mov    -0x10(%rbp),%rax
mov    %rax,-0x30(%rbp)
lea    0xea2(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x30(%rbp),%rsi
mov    %eax,%edx
lea    0xe90(%rip),%rdi
call   1040 <strncasecmp@plt>
cmp    $0x0,%eax
jne    11a8 <keynote_get_sig_algorithm+0x88>
mov    -0x18(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x20(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x28(%rbp),%rax
movl   $0x2,(%rax)
movl   $0x1,-0x4(%rbp)
jmp    143c <keynote_get_sig_algorithm+0x31c>
mov    -0x10(%rbp),%rax
mov    %rax,-0x38(%rbp)
lea    0xe5b(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x38(%rbp),%rsi
mov    %eax,%edx
lea    0xe49(%rip),%rdi
call   1040 <strncasecmp@plt>
cmp    $0x0,%eax
jne    1201 <keynote_get_sig_algorithm+0xe1>
mov    -0x18(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x20(%rbp),%rax
movl   $0x2,(%rax)
mov    -0x28(%rbp),%rax
movl   $0x2,(%rax)
movl   $0x1,-0x4(%rbp)
jmp    143c <keynote_get_sig_algorithm+0x31c>
mov    -0x10(%rbp),%rax
mov    %rax,-0x40(%rbp)
lea    0xe17(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x40(%rbp),%rsi
mov    %eax,%edx
lea    0xe05(%rip),%rdi
call   1040 <strncasecmp@plt>
cmp    $0x0,%eax
jne    125a <keynote_get_sig_algorithm+0x13a>
mov    -0x18(%rbp),%rax
movl   $0x2,(%rax)
mov    -0x20(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x28(%rbp),%rax
movl   $0x1,(%rax)
movl   $0x6,-0x4(%rbp)
jmp    143c <keynote_get_sig_algorithm+0x31c>
mov    -0x10(%rbp),%rax
mov    %rax,-0x48(%rbp)
lea    0xdcf(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x48(%rbp),%rsi
mov    %eax,%edx
lea    0xdbd(%rip),%rdi
call   1040 <strncasecmp@plt>
cmp    $0x0,%eax
jne    12b3 <keynote_get_sig_algorithm+0x193>
mov    -0x18(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x20(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x28(%rbp),%rax
movl   $0x1,(%rax)
movl   $0x6,-0x4(%rbp)
jmp    143c <keynote_get_sig_algorithm+0x31c>
mov    -0x10(%rbp),%rax
mov    %rax,-0x50(%rbp)
lea    0xd88(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x50(%rbp),%rsi
mov    %eax,%edx
lea    0xd76(%rip),%rdi
call   1040 <strncasecmp@plt>
cmp    $0x0,%eax
jne    130c <keynote_get_sig_algorithm+0x1ec>
mov    -0x18(%rbp),%rax
movl   $0x2,(%rax)
mov    -0x20(%rbp),%rax
movl   $0x2,(%rax)
mov    -0x28(%rbp),%rax
movl   $0x1,(%rax)
movl   $0x6,-0x4(%rbp)
jmp    143c <keynote_get_sig_algorithm+0x31c>
mov    -0x10(%rbp),%rax
mov    %rax,-0x58(%rbp)
lea    0xd43(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x58(%rbp),%rsi
mov    %eax,%edx
lea    0xd31(%rip),%rdi
call   1040 <strncasecmp@plt>
cmp    $0x0,%eax
jne    1365 <keynote_get_sig_algorithm+0x245>
mov    -0x18(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x20(%rbp),%rax
movl   $0x2,(%rax)
mov    -0x28(%rbp),%rax
movl   $0x1,(%rax)
movl   $0x6,-0x4(%rbp)
jmp    143c <keynote_get_sig_algorithm+0x31c>
mov    -0x10(%rbp),%rax
mov    %rax,-0x60(%rbp)
lea    0xcff(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x60(%rbp),%rsi
mov    %eax,%edx
lea    0xced(%rip),%rdi
call   1040 <strncasecmp@plt>
cmp    $0x0,%eax
jne    13be <keynote_get_sig_algorithm+0x29e>
mov    -0x18(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x20(%rbp),%rax
movl   $0x2,(%rax)
mov    -0x28(%rbp),%rax
movl   $0x2,(%rax)
movl   $0x5,-0x4(%rbp)
jmp    143c <keynote_get_sig_algorithm+0x31c>
mov    -0x10(%rbp),%rax
mov    %rax,-0x68(%rbp)
lea    0xcbc(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x68(%rbp),%rsi
mov    %eax,%edx
lea    0xcaa(%rip),%rdi
call   1040 <strncasecmp@plt>
cmp    $0x0,%eax
jne    1417 <keynote_get_sig_algorithm+0x2f7>
mov    -0x18(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x20(%rbp),%rax
movl   $0x1,(%rax)
mov    -0x28(%rbp),%rax
movl   $0x2,(%rax)
movl   $0x5,-0x4(%rbp)
jmp    143c <keynote_get_sig_algorithm+0x31c>
mov    -0x18(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x20(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x28(%rbp),%rax
movl   $0x0,(%rax)
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<keynote_get_sig_algorithm>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
test   %rdi,%rdi
je     128c <keynote_get_sig_algorithm+0x16c>
mov    %rsi,%r12
mov    %rdi,%rbx
mov    %rdx,0x8(%rsp)
mov    %rcx,0x10(%rsp)
lea    0xeb2(%rip),%rbp
mov    %rbp,%rdi
call   1030 <strlen@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <strncasecmp@plt>
mov    $0x1,%r14d
test   %eax,%eax
je     1293 <keynote_get_sig_algorithm+0x173>
lea    0xe9a(%rip),%rbp
mov    %rbp,%rdi
call   1030 <strlen@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <strncasecmp@plt>
test   %eax,%eax
je     12a6 <keynote_get_sig_algorithm+0x186>
lea    0xe8b(%rip),%rbp
mov    %rbp,%rdi
call   1030 <strlen@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <strncasecmp@plt>
mov    $0x6,%ebp
test   %eax,%eax
je     12b9 <keynote_get_sig_algorithm+0x199>
lea    0xe73(%rip),%r13
mov    %r13,%rdi
call   1030 <strlen@plt>
mov    %r13,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <strncasecmp@plt>
mov    $0x1,%r13d
test   %eax,%eax
je     12cd <keynote_get_sig_algorithm+0x1ad>
lea    0xe5b(%rip),%r14
mov    %r14,%rdi
call   1030 <strlen@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <strncasecmp@plt>
mov    $0x2,%r15d
test   %eax,%eax
je     12db <keynote_get_sig_algorithm+0x1bb>
lea    0xe45(%rip),%r14
mov    %r14,%rdi
call   1030 <strlen@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <strncasecmp@plt>
test   %eax,%eax
je     12e3 <keynote_get_sig_algorithm+0x1c3>
lea    0xe36(%rip),%rbp
mov    %rbp,%rdi
call   1030 <strlen@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <strncasecmp@plt>
test   %eax,%eax
je     12eb <keynote_get_sig_algorithm+0x1cb>
lea    0xe28(%rip),%rbp
mov    %rbp,%rdi
call   1030 <strlen@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %eax,%edx
call   1040 <strncasecmp@plt>
xor    %r14d,%r14d
test   %eax,%eax
sete   %r14b
lea    (%r14,%r14,1),%r13d
lea    (%r14,%r14,4),%ebp
mov    %r14d,%r15d
jmp    1302 <keynote_get_sig_algorithm+0x1e2>
xor    %ebp,%ebp
jmp    1316 <keynote_get_sig_algorithm+0x1f6>
mov    $0x2,%r13d
mov    $0x1,%r15d
mov    $0x1,%ebp
jmp    1302 <keynote_get_sig_algorithm+0x1e2>
mov    $0x2,%r15d
mov    $0x2,%r13d
mov    $0x1,%ebp
jmp    1302 <keynote_get_sig_algorithm+0x1e2>
mov    $0x1,%r15d
mov    $0x2,%r14d
mov    $0x1,%r13d
jmp    1302 <keynote_get_sig_algorithm+0x1e2>
mov    $0x1,%r14d
mov    $0x1,%r15d
jmp    1302 <keynote_get_sig_algorithm+0x1e2>
mov    $0x2,%r14d
jmp    1302 <keynote_get_sig_algorithm+0x1e2>
mov    $0x1,%r14d
jmp    1302 <keynote_get_sig_algorithm+0x1e2>
mov    $0x5,%ebp
mov    $0x2,%r15d
mov    $0x1,%r14d
mov    $0x2,%r13d
mov    0x10(%rsp),%rax
mov    0x8(%rsp),%rcx
mov    %r14d,(%r12)
mov    %r15d,(%rcx)
mov    %r13d,(%rax)
mov    %ebp,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [18 x i8] c"sig-dsa-sha1-hex:\00"
@.str.1 = [21 x i8] c"sig-dsa-sha1-base64:\00"
@.str.2 = [17 x i8] c"sig-rsa-md5-hex:\00"
@.str.3 = [18 x i8] c"sig-rsa-sha1-hex:\00"
@.str.4 = [20 x i8] c"sig-rsa-md5-base64:\00"
@.str.5 = [21 x i8] c"sig-rsa-sha1-base64:\00"
@.str.6 = [22 x i8] c"sig-x509-sha1-base64:\00"
@.str.7 = [19 x i8] c"sig-x509-sha1-hex:\00"
define i32 @keynote_get_sig_algorithm(i8* %0, i32* %1, i32* %2, i32* %3) {
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i32*
store i8* %0, i8** %6
store i32* %1, i32** %7
store i32* %2, i32** %8
store i32* %3, i32** %9
%10 = load i8*, i8** %6
%11 = icmp eq i8* %10, null
br i1 %11, label %12, label %13
12: ; preds = %4
store i32 0, i32* %5
br label %89
13: ; preds = %4
%14 = load i8*, i8** %6
%15 = call i32 @strlen(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%16 = call i32 @strncasecmp(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %14, i32 %15)
%17 = icmp ne i32 %16, 0
br i1 %17, label %22, label %18
18: ; preds = %13
%19 = load i32*, i32** %7
store i32 1, i32* %19
%20 = load i32*, i32** %8
store i32 1, i32* %20
%21 = load i32*, i32** %9
store i32 2, i32* %21
store i32 1, i32* %5
br label %89
22: ; preds = %13
%23 = load i8*, i8** %6
%24 = call i32 @strlen(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
%25 = call i32 @strncasecmp(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* %23, i32 %24)
%26 = icmp ne i32 %25, 0
br i1 %26, label %31, label %27
27: ; preds = %22
%28 = load i32*, i32** %7
store i32 1, i32* %28
%29 = load i32*, i32** %8
store i32 2, i32* %29
%30 = load i32*, i32** %9
store i32 2, i32* %30
store i32 1, i32* %5
br label %89
31: ; preds = %22
%32 = load i8*, i8** %6
%33 = call i32 @strlen(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
%34 = call i32 @strncasecmp(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* %32, i32 %33)
%35 = icmp ne i32 %34, 0
br i1 %35, label %40, label %36
36: ; preds = %31
%37 = load i32*, i32** %7
store i32 2, i32* %37
%38 = load i32*, i32** %8
store i32 1, i32* %38
%39 = load i32*, i32** %9
store i32 1, i32* %39
store i32 6, i32* %5
br label %89
40: ; preds = %31
%41 = load i8*, i8** %6
%42 = call i32 @strlen(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%43 = call i32 @strncasecmp(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i8* %41, i32 %42)
%44 = icmp ne i32 %43, 0
br i1 %44, label %49, label %45
45: ; preds = %40
%46 = load i32*, i32** %7
store i32 1, i32* %46
%47 = load i32*, i32** %8
store i32 1, i32* %47
%48 = load i32*, i32** %9
store i32 1, i32* %48
store i32 6, i32* %5
br label %89
49: ; preds = %40
%50 = load i8*, i8** %6
%51 = call i32 @strlen(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%52 = call i32 @strncasecmp(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i8* %50, i32 %51)
%53 = icmp ne i32 %52, 0
br i1 %53, label %58, label %54
54: ; preds = %49
%55 = load i32*, i32** %7
store i32 2, i32* %55
%56 = load i32*, i32** %8
store i32 2, i32* %56
%57 = load i32*, i32** %9
store i32 1, i32* %57
store i32 6, i32* %5
br label %89
58: ; preds = %49
%59 = load i8*, i8** %6
%60 = call i32 @strlen(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
%61 = call i32 @strncasecmp(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i8* %59, i32 %60)
%62 = icmp ne i32 %61, 0
br i1 %62, label %67, label %63
63: ; preds = %58
%64 = load i32*, i32** %7
store i32 1, i32* %64
%65 = load i32*, i32** %8
store i32 2, i32* %65
%66 = load i32*, i32** %9
store i32 1, i32* %66
store i32 6, i32* %5
br label %89
67: ; preds = %58
%68 = load i8*, i8** %6
%69 = call i32 @strlen(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0))
%70 = call i32 @strncasecmp(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0), i8* %68, i32 %69)
%71 = icmp ne i32 %70, 0
br i1 %71, label %76, label %72
72: ; preds = %67
%73 = load i32*, i32** %7
store i32 1, i32* %73
%74 = load i32*, i32** %8
store i32 2, i32* %74
%75 = load i32*, i32** %9
store i32 2, i32* %75
store i32 5, i32* %5
br label %89
76: ; preds = %67
%77 = load i8*, i8** %6
%78 = call i32 @strlen(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0))
%79 = call i32 @strncasecmp(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0), i8* %77, i32 %78)
%80 = icmp ne i32 %79, 0
br i1 %80, label %85, label %81
81: ; preds = %76
%82 = load i32*, i32** %7
store i32 1, i32* %82
%83 = load i32*, i32** %8
store i32 1, i32* %83
%84 = load i32*, i32** %9
store i32 2, i32* %84
store i32 5, i32* %5
br label %89
85: ; preds = %76
%86 = load i32*, i32** %7
store i32 0, i32* %86
%87 = load i32*, i32** %8
store i32 0, i32* %87
%88 = load i32*, i32** %9
store i32 0, i32* %88
store i32 0, i32* %5
br label %89
89: ; preds = %85, %81, %72, %63, %54, %45, %36, %27, %18, %12
%90 = load i32, i32* %5
ret i32 %90
}

LLVM IR (-O2):
@.str = [18 x i8] c"sig-dsa-sha1-hex:\00"
@.str.1 = [21 x i8] c"sig-dsa-sha1-base64:\00"
@.str.2 = [17 x i8] c"sig-rsa-md5-hex:\00"
@.str.3 = [18 x i8] c"sig-rsa-sha1-hex:\00"
@.str.4 = [20 x i8] c"sig-rsa-md5-base64:\00"
@.str.5 = [21 x i8] c"sig-rsa-sha1-base64:\00"
@.str.6 = [22 x i8] c"sig-x509-sha1-base64:\00"
@.str.7 = [19 x i8] c"sig-x509-sha1-hex:\00"
define i32 @keynote_get_sig_algorithm(i8* %0, i32* nocapture writeonly %1, i32* nocapture writeonly %2, i32* nocapture writeonly %3) {
%5 = icmp eq i8* %0, null
br i1 %5, label %46, label %6
6: ; preds = %4
%7 = tail call i32 @strlen(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%8 = tail call i32 @strncasecmp(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %0, i32 %7)
%9 = icmp eq i32 %8, 0
br i1 %9, label %41, label %10
10: ; preds = %6
%11 = tail call i32 @strlen(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
%12 = tail call i32 @strncasecmp(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* %0, i32 %11)
%13 = icmp eq i32 %12, 0
br i1 %13, label %41, label %14
14: ; preds = %10
%15 = tail call i32 @strlen(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
%16 = tail call i32 @strncasecmp(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8* %0, i32 %15)
%17 = icmp eq i32 %16, 0
br i1 %17, label %41, label %18
18: ; preds = %14
%19 = tail call i32 @strlen(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%20 = tail call i32 @strncasecmp(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i8* %0, i32 %19)
%21 = icmp eq i32 %20, 0
br i1 %21, label %41, label %22
22: ; preds = %18
%23 = tail call i32 @strlen(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%24 = tail call i32 @strncasecmp(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i8* %0, i32 %23)
%25 = icmp eq i32 %24, 0
br i1 %25, label %41, label %26
26: ; preds = %22
%27 = tail call i32 @strlen(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0))
%28 = tail call i32 @strncasecmp(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i8* %0, i32 %27)
%29 = icmp eq i32 %28, 0
br i1 %29, label %41, label %30
30: ; preds = %26
%31 = tail call i32 @strlen(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0))
%32 = tail call i32 @strncasecmp(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0), i8* %0, i32 %31)
%33 = icmp eq i32 %32, 0
br i1 %33, label %41, label %34
34: ; preds = %30
%35 = tail call i32 @strlen(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0))
%36 = tail call i32 @strncasecmp(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0), i8* %0, i32 %35)
%37 = icmp eq i32 %36, 0
%38 = zext i1 %37 to i32
%39 = select i1 %37, i32 2, i32 0
%40 = select i1 %37, i32 5, i32 0
br label %41
41: ; preds = %34, %30, %26, %22, %18, %14, %10, %6
%42 = phi i32 [ 1, %6 ], [ 1, %10 ], [ 2, %14 ], [ 1, %18 ], [ 2, %22 ], [ 1, %26 ], [ 1, %30 ], [ %38, %34 ]
%43 = phi i32 [ 1, %6 ], [ 2, %10 ], [ 1, %14 ], [ 1, %18 ], [ 2, %22 ], [ 2, %26 ], [ 2, %30 ], [ %38, %34 ]
%44 = phi i32 [ 2, %6 ], [ 2, %10 ], [ 1, %14 ], [ 1, %18 ], [ 1, %22 ], [ 1, %26 ], [ 2, %30 ], [ %39, %34 ]
%45 = phi i32 [ 1, %6 ], [ 1, %10 ], [ 6, %14 ], [ 6, %18 ], [ 6, %22 ], [ 6, %26 ], [ 5, %30 ], [ %40, %34 ]
store i32 %42, i32* %1
store i32 %43, i32* %2
store i32 %44, i32* %3
br label %46
46: ; preds = %41, %4
%47 = phi i32 [ 0, %4 ], [ %45, %41 ]
ret i32 %47
}