// File: /workspace/github_cpp_makefile_star2_O3/halfflat[P]tinyopt/include/tinyopt/tinyopt.h
// Function: to::maybe<to::saved_options> to::run<to::option [5]>(to::option const (&) [5], int&, char**, to::saved_options const&)
maybe<saved_options> run(const Options& options, int& argc, char** argv, const saved_options& restore = saved_options{}) {
    using std::begin;
    using std::end;
    std::vector<impl::counted_option> opts(begin(options), end(options));
    auto r_args = restore.as_arglist();

    saved_options coll1, coll2;
    if (coll1 << impl::run(opts, r_args.argc, r_args.argv) && coll2 << impl::run(opts, argc, argv)) {
        for (auto& o: opts) {
            if (o.is_mandatory && !o.count) throw missing_mandatory_option(o.longest_label());
        }
        return coll1 += coll2;
    }

    return nothing;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x100, %rsp            # imm = 0x100
movq %r8, %r12
movq %rcx, %r14
movq %rdx, %r15
movq %rdi, %rbx
leaq 0x230(%rsi), %rdx
leaq 0x60(%rsp), %rdi
leaq 0xb8(%rsp), %rcx
callq 0x4410
leaq 0xb8(%rsp), %rdi
movq %r12, %rsi
callq 0x4452
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
xorl %eax, %eax
movq %rax, 0x50(%rsp)
movq %rax, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
leaq 0xb8(%rsp), %rdx
movq 0x8(%rdx), %rcx
leaq 0x98(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x4540
movq %rsp, %rdi
leaq 0x40(%rsp), %rsi
leaq 0x98(%rsp), %rdx
callq 0x4500
movb (%rsp), %al
cmpb $0x1, %al
jne 0x301a
leaq 0x78(%rsp), %rdi
leaq 0x60(%rsp), %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x4540
leaq 0xe0(%rsp), %rdi
leaq 0x20(%rsp), %rsi
leaq 0x78(%rsp), %rdx
callq 0x4500
movb 0xe0(%rsp), %bpl
cmpb $0x1, %bpl
jne 0x2ff9
leaq 0xe8(%rsp), %rdi
callq 0x31fe
movb $0x0, 0xe0(%rsp)
cmpb $0x1, 0x78(%rsp)
jne 0x3015
leaq 0x80(%rsp), %rdi
callq 0x31fe
movb (%rsp), %al
jmp 0x301c
xorl %ebp, %ebp
testb $0x1, %al
je 0x302a
leaq 0x8(%rsp), %rdi
callq 0x31fe
movb $0x0, (%rsp)
cmpb $0x1, 0x98(%rsp)
jne 0x3045
leaq 0xa0(%rsp), %rdi
callq 0x31fe
testb %bpl, %bpl
je 0x3071
movq 0x60(%rsp), %r15
movq 0x68(%rsp), %rax
cmpq %rax, %r15
je 0x3075
cmpb $0x1, 0x6b(%r15)
jne 0x306b
cmpl $0x0, 0x70(%r15)
je 0x30f2
addq $0x78, %r15
jmp 0x3054
xorl %ebp, %ebp
jmp 0x30a1
leaq 0x40(%rsp), %rdi
movq 0x8(%rdi), %rsi
movq 0x20(%rsp), %rdx
movq 0x28(%rsp), %rcx
callq 0x617e
movb $0x1, (%rbx)
leaq 0x8(%rbx), %rdi
movb $0x1, %bpl
leaq 0x40(%rsp), %rsi
callq 0x6546
movb %bpl, (%rbx)
leaq 0x20(%rsp), %rdi
callq 0x31fe
leaq 0x40(%rsp), %rdi
callq 0x31fe
movq 0xc8(%rsp), %rdi
testq %rdi, %rdi
je 0x30d5
movq 0xd8(%rsp), %rsi
subq %rdi, %rsi
callq 0x2140
leaq 0x60(%rsp), %rdi
callq 0x4a4e
movq %rbx, %rax
addq $0x100, %rsp            # imm = 0x100
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0x30, %edi
callq 0x20b0
movq %rax, %r14
movq %rsp, %rdi
movq %r15, %rsi
callq 0x48d4
movb $0x1, %bpl
movq %rsp, %rsi
movq %r14, %rdi
callq 0x493a
xorl %ebp, %ebp
leaq 0x7bcf(%rip), %rsi      # 0xacf0
leaq 0x18f6(%rip), %rdx      # 0x4a1e
movq %r14, %rdi
callq 0x21f0
movq %rax, %rbx
cmpb $0x1, 0x78(%rsp)
jne 0x314c
leaq 0x80(%rsp), %rdi
callq 0x31fe
jmp 0x314c
movq %rax, %rbx
cmpb $0x1, (%rsp)
jne 0x315c
leaq 0x8(%rsp), %rdi
callq 0x31fe
movb $0x0, (%rsp)
jmp 0x3167
jmp 0x3180
movq %rax, %rbx
cmpb $0x1, 0x98(%rsp)
jne 0x31ba
leaq 0xa0(%rsp), %rdi
callq 0x31fe
jmp 0x31ba
movq %rax, %rbx
jmp 0x31ba
movq %rax, %rbx
jmp 0x31eb
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x31a8
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2140
testb %bpl, %bpl
jne 0x31b2
jmp 0x31ba
movq %rax, %rbx
movq %r14, %rdi
callq 0x20f0
leaq 0x20(%rsp), %rdi
callq 0x31fe
leaq 0x40(%rsp), %rdi
callq 0x31fe
movq 0xc8(%rsp), %rdi
testq %rdi, %rdi
je 0x31eb
movq 0xd8(%rsp), %rsi
subq %rdi, %rsi
callq 0x2140
leaq 0x60(%rsp), %rdi
callq 0x4a4e
movq %rbx, %rdi
callq 0x2200
nop