// File: zeeev[P]DASVC/bamtools/src/toolkit/bamtools.cpp
// Function: CreateTool(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
AbstractTool* CreateTool(const string& arg) {
  
    // determine tool type based on arg
    if ( arg == CONVERT )  return new ConvertTool;
    if ( arg == COUNT )    return new CountTool;
    if ( arg == COVERAGE ) return new CoverageTool;
    if ( arg == FILTER )   return new FilterTool;
    if ( arg == HEADER )   return new HeaderTool;
    if ( arg == INDEX )    return new IndexTool;
    if ( arg == MERGE )    return new MergeTool;
    if ( arg == RANDOM )   return new RandomTool;
    if ( arg == RESOLVE )  return new ResolveTool;
    if ( arg == REVERT )   return new RevertTool;
    if ( arg == SORT )     return new SortTool;
    if ( arg == SPLIT )    return new SplitTool;
    if ( arg == STATS )    return new StatsTool;

    // unknown arg
    return 0;
}

// Assembly:
subq $0x88, %rsp
movq %rdi, 0x78(%rsp)
movq 0x78(%rsp), %rdi
leaq 0x5d750(%rip), %rsi     # 0x166508
callq 0x91630
testb $0x1, %al
jne 0x108dc3
jmp 0x108e0e
movl $0x18, %edi
callq 0x86720
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x60(%rsp)
callq 0x8e6b0
jmp 0x108ddf
movq 0x60(%rsp), %rax
movq %rax, 0x80(%rsp)
jmp 0x1092a3
movq 0x60(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x70(%rsp)
movl %eax, 0x6c(%rsp)
callq 0x866a0
jmp 0x1092b3
movq 0x78(%rsp), %rdi
leaq 0x5d70e(%rip), %rsi     # 0x166528
callq 0x91630
testb $0x1, %al
jne 0x108e25
jmp 0x108e70
movl $0x18, %edi
callq 0x86720
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x58(%rsp)
callq 0x97dd0
jmp 0x108e41
movq 0x58(%rsp), %rax
movq %rax, 0x80(%rsp)
jmp 0x1092a3
movq 0x58(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x70(%rsp)
movl %eax, 0x6c(%rsp)
callq 0x866a0
jmp 0x1092b3
movq 0x78(%rsp), %rdi
leaq 0x5d6cc(%rip), %rsi     # 0x166548
callq 0x91630
testb $0x1, %al
jne 0x108e87
jmp 0x108ed2
movl $0x18, %edi
callq 0x86720
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x50(%rsp)
callq 0x990a0
jmp 0x108ea3
movq 0x50(%rsp), %rax
movq %rax, 0x80(%rsp)
jmp 0x1092a3
movq 0x50(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x70(%rsp)
movl %eax, 0x6c(%rsp)
callq 0x866a0
jmp 0x1092b3
movq 0x78(%rsp), %rdi
leaq 0x5d68a(%rip), %rsi     # 0x166568
callq 0x91630
testb $0x1, %al
jne 0x108ee9
jmp 0x108f34
movl $0x18, %edi
callq 0x86720
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x48(%rsp)
callq 0x9e370
jmp 0x108f05
movq 0x48(%rsp), %rax
movq %rax, 0x80(%rsp)
jmp 0x1092a3
movq 0x48(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x70(%rsp)
movl %eax, 0x6c(%rsp)
callq 0x866a0
jmp 0x1092b3
movq 0x78(%rsp), %rdi
leaq 0x5d648(%rip), %rsi     # 0x166588
callq 0x91630
testb $0x1, %al
jne 0x108f4b
jmp 0x108f96
movl $0x18, %edi
callq 0x86720
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x40(%rsp)
callq 0xc15e0
jmp 0x108f67
movq 0x40(%rsp), %rax
movq %rax, 0x80(%rsp)
jmp 0x1092a3
movq 0x40(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x70(%rsp)
movl %eax, 0x6c(%rsp)
callq 0x866a0
jmp 0x1092b3
movq 0x78(%rsp), %rdi
leaq 0x5d606(%rip), %rsi     # 0x1665a8
callq 0x91630
testb $0x1, %al
jne 0x108fad
jmp 0x108ff8
movl $0x18, %edi
callq 0x86720
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x38(%rsp)
callq 0xc2280
jmp 0x108fc9
movq 0x38(%rsp), %rax
movq %rax, 0x80(%rsp)
jmp 0x1092a3
movq 0x38(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x70(%rsp)
movl %eax, 0x6c(%rsp)
callq 0x866a0
jmp 0x1092b3
movq 0x78(%rsp), %rdi
leaq 0x5d5c4(%rip), %rsi     # 0x1665c8
callq 0x91630
testb $0x1, %al
jne 0x10900f
jmp 0x10905a
movl $0x18, %edi
callq 0x86720
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x30(%rsp)
callq 0xc35e0
jmp 0x10902b
movq 0x30(%rsp), %rax
movq %rax, 0x80(%rsp)
jmp 0x1092a3
movq 0x30(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x70(%rsp)
movl %eax, 0x6c(%rsp)
callq 0x866a0
jmp 0x1092b3
movq 0x78(%rsp), %rdi
leaq 0x5d582(%rip), %rsi     # 0x1665e8
callq 0x91630
testb $0x1, %al
jne 0x109071
jmp 0x1090bc
movl $0x18, %edi
callq 0x86720
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x28(%rsp)
callq 0xc55d0
jmp 0x10908d
movq 0x28(%rsp), %rax
movq %rax, 0x80(%rsp)
jmp 0x1092a3
movq 0x28(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x70(%rsp)
movl %eax, 0x6c(%rsp)
callq 0x866a0
jmp 0x1092b3
movq 0x78(%rsp), %rdi
leaq 0x5d540(%rip), %rsi     # 0x166608
callq 0x91630
testb $0x1, %al
jne 0x1090d3
jmp 0x10911e
movl $0x18, %edi
callq 0x86720
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x20(%rsp)
callq 0xccdd0
jmp 0x1090ef
movq 0x20(%rsp), %rax
movq %rax, 0x80(%rsp)
jmp 0x1092a3
movq 0x20(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x70(%rsp)
movl %eax, 0x6c(%rsp)
callq 0x866a0
jmp 0x1092b3
movq 0x78(%rsp), %rdi
leaq 0x5d4fe(%rip), %rsi     # 0x166628
callq 0x91630
testb $0x1, %al
jne 0x109135
jmp 0x109180
movl $0x18, %edi
callq 0x86720
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x18(%rsp)
callq 0xd9d30
jmp 0x109151
movq 0x18(%rsp), %rax
movq %rax, 0x80(%rsp)
jmp 0x1092a3
movq 0x18(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x70(%rsp)
movl %eax, 0x6c(%rsp)
callq 0x866a0
jmp 0x1092b3
movq 0x78(%rsp), %rdi
leaq 0x5d4bc(%rip), %rsi     # 0x166648
callq 0x91630
testb $0x1, %al
jne 0x109197
jmp 0x1091e2
movl $0x18, %edi
callq 0x86720
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x10(%rsp)
callq 0xdbcf0
jmp 0x1091b3
movq 0x10(%rsp), %rax
movq %rax, 0x80(%rsp)
jmp 0x1092a3
movq 0x10(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x70(%rsp)
movl %eax, 0x6c(%rsp)
callq 0x866a0
jmp 0x1092b3
movq 0x78(%rsp), %rdi
leaq 0x5d47a(%rip), %rsi     # 0x166668
callq 0x91630
testb $0x1, %al
jne 0x1091f9
jmp 0x10923e
movl $0x18, %edi
callq 0x86720
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x8(%rsp)
callq 0xe6820
jmp 0x109215
movq 0x8(%rsp), %rax
movq %rax, 0x80(%rsp)
jmp 0x1092a3
movq 0x8(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x70(%rsp)
movl %eax, 0x6c(%rsp)
callq 0x866a0
jmp 0x1092b3
movq 0x78(%rsp), %rdi
leaq 0x5d43e(%rip), %rsi     # 0x166688
callq 0x91630
testb $0x1, %al
jne 0x109255
jmp 0x109297
movl $0x18, %edi
callq 0x86720
movq %rax, %rdi
movq %rdi, %rax
movq %rax, (%rsp)
callq 0x107d70
jmp 0x109270
movq (%rsp), %rax
movq %rax, 0x80(%rsp)
jmp 0x1092a3
movq (%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x70(%rsp)
movl %eax, 0x6c(%rsp)
callq 0x866a0
jmp 0x1092b3
movq $0x0, 0x80(%rsp)
movq 0x80(%rsp), %rax
addq $0x88, %rsp
retq
movq 0x70(%rsp), %rdi
callq 0x86d80
nopl (%rax)