// File: /workspace/github_cpp_makefile_star2_O1/zeeev[P]DASVC/bamtools/src/utils/bamtools_options.h
// Function: void BamTools::Options::AddValueOption<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, BamTools::OptionGroup*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void Options::AddValueOption(const std::string& argument, 
                             const std::string& valueDescription, 
                             const std::string& optionDescription, 
                             const std::string& valueTypeDescription, 
                             bool& foundArgument, 
                             T& val, 
                             OptionGroup* group, 
                             D& defaultValue) 
{
        Option o;
        o.Argument         = argument;
        o.ValueDescription = valueDescription;
        o.Description      = optionDescription;
        o.DefaultValue     = defaultValue;
        o.HasDefaultValue  = true;
        group->Options.push_back(o);

        OptionValue ov;
        ov.pFoundArgument       = &foundArgument;
        ov.pValue               = (void*)&val;
        ov.VariantValue         = val;
        ov.IsRequired           = (valueTypeDescription.empty() ? false : true);
        ov.ValueTypeDescription = valueTypeDescription;
        m_optionsMap[argument] = ov;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %r9, %r15
movq %r8, %r12
movq %rcx, %r14
movq %rdx, %r13
movq %rsi, %rbp
movq %rdi, %rbx
leaq 0x68(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x88(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0xa8(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
movw $0x1, 0x10(%rcx)
movq %rax, 0x18(%rcx)
leaq 0x58(%rsp), %rdi
movq %rbx, %rsi
callq 0x27350
leaq 0x78(%rsp), %rdi
movq %rbp, %rsi
callq 0x27350
leaq 0x98(%rsp), %rdi
movq %r13, %rsi
callq 0x27350
movq 0x148(%rsp), %rax
leaq 0xf8(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0xe8(%rsp), %rdi
callq 0x2f122
leaq 0x10(%rsp), %rdi
leaq 0xe8(%rsp), %rsi
callq 0x2f6ae
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x2eca3
incq 0x8(%rax)
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0x2ecbc
decq 0x8(%rdi)
jne 0x2ecbc
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x10(%rsp), %rdi
movq %rdi, 0xc0(%rsp)
testq %rdi, %rdi
je 0x2ecda
decq 0x8(%rdi)
jne 0x2ecda
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x140(%rsp), %r13
movq 0xe8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2ecf4
callq 0x27560
leaq 0x58(%rsp), %rsi
movb $0x1, 0x61(%rsi)
addq $0x20, %r13
movq %r13, %rdi
callq 0x2f7a2
leaq 0x30(%rsp), %r13
xorps %xmm0, %xmm0
movaps %xmm0, -0x20(%r13)
movq %r13, -0x10(%r13)
xorl %eax, %eax
movq %rax, -0x8(%r13)
movb %al, (%r13)
movw $0x100, 0x10(%r13)      # imm = 0x100
movb %al, 0x12(%r13)
movq %rax, 0x18(%r13)
movq %r12, -0x20(%r13)
movq %r15, -0x18(%r13)
leaq 0xd8(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0xc8(%rsp), %rdi
callq 0x2f122
leaq 0x8(%rsp), %rdi
leaq 0xc8(%rsp), %rsi
callq 0x2f6ae
movq 0x8(%rsp), %rax
testq %rax, %rax
je 0x2ed7f
incq 0x8(%rax)
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x2ed95
decq 0x8(%rdi)
jne 0x2ed95
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x8(%rsp), %rdi
movq %rdi, 0x48(%rsp)
testq %rdi, %rdi
je 0x2edb0
decq 0x8(%rdi)
jne 0x2edb0
movq (%rdi), %rax
callq *0x8(%rax)
leaq 0x20(%rsp), %r15
movq 0xc8(%rsp), %rdi
cmpq %r12, %rdi
je 0x2edc7
callq 0x27560
cmpq $0x0, 0x8(%r14)
setne 0x42(%rsp)
movq %r15, %rdi
movq %r14, %rsi
callq 0x27350
leaq 0x6287d(%rip), %rdi     # 0x91660
movq %rbx, %rsi
callq 0x2f8e8
movq %rax, %rbx
movaps 0x10(%rsp), %xmm0
movups %xmm0, (%rax)
leaq 0x10(%rax), %rdi
movq %r15, %rsi
callq 0x27350
leaq 0x40(%rsp), %rax
leaq 0x48(%rsp), %rsi
movb 0x2(%rax), %cl
movb %cl, 0x32(%rbx)
movzwl (%rax), %eax
movw %ax, 0x30(%rbx)
addq $0x38, %rbx
movq %rbx, %rdi
callq 0x2f766
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x2ee3b
decq 0x8(%rdi)
jne 0x2ee3b
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x2ee4a
callq 0x27560
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
je 0x2ee63
decq 0x8(%rdi)
jne 0x2ee63
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x2ee7d
callq 0x27560
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x2ee94
callq 0x27560
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x2eea8
callq 0x27560
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x2eed7
callq 0x27560
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x2eeee
callq 0x27560
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x2ef9e
callq 0x27560
jmp 0x2ef9e
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
jne 0x2ef7b
jmp 0x2ef94
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x2ef57
decq 0x8(%rdi)
jne 0x2ef57
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x2ef57
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2ef6e
decq 0x8(%rdi)
jne 0x2ef6e
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x2ef6e
jmp 0x2ef82
jmp 0x2ef91
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
cmpq %r12, %rdi
je 0x2ef85
callq 0x27560
jmp 0x2ef85
movq %rax, %rbx
movq 0xe8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2ef94
callq 0x27560
jmp 0x2ef94
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x2fa94
jmp 0x2ef94
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x2faea
movq %rbx, %rdi
callq 0x27b20
movq %rax, %rdi
callq 0x2e1ed