// File: /workspace/github_cpp_makefile_star2_O3/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 0x4be9(%rip), %rax      # 0x718c
movq %rax, 0x40(%rsp)
leaq 0x4be2(%rip), %rax      # 0x7191
movq %rax, 0x48(%rsp)
leaq 0x4bdb(%rip), %rax      # 0x7196
movq %rax, 0x50(%rsp)
leaq 0x4bd4(%rip), %rax      # 0x719b
movq %rax, 0x58(%rsp)
movq (%rsi), %rax
leaq 0xe0(%rsp), %rsi
movq $0x0, 0x8(%rsi)
movq %rax, (%rsi)
leaq 0x5e9(%rip), %rax       # 0x2bd2
movq %rax, 0x18(%rsi)
leaq 0x6a8(%rip), %rax       # 0x2c9c
movq %rax, 0x10(%rsi)
leaq 0x140(%rsp), %r12
leaq 0x4b99(%rip), %rdx      # 0x71a0
leaq 0x4b95(%rip), %rcx      # 0x71a3
movq %r12, %rdi
callq 0x2cc2
leaq 0x1b0(%rsp), %r12
leaq 0x88(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x35a6
leaq -0x18b(%rip), %rsi      # 0x24ac
leaq 0x68(%rsp), %rdi
leaq 0x88(%rsp), %rdx
callq 0x2dc3
leaq 0x10(%rsp), %rcx
movl $0x40, (%rcx)
leaq 0x4b4f(%rip), %rdx      # 0x71aa
leaq 0x68(%rsp), %rsi
movq %r12, %rdi
callq 0x2e78
leaq 0x220(%rsp), %r12
leaq 0xc0(%rsp), %rsi
movq $0x0, 0x8(%rsi)
leaq -0x161(%rip), %rax      # 0x2526
movq %rax, (%rsi)
leaq 0x1973(%rip), %rax      # 0x4004
movq %rax, 0x18(%rsi)
leaq 0x19a2(%rip), %rax      # 0x403e
movq %rax, 0x10(%rsi)
leaq 0xc(%rsp), %rcx
movl $0x40, (%rcx)
leaq 0x4af8(%rip), %rdx      # 0x71aa
movq %r12, %rdi
callq 0x2e78
leaq 0x290(%rsp), %r12
leaq 0xa0(%rsp), %rsi
movq $0x0, 0x8(%rsi)
leaq -0x16d(%rip), %rax      # 0x256c
movq %rax, (%rsi)
leaq 0x1ac1(%rip), %rax      # 0x41a4
movq %rax, 0x18(%rsi)
leaq 0x1abe(%rip), %rax      # 0x41ac
movq %rax, 0x10(%rsi)
leaq 0x38(%rsp), %rcx
movl $0x1, (%rcx)
leaq 0x4aa6(%rip), %rdx      # 0x71aa
movq %r12, %rdi
callq 0x2e78
movq 0xb0(%rsp), %rax
testq %rax, %rax
je 0x272b
leaq 0xa0(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0xd0(%rsp), %rax
testq %rax, %rax
je 0x274a
leaq 0xc0(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0x78(%rsp), %rax
testq %rax, %rax
je 0x2763
leaq 0x68(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0x88(%rsp), %rdi
callq 0x35e0
movq 0xf0(%rsp), %rax
testq %rax, %rax
je 0x278f
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 0x2f81
cmpb $0x1, 0x120(%rsp)
jne 0x27db
leaq 0x128(%rsp), %rdi
callq 0x3264
movb $0x0, 0x120(%rsp)
leaq 0x10(%rsp), %rdi
callq 0x3264
cmpq $0x0, (%r14)
jne 0x2864
movl $0x1c0, %r14d           # imm = 0x1C0
leaq (%rsp,%r14), %rdi
addq $0x120, %rdi            # imm = 0x120
callq 0x39a6
leaq (%rsp,%r14), %rdi
addq $0x108, %rdi            # imm = 0x108
callq 0x39d6
leaq (%rsp,%r14), %rbx
addq $0xf0, %rbx
movq %rbx, %rdi
callq 0x3a06
movq -0x10(%rbx), %rax
testq %rax, %rax
je 0x284a
leaq (%rsp,%r14), %rdi
addq $0xd0, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
addq $-0x70, %r14
jne 0x27f9
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 0x492c(%rip), %rsi      # 0x71ad
leaq 0x493a(%rip), %rdx      # 0x71c2
leaq 0x10(%rsp), %rdi
callq 0x3c30
movq (%r14), %rsi
leaq 0x100(%rsp), %rdi
leaq 0xc(%rsp), %rdx
callq 0x32c2
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
leaq 0x100(%rsp), %rdx
movq %r12, %rdi
callq 0x3300
xorl %ebp, %ebp
leaq 0x83a0(%rip), %rsi      # 0xac68
leaq 0x234b(%rip), %rdx      # 0x4c1a
movq %r12, %rdi
callq 0x2250
movq %rdx, %r15
movq %rax, %r14
leaq 0x110(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x28fe
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x2170
movq 0x10(%rsp), %rdi
cmpq %r13, %rdi
je 0x2915
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2170
testb %bpl, %bpl
jne 0x2941
jmp 0x296f
movq %rdx, %r15
movq %rax, %r14
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
movq %r12, %rdi
callq 0x2110
jmp 0x296f
jmp 0x2bc9
jmp 0x2bc9
jmp 0x2bc9
jmp 0x2bc9
movq %rdx, %r15
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x3264
movl $0x150, %r12d           # imm = 0x150
leaq (%rsp,%r12), %rdi
addq $0x140, %rdi            # imm = 0x140
callq 0x5310
addq $-0x70, %r12
cmpq $-0x70, %r12
jne 0x2975
jmp 0x2a6a
movq %rdx, %r15
movq %rax, %r14
movq 0xb0(%rsp), %rax
testq %rax, %rax
je 0x29c6
leaq 0xa0(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x29c6
jmp 0x2bc9
movq %rdx, %r15
movq %rax, %r14
movq 0xd0(%rsp), %rax
testq %rax, %rax
je 0x29f2
leaq 0xc0(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x29f2
jmp 0x2bc9
movq %rdx, %r15
movq %rax, %r14
movq 0x78(%rsp), %rax
testq %rax, %rax
je 0x2a18
leaq 0x68(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x2a18
jmp 0x2bc9
movq %rdx, %r15
movq %rax, %r14
leaq 0x88(%rsp), %rdi
callq 0x35e0
jmp 0x2a2d
movq %rdx, %r15
movq %rax, %r14
movq 0xf0(%rsp), %rax
testq %rax, %rax
je 0x2a4c
leaq 0xe0(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0x140(%rsp), %r13
cmpq %r12, %r13
je 0x2a6a
addq $-0x70, %r12
movq %r12, %rdi
callq 0x5310
cmpq %r13, %r12
jne 0x2a59
cmpl $0x1, %r15d
jne 0x2bbf
movq %r14, %rdi
callq 0x2090
movq %rax, %r14
movq (%rbx), %rbx
movq 0x86d7(%rip), %rsi      # 0xb160
leaq 0x140(%rsp), %rdi
leaq 0xc(%rsp), %rdx
callq 0x32c2
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
leaq 0x40(%rsp), %rdi
leaq 0x38(%rsp), %rdx
movq %rax, %rsi
callq 0x32c2
leaq 0x20(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x46fd(%rip), %rsi      # 0x71c3
leaq 0x46fd(%rip), %rdx      # 0x71ca
leaq 0x10(%rsp), %rdi
callq 0x3c30
leaq 0x140(%rsp), %rsi
leaq 0x40(%rsp), %rdx
leaq 0x10(%rsp), %rcx
movq %rbx, %rdi
callq 0x3469
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x2b08
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2170
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2b23
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x2170
leaq 0x150(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2b44
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x2170
callq 0x2220
movl $0x1, %eax
jmp 0x2852
jmp 0x2bc9
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x2b74
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2170
jmp 0x2b74
movq %rax, %r14
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2b94
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x2170
jmp 0x2b94
movq %rax, %r14
leaq 0x150(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2bba
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x2170
jmp 0x2bba
movq %rax, %r14
callq 0x2220
movq %r14, %rdi
callq 0x2270
jmp 0x2bc9
movq %rax, %rdi
callq 0x359b
nop