#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*/ clean_exit();
int /*<<< orphan*/ default_smit();
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fsmgrmain();
int /*<<< orphan*/ kernelmgrmain();
int /*<<< orphan*/ printf(char *, char *, ...);
int /*<<< orphan*/ smit_init();
int /*<<< orphan*/ smitfsmenu();
int /*<<< orphan*/ smitscmenu();
int /*<<< orphan*/ smitsfwmenu();
int /*<<< orphan*/ smitusermenu();
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ sysinfo();
int /*<<< orphan*/ usage();
int /*<<< orphan*/ usermgrmain();
int main(int argc, char *argv[]) {
  if (argv[1] == NULL) {
    default_smit();
  }
  if (strcmp(argv[1], "about") == 0) {
    printf("%s Version %s\n", "FreeBSD SMIT", "0.1");
    printf("%s\n", "Copyright (C) 2015 by Vincent");
    exit(0);
  } else if (strcmp(argv[1], "help") == 0) {
    usage();
  } else if (strcmp(argv[1], "sysinfo") == 0) {
    smit_init();
    sysinfo();
    clean_exit();
  } else if (strcmp(argv[1], "usermenu") == 0) {
    smit_init();
    smitusermenu();
    clean_exit();
  } else if (strcmp(argv[1], "filesysmenu") == 0) {
    smit_init();
    smitfsmenu();
    clean_exit();
  } else if (strcmp(argv[1], "softwaremgr") == 0) {
    smit_init();
    smitsfwmenu();
    clean_exit();
  } else if (strcmp(argv[1], "sysconfig") == 0) {
    smit_init();
    smitscmenu();
    clean_exit();
  } else if (strcmp(argv[1], "fsmgr") == 0) {
    smit_init();
    fsmgrmain();
    clean_exit();
  } else if (strcmp(argv[1], "usermgr") == 0) {
    smit_init();
    usermgrmain();
    clean_exit();
  } else if (strcmp(argv[1], "kernelmgr") == 0) {
    smit_init();
    kernelmgrmain();
    clean_exit();
  } else
    printf("\nInvaild Option: %s\n\n", argv[1]);
  usage();
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cmpq   $0x0,0x8(%rax)
jne    121c <main+0x2c>
mov    $0x0,%al
call   1030 <default_smit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xdd5(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    1272 <main+0x82>
lea    0xdc5(%rip),%rdi
lea    0xdcd(%rip),%rsi
lea    0xdd3(%rip),%rdx
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xdb4(%rip),%rdi
lea    0xdc2(%rip),%rsi
mov    $0x0,%al
call   1060 <printf@plt>
xor    %edi,%edi
call   10f0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xdc3(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    129c <main+0xac>
mov    $0x0,%al
call   10c0 <usage@plt>
jmp    149a <main+0x2aa>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd9e(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    12d4 <main+0xe4>
mov    $0x0,%al
call   10d0 <smit_init@plt>
mov    $0x0,%al
call   10e0 <sysinfo@plt>
mov    $0x0,%al
call   1070 <clean_exit@plt>
jmp    1495 <main+0x2a5>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd6e(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    130c <main+0x11c>
mov    $0x0,%al
call   10d0 <smit_init@plt>
mov    $0x0,%al
call   1050 <smitusermenu@plt>
mov    $0x0,%al
call   1070 <clean_exit@plt>
jmp    1490 <main+0x2a0>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd3f(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    1344 <main+0x154>
mov    $0x0,%al
call   10d0 <smit_init@plt>
mov    $0x0,%al
call   1100 <smitfsmenu@plt>
mov    $0x0,%al
call   1070 <clean_exit@plt>
jmp    148b <main+0x29b>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd13(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    137c <main+0x18c>
mov    $0x0,%al
call   10d0 <smit_init@plt>
mov    $0x0,%al
call   1040 <smitsfwmenu@plt>
mov    $0x0,%al
call   1070 <clean_exit@plt>
jmp    1486 <main+0x296>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xce7(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    13b4 <main+0x1c4>
mov    $0x0,%al
call   10d0 <smit_init@plt>
mov    $0x0,%al
call   1110 <smitscmenu@plt>
mov    $0x0,%al
call   1070 <clean_exit@plt>
jmp    1481 <main+0x291>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xcb9(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    13ec <main+0x1fc>
mov    $0x0,%al
call   10d0 <smit_init@plt>
mov    $0x0,%al
call   10a0 <fsmgrmain@plt>
mov    $0x0,%al
call   1070 <clean_exit@plt>
jmp    147c <main+0x28c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xc87(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    1424 <main+0x234>
mov    $0x0,%al
call   10d0 <smit_init@plt>
mov    $0x0,%al
call   1090 <usermgrmain@plt>
mov    $0x0,%al
call   1070 <clean_exit@plt>
jmp    1477 <main+0x287>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xc57(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    145c <main+0x26c>
mov    $0x0,%al
call   10d0 <smit_init@plt>
mov    $0x0,%al
call   10b0 <kernelmgrmain@plt>
mov    $0x0,%al
call   1070 <clean_exit@plt>
jmp    1472 <main+0x282>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
lea    0xc29(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    1477 <main+0x287>
jmp    147c <main+0x28c>
jmp    1481 <main+0x291>
jmp    1486 <main+0x296>
jmp    148b <main+0x29b>
jmp    1490 <main+0x2a0>
jmp    1495 <main+0x2a5>
jmp    149a <main+0x2aa>
jmp    149f <main+0x2af>
mov    $0x0,%al
call   10c0 <usage@plt>
xor    %edi,%edi
call   10f0 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    %rsi,%rbx
mov    0x8(%rsi),%rdi
test   %rdi,%rdi
jne    1208 <main+0x18>
xor    %eax,%eax
call   1030 <default_smit@plt>
mov    0x8(%rbx),%rdi
lea    0xdf1(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
jne    1251 <main+0x61>
lea    0xde6(%rip),%rdi
lea    0xdee(%rip),%rsi
lea    0xdf4(%rip),%rdx
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xdd5(%rip),%rdi
lea    0xde3(%rip),%rsi
xor    %eax,%eax
call   1060 <printf@plt>
xor    %edi,%edi
call   10f0 <exit@plt>
mov    0x8(%rbx),%rdi
lea    0xde8(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
jne    1272 <main+0x82>
xor    %eax,%eax
call   10c0 <usage@plt>
jmp    13ab <main+0x1bb>
mov    0x8(%rbx),%rdi
lea    0xdcc(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
jne    129a <main+0xaa>
xor    %eax,%eax
call   10d0 <smit_init@plt>
xor    %eax,%eax
call   10e0 <sysinfo@plt>
jmp    13a4 <main+0x1b4>
mov    0x8(%rbx),%rdi
lea    0xdac(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
jne    12c2 <main+0xd2>
xor    %eax,%eax
call   10d0 <smit_init@plt>
xor    %eax,%eax
call   1050 <smitusermenu@plt>
jmp    13a4 <main+0x1b4>
mov    0x8(%rbx),%rdi
lea    0xd8d(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
jne    12ea <main+0xfa>
xor    %eax,%eax
call   10d0 <smit_init@plt>
xor    %eax,%eax
call   1100 <smitfsmenu@plt>
jmp    13a4 <main+0x1b4>
mov    0x8(%rbx),%rdi
lea    0xd71(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
jne    1312 <main+0x122>
xor    %eax,%eax
call   10d0 <smit_init@plt>
xor    %eax,%eax
call   1040 <smitsfwmenu@plt>
jmp    13a4 <main+0x1b4>
mov    0x8(%rbx),%rdi
lea    0xd55(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
jne    1337 <main+0x147>
xor    %eax,%eax
call   10d0 <smit_init@plt>
xor    %eax,%eax
call   1110 <smitscmenu@plt>
jmp    13a4 <main+0x1b4>
mov    0x8(%rbx),%rdi
lea    0xd3a(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
jne    135c <main+0x16c>
xor    %eax,%eax
call   10d0 <smit_init@plt>
xor    %eax,%eax
call   10a0 <fsmgrmain@plt>
jmp    13a4 <main+0x1b4>
mov    0x8(%rbx),%rdi
lea    0xd1b(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
jne    1381 <main+0x191>
xor    %eax,%eax
call   10d0 <smit_init@plt>
xor    %eax,%eax
call   1090 <usermgrmain@plt>
jmp    13a4 <main+0x1b4>
mov    0x8(%rbx),%rdi
lea    0xcfe(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
jne    13b9 <main+0x1c9>
xor    %eax,%eax
call   10d0 <smit_init@plt>
xor    %eax,%eax
call   10b0 <kernelmgrmain@plt>
xor    %eax,%eax
call   1070 <clean_exit@plt>
xor    %eax,%eax
call   10c0 <usage@plt>
xor    %edi,%edi
call   10f0 <exit@plt>
mov    0x8(%rbx),%rsi
lea    0xcd0(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    13ab <main+0x1bb>

LLVM IR (-O0):
@.str = [6 x i8] c"about\00"
@.str.1 = [15 x i8] c"%s Version %s\0A\00"
@.str.2 = [13 x i8] c"FreeBSD SMIT\00"
@.str.3 = [4 x i8] c"0.1\00"
@.str.4 = [4 x i8] c"%s\0A\00"
@.str.5 = [30 x i8] c"Copyright (C) 2015 by Vincent\00"
@.str.6 = [5 x i8] c"help\00"
@.str.7 = [8 x i8] c"sysinfo\00"
@.str.8 = [9 x i8] c"usermenu\00"
@.str.9 = [12 x i8] c"filesysmenu\00"
@.str.10 = [12 x i8] c"softwaremgr\00"
@.str.11 = [10 x i8] c"sysconfig\00"
@.str.12 = [6 x i8] c"fsmgr\00"
@.str.13 = [8 x i8] c"usermgr\00"
@.str.14 = [10 x i8] c"kernelmgr\00"
@.str.15 = [22 x i8] c"\0AInvaild Option: %s\0A\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i8**, i8*** %5
%7 = getelementptr inbounds i8*, i8** %6, i64 1
%8 = load i8*, i8** %7
%9 = icmp eq i8* %8, null
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = call i32 (...) @default_smit()
br label %12
12: ; preds = %10, %2
%13 = load i8**, i8*** %5
%14 = getelementptr inbounds i8*, i8** %13, i64 1
%15 = load i8*, i8** %14
%16 = call i64 @strcmp(i8* %15, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %22
18: ; preds = %12
%19 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%20 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0))
%21 = call i32 @exit(i32 0)
unreachable
22: ; preds = %12
%23 = load i8**, i8*** %5
%24 = getelementptr inbounds i8*, i8** %23, i64 1
%25 = load i8*, i8** %24
%26 = call i64 @strcmp(i8* %25, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %22
%29 = call i32 (...) @usage()
br label %123
30: ; preds = %22
%31 = load i8**, i8*** %5
%32 = getelementptr inbounds i8*, i8** %31, i64 1
%33 = load i8*, i8** %32
%34 = call i64 @strcmp(i8* %33, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %40
36: ; preds = %30
%37 = call i32 (...) @smit_init()
%38 = call i32 (...) @sysinfo()
%39 = call i32 (...) @clean_exit()
br label %122
40: ; preds = %30
%41 = load i8**, i8*** %5
%42 = getelementptr inbounds i8*, i8** %41, i64 1
%43 = load i8*, i8** %42
%44 = call i64 @strcmp(i8* %43, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %50
46: ; preds = %40
%47 = call i32 (...) @smit_init()
%48 = call i32 (...) @smitusermenu()
%49 = call i32 (...) @clean_exit()
br label %121
50: ; preds = %40
%51 = load i8**, i8*** %5
%52 = getelementptr inbounds i8*, i8** %51, i64 1
%53 = load i8*, i8** %52
%54 = call i64 @strcmp(i8* %53, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0))
%55 = icmp eq i64 %54, 0
br i1 %55, label %56, label %60
56: ; preds = %50
%57 = call i32 (...) @smit_init()
%58 = call i32 (...) @smitfsmenu()
%59 = call i32 (...) @clean_exit()
br label %120
60: ; preds = %50
%61 = load i8**, i8*** %5
%62 = getelementptr inbounds i8*, i8** %61, i64 1
%63 = load i8*, i8** %62
%64 = call i64 @strcmp(i8* %63, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0))
%65 = icmp eq i64 %64, 0
br i1 %65, label %66, label %70
66: ; preds = %60
%67 = call i32 (...) @smit_init()
%68 = call i32 (...) @smitsfwmenu()
%69 = call i32 (...) @clean_exit()
br label %119
70: ; preds = %60
%71 = load i8**, i8*** %5
%72 = getelementptr inbounds i8*, i8** %71, i64 1
%73 = load i8*, i8** %72
%74 = call i64 @strcmp(i8* %73, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0))
%75 = icmp eq i64 %74, 0
br i1 %75, label %76, label %80
76: ; preds = %70
%77 = call i32 (...) @smit_init()
%78 = call i32 (...) @smitscmenu()
%79 = call i32 (...) @clean_exit()
br label %118
80: ; preds = %70
%81 = load i8**, i8*** %5
%82 = getelementptr inbounds i8*, i8** %81, i64 1
%83 = load i8*, i8** %82
%84 = call i64 @strcmp(i8* %83, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
%85 = icmp eq i64 %84, 0
br i1 %85, label %86, label %90
86: ; preds = %80
%87 = call i32 (...) @smit_init()
%88 = call i32 (...) @fsmgrmain()
%89 = call i32 (...) @clean_exit()
br label %117
90: ; preds = %80
%91 = load i8**, i8*** %5
%92 = getelementptr inbounds i8*, i8** %91, i64 1
%93 = load i8*, i8** %92
%94 = call i64 @strcmp(i8* %93, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0))
%95 = icmp eq i64 %94, 0
br i1 %95, label %96, label %100
96: ; preds = %90
%97 = call i32 (...) @smit_init()
%98 = call i32 (...) @usermgrmain()
%99 = call i32 (...) @clean_exit()
br label %116
100: ; preds = %90
%101 = load i8**, i8*** %5
%102 = getelementptr inbounds i8*, i8** %101, i64 1
%103 = load i8*, i8** %102
%104 = call i64 @strcmp(i8* %103, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0))
%105 = icmp eq i64 %104, 0
br i1 %105, label %106, label %110
106: ; preds = %100
%107 = call i32 (...) @smit_init()
%108 = call i32 (...) @kernelmgrmain()
%109 = call i32 (...) @clean_exit()
br label %115
110: ; preds = %100
%111 = load i8**, i8*** %5
%112 = getelementptr inbounds i8*, i8** %111, i64 1
%113 = load i8*, i8** %112
%114 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.15, i64 0, i64 0), i8* %113)
br label %115
115: ; preds = %110, %106
br label %116
116: ; preds = %115, %96
br label %117
117: ; preds = %116, %86
br label %118
118: ; preds = %117, %76
br label %119
119: ; preds = %118, %66
br label %120
120: ; preds = %119, %56
br label %121
121: ; preds = %120, %46
br label %122
122: ; preds = %121, %36
br label %123
123: ; preds = %122, %28
br label %124
124: ; preds = %123
%125 = call i32 (...) @usage()
%126 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [6 x i8] c"about\00"
@.str.1 = [15 x i8] c"%s Version %s\0A\00"
@.str.2 = [13 x i8] c"FreeBSD SMIT\00"
@.str.3 = [4 x i8] c"0.1\00"
@.str.4 = [4 x i8] c"%s\0A\00"
@.str.5 = [30 x i8] c"Copyright (C) 2015 by Vincent\00"
@.str.6 = [5 x i8] c"help\00"
@.str.7 = [8 x i8] c"sysinfo\00"
@.str.8 = [9 x i8] c"usermenu\00"
@.str.9 = [12 x i8] c"filesysmenu\00"
@.str.10 = [12 x i8] c"softwaremgr\00"
@.str.11 = [10 x i8] c"sysconfig\00"
@.str.12 = [6 x i8] c"fsmgr\00"
@.str.13 = [8 x i8] c"usermgr\00"
@.str.14 = [10 x i8] c"kernelmgr\00"
@.str.15 = [22 x i8] c"\0AInvaild Option: %s\0A\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = getelementptr inbounds i8*, i8** %1, i64 1
%4 = load i8*, i8** %3
%5 = icmp eq i8* %4, null
br i1 %5, label %6, label %9
6: ; preds = %2
%7 = tail call i32 (...) @default_smit()
%8 = load i8*, i8** %3
br label %9
9: ; preds = %6, %2
%10 = phi i8* [ %8, %6 ], [ %4, %2 ]
%11 = tail call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %17
13: ; preds = %9
%14 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%15 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0))
%16 = tail call i32 @exit(i32 0)
unreachable
17: ; preds = %9
%18 = load i8*, i8** %3
%19 = tail call i64 @strcmp(i8* %18, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %17
%22 = tail call i32 (...) @usage()
br label %90
23: ; preds = %17
%24 = load i8*, i8** %3
%25 = tail call i64 @strcmp(i8* %24, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %31
27: ; preds = %23
%28 = tail call i32 (...) @smit_init()
%29 = tail call i32 (...) @sysinfo()
%30 = tail call i32 (...) @clean_exit()
br label %90
31: ; preds = %23
%32 = load i8*, i8** %3
%33 = tail call i64 @strcmp(i8* %32, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %39
35: ; preds = %31
%36 = tail call i32 (...) @smit_init()
%37 = tail call i32 (...) @smitusermenu()
%38 = tail call i32 (...) @clean_exit()
br label %90
39: ; preds = %31
%40 = load i8*, i8** %3
%41 = tail call i64 @strcmp(i8* %40, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0))
%42 = icmp eq i64 %41, 0
br i1 %42, label %43, label %47
43: ; preds = %39
%44 = tail call i32 (...) @smit_init()
%45 = tail call i32 (...) @smitfsmenu()
%46 = tail call i32 (...) @clean_exit()
br label %90
47: ; preds = %39
%48 = load i8*, i8** %3
%49 = tail call i64 @strcmp(i8* %48, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0))
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %55
51: ; preds = %47
%52 = tail call i32 (...) @smit_init()
%53 = tail call i32 (...) @smitsfwmenu()
%54 = tail call i32 (...) @clean_exit()
br label %90
55: ; preds = %47
%56 = load i8*, i8** %3
%57 = tail call i64 @strcmp(i8* %56, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0))
%58 = icmp eq i64 %57, 0
br i1 %58, label %59, label %63
59: ; preds = %55
%60 = tail call i32 (...) @smit_init()
%61 = tail call i32 (...) @smitscmenu()
%62 = tail call i32 (...) @clean_exit()
br label %90
63: ; preds = %55
%64 = load i8*, i8** %3
%65 = tail call i64 @strcmp(i8* %64, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
%66 = icmp eq i64 %65, 0
br i1 %66, label %67, label %71
67: ; preds = %63
%68 = tail call i32 (...) @smit_init()
%69 = tail call i32 (...) @fsmgrmain()
%70 = tail call i32 (...) @clean_exit()
br label %90
71: ; preds = %63
%72 = load i8*, i8** %3
%73 = tail call i64 @strcmp(i8* %72, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0))
%74 = icmp eq i64 %73, 0
br i1 %74, label %75, label %79
75: ; preds = %71
%76 = tail call i32 (...) @smit_init()
%77 = tail call i32 (...) @usermgrmain()
%78 = tail call i32 (...) @clean_exit()
br label %90
79: ; preds = %71
%80 = load i8*, i8** %3
%81 = tail call i64 @strcmp(i8* %80, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0))
%82 = icmp eq i64 %81, 0
br i1 %82, label %83, label %87
83: ; preds = %79
%84 = tail call i32 (...) @smit_init()
%85 = tail call i32 (...) @kernelmgrmain()
%86 = tail call i32 (...) @clean_exit()
br label %90
87: ; preds = %79
%88 = load i8*, i8** %3
%89 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.15, i64 0, i64 0), i8* %88)
br label %90
90: ; preds = %21, %35, %51, %67, %83, %87, %75, %59, %43, %27
%91 = tail call i32 (...) @usage()
%92 = tail call i32 @exit(i32 0)
unreachable
}