// File: zeeev[P]DASVC/bamtools/src/toolkit/bamtools_header.cpp
// Function: BamTools::HeaderTool::HeaderTool()
HeaderTool::HeaderTool(void)
    : AbstractTool()
    , m_settings(new HeaderSettings)
    , m_impl(0)
{
    // set program details
    Options::SetProgramInfo("bamtools header", "prints header from BAM file(s)", "[-in <filename> -in <filename> ... | -list <filelist>]");
    
    // 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::StandardIn());
    Options::AddValueOption("-list", "filename", "the input BAM file list, one line per file", "", m_settings->HasInputFilelist,  m_settings->InputFilelist, IO_Opts);
}

// Assembly:
subq $0x2b8, %rsp            # imm = 0x2B8
movq %rdi, 0x2b0(%rsp)
movq 0x2b0(%rsp), %rdi
movq %rdi, 0xa0(%rsp)
callq 0x91a20
movq 0xa0(%rsp), %rax
leaq 0xa335d(%rip), %rcx     # 0x164970
movq %rcx, (%rax)
addq $0x8, %rax
movq %rax, 0xa8(%rsp)
movl $0x40, %edi
callq 0x86720
movq %rax, 0xb0(%rsp)
jmp 0xc1636
movq 0xb0(%rsp), %rdi
callq 0xc2040
jmp 0xc1645
movq 0xa0(%rsp), %rax
movq 0xa8(%rsp), %rcx
movq 0xb0(%rsp), %rdx
movq %rdx, (%rcx)
movq $0x0, 0x10(%rax)
leaq 0x27f(%rsp), %rdi
movq %rdi, 0x98(%rsp)
callq 0x86da0
movq 0x98(%rsp), %rdx
leaq 0x6e9c4(%rip), %rsi     # 0x130050
leaq 0x280(%rsp), %rdi
callq 0x86a00
jmp 0xc169b
leaq 0x257(%rsp), %rdi
movq %rdi, 0x90(%rsp)
callq 0x86da0
movq 0x90(%rsp), %rdx
leaq 0x6e9a1(%rip), %rsi     # 0x130060
leaq 0x258(%rsp), %rdi
callq 0x86a00
jmp 0xc16ce
leaq 0x22f(%rsp), %rdi
movq %rdi, 0x88(%rsp)
callq 0x86da0
movq 0x88(%rsp), %rdx
leaq 0x6e98d(%rip), %rsi     # 0x13007f
leaq 0x230(%rsp), %rdi
callq 0x86a00
jmp 0xc1701
leaq 0x280(%rsp), %rdi
leaq 0x258(%rsp), %rsi
leaq 0x230(%rsp), %rdx
callq 0x10f230
jmp 0xc1720
leaq 0x230(%rsp), %rdi
callq 0x86f68
jmp 0xc172f
leaq 0x22f(%rsp), %rdi
callq 0x867b0
leaq 0x258(%rsp), %rdi
callq 0x86f68
jmp 0xc174b
leaq 0x257(%rsp), %rdi
callq 0x867b0
leaq 0x280(%rsp), %rdi
callq 0x86f68
jmp 0xc1767
leaq 0x27f(%rsp), %rdi
callq 0x867b0
leaq 0x1ff(%rsp), %rdi
movq %rdi, 0x80(%rsp)
callq 0x86da0
movq 0x80(%rsp), %rdx
leaq 0x6ced3(%rip), %rsi     # 0x12e66b
leaq 0x200(%rsp), %rdi
callq 0x86a00
jmp 0xc17a7
leaq 0x200(%rsp), %rdi
callq 0x10d3e0
movq %rax, 0x78(%rsp)
jmp 0xc17bb
leaq 0x200(%rsp), %rdi
callq 0x86f68
jmp 0xc17ca
leaq 0x1ff(%rsp), %rdi
callq 0x867b0
movq 0x78(%rsp), %rax
movq %rax, 0x220(%rsp)
leaq 0x1d7(%rsp), %rdi
movq %rdi, 0x70(%rsp)
callq 0x86da0
movq 0x70(%rsp), %rdx
leaq 0x6ce78(%rip), %rsi     # 0x12e67a
leaq 0x1d8(%rsp), %rdi
callq 0x86a00
jmp 0xc1811
leaq 0x1af(%rsp), %rdi
movq %rdi, 0x68(%rsp)
callq 0x86da0
movq 0x68(%rsp), %rdx
leaq 0x6ce4f(%rip), %rsi     # 0x12e67e
leaq 0x1b0(%rsp), %rdi
callq 0x86a00
jmp 0xc183e
leaq 0x187(%rsp), %rdi
movq %rdi, 0x60(%rsp)
callq 0x86da0
movq 0x60(%rsp), %rdx
leaq 0x6ce2f(%rip), %rsi     # 0x12e68b
leaq 0x188(%rsp), %rdi
callq 0x86a00
jmp 0xc186b
leaq 0x15f(%rsp), %rdi
movq %rdi, 0x58(%rsp)
callq 0x86da0
movq 0x58(%rsp), %rdx
leaq 0x733ea(%rip), %rsi     # 0x134c73
leaq 0x160(%rsp), %rdi
callq 0x86a00
jmp 0xc1898
movq 0xa0(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x38(%rsp)
addq $0x8, %rax
movq %rax, 0x40(%rsp)
movq 0x220(%rsp), %rax
movq %rax, 0x48(%rsp)
callq 0x10f280
movq %rax, 0x50(%rsp)
jmp 0xc18cb
movq 0x40(%rsp), %r9
movq 0x38(%rsp), %r8
movq 0x48(%rsp), %rcx
movq 0x50(%rsp), %rdx
movq %rsp, %rax
movq %rdx, 0x8(%rax)
movq %rcx, (%rax)
leaq 0x1d8(%rsp), %rdi
leaq 0x1b0(%rsp), %rsi
leaq 0x188(%rsp), %rdx
leaq 0x160(%rsp), %rcx
callq 0x91bf0
jmp 0xc1910
leaq 0x160(%rsp), %rdi
callq 0x86f68
jmp 0xc191f
leaq 0x15f(%rsp), %rdi
callq 0x867b0
leaq 0x188(%rsp), %rdi
callq 0x86f68
jmp 0xc193b
leaq 0x187(%rsp), %rdi
callq 0x867b0
leaq 0x1b0(%rsp), %rdi
callq 0x86f68
jmp 0xc1957
leaq 0x1af(%rsp), %rdi
callq 0x867b0
leaq 0x1d8(%rsp), %rdi
callq 0x86f68
jmp 0xc1973
leaq 0x1d7(%rsp), %rdi
callq 0x867b0
leaq 0x137(%rsp), %rdi
movq %rdi, 0x30(%rsp)
callq 0x86da0
movq 0x30(%rsp), %rdx
leaq 0x6cd03(%rip), %rsi     # 0x12e6a1
leaq 0x138(%rsp), %rdi
callq 0x86a00
jmp 0xc19ad
leaq 0x10f(%rsp), %rdi
movq %rdi, 0x28(%rsp)
callq 0x86da0
movq 0x28(%rsp), %rdx
leaq 0x6cd95(%rip), %rsi     # 0x12e760
leaq 0x110(%rsp), %rdi
callq 0x86a00
jmp 0xc19da
leaq 0xe7(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0x86da0
movq 0x20(%rsp), %rdx
leaq 0x6ccaf(%rip), %rsi     # 0x12e6a7
leaq 0xe8(%rsp), %rdi
callq 0x86a00
jmp 0xc1a07
leaq 0xbf(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x86da0
movq 0x18(%rsp), %rdx
leaq 0x7324e(%rip), %rsi     # 0x134c73
leaq 0xc0(%rsp), %rdi
callq 0x86a00
jmp 0xc1a34
movq 0xa0(%rsp), %rax
movq 0x8(%rax), %r9
movq %r9, %r8
incq %r8
addq $0x20, %r9
movq 0x220(%rsp), %rcx
movq %rsp, %rax
movq %rcx, (%rax)
leaq 0x138(%rsp), %rdi
leaq 0x110(%rsp), %rsi
leaq 0xe8(%rsp), %rdx
leaq 0xc0(%rsp), %rcx
callq 0x91f00
jmp 0xc1a7f
leaq 0xc0(%rsp), %rdi
callq 0x86f68
jmp 0xc1a8e
leaq 0xbf(%rsp), %rdi
callq 0x867b0
leaq 0xe8(%rsp), %rdi
callq 0x86f68
jmp 0xc1aaa
leaq 0xe7(%rsp), %rdi
callq 0x867b0
leaq 0x110(%rsp), %rdi
callq 0x86f68
jmp 0xc1ac6
leaq 0x10f(%rsp), %rdi
callq 0x867b0
leaq 0x138(%rsp), %rdi
callq 0x86f68
jmp 0xc1ae2
leaq 0x137(%rsp), %rdi
callq 0x867b0
addq $0x2b8, %rsp            # imm = 0x2B8
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2a8(%rsp)
movl %eax, 0x2a4(%rsp)
jmp 0xc1e14
movq 0xb0(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2a8(%rsp)
movl %eax, 0x2a4(%rsp)
callq 0x866a0
jmp 0xc1e14
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2a8(%rsp)
movl %eax, 0x2a4(%rsp)
jmp 0xc1bdc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2a8(%rsp)
movl %eax, 0x2a4(%rsp)
jmp 0xc1bbe
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2a8(%rsp)
movl %eax, 0x2a4(%rsp)
jmp 0xc1ba0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2a8(%rsp)
movl %eax, 0x2a4(%rsp)
leaq 0x230(%rsp), %rdi
callq 0x86f68
jmp 0xc1b9e
jmp 0xc1ba0
leaq 0x22f(%rsp), %rdi
callq 0x867b0
leaq 0x258(%rsp), %rdi
callq 0x86f68
jmp 0xc1bbc
jmp 0xc1bbe
leaq 0x257(%rsp), %rdi
callq 0x867b0
leaq 0x280(%rsp), %rdi
callq 0x86f68
jmp 0xc1bda
jmp 0xc1bdc
leaq 0x27f(%rsp), %rdi
callq 0x867b0
jmp 0xc1e14
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2a8(%rsp)
movl %eax, 0x2a4(%rsp)
jmp 0xc1c29
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2a8(%rsp)
movl %eax, 0x2a4(%rsp)
leaq 0x200(%rsp), %rdi
callq 0x86f68
jmp 0xc1c27
jmp 0xc1c29
leaq 0x1ff(%rsp), %rdi
callq 0x867b0
jmp 0xc1e14
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2a8(%rsp)
movl %eax, 0x2a4(%rsp)
jmp 0xc1d18
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2a8(%rsp)
movl %eax, 0x2a4(%rsp)
jmp 0xc1cfa
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2a8(%rsp)
movl %eax, 0x2a4(%rsp)
jmp 0xc1cdc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2a8(%rsp)
movl %eax, 0x2a4(%rsp)
jmp 0xc1cbe
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2a8(%rsp)
movl %eax, 0x2a4(%rsp)
leaq 0x160(%rsp), %rdi
callq 0x86f68
jmp 0xc1cbc
jmp 0xc1cbe
leaq 0x15f(%rsp), %rdi
callq 0x867b0
leaq 0x188(%rsp), %rdi
callq 0x86f68
jmp 0xc1cda
jmp 0xc1cdc
leaq 0x187(%rsp), %rdi
callq 0x867b0
leaq 0x1b0(%rsp), %rdi
callq 0x86f68
jmp 0xc1cf8
jmp 0xc1cfa
leaq 0x1af(%rsp), %rdi
callq 0x867b0
leaq 0x1d8(%rsp), %rdi
callq 0x86f68
jmp 0xc1d16
jmp 0xc1d18
leaq 0x1d7(%rsp), %rdi
callq 0x867b0
jmp 0xc1e14
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2a8(%rsp)
movl %eax, 0x2a4(%rsp)
jmp 0xc1e07
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2a8(%rsp)
movl %eax, 0x2a4(%rsp)
jmp 0xc1de9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2a8(%rsp)
movl %eax, 0x2a4(%rsp)
jmp 0xc1dcb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2a8(%rsp)
movl %eax, 0x2a4(%rsp)
jmp 0xc1dad
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x2a8(%rsp)
movl %eax, 0x2a4(%rsp)
leaq 0xc0(%rsp), %rdi
callq 0x86f68
jmp 0xc1dab
jmp 0xc1dad
leaq 0xbf(%rsp), %rdi
callq 0x867b0
leaq 0xe8(%rsp), %rdi
callq 0x86f68
jmp 0xc1dc9
jmp 0xc1dcb
leaq 0xe7(%rsp), %rdi
callq 0x867b0
leaq 0x110(%rsp), %rdi
callq 0x86f68
jmp 0xc1de7
jmp 0xc1de9
leaq 0x10f(%rsp), %rdi
callq 0x867b0
leaq 0x138(%rsp), %rdi
callq 0x86f68
jmp 0xc1e05
jmp 0xc1e07
leaq 0x137(%rsp), %rdi
callq 0x867b0
movq 0xa0(%rsp), %rdi
callq 0x92a20
jmp 0xc1e23
jmp 0xc1e25
movq 0x2a8(%rsp), %rdi
callq 0x86d80
movq %rax, %rdi
callq 0x91290
nopw (%rax,%rax)