// File: /workspace/github_cpp_makefile_star2_O2/danfai[P]dboc/main.cpp
// Function: main
int main (int argc, char **argv)
{
    char *outFile = NULL;
    char *inFile = NULL;
    int index;
    int c;

    opterr = 0;

    while ((c = getopt (argc, argv, "ho:")) != -1)
        switch (c)
        {
            case 'h':
                printHelp();
                abort();
            case 'o':
                outFile = optarg;
                break;
            case '?':
                if (optopt == 'c')
                    fprintf (stderr, "Option -%c requires an argument.\n", optopt);
                else if (isprint (optopt))
                    fprintf (stderr, "Unknown option `-%c'.\n", optopt);
                else
                    fprintf (stderr,
                            "Unknown option character `\\x%x'.\n",
                            optopt);
                return 1;
            default:
                abort ();
        }

    for (index = optind; index < argc; index++) {
        inFile = argv[index];
    }

    if (inFile == NULL)
        std::cerr << "No input file specified" << std::endl;

    if (outFile == NULL)
        std::cerr << "No output file specified" << std::endl;

    try {
        Parser parser(inFile);
        parser.write(outFile);
    } catch(const char * c) {
        std::cerr << c << std::endl;
    }

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x60, %rsp
movq %rsi, %r15
movq 0x4af4(%rip), %rax      # 0x6fc8
andl $0x0, (%rax)
movl %edi, %ebp
xorl %ebx, %ebx
leaq 0x1bbd(%rip), %r14      # 0x409f
movq 0x4aa7(%rip), %r12      # 0x6f90
movl %ebp, %edi
movq %r15, %rsi
movq %r14, %rdx
callq 0x2070
cmpl $0x6f, %eax
jne 0x2501
movq (%r12), %rbx
jmp 0x24e9
cmpl $-0x1, %eax
jne 0x25d7
movq 0x4aaf(%rip), %rax      # 0x6fc0
movslq (%rax), %rax
movslq %ebp, %rcx
xorl %r14d, %r14d
cmpq %rcx, %rax
jge 0x2528
movq (%r15,%rax,8), %r14
incq %rax
jmp 0x251a
testq %r14, %r14
jne 0x2548
movq 0x4abc(%rip), %rdi      # 0x6ff0
leaq 0x1bc3(%rip), %rsi      # 0x40fe
callq 0x2190
movq %rax, %rdi
callq 0x2100
testq %rbx, %rbx
jne 0x2568
movq 0x4a9c(%rip), %rdi      # 0x6ff0
leaq 0x1bbb(%rip), %rsi      # 0x4116
callq 0x2190
movq %rax, %rdi
callq 0x2100
leaq 0x40(%rsp), %rdi
leaq 0x7(%rsp), %rdx
movq %r14, %rsi
callq 0x26be
leaq 0x8(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0x29cc
leaq 0x40(%rsp), %rdi
callq 0x20f0
leaq 0x20(%rsp), %rdi
leaq 0x7(%rsp), %rdx
movq %rbx, %rsi
callq 0x26be
leaq 0x8(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x2e24
leaq 0x20(%rsp), %rdi
callq 0x20f0
leaq 0x8(%rsp), %rdi
callq 0x26fa
xorl %eax, %eax
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x3f, %eax
jne 0x2633
movq 0x49c5(%rip), %rax      # 0x6fa8
movl (%rax), %ebx
cmpl $0x63, %ebx
jne 0x2600
movq 0x49c7(%rip), %rax      # 0x6fb8
movq (%rax), %rdi
leaq 0x1aa8(%rip), %rsi      # 0x40a3
pushq $0x63
popq %rdx
jmp 0x2627
movl %ebx, %edi
callq 0x22d0
movq 0x49aa(%rip), %rcx      # 0x6fb8
movq (%rcx), %rdi
testl %eax, %eax
jne 0x261e
leaq 0x1ac0(%rip), %rsi      # 0x40dc
jmp 0x2625
leaq 0x1aa0(%rip), %rsi      # 0x40c5
movl %ebx, %edx
xorl %eax, %eax
callq 0x2230
pushq $0x1
popq %rax
jmp 0x25ca
cmpl $0x68, %eax
jne 0x263d
callq 0x245c
callq 0x2130
movq %rdx, %r14
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x20f0
jmp 0x265a
movq %rdx, %r14
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x26fa
jmp 0x267e
movq %rdx, %r14
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x20f0
jmp 0x267e
movq %rdx, %r14
movq %rax, %rbx
cmpl $0x1, %r14d
jne 0x26b5
movq %rbx, %rdi
callq 0x20d0
movq 0x495d(%rip), %rdi      # 0x6ff0
movq %rax, %rsi
callq 0x2190
movq %rax, %rdi
callq 0x2100
callq 0x22a0
jmp 0x25c8
movq %rax, %rbx
callq 0x22a0
movq %rbx, %rdi
callq 0x22c0
nop