// File: /workspace/github_cpp_makefile_star2_O1/halfflat[P]tinyopt/ex/ex3-run.cc
// Function: main
int main(int argc, char** argv) {
    try {
        auto print_apple = [] { std::cout << "apple!\n"; };
        auto help = [argv0 = argv[0]] { to::usage(argv0, usage_str); };

        to::option opts[] = {
            { to::action(print_apple), to::flag, "-a", "--apple" },
            { to::action(help), to::flag, to::exit, "-h", "--help" },
            { {}, to::flag, to::stop, "--" }
        };

        if (!to::run(opts, argc, argv+1)) return 0;

        std::cout << "remaining arguments:";
        for (auto a = argv+1; *a; ++a) std::cout << ' ' << *a;
        std::cout << "\n";
    }
    catch (to::option_error& e) {
        to::usage_error(argv[0], usage_str, e.what());
        return 1;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rsi, %rbx
movl %edi, 0xc(%rsp)
movq (%rsi), %r14
xorps %xmm0, %xmm0
leaq 0x90(%rsp), %rsi
movaps %xmm0, 0x10(%rsi)
movaps %xmm0, (%rsi)
leaq 0x4f6(%rip), %rax       # 0x2966
movq %rax, 0x18(%rsi)
leaq 0x509(%rip), %rax       # 0x2984
movq %rax, 0x10(%rsi)
leaq 0x30(%rsp), %rdx
movl $0x1, (%rdx)
leaq 0x4c50(%rip), %rcx      # 0x70e1
leaq 0x4c4c(%rip), %r8       # 0x70e4
leaq 0xb0(%rsp), %r15
movq %r15, %rdi
callq 0x2a9a
leaq 0x120(%rsp), %r15
leaq 0x70(%rsp), %rsi
xorps %xmm0, %xmm0
movaps %xmm0, (%rsi)
movaps %xmm0, 0x10(%rsi)
movq %r14, (%rsi)
leaq 0x4e1(%rip), %rax       # 0x29aa
movq %rax, 0x18(%rsi)
leaq 0x5a0(%rip), %rax       # 0x2a74
movq %rax, 0x10(%rsi)
leaq 0x10(%rsp), %rdx
movl $0x1, (%rdx)
movq %rsp, %rcx
movl $0x10, (%rcx)
leaq 0x4bf9(%rip), %r8       # 0x70ec
leaq 0x4bf5(%rip), %r9       # 0x70ef
movq %r15, %rdi
callq 0x2b52
leaq 0x190(%rsp), %r15
xorps %xmm0, %xmm0
leaq 0x50(%rsp), %rsi
movaps %xmm0, (%rsi)
leaq 0xc7a(%rip), %rax       # 0x3196
movq %rax, 0x18(%rsi)
leaq 0xc73(%rip), %rax       # 0x319a
movq %rax, 0x10(%rsi)
leaq 0x8(%rsp), %rdx
movl $0x1, (%rdx)
leaq 0x4(%rsp), %rcx
movl $0x20, (%rcx)
leaq 0x4bae(%rip), %r8       # 0x70f6
movq %r15, %rdi
callq 0x2c0c
movq 0x60(%rsp), %rax
testq %rax, %rax
je 0x2569
leaq 0x50(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x80(%rsp), %rax
testq %rax, %rax
je 0x2585
leaq 0x70(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0xa0(%rsp), %rax
testq %rax, %rax
je 0x25a4
leaq 0x90(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0x8(%rbx), %r14
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r8
movaps %xmm0, (%r8)
movq $0x0, 0x10(%r8)
leaq 0x30(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %r14, %rcx
callq 0x2cc3
cmpb $0x1, 0x30(%rsp)
jne 0x26a1
leaq 0x38(%rsp), %r15
movq %r15, %rdi
callq 0x2fc0
movb $0x0, -0x8(%r15)
leaq 0x10(%rsp), %rdi
callq 0x2fc0
movq 0x89cc(%rip), %rdi      # 0xafd0
leaq 0x4aee(%rip), %rsi      # 0x70f9
movl $0x14, %edx
callq 0x2170
cmpq $0x0, (%r14)
je 0x2687
leaq 0x10(%rbx), %rbp
movq 0x89aa(%rip), %r14      # 0xafd0
movq %rsp, %r15
movb $0x20, (%rsp)
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2170
movq %rax, %r12
movq -0x8(%rbp), %r13
testq %r13, %r13
je 0x2661
movq %r13, %rdi
callq 0x2090
movq %r12, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x2170
jmp 0x267c
movq (%r12), %rax
movq -0x18(%rax), %rax
movq %r12, %rdi
addq %rax, %rdi
movl 0x20(%r12,%rax), %esi
orl $0x1, %esi
callq 0x21f0
cmpq $0x0, (%rbp)
leaq 0x8(%rbp), %rbp
jne 0x2629
movq 0x8942(%rip), %rdi      # 0xafd0
leaq 0x4ab1(%rip), %rsi      # 0x7146
movl $0x1, %edx
callq 0x2170
jmp 0x26b0
movb $0x0, 0x30(%rsp)
leaq 0x10(%rsp), %rdi
callq 0x2fc0
movl $0x150, %r14d           # imm = 0x150
leaq (%rsp,%r14), %rdi
addq $0x90, %rdi
callq 0x31b2
leaq (%rsp,%r14), %rdi
addq $0x78, %rdi
callq 0x31e2
leaq (%rsp,%r14), %rbx
addq $0x60, %rbx
movq %rbx, %rdi
callq 0x3212
movq -0x10(%rbx), %rax
testq %rax, %rax
je 0x26fe
leaq (%rsp,%r14), %rdi
addq $0x40, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
addq $-0x70, %r14
jne 0x26b6
xorl %eax, %eax
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x295d
jmp 0x295d
jmp 0x295d
jmp 0x27da
movq %rdx, %r12
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x2fc0
jmp 0x27e0
movq %rdx, %r12
movq %rax, %r14
movq 0x60(%rsp), %rax
testq %rax, %rax
je 0x276d
leaq 0x50(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x276d
jmp 0x295d
movq %rdx, %r12
movq %rax, %r14
movq 0x80(%rsp), %rax
testq %rax, %rax
je 0x2796
leaq 0x70(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x2796
jmp 0x295d
movq %rdx, %r12
movq %rax, %r14
movq 0xa0(%rsp), %rax
testq %rax, %rax
je 0x27b5
leaq 0x90(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0xb0(%rsp), %r13
cmpq %r15, %r13
je 0x2800
addq $-0x70, %r15
movq %r15, %rdi
callq 0x4a86
cmpq %r13, %r15
jne 0x27c2
jmp 0x2800
jmp 0x295d
movq %rdx, %r12
movq %rax, %r14
movl $0xe0, %r15d
leaq (%rsp,%r15), %rdi
addq $0xb0, %rdi
callq 0x4a86
addq $-0x70, %r15
cmpq $-0x70, %r15
jne 0x27e6
cmpl $0x1, %r12d
jne 0x2953
movq %r14, %rdi
callq 0x2080
movq %rax, %r14
movq (%rbx), %rbx
movq 0x8911(%rip), %rsi      # 0xb130
leaq 0xb0(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x314e
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
leaq 0x30(%rsp), %rdi
leaq 0x4(%rsp), %rdx
movq %rax, %rsi
callq 0x314e
leaq 0x20(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x48b2(%rip), %rsi      # 0x710e
leaq 0x48b2(%rip), %rdx      # 0x7115
leaq 0x10(%rsp), %rdi
callq 0x3368
leaq 0xb0(%rsp), %rsi
leaq 0x30(%rsp), %rdx
leaq 0x10(%rsp), %rcx
movq %rbx, %rdi
callq 0x301b
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x289e
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2140
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28b9
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2140
leaq 0xc0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28da
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x2140
callq 0x21e0
movl $0x1, %eax
jmp 0x2706
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x2908
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2140
jmp 0x2908
movq %rax, %r14
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2928
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2140
jmp 0x2928
movq %rax, %r14
leaq 0xc0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x294e
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x2140
jmp 0x294e
movq %rax, %r14
callq 0x21e0
movq %r14, %rdi
callq 0x2210
jmp 0x295d
movq %rax, %rdi
callq 0x318b
nop