// File: /workspace/github_c_makefile_star2_O3/robertdavidgraham[P]wc2/wc2.c
// Function: main
int main(int argc, char *argv[])
{
    int i;
    struct results totals = {0,0,0,0};
    struct config cfg;

    /* Force output to be an atomic line-at-a-time, so that other
     * programs reading the output never see a partial line */
#ifndef _WIN32
    setvbuf(stdout, NULL, _IOLBF, 0);
#endif

    /* Read in the configuration parameters from the command-line */
    cfg = read_command_line(argc, argv);

    /* Compile the ASCII/UTF8 state-machine that we'll use to
     * parse multi-byte characters */
    compile_utf8_statemachine(cfg.is_counting_chars);
    compile_pointers();


    /* Process all the files specified on the command-line */
    for (i=1; i<argc; i++) {
        FILE *fp;
        const char *filename = argv[i];
        struct results results;

        if (argv[i][0] == '-')
            continue;

        fp = fopen(filename, "rb");
        if (fp == NULL) {
            perror(argv[i]);
            continue;
        }

        results = parse_file(fp, &cfg);
        print_results(filename, &results, &cfg);

        totals.line_count += results.line_count;
        totals.word_count += results.word_count;
        totals.byte_count += results.byte_count;
        totals.char_count += results.char_count;

        fclose(fp);
    }

    /* If no files specified, or the "-" file specified, then
     * we need to read in <stdin>. We need to change the mode
     * to "binary", to prevent the library from doing it's own
     * notions of text processing */
    if (cfg.is_stdin) {
        struct results results;
        FILE *fp;

        /* Make sure we read <stdin> in binary mode, because on some
         * platforms (Windows) it defaults to text-mode that will
         * chnage some characters */
        fp = freopen(NULL, "rb", stdin);
        if (fp == NULL) {
            perror("stdin");
            fp = stdin;
        }

        results = parse_file(fp, &cfg);
        print_results(NULL, &results, &cfg);

        totals.line_count += results.line_count;
        totals.word_count += results.word_count;
        totals.byte_count += results.byte_count;
        totals.char_count += results.char_count;
    }

    /* If we read more than one thing, then we also need to print an
     * additional totals line */
    if (cfg.is_printing_totals)
        print_results("total", &totals, &cfg);

#if _WIN32
    {
      FILETIME begin;
      FILETIME end;
      FILETIME kernel;
      FILETIME user;
        if (GetProcessTimes(GetCurrentProcess(), &begin, &end, &kernel, &user)) {
            unsigned long long elapsed = ((unsigned long long)user.dwLowDateTime | (unsigned long long)user.dwHighDateTime<<32ULL)/10000ULL;
            printf("user %lu.%03u\n", (unsigned)(elapsed/1000ULL), (unsigned)(elapsed % 1000));
        }
    }
#endif
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x148, %rsp            # imm = 0x148
movq %rsi, %rbx
movl %edi, %ebp
pxor %xmm0, %xmm0
movdqa %xmm0, 0x80(%rsp)
movdqa %xmm0, 0x70(%rsp)
movq 0x3953(%rip), %rax      # 0x5fd0
movq (%rax), %rdi
xorl %r12d, %r12d
movl $0x1, %r13d
xorl %esi, %esi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x1130
callq 0x1060
movl $0x16, (%rax)
movb $0x1, %al
cmpl $0x2, %ebp
movl %ebp, 0x24(%rsp)
movq %rbx, 0x30(%rsp)
jl 0x291c
movl %ebp, %edx
movl $0x1, %r13d
movq $0x0, 0x50(%rsp)
movl $0x0, 0xc(%rsp)
movl $0x0, 0x1c(%rsp)
movl $0x0, 0x20(%rsp)
movl $0x0, 0x10(%rsp)
movl $0x0, 0x14(%rsp)
movl $0x0, 0x3c(%rsp)
movl $0x0, 0x18(%rsp)
movl $0x0, 0x28(%rsp)
xorl %r8d, %r8d
xorl %r14d, %r14d
movl $0x0, 0x8(%rsp)
movl $0x0, 0x2c(%rsp)
xorl %edi, %edi
xorl %ebp, %ebp
xorl %r10d, %r10d
xorl %r11d, %r11d
movl $0x0, 0x5c(%rsp)
movslq %r13d, %rax
movq (%rbx,%rax,8), %r15
cmpb $0x2d, (%r15)
jne 0x28d9
movzbl 0x1(%r15), %eax
testl %eax, %eax
je 0x28e0
cmpl $0x2d, %eax
je 0x2959
movl %r11d, 0x60(%rsp)
movl %r10d, 0x40(%rsp)
movl %r8d, %r12d
movl %r14d, %ebx
movl %edi, %r14d
movq %r15, %rdi
callq 0x10a0
cmpq $0x2, %rax
jb 0x28f2
movq %rax, %r15
movl $0x1, %eax
movl 0x24(%rsp), %edx
movl %r14d, %edi
movl %ebx, %r14d
movq 0x30(%rsp), %rbx
movl %r12d, %r8d
movl 0x40(%rsp), %r10d
movl 0x60(%rsp), %r11d
movslq %r13d, %rcx
movq (%rbx,%rcx,8), %r12
movzbl (%r12,%rax), %esi
cmpl $0x6b, %esi
jg 0x27e2
cmpl $0x50, %esi
je 0x2847
cmpl $0x57, %esi
je 0x2808
cmpl $0x63, %esi
jne 0x2eb8
testl %ebp, %ebp
jne 0x2eb3
incl %edi
xorl %ebp, %ebp
movl %edi, 0x10(%rsp)
xorl %r10d, %r10d
movl %edi, %r11d
jmp 0x28cb
cmpl $0x77, %esi
je 0x2857
cmpl $0x6d, %esi
je 0x2828
cmpl $0x6c, %esi
jne 0x2eb8
movl 0x8(%rsp), %ecx
incl %ecx
movl %ecx, 0x8(%rsp)
movl %ecx, 0x1c(%rsp)
jmp 0x28cb
movl %r11d, 0x60(%rsp)
movl %r10d, 0x40(%rsp)
movl %r14d, %ebx
movl %edi, %r14d
addq %rax, %r12
cmpb $0x0, 0x1(%r12)
je 0x2867
incq %r12
jmp 0x287f
testl %r11d, %r11d
jne 0x2eae
incl %r10d
xorl %r11d, %r11d
movl %r10d, 0x14(%rsp)
movl %r10d, %r14d
movl %r10d, %ebp
jmp 0x28cb
movl 0x5c(%rsp), %ecx
incl %ecx
movl %ecx, 0x5c(%rsp)
movl %ecx, 0x18(%rsp)
jmp 0x28cb
movl 0x2c(%rsp), %ecx
incl %ecx
movl %ecx, 0x2c(%rsp)
movl %ecx, 0x20(%rsp)
jmp 0x28cb
incl %r13d
cmpl %edx, %r13d
jge 0x2ea9
movslq %r13d, %rax
movq 0x30(%rsp), %rcx
movq (%rcx,%rax,8), %r12
testq %r12, %r12
je 0x2ea9
callq 0x1190
movq (%rax), %rax
movsbq (%r12), %rcx
testb $0x8, 0x1(%rax,%rcx,2)
je 0x2ea9
movq %r12, %rdi
callq 0x1160
movl %eax, 0x3c(%rsp)
movl %eax, %r8d
movq %r15, %rax
movl 0x24(%rsp), %edx
movl %r14d, %edi
movl %ebx, %r14d
movq 0x30(%rsp), %rbx
movl 0x40(%rsp), %r10d
movl 0x60(%rsp), %r11d
incq %rax
cmpq %r15, %rax
jb 0x279f
jmp 0x290e
incq 0x50(%rsp)
jmp 0x290e
movl $0x1, 0xc(%rsp)
movl $0x1, 0x28(%rsp)
jmp 0x290e
movl 0x24(%rsp), %edx
movl %r14d, %edi
movl %ebx, %r14d
movq 0x30(%rsp), %rbx
movl %r12d, %r8d
movl 0x40(%rsp), %r10d
movl 0x60(%rsp), %r11d
incl %r13d
cmpl %edx, %r13d
jl 0x272f
jmp 0x2972
movl $0x1, 0xc(%rsp)
xorl %r8d, %r8d
xorl %edi, %edi
xorl %r10d, %r10d
xorl %ebp, %ebp
movl $0x0, 0x3c(%rsp)
xorl %r9d, %r9d
movq $0x0, 0x40(%rsp)
xorl %ecx, %ecx
xorl %edx, %edx
xorl %esi, %esi
xorl %r14d, %r14d
xorl %r15d, %r15d
movl $0x1, %r11d
jmp 0x29ea
cmpb $0x0, 0x2(%r15)
jne 0x2ec5
notl %r13d
addl %edx, %r13d
movslq %r13d, %rax
addq %rax, 0x50(%rsp)
movl %r8d, %r15d
movl %edi, %esi
movq 0x50(%rsp), %r12
testq %r12, %r12
je 0x29ac
xorl %eax, %eax
movq %r12, 0x40(%rsp)
movl 0x14(%rsp), %ebp
movl 0x20(%rsp), %edi
movl 0x1c(%rsp), %r8d
movl 0x18(%rsp), %r9d
movl 0x10(%rsp), %r10d
movl 0x28(%rsp), %r11d
movl $0x1, %r13d
jmp 0x29e2
movl $0x1, 0xc(%rsp)
movq $0x0, 0x40(%rsp)
movl $0x1, %r11d
movl 0x14(%rsp), %ebp
movl 0x20(%rsp), %edi
movl 0x1c(%rsp), %r8d
movl 0x18(%rsp), %r9d
movl 0x10(%rsp), %r10d
movl $0x1, %r13d
movb $0x1, %al
movl 0x8(%rsp), %ecx
movl 0x2c(%rsp), %edx
orl %edx, %ecx
orl %esi, %ecx
orl %r14d, %ecx
cmovel %r13d, %r8d
cmovel %r13d, %edi
cmovel %r13d, %r10d
testl %r15d, %r15d
movl 0x3c(%rsp), %ebx
jne 0x2b0a
testb %al, %al
je 0x2a18
movl $0x1, %ebx
jmp 0x2b37
movl %r11d, 0x28(%rsp)
movl %r10d, 0x10(%rsp)
movl %r9d, 0x18(%rsp)
movl %r8d, 0x1c(%rsp)
movl %edi, 0x20(%rsp)
movl %ebp, 0x14(%rsp)
movq %r12, 0x50(%rsp)
movl $0x1, %ebx
movl 0x24(%rsp), %eax
cmpl $0x2, %eax
jl 0x2ab1
movl %eax, %r12d
movl $0x1, %r13d
leaq 0xb8(%rsp), %r14
movl $0xf000, %ebp           # imm = 0xF000
movl $0xf4240, %r15d         # imm = 0xF4240
movq 0x30(%rsp), %rax
movq (%rax,%r13,8), %rdi
cmpb $0x2d, (%rdi)
je 0x2aa9
movq %r14, %rsi
callq 0x10b0
testl %eax, %eax
jne 0x2aa9
movl 0xd0(%rsp), %eax
andl %ebp, %eax
cmpl $0x8000, %eax           # imm = 0x8000
jne 0x2a9e
movq 0xe8(%rsp), %rax
cmpq %rax, %rbx
cmovleq %rax, %rbx
jmp 0x2aa9
cmpq $0xf4241, %rbx          # imm = 0xF4241
cmovlq %r15, %rbx
incq %r13
cmpq %r13, %r12
jne 0x2a63
cmpq $0xf4241, %rbx          # imm = 0xF4241
movl $0xf4240, %ecx          # imm = 0xF4240
cmovgeq %rbx, %rcx
movl 0x28(%rsp), %r11d
testl %r11d, %r11d
cmoveq %rbx, %rcx
xorl %ebx, %ebx
movabsq $-0x3333333333333333, %rsi # imm = 0xCCCCCCCCCCCCCCCD
movq 0x50(%rsp), %r12
movl 0x14(%rsp), %ebp
movl 0x20(%rsp), %edi
movl 0x1c(%rsp), %r8d
movl 0x18(%rsp), %r9d
movl 0x10(%rsp), %r10d
incl %ebx
movq %rcx, %rax
mulq %rsi
shrq $0x3, %rdx
cmpq $0x9, %rcx
movq %rdx, %rcx
ja 0x2af5
movq 0x40(%rsp), %rax
cmpq $0x1, %rax
ja 0x2b28
testq %rax, %rax
setne %al
testl %r11d, %r11d
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x2b37
movl $0x1, %eax
movl $0x0, 0x8(%rsp)
jmp 0x2b3f
xorl %eax, %eax
movb $0x1, %cl
movl %ecx, 0x8(%rsp)
movq %r12, 0xb8(%rsp)
movl 0xc(%rsp), %ecx
movl %ecx, 0xc0(%rsp)
movl %r8d, 0xc4(%rsp)
movl %edi, 0xc8(%rsp)
movl %r10d, 0xcc(%rsp)
movl %ebp, 0xd0(%rsp)
movl %eax, 0xd4(%rsp)
movl %ebx, 0xd8(%rsp)
movl %r9d, 0xdc(%rsp)
leaq 0x1505(%rip), %rsi      # 0x4092
movl $0x6, %edi
callq 0x1120
testl %ebp, %ebp
je 0x2c16
leaq 0x354e(%rip), %rdi      # 0x60f0
movl $0x2, %esi
movl $0x4, %edx
callq 0x1338
leaq 0x3638(%rip), %rdi      # 0x61f0
movl $0x2, %esi
movl $0x4, %edx
callq 0x1338
leaq 0x3822(%rip), %rdi      # 0x63f0
movl $0x3, %esi
movl $0x23, %edx
callq 0x1338
leaq 0x370c(%rip), %rdi      # 0x62f0
movl $0x3, %esi
movl $0x23, %edx
callq 0x1338
movl $0x2, %edi
movl $0x4, %esi
callq 0x15aa
movl $0x3, %edi
movl $0x23, %esi
callq 0x15aa
jmp 0x2ca7
xorl %ebx, %ebx
movb $0x1, %bpl
leaq 0x34ce(%rip), %r14      # 0x60f0
movb $0x2, %r15b
movb $0x3, %r12b
xorl %r13d, %r13d
cmpq $0xa, %r13
jne 0x2c4f
movb %bpl, 0x34c2(%rip)      # 0x60fa
movb %bpl, 0x35bb(%rip)      # 0x61fa
movb %bpl, 0x36b4(%rip)      # 0x62fa
movb %bpl, 0x37ad(%rip)      # 0x63fa
jmp 0x2c9b
callq 0x1190
movq (%rax), %rax
testb $0x20, 0x1(%rax,%r13,2)
jne 0x2c7e
movb %r15b, (%r13,%r14)
movb %r15b, 0x100(%r13,%r14)
movb %r12b, 0x200(%r13,%r14)
movb %r12b, 0x300(%r13,%r14)
jmp 0x2c9b
movb %bl, (%r13,%r14)
movb %bl, 0x100(%r13,%r14)
movb %bl, 0x200(%r13,%r14)
movb %bl, 0x300(%r13,%r14)
incq %r13
cmpq $0x100, %r13            # imm = 0x100
jne 0x2c2b
leaq 0x13442(%rip), %rax     # 0x160f0
leaq 0x343b(%rip), %rcx      # 0x60f0
xorl %edx, %edx
movq %rax, %rsi
xorl %edi, %edi
movzbl (%rcx,%rdi), %r8d
shll $0xb, %r8d
addq %rax, %r8
movq %r8, (%rsi,%rdi,8)
incq %rdi
cmpq $0x100, %rdi            # imm = 0x100
jne 0x2cbc
incq %rdx
addq $0x800, %rsi            # imm = 0x800
addq $0x100, %rcx            # imm = 0x100
cmpq $0x42, %rdx
jne 0x2cba
xorps %xmm1, %xmm1
pxor %xmm0, %xmm0
movdqa %xmm0, 0x40(%rsp)
movl 0x24(%rsp), %eax
cmpl $0x2, %eax
jl 0x2de0
movl %eax, %r14d
movdqa %xmm0, 0x60(%rsp)
movl $0x1, %ebx
leaq 0x90(%rsp), %r15
leaq 0xb8(%rsp), %r12
movdqa %xmm0, 0x40(%rsp)
movq 0x30(%rsp), %rax
movq (%rax,%rbx,8), %rbp
cmpb $0x2d, (%rbp)
je 0x2da1
movq %rbp, %rdi
leaq 0x130a(%rip), %rsi      # 0x4050
callq 0x10e0
testq %rax, %rax
je 0x2dab
movq %rax, %r13
movq %r15, %rdi
movq %rax, %rsi
movq %r12, %rdx
callq 0x2f04
movq %rbp, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x3106
movdqa 0x60(%rsp), %xmm0
paddq 0x90(%rsp), %xmm0
movdqa %xmm0, 0x60(%rsp)
movdqa 0x40(%rsp), %xmm0
paddq 0xa0(%rsp), %xmm0
movdqa %xmm0, 0x40(%rsp)
movq %r13, %rdi
callq 0x1090
incq %rbx
cmpq %rbx, %r14
jne 0x2d2d
jmp 0x2dbb
movq 0x30(%rsp), %rax
movq (%rax,%rbx,8), %rdi
callq 0x1150
jmp 0x2da1
movdqa 0x40(%rsp), %xmm2
pshufd $0xee, %xmm2, %xmm0     # xmm0 = xmm2[2,3,2,3]
movq %xmm0, 0x88(%rsp)
movaps 0x60(%rsp), %xmm1
movaps %xmm1, %xmm0
shufps $0x4e, %xmm2, %xmm0     # xmm0 = xmm0[2,3],xmm2[0,1]
movups %xmm0, 0x78(%rsp)
movlps %xmm1, 0x70(%rsp)
cmpl $0x0, 0xc(%rsp)
je 0x2e61
movaps %xmm1, 0x60(%rsp)
movq 0x31e0(%rip), %rbx      # 0x5fd8
movq (%rbx), %rdx
leaq 0x124e(%rip), %rsi      # 0x4050
xorl %edi, %edi
callq 0x10f0
testq %rax, %rax
je 0x2e95
leaq 0x90(%rsp), %rbx
leaq 0xb8(%rsp), %r14
movq %rbx, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x2f04
xorl %edi, %edi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x3106
movdqa 0x60(%rsp), %xmm0
paddq (%rbx), %xmm0
movdqa %xmm0, 0x70(%rsp)
movdqa 0x40(%rsp), %xmm0
paddq 0x10(%rbx), %xmm0
movdqa %xmm0, 0x80(%rsp)
cmpb $0x0, 0x8(%rsp)
jne 0x2e81
leaq 0x11ea(%rip), %rdi      # 0x4059
leaq 0x70(%rsp), %rsi
leaq 0xb8(%rsp), %rdx
callq 0x3106
xorl %eax, %eax
addq $0x148, %rsp            # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x11b7(%rip), %rdi      # 0x4053
callq 0x1150
movq (%rbx), %rax
jmp 0x2e12
callq 0x11e2
callq 0x11f7
callq 0x120c
leaq 0xb8(%rsp), %rdi
callq 0x1221
leaq 0x1193(%rip), %rsi      # 0x405f
movq %r15, %rdi
callq 0x10d0
testl %eax, %eax
jne 0x2edd
callq 0x11be
leaq 0x11af(%rip), %rsi      # 0x4093
movq %r15, %rdi
callq 0x10d0
testl %eax, %eax
jne 0x2efc
callq 0x322f
xorl %edi, %edi
callq 0x1170
movq %r15, %rdi
callq 0x11b0