#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*/ Mon_help_command();
int /*<<< orphan*/ mmi_bbm_i2c_verify(int, char **);
int /*<<< orphan*/ mmi_bbm_init_cmd(int, char **);
int /*<<< orphan*/ mmi_bbm_lread(int, char **);
int /*<<< orphan*/ mmi_bbm_lwrite(int, char **);
int /*<<< orphan*/ mmi_bbm_read(int, char **);
int /*<<< orphan*/ mmi_bbm_reset_cmd(int, char **);
int /*<<< orphan*/ mmi_bbm_verify(int, char **);
int /*<<< orphan*/ mmi_bbm_wread(int, char **);
int /*<<< orphan*/ mmi_bbm_write(int, char **);
int /*<<< orphan*/ mmi_bbm_wwrite(int, char **);
int /*<<< orphan*/ mmi_data_dump_cmd(int, char **);
int /*<<< orphan*/ mmi_dm_cmd(int, char **);
int /*<<< orphan*/ mmi_exit_cmd(int, char **);
int /*<<< orphan*/ mmi_i2c_read_cmd(int, char **);
int /*<<< orphan*/ mmi_i2c_write_cmd(int, char **);
int /*<<< orphan*/ mmi_ptcheck_cmd(int, char **);
int /*<<< orphan*/ mmi_scan_cmd(int, char **);
int /*<<< orphan*/ mmi_sig_cmd(int, char **);
int /*<<< orphan*/ mmi_tuner_set(int, char **);
int /*<<< orphan*/ print_log(char *);
int /*<<< orphan*/ strcmp(char *, char *);
void anal_command(int argc, char *argv[]) {
  if ((!strcmp(argv[0], "he")))
    Mon_help_command();
  else if ((!strcmp(argv[0], "?")))
    Mon_help_command();
  else if ((!strcmp(argv[0], "help")))
    Mon_help_command();
  else if ((!strcmp(argv[0], "brd")))
    mmi_bbm_read(argc, argv);
  else if ((!strcmp(argv[0], "bwr")))
    mmi_bbm_write(argc, argv);
  else if ((!strcmp(argv[0], "wrd")))
    mmi_bbm_wread(argc, argv);
  else if ((!strcmp(argv[0], "wwr")))
    mmi_bbm_wwrite(argc, argv);
  else if ((!strcmp(argv[0], "lrd")))
    mmi_bbm_lread(argc, argv);
  else if ((!strcmp(argv[0], "lwr")))
    mmi_bbm_lwrite(argc, argv);
  else if ((!strcmp(argv[0], "verify")))
    mmi_bbm_verify(argc, argv);
  else if ((!strcmp(argv[0], "iverify")))
    mmi_bbm_i2c_verify(argc, argv);
  else if ((!strcmp(argv[0], "tuner")))
    mmi_tuner_set(argc, argv);
  else if ((!strcmp(argv[0], "reset")))
    mmi_bbm_reset_cmd(argc, argv);
  else if ((!strcmp(argv[0], "init")))
    mmi_bbm_init_cmd(argc, argv);
  else if ((!strcmp(argv[0], "ird")))
    mmi_i2c_read_cmd(argc, argv);
  else if ((!strcmp(argv[0], "iwr")))
    mmi_i2c_write_cmd(argc, argv);
  else if ((!strcmp(argv[0], "scan")))
    mmi_scan_cmd(argc, argv);
  else if ((!strcmp(argv[0], "dm")))
    mmi_dm_cmd(argc, argv);
  else if ((!strcmp(argv[0], "sig")))
    mmi_sig_cmd(argc, argv);
  else if ((!strcmp(argv[0], "ptcheck")))
    mmi_ptcheck_cmd(argc, argv);
  else if ((!strcmp(argv[0], "data_dump")))
    mmi_data_dump_cmd(argc, argv);
  else if ((!strcmp(argv[0], "exit")))
    mmi_exit_cmd(argc, argv);
  else
    print_log("\nNo such command - type help\n");
}


x86 assembly (clang, -O0):
<anal_command>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xd83(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    1297 <anal_command+0x37>
mov    $0x0,%al
call   1060 <Mon_help_command@plt>
jmp    16b3 <anal_command+0x453>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xd5e(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    12bf <anal_command+0x5f>
mov    $0x0,%al
call   1060 <Mon_help_command@plt>
jmp    16ae <anal_command+0x44e>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xd38(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    12e7 <anal_command+0x87>
mov    $0x0,%al
call   1060 <Mon_help_command@plt>
jmp    16a9 <anal_command+0x449>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xd15(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    1314 <anal_command+0xb4>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1120 <mmi_bbm_read@plt>
jmp    16a4 <anal_command+0x444>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xcec(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    1341 <anal_command+0xe1>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   10e0 <mmi_bbm_write@plt>
jmp    169f <anal_command+0x43f>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xcc3(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    136e <anal_command+0x10e>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   10d0 <mmi_bbm_wread@plt>
jmp    169a <anal_command+0x43a>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xc9a(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    139b <anal_command+0x13b>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1110 <mmi_bbm_wwrite@plt>
jmp    1695 <anal_command+0x435>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xc71(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    13c8 <anal_command+0x168>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1140 <mmi_bbm_lread@plt>
jmp    1690 <anal_command+0x430>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xc48(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    13f5 <anal_command+0x195>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1080 <mmi_bbm_lwrite@plt>
jmp    168b <anal_command+0x42b>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xc20(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    1422 <anal_command+0x1c2>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1170 <mmi_bbm_verify@plt>
jmp    1686 <anal_command+0x426>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xbf2(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    144f <anal_command+0x1ef>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1070 <mmi_bbm_i2c_verify@plt>
jmp    1681 <anal_command+0x421>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xbcd(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    147c <anal_command+0x21c>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1150 <mmi_tuner_set@plt>
jmp    167c <anal_command+0x41c>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xba6(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    14a9 <anal_command+0x249>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1040 <mmi_bbm_reset_cmd@plt>
jmp    1677 <anal_command+0x417>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xb7f(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    14d6 <anal_command+0x276>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1100 <mmi_bbm_init_cmd@plt>
jmp    1672 <anal_command+0x412>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xb57(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    1503 <anal_command+0x2a3>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1180 <mmi_i2c_read_cmd@plt>
jmp    166d <anal_command+0x40d>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xb2e(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    1530 <anal_command+0x2d0>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1160 <mmi_i2c_write_cmd@plt>
jmp    1668 <anal_command+0x408>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xb05(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    155d <anal_command+0x2fd>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1030 <mmi_scan_cmd@plt>
jmp    1663 <anal_command+0x403>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xadd(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    158a <anal_command+0x32a>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   10c0 <mmi_dm_cmd@plt>
jmp    165e <anal_command+0x3fe>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xab3(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    15b7 <anal_command+0x357>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1130 <mmi_sig_cmd@plt>
jmp    1659 <anal_command+0x3f9>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xa8a(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    15e4 <anal_command+0x384>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1090 <mmi_ptcheck_cmd@plt>
jmp    1654 <anal_command+0x3f4>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xa65(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    1611 <anal_command+0x3b1>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   10f0 <mmi_data_dump_cmd@plt>
jmp    164f <anal_command+0x3ef>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xa42(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%eax
jne    163e <anal_command+0x3de>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   10b0 <mmi_exit_cmd@plt>
jmp    164a <anal_command+0x3ea>
lea    0xa21(%rip),%rdi
call   1050 <print_log@plt>
jmp    164f <anal_command+0x3ef>
jmp    1654 <anal_command+0x3f4>
jmp    1659 <anal_command+0x3f9>
jmp    165e <anal_command+0x3fe>
jmp    1663 <anal_command+0x403>
jmp    1668 <anal_command+0x408>
jmp    166d <anal_command+0x40d>
jmp    1672 <anal_command+0x412>
jmp    1677 <anal_command+0x417>
jmp    167c <anal_command+0x41c>
jmp    1681 <anal_command+0x421>
jmp    1686 <anal_command+0x426>
jmp    168b <anal_command+0x42b>
jmp    1690 <anal_command+0x430>
jmp    1695 <anal_command+0x435>
jmp    169a <anal_command+0x43a>
jmp    169f <anal_command+0x43f>
jmp    16a4 <anal_command+0x444>
jmp    16a9 <anal_command+0x449>
jmp    16ae <anal_command+0x44e>
jmp    16b3 <anal_command+0x453>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<anal_command>:
push   %rbp
push   %r14
push   %rbx
mov    %rsi,%rbx
mov    %edi,%r14d
mov    (%rsi),%rbp
lea    0xd8c(%rip),%rsi
mov    %rbp,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
je     1477 <anal_command+0x217>
lea    0xd78(%rip),%rsi
mov    %rbp,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
je     1477 <anal_command+0x217>
lea    0xd63(%rip),%rsi
mov    %rbp,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
je     1477 <anal_command+0x217>
lea    0xd51(%rip),%rsi
mov    %rbp,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
je     1482 <anal_command+0x222>
lea    0xd3e(%rip),%rsi
mov    %rbp,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
je     1491 <anal_command+0x231>
lea    0xd2b(%rip),%rsi
mov    %rbp,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
je     14a0 <anal_command+0x240>
lea    0xd18(%rip),%rsi
mov    %rbp,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
je     14af <anal_command+0x24f>
lea    0xd05(%rip),%rsi
mov    %rbp,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
je     14be <anal_command+0x25e>
lea    0xcf2(%rip),%rsi
mov    %rbp,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
je     14cd <anal_command+0x26d>
lea    0xce0(%rip),%rsi
mov    %rbp,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
je     14dc <anal_command+0x27c>
lea    0xcc8(%rip),%rsi
mov    %rbp,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
je     14eb <anal_command+0x28b>
lea    0xcb9(%rip),%rsi
mov    %rbp,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
je     14fa <anal_command+0x29a>
lea    0xca8(%rip),%rsi
mov    %rbp,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
je     1509 <anal_command+0x2a9>
lea    0xc97(%rip),%rsi
mov    %rbp,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
je     1518 <anal_command+0x2b8>
lea    0xc85(%rip),%rsi
mov    %rbp,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
je     1527 <anal_command+0x2c7>
lea    0xc72(%rip),%rsi
mov    %rbp,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
je     1536 <anal_command+0x2d6>
lea    0xc5f(%rip),%rsi
mov    %rbp,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
je     1545 <anal_command+0x2e5>
lea    0xc4d(%rip),%rsi
mov    %rbp,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
je     1554 <anal_command+0x2f4>
lea    0xc39(%rip),%rsi
mov    %rbp,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
je     1563 <anal_command+0x303>
lea    0xc26(%rip),%rsi
mov    %rbp,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
je     1572 <anal_command+0x312>
lea    0xc17(%rip),%rsi
mov    %rbp,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
je     1581 <anal_command+0x321>
lea    0xc0a(%rip),%rsi
mov    %rbp,%rdi
call   10a0 <strcmp@plt>
test   %eax,%eax
je     1590 <anal_command+0x330>
lea    0xbf8(%rip),%rdi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1050 <print_log@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
jmp    1060 <Mon_help_command@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1120 <mmi_bbm_read@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    10e0 <mmi_bbm_write@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    10d0 <mmi_bbm_wread@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1110 <mmi_bbm_wwrite@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1140 <mmi_bbm_lread@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1080 <mmi_bbm_lwrite@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1170 <mmi_bbm_verify@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1070 <mmi_bbm_i2c_verify@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1150 <mmi_tuner_set@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1040 <mmi_bbm_reset_cmd@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1100 <mmi_bbm_init_cmd@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1180 <mmi_i2c_read_cmd@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1160 <mmi_i2c_write_cmd@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <mmi_scan_cmd@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    10c0 <mmi_dm_cmd@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1130 <mmi_sig_cmd@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1090 <mmi_ptcheck_cmd@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    10f0 <mmi_data_dump_cmd@plt>
mov    %r14d,%edi
mov    %rbx,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    10b0 <mmi_exit_cmd@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"he\00"
@.str.1 = [2 x i8] c"?\00"
@.str.2 = [5 x i8] c"help\00"
@.str.3 = [4 x i8] c"brd\00"
@.str.4 = [4 x i8] c"bwr\00"
@.str.5 = [4 x i8] c"wrd\00"
@.str.6 = [4 x i8] c"wwr\00"
@.str.7 = [4 x i8] c"lrd\00"
@.str.8 = [4 x i8] c"lwr\00"
@.str.9 = [7 x i8] c"verify\00"
@.str.10 = [8 x i8] c"iverify\00"
@.str.11 = [6 x i8] c"tuner\00"
@.str.12 = [6 x i8] c"reset\00"
@.str.13 = [5 x i8] c"init\00"
@.str.14 = [4 x i8] c"ird\00"
@.str.15 = [4 x i8] c"iwr\00"
@.str.16 = [5 x i8] c"scan\00"
@.str.17 = [3 x i8] c"dm\00"
@.str.18 = [4 x i8] c"sig\00"
@.str.19 = [8 x i8] c"ptcheck\00"
@.str.20 = [10 x i8] c"data_dump\00"
@.str.21 = [5 x i8] c"exit\00"
@.str.22 = [30 x i8] c"\0ANo such command - type help\0A\00"
define void @anal_command(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = load i8**, i8*** %4
%6 = getelementptr inbounds i8*, i8** %5, i64 0
%7 = load i8*, i8** %6
%8 = call i32 @strcmp(i8* %7, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%9 = icmp ne i32 %8, 0
br i1 %9, label %12, label %10
10: ; preds = %2
%11 = call i32 (...) @Mon_help_command()
br label %241
12: ; preds = %2
%13 = load i8**, i8*** %4
%14 = getelementptr inbounds i8*, i8** %13, i64 0
%15 = load i8*, i8** %14
%16 = call i32 @strcmp(i8* %15, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%17 = icmp ne i32 %16, 0
br i1 %17, label %20, label %18
18: ; preds = %12
%19 = call i32 (...) @Mon_help_command()
br label %240
20: ; preds = %12
%21 = load i8**, i8*** %4
%22 = getelementptr inbounds i8*, i8** %21, i64 0
%23 = load i8*, i8** %22
%24 = call i32 @strcmp(i8* %23, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%25 = icmp ne i32 %24, 0
br i1 %25, label %28, label %26
26: ; preds = %20
%27 = call i32 (...) @Mon_help_command()
br label %239
28: ; preds = %20
%29 = load i8**, i8*** %4
%30 = getelementptr inbounds i8*, i8** %29, i64 0
%31 = load i8*, i8** %30
%32 = call i32 @strcmp(i8* %31, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%33 = icmp ne i32 %32, 0
br i1 %33, label %38, label %34
34: ; preds = %28
%35 = load i32, i32* %3
%36 = load i8**, i8*** %4
%37 = call i32 @mmi_bbm_read(i32 %35, i8** %36)
br label %238
38: ; preds = %28
%39 = load i8**, i8*** %4
%40 = getelementptr inbounds i8*, i8** %39, i64 0
%41 = load i8*, i8** %40
%42 = call i32 @strcmp(i8* %41, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%43 = icmp ne i32 %42, 0
br i1 %43, label %48, label %44
44: ; preds = %38
%45 = load i32, i32* %3
%46 = load i8**, i8*** %4
%47 = call i32 @mmi_bbm_write(i32 %45, i8** %46)
br label %237
48: ; preds = %38
%49 = load i8**, i8*** %4
%50 = getelementptr inbounds i8*, i8** %49, i64 0
%51 = load i8*, i8** %50
%52 = call i32 @strcmp(i8* %51, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%53 = icmp ne i32 %52, 0
br i1 %53, label %58, label %54
54: ; preds = %48
%55 = load i32, i32* %3
%56 = load i8**, i8*** %4
%57 = call i32 @mmi_bbm_wread(i32 %55, i8** %56)
br label %236
58: ; preds = %48
%59 = load i8**, i8*** %4
%60 = getelementptr inbounds i8*, i8** %59, i64 0
%61 = load i8*, i8** %60
%62 = call i32 @strcmp(i8* %61, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%63 = icmp ne i32 %62, 0
br i1 %63, label %68, label %64
64: ; preds = %58
%65 = load i32, i32* %3
%66 = load i8**, i8*** %4
%67 = call i32 @mmi_bbm_wwrite(i32 %65, i8** %66)
br label %235
68: ; preds = %58
%69 = load i8**, i8*** %4
%70 = getelementptr inbounds i8*, i8** %69, i64 0
%71 = load i8*, i8** %70
%72 = call i32 @strcmp(i8* %71, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%73 = icmp ne i32 %72, 0
br i1 %73, label %78, label %74
74: ; preds = %68
%75 = load i32, i32* %3
%76 = load i8**, i8*** %4
%77 = call i32 @mmi_bbm_lread(i32 %75, i8** %76)
br label %234
78: ; preds = %68
%79 = load i8**, i8*** %4
%80 = getelementptr inbounds i8*, i8** %79, i64 0
%81 = load i8*, i8** %80
%82 = call i32 @strcmp(i8* %81, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%83 = icmp ne i32 %82, 0
br i1 %83, label %88, label %84
84: ; preds = %78
%85 = load i32, i32* %3
%86 = load i8**, i8*** %4
%87 = call i32 @mmi_bbm_lwrite(i32 %85, i8** %86)
br label %233
88: ; preds = %78
%89 = load i8**, i8*** %4
%90 = getelementptr inbounds i8*, i8** %89, i64 0
%91 = load i8*, i8** %90
%92 = call i32 @strcmp(i8* %91, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0))
%93 = icmp ne i32 %92, 0
br i1 %93, label %98, label %94
94: ; preds = %88
%95 = load i32, i32* %3
%96 = load i8**, i8*** %4
%97 = call i32 @mmi_bbm_verify(i32 %95, i8** %96)
br label %232
98: ; preds = %88
%99 = load i8**, i8*** %4
%100 = getelementptr inbounds i8*, i8** %99, i64 0
%101 = load i8*, i8** %100
%102 = call i32 @strcmp(i8* %101, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
%103 = icmp ne i32 %102, 0
br i1 %103, label %108, label %104
104: ; preds = %98
%105 = load i32, i32* %3
%106 = load i8**, i8*** %4
%107 = call i32 @mmi_bbm_i2c_verify(i32 %105, i8** %106)
br label %231
108: ; preds = %98
%109 = load i8**, i8*** %4
%110 = getelementptr inbounds i8*, i8** %109, i64 0
%111 = load i8*, i8** %110
%112 = call i32 @strcmp(i8* %111, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0))
%113 = icmp ne i32 %112, 0
br i1 %113, label %118, label %114
114: ; preds = %108
%115 = load i32, i32* %3
%116 = load i8**, i8*** %4
%117 = call i32 @mmi_tuner_set(i32 %115, i8** %116)
br label %230
118: ; preds = %108
%119 = load i8**, i8*** %4
%120 = getelementptr inbounds i8*, i8** %119, i64 0
%121 = load i8*, i8** %120
%122 = call i32 @strcmp(i8* %121, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
%123 = icmp ne i32 %122, 0
br i1 %123, label %128, label %124
124: ; preds = %118
%125 = load i32, i32* %3
%126 = load i8**, i8*** %4
%127 = call i32 @mmi_bbm_reset_cmd(i32 %125, i8** %126)
br label %229
128: ; preds = %118
%129 = load i8**, i8*** %4
%130 = getelementptr inbounds i8*, i8** %129, i64 0
%131 = load i8*, i8** %130
%132 = call i32 @strcmp(i8* %131, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%133 = icmp ne i32 %132, 0
br i1 %133, label %138, label %134
134: ; preds = %128
%135 = load i32, i32* %3
%136 = load i8**, i8*** %4
%137 = call i32 @mmi_bbm_init_cmd(i32 %135, i8** %136)
br label %228
138: ; preds = %128
%139 = load i8**, i8*** %4
%140 = getelementptr inbounds i8*, i8** %139, i64 0
%141 = load i8*, i8** %140
%142 = call i32 @strcmp(i8* %141, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%143 = icmp ne i32 %142, 0
br i1 %143, label %148, label %144
144: ; preds = %138
%145 = load i32, i32* %3
%146 = load i8**, i8*** %4
%147 = call i32 @mmi_i2c_read_cmd(i32 %145, i8** %146)
br label %227
148: ; preds = %138
%149 = load i8**, i8*** %4
%150 = getelementptr inbounds i8*, i8** %149, i64 0
%151 = load i8*, i8** %150
%152 = call i32 @strcmp(i8* %151, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0))
%153 = icmp ne i32 %152, 0
br i1 %153, label %158, label %154
154: ; preds = %148
%155 = load i32, i32* %3
%156 = load i8**, i8*** %4
%157 = call i32 @mmi_i2c_write_cmd(i32 %155, i8** %156)
br label %226
158: ; preds = %148
%159 = load i8**, i8*** %4
%160 = getelementptr inbounds i8*, i8** %159, i64 0
%161 = load i8*, i8** %160
%162 = call i32 @strcmp(i8* %161, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0))
%163 = icmp ne i32 %162, 0
br i1 %163, label %168, label %164
164: ; preds = %158
%165 = load i32, i32* %3
%166 = load i8**, i8*** %4
%167 = call i32 @mmi_scan_cmd(i32 %165, i8** %166)
br label %225
168: ; preds = %158
%169 = load i8**, i8*** %4
%170 = getelementptr inbounds i8*, i8** %169, i64 0
%171 = load i8*, i8** %170
%172 = call i32 @strcmp(i8* %171, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0))
%173 = icmp ne i32 %172, 0
br i1 %173, label %178, label %174
174: ; preds = %168
%175 = load i32, i32* %3
%176 = load i8**, i8*** %4
%177 = call i32 @mmi_dm_cmd(i32 %175, i8** %176)
br label %224
178: ; preds = %168
%179 = load i8**, i8*** %4
%180 = getelementptr inbounds i8*, i8** %179, i64 0
%181 = load i8*, i8** %180
%182 = call i32 @strcmp(i8* %181, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0))
%183 = icmp ne i32 %182, 0
br i1 %183, label %188, label %184
184: ; preds = %178
%185 = load i32, i32* %3
%186 = load i8**, i8*** %4
%187 = call i32 @mmi_sig_cmd(i32 %185, i8** %186)
br label %223
188: ; preds = %178
%189 = load i8**, i8*** %4
%190 = getelementptr inbounds i8*, i8** %189, i64 0
%191 = load i8*, i8** %190
%192 = call i32 @strcmp(i8* %191, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.19, i64 0, i64 0))
%193 = icmp ne i32 %192, 0
br i1 %193, label %198, label %194
194: ; preds = %188
%195 = load i32, i32* %3
%196 = load i8**, i8*** %4
%197 = call i32 @mmi_ptcheck_cmd(i32 %195, i8** %196)
br label %222
198: ; preds = %188
%199 = load i8**, i8*** %4
%200 = getelementptr inbounds i8*, i8** %199, i64 0
%201 = load i8*, i8** %200
%202 = call i32 @strcmp(i8* %201, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.20, i64 0, i64 0))
%203 = icmp ne i32 %202, 0
br i1 %203, label %208, label %204
204: ; preds = %198
%205 = load i32, i32* %3
%206 = load i8**, i8*** %4
%207 = call i32 @mmi_data_dump_cmd(i32 %205, i8** %206)
br label %221
208: ; preds = %198
%209 = load i8**, i8*** %4
%210 = getelementptr inbounds i8*, i8** %209, i64 0
%211 = load i8*, i8** %210
%212 = call i32 @strcmp(i8* %211, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0))
%213 = icmp ne i32 %212, 0
br i1 %213, label %218, label %214
214: ; preds = %208
%215 = load i32, i32* %3
%216 = load i8**, i8*** %4
%217 = call i32 @mmi_exit_cmd(i32 %215, i8** %216)
br label %220
218: ; preds = %208
%219 = call i32 @print_log(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.22, i64 0, i64 0))
br label %220
220: ; preds = %218, %214
br label %221
221: ; preds = %220, %204
br label %222
222: ; preds = %221, %194
br label %223
223: ; preds = %222, %184
br label %224
224: ; preds = %223, %174
br label %225
225: ; preds = %224, %164
br label %226
226: ; preds = %225, %154
br label %227
227: ; preds = %226, %144
br label %228
228: ; preds = %227, %134
br label %229
229: ; preds = %228, %124
br label %230
230: ; preds = %229, %114
br label %231
231: ; preds = %230, %104
br label %232
232: ; preds = %231, %94
br label %233
233: ; preds = %232, %84
br label %234
234: ; preds = %233, %74
br label %235
235: ; preds = %234, %64
br label %236
236: ; preds = %235, %54
br label %237
237: ; preds = %236, %44
br label %238
238: ; preds = %237, %34
br label %239
239: ; preds = %238, %26
br label %240
240: ; preds = %239, %18
br label %241
241: ; preds = %240, %10
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"he\00"
@.str.1 = [2 x i8] c"?\00"
@.str.2 = [5 x i8] c"help\00"
@.str.3 = [4 x i8] c"brd\00"
@.str.4 = [4 x i8] c"bwr\00"
@.str.5 = [4 x i8] c"wrd\00"
@.str.6 = [4 x i8] c"wwr\00"
@.str.7 = [4 x i8] c"lrd\00"
@.str.8 = [4 x i8] c"lwr\00"
@.str.9 = [7 x i8] c"verify\00"
@.str.10 = [8 x i8] c"iverify\00"
@.str.11 = [6 x i8] c"tuner\00"
@.str.12 = [6 x i8] c"reset\00"
@.str.13 = [5 x i8] c"init\00"
@.str.14 = [4 x i8] c"ird\00"
@.str.15 = [4 x i8] c"iwr\00"
@.str.16 = [5 x i8] c"scan\00"
@.str.17 = [3 x i8] c"dm\00"
@.str.18 = [4 x i8] c"sig\00"
@.str.19 = [8 x i8] c"ptcheck\00"
@.str.20 = [10 x i8] c"data_dump\00"
@.str.21 = [5 x i8] c"exit\00"
@.str.22 = [30 x i8] c"\0ANo such command - type help\0A\00"
define void @anal_command(i32 %0, i8** %1) {
%3 = load i8*, i8** %1
%4 = tail call i32 @strcmp(i8* dereferenceable(1) %3, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%5 = icmp eq i32 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %2
%7 = tail call i32 (...) @Mon_help_command()
br label %115
8: ; preds = %2
%9 = tail call i32 @strcmp(i8* dereferenceable(1) %3, i8* dereferenceable(2) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %8
%12 = tail call i32 (...) @Mon_help_command()
br label %115
13: ; preds = %8
%14 = tail call i32 @strcmp(i8* dereferenceable(1) %3, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = tail call i32 (...) @Mon_help_command()
br label %115
18: ; preds = %13
%19 = tail call i32 @strcmp(i8* dereferenceable(1) %3, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %18
%22 = tail call i32 @mmi_bbm_read(i32 %0, i8** %1)
br label %115
23: ; preds = %18
%24 = tail call i32 @strcmp(i8* dereferenceable(1) %3, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = tail call i32 @mmi_bbm_write(i32 %0, i8** %1)
br label %115
28: ; preds = %23
%29 = tail call i32 @strcmp(i8* dereferenceable(1) %3, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %33
31: ; preds = %28
%32 = tail call i32 @mmi_bbm_wread(i32 %0, i8** %1)
br label %115
33: ; preds = %28
%34 = tail call i32 @strcmp(i8* dereferenceable(1) %3, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%35 = icmp eq i32 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %33
%37 = tail call i32 @mmi_bbm_wwrite(i32 %0, i8** %1)
br label %115
38: ; preds = %33
%39 = tail call i32 @strcmp(i8* dereferenceable(1) %3, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%40 = icmp eq i32 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %38
%42 = tail call i32 @mmi_bbm_lread(i32 %0, i8** %1)
br label %115
43: ; preds = %38
%44 = tail call i32 @strcmp(i8* dereferenceable(1) %3, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%45 = icmp eq i32 %44, 0
br i1 %45, label %46, label %48
46: ; preds = %43
%47 = tail call i32 @mmi_bbm_lwrite(i32 %0, i8** %1)
br label %115
48: ; preds = %43
%49 = tail call i32 @strcmp(i8* dereferenceable(1) %3, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0))
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %53
51: ; preds = %48
%52 = tail call i32 @mmi_bbm_verify(i32 %0, i8** %1)
br label %115
53: ; preds = %48
%54 = tail call i32 @strcmp(i8* dereferenceable(1) %3, i8* dereferenceable(8) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
%55 = icmp eq i32 %54, 0
br i1 %55, label %56, label %58
56: ; preds = %53
%57 = tail call i32 @mmi_bbm_i2c_verify(i32 %0, i8** %1)
br label %115
58: ; preds = %53
%59 = tail call i32 @strcmp(i8* dereferenceable(1) %3, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0))
%60 = icmp eq i32 %59, 0
br i1 %60, label %61, label %63
61: ; preds = %58
%62 = tail call i32 @mmi_tuner_set(i32 %0, i8** %1)
br label %115
63: ; preds = %58
%64 = tail call i32 @strcmp(i8* dereferenceable(1) %3, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
%65 = icmp eq i32 %64, 0
br i1 %65, label %66, label %68
66: ; preds = %63
%67 = tail call i32 @mmi_bbm_reset_cmd(i32 %0, i8** %1)
br label %115
68: ; preds = %63
%69 = tail call i32 @strcmp(i8* dereferenceable(1) %3, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%70 = icmp eq i32 %69, 0
br i1 %70, label %71, label %73
71: ; preds = %68
%72 = tail call i32 @mmi_bbm_init_cmd(i32 %0, i8** %1)
br label %115
73: ; preds = %68
%74 = tail call i32 @strcmp(i8* dereferenceable(1) %3, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%75 = icmp eq i32 %74, 0
br i1 %75, label %76, label %78
76: ; preds = %73
%77 = tail call i32 @mmi_i2c_read_cmd(i32 %0, i8** %1)
br label %115
78: ; preds = %73
%79 = tail call i32 @strcmp(i8* dereferenceable(1) %3, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0))
%80 = icmp eq i32 %79, 0
br i1 %80, label %81, label %83
81: ; preds = %78
%82 = tail call i32 @mmi_i2c_write_cmd(i32 %0, i8** %1)
br label %115
83: ; preds = %78
%84 = tail call i32 @strcmp(i8* dereferenceable(1) %3, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0))
%85 = icmp eq i32 %84, 0
br i1 %85, label %86, label %88
86: ; preds = %83
%87 = tail call i32 @mmi_scan_cmd(i32 %0, i8** %1)
br label %115
88: ; preds = %83
%89 = tail call i32 @strcmp(i8* dereferenceable(1) %3, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0))
%90 = icmp eq i32 %89, 0
br i1 %90, label %91, label %93
91: ; preds = %88
%92 = tail call i32 @mmi_dm_cmd(i32 %0, i8** %1)
br label %115
93: ; preds = %88
%94 = tail call i32 @strcmp(i8* dereferenceable(1) %3, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0))
%95 = icmp eq i32 %94, 0
br i1 %95, label %96, label %98
96: ; preds = %93
%97 = tail call i32 @mmi_sig_cmd(i32 %0, i8** %1)
br label %115
98: ; preds = %93
%99 = tail call i32 @strcmp(i8* dereferenceable(1) %3, i8* dereferenceable(8) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.19, i64 0, i64 0))
%100 = icmp eq i32 %99, 0
br i1 %100, label %101, label %103
101: ; preds = %98
%102 = tail call i32 @mmi_ptcheck_cmd(i32 %0, i8** %1)
br label %115
103: ; preds = %98
%104 = tail call i32 @strcmp(i8* dereferenceable(1) %3, i8* dereferenceable(10) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.20, i64 0, i64 0))
%105 = icmp eq i32 %104, 0
br i1 %105, label %106, label %108
106: ; preds = %103
%107 = tail call i32 @mmi_data_dump_cmd(i32 %0, i8** %1)
br label %115
108: ; preds = %103
%109 = tail call i32 @strcmp(i8* dereferenceable(1) %3, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0))
%110 = icmp eq i32 %109, 0
br i1 %110, label %111, label %113
111: ; preds = %108
%112 = tail call i32 @mmi_exit_cmd(i32 %0, i8** %1)
br label %115
113: ; preds = %108
%114 = tail call i32 @print_log(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.22, i64 0, i64 0))
br label %115
115: ; preds = %11, %21, %31, %41, %51, %61, %71, %81, %91, %101, %111, %113, %106, %96, %86, %76, %66, %56, %46, %36, %26, %16, %6
ret void
}