// File: /workspace/github_cpp_makefile_star2_O3/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 $0x3e8, %rsp            # imm = 0x3E8
movq %rsi, 0x58(%rsp)
movl %edi, 0x2c(%rsp)
xorps %xmm0, %xmm0
leaq 0x130(%rsp), %rsi
movaps %xmm0, (%rsi)
leaq 0xe77(%rip), %r15       # 0x339a
movq %r15, 0x18(%rsi)
leaq 0xe70(%rip), %r12       # 0x339e
movq %r12, 0x10(%rsi)
movl $0x1, %eax
leaq 0xac(%rsp), %rdx
movl %eax, (%rdx)
leaq 0x80(%rsp), %r8
movaps %xmm0, (%r8)
movl %eax, (%r8)
leaq 0xe5f(%rip), %r13       # 0x33b6
movq %r13, 0x18(%r8)
leaq 0xe58(%rip), %rbp       # 0x33ba
movq %rbp, 0x10(%r8)
leaq 0x4b64(%rip), %rcx      # 0x70d1
leaq 0x1b0(%rsp), %r14
movq %r14, %rdi
callq 0x2d02
leaq 0x220(%rsp), %r14
leaq 0x110(%rsp), %rsi
xorps %xmm0, %xmm0
movaps %xmm0, (%rsi)
movq %r15, 0x18(%rsi)
movq %r12, 0x10(%rsi)
leaq 0xa8(%rsp), %rdx
movl $0x1, (%rdx)
leaq 0x30(%rsp), %r8
movaps %xmm0, (%r8)
movl $0x2, (%r8)
movq %r13, 0x18(%r8)
movq %rbp, 0x10(%r8)
leaq 0x4b0e(%rip), %rcx      # 0x70d6
movq %r14, %rdi
callq 0x2d02
leaq 0x290(%rsp), %r14
leaq 0x70(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x4af3(%rip), %rsi      # 0x70db
leaq 0x4b00(%rip), %rdx      # 0x70ef
leaq 0x60(%rsp), %rdi
callq 0x38ec
leaq 0x10(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq 0x60(%rsp), %rax
cmpq %r13, %rax
je 0x261c
movq %rax, (%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x10(%rsp)
jmp 0x2625
movups (%r13), %xmm0
movups %xmm0, (%rbp)
movq 0x68(%rsp), %rax
movq %rsp, %rsi
movq %rax, 0x8(%rsi)
movq %r13, 0x60(%rsp)
movq $0x0, 0x68(%rsp)
movb $0x0, 0x70(%rsp)
leaq 0xf0(%rsp), %rdi
callq 0x33e0
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x2667
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2140
xorps %xmm0, %xmm0
movq %rsp, %rdx
movaps %xmm0, (%rdx)
leaq 0x108f(%rip), %r15      # 0x3706
movq %r15, 0x18(%rdx)
leaq 0x108c(%rip), %r12      # 0x370e
movq %r12, 0x10(%rdx)
leaq 0xf0(%rsp), %rsi
movq %r14, %rdi
callq 0x2df8
leaq 0x300(%rsp), %r14
leaq 0x170(%rsp), %rsi
movq $0x0, 0x8(%rsi)
leaq -0x289(%rip), %rax      # 0x242c
movq %rax, (%rsi)
leaq 0x1343(%rip), %rbp      # 0x3a02
movq %rbp, 0x18(%rsi)
leaq 0x133e(%rip), %rbx      # 0x3a08
movq %rbx, 0x10(%rsi)
leaq 0xd0(%rsp), %rdx
xorps %xmm0, %xmm0
movaps %xmm0, (%rdx)
movl $0x1, (%rdx)
movq %r15, 0x18(%rdx)
movq %r12, 0x10(%rdx)
movq %r14, %rdi
callq 0x2df8
leaq 0x370(%rsp), %r14
leaq 0x150(%rsp), %rsi
movq $0x0, 0x8(%rsi)
leaq -0x2bc(%rip), %rax      # 0x2455
movq %rax, (%rsi)
movq %rbp, 0x18(%rsi)
movq %rbx, 0x10(%rsi)
xorps %xmm0, %xmm0
leaq 0xb0(%rsp), %rdx
movaps %xmm0, (%rdx)
movl $0x2, (%rdx)
movq %r15, 0x18(%rdx)
movq %r12, 0x10(%rdx)
movq %r14, %rdi
callq 0x2df8
movq 0xc0(%rsp), %rax
testq %rax, %rax
je 0x275f
leaq 0xb0(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x160(%rsp), %rax
testq %rax, %rax
je 0x277e
leaq 0x150(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0xe0(%rsp), %rax
testq %rax, %rax
je 0x279d
leaq 0xd0(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x180(%rsp), %rax
testq %rax, %rax
je 0x27bc
leaq 0x170(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x27d3
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x100(%rsp), %rax
testq %rax, %rax
je 0x27f2
leaq 0xf0(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x60(%rsp), %rdi
cmpq %r13, %rdi
je 0x2809
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x2140
movq 0x40(%rsp), %rax
testq %rax, %rax
movq 0x58(%rsp), %rbx
je 0x2827
leaq 0x30(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x120(%rsp), %rax
testq %rax, %rax
je 0x2846
leaq 0x110(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x90(%rsp), %rax
testq %rax, %rax
je 0x2865
leaq 0x80(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x140(%rsp), %rax
testq %rax, %rax
je 0x2884
leaq 0x130(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0x8(%rbx), %rcx
xorps %xmm0, %xmm0
movq %rsp, %r8
movaps %xmm0, (%r8)
movq $0x0, 0x10(%r8)
leaq 0x190(%rsp), %rdi
leaq 0x1b0(%rsp), %rsi
leaq 0x2c(%rsp), %rdx
callq 0x2f1b
cmpb $0x1, 0x190(%rsp)
jne 0x28cb
leaq 0x198(%rsp), %rdi
callq 0x31fe
movb $0x0, 0x190(%rsp)
movq %rsp, %rdi
callq 0x31fe
movl $0x230, %r14d           # imm = 0x230
leaq (%rsp,%r14), %rdi
addq $0x190, %rdi            # imm = 0x190
callq 0x3734
leaq (%rsp,%r14), %rdi
addq $0x178, %rdi            # imm = 0x178
callq 0x3764
leaq (%rsp,%r14), %rbx
addq $0x160, %rbx            # imm = 0x160
movq %rbx, %rdi
callq 0x3794
movq -0x10(%rbx), %rax
testq %rax, %rax
je 0x2932
leaq (%rsp,%r14), %rdi
addq $0x140, %rdi            # imm = 0x140
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
addq $-0x70, %r14
jne 0x28e1
xorl %eax, %eax
addq $0x3e8, %rsp            # imm = 0x3E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2cf9
jmp 0x2cf9
jmp 0x2cf9
jmp 0x2cf9
jmp 0x2cf9
jmp 0x2cf9
jmp 0x2cf9
jmp 0x2cf9
jmp 0x2cf9
jmp 0x2cf9
movq %rdx, %r12
movq %rax, %r15
movq %rsp, %rdi
callq 0x31fe
movl $0x1c0, %ebx            # imm = 0x1C0
leaq (%rsp,%rbx), %rdi
addq $0x1b0, %rdi            # imm = 0x1B0
callq 0x50dc
addq $-0x70, %rbx
cmpq $-0x70, %rbx
jne 0x2991
jmp 0x2b7b
movq %rdx, %r12
movq %rax, %r15
movq 0xc0(%rsp), %rax
testq %rax, %rax
je 0x29d5
leaq 0xb0(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x160(%rsp), %rax
testq %rax, %rax
je 0x2a06
leaq 0x150(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x2a06
jmp 0x2cf9
jmp 0x2cf9
movq %rdx, %r12
movq %rax, %r15
movq 0xe0(%rsp), %rax
testq %rax, %rax
je 0x2a25
leaq 0xd0(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x180(%rsp), %rax
testq %rax, %rax
je 0x2a56
leaq 0x170(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x2a56
jmp 0x2cf9
jmp 0x2cf9
movq %rdx, %r12
movq %rax, %r15
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x2a6d
movq %rsp, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x100(%rsp), %rax
testq %rax, %rax
je 0x2ab4
leaq 0xf0(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x2ab4
jmp 0x2cf9
jmp 0x2cf9
movq %rdx, %r12
movq %rax, %r15
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x2ab4
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2140
movq 0x60(%rsp), %rdi
cmpq %r13, %rdi
je 0x2ad5
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x2140
jmp 0x2ad5
jmp 0x2acf
movq %rdx, %r12
movq %rax, %r15
movq 0x40(%rsp), %rax
testq %rax, %rax
je 0x2aee
leaq 0x30(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x120(%rsp), %rax
testq %rax, %rax
je 0x2b1f
leaq 0x110(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x2b1f
jmp 0x2cf9
jmp 0x2cf9
movq %rdx, %r12
movq %rax, %r15
movq 0x90(%rsp), %rax
testq %rax, %rax
je 0x2b3e
leaq 0x80(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x140(%rsp), %rax
testq %rax, %rax
je 0x2b5d
leaq 0x130(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0x1b0(%rsp), %rbx
cmpq %r14, %rbx
je 0x2b7b
addq $-0x70, %r14
movq %r14, %rdi
callq 0x50dc
cmpq %rbx, %r14
jne 0x2b6a
cmpl $0x1, %r12d
jne 0x2cef
movq %r15, %rdi
callq 0x2080
movq %rax, %r14
movq 0x58(%rsp), %rax
movq (%rax), %rbx
movq 0x8589(%rip), %rsi      # 0xb128
leaq 0x1b0(%rsp), %rdi
leaq 0xd0(%rsp), %rdx
callq 0x2dba
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
leaq 0x80(%rsp), %rdi
leaq 0xb0(%rsp), %rdx
movq %rax, %rsi
callq 0x2dba
leaq 0x40(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x450b(%rip), %rsi      # 0x70f0
leaq 0x450b(%rip), %rdx      # 0x70f7
leaq 0x30(%rsp), %rdi
callq 0x38ec
leaq 0x1b0(%rsp), %rsi
leaq 0x80(%rsp), %rdx
leaq 0x30(%rsp), %rcx
movq %rbx, %rdi
callq 0x325c
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x2c2a
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2140
leaq 0x90(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2c4b
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x2140
leaq 0x1c0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2c6c
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x2140
callq 0x21d0
movl $0x1, %eax
jmp 0x293a
jmp 0x2cf9
jmp 0x2cf9
movq %rax, %r15
movq 0x30(%rsp), %rdi
cmpq %r14, %rdi
je 0x2c9e
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2140
jmp 0x2c9e
movq %rax, %r15
leaq 0x90(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2cc4
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x2140
jmp 0x2cc4
movq %rax, %r15
leaq 0x1c0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2cea
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x2140
jmp 0x2cea
movq %rax, %r15
callq 0x21d0
movq %r15, %rdi
callq 0x2200
jmp 0x2cf9
movq %rax, %rdi
callq 0x338e
nop