// File: /workspace/github_cpp_makefile_star2_O3/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 0x15cfa
movq 0x10(%r12), %r15
movq 0x20(%r12), %rax
testq %rax, %rax
je 0x14817
xorl %r13d, %r13d
leaq 0x10(%rsp), %rbp
movq 0x10(%r14), %rdx
movq (%rdx), %rcx
movq 0x8(%rdx), %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
cmpq %r13, %rdx
jbe 0x14a49
movq (%rcx,%r13,8), %rsi
cmpq $-0x1, %rsi
je 0x1480f
movq %rbp, %rdi
callq 0x1605c
orq %rdx, (%rax)
movq 0x20(%r12), %rax
incq %r13
cmpq %rax, %r13
jb 0x147da
movq 0x10(%r15), %rax
movl 0x18(%r15), %ecx
subq (%r15), %rax
leaq (%rcx,%rax,8), %rdx
movq 0x10(%r14), %rsi
movq 0x20(%rsi), %rdi
subq 0x18(%rsi), %rdi
sarq $0x3, %rdi
movabsq $-0x30c30c30c30c30c3, %rsi # imm = 0xCF3CF3CF3CF3CF3D
imulq %rsi, %rdi
cmpq %rdi, %rdx
jne 0x14a7c
shlq $0x3, %rax
negq %rcx
cmpq %rcx, %rax
je 0x148f7
movl $0x88, %ebp
xorl %r12d, %r12d
movq %r15, %rdi
movq %r12, %rsi
callq 0x156ac
testb %al, %al
je 0x148ce
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 0x14a5a
movq -0x8(%r13,%rbp), %rsi
cmpq $-0x1, %rsi
je 0x148b6
leaq 0x10(%rsp), %rdi
callq 0x1605c
orq %rdx, (%rax)
movq (%r13,%rbp), %rsi
cmpq $-0x1, %rsi
je 0x148ce
leaq 0x10(%rsp), %rdi
callq 0x1605c
orq %rdx, (%rax)
incq %r12
movq 0x10(%r15), %rax
subq (%r15), %rax
movl 0x18(%r15), %ecx
leaq (%rcx,%rax,8), %rdx
addq $0xa8, %rbp
cmpq %rdx, %r12
jb 0x14865
shlq $0x3, %rax
negq %rcx
cmpq %rcx, %rax
je 0x14978
movl $0x80, %ebp
xorl %r12d, %r12d
leaq 0x10(%rsp), %r13
movq %r15, %rdi
movq %r12, %rsi
callq 0x156ac
testb %al, %al
jne 0x1495a
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 0x14a6b
movq (%rax,%rbp), %rsi
cmpq $-0x1, %rsi
je 0x1495a
movq %r13, %rdi
callq 0x1605c
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 0x14909
movq 0x10(%r14), %rax
movq 0x30(%rax), %rsi
cmpq $-0x1, %rsi
je 0x14993
leaq 0x10(%rsp), %rdi
callq 0x1605c
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 0x14a25
xorl %esi, %esi
leaq 0x10(%rsp), %r14
leaq 0x8(%rsp), %r15
movq %r14, %rdi
callq 0x1605c
testq %rdx, (%rax)
jne 0x149fe
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x149f3
movq 0x8(%rsp), %rax
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x149fe
movq %rbx, %rdi
movq %r15, %rdx
callq 0x160f0
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 0x149ca
testq %rdi, %rdi
je 0x14a37
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x6200
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xc37e(%rip), %rdi      # 0x20dce
movq %r13, %rsi
xorl %eax, %eax
callq 0x6300
leaq 0xc36d(%rip), %rdi      # 0x20dce
movq %r12, %rsi
xorl %eax, %eax
callq 0x6300
leaq 0xc35c(%rip), %rdi      # 0x20dce
movq %r12, %rsi
xorl %eax, %eax
callq 0x6300
leaq 0xccc9(%rip), %rdi      # 0x2174c
leaq 0xc6b5(%rip), %rsi      # 0x2113f
leaq 0xccf0(%rip), %rcx      # 0x21781
movl $0xd9, %edx
callq 0x6120
jmp 0x14ac6
jmp 0x14aab
jmp 0x14ac6
jmp 0x14ac6
jmp 0x14ac6
jmp 0x14ac6
jmp 0x14ac6
jmp 0x14ac6
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x14ac9
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x6200
jmp 0x14ac9
jmp 0x14ac6
movq %rax, %r14
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x14ae0
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x6200
movq %r14, %rdi
callq 0x6360