#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 conn_chk_reqmagic(char *str) {
  if (!strncasecmp("rpcrqst", str, strlen("rpcrqst"))) {
    return 0x0001;
  } else if (!strncasecmp("droptab", str, strlen("droptab"))) {
    return 0x0002;
  } else if (!strncasecmp("dropidx", str, strlen("dropidx"))) {
    return 0x1000;
  } else if (!strncasecmp("rebalan", str, strlen("rebalan"))) {
    return 0x0004;
  } else if (!strncasecmp("sel_rg", str, strlen("rebalan"))) {
    return 0x0008;
  } else if (!strncasecmp("rsync", str, strlen("rsync"))) {
    return 0x0010;
  } else if (!strncasecmp("hb_rqst", str, strlen("hb_rqst"))) {
    return 0x0020;
  } else if (!strncasecmp("sel_wh", str, strlen("sel_wh"))) {
    return 0x0040;
  } else if (!strncasecmp("rg_reco", str, strlen("rg_reco"))) {
    return 0x0080;
  } else if (!strncasecmp("dataport", str, strlen("dataport"))) {
    return 0x0100;
  } else if (!strncasecmp("nextval", str, strlen("nextval"))) {
    return 0x0200;
  } else if (!strncasecmp("crt_idx", str, strlen("crt_idx"))) {
    return 0x0400;
  } else if (!strncasecmp("idxrspl", str, strlen("idxrspl"))) {
    return 0x0800;
  } else if (!strncasecmp("mccssta", str, strlen("mccssta"))) {
    return 0x2000;
  }
  return 0;
}


x86 assembly (clang, -O0):
<conn_chk_reqmagic>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
lea    0xec2(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x18(%rbp),%rsi
mov    %eax,%edx
lea    0xeb0(%rip),%rdi
call   1040 <strncasecmp@plt>
cmp    $0x0,%eax
jne    116a <conn_chk_reqmagic+0x4a>
movl   $0x1,-0x4(%rbp)
jmp    14b1 <conn_chk_reqmagic+0x391>
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
lea    0xe8f(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x20(%rbp),%rsi
mov    %eax,%edx
lea    0xe7d(%rip),%rdi
call   1040 <strncasecmp@plt>
cmp    $0x0,%eax
jne    11a5 <conn_chk_reqmagic+0x85>
movl   $0x2,-0x4(%rbp)
jmp    14b1 <conn_chk_reqmagic+0x391>
mov    -0x10(%rbp),%rax
mov    %rax,-0x28(%rbp)
lea    0xe5c(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x28(%rbp),%rsi
mov    %eax,%edx
lea    0xe4a(%rip),%rdi
call   1040 <strncasecmp@plt>
cmp    $0x0,%eax
jne    11e0 <conn_chk_reqmagic+0xc0>
movl   $0x1000,-0x4(%rbp)
jmp    14b1 <conn_chk_reqmagic+0x391>
mov    -0x10(%rbp),%rax
mov    %rax,-0x30(%rbp)
lea    0xe29(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x30(%rbp),%rsi
mov    %eax,%edx
lea    0xe17(%rip),%rdi
call   1040 <strncasecmp@plt>
cmp    $0x0,%eax
jne    121b <conn_chk_reqmagic+0xfb>
movl   $0x4,-0x4(%rbp)
jmp    14b1 <conn_chk_reqmagic+0x391>
mov    -0x10(%rbp),%rax
mov    %rax,-0x38(%rbp)
lea    0xdee(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x38(%rbp),%rsi
mov    %eax,%edx
lea    0xde4(%rip),%rdi
call   1040 <strncasecmp@plt>
cmp    $0x0,%eax
jne    1256 <conn_chk_reqmagic+0x136>
movl   $0x8,-0x4(%rbp)
jmp    14b1 <conn_chk_reqmagic+0x391>
mov    -0x10(%rbp),%rax
mov    %rax,-0x40(%rbp)
lea    0xdc2(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x40(%rbp),%rsi
mov    %eax,%edx
lea    0xdb0(%rip),%rdi
call   1040 <strncasecmp@plt>
cmp    $0x0,%eax
jne    1291 <conn_chk_reqmagic+0x171>
movl   $0x10,-0x4(%rbp)
jmp    14b1 <conn_chk_reqmagic+0x391>
mov    -0x10(%rbp),%rax
mov    %rax,-0x48(%rbp)
lea    0xd8d(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x48(%rbp),%rsi
mov    %eax,%edx
lea    0xd7b(%rip),%rdi
call   1040 <strncasecmp@plt>
cmp    $0x0,%eax
jne    12cc <conn_chk_reqmagic+0x1ac>
movl   $0x20,-0x4(%rbp)
jmp    14b1 <conn_chk_reqmagic+0x391>
mov    -0x10(%rbp),%rax
mov    %rax,-0x50(%rbp)
lea    0xd5a(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x50(%rbp),%rsi
mov    %eax,%edx
lea    0xd48(%rip),%rdi
call   1040 <strncasecmp@plt>
cmp    $0x0,%eax
jne    1307 <conn_chk_reqmagic+0x1e7>
movl   $0x40,-0x4(%rbp)
jmp    14b1 <conn_chk_reqmagic+0x391>
mov    -0x10(%rbp),%rax
mov    %rax,-0x58(%rbp)
lea    0xd26(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x58(%rbp),%rsi
mov    %eax,%edx
lea    0xd14(%rip),%rdi
call   1040 <strncasecmp@plt>
cmp    $0x0,%eax
jne    1342 <conn_chk_reqmagic+0x222>
movl   $0x80,-0x4(%rbp)
jmp    14b1 <conn_chk_reqmagic+0x391>
mov    -0x10(%rbp),%rax
mov    %rax,-0x60(%rbp)
lea    0xcf3(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x60(%rbp),%rsi
mov    %eax,%edx
lea    0xce1(%rip),%rdi
call   1040 <strncasecmp@plt>
cmp    $0x0,%eax
jne    137d <conn_chk_reqmagic+0x25d>
movl   $0x100,-0x4(%rbp)
jmp    14b1 <conn_chk_reqmagic+0x391>
mov    -0x10(%rbp),%rax
mov    %rax,-0x68(%rbp)
lea    0xcc1(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x68(%rbp),%rsi
mov    %eax,%edx
lea    0xcaf(%rip),%rdi
call   1040 <strncasecmp@plt>
cmp    $0x0,%eax
jne    13b8 <conn_chk_reqmagic+0x298>
movl   $0x200,-0x4(%rbp)
jmp    14b1 <conn_chk_reqmagic+0x391>
mov    -0x10(%rbp),%rax
mov    %rax,-0x70(%rbp)
lea    0xc8e(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x70(%rbp),%rsi
mov    %eax,%edx
lea    0xc7c(%rip),%rdi
call   1040 <strncasecmp@plt>
cmp    $0x0,%eax
jne    13f3 <conn_chk_reqmagic+0x2d3>
movl   $0x400,-0x4(%rbp)
jmp    14b1 <conn_chk_reqmagic+0x391>
mov    -0x10(%rbp),%rax
mov    %rax,-0x78(%rbp)
lea    0xc5b(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x78(%rbp),%rsi
mov    %eax,%edx
lea    0xc49(%rip),%rdi
call   1040 <strncasecmp@plt>
cmp    $0x0,%eax
jne    142e <conn_chk_reqmagic+0x30e>
movl   $0x800,-0x4(%rbp)
jmp    14b1 <conn_chk_reqmagic+0x391>
mov    -0x10(%rbp),%rax
mov    %rax,-0x80(%rbp)
lea    0xc28(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x80(%rbp),%rsi
mov    %eax,%edx
lea    0xc16(%rip),%rdi
call   1040 <strncasecmp@plt>
cmp    $0x0,%eax
jne    1469 <conn_chk_reqmagic+0x349>
movl   $0x2000,-0x4(%rbp)
jmp    14b1 <conn_chk_reqmagic+0x391>
jmp    146e <conn_chk_reqmagic+0x34e>
jmp    1473 <conn_chk_reqmagic+0x353>
jmp    1478 <conn_chk_reqmagic+0x358>
jmp    147d <conn_chk_reqmagic+0x35d>
jmp    1482 <conn_chk_reqmagic+0x362>
jmp    1487 <conn_chk_reqmagic+0x367>
jmp    148c <conn_chk_reqmagic+0x36c>
jmp    1491 <conn_chk_reqmagic+0x371>
jmp    1496 <conn_chk_reqmagic+0x376>
jmp    149b <conn_chk_reqmagic+0x37b>
jmp    14a0 <conn_chk_reqmagic+0x380>
jmp    14a5 <conn_chk_reqmagic+0x385>
jmp    14aa <conn_chk_reqmagic+0x38a>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<conn_chk_reqmagic>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
lea    0xed2(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %eax,%edx
call   1040 <strncasecmp@plt>
test   %eax,%eax
je     1322 <conn_chk_reqmagic+0x202>
lea    0xeb6(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %eax,%edx
call   1040 <strncasecmp@plt>
test   %eax,%eax
je     1329 <conn_chk_reqmagic+0x209>
lea    0xe9a(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %eax,%edx
call   1040 <strncasecmp@plt>
test   %eax,%eax
je     1330 <conn_chk_reqmagic+0x210>
lea    0xe7e(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %eax,%edx
call   1040 <strncasecmp@plt>
test   %eax,%eax
je     1337 <conn_chk_reqmagic+0x217>
lea    0xe5a(%rip),%rdi
call   1030 <strlen@plt>
lea    0xe56(%rip),%rdi
mov    %r14,%rsi
mov    %eax,%edx
call   1040 <strncasecmp@plt>
test   %eax,%eax
je     133e <conn_chk_reqmagic+0x21e>
lea    0xe44(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %eax,%edx
call   1040 <strncasecmp@plt>
test   %eax,%eax
je     1345 <conn_chk_reqmagic+0x225>
lea    0xe26(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %eax,%edx
call   1040 <strncasecmp@plt>
test   %eax,%eax
je     134c <conn_chk_reqmagic+0x22c>
lea    0xe0a(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %eax,%edx
call   1040 <strncasecmp@plt>
test   %eax,%eax
je     1353 <conn_chk_reqmagic+0x233>
lea    0xded(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %eax,%edx
call   1040 <strncasecmp@plt>
test   %eax,%eax
je     135a <conn_chk_reqmagic+0x23a>
lea    0xdd1(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %eax,%edx
call   1040 <strncasecmp@plt>
test   %eax,%eax
je     1361 <conn_chk_reqmagic+0x241>
lea    0xdb6(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %eax,%edx
call   1040 <strncasecmp@plt>
test   %eax,%eax
je     1368 <conn_chk_reqmagic+0x248>
lea    0xd9a(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %eax,%edx
call   1040 <strncasecmp@plt>
test   %eax,%eax
je     136f <conn_chk_reqmagic+0x24f>
lea    0xd7e(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %eax,%edx
call   1040 <strncasecmp@plt>
test   %eax,%eax
je     1376 <conn_chk_reqmagic+0x256>
lea    0xd66(%rip),%rbx
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %eax,%edx
call   1040 <strncasecmp@plt>
mov    %eax,%ecx
xor    %eax,%eax
test   %ecx,%ecx
sete   %al
shl    $0xd,%eax
jmp    137b <conn_chk_reqmagic+0x25b>
mov    $0x1,%eax
jmp    137b <conn_chk_reqmagic+0x25b>
mov    $0x2,%eax
jmp    137b <conn_chk_reqmagic+0x25b>
mov    $0x1000,%eax
jmp    137b <conn_chk_reqmagic+0x25b>
mov    $0x4,%eax
jmp    137b <conn_chk_reqmagic+0x25b>
mov    $0x8,%eax
jmp    137b <conn_chk_reqmagic+0x25b>
mov    $0x10,%eax
jmp    137b <conn_chk_reqmagic+0x25b>
mov    $0x20,%eax
jmp    137b <conn_chk_reqmagic+0x25b>
mov    $0x40,%eax
jmp    137b <conn_chk_reqmagic+0x25b>
mov    $0x80,%eax
jmp    137b <conn_chk_reqmagic+0x25b>
mov    $0x100,%eax
jmp    137b <conn_chk_reqmagic+0x25b>
mov    $0x200,%eax
jmp    137b <conn_chk_reqmagic+0x25b>
mov    $0x400,%eax
jmp    137b <conn_chk_reqmagic+0x25b>
mov    $0x800,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [8 x i8] c"rpcrqst\00"
@.str.1 = [8 x i8] c"droptab\00"
@.str.2 = [8 x i8] c"dropidx\00"
@.str.3 = [8 x i8] c"rebalan\00"
@.str.4 = [7 x i8] c"sel_rg\00"
@.str.5 = [6 x i8] c"rsync\00"
@.str.6 = [8 x i8] c"hb_rqst\00"
@.str.7 = [7 x i8] c"sel_wh\00"
@.str.8 = [8 x i8] c"rg_reco\00"
@.str.9 = [9 x i8] c"dataport\00"
@.str.10 = [8 x i8] c"nextval\00"
@.str.11 = [8 x i8] c"crt_idx\00"
@.str.12 = [8 x i8] c"idxrspl\00"
@.str.13 = [8 x i8] c"mccssta\00"
define i32 @conn_chk_reqmagic(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = call i32 @strlen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @strncasecmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* %4, i32 %5)
%7 = icmp ne i32 %6, 0
br i1 %7, label %9, label %8
8: ; preds = %1
store i32 1, i32* %2
br label %101
9: ; preds = %1
%10 = load i8*, i8** %3
%11 = call i32 @strlen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%12 = call i32 @strncasecmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* %10, i32 %11)
%13 = icmp ne i32 %12, 0
br i1 %13, label %15, label %14
14: ; preds = %9
store i32 2, i32* %2
br label %101
15: ; preds = %9
%16 = load i8*, i8** %3
%17 = call i32 @strlen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%18 = call i32 @strncasecmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* %16, i32 %17)
%19 = icmp ne i32 %18, 0
br i1 %19, label %21, label %20
20: ; preds = %15
store i32 4096, i32* %2
br label %101
21: ; preds = %15
%22 = load i8*, i8** %3
%23 = call i32 @strlen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%24 = call i32 @strncasecmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* %22, i32 %23)
%25 = icmp ne i32 %24, 0
br i1 %25, label %27, label %26
26: ; preds = %21
store i32 4, i32* %2
br label %101
27: ; preds = %21
%28 = load i8*, i8** %3
%29 = call i32 @strlen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%30 = call i32 @strncasecmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* %28, i32 %29)
%31 = icmp ne i32 %30, 0
br i1 %31, label %33, label %32
32: ; preds = %27
store i32 8, i32* %2
br label %101
33: ; preds = %27
%34 = load i8*, i8** %3
%35 = call i32 @strlen(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%36 = call i32 @strncasecmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* %34, i32 %35)
%37 = icmp ne i32 %36, 0
br i1 %37, label %39, label %38
38: ; preds = %33
store i32 16, i32* %2
br label %101
39: ; preds = %33
%40 = load i8*, i8** %3
%41 = call i32 @strlen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
%42 = call i32 @strncasecmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i8* %40, i32 %41)
%43 = icmp ne i32 %42, 0
br i1 %43, label %45, label %44
44: ; preds = %39
store i32 32, i32* %2
br label %101
45: ; preds = %39
%46 = load i8*, i8** %3
%47 = call i32 @strlen(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%48 = call i32 @strncasecmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8* %46, i32 %47)
%49 = icmp ne i32 %48, 0
br i1 %49, label %51, label %50
50: ; preds = %45
store i32 64, i32* %2
br label %101
51: ; preds = %45
%52 = load i8*, i8** %3
%53 = call i32 @strlen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
%54 = call i32 @strncasecmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i8* %52, i32 %53)
%55 = icmp ne i32 %54, 0
br i1 %55, label %57, label %56
56: ; preds = %51
store i32 128, i32* %2
br label %101
57: ; preds = %51
%58 = load i8*, i8** %3
%59 = call i32 @strlen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0))
%60 = call i32 @strncasecmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8* %58, i32 %59)
%61 = icmp ne i32 %60, 0
br i1 %61, label %63, label %62
62: ; preds = %57
store i32 256, i32* %2
br label %101
63: ; preds = %57
%64 = load i8*, i8** %3
%65 = call i32 @strlen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
%66 = call i32 @strncasecmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i8* %64, i32 %65)
%67 = icmp ne i32 %66, 0
br i1 %67, label %69, label %68
68: ; preds = %63
store i32 512, i32* %2
br label %101
69: ; preds = %63
%70 = load i8*, i8** %3
%71 = call i32 @strlen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
%72 = call i32 @strncasecmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0), i8* %70, i32 %71)
%73 = icmp ne i32 %72, 0
br i1 %73, label %75, label %74
74: ; preds = %69
store i32 1024, i32* %2
br label %101
75: ; preds = %69
%76 = load i8*, i8** %3
%77 = call i32 @strlen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
%78 = call i32 @strncasecmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0), i8* %76, i32 %77)
%79 = icmp ne i32 %78, 0
br i1 %79, label %81, label %80
80: ; preds = %75
store i32 2048, i32* %2
br label %101
81: ; preds = %75
%82 = load i8*, i8** %3
%83 = call i32 @strlen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0))
%84 = call i32 @strncasecmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i8* %82, i32 %83)
%85 = icmp ne i32 %84, 0
br i1 %85, label %87, label %86
86: ; preds = %81
store i32 8192, i32* %2
br label %101
87: ; preds = %81
br label %88
88: ; preds = %87
br label %89
89: ; preds = %88
br label %90
90: ; preds = %89
br label %91
91: ; preds = %90
br label %92
92: ; preds = %91
br label %93
93: ; preds = %92
br label %94
94: ; preds = %93
br label %95
95: ; preds = %94
br label %96
96: ; preds = %95
br label %97
97: ; preds = %96
br label %98
98: ; preds = %97
br label %99
99: ; preds = %98
br label %100
100: ; preds = %99
store i32 0, i32* %2
br label %101
101: ; preds = %100, %86, %80, %74, %68, %62, %56, %50, %44, %38, %32, %26, %20, %14, %8
%102 = load i32, i32* %2
ret i32 %102
}

LLVM IR (-O2):
@.str = [8 x i8] c"rpcrqst\00"
@.str.1 = [8 x i8] c"droptab\00"
@.str.2 = [8 x i8] c"dropidx\00"
@.str.3 = [8 x i8] c"rebalan\00"
@.str.4 = [7 x i8] c"sel_rg\00"
@.str.5 = [6 x i8] c"rsync\00"
@.str.6 = [8 x i8] c"hb_rqst\00"
@.str.7 = [7 x i8] c"sel_wh\00"
@.str.8 = [8 x i8] c"rg_reco\00"
@.str.9 = [9 x i8] c"dataport\00"
@.str.10 = [8 x i8] c"nextval\00"
@.str.11 = [8 x i8] c"crt_idx\00"
@.str.12 = [8 x i8] c"idxrspl\00"
@.str.13 = [8 x i8] c"mccssta\00"
define i32 @conn_chk_reqmagic(i8* nocapture %0) {
%2 = tail call i32 @strlen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @strncasecmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* %0, i32 %2)
%4 = icmp eq i32 %3, 0
br i1 %4, label %58, label %5
5: ; preds = %1
%6 = tail call i32 @strlen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%7 = tail call i32 @strncasecmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* %0, i32 %6)
%8 = icmp eq i32 %7, 0
br i1 %8, label %58, label %9
9: ; preds = %5
%10 = tail call i32 @strlen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%11 = tail call i32 @strncasecmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* %0, i32 %10)
%12 = icmp eq i32 %11, 0
br i1 %12, label %58, label %13
13: ; preds = %9
%14 = tail call i32 @strlen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%15 = tail call i32 @strncasecmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* %0, i32 %14)
%16 = icmp eq i32 %15, 0
br i1 %16, label %58, label %17
17: ; preds = %13
%18 = tail call i32 @strlen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%19 = tail call i32 @strncasecmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* %0, i32 %18)
%20 = icmp eq i32 %19, 0
br i1 %20, label %58, label %21
21: ; preds = %17
%22 = tail call i32 @strlen(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%23 = tail call i32 @strncasecmp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* %0, i32 %22)
%24 = icmp eq i32 %23, 0
br i1 %24, label %58, label %25
25: ; preds = %21
%26 = tail call i32 @strlen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
%27 = tail call i32 @strncasecmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i8* %0, i32 %26)
%28 = icmp eq i32 %27, 0
br i1 %28, label %58, label %29
29: ; preds = %25
%30 = tail call i32 @strlen(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%31 = tail call i32 @strncasecmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8* %0, i32 %30)
%32 = icmp eq i32 %31, 0
br i1 %32, label %58, label %33
33: ; preds = %29
%34 = tail call i32 @strlen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
%35 = tail call i32 @strncasecmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i8* %0, i32 %34)
%36 = icmp eq i32 %35, 0
br i1 %36, label %58, label %37
37: ; preds = %33
%38 = tail call i32 @strlen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0))
%39 = tail call i32 @strncasecmp(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8* %0, i32 %38)
%40 = icmp eq i32 %39, 0
br i1 %40, label %58, label %41
41: ; preds = %37
%42 = tail call i32 @strlen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
%43 = tail call i32 @strncasecmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i8* %0, i32 %42)
%44 = icmp eq i32 %43, 0
br i1 %44, label %58, label %45
45: ; preds = %41
%46 = tail call i32 @strlen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
%47 = tail call i32 @strncasecmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0), i8* %0, i32 %46)
%48 = icmp eq i32 %47, 0
br i1 %48, label %58, label %49
49: ; preds = %45
%50 = tail call i32 @strlen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
%51 = tail call i32 @strncasecmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0), i8* %0, i32 %50)
%52 = icmp eq i32 %51, 0
br i1 %52, label %58, label %53
53: ; preds = %49
%54 = tail call i32 @strlen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0))
%55 = tail call i32 @strncasecmp(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i8* %0, i32 %54)
%56 = icmp eq i32 %55, 0
%57 = select i1 %56, i32 8192, i32 0
br label %58
58: ; preds = %53, %49, %45, %41, %37, %33, %29, %25, %21, %17, %13, %9, %5, %1
%59 = phi i32 [ 1, %1 ], [ 2, %5 ], [ 4096, %9 ], [ 4, %13 ], [ 8, %17 ], [ 16, %21 ], [ 32, %25 ], [ 64, %29 ], [ 128, %33 ], [ 256, %37 ], [ 512, %41 ], [ 1024, %45 ], [ 2048, %49 ], [ %57, %53 ]
ret i32 %59
}