// File: /workspace/github_cpp_makefile_star2_O3/zeeev[P]DASVC/bamtools/src/toolkit/bamtools_index.cpp
// Function: BamTools::IndexTool::IndexTool()
IndexTool::IndexTool(void)
    : AbstractTool()
    , m_settings(new IndexSettings)
    , m_impl(0)
{
    // set program details
    Options::SetProgramInfo("bamtools index", "creates index for BAM file", "[-in <filename>] [-bti]");
    
    // set up options 
    OptionGroup* IO_Opts = Options::CreateOptionGroup("Input & Output");
    Options::AddValueOption("-in", "BAM filename", "the input BAM file", "", m_settings->HasInputBamFilename, m_settings->InputBamFilename, IO_Opts, Options::StandardIn());
    Options::AddOption("-bti", "create (non-standard) BamTools index file (*.bti). Default behavior is to create standard BAM index (*.bai)", m_settings->IsUsingBamtoolsIndex, IO_Opts);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
leaq 0x4b3f9(%rip), %rax     # 0x8e9b0
movq %rax, (%rdi)
movl $0x28, %edi
callq 0x275c0
movq %rax, %r14
movw $0x0, (%rax)
callq 0x641a2
leaq 0x8(%r14), %rdi
movq %r14, %rcx
addq $0x18, %rcx
movq %rcx, 0x8(%r14)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
callq 0x2f10a
movq %r14, 0x8(%rbx)
movq $0x0, 0x10(%rbx)
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x2f348(%rip), %rsi     # 0x72954
leaq 0x2f34f(%rip), %rdx     # 0x72962
leaq 0x8(%rsp), %rdi
callq 0x2f1a0
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x2f336(%rip), %rsi     # 0x72963
leaq 0x2f349(%rip), %rdx     # 0x7297d
leaq 0x28(%rsp), %rdi
callq 0x2f1a0
leaq 0x58(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x2f330(%rip), %rsi     # 0x7297e
leaq 0x2f340(%rip), %rdx     # 0x72995
leaq 0x48(%rsp), %rdi
callq 0x2f1a0
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
leaq 0x48(%rsp), %rdx
callq 0x64164
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x43682
callq 0x27560
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x43691
callq 0x27560
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x436a0
callq 0x27560
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x2de62(%rip), %rsi     # 0x71511
leaq 0x2de69(%rip), %rdx     # 0x7151f
callq 0x2f1a0
leaq 0x8(%rsp), %rdi
callq 0x634cc
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x436d7
callq 0x27560
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x2de3a(%rip), %rsi     # 0x71520
leaq 0x2de36(%rip), %rdx     # 0x71523
callq 0x2f1a0
leaq 0x28(%rsp), %rdi
movq %r15, (%rdi)
leaq 0x2de23(%rip), %rsi     # 0x71524
leaq 0x2de28(%rip), %rdx     # 0x71530
callq 0x2f1a0
leaq 0x48(%rsp), %rdi
movq %rbp, (%rdi)
leaq 0x320a2(%rip), %rsi     # 0x757be
leaq 0x320ad(%rip), %rdx     # 0x757d0
callq 0x2f1a0
movq %r15, %r12
leaq 0x78(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x330dc(%rip), %rdx     # 0x76817
leaq 0x68(%rsp), %rdi
movq %rdx, %rsi
callq 0x2f1a0
movq 0x8(%rbx), %r15
callq 0x641a2
leaq 0x8(%r15), %r9
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
leaq 0x48(%rsp), %rdx
leaq 0x68(%rsp), %rcx
movq %r15, %r8
pushq %rax
pushq %r14
callq 0x2ebbe
addq $0x10, %rsp
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x43787
callq 0x27560
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
leaq 0x18(%rsp), %r15
je 0x4379b
callq 0x27560
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x437aa
callq 0x27560
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x437b9
callq 0x27560
leaq 0x8(%rsp), %rdi
movq %r15, (%rdi)
leaq 0x2f1ce(%rip), %rsi     # 0x72996
leaq 0x2f1cb(%rip), %rdx     # 0x7299a
callq 0x2f1a0
leaq 0x28(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x2f1b8(%rip), %rsi     # 0x7299b
leaq 0x2f21c(%rip), %rdx     # 0x72a06
callq 0x2f1a0
movq 0x8(%rbx), %rdx
incq %rdx
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movq %r14, %rcx
callq 0x632c4
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x43817
callq 0x27560
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x43826
callq 0x27560
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x4384f
callq 0x27560
jmp 0x4384f
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x43920
jmp 0x4391b
jmp 0x438cf
movq %rax, %rbx
jmp 0x438e6
movq %r15, %r12
movq %rax, %rbx
jmp 0x438f5
movq %rax, %rbx
jmp 0x43904
jmp 0x438cf
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x43920
jmp 0x4391b
jmp 0x438cf
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x438af
callq 0x27560
jmp 0x438af
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x438c3
callq 0x27560
jmp 0x438c3
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x43920
jmp 0x4391b
movq %rax, %rbx
jmp 0x43920
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r13, %rdi
je 0x438e6
callq 0x27560
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x438f5
callq 0x27560
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x43904
callq 0x27560
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x43920
jmp 0x4391b
movq %rax, %rbx
movq %r14, %rdi
callq 0x27560
movq %rbx, %rdi
callq 0x27b10