// File: /workspace/github_cpp_makefile_star2_O2/zeeev[P]DASVC/bamtools/src/toolkit/bamtools_revert.cpp
// Function: BamTools::RevertTool::RevertTool()
RevertTool::RevertTool(void)
    : AbstractTool()
    , m_settings(new RevertSettings)
    , m_impl(0)
{
    // set program details
    Options::SetProgramInfo("bamtools revert", "removes duplicate marks and restores original (non-recalibrated) base qualities", "[-in <filename> -in <filename> ...] [-out <filename> | [-forceCompression]] [revertOptions]");
    
    // set up options 
    OptionGroup* IO_Opts = Options::CreateOptionGroup("Input & Output");
    Options::AddValueOption("-in",  "BAM filename", "the input BAM file",  "", m_settings->HasInput,  m_settings->InputFilename,  IO_Opts, Options::StandardIn());
    Options::AddValueOption("-out", "BAM filename", "the output BAM file", "", m_settings->HasOutput, m_settings->OutputFilename, IO_Opts, Options::StandardOut());
    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);

    OptionGroup* RevertOpts = Options::CreateOptionGroup("Revert Options");
    Options::AddOption("-keepDuplicate", "keep duplicates marked", m_settings->IsKeepDuplicateFlag, RevertOpts);
    Options::AddOption("-keepQualities", "keep base qualities (do not replace with OQ contents)", m_settings->IsKeepQualities, RevertOpts);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x90, %rsp
movq %rdi, %rbx
leaq 0x40860(%rip), %rax     # 0x94b10
movq %rax, (%rdi)
pushq $0x48
popq %rdi
callq 0x355d0
movq %rax, %r14
movq %rax, %rdi
callq 0x5484a
movq %r14, 0x8(%rbx)
andq $0x0, 0x10(%rbx)
leaq 0x205db(%rip), %rsi     # 0x748b1
leaq 0x10(%rsp), %rdi
leaq 0x70(%rsp), %rdx
callq 0x35280
leaq 0x205d5(%rip), %rsi     # 0x748c1
leaq 0x30(%rsp), %rdi
leaq 0xd(%rsp), %rdx
callq 0x35280
leaq 0x2060f(%rip), %rsi     # 0x74911
leaq 0x50(%rsp), %rdi
leaq 0xc(%rsp), %rdx
callq 0x35280
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x50(%rsp), %rdx
callq 0x65e80
leaq 0x50(%rsp), %rdi
callq 0x35730
leaq 0x30(%rsp), %rdi
callq 0x35730
leaq 0x10(%rsp), %rdi
callq 0x35730
leaq 0x1d1d1(%rip), %rsi     # 0x7151b
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0x35280
leaq 0x10(%rsp), %rdi
callq 0x65402
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x35730
leaq 0x1d1b3(%rip), %rsi     # 0x7152a
leaq 0x10(%rsp), %rdi
leaq 0xd(%rsp), %rdx
callq 0x35280
leaq 0x1d1a1(%rip), %rsi     # 0x7152e
leaq 0x30(%rsp), %rdi
leaq 0xc(%rsp), %rdx
callq 0x35280
leaq 0x213e1(%rip), %rsi     # 0x75784
leaq 0x50(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x35280
leaq 0x2243e(%rip), %rsi     # 0x767f7
leaq 0x70(%rsp), %rdi
leaq 0xe(%rsp), %rdx
callq 0x35280
movq 0x8(%rbx), %r15
callq 0x65ebe
leaq 0x8(%r15), %r9
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x50(%rsp), %rdx
leaq 0x70(%rsp), %rcx
movq %r15, %r8
pushq %rax
pushq %r14
callq 0x3a7ac
popq %rax
popq %rcx
leaq 0x70(%rsp), %rdi
callq 0x35730
leaq 0x50(%rsp), %rdi
callq 0x35730
leaq 0x30(%rsp), %rdi
callq 0x35730
leaq 0x10(%rsp), %rdi
callq 0x35730
leaq 0x1d15d(%rip), %rsi     # 0x71582
leaq 0x10(%rsp), %rdi
leaq 0xd(%rsp), %rdx
callq 0x35280
leaq 0x1d0f3(%rip), %rsi     # 0x7152e
leaq 0x30(%rsp), %rdi
leaq 0xc(%rsp), %rdx
callq 0x35280
leaq 0x1d136(%rip), %rsi     # 0x71587
leaq 0x50(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x35280
leaq 0x22390(%rip), %rsi     # 0x767f7
leaq 0x70(%rsp), %rdi
leaq 0xe(%rsp), %rdx
callq 0x35280
movq 0x8(%rbx), %r15
callq 0x65ec6
leaq 0x28(%r15), %r9
incq %r15
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x50(%rsp), %rdx
leaq 0x70(%rsp), %rcx
movq %r15, %r8
pushq %rax
pushq %r14
callq 0x3a7ac
popq %rax
popq %rcx
leaq 0x70(%rsp), %rdi
callq 0x35730
leaq 0x50(%rsp), %rdi
callq 0x35730
leaq 0x30(%rsp), %rdi
callq 0x35730
leaq 0x10(%rsp), %rdi
callq 0x35730
leaq 0x1dbae(%rip), %rsi     # 0x72084
leaq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0x35280
leaq 0x1daec(%rip), %rsi     # 0x71fd8
leaq 0x30(%rsp), %rdi
leaq 0x70(%rsp), %rdx
callq 0x35280
movq 0x8(%rbx), %rdx
addq $0x2, %rdx
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
movq %r14, %rcx
callq 0x652e4
leaq 0x30(%rsp), %rdi
callq 0x35730
leaq 0x10(%rsp), %rdi
callq 0x35730
leaq 0x2043d(%rip), %rsi     # 0x7496d
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0x35280
leaq 0x10(%rsp), %rdi
callq 0x65402
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x35730
leaq 0x2041f(%rip), %rsi     # 0x7497c
leaq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0x35280
leaq 0x20418(%rip), %rsi     # 0x7498b
leaq 0x30(%rsp), %rdi
leaq 0x70(%rsp), %rdx
callq 0x35280
movq 0x8(%rbx), %rdx
addq $0x3, %rdx
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
movq %r14, %rcx
callq 0x652e4
leaq 0x30(%rsp), %rdi
callq 0x35730
leaq 0x10(%rsp), %rdi
callq 0x35730
leaq 0x203eb(%rip), %rsi     # 0x749a2
leaq 0x10(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0x35280
leaq 0x203e4(%rip), %rsi     # 0x749b1
leaq 0x30(%rsp), %rdi
leaq 0x70(%rsp), %rdx
callq 0x35280
movq 0x8(%rbx), %rdx
addq $0x4, %rdx
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
movq %r14, %rcx
callq 0x652e4
leaq 0x30(%rsp), %rdi
callq 0x35730
leaq 0x10(%rsp), %rdi
callq 0x35730
addq $0x90, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x35730
jmp 0x54692
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x35730
jmp 0x546a9
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x35730
jmp 0x54755
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x35730
jmp 0x546c5
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x35730
jmp 0x54755
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x35730
jmp 0x54765
movq %rax, %rbx
movq %r14, %rdi
callq 0x35570
jmp 0x54755
jmp 0x54752
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x35730
jmp 0x54755
jmp 0x54752
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x35730
jmp 0x54755
jmp 0x54752
jmp 0x54752
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x35730
jmp 0x54755
movq %rax, %rbx
jmp 0x54704
movq %rax, %rbx
jmp 0x546fa
movq %rax, %rbx
jmp 0x546f0
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x35730
leaq 0x50(%rsp), %rdi
callq 0x35730
leaq 0x30(%rsp), %rdi
callq 0x35730
leaq 0x10(%rsp), %rdi
callq 0x35730
jmp 0x54755
jmp 0x54752
jmp 0x54752
movq %rax, %rbx
jmp 0x54744
movq %rax, %rbx
jmp 0x5473a
movq %rax, %rbx
jmp 0x54730
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x35730
leaq 0x50(%rsp), %rdi
callq 0x35730
leaq 0x30(%rsp), %rdi
callq 0x35730
leaq 0x10(%rsp), %rdi
callq 0x35730
jmp 0x54755
jmp 0x54752
movq %rax, %rbx
movq %rbx, %rdi
callq 0x35b50
movq %rax, %rbx
jmp 0x5476f
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x35730
leaq 0x10(%rsp), %rdi
callq 0x35730
jmp 0x54755
movq %rax, %rdi
callq 0x3a198
nop