// File: /workspace/github_cpp_makefile_star2_O2/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 $0xd8, %rsp
movq %rdi, %rbx
cmpq $0x2, 0x8(%rdx)
jb 0xb26c
movq %rdx, %r12
movq (%rdx), %rax
cmpl $0x2d, (%rax)
jne 0xb26c
movq %rsi, %r14
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
andq $0x0, 0x10(%rbx)
movaps %xmm0, 0x20(%rsp)
andq $0x0, 0x30(%rsp)
movaps %xmm0, (%rsp)
andq $0x0, 0x10(%rsp)
pushq $0x3d
popq %rsi
movq %r12, %rdi
xorl %edx, %edx
callq 0x71f0
movq 0x8(%r12), %rdx
cmpq $-0x1, %rax
movq %rax, 0x40(%rsp)
je 0xb28c
movq %rax, %rsi
cmpq %rdx, %rax
jae 0xb37e
leaq 0x28(%rsp), %rax
leaq 0x30(%rsp), %rcx
jmp 0xb2a1
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
andq $0x0, 0x10(%rbx)
movq %rbx, %rax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8(%rsp), %rax
leaq 0x10(%rsp), %rcx
pushq $0x2
popq %rsi
cmpq $0x2, %rdx
cmovbq %rdx, %rsi
movq (%r12), %rdx
andq $0x0, -0x10(%rcx)
movq %rsi, (%rax)
movq %rdx, (%rcx)
movq 0x68(%r14), %r12
movq 0x70(%r14), %r13
addq $0x30, %r12
leaq 0x20(%rsp), %rbp
leaq -0x30(%r12), %r15
cmpq %r13, %r15
je 0xb277
cmpq $0x0, 0x20(%r12)
je 0xb312
cmpq $0x0, 0x28(%rsp)
je 0xb2fb
leaq -0x18(%r12), %rsi
movq %rbp, %rdi
callq 0xb81e
testb %al, %al
jne 0xb318
movq %rbp, %rdi
movq %r12, %rsi
callq 0xb81e
testb %al, %al
jne 0xb318
cmpq $0x0, 0x8(%rsp)
je 0xb312
movq %rsp, %rdi
movq %r15, %rsi
callq 0xb81e
testb %al, %al
jne 0xb347
subq $-0x80, %r12
jmp 0xb2c1
addq $0x18, %r12
subq $-0x80, %r14
movq 0x40(%rsp), %rcx
incq %rcx
leaq 0x48(%rsp), %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x8b6b
leaq 0x48(%rsp), %rsi
movq %rbx, %rdi
callq 0xbad6
jmp 0xb36f
addq $0x18, %r12
subq $-0x80, %r14
leaq 0x48(%rsp), %rdi
pushq $0x2
popq %rcx
movq %r12, %rsi
movq %r14, %rdx
callq 0x8b6b
leaq 0x48(%rsp), %rsi
movq %rbx, %rdi
callq 0xbad6
leaq 0x48(%rsp), %rdi
callq 0xabd8
jmp 0xb277
leaq 0x114dc(%rip), %rdi     # 0x1c861
leaq 0x10ca8(%rip), %rsi     # 0x1c034
leaq 0x114ee(%rip), %rcx     # 0x1c881
movl $0x4aa, %edx            # imm = 0x4AA
callq 0x7150
jmp 0xb3a1
jmp 0xb3b2
movq %rax, %r14
leaq 0x48(%rsp), %rdi
callq 0xabd8
jmp 0xb3b5
jmp 0xb3b2
movq %rax, %r14
movq %rbx, %rdi
callq 0xb3c6
movq %r14, %rdi
callq 0x7390
nop