// File: /workspace/github_cpp_makefile_star2_O2/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 $0x128, %rsp            # imm = 0x128
movq %rsi, %rbx
movq %rdi, %r14
xorps %xmm0, %xmm0
leaq -0x80(%rbp), %rax
leaq -0x70(%rbp), %rsi
andq $0x0, 0x10(%rsi)
movaps %xmm0, (%rax)
movaps %xmm0, (%rsi)
leaq -0x50(%rbp), %rax
movaps %xmm0, (%rax)
andq $0x0, 0x10(%rax)
xorl %r13d, %r13d
movzbl %dl, %eax
movl %eax, -0x34(%rbp)
movzbl %cl, %eax
movl %eax, -0x30(%rbp)
movzbl %r8b, %eax
movl %eax, -0x2c(%rbp)
xorl %r15d, %r15d
movl %r13d, %r13d
movq 0x28(%r14), %rdi
movq 0x30(%r14), %rax
subq %rdi, %rax
sarq $0x4, %rax
cmpq %r13, %rax
jbe 0x153c8
movq %r13, %r12
shlq $0x4, %r12
addq %r12, %rdi
callq 0x16030
movq %rax, %rdi
movq %rbx, %rsi
movl -0x34(%rbp), %edx
movl -0x30(%rbp), %ecx
movl -0x2c(%rbp), %r8d
callq 0x14916
testl %eax, %eax
je 0x153c0
cmpl $0x1, %eax
jne 0x15381
movq 0x28(%r14), %rdi
addq %r12, %rdi
callq 0x16030
movq %rax, %rdi
movq %rbx, %rsi
callq 0x14b50
movb $0x1, %r15b
leaq -0x50(%rbp), %rdi
movq %rax, %rsi
callq 0xeaf4
jmp 0x153b0
movq 0x28(%r14), %rdi
addq %r12, %rdi
callq 0x16030
movq %rax, %rdi
movq %rbx, %rsi
callq 0x14b50
leaq -0x70(%rbp), %rdi
movq %rax, %rsi
callq 0xeaf4
testb $0x1, %r15b
movb $0x1, %r15b
jne 0x153c0
xorl %r15d, %r15d
addq 0x28(%r14), %r12
leaq -0x80(%rbp), %rdi
movq %r12, %rsi
callq 0x1605c
incl %r13d
jmp 0x15311
movq -0x50(%rbp), %rax
movq -0x48(%rbp), %rcx
movq %rcx, %rdx
subq %rax, %rdx
cmpq $0x20, %rdx
ja 0x15426
cmpq %rcx, %rax
jne 0x153ef
movq -0x68(%rbp), %rax
subq -0x70(%rbp), %rax
cmpq $0x21, %rax
jae 0x15442
leaq -0x78(%rbp), %rbx
movq -0x8(%rbx), %r14
leaq -0x50(%rbp), %rdi
callq 0xe840
leaq -0x70(%rbp), %rdi
callq 0xe840
movq %rbx, %rdi
callq 0xf63a
movq %r14, %rax
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq -0x150(%rbp), %rdi
leaq -0x50(%rbp), %rsi
callq 0x16124
leaq -0x150(%rbp), %rdi
callq 0x160a0
leaq -0x150(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x16124
leaq -0x150(%rbp), %rdi
callq 0x160a0
jmp 0x15462
jmp 0x15475
movq %rax, %rbx
leaq -0x150(%rbp), %rdi
callq 0x161da
jmp 0x15478
jmp 0x15475
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0xe840
leaq -0x70(%rbp), %rdi
callq 0xe840
leaq -0x78(%rbp), %rdi
callq 0xf63a
movq %rbx, %rdi
callq 0xc850
nop