// File: /workspace/github_cpp_makefile_star2_O1/halfflat[P]tinyopt/ex/ex2-run.cc
// Function: main
int main(int argc, char** argv) {
    try {
        std::vector<int> x;
        auto help = [argv0 = argv[0]] { to::usage(argv0, usage_str); };

        to::option opts[] = {
            { {x, to::delimited<int>()}, "--sum" },
            { to::action(help), to::flag, to::exit, "-h", "--help" }
        };

        if (!to::run(opts, argc, argv+1)) return 0;
        if (argv[1]) throw to::option_error("unrecognized argument", argv[1]);

        std::cout << std::accumulate(x.begin(), x.end(), 0) << "\n";
    }
    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 $0x1b8, %rsp            # imm = 0x1B8
movq %rsi, %rbx
movl %edi, 0x2c(%rsp)
xorps %xmm0, %xmm0
leaq 0x30(%rsp), %rax
movaps %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq (%rsi), %r14
leaq 0x90(%rsp), %rsi
movaps %xmm0, (%rsi)
movaps %xmm0, 0x10(%rsi)
movq %rax, (%rsi)
movb $0x2c, 0x8(%rsi)
leaq 0x119b(%rip), %rax      # 0x36c2
movq %rax, 0x18(%rsi)
leaq 0x1196(%rip), %rax      # 0x36c8
movq %rax, 0x10(%rsi)
leaq 0x4b3d(%rip), %rdx      # 0x707a
leaq 0xd0(%rsp), %r12
movq %r12, %rdi
callq 0x2b06
leaq 0x140(%rsp), %r12
leaq 0x70(%rsp), %rsi
xorps %xmm0, %xmm0
movaps %xmm0, (%rsi)
movaps %xmm0, 0x10(%rsi)
movq %r14, (%rsi)
leaq 0x4a8(%rip), %rax       # 0x2a16
movq %rax, 0x18(%rsi)
leaq 0x567(%rip), %rax       # 0x2ae0
movq %rax, 0x10(%rsi)
leaq 0x8(%rsp), %rdx
movl $0x1, (%rdx)
leaq 0x50(%rsp), %rcx
movl $0x10, (%rcx)
leaq 0x4ae6(%rip), %r8       # 0x7080
leaq 0x4ae2(%rip), %r9       # 0x7083
movq %r12, %rdi
callq 0x2c02
movq 0x80(%rsp), %rax
testq %rax, %rax
je 0x25c5
leaq 0x70(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq 0xa0(%rsp), %rax
testq %rax, %rax
je 0x25e4
leaq 0x90(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0x8(%rbx), %r14
xorps %xmm0, %xmm0
leaq 0x50(%rsp), %r8
movaps %xmm0, (%r8)
movq $0x0, 0x10(%r8)
leaq 0x8(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
leaq 0x2c(%rsp), %rdx
movq %r14, %rcx
callq 0x2cbc
cmpb $0x1, 0x8(%rsp)
jne 0x265c
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0x2fba
movb $0x0, -0x8(%r15)
leaq 0x50(%rsp), %rdi
callq 0x2fba
cmpq $0x0, (%r14)
jne 0x2712
movq 0x30(%rsp), %rax
movq 0x38(%rsp), %rcx
xorl %esi, %esi
cmpq %rcx, %rax
je 0x266d
addl (%rax), %esi
addq $0x4, %rax
jmp 0x264f
movb $0x0, 0x8(%rsp)
leaq 0x50(%rsp), %rdi
callq 0x2fba
jmp 0x268d
movq 0x895c(%rip), %rdi      # 0xafd0
callq 0x2270
leaq 0x49f8(%rip), %rsi      # 0x7078
movl $0x1, %edx
movq %rax, %rdi
callq 0x21b0
movl $0xe0, %r14d
leaq (%rsp,%r14), %rdi
addq $0xb0, %rdi
callq 0x32fa
leaq (%rsp,%r14), %rdi
addq $0x98, %rdi
callq 0x332a
leaq (%rsp,%r14), %rbx
addq $0x80, %rbx
movq %rbx, %rdi
callq 0x335a
movq -0x10(%rbx), %rax
testq %rax, %rax
je 0x26e1
leaq (%rsp,%r14), %rdi
addq $0x60, %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
addq $-0x70, %r14
jne 0x2693
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x26fe
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
xorl %eax, %eax
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x30, %edi
callq 0x20c0
movq %rax, %r12
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x495b(%rip), %rsi      # 0x708a
leaq 0x4969(%rip), %rdx      # 0x709f
leaq 0x8(%rsp), %rdi
callq 0x357c
movq (%r14), %rsi
leaq 0xb0(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0x3016
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
leaq 0xb0(%rsp), %rdx
movq %r12, %rdi
callq 0x3054
xorl %ebp, %ebp
leaq 0x8512(%rip), %rsi      # 0xac88
leaq 0x2143(%rip), %rdx      # 0x48c0
movq %r12, %rdi
callq 0x2260
movq %rdx, %r15
movq %rax, %r14
leaq 0xc0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x27b7
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x2180
jmp 0x27b7
movq %rdx, %r15
movq %rax, %r14
movb $0x1, %bpl
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x27d9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2180
jmp 0x27d9
movq %rdx, %r15
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x280a
movq %r12, %rdi
callq 0x2120
jmp 0x280a
jmp 0x2a0e
jmp 0x2a0e
movq %rdx, %r15
movq %rax, %r14
jmp 0x280a
movq %rdx, %r15
movq %rax, %r14
leaq 0x50(%rsp), %rdi
callq 0x2fba
movl $0x70, %r12d
leaq (%rsp,%r12), %rdi
addq $0xd0, %rdi
callq 0x4fce
addq $-0x70, %r12
cmpq $-0x70, %r12
jne 0x2810
jmp 0x2898
movq %rdx, %r15
movq %rax, %r14
movq 0x80(%rsp), %rax
testq %rax, %rax
je 0x285b
leaq 0x70(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x285b
jmp 0x2a0e
movq %rdx, %r15
movq %rax, %r14
movq 0xa0(%rsp), %rax
testq %rax, %rax
je 0x287a
leaq 0x90(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0xd0(%rsp), %r13
cmpq %r12, %r13
je 0x2898
addq $-0x70, %r12
movq %r12, %rdi
callq 0x4fce
cmpq %r13, %r12
jne 0x2887
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x28af
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x2180
cmpl $0x1, %r15d
jne 0x2a04
movq %r14, %rdi
callq 0x2090
movq %rax, %r14
movq (%rbx), %rbx
movq 0x889a(%rip), %rsi      # 0xb168
leaq 0xd0(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0x3016
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
movq %rax, %rsi
callq 0x3016
leaq 0x40(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x4795(%rip), %rsi      # 0x70a0
leaq 0x4795(%rip), %rdx      # 0x70a7
leaq 0x30(%rsp), %rdi
callq 0x357c
leaq 0xd0(%rsp), %rsi
leaq 0x8(%rsp), %rdx
leaq 0x30(%rsp), %rcx
movq %rbx, %rdi
callq 0x31bd
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0x294d
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2180
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2968
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2180
leaq 0xe0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2989
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x2180
callq 0x2230
movl $0x1, %eax
jmp 0x2700
jmp 0x2a0e
movq %rax, %r14
movq 0x30(%rsp), %rdi
cmpq %r15, %rdi
je 0x29b9
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x2180
jmp 0x29b9
movq %rax, %r14
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x29d9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2180
jmp 0x29d9
movq %rax, %r14
leaq 0xe0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x29ff
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x2180
jmp 0x29ff
movq %rax, %r14
callq 0x2230
movq %r14, %rdi
callq 0x2280
jmp 0x2a0e
movq %rax, %rdi
callq 0x32ef