#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*/ cmdHandle();
int /*<<< orphan*/ ctrlHandle();
int /*<<< orphan*/ grpHandle();
int /*<<< orphan*/ lmpHandle();
int /*<<< orphan*/ plgHandle();
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ topoHandle();
int /*<<< orphan*/ tunnelHandle();
void zcb_onObjectComplete(char *name) {
  ;
  if (strcmp(name, "cmd") == 0) {
    cmdHandle();
  } else if (strcmp(name, "lmp") == 0) {
    lmpHandle();
  } else if (strcmp(name, "grp") == 0) {
    grpHandle();
  } else if (strcmp(name, "plg") == 0) {
    plgHandle();
  } else if (strcmp(name, "ctrl") == 0) {
    ctrlHandle();
  } else if (strcmp(name, "tp") == 0) {
    topoHandle();
  } else if (strcmp(name, "tp+") == 0) {
    topoHandle();
  } else if (strcmp(name, "tunnel") == 0) {
    tunnelHandle();
  }
}


x86 assembly (clang, -O0):
<zcb_onObjectComplete>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xe69(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    11b2 <zcb_onObjectComplete+0x32>
mov    $0x0,%al
call   1080 <cmdHandle@plt>
jmp    12da <zcb_onObjectComplete+0x15a>
mov    -0x8(%rbp),%rdi
lea    0xe47(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    11d8 <zcb_onObjectComplete+0x58>
mov    $0x0,%al
call   1050 <lmpHandle@plt>
jmp    12d5 <zcb_onObjectComplete+0x155>
mov    -0x8(%rbp),%rdi
lea    0xe25(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    11fe <zcb_onObjectComplete+0x7e>
mov    $0x0,%al
call   1030 <grpHandle@plt>
jmp    12d0 <zcb_onObjectComplete+0x150>
mov    -0x8(%rbp),%rdi
lea    0xe03(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1224 <zcb_onObjectComplete+0xa4>
mov    $0x0,%al
call   1060 <plgHandle@plt>
jmp    12cb <zcb_onObjectComplete+0x14b>
mov    -0x8(%rbp),%rdi
lea    0xde1(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    124a <zcb_onObjectComplete+0xca>
mov    $0x0,%al
call   10a0 <ctrlHandle@plt>
jmp    12c6 <zcb_onObjectComplete+0x146>
mov    -0x8(%rbp),%rdi
lea    0xdc0(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1270 <zcb_onObjectComplete+0xf0>
mov    $0x0,%al
call   1090 <topoHandle@plt>
jmp    12c1 <zcb_onObjectComplete+0x141>
mov    -0x8(%rbp),%rdi
lea    0xd9d(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1296 <zcb_onObjectComplete+0x116>
mov    $0x0,%al
call   1090 <topoHandle@plt>
jmp    12bc <zcb_onObjectComplete+0x13c>
mov    -0x8(%rbp),%rdi
lea    0xd7b(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    12b7 <zcb_onObjectComplete+0x137>
mov    $0x0,%al
call   1040 <tunnelHandle@plt>
jmp    12bc <zcb_onObjectComplete+0x13c>
jmp    12c1 <zcb_onObjectComplete+0x141>
jmp    12c6 <zcb_onObjectComplete+0x146>
jmp    12cb <zcb_onObjectComplete+0x14b>
jmp    12d0 <zcb_onObjectComplete+0x150>
jmp    12d5 <zcb_onObjectComplete+0x155>
jmp    12da <zcb_onObjectComplete+0x15a>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<zcb_onObjectComplete>:
push   %rbx
mov    %rdi,%rbx
lea    0xe75(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     122b <zcb_onObjectComplete+0xab>
lea    0xe64(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1233 <zcb_onObjectComplete+0xb3>
lea    0xe50(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     123b <zcb_onObjectComplete+0xbb>
lea    0xe40(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1243 <zcb_onObjectComplete+0xc3>
lea    0xe30(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1253 <zcb_onObjectComplete+0xd3>
lea    0xe21(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     124b <zcb_onObjectComplete+0xcb>
lea    0xe10(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     124b <zcb_onObjectComplete+0xcb>
lea    0xe00(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %rax,%rax
je     125b <zcb_onObjectComplete+0xdb>
pop    %rbx
ret
xor    %eax,%eax
pop    %rbx
jmp    1080 <cmdHandle@plt>
xor    %eax,%eax
pop    %rbx
jmp    1050 <lmpHandle@plt>
xor    %eax,%eax
pop    %rbx
jmp    1030 <grpHandle@plt>
xor    %eax,%eax
pop    %rbx
jmp    1060 <plgHandle@plt>
xor    %eax,%eax
pop    %rbx
jmp    1090 <topoHandle@plt>
xor    %eax,%eax
pop    %rbx
jmp    10a0 <ctrlHandle@plt>
xor    %eax,%eax
pop    %rbx
jmp    1040 <tunnelHandle@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"cmd\00"
@.str.1 = [4 x i8] c"lmp\00"
@.str.2 = [4 x i8] c"grp\00"
@.str.3 = [4 x i8] c"plg\00"
@.str.4 = [5 x i8] c"ctrl\00"
@.str.5 = [3 x i8] c"tp\00"
@.str.6 = [4 x i8] c"tp+\00"
@.str.7 = [7 x i8] c"tunnel\00"
define void @zcb_onObjectComplete(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 (...) @cmdHandle()
br label %57
8: ; preds = %1
%9 = load i8*, i8** %2
%10 = call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %8
%13 = call i32 (...) @lmpHandle()
br label %56
14: ; preds = %8
%15 = load i8*, i8** %2
%16 = call i64 @strcmp(i8* %15, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = call i32 (...) @grpHandle()
br label %55
20: ; preds = %14
%21 = load i8*, i8** %2
%22 = call i64 @strcmp(i8* %21, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %20
%25 = call i32 (...) @plgHandle()
br label %54
26: ; preds = %20
%27 = load i8*, i8** %2
%28 = call i64 @strcmp(i8* %27, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %26
%31 = call i32 (...) @ctrlHandle()
br label %53
32: ; preds = %26
%33 = load i8*, i8** %2
%34 = call i64 @strcmp(i8* %33, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %32
%37 = call i32 (...) @topoHandle()
br label %52
38: ; preds = %32
%39 = load i8*, i8** %2
%40 = call i64 @strcmp(i8* %39, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %44
42: ; preds = %38
%43 = call i32 (...) @topoHandle()
br label %51
44: ; preds = %38
%45 = load i8*, i8** %2
%46 = call i64 @strcmp(i8* %45, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%47 = icmp eq i64 %46, 0
br i1 %47, label %48, label %50
48: ; preds = %44
%49 = call i32 (...) @tunnelHandle()
br label %50
50: ; preds = %48, %44
br label %51
51: ; preds = %50, %42
br label %52
52: ; preds = %51, %36
br label %53
53: ; preds = %52, %30
br label %54
54: ; preds = %53, %24
br label %55
55: ; preds = %54, %18
br label %56
56: ; preds = %55, %12
br label %57
57: ; preds = %56, %6
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"cmd\00"
@.str.1 = [4 x i8] c"lmp\00"
@.str.2 = [4 x i8] c"grp\00"
@.str.3 = [4 x i8] c"plg\00"
@.str.4 = [5 x i8] c"ctrl\00"
@.str.5 = [3 x i8] c"tp\00"
@.str.6 = [4 x i8] c"tp+\00"
@.str.7 = [7 x i8] c"tunnel\00"
define void @zcb_onObjectComplete(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 %4, label %6
4: ; preds = %1
%5 = tail call i32 (...) @cmdHandle()
br label %41
6: ; preds = %1
%7 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %6
%10 = tail call i32 (...) @lmpHandle()
br label %41
11: ; preds = %6
%12 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = tail call i32 (...) @grpHandle()
br label %41
16: ; preds = %11
%17 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = tail call i32 (...) @plgHandle()
br label %41
21: ; preds = %16
%22 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = tail call i32 (...) @ctrlHandle()
br label %41
26: ; preds = %21
%27 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %26
%30 = tail call i32 (...) @topoHandle()
br label %41
31: ; preds = %26
%32 = tail call i64 @strcmp(i8* %0, 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 %34, label %36
34: ; preds = %31
%35 = tail call i32 (...) @topoHandle()
br label %41
36: ; preds = %31
%37 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %41
39: ; preds = %36
%40 = tail call i32 (...) @tunnelHandle()
br label %41
41: ; preds = %9, %19, %29, %36, %39, %34, %24, %14, %4
ret void
}