// File: /workspace/github_cpp_makefile_star2_O1/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, %r14d
movl %ecx, %r13d
movl %edx, %r12d
movq %rsi, %r15
movq %rdi, %rbx
testl %ecx, %ecx
je 0x1582b
leaq 0x28(%rbx), %rsi
leaq -0x78(%rbp), %rdi
callq 0x15a98
jmp 0x15847
leaq -0x68(%rbp), %rax
movq %rax, -0x10(%rax)
movq 0x28(%rbx), %rsi
movq 0x30(%rbx), %rdx
addq %rsi, %rdx
leaq -0x78(%rbp), %rdi
callq 0xfa18
cmpq $0x0, -0x70(%rbp)
movq %r15, -0x58(%rbp)
je 0x15869
testb %r13b, %r13b
movl %r14d, -0x4c(%rbp)
je 0x15871
leaq -0x48(%rbp), %rdi
movq %r15, %rsi
callq 0x15a98
jmp 0x1588c
xorl %r15d, %r15d
jmp 0x15966
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %rdi
callq 0xfa18
movq -0x78(%rbp), %rax
movq -0x70(%rbp), %rcx
xorl %r14d, %r14d
cmpb $0x2a, -0x1(%rax,%rcx)
jne 0x158eb
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 -0x48(%rbp), %rdi
xorl %edx, %edx
callq 0xb7e0
movq %rax, %r13
movq -0x10(%r14), %rdi
cmpq %r14, %rdi
je 0x158de
callq 0xb430
xorl %r14d, %r14d
testq %r13, %r13
sete %r14b
addl %r14d, %r14d
movq -0x70(%rbp), %rdx
movq -0x40(%rbp), %r13
cmpq %r13, %rdx
jne 0x15911
testq %rdx, %rdx
je 0x15915
movq -0x48(%rbp), %rsi
movq -0x78(%rbp), %rdi
callq 0xb480
testl %eax, %eax
sete %al
jmp 0x15917
xorl %eax, %eax
jmp 0x15917
movb $0x1, %al
xorb $0x1, %r12b
orb %al, %r12b
testb %al, %al
movl $0x1, %r15d
cmovel %r14d, %r15d
testb %r12b, %r12b
jne 0x15950
movq -0x48(%rbp), %rsi
leaq -0x78(%rbp), %rdi
xorl %edx, %edx
movq %r13, %rcx
callq 0xb7e0
testq %rax, %rax
movl $0x2, %eax
cmovel %eax, %r14d
movl %r14d, %r15d
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15962
callq 0xb430
movl -0x4c(%rbp), %r14d
movl $0x1, %r12d
cmpl $0x1, %r15d
je 0x15a3c
testb %r14b, %r14b
je 0x1598a
leaq -0x48(%rbp), %rdi
movq -0x58(%rbp), %rsi
callq 0x15a98
jmp 0x159a9
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
movq -0x58(%rbp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %rdi
callq 0xfa18
testb %r14b, %r14b
je 0x159c3
addq $0x8, %rbx
leaq -0x98(%rbp), %rdi
movq %rbx, %rsi
callq 0x15a98
jmp 0x159e5
leaq -0x88(%rbp), %rax
movq %rax, -0x10(%rax)
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
addq %rsi, %rdx
leaq -0x98(%rbp), %rdi
callq 0xfa18
movq -0x90(%rbp), %rdx
cmpq -0x40(%rbp), %rdx
jne 0x15a12
testq %rdx, %rdx
je 0x15a15
movq -0x48(%rbp), %rsi
movq -0x98(%rbp), %rdi
callq 0xb480
testl %eax, %eax
movl $0x1, %eax
cmovel %eax, %r15d
movl %r15d, %r12d
leaq -0x88(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15a2a
callq 0xb430
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15a3c
callq 0xb430
leaq -0x68(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15a4e
callq 0xb430
movl %r12d, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x15a62
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15a7e
callq 0xb430
jmp 0x15a7e
jmp 0x15a7b
movq %rax, %rbx
leaq -0x68(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x15a90
callq 0xb430
movq %rbx, %rdi
callq 0xb7f0