// File: /workspace/github_cpp_makefile_star2_O3/demon386[P]git-store/./libs/program_options/src/options_description.cpp
// Function: boost::program_options::options_description::find_nothrow(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool, bool, bool) const
const option_description*
    options_description::find_nothrow(const std::string& name, 
                                      bool approx,
                                      bool long_ignore_case,
                                      bool short_ignore_case) const
    {
        shared_ptr<option_description> found;
        bool had_full_match = false;
        vector<string> approximate_matches;
        vector<string> full_matches;
        
        // We use linear search because matching specified option
        // name with the declared option name need to take care about
        // case sensitivity and trailing '*' and so we can't use simple map.
        for(unsigned i = 0; i < m_options.size(); ++i)
        {
            option_description::match_result r = 
                m_options[i]->match(name, approx, long_ignore_case, short_ignore_case);

            if (r == option_description::no_match)
                continue;

            if (r == option_description::full_match)
            {                
                full_matches.push_back(m_options[i]->key(name));
                found = m_options[i];
                had_full_match = true;
            } 
            else 
            {                        
                // FIXME: the use of 'key' here might not
                // be the best approach.
                approximate_matches.push_back(m_options[i]->key(name));
                if (!had_full_match)
                    found = m_options[i];
            }
        }
        if (full_matches.size() > 1) 
            boost::throw_exception(ambiguous_option(full_matches));
        
        // If we have a full match, and an approximate match,
        // ignore approximate match instead of reporting error.
        // Say, if we have options "all" and "all-chroots", then
        // "--all" on the command line should select the first one,
        // without ambiguity.
        if (full_matches.empty() && approximate_matches.size() > 1)
            boost::throw_exception(ambiguous_option(approximate_matches));

        return found.get();
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movq %rsi, -0x48(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x40(%rbp)
xorl %eax, %eax
movq %rax, -0x80(%rbp)
movaps %xmm0, -0x90(%rbp)
movq %rax, -0x60(%rbp)
movaps %xmm0, -0x70(%rbp)
movq 0x28(%rdi), %rax
cmpq %rax, 0x30(%rdi)
je 0x164e9
movq %rdi, %r14
movl $0x1, %r12d
xorl %r15d, %r15d
movzbl %dl, %edx
movl %edx, -0x54(%rbp)
movzbl %cl, %ecx
movl %ecx, -0x50(%rbp)
movzbl %r8b, %ecx
movl %ecx, -0x4c(%rbp)
xorl %ebx, %ebx
shlq $0x4, %r15
movq (%rax,%r15), %rdi
testq %rdi, %rdi
je 0x16537
movq -0x48(%rbp), %rsi
movl -0x54(%rbp), %edx
movl -0x50(%rbp), %ecx
movl -0x4c(%rbp), %r8d
callq 0x15680
testl %eax, %eax
je 0x164b2
cmpl $0x1, %eax
jne 0x163e2
movq 0x28(%r14), %rax
movq (%rax,%r15), %r13
testq %r13, %r13
je 0x16537
cmpq $0x0, 0x30(%r13)
je 0x16418
addq $0x28, %r13
movq %r13, %rdi
movl $0x2a, %esi
xorl %edx, %edx
callq 0xb5c0
cmpq $-0x1, %rax
cmovneq -0x48(%rbp), %r13
jmp 0x1641c
movq 0x28(%r14), %rax
movq (%rax,%r15), %r13
testq %r13, %r13
je 0x16537
cmpq $0x0, 0x30(%r13)
je 0x16461
addq $0x28, %r13
movq %r13, %rdi
movl $0x2a, %esi
xorl %edx, %edx
callq 0xb5c0
cmpq $-0x1, %rax
cmovneq -0x48(%rbp), %r13
jmp 0x16465
addq $0x8, %r13
leaq -0x70(%rbp), %rdi
movq %r13, %rsi
callq 0xe894
movq 0x28(%r14), %rcx
movq (%rcx,%r15), %rax
movq 0x8(%rcx,%r15), %rcx
testq %rcx, %rcx
je 0x1643e
lock
incl 0x8(%rcx)
movaps -0x40(%rbp), %xmm0
movups %xmm0, -0x160(%rbp)
movq %rax, -0x40(%rbp)
movq %rcx, -0x38(%rbp)
leaq -0x158(%rbp), %rdi
callq 0xf546
movb $0x1, %bl
jmp 0x164b2
addq $0x8, %r13
leaq -0x90(%rbp), %rdi
movq %r13, %rsi
callq 0xe894
testb $0x1, %bl
movb $0x1, %bl
jne 0x164b2
movq 0x28(%r14), %rcx
movq (%rcx,%r15), %rax
movq 0x8(%rcx,%r15), %rcx
testq %rcx, %rcx
je 0x16491
lock
incl 0x8(%rcx)
movaps -0x40(%rbp), %xmm0
movups %xmm0, -0x160(%rbp)
movq %rax, -0x40(%rbp)
movq %rcx, -0x38(%rbp)
leaq -0x158(%rbp), %rdi
callq 0xf546
xorl %ebx, %ebx
movl %r12d, %r15d
movq 0x28(%r14), %rax
movq 0x30(%r14), %rcx
subq %rax, %rcx
sarq $0x4, %rcx
incl %r12d
cmpq %r15, %rcx
ja 0x1637b
movq -0x70(%rbp), %rax
movq -0x68(%rbp), %rcx
movq %rcx, %rdx
subq %rax, %rdx
cmpq $0x20, %rdx
ja 0x16556
cmpq %rcx, %rax
jne 0x164fd
movq -0x88(%rbp), %rax
subq -0x90(%rbp), %rax
cmpq $0x21, %rax
jae 0x16572
leaq -0x38(%rbp), %rbx
movq -0x8(%rbx), %r14
leaq -0x70(%rbp), %rdi
callq 0xe470
leaq -0x90(%rbp), %rdi
callq 0xe470
movq %rbx, %rdi
callq 0xf546
movq %r14, %rax
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1c0f6(%rip), %rdi     # 0x32634
leaq 0x1c0f7(%rip), %rsi     # 0x3263c
leaq 0x1d3f3(%rip), %rcx     # 0x3393f
movl $0x2af, %edx            # imm = 0x2AF
callq 0xb310
leaq -0x160(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x175c2
leaq -0x160(%rbp), %rdi
callq 0x1753a
leaq -0x160(%rbp), %rdi
leaq -0x90(%rbp), %rsi
callq 0x175c2
leaq -0x160(%rbp), %rdi
callq 0x1753a
jmp 0x16595
jmp 0x165c6
movq %rax, %rbx
leaq 0x341a9(%rip), %rax     # 0x4a748
addq $0x10, %rax
leaq -0xa8(%rbp), %rdi
movq %rax, -0xb8(%rdi)
callq 0xe470
leaq -0x160(%rbp), %rdi
callq 0xed30
jmp 0x165c9
jmp 0x165c6
movq %rax, %rbx
leaq -0x70(%rbp), %rdi
callq 0xe470
leaq -0x90(%rbp), %rdi
callq 0xe470
leaq -0x38(%rbp), %rdi
callq 0xf546
movq %rbx, %rdi
callq 0xb7f0
nop