// File: /workspace/github_cpp_makefile_star2_O1/jovermann[P]streplace/src/CommandLineParser.cpp
// Function: ut1::CommandLineParser::addOption(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&)
CommandLineParser::Option& CommandLineParser::addOption(char shortOption, const std::string& longOption, const std::string& help, const std::string& argName, const std::string& defaultValue)
{
    // Accept ' ' (space) as "no short option" to allow nicely formatted addOption() calls with clang-format.
    if (shortOption == ' ')
    {
        shortOption = 0;
    }

    // Check for duplicate long option.
    if (options.count(longOption))
    {
        throw std::runtime_error("CommandLineParser::addOption(longOption=" + longOption + "): Option already exists!\n");
    }

    // Check for duplicate short option.
    if (shortOption)
    {
        Option* existingOption = getShortOption(shortOption);
        if (existingOption)
            throw std::runtime_error("CommandLineParser::addOption(shortOption=" + std::string(1, shortOption) + "): Option already exists!\n");
    }

    Option opt;
    opt.shortOption  = shortOption;
    opt.longOption   = longOption;
    opt.help         = help;
    opt.argName      = argName;
    opt.defaultValue = defaultValue;
    opt.value        = defaultValue;
    opt.parent       = this;

    options[longOption] = opt;
    if (shortOption)
    {
        shortOptionToLongOption[shortOption] = longOption;
    }
    // Keep --help and --version at the end of the list.
    optionList.insert(optionList.end() - std::min(optionList.size(), size_t(2)), longOption);
    return options[longOption];
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %r9, %r15
movq %r8, %r13
movq %rcx, %rbp
movq %rdx, %rbx
movq %rdi, %r14
xorl %eax, %eax
cmpb $0x20, %sil
cmovnel %esi, %eax
movb %al, 0x7(%rsp)
movq %rdx, %rsi
callq 0x9688
leaq 0x8(%r14), %rcx
cmpq %rcx, %rax
jne 0x6393
movb 0x7(%rsp), %al
testb %al, %al
je 0x6132
movsbl %al, %esi
movq %r14, %rdi
callq 0x6680
testq %rax, %rax
jne 0x63ef
leaq 0x30(%rsp), %r12
movw $0x0, -0x8(%r12)
leaq 0x40(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x60(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x80(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0xa0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
movb %al, 0x10(%rcx)
leaq 0xc8(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq %rax, -0x8(%rdx)
movb %al, (%rdx)
movl $0x0, 0x10(%rdx)
movq %rax, 0x18(%rdx)
movb 0x7(%rsp), %al
movb %al, -0x78(%rcx)
movq %r12, %rdi
movq %rbx, %rsi
callq 0x5220
leaq 0x50(%rsp), %rdi
movq %rbp, %rsi
callq 0x5220
leaq 0x70(%rsp), %rbp
movq %rbp, %rdi
movq %r13, %rsi
callq 0x5220
leaq 0x90(%rsp), %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x5220
leaq 0xb8(%rsp), %rdi
movq %r15, %rsi
callq 0x5220
movq %r14, 0xe0(%rsp)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x8a22
movq %rax, %r15
movzwl 0x28(%rsp), %eax
movw %ax, (%r15)
leaq 0x8(%r15), %rdi
movq %r12, %rsi
callq 0x5220
leaq 0x28(%r15), %rdi
leaq 0x50(%rsp), %rsi
callq 0x5220
leaq 0x48(%r15), %rdi
movq %rbp, %rsi
callq 0x5220
leaq 0x68(%r15), %rdi
movq %r13, %rsi
callq 0x5220
movb 0xb0(%rsp), %al
movb %al, 0x88(%r15)
movq %r15, %rdi
addq $0x90, %rdi
leaq 0xb8(%rsp), %rsi
callq 0x5220
leaq 0xd8(%rsp), %rax
movups (%rax), %xmm0
movups %xmm0, 0xb0(%r15)
cmpb $0x0, 0x7(%rsp)
je 0x629e
leaq 0x48(%r14), %rdi
leaq 0x7(%rsp), %rsi
callq 0x8a9e
movq %rax, %rdi
movq %rbx, %rsi
callq 0x5220
movq 0x38(%r14), %rsi
movq %rsi, %rax
subq 0x30(%r14), %rax
leaq 0x30(%r14), %rdi
sarq $0x5, %rax
cmpq $0x2, %rax
movl $0x2, %ecx
cmovbq %rax, %rcx
shll $0x5, %ecx
subq %rcx, %rsi
movq %rbx, %rdx
callq 0x8b02
movq %r14, %rdi
movq %rbx, %rsi
callq 0x8a22
movq %rax, %rbx
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x62ff
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x5410
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x6324
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x5410
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x6346
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x5410
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x6362
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5410
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x637e
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5410
movq %rbx, %rax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x51e0
movq %rax, %r15
leaq 0x1acc0(%rip), %rsi     # 0x21067
leaq 0x8(%rsp), %rdi
movq %rbx, %rdx
callq 0x8929
leaq 0x1acd5(%rip), %rsi     # 0x21090
leaq 0x8(%rsp), %rdi
callq 0x57c0
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x646c
movups (%rcx), %xmm0
movups %xmm0, (%r12)
jmp 0x6479
movl $0x10, %edi
callq 0x51e0
movq %rax, %rbx
movsbl 0x7(%rsp), %edx
leaq 0xf8(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xe8(%rsp), %rdi
movl $0x1, %esi
callq 0x54e0
leaq 0x1ac85(%rip), %rsi     # 0x210ab
leaq 0x8(%rsp), %rdi
leaq 0xe8(%rsp), %rdx
callq 0x89b1
leaq 0x1ac51(%rip), %rsi     # 0x21090
leaq 0x8(%rsp), %rdi
callq 0x57c0
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x64b9
movups (%rcx), %xmm0
movups %xmm0, (%r12)
jmp 0x64c6
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movb $0x1, %bl
movq %r15, %rdi
callq 0x5690
xorl %ebx, %ebx
movq 0x27b48(%rip), %rsi     # 0x2dff0
movq 0x27ae9(%rip), %rdx     # 0x2df98
movq %r15, %rdi
callq 0x56e0
jmp 0x6505
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movb $0x1, %bpl
movq %rbx, %rdi
callq 0x5690
xorl %ebp, %ebp
movq 0x27afa(%rip), %rsi     # 0x2dff0
movq 0x27a9b(%rip), %rdx     # 0x2df98
movq %rbx, %rdi
callq 0x56e0
movq %rax, %r14
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x6527
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5410
jmp 0x6527
movq %rax, %r14
movb $0x1, %bpl
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x654a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5410
jmp 0x654a
movq %rax, %r14
movb $0x1, %bpl
movq 0xe8(%rsp), %rdi
cmpq %r15, %rdi
je 0x65ad
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x5410
jmp 0x65ad
movq %rax, %r14
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x658a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5410
jmp 0x658a
movq %rax, %r14
movb $0x1, %bl
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x65bc
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5410
jmp 0x65bc
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x65d9
movq %rbx, %rdi
jmp 0x65c3
movq %rax, %r14
movb $0x1, %bl
testb %bl, %bl
je 0x65d9
movq %r15, %rdi
callq 0x5310
jmp 0x65d9
jmp 0x65cc
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x8bda
movq %r14, %rdi
callq 0x5720
nop