// File: /workspace/github_cpp_makefile_star2_O1/ridiculousfish[P]docopt_fish/docopt_matching.cpp
// Function: docopt_fish::match_context_t::unused_arguments(docopt_fish::match_state_t const*) const
index_list_t unused_arguments(const match_state_t *state) const {
        // To find the unused arguments, we walk over the used arguments and take
        // what's left
        // Arguments may be unused for any of three reasons:
        // 1. It is an unconsumed positional
        // 2. It is an option that we found in the tree, but was not matched during
        //    tree descent
        // 3. It is an option that was not found in the tree at all
        // Make a vector the same size as argv.
        // As we walk over positionals and options, we will mark the corresponding
        // index as used.
        // At the end, the unset bits are the unused arguments
        std::vector<bool> used_argv_indexes(this->argv.size(), false);
        
        auto mark_used = [&](size_t idx) {
            if (idx != npos)
                used_argv_indexes.at(idx) = true;
        };
        auto mark_unused = [&](size_t idx) {
            if (idx != npos)
                used_argv_indexes.at(idx) = false;
        };
        
        // consumed_options is a vector parallel to resolved_options,
        // which tracks whether each resolved_option was used
        const std::vector<bool> &copts = *state->consumed_options;

        // Walk over used positionals.
        // next_positional_index is the first unused one
        for (size_t i = 0; i < state->next_positional_index; i++) {
            mark_used(this->aclass.positionals.at(i).idx_in_argv);
        }

        // Walk over options matched during tree descent.
        // We should have one bit per option
        assert(copts.size() == this->aclass.resolved_options.size());
        for (size_t i = 0; i < copts.size(); i++) {
            if (copts.at(i)) {
                // This option was used. The name index is definitely used. The value
                // index is also used, if it's not npos
                // (note that it may be the same as the name index)
                const resolved_option_t &opt = this->aclass.resolved_options.at(i);
                mark_used(opt.name_idx_in_argv);
                mark_used(opt.value_idx_in_argv);
            }
        }

        // Walk over options NOT matched during tree descent and clear their bits.
        // An argument may be both matched and unmatched, i.e. if "-vv" is parsed
        // into two short options.
        // In that case, we want to mark it as unmatched.
        for (size_t i = 0; i < copts.size(); i++) {
            if (!copts.at(i)) {
                const resolved_option_t &opt = this->aclass.resolved_options.at(i);
                mark_unused(opt.name_idx_in_argv);
            }
        }

        // Don't report the double-dash argument as unused
        mark_used(this->aclass.double_dash_idx);

        // Extract the unused indexes from the bitmap of used arguments
        index_list_t unused_argv_idxs;
        for (size_t i = 0; i < used_argv_indexes.size(); i++) {
            if (!used_argv_indexes.at(i)) {
                unused_argv_idxs.push_back(i);
            }
        }
        return unused_argv_idxs;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %r12
movq %rsi, %r14
movq 0x18(%rsi), %rax
movq 0x8(%rax), %rsi
subq (%rax), %rsi
movq %rdi, %rbx
sarq $0x5, %rsi
leaq 0x8(%rsp), %rdx
movb $0x0, (%rdx)
leaq 0x10(%rsp), %rdi
leaq 0x7(%rsp), %rcx
callq 0x16e7c
movq 0x10(%r12), %r15
cmpq $0x0, 0x20(%r12)
je 0x1595a
xorl %r13d, %r13d
leaq 0x10(%rsp), %rbp
movq 0x10(%r14), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %r13, %rdx
jbe 0x15bb5
movq (%rax,%r13,8), %rsi
cmpq $-0x1, %rsi
je 0x15950
movq %rbp, %rdi
callq 0x171e4
orq %rdx, (%rax)
incq %r13
cmpq 0x20(%r12), %r13
jb 0x15920
movq 0x10(%r15), %rax
movl 0x18(%r15), %ecx
subq (%r15), %rax
leaq (%rcx,%rax,8), %rax
movq 0x10(%r14), %rcx
movq 0x20(%rcx), %rdx
subq 0x18(%rcx), %rdx
sarq $0x3, %rdx
movabsq $-0x30c30c30c30c30c3, %rcx # imm = 0xCF3CF3CF3CF3CF3D
imulq %rcx, %rdx
cmpq %rdx, %rax
jne 0x15be8
movq 0x10(%r15), %rax
movl 0x18(%r15), %ecx
subq (%r15), %rax
shlq $0x3, %rax
addq %rcx, %rax
je 0x15a3b
movl $0x88, %ebp
xorl %r12d, %r12d
movq %r15, %rdi
movq %r12, %rsi
callq 0x16812
testb %al, %al
je 0x15a19
movq 0x10(%r14), %rax
movq 0x18(%rax), %r13
movq 0x20(%rax), %rdx
subq %r13, %rdx
sarq $0x3, %rdx
movabsq $-0x30c30c30c30c30c3, %rax # imm = 0xCF3CF3CF3CF3CF3D
imulq %rax, %rdx
cmpq %r12, %rdx
jbe 0x15bc6
movq -0x8(%r13,%rbp), %rsi
cmpq $-0x1, %rsi
je 0x15a01
leaq 0x10(%rsp), %rdi
callq 0x171e4
orq %rdx, (%rax)
movq (%r13,%rbp), %rsi
cmpq $-0x1, %rsi
je 0x15a19
leaq 0x10(%rsp), %rdi
callq 0x171e4
orq %rdx, (%rax)
incq %r12
movq 0x10(%r15), %rax
subq (%r15), %rax
movl 0x18(%r15), %ecx
leaq (%rcx,%rax,8), %rax
addq $0xa8, %rbp
cmpq %rax, %r12
jb 0x159b0
movq 0x10(%r15), %rax
movl 0x18(%r15), %ecx
subq (%r15), %rax
shlq $0x3, %rax
addq %rcx, %rax
je 0x15acb
movl $0x80, %ebp
xorl %r12d, %r12d
leaq 0x10(%rsp), %r13
movq %r15, %rdi
movq %r12, %rsi
callq 0x16812
testb %al, %al
jne 0x15aad
movq 0x10(%r14), %rcx
movq 0x18(%rcx), %rax
movq 0x20(%rcx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
movabsq $-0x30c30c30c30c30c3, %rcx # imm = 0xCF3CF3CF3CF3CF3D
imulq %rcx, %rdx
cmpq %r12, %rdx
jbe 0x15bd7
movq (%rax,%rbp), %rsi
cmpq $-0x1, %rsi
je 0x15aad
movq %r13, %rdi
callq 0x171e4
notq %rdx
andq %rdx, (%rax)
incq %r12
movq 0x10(%r15), %rax
subq (%r15), %rax
movl 0x18(%r15), %ecx
leaq (%rcx,%rax,8), %rax
addq $0xa8, %rbp
cmpq %rax, %r12
jb 0x15a5c
movq 0x10(%r14), %rax
movq 0x30(%rax), %rsi
cmpq $-0x1, %rsi
je 0x15ae6
leaq 0x10(%rsp), %rdi
callq 0x171e4
orq %rdx, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
xorl %eax, %eax
movq %rax, 0x10(%rbx)
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rdi
movq 0x20(%rsp), %rax
movl 0x28(%rsp), %ecx
subq %rdi, %rax
shlq $0x3, %rax
addq %rcx, %rax
je 0x15b78
xorl %esi, %esi
leaq 0x10(%rsp), %r14
leaq 0x8(%rsp), %r15
movq %r14, %rdi
callq 0x171e4
testq %rdx, (%rax)
jne 0x15b51
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x15b46
movq 0x8(%rsp), %rax
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x15b51
movq %rbx, %rdi
movq %r15, %rdx
callq 0x17278
movq 0x8(%rsp), %rsi
incq %rsi
movq %rsi, 0x8(%rsp)
movq 0x10(%rsp), %rdi
movq 0x20(%rsp), %rax
movl 0x28(%rsp), %ecx
subq %rdi, %rax
leaq (%rcx,%rax,8), %rax
cmpq %rax, %rsi
jb 0x15b1d
testq %rdi, %rdi
je 0x15ba3
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x7200
xorl %eax, %eax
movq %rax, 0x10(%rsp)
movl %eax, 0x18(%rsp)
movq %rax, 0x20(%rsp)
movl %eax, 0x28(%rsp)
movq %rax, 0x30(%rsp)
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xd263(%rip), %rdi      # 0x22e1f
movq %r13, %rsi
xorl %eax, %eax
callq 0x7300
leaq 0xd252(%rip), %rdi      # 0x22e1f
movq %r12, %rsi
xorl %eax, %eax
callq 0x7300
leaq 0xd241(%rip), %rdi      # 0x22e1f
movq %r12, %rsi
xorl %eax, %eax
callq 0x7300
leaq 0xdbad(%rip), %rdi      # 0x2379c
leaq 0xd599(%rip), %rsi      # 0x2318f
leaq 0xdbd4(%rip), %rcx      # 0x237d1
movl $0xd9, %edx
callq 0x7120
jmp 0x15c32
jmp 0x15c17
jmp 0x15c32
jmp 0x15c32
jmp 0x15c32
jmp 0x15c32
jmp 0x15c32
jmp 0x15c32
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x15c35
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x7200
jmp 0x15c35
jmp 0x15c32
movq %rax, %r14
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x15c65
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x7200
xorl %eax, %eax
movq %rax, 0x10(%rsp)
movl %eax, 0x18(%rsp)
movq %rax, 0x20(%rsp)
movl %eax, 0x28(%rsp)
movq %rax, 0x30(%rsp)
movq %r14, %rdi
callq 0x7360
nop