#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 bam_fillmd(int, char **);
int bam_flagstat(int, char **);
int bam_idxstats(int, char **);
int bam_index(int, char **);
int bam_mating(int, char **);
int bam_merge(int, char **);
int bam_mpileup(int, char **);
int bam_rmdup(int, char **);
int bam_sort(int, char **);
int faidx_main(int, char **);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int main_bam2fq(int, char **);
int main_cat(int, char **);
int main_cut_target(int, char **);
int main_depth(int, char **);
int main_import(int, char **);
int main_pad2unpad(int, char **);
int main_phase(int, char **);
int main_qa(int, char **);
int main_reheader(int, char **);
int main_samview(int, char **);
int /*<<< orphan*/ stderr;
scalar_t__ strcmp(char *, char *);
int usage();
int main(int argc, char *argv[]) {
  if (argc < 2)
    return usage();
  if (strcmp(argv[1], "view") == 0)
    return main_samview(argc - 1, argv + 1);
  else if (strcmp(argv[1], "import") == 0)
    return main_import(argc - 1, argv + 1);
  else if (strcmp(argv[1], "mpileup") == 0)
    return bam_mpileup(argc - 1, argv + 1);
  else if (strcmp(argv[1], "merge") == 0)
    return bam_merge(argc - 1, argv + 1);
  else if (strcmp(argv[1], "sort") == 0)
    return bam_sort(argc - 1, argv + 1);
  else if (strcmp(argv[1], "index") == 0)
    return bam_index(argc - 1, argv + 1);
  else if (strcmp(argv[1], "idxstats") == 0)
    return bam_idxstats(argc - 1, argv + 1);
  else if (strcmp(argv[1], "faidx") == 0)
    return faidx_main(argc - 1, argv + 1);
  else if (strcmp(argv[1], "fixmate") == 0)
    return bam_mating(argc - 1, argv + 1);
  else if (strcmp(argv[1], "rmdup") == 0)
    return bam_rmdup(argc - 1, argv + 1);
  else if (strcmp(argv[1], "flagstat") == 0)
    return bam_flagstat(argc - 1, argv + 1);
  else if (strcmp(argv[1], "calmd") == 0)
    return bam_fillmd(argc - 1, argv + 1);
  else if (strcmp(argv[1], "fillmd") == 0)
    return bam_fillmd(argc - 1, argv + 1);
  else if (strcmp(argv[1], "reheader") == 0)
    return main_reheader(argc - 1, argv + 1);
  else if (strcmp(argv[1], "cat") == 0)
    return main_cat(argc - 1, argv + 1);
  else if (strcmp(argv[1], "targetcut") == 0)
    return main_cut_target(argc - 1, argv + 1);
  else if (strcmp(argv[1], "phase") == 0)
    return main_phase(argc - 1, argv + 1);
  else if (strcmp(argv[1], "depth") == 0)
    return main_depth(argc - 1, argv + 1);
  else if (strcmp(argv[1], "bam2fq") == 0)
    return main_bam2fq(argc - 1, argv + 1);
  else if (strcmp(argv[1], "pad2unpad") == 0)
    return main_pad2unpad(argc - 1, argv + 1);
  else if (strcmp(argv[1], "depad") == 0)
    return main_pad2unpad(argc - 1, argv + 1);
  else if (strcmp(argv[1], "pileup") == 0) {
    fprintf(stderr, "[main] The `pileup' command has been removed. Please use "
                    "`mpileup' instead.\n");
    return 1;
  } else if (strcmp(argv[1], "qa") == 0)
    return main_qa(argc - 1, argv + 1);
  else {
    fprintf(stderr, "[main] unrecognized command '%s'\n", argv[1]);
    return 1;
  }
  return 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)
cmpl   $0x2,-0x8(%rbp)
jge    129f <main+0x2f>
mov    $0x0,%al
call   1130 <usage@plt>
mov    %eax,-0x4(%rbp)
jmp    17ec <main+0x57c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd52(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    12d8 <main+0x68>
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
mov    -0x10(%rbp),%rsi
add    $0x8,%rsi
call   1080 <main_samview@plt>
mov    %eax,-0x4(%rbp)
jmp    17ec <main+0x57c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd1e(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1311 <main+0xa1>
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
mov    -0x10(%rbp),%rsi
add    $0x8,%rsi
call   1100 <main_import@plt>
mov    %eax,-0x4(%rbp)
jmp    17ec <main+0x57c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xcec(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    134a <main+0xda>
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
mov    -0x10(%rbp),%rsi
add    $0x8,%rsi
call   1150 <bam_mpileup@plt>
mov    %eax,-0x4(%rbp)
jmp    17ec <main+0x57c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xcbb(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1383 <main+0x113>
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
mov    -0x10(%rbp),%rsi
add    $0x8,%rsi
call   1070 <bam_merge@plt>
mov    %eax,-0x4(%rbp)
jmp    17ec <main+0x57c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xc88(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    13bc <main+0x14c>
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
mov    -0x10(%rbp),%rsi
add    $0x8,%rsi
call   1190 <bam_sort@plt>
mov    %eax,-0x4(%rbp)
jmp    17ec <main+0x57c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xc54(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    13f5 <main+0x185>
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
mov    -0x10(%rbp),%rsi
add    $0x8,%rsi
call   1090 <bam_index@plt>
mov    %eax,-0x4(%rbp)
jmp    17ec <main+0x57c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xc21(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    142e <main+0x1be>
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
mov    -0x10(%rbp),%rsi
add    $0x8,%rsi
call   1170 <bam_idxstats@plt>
mov    %eax,-0x4(%rbp)
jmp    17ec <main+0x57c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xbf1(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1467 <main+0x1f7>
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
mov    -0x10(%rbp),%rsi
add    $0x8,%rsi
call   10b0 <faidx_main@plt>
mov    %eax,-0x4(%rbp)
jmp    17ec <main+0x57c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xbbe(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    14a0 <main+0x230>
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
mov    -0x10(%rbp),%rsi
add    $0x8,%rsi
call   1040 <bam_mating@plt>
mov    %eax,-0x4(%rbp)
jmp    17ec <main+0x57c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xb8d(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    14d9 <main+0x269>
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
mov    -0x10(%rbp),%rsi
add    $0x8,%rsi
call   10c0 <bam_rmdup@plt>
mov    %eax,-0x4(%rbp)
jmp    17ec <main+0x57c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xb5a(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1512 <main+0x2a2>
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
mov    -0x10(%rbp),%rsi
add    $0x8,%rsi
call   10d0 <bam_flagstat@plt>
mov    %eax,-0x4(%rbp)
jmp    17ec <main+0x57c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xb2a(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    154b <main+0x2db>
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
mov    -0x10(%rbp),%rsi
add    $0x8,%rsi
call   1160 <bam_fillmd@plt>
mov    %eax,-0x4(%rbp)
jmp    17ec <main+0x57c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xaf7(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1584 <main+0x314>
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
mov    -0x10(%rbp),%rsi
add    $0x8,%rsi
call   1160 <bam_fillmd@plt>
mov    %eax,-0x4(%rbp)
jmp    17ec <main+0x57c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xac5(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    15bd <main+0x34d>
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
mov    -0x10(%rbp),%rsi
add    $0x8,%rsi
call   1180 <main_reheader@plt>
mov    %eax,-0x4(%rbp)
jmp    17ec <main+0x57c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xa95(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    15f6 <main+0x386>
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
mov    -0x10(%rbp),%rsi
add    $0x8,%rsi
call   1060 <main_cat@plt>
mov    %eax,-0x4(%rbp)
jmp    17ec <main+0x57c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xa60(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    162f <main+0x3bf>
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
mov    -0x10(%rbp),%rsi
add    $0x8,%rsi
call   10f0 <main_cut_target@plt>
mov    %eax,-0x4(%rbp)
jmp    17ec <main+0x57c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xa31(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1668 <main+0x3f8>
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
mov    -0x10(%rbp),%rsi
add    $0x8,%rsi
call   1030 <main_phase@plt>
mov    %eax,-0x4(%rbp)
jmp    17ec <main+0x57c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0x9fe(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    16a1 <main+0x431>
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
mov    -0x10(%rbp),%rsi
add    $0x8,%rsi
call   1110 <main_depth@plt>
mov    %eax,-0x4(%rbp)
jmp    17ec <main+0x57c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0x9cb(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    16da <main+0x46a>
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
mov    -0x10(%rbp),%rsi
add    $0x8,%rsi
call   1120 <main_bam2fq@plt>
mov    %eax,-0x4(%rbp)
jmp    17ec <main+0x57c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0x999(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1713 <main+0x4a3>
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
mov    -0x10(%rbp),%rsi
add    $0x8,%rsi
call   1050 <main_pad2unpad@plt>
mov    %eax,-0x4(%rbp)
jmp    17ec <main+0x57c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0x96a(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    174c <main+0x4dc>
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
mov    -0x10(%rbp),%rsi
add    $0x8,%rsi
call   1050 <main_pad2unpad@plt>
mov    %eax,-0x4(%rbp)
jmp    17ec <main+0x57c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0x8b2(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    178d <main+0x51d>
mov    0x286f(%rip),%rax
mov    (%rax),%edi
lea    0x918(%rip),%rsi
mov    $0x0,%al
call   10e0 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    17ec <main+0x57c>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0x943(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    17c6 <main+0x556>
mov    -0x8(%rbp),%edi
sub    $0x1,%edi
mov    -0x10(%rbp),%rsi
add    $0x8,%rsi
call   1140 <main_qa@plt>
mov    %eax,-0x4(%rbp)
jmp    17ec <main+0x57c>
mov    0x2813(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0x904(%rip),%rsi
mov    $0x0,%al
call   10e0 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
cmp    $0x1,%edi
jg     1285 <main+0x15>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1130 <usage@plt>
mov    %rsi,%rbx
mov    %edi,%ebp
mov    0x8(%rsi),%rdi
add    $0x8,%rbx
lea    0xd67(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     14d6 <main+0x266>
mov    (%rbx),%rdi
lea    0xd54(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     14e9 <main+0x279>
mov    (%rbx),%rdi
lea    0xd43(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     14fc <main+0x28c>
mov    (%rbx),%rdi
lea    0xd33(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     150f <main+0x29f>
mov    (%rbx),%rdi
lea    0xd21(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1522 <main+0x2b2>
mov    (%rbx),%rdi
lea    0xd0e(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1535 <main+0x2c5>
mov    (%rbx),%rdi
lea    0xcfc(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1548 <main+0x2d8>
mov    (%rbx),%rdi
lea    0xced(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     155b <main+0x2eb>
mov    (%rbx),%rdi
lea    0xcdb(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     156e <main+0x2fe>
mov    (%rbx),%rdi
lea    0xccb(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1581 <main+0x311>
mov    (%rbx),%rdi
lea    0xcb9(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     15a7 <main+0x337>
mov    (%rbx),%rdi
lea    0xcaa(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1594 <main+0x324>
mov    (%rbx),%rdi
lea    0xc98(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1594 <main+0x324>
mov    (%rbx),%rdi
lea    0xc87(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     15ba <main+0x34a>
mov    (%rbx),%rdi
lea    0xc78(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     15cd <main+0x35d>
mov    (%rbx),%rdi
lea    0xc64(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     15e0 <main+0x370>
mov    (%rbx),%rdi
lea    0xc56(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     15f3 <main+0x383>
mov    (%rbx),%rdi
lea    0xc44(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1606 <main+0x396>
mov    (%rbx),%rdi
lea    0xc32(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     162c <main+0x3bc>
mov    (%rbx),%rdi
lea    0xc21(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1619 <main+0x3a9>
mov    (%rbx),%rdi
lea    0xc13(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1619 <main+0x3a9>
mov    (%rbx),%rdi
lea    0xb7c(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     163f <main+0x3cf>
mov    (%rbx),%rdi
lea    0xc36(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1662 <main+0x3f2>
mov    0x2b22(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%rdx
lea    0xc18(%rip),%rsi
xor    %eax,%eax
call   10e0 <fprintf@plt>
jmp    1656 <main+0x3e6>
add    $0xffffffff,%ebp
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1080 <main_samview@plt>
add    $0xffffffff,%ebp
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1100 <main_import@plt>
add    $0xffffffff,%ebp
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1150 <bam_mpileup@plt>
add    $0xffffffff,%ebp
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1070 <bam_merge@plt>
add    $0xffffffff,%ebp
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1190 <bam_sort@plt>
add    $0xffffffff,%ebp
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1090 <bam_index@plt>
add    $0xffffffff,%ebp
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1170 <bam_idxstats@plt>
add    $0xffffffff,%ebp
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    10b0 <faidx_main@plt>
add    $0xffffffff,%ebp
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1040 <bam_mating@plt>
add    $0xffffffff,%ebp
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    10c0 <bam_rmdup@plt>
add    $0xffffffff,%ebp
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1160 <bam_fillmd@plt>
add    $0xffffffff,%ebp
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    10d0 <bam_flagstat@plt>
add    $0xffffffff,%ebp
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1180 <main_reheader@plt>
add    $0xffffffff,%ebp
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1060 <main_cat@plt>
add    $0xffffffff,%ebp
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    10f0 <main_cut_target@plt>
add    $0xffffffff,%ebp
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <main_phase@plt>
add    $0xffffffff,%ebp
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1110 <main_depth@plt>
add    $0xffffffff,%ebp
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1050 <main_pad2unpad@plt>
add    $0xffffffff,%ebp
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1120 <main_bam2fq@plt>
mov    0x299a(%rip),%rax
mov    (%rax),%edi
lea    0xa43(%rip),%rsi
xor    %eax,%eax
call   10e0 <fprintf@plt>
mov    $0x1,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret
add    $0xffffffff,%ebp
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1140 <main_qa@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"view\00"
@.str.1 = [7 x i8] c"import\00"
@.str.2 = [8 x i8] c"mpileup\00"
@.str.3 = [6 x i8] c"merge\00"
@.str.4 = [5 x i8] c"sort\00"
@.str.5 = [6 x i8] c"index\00"
@.str.6 = [9 x i8] c"idxstats\00"
@.str.7 = [6 x i8] c"faidx\00"
@.str.8 = [8 x i8] c"fixmate\00"
@.str.9 = [6 x i8] c"rmdup\00"
@.str.10 = [9 x i8] c"flagstat\00"
@.str.11 = [6 x i8] c"calmd\00"
@.str.12 = [7 x i8] c"fillmd\00"
@.str.13 = [9 x i8] c"reheader\00"
@.str.14 = [4 x i8] c"cat\00"
@.str.15 = [10 x i8] c"targetcut\00"
@.str.16 = [6 x i8] c"phase\00"
@.str.17 = [6 x i8] c"depth\00"
@.str.18 = [7 x i8] c"bam2fq\00"
@.str.19 = [10 x i8] c"pad2unpad\00"
@.str.20 = [6 x i8] c"depad\00"
@.str.21 = [7 x i8] c"pileup\00"
@stderr = global i32 0
@.str.22 = [77 x i8] c"[main] The `pileup' command has been removed. Please use `mpileup' instead.\0A\00"
@.str.23 = [3 x i8] c"qa\00"
@.str.24 = [34 x i8] c"[main] unrecognized command '%s'\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 i32, i32* %4
%7 = icmp slt i32 %6, 2
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 (...) @usage()
store i32 %9, i32* %3
br label %289
10: ; preds = %2
%11 = load i8**, i8*** %5
%12 = getelementptr inbounds i8*, i8** %11, i64 1
%13 = load i8*, i8** %12
%14 = call i64 @strcmp(i8* %13, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %22
16: ; preds = %10
%17 = load i32, i32* %4
%18 = sub nsw i32 %17, 1
%19 = load i8**, i8*** %5
%20 = getelementptr inbounds i8*, i8** %19, i64 1
%21 = call i32 @main_samview(i32 %18, i8** %20)
store i32 %21, i32* %3
br label %289
22: ; preds = %10
%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 ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %34
28: ; preds = %22
%29 = load i32, i32* %4
%30 = sub nsw i32 %29, 1
%31 = load i8**, i8*** %5
%32 = getelementptr inbounds i8*, i8** %31, i64 1
%33 = call i32 @main_import(i32 %30, i8** %32)
store i32 %33, i32* %3
br label %289
34: ; preds = %22
%35 = load i8**, i8*** %5
%36 = getelementptr inbounds i8*, i8** %35, i64 1
%37 = load i8*, i8** %36
%38 = call i64 @strcmp(i8* %37, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%39 = icmp eq i64 %38, 0
br i1 %39, label %40, label %46
40: ; preds = %34
%41 = load i32, i32* %4
%42 = sub nsw i32 %41, 1
%43 = load i8**, i8*** %5
%44 = getelementptr inbounds i8*, i8** %43, i64 1
%45 = call i32 @bam_mpileup(i32 %42, i8** %44)
store i32 %45, i32* %3
br label %289
46: ; preds = %34
%47 = load i8**, i8*** %5
%48 = getelementptr inbounds i8*, i8** %47, i64 1
%49 = load i8*, i8** %48
%50 = call i64 @strcmp(i8* %49, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%51 = icmp eq i64 %50, 0
br i1 %51, label %52, label %58
52: ; preds = %46
%53 = load i32, i32* %4
%54 = sub nsw i32 %53, 1
%55 = load i8**, i8*** %5
%56 = getelementptr inbounds i8*, i8** %55, i64 1
%57 = call i32 @bam_merge(i32 %54, i8** %56)
store i32 %57, i32* %3
br label %289
58: ; preds = %46
%59 = load i8**, i8*** %5
%60 = getelementptr inbounds i8*, i8** %59, i64 1
%61 = load i8*, i8** %60
%62 = call i64 @strcmp(i8* %61, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%63 = icmp eq i64 %62, 0
br i1 %63, label %64, label %70
64: ; preds = %58
%65 = load i32, i32* %4
%66 = sub nsw i32 %65, 1
%67 = load i8**, i8*** %5
%68 = getelementptr inbounds i8*, i8** %67, i64 1
%69 = call i32 @bam_sort(i32 %66, i8** %68)
store i32 %69, i32* %3
br label %289
70: ; preds = %58
%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 ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%75 = icmp eq i64 %74, 0
br i1 %75, label %76, label %82
76: ; preds = %70
%77 = load i32, i32* %4
%78 = sub nsw i32 %77, 1
%79 = load i8**, i8*** %5
%80 = getelementptr inbounds i8*, i8** %79, i64 1
%81 = call i32 @bam_index(i32 %78, i8** %80)
store i32 %81, i32* %3
br label %289
82: ; preds = %70
%83 = load i8**, i8*** %5
%84 = getelementptr inbounds i8*, i8** %83, i64 1
%85 = load i8*, i8** %84
%86 = call i64 @strcmp(i8* %85, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
%87 = icmp eq i64 %86, 0
br i1 %87, label %88, label %94
88: ; preds = %82
%89 = load i32, i32* %4
%90 = sub nsw i32 %89, 1
%91 = load i8**, i8*** %5
%92 = getelementptr inbounds i8*, i8** %91, i64 1
%93 = call i32 @bam_idxstats(i32 %90, i8** %92)
store i32 %93, i32* %3
br label %289
94: ; preds = %82
%95 = load i8**, i8*** %5
%96 = getelementptr inbounds i8*, i8** %95, i64 1
%97 = load i8*, i8** %96
%98 = call i64 @strcmp(i8* %97, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%99 = icmp eq i64 %98, 0
br i1 %99, label %100, label %106
100: ; preds = %94
%101 = load i32, i32* %4
%102 = sub nsw i32 %101, 1
%103 = load i8**, i8*** %5
%104 = getelementptr inbounds i8*, i8** %103, i64 1
%105 = call i32 @faidx_main(i32 %102, i8** %104)
store i32 %105, i32* %3
br label %289
106: ; preds = %94
%107 = load i8**, i8*** %5
%108 = getelementptr inbounds i8*, i8** %107, i64 1
%109 = load i8*, i8** %108
%110 = call i64 @strcmp(i8* %109, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
%111 = icmp eq i64 %110, 0
br i1 %111, label %112, label %118
112: ; preds = %106
%113 = load i32, i32* %4
%114 = sub nsw i32 %113, 1
%115 = load i8**, i8*** %5
%116 = getelementptr inbounds i8*, i8** %115, i64 1
%117 = call i32 @bam_mating(i32 %114, i8** %116)
store i32 %117, i32* %3
br label %289
118: ; preds = %106
%119 = load i8**, i8*** %5
%120 = getelementptr inbounds i8*, i8** %119, i64 1
%121 = load i8*, i8** %120
%122 = call i64 @strcmp(i8* %121, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%123 = icmp eq i64 %122, 0
br i1 %123, label %124, label %130
124: ; preds = %118
%125 = load i32, i32* %4
%126 = sub nsw i32 %125, 1
%127 = load i8**, i8*** %5
%128 = getelementptr inbounds i8*, i8** %127, i64 1
%129 = call i32 @bam_rmdup(i32 %126, i8** %128)
store i32 %129, i32* %3
br label %289
130: ; preds = %118
%131 = load i8**, i8*** %5
%132 = getelementptr inbounds i8*, i8** %131, i64 1
%133 = load i8*, i8** %132
%134 = call i64 @strcmp(i8* %133, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
%135 = icmp eq i64 %134, 0
br i1 %135, label %136, label %142
136: ; preds = %130
%137 = load i32, i32* %4
%138 = sub nsw i32 %137, 1
%139 = load i8**, i8*** %5
%140 = getelementptr inbounds i8*, i8** %139, i64 1
%141 = call i32 @bam_flagstat(i32 %138, i8** %140)
store i32 %141, i32* %3
br label %289
142: ; preds = %130
%143 = load i8**, i8*** %5
%144 = getelementptr inbounds i8*, i8** %143, i64 1
%145 = load i8*, i8** %144
%146 = call i64 @strcmp(i8* %145, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0))
%147 = icmp eq i64 %146, 0
br i1 %147, label %148, label %154
148: ; preds = %142
%149 = load i32, i32* %4
%150 = sub nsw i32 %149, 1
%151 = load i8**, i8*** %5
%152 = getelementptr inbounds i8*, i8** %151, i64 1
%153 = call i32 @bam_fillmd(i32 %150, i8** %152)
store i32 %153, i32* %3
br label %289
154: ; preds = %142
%155 = load i8**, i8*** %5
%156 = getelementptr inbounds i8*, i8** %155, i64 1
%157 = load i8*, i8** %156
%158 = call i64 @strcmp(i8* %157, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0))
%159 = icmp eq i64 %158, 0
br i1 %159, label %160, label %166
160: ; preds = %154
%161 = load i32, i32* %4
%162 = sub nsw i32 %161, 1
%163 = load i8**, i8*** %5
%164 = getelementptr inbounds i8*, i8** %163, i64 1
%165 = call i32 @bam_fillmd(i32 %162, i8** %164)
store i32 %165, i32* %3
br label %289
166: ; preds = %154
%167 = load i8**, i8*** %5
%168 = getelementptr inbounds i8*, i8** %167, i64 1
%169 = load i8*, i8** %168
%170 = call i64 @strcmp(i8* %169, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i64 0, i64 0))
%171 = icmp eq i64 %170, 0
br i1 %171, label %172, label %178
172: ; preds = %166
%173 = load i32, i32* %4
%174 = sub nsw i32 %173, 1
%175 = load i8**, i8*** %5
%176 = getelementptr inbounds i8*, i8** %175, i64 1
%177 = call i32 @main_reheader(i32 %174, i8** %176)
store i32 %177, i32* %3
br label %289
178: ; preds = %166
%179 = load i8**, i8*** %5
%180 = getelementptr inbounds i8*, i8** %179, i64 1
%181 = load i8*, i8** %180
%182 = call i64 @strcmp(i8* %181, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%183 = icmp eq i64 %182, 0
br i1 %183, label %184, label %190
184: ; preds = %178
%185 = load i32, i32* %4
%186 = sub nsw i32 %185, 1
%187 = load i8**, i8*** %5
%188 = getelementptr inbounds i8*, i8** %187, i64 1
%189 = call i32 @main_cat(i32 %186, i8** %188)
store i32 %189, i32* %3
br label %289
190: ; preds = %178
%191 = load i8**, i8*** %5
%192 = getelementptr inbounds i8*, i8** %191, i64 1
%193 = load i8*, i8** %192
%194 = call i64 @strcmp(i8* %193, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0))
%195 = icmp eq i64 %194, 0
br i1 %195, label %196, label %202
196: ; preds = %190
%197 = load i32, i32* %4
%198 = sub nsw i32 %197, 1
%199 = load i8**, i8*** %5
%200 = getelementptr inbounds i8*, i8** %199, i64 1
%201 = call i32 @main_cut_target(i32 %198, i8** %200)
store i32 %201, i32* %3
br label %289
202: ; preds = %190
%203 = load i8**, i8*** %5
%204 = getelementptr inbounds i8*, i8** %203, i64 1
%205 = load i8*, i8** %204
%206 = call i64 @strcmp(i8* %205, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0))
%207 = icmp eq i64 %206, 0
br i1 %207, label %208, label %214
208: ; preds = %202
%209 = load i32, i32* %4
%210 = sub nsw i32 %209, 1
%211 = load i8**, i8*** %5
%212 = getelementptr inbounds i8*, i8** %211, i64 1
%213 = call i32 @main_phase(i32 %210, i8** %212)
store i32 %213, i32* %3
br label %289
214: ; preds = %202
%215 = load i8**, i8*** %5
%216 = getelementptr inbounds i8*, i8** %215, i64 1
%217 = load i8*, i8** %216
%218 = call i64 @strcmp(i8* %217, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0))
%219 = icmp eq i64 %218, 0
br i1 %219, label %220, label %226
220: ; preds = %214
%221 = load i32, i32* %4
%222 = sub nsw i32 %221, 1
%223 = load i8**, i8*** %5
%224 = getelementptr inbounds i8*, i8** %223, i64 1
%225 = call i32 @main_depth(i32 %222, i8** %224)
store i32 %225, i32* %3
br label %289
226: ; preds = %214
%227 = load i8**, i8*** %5
%228 = getelementptr inbounds i8*, i8** %227, i64 1
%229 = load i8*, i8** %228
%230 = call i64 @strcmp(i8* %229, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.18, i64 0, i64 0))
%231 = icmp eq i64 %230, 0
br i1 %231, label %232, label %238
232: ; preds = %226
%233 = load i32, i32* %4
%234 = sub nsw i32 %233, 1
%235 = load i8**, i8*** %5
%236 = getelementptr inbounds i8*, i8** %235, i64 1
%237 = call i32 @main_bam2fq(i32 %234, i8** %236)
store i32 %237, i32* %3
br label %289
238: ; preds = %226
%239 = load i8**, i8*** %5
%240 = getelementptr inbounds i8*, i8** %239, i64 1
%241 = load i8*, i8** %240
%242 = call i64 @strcmp(i8* %241, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.19, i64 0, i64 0))
%243 = icmp eq i64 %242, 0
br i1 %243, label %244, label %250
244: ; preds = %238
%245 = load i32, i32* %4
%246 = sub nsw i32 %245, 1
%247 = load i8**, i8*** %5
%248 = getelementptr inbounds i8*, i8** %247, i64 1
%249 = call i32 @main_pad2unpad(i32 %246, i8** %248)
store i32 %249, i32* %3
br label %289
250: ; preds = %238
%251 = load i8**, i8*** %5
%252 = getelementptr inbounds i8*, i8** %251, i64 1
%253 = load i8*, i8** %252
%254 = call i64 @strcmp(i8* %253, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.20, i64 0, i64 0))
%255 = icmp eq i64 %254, 0
br i1 %255, label %256, label %262
256: ; preds = %250
%257 = load i32, i32* %4
%258 = sub nsw i32 %257, 1
%259 = load i8**, i8*** %5
%260 = getelementptr inbounds i8*, i8** %259, i64 1
%261 = call i32 @main_pad2unpad(i32 %258, i8** %260)
store i32 %261, i32* %3
br label %289
262: ; preds = %250
%263 = load i8**, i8*** %5
%264 = getelementptr inbounds i8*, i8** %263, i64 1
%265 = load i8*, i8** %264
%266 = call i64 @strcmp(i8* %265, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0))
%267 = icmp eq i64 %266, 0
br i1 %267, label %268, label %271
268: ; preds = %262
%269 = load i32, i32* @stderr
%270 = call i32 (i32, i8*, ...) @fprintf(i32 %269, i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.22, i64 0, i64 0))
store i32 1, i32* %3
br label %289
271: ; preds = %262
%272 = load i8**, i8*** %5
%273 = getelementptr inbounds i8*, i8** %272, i64 1
%274 = load i8*, i8** %273
%275 = call i64 @strcmp(i8* %274, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.23, i64 0, i64 0))
%276 = icmp eq i64 %275, 0
br i1 %276, label %277, label %283
277: ; preds = %271
%278 = load i32, i32* %4
%279 = sub nsw i32 %278, 1
%280 = load i8**, i8*** %5
%281 = getelementptr inbounds i8*, i8** %280, i64 1
%282 = call i32 @main_qa(i32 %279, i8** %281)
store i32 %282, i32* %3
br label %289
283: ; preds = %271
%284 = load i32, i32* @stderr
%285 = load i8**, i8*** %5
%286 = getelementptr inbounds i8*, i8** %285, i64 1
%287 = load i8*, i8** %286
%288 = call i32 (i32, i8*, ...) @fprintf(i32 %284, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.24, i64 0, i64 0), i8* %287)
store i32 1, i32* %3
br label %289
289: ; preds = %283, %277, %268, %256, %244, %232, %220, %208, %196, %184, %172, %160, %148, %136, %124, %112, %100, %88, %76, %64, %52, %40, %28, %16, %8
%290 = load i32, i32* %3
ret i32 %290
}

LLVM IR (-O2):
@.str = [5 x i8] c"view\00"
@.str.1 = [7 x i8] c"import\00"
@.str.2 = [8 x i8] c"mpileup\00"
@.str.3 = [6 x i8] c"merge\00"
@.str.4 = [5 x i8] c"sort\00"
@.str.5 = [6 x i8] c"index\00"
@.str.6 = [9 x i8] c"idxstats\00"
@.str.7 = [6 x i8] c"faidx\00"
@.str.8 = [8 x i8] c"fixmate\00"
@.str.9 = [6 x i8] c"rmdup\00"
@.str.10 = [9 x i8] c"flagstat\00"
@.str.11 = [6 x i8] c"calmd\00"
@.str.12 = [7 x i8] c"fillmd\00"
@.str.13 = [9 x i8] c"reheader\00"
@.str.14 = [4 x i8] c"cat\00"
@.str.15 = [10 x i8] c"targetcut\00"
@.str.16 = [6 x i8] c"phase\00"
@.str.17 = [6 x i8] c"depth\00"
@.str.18 = [7 x i8] c"bam2fq\00"
@.str.19 = [10 x i8] c"pad2unpad\00"
@.str.20 = [6 x i8] c"depad\00"
@.str.21 = [7 x i8] c"pileup\00"
@stderr = global i32 0
@.str.22 = [77 x i8] c"[main] The `pileup' command has been removed. Please use `mpileup' instead.\0A\00"
@.str.23 = [3 x i8] c"qa\00"
@.str.24 = [34 x i8] c"[main] unrecognized command '%s'\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = icmp slt i32 %0, 2
br i1 %3, label %4, label %6
4: ; preds = %2
%5 = tail call i32 (...) @usage()
br label %172
6: ; preds = %2
%7 = getelementptr inbounds i8*, i8** %1, i64 1
%8 = load i8*, i8** %7
%9 = tail call i64 @strcmp(i8* %8, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %6
%12 = add nsw i32 %0, -1
%13 = tail call i32 @main_samview(i32 %12, i8** %7)
br label %172
14: ; preds = %6
%15 = load i8*, i8** %7
%16 = tail call i64 @strcmp(i8* %15, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %21
18: ; preds = %14
%19 = add nsw i32 %0, -1
%20 = tail call i32 @main_import(i32 %19, i8** %7)
br label %172
21: ; preds = %14
%22 = load i8*, i8** %7
%23 = tail call i64 @strcmp(i8* %22, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %28
25: ; preds = %21
%26 = add nsw i32 %0, -1
%27 = tail call i32 @bam_mpileup(i32 %26, i8** %7)
br label %172
28: ; preds = %21
%29 = load i8*, i8** %7
%30 = tail call i64 @strcmp(i8* %29, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %35
32: ; preds = %28
%33 = add nsw i32 %0, -1
%34 = tail call i32 @bam_merge(i32 %33, i8** %7)
br label %172
35: ; preds = %28
%36 = load i8*, i8** %7
%37 = tail call i64 @strcmp(i8* %36, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %42
39: ; preds = %35
%40 = add nsw i32 %0, -1
%41 = tail call i32 @bam_sort(i32 %40, i8** %7)
br label %172
42: ; preds = %35
%43 = load i8*, i8** %7
%44 = tail call i64 @strcmp(i8* %43, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %49
46: ; preds = %42
%47 = add nsw i32 %0, -1
%48 = tail call i32 @bam_index(i32 %47, i8** %7)
br label %172
49: ; preds = %42
%50 = load i8*, i8** %7
%51 = tail call i64 @strcmp(i8* %50, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
%52 = icmp eq i64 %51, 0
br i1 %52, label %53, label %56
53: ; preds = %49
%54 = add nsw i32 %0, -1
%55 = tail call i32 @bam_idxstats(i32 %54, i8** %7)
br label %172
56: ; preds = %49
%57 = load i8*, i8** %7
%58 = tail call i64 @strcmp(i8* %57, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %63
60: ; preds = %56
%61 = add nsw i32 %0, -1
%62 = tail call i32 @faidx_main(i32 %61, i8** %7)
br label %172
63: ; preds = %56
%64 = load i8*, i8** %7
%65 = tail call i64 @strcmp(i8* %64, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
%66 = icmp eq i64 %65, 0
br i1 %66, label %67, label %70
67: ; preds = %63
%68 = add nsw i32 %0, -1
%69 = tail call i32 @bam_mating(i32 %68, i8** %7)
br label %172
70: ; preds = %63
%71 = load i8*, i8** %7
%72 = tail call i64 @strcmp(i8* %71, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%73 = icmp eq i64 %72, 0
br i1 %73, label %74, label %77
74: ; preds = %70
%75 = add nsw i32 %0, -1
%76 = tail call i32 @bam_rmdup(i32 %75, i8** %7)
br label %172
77: ; preds = %70
%78 = load i8*, i8** %7
%79 = tail call i64 @strcmp(i8* %78, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0))
%80 = icmp eq i64 %79, 0
br i1 %80, label %81, label %84
81: ; preds = %77
%82 = add nsw i32 %0, -1
%83 = tail call i32 @bam_flagstat(i32 %82, i8** %7)
br label %172
84: ; preds = %77
%85 = load i8*, i8** %7
%86 = tail call i64 @strcmp(i8* %85, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0))
%87 = icmp eq i64 %86, 0
br i1 %87, label %88, label %91
88: ; preds = %84
%89 = add nsw i32 %0, -1
%90 = tail call i32 @bam_fillmd(i32 %89, i8** %7)
br label %172
91: ; preds = %84
%92 = load i8*, i8** %7
%93 = tail call i64 @strcmp(i8* %92, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0))
%94 = icmp eq i64 %93, 0
br i1 %94, label %95, label %98
95: ; preds = %91
%96 = add nsw i32 %0, -1
%97 = tail call i32 @bam_fillmd(i32 %96, i8** %7)
br label %172
98: ; preds = %91
%99 = load i8*, i8** %7
%100 = tail call i64 @strcmp(i8* %99, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i64 0, i64 0))
%101 = icmp eq i64 %100, 0
br i1 %101, label %102, label %105
102: ; preds = %98
%103 = add nsw i32 %0, -1
%104 = tail call i32 @main_reheader(i32 %103, i8** %7)
br label %172
105: ; preds = %98
%106 = load i8*, i8** %7
%107 = tail call i64 @strcmp(i8* %106, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%108 = icmp eq i64 %107, 0
br i1 %108, label %109, label %112
109: ; preds = %105
%110 = add nsw i32 %0, -1
%111 = tail call i32 @main_cat(i32 %110, i8** %7)
br label %172
112: ; preds = %105
%113 = load i8*, i8** %7
%114 = tail call i64 @strcmp(i8* %113, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0))
%115 = icmp eq i64 %114, 0
br i1 %115, label %116, label %119
116: ; preds = %112
%117 = add nsw i32 %0, -1
%118 = tail call i32 @main_cut_target(i32 %117, i8** %7)
br label %172
119: ; preds = %112
%120 = load i8*, i8** %7
%121 = tail call i64 @strcmp(i8* %120, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0))
%122 = icmp eq i64 %121, 0
br i1 %122, label %123, label %126
123: ; preds = %119
%124 = add nsw i32 %0, -1
%125 = tail call i32 @main_phase(i32 %124, i8** %7)
br label %172
126: ; preds = %119
%127 = load i8*, i8** %7
%128 = tail call i64 @strcmp(i8* %127, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0))
%129 = icmp eq i64 %128, 0
br i1 %129, label %130, label %133
130: ; preds = %126
%131 = add nsw i32 %0, -1
%132 = tail call i32 @main_depth(i32 %131, i8** %7)
br label %172
133: ; preds = %126
%134 = load i8*, i8** %7
%135 = tail call i64 @strcmp(i8* %134, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.18, i64 0, i64 0))
%136 = icmp eq i64 %135, 0
br i1 %136, label %137, label %140
137: ; preds = %133
%138 = add nsw i32 %0, -1
%139 = tail call i32 @main_bam2fq(i32 %138, i8** %7)
br label %172
140: ; preds = %133
%141 = load i8*, i8** %7
%142 = tail call i64 @strcmp(i8* %141, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.19, i64 0, i64 0))
%143 = icmp eq i64 %142, 0
br i1 %143, label %144, label %147
144: ; preds = %140
%145 = add nsw i32 %0, -1
%146 = tail call i32 @main_pad2unpad(i32 %145, i8** %7)
br label %172
147: ; preds = %140
%148 = load i8*, i8** %7
%149 = tail call i64 @strcmp(i8* %148, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.20, i64 0, i64 0))
%150 = icmp eq i64 %149, 0
br i1 %150, label %151, label %154
151: ; preds = %147
%152 = add nsw i32 %0, -1
%153 = tail call i32 @main_pad2unpad(i32 %152, i8** %7)
br label %172
154: ; preds = %147
%155 = load i8*, i8** %7
%156 = tail call i64 @strcmp(i8* %155, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0))
%157 = icmp eq i64 %156, 0
br i1 %157, label %158, label %161
158: ; preds = %154
%159 = load i32, i32* @stderr
%160 = tail call i32 (i32, i8*, ...) @fprintf(i32 %159, i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.22, i64 0, i64 0))
br label %172
161: ; preds = %154
%162 = load i8*, i8** %7
%163 = tail call i64 @strcmp(i8* %162, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.23, i64 0, i64 0))
%164 = icmp eq i64 %163, 0
br i1 %164, label %165, label %168
165: ; preds = %161
%166 = add nsw i32 %0, -1
%167 = tail call i32 @main_qa(i32 %166, i8** %7)
br label %172
168: ; preds = %161
%169 = load i32, i32* @stderr
%170 = load i8*, i8** %7
%171 = tail call i32 (i32, i8*, ...) @fprintf(i32 %169, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.24, i64 0, i64 0), i8* %170)
br label %172
172: ; preds = %168, %165, %158, %151, %144, %137, %130, %123, %116, %109, %102, %95, %88, %81, %74, %67, %60, %53, %46, %39, %32, %25, %18, %11, %4
%173 = phi i32 [ %5, %4 ], [ %13, %11 ], [ %20, %18 ], [ %27, %25 ], [ %34, %32 ], [ %41, %39 ], [ %48, %46 ], [ %55, %53 ], [ %62, %60 ], [ %69, %67 ], [ %76, %74 ], [ %83, %81 ], [ %90, %88 ], [ %97, %95 ], [ %104, %102 ], [ %111, %109 ], [ %118, %116 ], [ %125, %123 ], [ %132, %130 ], [ %139, %137 ], [ %146, %144 ], [ %153, %151 ], [ 1, %158 ], [ %167, %165 ], [ 1, %168 ]
ret i32 %173
}