// File: /workspace/github_cpp_makefile_star2_O2/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 $0x2f8, %rsp            # imm = 0x2F8
movq %rsi, %rbx
movl %edi, 0xc(%rsp)
leaq 0x3cfc(%rip), %rax      # 0x617c
movq %rax, 0x30(%rsp)
leaq 0x3cf5(%rip), %rax      # 0x6181
movq %rax, 0x38(%rsp)
leaq 0x3cee(%rip), %rax      # 0x6186
movq %rax, 0x40(%rsp)
leaq 0x3ce7(%rip), %rax      # 0x618b
movq %rax, 0x48(%rsp)
movq (%rsi), %rax
leaq 0xf0(%rsp), %rsi
andq $0x0, 0x8(%rsi)
movq %rax, (%rsi)
leaq 0x41d(%rip), %rax       # 0x28e0
movq %rax, 0x18(%rsi)
leaq 0x498(%rip), %rax       # 0x2966
movq %rax, 0x10(%rsi)
leaq 0x130(%rsp), %r15
leaq 0x3caf(%rip), %rdx      # 0x6190
leaq 0x3cab(%rip), %rcx      # 0x6193
movq %r15, %rdi
callq 0x298c
leaq 0x1a0(%rsp), %r15
leaq 0x58(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x2f2c
leaq -0x122(%rip), %rsi      # 0x23ec
leaq 0x70(%rsp), %rdi
leaq 0x58(%rsp), %rdx
callq 0x2a2a
leaq 0x10(%rsp), %rcx
movl $0x40, (%rcx)
leaq 0x3c6b(%rip), %rdx      # 0x619a
leaq 0x70(%rsp), %rsi
movq %r15, %rdi
callq 0x2a86
leaq 0x210(%rsp), %r15
leaq 0xd0(%rsp), %rsi
andq $0x0, 0x8(%rsi)
leaq -0x13a(%rip), %rax      # 0x241e
movq %rax, (%rsi)
leaq 0x141c(%rip), %rax      # 0x397e
movq %rax, 0x18(%rsi)
leaq 0x1417(%rip), %rax      # 0x3984
movq %rax, 0x10(%rsi)
leaq 0x8(%rsp), %rcx
movl $0x40, (%rcx)
leaq 0x3c17(%rip), %rdx      # 0x619a
movq %r15, %rdi
callq 0x2a86
leaq 0x280(%rsp), %r15
leaq 0xb0(%rsp), %rsi
andq $0x0, 0x8(%rsi)
leaq -0x159(%rip), %rax      # 0x244e
movq %rax, (%rsi)
leaq 0x1547(%rip), %rax      # 0x3af8
movq %rax, 0x18(%rsi)
leaq 0x1544(%rip), %rax      # 0x3b00
movq %rax, 0x10(%rsi)
leaq 0x4(%rsp), %rcx
movl $0x1, (%rcx)
leaq 0x3bc8(%rip), %rdx      # 0x619a
movq %r15, %rdi
callq 0x2a86
leaq 0xb0(%rsp), %rdi
callq 0x33dc
leaq 0xd0(%rsp), %rdi
callq 0x33dc
leaq 0x70(%rsp), %rdi
callq 0x33dc
leaq 0x58(%rsp), %rdi
callq 0x2f62
leaq 0xf0(%rsp), %rdi
callq 0x33dc
leaq 0x8(%rbx), %r14
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r8
movaps %xmm0, (%r8)
andq $0x0, 0x10(%r8)
leaq 0x110(%rsp), %rdi
leaq 0x130(%rsp), %rsi
leaq 0xc(%rsp), %rdx
movq %r14, %rcx
callq 0x2b24
leaq 0x110(%rsp), %rdi
callq 0x35cc
leaq 0x10(%rsp), %rdi
callq 0x2d86
cmpq $0x0, (%r14)
jne 0x2697
movl $0x150, %ebx            # imm = 0x150
leaq (%rsp,%rbx), %rdi
addq $0x130, %rdi            # imm = 0x130
callq 0x4a7c
addq $-0x70, %rbx
cmpq $-0x70, %rbx
jne 0x2669
xorl %eax, %eax
addq $0x2f8, %rsp            # imm = 0x2F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x30
popq %rdi
callq 0x20c0
movq %rax, %r15
leaq 0x3af4(%rip), %rsi      # 0x619d
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x2da8
movq (%r14), %rsi
leaq 0x90(%rsp), %rdi
leaq 0x4(%rsp), %rdx
callq 0x2da8
movb $0x1, %bpl
leaq 0x10(%rsp), %rsi
leaq 0x90(%rsp), %rdx
movq %r15, %rdi
callq 0x2de4
xorl %ebp, %ebp
leaq 0x8582(%rip), %rsi      # 0xac70
leaq 0x1cd1(%rip), %rdx      # 0x43c6
movq %r15, %rdi
callq 0x2250
movq %rdx, %r12
movq %rax, %r14
leaq 0x90(%rsp), %rdi
callq 0x2090
jmp 0x271b
movq %rdx, %r12
movq %rax, %r14
movb $0x1, %bpl
leaq 0x10(%rsp), %rdi
callq 0x2090
testb %bpl, %bpl
jne 0x2732
jmp 0x274c
movq %rdx, %r12
movq %rax, %r14
movq %r15, %rdi
callq 0x2110
jmp 0x274c
movq %rdx, %r12
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x2d86
movl $0x150, %r15d           # imm = 0x150
leaq (%rsp,%r15), %rdi
addq $0x130, %rdi            # imm = 0x130
callq 0x4a7c
addq $-0x70, %r15
cmpq $-0x70, %r15
jne 0x2752
jmp 0x27ed
movq %rdx, %r12
movq %rax, %r14
leaq 0xb0(%rsp), %rdi
callq 0x33dc
jmp 0x2789
movq %rdx, %r12
movq %rax, %r14
leaq 0xd0(%rsp), %rdi
callq 0x33dc
jmp 0x279e
movq %rdx, %r12
movq %rax, %r14
leaq 0x70(%rsp), %rdi
callq 0x33dc
jmp 0x27b0
movq %rdx, %r12
movq %rax, %r14
leaq 0x58(%rsp), %rdi
callq 0x2f62
jmp 0x27c2
movq %rdx, %r12
movq %rax, %r14
leaq 0xf0(%rsp), %rdi
callq 0x33dc
leaq 0x130(%rsp), %r13
cmpq %r15, %r13
je 0x27ed
addq $-0x70, %r15
movq %r15, %rdi
callq 0x4a7c
cmpq %r13, %r15
jne 0x27dc
cmpl $0x1, %r12d
jne 0x28cf
movq %r14, %rdi
callq 0x2070
movq %rax, %r14
movq (%rbx), %rbx
movq 0x8964(%rip), %rsi      # 0xb170
leaq 0x130(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x2da8
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
leaq 0x30(%rsp), %rdi
leaq 0x4(%rsp), %rdx
movq %rax, %rsi
callq 0x2da8
leaq 0x3973(%rip), %rsi      # 0x61b3
leaq 0x10(%rsp), %rdi
leaq 0x3(%rsp), %rdx
callq 0x2da8
leaq 0x130(%rsp), %rsi
leaq 0x30(%rsp), %rdx
leaq 0x10(%rsp), %rcx
movq %rbx, %rdi
callq 0x2e77
leaq 0x10(%rsp), %rdi
callq 0x2090
leaq 0x30(%rsp), %rdi
callq 0x2090
leaq 0x130(%rsp), %rdi
callq 0x2090
callq 0x2230
pushq $0x1
popq %rax
jmp 0x2685
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x2090
jmp 0x28a9
movq %rax, %r14
leaq 0x30(%rsp), %rdi
callq 0x2090
jmp 0x28b8
movq %rax, %r14
leaq 0x130(%rsp), %rdi
callq 0x2090
jmp 0x28ca
movq %rax, %r14
callq 0x2230
movq %r14, %rdi
callq 0x2270
movq %rax, %rdi
callq 0x2f21
nop