// File: /workspace/github_cpp_makefile_star2_O1/ridiculousfish[P]docopt_fish/docopt_fish.cpp
// Function: docopt_fish::docopt_impl::suggest_value_completion(std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>> const&) const
suggestion_list_t suggest_value_completion(const string_t &partial_arg) const {
        if (partial_arg.size() < 2 || partial_arg.front() != '-')
            return {};
        
        suggestion_list_t suggestions;

        rstring_t long_name, short_name;
        const size_t short_name_len = 2; // like -D
        const size_t equals_pos = partial_arg.find('=');
        if (equals_pos != string_t::npos) {
            assert(equals_pos < partial_arg.size());
            // For example, we look like --foo=bar
            // Look for a value-carrying option with this long name (--foo)
            long_name = rstring_t(partial_arg, 0, equals_pos);
        } else {
            // We will try matching as an unseparated short option, like -D<Value>
            short_name = rstring_t(partial_arg, 0, short_name_len);
        }
        
        for (const option_t &opt : this->all_options) {
            if (! opt.has_value())
                continue;
            
            if (! long_name.empty()) {
                if (long_name == opt.names[option_t::single_long] ||
                    long_name == opt.names[option_t::double_long]) {
                    suggestions.push_back(suggestion_for(opt.value, this->names_to_metadata, equals_pos + 1));
                    break;
                }
            }
            
            if (! short_name.empty() && short_name == opt.names[option_t::single_short]) {
                suggestions.push_back(suggestion_for(opt.value, this->names_to_metadata, short_name_len));
                break;
            }
        }
        return suggestions;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rdi, %rbx
cmpq $0x2, 0x8(%rdx)
jb 0xc3a7
movq %rdx, %r12
movq (%rdx), %rax
cmpl $0x2d, (%rax)
jne 0xc3a7
movq %rsi, %r14
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
xorl %eax, %eax
movq %rax, 0x10(%rbx)
movq %rax, 0x10(%rsp)
movaps %xmm0, (%rsp)
movq %rax, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movq %r12, %rdi
movl $0x3d, %esi
xorl %edx, %edx
callq 0x71b0
movq %rax, %r15
movq 0x8(%r12), %rdx
cmpq $-0x1, %rax
je 0xc3ca
cmpq %rdx, %r15
jae 0xc59c
leaq 0x8(%rsp), %rax
leaq 0x10(%rsp), %rcx
movq (%r12), %rdx
movq $0x0, -0x10(%rcx)
movq %r15, %rsi
jmp 0xc3ed
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
movq %rbx, %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x28(%rsp), %rax
leaq 0x30(%rsp), %rcx
cmpq $0x2, %rdx
movl $0x2, %esi
cmovbq %rdx, %rsi
movq (%r12), %rdx
movq $0x0, -0x10(%rcx)
movq %rsi, (%rax)
movq %rdx, (%rcx)
movq 0x68(%r14), %r12
movq 0x70(%r14), %r13
cmpq %r13, %r12
je 0xc3b5
subq $-0x80, %r14
incq %r15
addq $0x30, %r12
cmpq $0x0, 0x20(%r12)
je 0xc4ad
movq 0x8(%rsp), %rax
testq %rax, %rax
je 0xc454
cmpq -0x10(%r12), %rax
jne 0xc439
leaq -0x18(%r12), %rsi
movq %rsp, %rdi
callq 0xbfd4
testl %eax, %eax
je 0xc4b7
movq 0x8(%rsp), %rax
cmpq 0x8(%r12), %rax
jne 0xc454
movq %rsp, %rdi
movq %r12, %rsi
callq 0xbfd4
testl %eax, %eax
je 0xc4b7
movq 0x28(%rsp), %rax
xorl %ebp, %ebp
testq %rax, %rax
je 0xc572
cmpq -0x28(%r12), %rax
jne 0xc572
leaq -0x30(%r12), %rsi
leaq 0x20(%rsp), %rdi
callq 0xbfd4
testl %eax, %eax
jne 0xc572
leaq 0x18(%r12), %rsi
movl $0x2, %ecx
leaq 0x38(%rsp), %rbp
movq %rbp, %rdi
movq %r14, %rdx
callq 0x95ce
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xcfe0
jmp 0xc4da
movl $0x3, %ebp
jmp 0xc572
leaq 0x18(%r12), %rsi
leaq 0x38(%rsp), %rbp
movq %rbp, %rdi
movq %r14, %rdx
movq %r15, %rcx
callq 0x95ce
movq %rbx, %rdi
movq %rbp, %rsi
callq 0xcfe0
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0xc504
movq 0xa8(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x7200
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0xc52b
movq 0x88(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x7200
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0xc54c
movq 0x68(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x7200
movq 0x38(%rsp), %rdi
leaq 0x48(%rsp), %rax
cmpq %rax, %rdi
je 0xc56d
movq 0x48(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x7200
movl $0x2, %ebp
cmpl $0x3, %ebp
je 0xc57f
testl %ebp, %ebp
jne 0xc3b5
leaq 0x80(%r12), %rax
addq $0x50, %r12
cmpq %r13, %r12
movq %rax, %r12
jne 0xc40b
jmp 0xc3b5
leaq 0x162be(%rip), %rdi     # 0x22861
leaq 0x15a8a(%rip), %rsi     # 0x22034
leaq 0x162d0(%rip), %rcx     # 0x22881
movl $0x4aa, %edx            # imm = 0x4AA
callq 0x7120
jmp 0xc5bf
jmp 0xc5d0
movq %rax, %r14
leaq 0x38(%rsp), %rdi
callq 0xbdec
jmp 0xc5d3
jmp 0xc5d0
movq %rax, %r14
movq %rbx, %rdi
callq 0xc5e4
movq %r14, %rdi
callq 0x7360
nop