// File: /workspace/github_cpp_makefile_star2_O3/demon386[P]git-store/./libs/program_options/src/options_description.cpp
// Function: boost::program_options::option_description::match(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool, bool, bool) const
option_description::match_result
    option_description::match(const std::string& option, 
                              bool approx, 
                              bool long_ignore_case,
                              bool short_ignore_case) const
    {
        match_result result = no_match;        
        
        std::string local_long_name((long_ignore_case ? tolower_(m_long_name) : m_long_name));
        
        if (!local_long_name.empty()) {
        
            std::string local_option = (long_ignore_case ? tolower_(option) : option);

            if (*local_long_name.rbegin() == '*')
            {
                // The name ends with '*'. Any specified name with the given
                // prefix is OK.
                if (local_option.find(local_long_name.substr(0, local_long_name.length()-1))
                    == 0)
                    result = approximate_match;
            }

            if (local_long_name == local_option)
            {
                result = full_match;
            }
            else if (approx)
            {
                if (local_long_name.find(local_option) == 0)
                {
                    result = approximate_match;
                }
            }
        }
         
        if (result != full_match)
        {
            std::string local_option(short_ignore_case ? tolower_(option) : option);
            std::string local_short_name(short_ignore_case ? tolower_(m_short_name) : m_short_name);

            if (local_short_name == local_option)
            {
                result = full_match;
            }
        }

        return result;        
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movl %r8d, %r12d
movl %edx, %r14d
movq %rsi, %r13
movq %rdi, %rbx
testl %ecx, %ecx
je 0x156ce
leaq 0x28(%rbx), %rsi
leaq -0x78(%rbp), %r15
movq %r15, %rdi
callq 0x1593b
cmpq $0x0, 0x8(%r15)
je 0x157c2
movl %r12d, -0x2c(%rbp)
leaq -0x50(%rbp), %rdi
movq %r13, %rsi
callq 0x1593b
jmp 0x15718
leaq -0x68(%rbp), %rax
movq %rax, -0x10(%rax)
movq 0x28(%rbx), %rsi
movq 0x30(%rbx), %rdx
addq %rsi, %rdx
leaq -0x78(%rbp), %r15
movq %r15, %rdi
callq 0xf98c
cmpq $0x0, 0x8(%r15)
je 0x157c2
movl %r12d, -0x2c(%rbp)
leaq -0x40(%rbp), %rax
movq %rax, -0x10(%rax)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
leaq -0x50(%rbp), %rdi
callq 0xf98c
movq -0x78(%rbp), %rax
movq -0x70(%rbp), %rcx
xorl %r12d, %r12d
cmpb $0x2a, -0x1(%rax,%rcx)
jne 0x15783
movl %r14d, -0x58(%rbp)
decq %rcx
leaq -0x98(%rbp), %rdi
leaq -0x78(%rbp), %rsi
xorl %edx, %edx
callq 0xb490
leaq -0x88(%rbp), %r14
movq -0x10(%r14), %rsi
movq -0x8(%r14), %rcx
leaq -0x50(%rbp), %rdi
xorl %edx, %edx
callq 0xb7e0
movq %rax, %r15
movq -0x10(%r14), %rdi
cmpq %r14, %rdi
je 0x1576e
callq 0xb430
xorl %r12d, %r12d
testq %r15, %r15
sete %r12b
addl %r12d, %r12d
movq -0x70(%rbp), %rcx
movl -0x58(%rbp), %r14d
movq %r13, -0x58(%rbp)
movq -0x48(%rbp), %r15
cmpq %r15, %rcx
jne 0x157c7
movq -0x50(%rbp), %r13
testq %rcx, %rcx
je 0x157f6
movq -0x78(%rbp), %rdi
movq %r13, %rsi
movq %rcx, %rdx
callq 0xb480
testl %eax, %eax
setne %al
movl %r14d, %ecx
movl $0x1, %r14d
cmovnel %r12d, %r14d
andb %cl, %al
cmpb $0x1, %al
je 0x157d0
jmp 0x157fc
xorl %r14d, %r14d
jmp 0x15825
movq -0x50(%rbp), %r13
testb %r14b, %r14b
je 0x157f1
leaq -0x78(%rbp), %rdi
movq %r13, %rsi
xorl %edx, %edx
movq %r15, %rcx
callq 0xb7e0
testq %rax, %rax
movl $0x2, %eax
cmovel %eax, %r12d
movq -0x50(%rbp), %r13
movl %r12d, %r14d
jmp 0x157fc
movl $0x1, %r14d
leaq -0x40(%rbp), %rax
cmpq %rax, %r13
je 0x1580d
movq %r13, %rdi
callq 0xb430
movl $0x1, %r15d
cmpl $0x1, %r14d
movq -0x58(%rbp), %r13
movl -0x2c(%rbp), %r12d
je 0x158df
testb %r12b, %r12b
je 0x1584b
leaq -0x50(%rbp), %rdi
movq %r13, %rsi
callq 0x1593b
addq $0x8, %rbx
leaq -0x98(%rbp), %rdi
movq %rbx, %rsi
callq 0x1593b
jmp 0x15889
leaq -0x40(%rbp), %rax
movq %rax, -0x10(%rax)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
leaq -0x50(%rbp), %rdi
callq 0xf98c
leaq -0x88(%rbp), %rax
movq %rax, -0x10(%rax)
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
addq %rsi, %rdx
leaq -0x98(%rbp), %rdi
callq 0xf98c
movq -0x90(%rbp), %rdx
cmpq -0x48(%rbp), %rdx
jne 0x158b5
testq %rdx, %rdx
je 0x158af
movq -0x50(%rbp), %rsi
movq -0x98(%rbp), %rdi
callq 0xb480
testl %eax, %eax
jne 0x158b5
movl $0x1, %r14d
leaq -0x88(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x158ca
callq 0xb430
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x158dc
callq 0xb430
movl %r14d, %r15d
leaq -0x68(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x158f1
callq 0xb430
movl %r15d, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x15907
jmp 0x1591e
movq %rax, %rbx
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15921
callq 0xb430
jmp 0x15921
movq %rax, %rbx
leaq -0x68(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15933
callq 0xb430
movq %rbx, %rdi
callq 0xb7f0