// File: /workspace/github_cpp_makefile_star2_O1/halfflat[P]tinyopt/ex/ex6-run.cc
// Function: main
int main(int argc, char** argv) {
    try {
        std::pair<const char*, const char*> kw_tbl[] = {
            { "fish", "FISH" }, { "cake", "CAKE" }
        };

        auto help = [argv0 = argv[0]] { to::usage(argv0, usage_str); };

        to::option opts[] = {
            { to::action(help), "-h", "--help" },
            { to::action(print_kw, to::keywords(kw_tbl)), "-n", to::lax },
            { to::action(print_int, to::default_parser<int>{}), "-n", to::lax },
            { to::action(print_flag), "-n", to::flag },
        };

        to::run(opts, argc, argv+1);
        if (argv[1]) throw to::option_error("unrecognized argument", 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 $0x308, %rsp            # imm = 0x308
movq %rsi, %rbx
movl %edi, 0x3c(%rsp)
leaq 0x4bb9(%rip), %rax      # 0x716c
movq %rax, 0x40(%rsp)
leaq 0x4bb2(%rip), %rax      # 0x7171
movq %rax, 0x48(%rsp)
leaq 0x4bab(%rip), %rax      # 0x7176
movq %rax, 0x50(%rsp)
leaq 0x4ba4(%rip), %rax      # 0x717b
movq %rax, 0x58(%rsp)
movq (%rsi), %rax
xorps %xmm0, %xmm0
leaq 0xe0(%rsp), %rsi
movaps %xmm0, (%rsi)
movaps %xmm0, 0x10(%rsi)
movq %rax, (%rsi)
leaq 0x5db(%rip), %rax       # 0x2bd6
movq %rax, 0x18(%rsi)
leaq 0x69a(%rip), %rax       # 0x2ca0
movq %rax, 0x10(%rsi)
leaq 0x140(%rsp), %r12
leaq 0x4b67(%rip), %rdx      # 0x7180
leaq 0x4b63(%rip), %rcx      # 0x7183
movq %r12, %rdi
callq 0x2cc6
leaq 0x1b0(%rsp), %r12
leaq 0x88(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x35c6
leaq -0x18d(%rip), %rsi      # 0x24bc
leaq 0x68(%rsp), %rdi
leaq 0x88(%rsp), %rdx
callq 0x2dc7
leaq 0x10(%rsp), %rcx
movl $0x40, (%rcx)
leaq 0x4b1d(%rip), %rdx      # 0x718a
leaq 0x68(%rsp), %rsi
movq %r12, %rdi
callq 0x2e80
leaq 0x220(%rsp), %r12
xorps %xmm0, %xmm0
leaq 0xc0(%rsp), %rsi
movaps %xmm0, (%rsi)
movaps %xmm0, 0x10(%rsi)
leaq -0x165(%rip), %rax      # 0x2536
movq %rax, (%rsi)
leaq 0x198b(%rip), %rax      # 0x4030
movq %rax, 0x18(%rsi)
leaq 0x1986(%rip), %rax      # 0x4036
movq %rax, 0x10(%rsi)
leaq 0xc(%rsp), %rcx
movl $0x40, (%rcx)
leaq 0x4ac4(%rip), %rdx      # 0x718a
movq %r12, %rdi
callq 0x2e80
leaq 0x290(%rsp), %r12
leaq 0xa0(%rsp), %rsi
xorps %xmm0, %xmm0
movaps %xmm0, (%rsi)
movaps %xmm0, 0x10(%rsi)
leaq -0x173(%rip), %rax      # 0x257c
movq %rax, (%rsi)
leaq 0x1ae5(%rip), %rax      # 0x41de
movq %rax, 0x18(%rsi)
leaq 0x1ae2(%rip), %rax      # 0x41e6
movq %rax, 0x10(%rsi)
leaq 0x38(%rsp), %rcx
movl $0x1, (%rcx)
leaq 0x4a70(%rip), %rdx      # 0x718a
movq %r12, %rdi
callq 0x2e80
movq 0xb0(%rsp), %rax
testq %rax, %rax
je 0x2741
leaq 0xa0(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0xd0(%rsp), %rax
testq %rax, %rax
je 0x2760
leaq 0xc0(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x78(%rsp), %rax
testq %rax, %rax
je 0x2779
leaq 0x68(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0x88(%rsp), %rdi
callq 0x3600
movq 0xf0(%rsp), %rax
testq %rax, %rax
je 0x27a5
leaq 0xe0(%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 0x120(%rsp), %rdi
leaq 0x140(%rsp), %rsi
leaq 0x3c(%rsp), %rdx
movq %r14, %rcx
callq 0x2f89
cmpb $0x1, 0x120(%rsp)
jne 0x27f1
leaq 0x128(%rsp), %rdi
callq 0x3286
movb $0x0, 0x120(%rsp)
leaq 0x10(%rsp), %rdi
callq 0x3286
cmpq $0x0, (%r14)
jne 0x287a
movl $0x1c0, %r14d           # imm = 0x1C0
leaq (%rsp,%r14), %rdi
addq $0x120, %rdi            # imm = 0x120
callq 0x39be
leaq (%rsp,%r14), %rdi
addq $0x108, %rdi            # imm = 0x108
callq 0x39ee
leaq (%rsp,%r14), %rbx
addq $0xf0, %rbx
movq %rbx, %rdi
callq 0x3a1e
movq -0x10(%rbx), %rax
testq %rax, %rax
je 0x2860
leaq (%rsp,%r14), %rdi
addq $0xd0, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
addq $-0x70, %r14
jne 0x280f
xorl %eax, %eax
addq $0x308, %rsp            # imm = 0x308
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x30, %edi
callq 0x20c0
movq %rax, %r12
leaq 0x20(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x48f6(%rip), %rsi      # 0x718d
leaq 0x4904(%rip), %rdx      # 0x71a2
leaq 0x10(%rsp), %rdi
callq 0x3c40
movq (%r14), %rsi
leaq 0x100(%rsp), %rdi
leaq 0xc(%rsp), %rdx
callq 0x32e2
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
leaq 0x100(%rsp), %rdx
movq %r12, %rdi
callq 0x3320
xorl %ebp, %ebp
leaq 0x838a(%rip), %rsi      # 0xac68
leaq 0x23d5(%rip), %rdx      # 0x4cba
movq %r12, %rdi
callq 0x2260
movq %rdx, %r15
movq %rax, %r14
leaq 0x110(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x291f
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x2170
jmp 0x291f
movq %rdx, %r15
movq %rax, %r14
movb $0x1, %bpl
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0x2941
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2170
jmp 0x2941
movq %rdx, %r15
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x2974
movq %r12, %rdi
callq 0x2110
jmp 0x2974
jmp 0x2bce
jmp 0x2bce
jmp 0x2bce
jmp 0x2bce
movq %rdx, %r15
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x3286
movl $0x150, %r12d           # imm = 0x150
leaq (%rsp,%r12), %rdi
addq $0x140, %rdi            # imm = 0x140
callq 0x53c8
addq $-0x70, %r12
cmpq $-0x70, %r12
jne 0x297a
jmp 0x2a6f
movq %rdx, %r15
movq %rax, %r14
movq 0xb0(%rsp), %rax
testq %rax, %rax
je 0x29cb
leaq 0xa0(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x29cb
jmp 0x2bce
movq %rdx, %r15
movq %rax, %r14
movq 0xd0(%rsp), %rax
testq %rax, %rax
je 0x29f7
leaq 0xc0(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x29f7
jmp 0x2bce
movq %rdx, %r15
movq %rax, %r14
movq 0x78(%rsp), %rax
testq %rax, %rax
je 0x2a1d
leaq 0x68(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x2a1d
jmp 0x2bce
movq %rdx, %r15
movq %rax, %r14
leaq 0x88(%rsp), %rdi
callq 0x3600
jmp 0x2a32
movq %rdx, %r15
movq %rax, %r14
movq 0xf0(%rsp), %rax
testq %rax, %rax
je 0x2a51
leaq 0xe0(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0x140(%rsp), %r13
cmpq %r12, %r13
je 0x2a6f
addq $-0x70, %r12
movq %r12, %rdi
callq 0x53c8
cmpq %r13, %r12
jne 0x2a5e
cmpl $0x1, %r15d
jne 0x2bc4
movq %r14, %rdi
callq 0x2090
movq %rax, %r14
movq (%rbx), %rbx
movq 0x86da(%rip), %rsi      # 0xb168
leaq 0x140(%rsp), %rdi
leaq 0xc(%rsp), %rdx
callq 0x32e2
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
leaq 0x40(%rsp), %rdi
leaq 0x38(%rsp), %rdx
movq %rax, %rsi
callq 0x32e2
leaq 0x20(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x46d8(%rip), %rsi      # 0x71a3
leaq 0x46d8(%rip), %rdx      # 0x71aa
leaq 0x10(%rsp), %rdi
callq 0x3c40
leaq 0x140(%rsp), %rsi
leaq 0x40(%rsp), %rdx
leaq 0x10(%rsp), %rcx
movq %rbx, %rdi
callq 0x3489
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x2b0d
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2170
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2b28
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x2170
leaq 0x150(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2b49
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x2170
callq 0x2230
movl $0x1, %eax
jmp 0x2868
jmp 0x2bce
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x2b79
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2170
jmp 0x2b79
movq %rax, %r14
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2b99
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x2170
jmp 0x2b99
movq %rax, %r14
leaq 0x150(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2bbf
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x2170
jmp 0x2bbf
movq %rax, %r14
callq 0x2230
movq %r14, %rdi
callq 0x2280
jmp 0x2bce
movq %rax, %rdi
callq 0x35bb