// File: /workspace/github_c_makefile_star2_O1/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 $0x128, %rsp            # imm = 0x128
movq %rsi, %rbx
movl %edi, %ebp
xorps %xmm0, %xmm0
movaps %xmm0, 0x60(%rsp)
movaps %xmm0, 0x50(%rsp)
movq 0x3959(%rip), %rax      # 0x5fd0
movq (%rax), %rdi
movq $0x0, 0x20(%rsp)
xorl %esi, %esi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x1130
callq 0x1060
movl $0x16, (%rax)
movl $0x0, 0x8(%rsp)
movl $0x0, 0x48(%rsp)
movl $0x0, 0x10(%rsp)
movl $0x0, 0xc(%rsp)
movl $0x0, 0x2c(%rsp)
movl $0x0, 0x40(%rsp)
movl $0x0, 0x44(%rsp)
cmpl $0x2, %ebp
movq %rbx, 0x18(%rsp)
movl %ebp, 0x38(%rsp)
jl 0x2901
movl %ebp, %edx
movq $0x0, 0x20(%rsp)
movl $0x0, 0x8(%rsp)
movl $0x0, 0x48(%rsp)
movl $0x0, 0x10(%rsp)
movl $0x0, 0xc(%rsp)
movl $0x0, 0x2c(%rsp)
movl $0x0, 0x40(%rsp)
movl $0x0, 0x44(%rsp)
movl $0x0, 0x14(%rsp)
movl $0x0, 0x4c(%rsp)
xorl %edi, %edi
xorl %r13d, %r13d
xorl %r8d, %r8d
xorl %r14d, %r14d
movl $0x1, %ebp
movslq %ebp, %rax
movq (%rbx,%rax,8), %r15
cmpb $0x2d, (%r15)
jne 0x2782
movzbl 0x1(%r15), %eax
movb $0x1, %cl
testl %eax, %eax
je 0x278b
cmpl $0x2d, %eax
jne 0x27a6
cmpb $0x0, 0x2(%r15)
jne 0x2e0e
movl %ebp, %eax
notl %eax
addl %edx, %eax
cltq
addq %rax, 0x20(%rsp)
xorl %ecx, %ecx
jmp 0x2793
incq 0x20(%rsp)
movb $0x1, %cl
jmp 0x2793
movl $0x1, 0x8(%rsp)
testb %cl, %cl
je 0x2901
incl %ebp
cmpl %edx, %ebp
jl 0x2749
jmp 0x2901
movl %r8d, 0x30(%rsp)
movl %edi, %r12d
movq %r15, %rdi
callq 0x10a0
cmpq $0x2, %rax
jb 0x28eb
movq %rax, %r15
movl $0x1, %eax
movq 0x18(%rsp), %rbx
movl 0x38(%rsp), %edx
movl %r12d, %edi
movl 0x30(%rsp), %r8d
movslq %ebp, %rcx
movq (%rbx,%rcx,8), %r12
movzbl (%r12,%rax), %esi
cmpl $0x6b, %esi
jg 0x280d
cmpl $0x50, %esi
je 0x284e
cmpl $0x57, %esi
je 0x2829
cmpl $0x63, %esi
jne 0x2e01
testl %edi, %edi
jne 0x2df7
incl %r13d
jmp 0x28b7
cmpl $0x77, %esi
je 0x2853
cmpl $0x6d, %esi
je 0x2841
cmpl $0x6c, %esi
jne 0x2e01
incl 0x14(%rsp)
jmp 0x28b7
addq %rax, %r12
cmpb $0x0, 0x1(%r12)
movl %r14d, 0x30(%rsp)
je 0x2859
movl %r13d, %r14d
incq %r12
jmp 0x2871
testl %r13d, %r13d
jne 0x2dfc
incl %edi
jmp 0x28b7
incl %r14d
jmp 0x28b7
incl 0x4c(%rsp)
jmp 0x28b7
leal 0x1(%rbp), %eax
movl %r13d, %r14d
cmpl %edx, %eax
jge 0x286e
movslq %eax, %rcx
movq (%rbx,%rcx,8), %r12
movl %eax, %ebp
jmp 0x2871
xorl %r12d, %r12d
testq %r12, %r12
je 0x2df2
movl %edi, %r13d
callq 0x1190
movq (%rax), %rax
movsbq (%r12), %rcx
testb $0x8, 0x1(%rax,%rcx,2)
je 0x2df2
movq %r12, %rdi
callq 0x1160
movl %eax, %r8d
movq %r15, %rax
movq 0x18(%rsp), %rbx
movl 0x38(%rsp), %edx
movl %r13d, %edi
movl %r14d, %r13d
movl 0x30(%rsp), %r14d
incq %rax
cmpq %r15, %rax
jb 0x27d9
movl 0x14(%rsp), %eax
movl %eax, 0x48(%rsp)
movl 0x4c(%rsp), %eax
movl %eax, 0x10(%rsp)
movl %r13d, 0xc(%rsp)
movl %edi, 0x2c(%rsp)
movl %r8d, 0x40(%rsp)
movl %r14d, 0x44(%rsp)
jmp 0x2787
movq 0x18(%rsp), %rbx
movl 0x38(%rsp), %edx
movl %r12d, %edi
movl 0x30(%rsp), %r8d
jmp 0x2787
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
movl 0x8(%rsp), %eax
movl $0x1, %r8d
cmovel %r8d, %eax
movl %eax, 0x8(%rsp)
movl 0x48(%rsp), %r13d
movl %r13d, %eax
movl 0x10(%rsp), %r10d
orl %r10d, %eax
movl 0xc(%rsp), %r11d
orl %r11d, %eax
movl 0x2c(%rsp), %ebx
orl %ebx, %eax
cmovel %r8d, %r13d
cmovel %r8d, %r10d
cmovel %r8d, %r11d
movl 0x40(%rsp), %eax
testl %eax, %eax
cmovnel %eax, %r8d
jne 0x2a33
testq %rdi, %rdi
je 0x2a33
movl %r11d, 0xc(%rsp)
movl %r10d, 0x10(%rsp)
movl $0x1, %ebx
movl 0x38(%rsp), %ecx
cmpl $0x2, %ecx
movq 0x18(%rsp), %rax
jl 0x29e4
movl %ecx, %r15d
movl $0x1, %r12d
leaq 0x98(%rsp), %r14
movl $0xf000, %ebp           # imm = 0xF000
movq (%rax,%r12,8), %rdi
cmpb $0x2d, (%rdi)
je 0x29dc
movq %r14, %rsi
callq 0x10b0
testl %eax, %eax
jne 0x29d7
movl 0xb0(%rsp), %eax
andl %ebp, %eax
cmpl $0x8000, %eax           # imm = 0x8000
jne 0x29c7
movq 0xc8(%rsp), %rax
cmpq %rax, %rbx
cmovleq %rax, %rbx
jmp 0x29d7
cmpq $0xf4241, %rbx          # imm = 0xF4241
movl $0xf4240, %eax          # imm = 0xF4240
cmovlq %rax, %rbx
movq 0x18(%rsp), %rax
incq %r12
cmpq %r12, %r15
jne 0x2991
cmpq $0xf4241, %rbx          # imm = 0xF4241
movl $0xf4240, %ecx          # imm = 0xF4240
cmovgeq %rbx, %rcx
cmpl $0x0, 0x8(%rsp)
cmoveq %rbx, %rcx
xorl %r8d, %r8d
movabsq $-0x3333333333333333, %rsi # imm = 0xCCCCCCCCCCCCCCCD
movq 0x20(%rsp), %rdi
movl 0x2c(%rsp), %ebx
movl 0x10(%rsp), %r10d
movl 0xc(%rsp), %r11d
incl %r8d
movq %rcx, %rax
mulq %rsi
shrq $0x3, %rdx
cmpq $0x9, %rcx
movq %rdx, %rcx
ja 0x2a1d
cmpq $0x1, %rdi
ja 0x2a4e
testq %rdi, %rdi
setne %al
cmpl $0x0, 0x8(%rsp)
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x2a5d
movl $0x1, %eax
movl $0x0, 0x14(%rsp)
jmp 0x2a65
xorl %eax, %eax
movb $0x1, %cl
movl %ecx, 0x14(%rsp)
movq %rdi, 0x98(%rsp)
movl 0x8(%rsp), %ecx
movl %ecx, 0xa0(%rsp)
movl %r13d, 0xa4(%rsp)
movl %r10d, 0xa8(%rsp)
movl %r11d, 0xac(%rsp)
movl %ebx, 0xb0(%rsp)
movl %eax, 0xb4(%rsp)
movl %r8d, 0xb8(%rsp)
movl 0x44(%rsp), %eax
movl %eax, 0xbc(%rsp)
leaq 0x15da(%rip), %rsi      # 0x4092
movl $0x6, %edi
callq 0x1120
testl %ebx, %ebx
je 0x2b41
leaq 0x3623(%rip), %rdi      # 0x60f0
movl $0x2, %esi
movl $0x4, %edx
callq 0x1338
leaq 0x370d(%rip), %rdi      # 0x61f0
movl $0x2, %esi
movl $0x4, %edx
callq 0x1338
leaq 0x38f7(%rip), %rdi      # 0x63f0
movl $0x3, %esi
movl $0x23, %edx
callq 0x1338
leaq 0x37e1(%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 0x2bd2
xorl %ebx, %ebx
movb $0x1, %bpl
leaq 0x35a3(%rip), %r14      # 0x60f0
movb $0x2, %r15b
movb $0x3, %r12b
xorl %r13d, %r13d
cmpq $0xa, %r13
jne 0x2b7a
movb %bpl, 0x3597(%rip)      # 0x60fa
movb %bpl, 0x3690(%rip)      # 0x61fa
movb %bpl, 0x3789(%rip)      # 0x62fa
movb %bpl, 0x3882(%rip)      # 0x63fa
jmp 0x2bc6
callq 0x1190
movq (%rax), %rax
testb $0x20, 0x1(%rax,%r13,2)
jne 0x2ba9
movb %r15b, (%r13,%r14)
movb %r15b, 0x100(%r13,%r14)
movb %r12b, 0x200(%r13,%r14)
movb %r12b, 0x300(%r13,%r14)
jmp 0x2bc6
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 0x2b56
leaq 0x13517(%rip), %rax     # 0x160f0
leaq 0x3510(%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 0x2be7
incq %rdx
addq $0x800, %rsi            # imm = 0x800
addq $0x100, %rcx            # imm = 0x100
cmpq $0x42, %rdx
jne 0x2be5
movq 0x50(%rsp), %rcx
movl 0x38(%rsp), %eax
cmpl $0x2, %eax
jl 0x2d36
movq %rcx, 0x30(%rsp)
movq 0x58(%rsp), %r12
movq 0x60(%rsp), %rcx
movq %rcx, 0x20(%rsp)
movq 0x68(%rsp), %rbx
movl %eax, %r14d
movl $0x1, %r15d
movq 0x18(%rsp), %rax
movq %r14, 0x38(%rsp)
movq (%rax,%r15,8), %rbp
cmpb $0x2d, (%rbp)
je 0x2cfb
movq %rbp, %rdi
leaq 0x13e0(%rip), %rsi      # 0x4050
callq 0x10e0
testq %rax, %rax
je 0x2d09
movq %rax, %r13
movq %rbx, %r14
movq %r12, %rbx
leaq 0x78(%rsp), %rdi
movq %rax, %rsi
leaq 0x98(%rsp), %r12
movq %r12, %rdx
callq 0x2e4d
movq %rbp, %rdi
leaq 0x78(%rsp), %rsi
movq %rbx, %rbp
movq %r14, %rbx
movq 0x38(%rsp), %r14
movq %r12, %rdx
callq 0x301b
movq 0x30(%rsp), %rax
addq 0x78(%rsp), %rax
movq %rax, 0x30(%rsp)
addq 0x80(%rsp), %rbp
movq %rbp, %r12
addq 0x90(%rsp), %rbx
movq 0x20(%rsp), %rax
addq 0x88(%rsp), %rax
movq %rax, 0x20(%rsp)
movq %r13, %rdi
callq 0x1090
movq 0x18(%rsp), %rax
incq %r15
cmpq %r15, %r14
jne 0x2c58
jmp 0x2d1d
movq 0x18(%rsp), %r13
movq (%r13,%r15,8), %rdi
callq 0x1150
movq %r13, %rax
jmp 0x2cfb
movq %r12, 0x58(%rsp)
movq %rbx, 0x68(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x30(%rsp), %rcx
movq %rcx, 0x50(%rsp)
cmpl $0x0, 0x8(%rsp)
je 0x2daa
movq 0x328f(%rip), %rbx      # 0x5fd8
movq (%rbx), %rdx
leaq 0x12fd(%rip), %rsi      # 0x4050
xorl %edi, %edi
callq 0x10f0
testq %rax, %rax
je 0x2dde
leaq 0x78(%rsp), %rbx
leaq 0x98(%rsp), %r14
movq %rbx, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x2e4d
xorl %edi, %edi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x301b
movq (%rbx), %rax
addq %rax, 0x50(%rsp)
movq 0x8(%rbx), %rax
addq %rax, 0x58(%rsp)
movq 0x18(%rbx), %rax
addq %rax, 0x68(%rsp)
movq 0x10(%rbx), %rax
addq %rax, 0x60(%rsp)
cmpb $0x0, 0x14(%rsp)
jne 0x2dca
leaq 0x12a1(%rip), %rdi      # 0x4059
leaq 0x50(%rsp), %rsi
leaq 0x98(%rsp), %rdx
callq 0x301b
xorl %eax, %eax
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x126e(%rip), %rdi      # 0x4053
callq 0x1150
movq (%rbx), %rax
jmp 0x2d5f
callq 0x11e2
callq 0x120c
callq 0x11f7
leaq 0x98(%rsp), %rdi
callq 0x1221
leaq 0x124a(%rip), %rsi      # 0x405f
movq %r15, %rdi
callq 0x10d0
testl %eax, %eax
jne 0x2e26
callq 0x11be
leaq 0x1266(%rip), %rsi      # 0x4093
movq %r15, %rdi
callq 0x10d0
testl %eax, %eax
jne 0x2e45
callq 0x3144
xorl %edi, %edi
callq 0x1170
movq %r15, %rdi
callq 0x11b0