// File: /workspace/github_cpp_makefile_star2_O2/halfflat[P]tinyopt/ex/ex5-run.cc
// Function: main
int main(int argc, char** argv) {
    try {
        to::option opts[] = {
            // 'echo' and 'ohce' are always recognized:
            { {}, to::flag, "echo", to::then(1) },
            { {}, to::flag, "ohce", to::then(2) },

            // If mode is zero and we see a word, it's an error.
            { to::error("unrecognized keyword"), to::when(0) },

            // If mode is one, echo argument.
            { to::action(echo), to::when(1) },

            // If mode is two, echo argument in reverse.
            { to::action(ohce), to::when(2) }
        };

        to::run(opts, argc, argv+1);
    }
    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 $0x3d8, %rsp            # imm = 0x3D8
movq %rsi, 0x8(%rsp)
movl %edi, 0x4(%rsp)
xorps %xmm0, %xmm0
leaq 0x120(%rsp), %rsi
movaps %xmm0, (%rsi)
leaq 0xa13(%rip), %r13       # 0x2e4c
movq %r13, 0x18(%rsi)
leaq 0xa0c(%rip), %rbp       # 0x2e50
movq %rbp, 0x10(%rsi)
pushq $0x1
popq %rbx
leaq 0x3c(%rsp), %rdx
movl %ebx, (%rdx)
leaq 0x10(%rsp), %r8
movaps %xmm0, (%r8)
movl %ebx, (%r8)
leaq 0xa03(%rip), %r15       # 0x2e68
movq %r15, 0x18(%r8)
leaq 0x9fc(%rip), %r14       # 0x2e6c
movq %r14, 0x10(%r8)
leaq 0x3c56(%rip), %rcx      # 0x60d1
leaq 0x1a0(%rsp), %rdi
callq 0x292e
leaq 0x210(%rsp), %r12
leaq 0x100(%rsp), %rsi
xorps %xmm0, %xmm0
movaps %xmm0, (%rsi)
movq %r13, 0x18(%rsi)
movq %rbp, 0x10(%rsi)
leaq 0x38(%rsp), %rdx
movl $0x1, (%rdx)
leaq 0x40(%rsp), %r8
movaps %xmm0, (%r8)
movl $0x2, (%r8)
movq %r15, 0x18(%r8)
movq %r14, 0x10(%r8)
leaq 0x3c06(%rip), %rcx      # 0x60d6
movq %r12, %rdi
callq 0x292e
leaq 0x280(%rsp), %r12
leaq 0x3bf4(%rip), %rsi      # 0x60db
leaq 0xc0(%rsp), %rdi
leaq 0x3(%rsp), %rdx
callq 0x29fc
leaq 0xe0(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0x29af
xorps %xmm0, %xmm0
leaq 0xa0(%rsp), %rdx
movaps %xmm0, (%rdx)
leaq 0xb89(%rip), %r13       # 0x30ac
movq %r13, 0x18(%rdx)
leaq 0xb86(%rip), %rbp       # 0x30b4
movq %rbp, 0x10(%rdx)
leaq 0xe0(%rsp), %rsi
movq %r12, %rdi
callq 0x2a38
leaq 0x160(%rsp), %rsi
andq $0x0, 0x8(%rsi)
leaq 0x2f0(%rsp), %r12
leaq -0x1d2(%rip), %rax      # 0x238c
movq %rax, (%rsi)
leaq 0xee2(%rip), %r14       # 0x344a
movq %r14, 0x18(%rsi)
leaq 0xedd(%rip), %r15       # 0x3450
movq %r15, 0x10(%rsi)
leaq 0x80(%rsp), %rdx
xorps %xmm0, %xmm0
movaps %xmm0, (%rdx)
movl $0x1, (%rdx)
movq %r13, 0x18(%rdx)
movq %rbp, 0x10(%rdx)
movq %r12, %rdi
callq 0x2a38
leaq 0x140(%rsp), %rsi
andq $0x0, 0x8(%rsi)
leaq 0x360(%rsp), %r12
leaq -0x20b(%rip), %rax      # 0x23ac
movq %rax, (%rsi)
movq %r14, 0x18(%rsi)
movq %r15, 0x10(%rsi)
xorps %xmm0, %xmm0
leaq 0x60(%rsp), %rdx
movaps %xmm0, (%rdx)
movl $0x2, (%rdx)
movq %r13, 0x18(%rdx)
movq %rbp, 0x10(%rdx)
movq %r12, %rdi
callq 0x2a38
leaq 0x60(%rsp), %rdi
callq 0x2af8
leaq 0x140(%rsp), %rdi
callq 0x2af8
leaq 0x80(%rsp), %rdi
callq 0x2af8
leaq 0x160(%rsp), %rdi
callq 0x2af8
leaq 0xa0(%rsp), %rdi
callq 0x2af8
leaq 0xe0(%rsp), %rdi
callq 0x2af8
leaq 0xc0(%rsp), %rdi
callq 0x2090
leaq 0x40(%rsp), %rdi
callq 0x2af8
leaq 0x100(%rsp), %rdi
callq 0x2af8
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x2af8
leaq 0x120(%rsp), %rdi
callq 0x2af8
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %rcx
xorps %xmm0, %xmm0
movaps %xmm0, (%r15)
andq $0x0, 0x10(%r15)
leaq 0x180(%rsp), %rdi
leaq 0x1a0(%rsp), %rsi
leaq 0x4(%rsp), %rdx
leaq 0x10(%rsp), %r8
callq 0x2b14
leaq 0x180(%rsp), %rdi
callq 0x336e
leaq 0x10(%rsp), %rdi
callq 0x2d76
movl $0x1c0, %ebx            # imm = 0x1C0
leaq (%rsp,%rbx), %rdi
addq $0x1a0, %rdi            # imm = 0x1A0
callq 0x487a
addq $-0x70, %rbx
cmpq $-0x70, %rbx
jne 0x26bc
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x3d8, %rsp            # imm = 0x3D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdx, %rbp
movq %rax, %r13
leaq 0x10(%rsp), %rdi
callq 0x2d76
movl $0x1c0, %r14d           # imm = 0x1C0
leaq (%rsp,%r14), %rdi
addq $0x1a0, %rdi            # imm = 0x1A0
callq 0x487a
addq $-0x70, %r14
cmpq $-0x70, %r14
jne 0x2702
jmp 0x27f5
movq %rdx, %rbp
movq %rax, %r13
leaq 0x60(%rsp), %rdi
callq 0x2af8
leaq 0x140(%rsp), %rdi
callq 0x2af8
jmp 0x2746
movq %rdx, %rbp
movq %rax, %r13
leaq 0x80(%rsp), %rdi
callq 0x2af8
leaq 0x160(%rsp), %rdi
callq 0x2af8
jmp 0x2768
movq %rdx, %rbp
movq %rax, %r13
leaq 0xa0(%rsp), %rdi
callq 0x2af8
leaq 0xe0(%rsp), %rdi
callq 0x2af8
jmp 0x278a
movq %rdx, %rbp
movq %rax, %r13
leaq 0xc0(%rsp), %rdi
callq 0x2090
jmp 0x27a1
jmp 0x279b
movq %rdx, %rbp
movq %rax, %r13
leaq 0x40(%rsp), %rdi
callq 0x2af8
leaq 0x100(%rsp), %rdi
callq 0x2af8
leaq 0x10(%rsp), %rdi
callq 0x2af8
leaq 0x120(%rsp), %rdi
callq 0x2af8
leaq 0x1a0(%rsp), %rax
cmpq %r12, %rax
je 0x27f5
leaq 0x1a0(%rsp), %r14
addq $-0x70, %r12
movq %r12, %rdi
callq 0x487a
cmpq %r14, %r12
jne 0x27e4
cmpl $0x1, %ebp
jne 0x28de
movq %r13, %rdi
callq 0x2070
movq %rax, %r15
movq 0x8(%rsp), %rax
movq (%rax), %r14
movq 0x7928(%rip), %rsi      # 0xa140
leaq 0x1a0(%rsp), %rdi
leaq 0xa0(%rsp), %rdx
callq 0x29fc
movq (%r15), %rax
movq %r15, %rdi
callq *0x10(%rax)
leaq 0x10(%rsp), %rdi
leaq 0x80(%rsp), %rdx
movq %rax, %rsi
callq 0x29fc
leaq 0x389e(%rip), %rsi      # 0x60f0
leaq 0x40(%rsp), %rdi
leaq 0x60(%rsp), %rdx
callq 0x29fc
leaq 0x1a0(%rsp), %rsi
leaq 0x10(%rsp), %rdx
leaq 0x40(%rsp), %rcx
movq %r14, %rdi
callq 0x2d97
leaq 0x40(%rsp), %rdi
callq 0x2090
leaq 0x10(%rsp), %rdi
callq 0x2090
leaq 0x1a0(%rsp), %rdi
callq 0x2090
callq 0x2200
jmp 0x26d8
movq %rax, %r13
leaq 0x40(%rsp), %rdi
callq 0x2090
jmp 0x28b8
movq %rax, %r13
leaq 0x10(%rsp), %rdi
callq 0x2090
jmp 0x28c7
movq %rax, %r13
leaq 0x1a0(%rsp), %rdi
callq 0x2090
jmp 0x28d9
movq %rax, %r13
callq 0x2200
movq %r13, %rdi
callq 0x2220
movq %rax, %rdi
callq 0x2e41
movq %rdx, %rbp
movq %rax, %r13
leaq 0x1a0(%rsp), %r12
jmp 0x27b8
nop