// File: /workspace/github_cpp_makefile_star2_O3/halfflat[P]tinyopt/include/tinyopt/tinyopt.h
// Function: to::impl::run(std::vector<to::impl::counted_option, std::allocator<to::impl::counted_option>>&, int&, char**)
inline maybe<saved_options> run(std::vector<impl::counted_option>& opts, int& argc, char** argv) {
        saved_options collate;
        bool exit = false;
        bool stop = false;
        state st{argc, argv};
        int mode = 0;
        while (st && !exit && !stop) {
            // Try options with a key first.
            for (auto& o: opts) {
                if (o.keys.empty()) continue;
                if (o.is_single && o.count) continue;
                if (!o.check_mode(mode)) continue;

                if (auto ma = o.match(st)) {
                    if (!o.is_ephemeral) {
                        if (ma->first) collate.add(ma->first);
                        if (ma->second) collate.add(ma->second);
                    }
                    o.set_mode(mode);
                    exit = o.is_exit;
                    stop = o.is_stop;
                    goto next;
                }
            }

            // Literal "--" terminates option parsing.
            if (!std::strcmp(*argv, "--")) {
                st.shift();
                return collate;
            }

            // Try free options.
            for (auto& o: opts) {
                if (!o.keys.empty()) continue;
                if (o.is_single && o.count) continue;
                if (!o.check_mode(mode)) continue;

                if (auto ma = o.match(st)) {
                    if (!o.is_ephemeral) collate.add(ma->second);
                    o.set_mode(mode);
                    exit = o.is_exit;
                    goto next;
                }
            }

            // Nothing matched, so increment argv.
            st.skip();
        next: ;
        }

        return exit? nothing: just(collate);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rdi, %r14
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq %rdx, 0x30(%rsp)
movq %rcx, 0x38(%rsp)
xorl %eax, %eax
movl %eax, 0x40(%rsp)
movl %eax, 0x8(%rsp)
movq %rcx, 0x48(%rsp)
cmpq $0x0, (%rcx)
je 0x47d5
movq %rsi, %r15
movq %r14, 0x28(%rsp)
xorl %r14d, %r14d
leaq 0x50(%rsp), %r12
leaq 0x30(%rsp), %r13
movl $0x0, 0xc(%rsp)
movq (%r15), %rbp
movq 0x8(%r15), %rbx
cmpq %rbx, %rbp
je 0x45f6
movq 0x20(%rbp), %rax
cmpq 0x28(%rbp), %rax
je 0x45f0
cmpb $0x1, 0x6a(%rbp)
jne 0x45c7
cmpl $0x0, 0x70(%rbp)
jne 0x45f0
movl 0x8(%rsp), %esi
movq %rbp, %rdi
callq 0x55cc
testb %al, %al
je 0x45f0
movq %r12, %rdi
movq %rbp, %rsi
movq %r13, %rdx
callq 0x562c
cmpb $0x1, 0x50(%rsp)
je 0x46a1
addq $0x78, %rbp
jmp 0x45ac
movq 0x48(%rsp), %rax
movq (%rax), %rax
cmpb $0x2d, (%rax)
jne 0x4613
cmpb $0x2d, 0x1(%rax)
jne 0x4613
cmpb $0x0, 0x2(%rax)
je 0x480b
movq (%r15), %rbp
movq 0x8(%r15), %rbx
cmpq %rbx, %rbp
je 0x4664
movq 0x20(%rbp), %rax
cmpq 0x28(%rbp), %rax
jne 0x465e
cmpb $0x1, 0x6a(%rbp)
jne 0x4635
cmpl $0x0, 0x70(%rbp)
jne 0x465e
movl 0x8(%rsp), %esi
movq %rbp, %rdi
callq 0x55cc
testb %al, %al
je 0x465e
movq %r12, %rdi
movq %rbp, %rsi
movq %r13, %rdx
callq 0x562c
cmpb $0x1, 0x50(%rsp)
je 0x476a
addq $0x78, %rbp
jmp 0x461a
movq 0x38(%rsp), %rax
cmpq $0x0, (%rax)
je 0x4678
addq $0x8, %rax
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
cmpq $0x0, (%rax)
je 0x47c6
testb $0x1, %r14b
jne 0x47c6
testb $0x1, 0xc(%rsp)
je 0x45a5
jmp 0x47c6
cmpb $0x0, 0x69(%rbp)
leaq 0x88(%rsp), %rbx
leaq 0xa8(%rsp), %r14
jne 0x474d
movq 0x58(%rsp), %rsi
testq %rsi, %rsi
je 0x4704
movq %r14, %rdi
leaq 0x7(%rsp), %rdx
callq 0x2dba
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0x5eee
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x4704
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x2140
movq 0x60(%rsp), %rsi
testq %rsi, %rsi
je 0x474d
movq %rbx, %rdi
leaq 0x7(%rsp), %rdx
callq 0x2dba
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x5eee
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x474d
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x2140
movq %rbp, %rdi
leaq 0x8(%rsp), %rsi
callq 0x57a0
movb 0x6c(%rbp), %r14b
movb 0x6d(%rbp), %al
movl %eax, 0xc(%rsp)
jmp 0x4678
cmpb $0x0, 0x69(%rbp)
jne 0x47b0
movq 0x60(%rsp), %rsi
leaq 0x68(%rsp), %rbx
movq %rbx, %rdi
leaq 0x7(%rsp), %rdx
callq 0x2dba
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x5eee
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x47b0
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2140
movq %rbp, %rdi
leaq 0x8(%rsp), %rsi
callq 0x57a0
movb 0x6c(%rbp), %r14b
jmp 0x4678
testb $0x1, %r14b
movq 0x28(%rsp), %r14
je 0x47d5
xorl %ebx, %ebx
jmp 0x47e9
movb $0x1, (%r14)
leaq 0x8(%r14), %rdi
movb $0x1, %bl
leaq 0x10(%rsp), %rsi
callq 0x6546
movb %bl, (%r14)
leaq 0x10(%rsp), %rdi
callq 0x31fe
movq %r14, %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x30(%rsp), %rdi
movl $0x1, %esi
callq 0x57f0
movaps 0x10(%rsp), %xmm0
movq 0x28(%rsp), %r14
movups %xmm0, 0x8(%r14)
movq 0x20(%rsp), %rax
movq %rax, 0x18(%r14)
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movb $0x1, %bl
jmp 0x47e9
movq %rax, %rbx
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x48c1
movq 0x78(%rsp), %rsi
jmp 0x48a6
jmp 0x48be
movq %rax, %rbx
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x48c1
movq 0x98(%rsp), %rsi
jmp 0x48a6
jmp 0x48be
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x48c1
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x2140
jmp 0x48c1
jmp 0x48be
jmp 0x48be
jmp 0x48be
jmp 0x48be
jmp 0x48be
jmp 0x48be
jmp 0x48be
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x31fe
movq %rbx, %rdi
callq 0x2200
nop