// File: /workspace/github_cpp_makefile_star2_O3/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
leaq 0x41571(%rip), %rax     # 0x8eb08
movq %rax, (%rdi)
movl $0x48, %edi
callq 0x275c0
movq %rax, %r14
movq %rax, %rdi
callq 0x4dc6e
movq %r14, 0x8(%rbx)
movq $0x0, 0x10(%rbx)
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x2736c(%rip), %rsi     # 0x74938
leaq 0x27374(%rip), %rdx     # 0x74947
leaq 0x8(%rsp), %rdi
callq 0x2f1a0
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x2735b(%rip), %rsi     # 0x74948
leaq 0x273a3(%rip), %rdx     # 0x74997
leaq 0x28(%rsp), %rdi
callq 0x2f1a0
leaq 0x58(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x2738a(%rip), %rsi     # 0x74998
leaq 0x273de(%rip), %rdx     # 0x749f3
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 %r15, %rdi
je 0x4d642
callq 0x27560
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x4d651
callq 0x27560
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4d660
callq 0x27560
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x23ea2(%rip), %rsi     # 0x71511
leaq 0x23ea9(%rip), %rdx     # 0x7151f
callq 0x2f1a0
leaq 0x8(%rsp), %rdi
callq 0x634cc
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4d697
callq 0x27560
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x23e7a(%rip), %rsi     # 0x71520
leaq 0x23e76(%rip), %rdx     # 0x71523
callq 0x2f1a0
leaq 0x28(%rsp), %rdi
movq %r13, (%rdi)
leaq 0x23e63(%rip), %rsi     # 0x71524
leaq 0x23e68(%rip), %rdx     # 0x71530
callq 0x2f1a0
leaq 0x48(%rsp), %rdi
movq %r15, (%rdi)
leaq 0x280e2(%rip), %rsi     # 0x757be
leaq 0x280ed(%rip), %rdx     # 0x757d0
callq 0x2f1a0
leaq 0x78(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x2911f(%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 %rbp, %rdi
je 0x4d744
callq 0x27560
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %r15
cmpq %r15, %rdi
je 0x4d758
callq 0x27560
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x4d767
callq 0x27560
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4d776
callq 0x27560
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x23df3(%rip), %rsi     # 0x71578
leaq 0x23df0(%rip), %rdx     # 0x7157c
callq 0x2f1a0
leaq 0x28(%rsp), %rdi
movq %r13, (%rdi)
leaq 0x23d84(%rip), %rsi     # 0x71524
leaq 0x23d89(%rip), %rdx     # 0x71530
callq 0x2f1a0
leaq 0x48(%rsp), %rdi
movq %r15, (%rdi)
leaq 0x23dc2(%rip), %rsi     # 0x7157d
leaq 0x23dce(%rip), %rdx     # 0x71590
callq 0x2f1a0
leaq 0x68(%rsp), %rdi
movq %rbp, (%rdi)
leaq 0x29041(%rip), %rdx     # 0x76817
movq %rdx, %rsi
callq 0x2f1a0
movq 0x8(%rbx), %r15
callq 0x641aa
leaq 0x28(%r15), %r9
incq %r15
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 %rbp, %rdi
je 0x4d820
callq 0x27560
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x4d834
callq 0x27560
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x4d843
callq 0x27560
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4d852
callq 0x27560
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x24896(%rip), %rsi     # 0x720f7
leaq 0x248a0(%rip), %rdx     # 0x72108
callq 0x2f1a0
leaq 0x28(%rsp), %rdi
movq %r13, (%rdi)
leaq 0x247cf(%rip), %rsi     # 0x7204b
leaq 0x2486b(%rip), %rdx     # 0x720ee
callq 0x2f1a0
movq 0x8(%rbx), %rdx
addq $0x2, %rdx
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movq %r14, %rcx
callq 0x632c4
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x4d8b1
callq 0x27560
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4d8c0
callq 0x27560
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x27125(%rip), %rsi     # 0x749f4
leaq 0x2712c(%rip), %rdx     # 0x74a02
callq 0x2f1a0
leaq 0x8(%rsp), %rdi
callq 0x634cc
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4d8f7
callq 0x27560
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x270fd(%rip), %rsi     # 0x74a03
leaq 0x27104(%rip), %rdx     # 0x74a11
callq 0x2f1a0
leaq 0x28(%rsp), %rdi
movq %r13, (%rdi)
leaq 0x270f1(%rip), %rsi     # 0x74a12
leaq 0x27100(%rip), %rdx     # 0x74a28
callq 0x2f1a0
movq 0x8(%rbx), %rdx
addq $0x3, %rdx
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movq %r14, %rcx
callq 0x632c4
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x4d956
callq 0x27560
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4d965
callq 0x27560
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x270b5(%rip), %rsi     # 0x74a29
leaq 0x270bc(%rip), %rdx     # 0x74a37
callq 0x2f1a0
leaq 0x28(%rsp), %rdi
movq %r13, (%rdi)
leaq 0x270a9(%rip), %rsi     # 0x74a38
leaq 0x270d7(%rip), %rdx     # 0x74a6d
callq 0x2f1a0
movq 0x8(%rbx), %rdx
addq $0x4, %rdx
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movq %r14, %rcx
callq 0x632c4
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x4d9c4
callq 0x27560
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4d9d3
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 %r13, %rdi
je 0x4d9fc
callq 0x27560
jmp 0x4d9fc
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4dbaf
jmp 0x4dbaa
jmp 0x4db17
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x4da2b
callq 0x27560
jmp 0x4da2b
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4dbaf
jmp 0x4dbaa
jmp 0x4db17
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4dbaf
jmp 0x4dbaa
jmp 0x4db17
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x4da75
callq 0x27560
jmp 0x4da75
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4dbaf
jmp 0x4dbaa
jmp 0x4db17
movq %rax, %rbx
jmp 0x4db3c
movq %rax, %rbx
jmp 0x4db50
movq %rax, %rbx
jmp 0x4db5f
jmp 0x4db17
movq %rax, %rbx
jmp 0x4db7d
movq %rax, %rbx
jmp 0x4db91
movq %rax, %rbx
jmp 0x4dba0
jmp 0x4db17
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4dbaf
jmp 0x4dbaa
jmp 0x4db17
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0x4daf0
callq 0x27560
jmp 0x4daf0
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x4db04
callq 0x27560
jmp 0x4db04
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4dbaf
jmp 0x4dbaa
movq %rax, %rbx
jmp 0x4dbaf
movq %rax, %rbx
movq %r14, %rdi
jmp 0x4dbaa
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %rbp, %rdi
je 0x4db3c
callq 0x27560
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x4db50
callq 0x27560
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x4db5f
callq 0x27560
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4dbaf
jmp 0x4dbaa
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %rbp, %rdi
je 0x4db7d
callq 0x27560
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x4db91
callq 0x27560
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x4dba0
callq 0x27560
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x4dbaf
callq 0x27560
movq %rbx, %rdi
callq 0x27b10
nop