// File: /workspace/github_cpp_makefile_star2_O1/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 0x4486
leaq 0xb8(%rsp), %rdi
movq %r12, %rsi
callq 0x44c8
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 0x45b6
movq %rsp, %rdi
leaq 0x40(%rsp), %rsi
leaq 0x98(%rsp), %rdx
callq 0x4576
movb (%rsp), %r12b
cmpb $0x1, %r12b
jne 0x300f
leaq 0x78(%rsp), %rdi
leaq 0x60(%rsp), %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x45b6
leaq 0xe0(%rsp), %rdi
leaq 0x20(%rsp), %rsi
leaq 0x78(%rsp), %rdx
callq 0x4576
movb 0xe0(%rsp), %bpl
jmp 0x3011
xorl %ebp, %ebp
testb %r12b, %r12b
je 0x3049
cmpb $0x1, 0xe0(%rsp)
jne 0x302d
leaq 0xe8(%rsp), %rdi
callq 0x323c
movb $0x0, 0xe0(%rsp)
cmpb $0x1, 0x78(%rsp)
jne 0x3049
leaq 0x80(%rsp), %rdi
callq 0x323c
cmpb $0x1, (%rsp)
jne 0x3059
leaq 0x8(%rsp), %rdi
callq 0x323c
movb $0x0, (%rsp)
cmpb $0x1, 0x98(%rsp)
jne 0x3074
leaq 0xa0(%rsp), %rdi
callq 0x323c
testb %bpl, %bpl
je 0x30a0
movq 0x60(%rsp), %r15
movq 0x68(%rsp), %rax
cmpq %rax, %r15
je 0x30a4
cmpb $0x1, 0x6b(%r15)
jne 0x309a
cmpl $0x0, 0x70(%r15)
je 0x3121
addq $0x78, %r15
jmp 0x3083
xorl %ebp, %ebp
jmp 0x30d0
leaq 0x40(%rsp), %rdi
movq 0x8(%rdi), %rsi
movq 0x20(%rsp), %rdx
movq 0x28(%rsp), %rcx
callq 0x62b2
movb $0x1, (%rbx)
leaq 0x8(%rbx), %rdi
movb $0x1, %bpl
leaq 0x40(%rsp), %rsi
callq 0x6684
movb %bpl, (%rbx)
leaq 0x20(%rsp), %rdi
callq 0x323c
leaq 0x40(%rsp), %rdi
callq 0x323c
movq 0xc8(%rsp), %rdi
testq %rdi, %rdi
je 0x3104
movq 0xd8(%rsp), %rsi
subq %rdi, %rsi
callq 0x2140
leaq 0x60(%rsp), %rdi
callq 0x4b36
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 0x49c6
movb $0x1, %bpl
movq %rsp, %rsi
movq %r14, %rdi
callq 0x4a22
xorl %ebp, %ebp
leaq 0x7ba0(%rip), %rsi      # 0xacf0
leaq 0x19af(%rip), %rdx      # 0x4b06
movq %r14, %rdi
callq 0x2200
movq %rax, %rbx
cmpb $0x1, 0x78(%rsp)
jne 0x3176
leaq 0x80(%rsp), %rdi
callq 0x323c
movb $0x0, 0x78(%rsp)
jmp 0x3180
movq %rax, %rbx
cmpb $0x1, (%rsp)
jne 0x3190
leaq 0x8(%rsp), %rdi
callq 0x323c
movb $0x0, (%rsp)
jmp 0x319b
jmp 0x31bc
movq %rax, %rbx
cmpb $0x1, 0x98(%rsp)
jne 0x31b2
leaq 0xa0(%rsp), %rdi
callq 0x323c
movb $0x0, 0x98(%rsp)
jmp 0x31f9
movq %rax, %rbx
jmp 0x31f9
movq %rax, %rbx
jmp 0x322a
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x31ec
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2140
jmp 0x31ec
movq %rax, %rbx
movb $0x1, %bpl
testb %bpl, %bpl
je 0x31f9
movq %r14, %rdi
callq 0x20f0
leaq 0x20(%rsp), %rdi
callq 0x323c
leaq 0x40(%rsp), %rdi
callq 0x323c
movq 0xc8(%rsp), %rdi
testq %rdi, %rdi
je 0x322a
movq 0xd8(%rsp), %rsi
subq %rdi, %rsi
callq 0x2140
leaq 0x60(%rsp), %rdi
callq 0x4b36
movq %rbx, %rdi
callq 0x2210