// File: /workspace/github_cpp_makefile_star2_O2/zeeev[P]DASVC/bamtools/src/toolkit/bamtools_merge.cpp
// Function: BamTools::MergeTool::MergeTool()
MergeTool::MergeTool(void)
    : AbstractTool()
    , m_settings(new MergeSettings)
    , m_impl(0)
{
    // set program details
    Options::SetProgramInfo("bamtools merge", "merges multiple BAM files into one",
                            "[-in <filename> -in <filename> ... | -list <filelist>] [-out <filename> | [-forceCompression]] [-region <REGION>]");
    
    // set up options 
    OptionGroup* IO_Opts = Options::CreateOptionGroup("Input & Output");
    Options::AddValueOption("-in",  "BAM filename", "the input BAM file(s)", "", m_settings->HasInput,  m_settings->InputFiles,     IO_Opts);
    Options::AddValueOption("-list",  "filename", "the input BAM file list, one line per file", "", m_settings->HasInputFilelist,  m_settings->InputFilelist, IO_Opts);
    Options::AddValueOption("-out", "BAM filename", "the output BAM file",   "", m_settings->HasOutput, m_settings->OutputFilename, IO_Opts);
    Options::AddOption("-forceCompression", "if results are sent to stdout (like when piping to another tool), default behavior is to leave output uncompressed. Use this flag to override and force compression", m_settings->IsForceCompression, IO_Opts);
    Options::AddValueOption("-region", "REGION", "genomic region. See README for more details", "", m_settings->HasRegion, m_settings->Region, IO_Opts);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x98, %rsp
movq %rdi, %rbx
leaq 0x480a8(%rip), %rax     # 0x94a00
movq %rax, (%rdi)
movl $0x80, %edi
callq 0x355d0
movq %rax, %r14
movq %rax, %rdi
callq 0x4cf82
movq %r14, 0x8(%rbx)
andq $0x0, 0x10(%rbx)
leaq 0x26149(%rip), %rsi     # 0x72ac9
leaq 0x18(%rsp), %rdi
leaq 0x78(%rsp), %rdx
callq 0x35280
leaq 0x26142(%rip), %rsi     # 0x72ad8
leaq 0x38(%rsp), %rdi
leaq 0x15(%rsp), %rdx
callq 0x35280
leaq 0x2614f(%rip), %rsi     # 0x72afb
leaq 0x58(%rsp), %rdi
leaq 0x14(%rsp), %rdx
callq 0x35280
leaq 0x18(%rsp), %rdi
leaq 0x38(%rsp), %rsi
leaq 0x58(%rsp), %rdx
callq 0x65e80
leaq 0x58(%rsp), %rdi
callq 0x35730
leaq 0x38(%rsp), %rdi
callq 0x35730
leaq 0x18(%rsp), %rdi
callq 0x35730
leaq 0x24b27(%rip), %rsi     # 0x7151b
leaq 0x18(%rsp), %rdi
leaq 0x38(%rsp), %rdx
callq 0x35280
leaq 0x18(%rsp), %rdi
callq 0x65402
movq %rax, %r14
leaq 0x18(%rsp), %rdi
callq 0x35730
leaq 0x24b09(%rip), %rsi     # 0x7152a
leaq 0x18(%rsp), %rdi
leaq 0x15(%rsp), %rdx
callq 0x35280
leaq 0x24af7(%rip), %rsi     # 0x7152e
leaq 0x38(%rsp), %rdi
leaq 0x14(%rsp), %rdx
callq 0x35280
leaq 0x24aee(%rip), %rsi     # 0x7153b
leaq 0x58(%rsp), %rdi
leaq 0x17(%rsp), %rdx
callq 0x35280
leaq 0x29d94(%rip), %rsi     # 0x767f7
leaq 0x78(%rsp), %rdi
leaq 0x16(%rsp), %rdx
callq 0x35280
movq 0x8(%rbx), %r8
leaq 0x8(%r8), %r9
movq %r14, (%rsp)
leaq 0x18(%rsp), %rdi
leaq 0x38(%rsp), %rsi
leaq 0x58(%rsp), %rdx
leaq 0x78(%rsp), %rcx
callq 0x4d002
leaq 0x78(%rsp), %rdi
callq 0x35730
leaq 0x58(%rsp), %rdi
callq 0x35730
leaq 0x38(%rsp), %rdi
callq 0x35730
leaq 0x18(%rsp), %rdi
callq 0x35730
leaq 0x24a8b(%rip), %rsi     # 0x71551
leaq 0x18(%rsp), %rdi
leaq 0x15(%rsp), %rdx
callq 0x35280
leaq 0x24b34(%rip), %rsi     # 0x71610
leaq 0x38(%rsp), %rdi
leaq 0x14(%rsp), %rdx
callq 0x35280
leaq 0x24a65(%rip), %rsi     # 0x71557
leaq 0x58(%rsp), %rdi
leaq 0x17(%rsp), %rdx
callq 0x35280
leaq 0x29cef(%rip), %rsi     # 0x767f7
leaq 0x78(%rsp), %rdi
leaq 0x16(%rsp), %rdx
callq 0x35280
movq 0x8(%rbx), %r9
leaq 0x1(%r9), %r8
addq $0x20, %r9
movq %r14, (%rsp)
leaq 0x18(%rsp), %rdi
leaq 0x38(%rsp), %rsi
leaq 0x58(%rsp), %rdx
leaq 0x78(%rsp), %rcx
callq 0x3a5fe
leaq 0x78(%rsp), %rdi
callq 0x35730
leaq 0x58(%rsp), %rdi
callq 0x35730
leaq 0x38(%rsp), %rdi
callq 0x35730
leaq 0x18(%rsp), %rdi
callq 0x35730
leaq 0x24a13(%rip), %rsi     # 0x71582
leaq 0x18(%rsp), %rdi
leaq 0x15(%rsp), %rdx
callq 0x35280
leaq 0x249a9(%rip), %rsi     # 0x7152e
leaq 0x38(%rsp), %rdi
leaq 0x14(%rsp), %rdx
callq 0x35280
leaq 0x249ec(%rip), %rsi     # 0x71587
leaq 0x58(%rsp), %rdi
leaq 0x17(%rsp), %rdx
callq 0x35280
leaq 0x29c46(%rip), %rsi     # 0x767f7
leaq 0x78(%rsp), %rdi
leaq 0x16(%rsp), %rdx
callq 0x35280
movq 0x8(%rbx), %r9
leaq 0x2(%r9), %r8
addq $0x40, %r9
movq %r14, (%rsp)
leaq 0x18(%rsp), %rdi
leaq 0x38(%rsp), %rsi
leaq 0x58(%rsp), %rdx
leaq 0x78(%rsp), %rcx
callq 0x3a5fe
leaq 0x78(%rsp), %rdi
callq 0x35730
leaq 0x58(%rsp), %rdi
callq 0x35730
leaq 0x38(%rsp), %rdi
callq 0x35730
leaq 0x18(%rsp), %rdi
callq 0x35730
leaq 0x2546c(%rip), %rsi     # 0x72084
leaq 0x18(%rsp), %rdi
leaq 0x58(%rsp), %rdx
callq 0x35280
leaq 0x253aa(%rip), %rsi     # 0x71fd8
leaq 0x38(%rsp), %rdi
leaq 0x78(%rsp), %rdx
callq 0x35280
movq 0x8(%rbx), %rdx
addq $0x3, %rdx
leaq 0x18(%rsp), %rdi
leaq 0x38(%rsp), %rsi
movq %r14, %rcx
callq 0x652e4
leaq 0x38(%rsp), %rdi
callq 0x35730
leaq 0x18(%rsp), %rdi
callq 0x35730
leaq 0x24973(%rip), %rsi     # 0x715e5
leaq 0x18(%rsp), %rdi
leaq 0x15(%rsp), %rdx
callq 0x35280
leaq 0x24965(%rip), %rsi     # 0x715ed
leaq 0x38(%rsp), %rdi
leaq 0x14(%rsp), %rdx
callq 0x35280
leaq 0x25ecf(%rip), %rsi     # 0x72b6d
leaq 0x58(%rsp), %rdi
leaq 0x17(%rsp), %rdx
callq 0x35280
leaq 0x29b43(%rip), %rsi     # 0x767f7
leaq 0x78(%rsp), %rdi
leaq 0x16(%rsp), %rdx
callq 0x35280
movq 0x8(%rbx), %r9
leaq 0x4(%r9), %r8
addq $0x60, %r9
movq %r14, (%rsp)
leaq 0x18(%rsp), %rdi
leaq 0x38(%rsp), %rsi
leaq 0x58(%rsp), %rdx
leaq 0x78(%rsp), %rcx
callq 0x3a5fe
leaq 0x78(%rsp), %rdi
callq 0x35730
leaq 0x58(%rsp), %rdi
callq 0x35730
leaq 0x38(%rsp), %rdi
callq 0x35730
leaq 0x18(%rsp), %rdi
callq 0x35730
addq $0x98, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0x35730
jmp 0x4cdba
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x35730
jmp 0x4cdea
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0x35730
jmp 0x4ce0b
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0x35730
jmp 0x4ce3a
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0x35730
jmp 0x4ce69
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x35730
jmp 0x4ce8e
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x35730
jmp 0x4ce9e
movq %rax, %rbx
movq %r14, %rdi
callq 0x35570
jmp 0x4ce8e
movq %rax, %rbx
jmp 0x4cdce
movq %rax, %rbx
jmp 0x4cdc4
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x35730
leaq 0x38(%rsp), %rdi
callq 0x35730
leaq 0x18(%rsp), %rdi
callq 0x35730
jmp 0x4ce8e
jmp 0x4ce8b
jmp 0x4ce8b
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x35730
jmp 0x4ce8e
jmp 0x4ce8b
movq %rax, %rbx
jmp 0x4ce1f
movq %rax, %rbx
jmp 0x4ce15
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x35730
leaq 0x38(%rsp), %rdi
callq 0x35730
leaq 0x18(%rsp), %rdi
callq 0x35730
jmp 0x4ce8e
jmp 0x4ce8b
movq %rax, %rbx
jmp 0x4ce4e
movq %rax, %rbx
jmp 0x4ce44
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x35730
leaq 0x38(%rsp), %rdi
callq 0x35730
leaq 0x18(%rsp), %rdi
callq 0x35730
jmp 0x4ce8e
jmp 0x4ce8b
movq %rax, %rbx
jmp 0x4ce7d
movq %rax, %rbx
jmp 0x4ce73
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x35730
leaq 0x38(%rsp), %rdi
callq 0x35730
leaq 0x18(%rsp), %rdi
callq 0x35730
jmp 0x4ce8e
jmp 0x4ce8b
movq %rax, %rbx
movq %rbx, %rdi
callq 0x35b50
movq %rax, %rbx
jmp 0x4cea8
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x35730
leaq 0x18(%rsp), %rdi
callq 0x35730
jmp 0x4ce8e
movq %rax, %rdi
callq 0x3a198