// File: /workspace/github_cpp_makefile_star2_O3/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 0xb3b7
movq %rdx, %r12
movq (%rdx), %rax
cmpl $0x2d, (%rax)
jne 0xb3b7
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 0x61b0
movq %rax, %r15
movq 0x8(%r12), %rdx
cmpq $-0x1, %rax
je 0xb3da
cmpq %rdx, %r15
jae 0xb585
leaq 0x8(%rsp), %rax
leaq 0x10(%rsp), %rcx
movq (%r12), %rdx
movq $0x0, -0x10(%rcx)
movq %r15, %rsi
jmp 0xb3fd
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 0xb3c5
addq $0x30, %r12
movq %rsp, %rbp
cmpq $0x0, 0x20(%r12)
je 0xb480
movq 0x8(%rsp), %rax
testq %rax, %rax
je 0xb45c
cmpq -0x10(%r12), %rax
jne 0xb446
leaq -0x18(%r12), %rsi
movq %rbp, %rdi
callq 0xb018
testl %eax, %eax
je 0xb499
movq 0x8(%rsp), %rax
cmpq 0x8(%r12), %rax
jne 0xb45c
movq %rbp, %rdi
movq %r12, %rsi
callq 0xb018
testl %eax, %eax
je 0xb499
movq 0x28(%rsp), %rax
testq %rax, %rax
je 0xb480
cmpq -0x28(%r12), %rax
jne 0xb480
leaq -0x30(%r12), %rsi
leaq 0x20(%rsp), %rdi
callq 0xb018
testl %eax, %eax
je 0xb4c6
leaq 0x80(%r12), %rax
addq $0x50, %r12
cmpq %r13, %r12
movq %rax, %r12
jne 0xb417
jmp 0xb3c5
addq $0x18, %r12
subq $-0x80, %r14
incq %r15
leaq 0x38(%rsp), %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %r15, %rcx
callq 0x8556
leaq 0x38(%rsp), %rsi
movq %rbx, %rdi
callq 0xbf82
jmp 0xb4f0
addq $0x18, %r12
subq $-0x80, %r14
leaq 0x38(%rsp), %rdi
movl $0x2, %ecx
movq %r12, %rsi
movq %r14, %rdx
callq 0x8556
leaq 0x38(%rsp), %rsi
movq %rbx, %rdi
callq 0xbf82
leaq 0xa8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb516
movq 0xa8(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x6200
leaq 0x88(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb53c
movq 0x88(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x6200
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb55c
movq 0x68(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x6200
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb3c5
movq 0x48(%rsp), %rax
leaq 0x4(,%rax,4), %rsi
callq 0x6200
jmp 0xb3c5
leaq 0x15305(%rip), %rdi     # 0x20891
leaq 0x14ad1(%rip), %rsi     # 0x20064
leaq 0x15317(%rip), %rcx     # 0x208b1
movl $0x4aa, %edx            # imm = 0x4AA
callq 0x6120
jmp 0xb5a8
jmp 0xb5b9
movq %rax, %r14
leaq 0x38(%rsp), %rdi
callq 0xae34
jmp 0xb5bc
jmp 0xb5b9
movq %rax, %r14
movq %rbx, %rdi
callq 0xb5cc
movq %r14, %rdi
callq 0x6360