// File: /workspace/github_cpp_makefile_star2_O3/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 $0x118, %rsp            # imm = 0x118
movq %r9, %r15
movq %r8, 0x30(%rsp)
movq %rcx, %rbp
movq %rdx, %rbx
movq %rdi, %r14
xorl %r13d, %r13d
cmpb $0x20, %sil
cmovnel %esi, %r13d
movb %r13b, 0xf(%rsp)
movq %rdx, %rsi
callq 0x974c
leaq 0x8(%r14), %rcx
cmpq %rcx, %rax
jne 0x639b
testb %r13b, %r13b
je 0x6138
movsbl %r13b, %r12d
movq %r14, %rdi
movl %r12d, %esi
callq 0x66ba
testq %rax, %rax
jne 0x63f7
xorl %eax, %eax
leaq 0x40(%rsp), %r12
movb %al, -0x7(%r12)
leaq 0x50(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x70(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x90(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0xb0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
movb %al, 0x10(%rcx)
leaq 0xd8(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq %rax, -0x8(%rdx)
movb %al, (%rdx)
movl $0x0, 0x10(%rdx)
movq %rax, 0x18(%rdx)
movb %r13b, -0x78(%rcx)
movq %r12, %rdi
movq %rbx, %rsi
callq 0x5220
leaq 0x60(%rsp), %rdi
movq %rbp, %rsi
callq 0x5220
leaq 0x80(%rsp), %rbp
movq %rbp, %rdi
movq 0x30(%rsp), %rsi
callq 0x5220
leaq 0xa0(%rsp), %rdi
movq %r15, %rsi
callq 0x5220
leaq 0xc8(%rsp), %rdi
movq %r15, %rsi
callq 0x5220
movq %r14, 0xf0(%rsp)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x8ac4
movq %rax, %r15
movzwl 0x38(%rsp), %eax
movw %ax, (%r15)
leaq 0x8(%r15), %rdi
movq %r12, %rsi
callq 0x5220
leaq 0x28(%r15), %rdi
leaq 0x60(%rsp), %rsi
callq 0x5220
leaq 0x48(%r15), %rdi
movq %rbp, %rsi
callq 0x5220
leaq 0x68(%r15), %rdi
leaq 0xa0(%rsp), %rsi
callq 0x5220
movb 0xc0(%rsp), %al
movb %al, 0x88(%r15)
movq %r15, %rdi
addq $0x90, %rdi
leaq 0xc8(%rsp), %rsi
callq 0x5220
leaq 0xe8(%rsp), %rax
movups (%rax), %xmm0
movups %xmm0, 0xb0(%r15)
testb %r13b, %r13b
je 0x62a3
leaq 0x48(%r14), %rdi
leaq 0xf(%rsp), %rsi
callq 0x8b40
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 0x8ba6
movq %r14, %rdi
movq %rbx, %rsi
callq 0x8ac4
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x6304
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x5410
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x6329
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x5410
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0x634e
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x5410
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x636a
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x5410
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x6386
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x5410
movq %rbx, %rax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x51e0
movq %rax, %r15
leaq 0x1acb8(%rip), %rsi     # 0x21067
leaq 0x10(%rsp), %rdi
movq %rbx, %rdx
callq 0x89cc
leaq 0x1accd(%rip), %rsi     # 0x21090
leaq 0x10(%rsp), %rdi
callq 0x57c0
leaq 0x48(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x6472
movups (%rcx), %xmm0
movups %xmm0, (%r12)
jmp 0x647f
movl $0x10, %edi
callq 0x51e0
movq %rax, %rbx
leaq 0x108(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xf8(%rsp), %rdi
movl $0x1, %esi
movl %r12d, %edx
callq 0x54e0
leaq 0x1ac7f(%rip), %rsi     # 0x210ab
leaq 0x10(%rsp), %rdi
leaq 0xf8(%rsp), %rdx
callq 0x8a54
leaq 0x1ac4b(%rip), %rsi     # 0x21090
leaq 0x10(%rsp), %rdi
callq 0x57c0
leaq 0x48(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x64bf
movups (%rcx), %xmm0
movups %xmm0, (%r12)
jmp 0x64cc
movq %rdx, 0x38(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x48(%rsp)
movq 0x8(%rax), %rdx
leaq 0x38(%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 0x27b3a(%rip), %rsi     # 0x2dfe8
movq 0x27adb(%rip), %rdx     # 0x2df90
movq %r15, %rdi
callq 0x56e0
jmp 0x650b
movq %rdx, 0x38(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x48(%rsp)
movq 0x8(%rax), %rdx
leaq 0x38(%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 0x27aec(%rip), %rsi     # 0x2dfe8
movq 0x27a8d(%rip), %rdx     # 0x2df90
movq %rbx, %rdi
callq 0x56e0
movq %rax, %r14
movq 0x38(%rsp), %rdi
cmpq %r12, %rdi
je 0x652d
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x5410
jmp 0x652d
movq %rax, %r14
movb $0x1, %bpl
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6548
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x5410
movq 0xf8(%rsp), %rdi
cmpq %r15, %rdi
je 0x6565
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x5410
testb %bpl, %bpl
jne 0x65f3
jmp 0x6614
movq %rax, %r14
movq 0xf8(%rsp), %rdi
cmpq %r15, %rdi
je 0x65f3
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x5410
jmp 0x65f3
movq %rax, %r14
movq 0x38(%rsp), %rdi
cmpq %r12, %rdi
je 0x65af
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x5410
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x65ca
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x5410
testb %bl, %bl
jne 0x65fb
jmp 0x6614
movq %rax, %r14
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x65fb
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x5410
jmp 0x65fb
movq %rax, %r14
movq %rbx, %rdi
jmp 0x65fe
movq %rax, %r14
movq %r15, %rdi
callq 0x5310
jmp 0x6614
jmp 0x6607
movq %rax, %r14
leaq 0x38(%rsp), %rdi
callq 0x8c7e
movq %r14, %rdi
callq 0x5720