// File: /workspace/github_c_makefile_star2_O3/Cyan4973[P]FiniteStateEntropy/programs/bench.c
// Function: BMK_benchCore_Files
int BMK_benchCore_Files(const char** fileNamesTable, int nbFiles)
{
    int fileIdx=0;

    U64 totals = 0;
    U64 totalz = 0;
    double totalc = 0.;
    double totald = 0.;

    // Loop for each file
    while (fileIdx<nbFiles) {
        FILE*  inFile;
        const char* inFileName;
        U64    inFileSize;
        size_t benchedSize;
        int nbChunks;
        size_t maxCompressedChunkSize;
        size_t readSize;
        char* orig_buff;
        char* compressedBuffer; size_t compressedBuffSize;

        /* Check file existence */
        inFileName = fileNamesTable[fileIdx++];
        inFile = fopen( inFileName, "rb" );
        if (inFile==NULL) { DISPLAY( "Pb opening %s\n", inFileName); return 11; }

        /* Memory allocation & restrictions */
        inFileSize = BMK_GetFileSize(inFileName);
        if (inFileSize==0) { DISPLAY( "%s is empty\n", inFileName); return 11; }
        benchedSize = 256 MB;
        if ((U64)benchedSize > inFileSize) benchedSize = (size_t)inFileSize;
        else DISPLAY("FSE Core Loop speed evaluation, testing %i KB ...\n", (int)(benchedSize>>10));

        /* Alloc */
        orig_buff = (char*)malloc(benchedSize);
        nbChunks = 1;
        maxCompressedChunkSize = FSE_compressBound((int)benchedSize);
        compressedBuffSize = nbChunks * maxCompressedChunkSize;
        compressedBuffer = (char*)malloc(compressedBuffSize);

        if (!orig_buff || !compressedBuffer) {
            DISPLAY("\nError: not enough memory!\n");
            free(orig_buff);
            free(compressedBuffer);
            fclose(inFile);
            return 12;
        }

        /* Fill input buffer */
        DISPLAY("Loading %s...       \r", inFileName);
        readSize = fread(orig_buff, 1, benchedSize, inFile);
        fclose(inFile);

        if (readSize != benchedSize) {
            DISPLAY("\nError: problem reading file '%s' (%i read, should be %i) !!    \n", inFileName, (int)readSize, (int)benchedSize);
            free(orig_buff);
            free(compressedBuffer);
            return 13;
        }

        /* Bench */
        BMK_benchCore_Mem(compressedBuffer, orig_buff, (int)benchedSize, 255, BMK_tableLog, inFileName, &totalz, &totalc, &totald);
        totals += benchedSize;

        free(orig_buff);
        free(compressedBuffer);
    }

    if (nbFiles > 1)
        DISPLAY("%-16.16s :%10llu ->%10llu (%5.2f%%), %6.1f MB/s , %6.1f MB/s\n", "  TOTAL", (long long unsigned int)totals, (long long unsigned int)totalz, (double)totalz/(double)totals*100., (double)totals/totalc/1000., (double)totals/totald/1000.);

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x728, %rsp            # imm = 0x728
testl %esi, %esi
jle 0x47a0
movq %rdi, %rbp
movl %esi, 0x7c(%rsp)
movl %esi, %eax
movq %rax, 0xe0(%rsp)
pxor %xmm0, %xmm0
movdqa %xmm0, 0xc0(%rsp)
movq 0x165dd(%rip), %r13     # 0x19ff8
xorl %ebx, %ebx
xorl %r15d, %r15d
xorl %r12d, %r12d
movq %rdi, 0xe8(%rsp)
movq %r12, 0x70(%rsp)
movq (%rbp,%rbx,8), %r14
movq %r14, %rdi
leaq 0xfa55(%rip), %rsi      # 0x13494
callq 0x1120
testq %rax, %rax
je 0x47b6
movq %rax, %r12
movq %r14, 0x8(%rsp)
movq %r14, %rdi
leaq 0x120(%rsp), %rsi
callq 0x10a0
testl %eax, %eax
jne 0x47a4
movl 0x138(%rsp), %eax
movl $0xf000, %ecx           # imm = 0xF000
andl %ecx, %eax
cmpl $0x8000, %eax           # imm = 0x8000
jne 0x47a4
movq %r15, 0xf8(%rsp)
movq 0x150(%rsp), %r15
testq %r15, %r15
je 0x47a4
movq %rbx, 0xf0(%rsp)
cmpq $0x10000000, %r15       # imm = 0x10000000
jb 0x3abb
callq 0x17f4
movl $0x10000000, %r15d      # imm = 0x10000000
movq %r15, %rdi
callq 0x1150
movq %rax, %r14
movq %r15, %rdi
callq 0x9aca
movq %rax, %rdi
callq 0x1150
movq %rax, %rbx
movq (%r13), %rdi
testq %r14, %r14
je 0x47e4
testq %rbx, %rbx
je 0x47e4
leaq 0xfa18(%rip), %rsi      # 0x1350e
movq 0x8(%rsp), %rdx
xorl %eax, %eax
callq 0x1110
movl $0x1, %esi
movq %r14, %rdi
movq %r15, %rdx
movq %r12, %rcx
callq 0x1060
movq %rax, %r13
movq %r12, %rdi
callq 0x1080
cmpq %r15, %r13
jne 0x47f9
movl 0x165b9(%rip), %ebp     # 0x1a0e8
movl $0xff, 0x4(%rsp)
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x55ae
movq %r14, %rdx
movq %rax, %r14
leaq 0x120(%rsp), %r12
movq %r12, %rdi
leaq 0x4(%rsp), %rsi
movq %rdx, 0x18(%rsp)
movq %r15, %rcx
callq 0x7fc9
movl 0x4(%rsp), %r8d
leaq 0x520(%rsp), %r13
movq %r13, %rdi
movl %ebp, %esi
movq %r12, %rdx
movq %r15, %rcx
callq 0x9031
movq %rax, %r12
movl 0x4(%rsp), %esi
movl %r12d, %edi
callq 0x8f71
movl 0x4(%rsp), %edx
movq %rax, 0xa0(%rsp)
movq %rax, %rdi
movq %r13, %rsi
movl %r12d, %ecx
callq 0x8c9f
movl %r12d, %edi
callq 0x7fe8
movl 0x4(%rsp), %edx
movq %rax, 0x68(%rsp)
movq %rax, %rdi
movq %r13, %rsi
movl %r12d, %ecx
callq 0x8007
movq 0x16425(%rip), %r13     # 0x19ff8
movq (%r13), %rdi
leaq 0xf567(%rip), %rsi      # 0x13145
leaq 0xf980(%rip), %rdx      # 0x13565
xorl %eax, %eax
callq 0x1110
cmpl $0x0, 0x164f9(%rip)     # 0x1a0ec
xorpd %xmm3, %xmm3
movl $0x0, %r13d
movl $0x0, %r8d
movapd 0xf455(%rip), %xmm2     # 0x13060
jg 0x3ca5
cmpq %r13, %r14
je 0x4635
movq 0x18(%rsp), %r13
movq 0x68(%rsp), %r14
movq 0x70(%rsp), %r12
movapd 0xc0(%rsp), %xmm0
addpd %xmm2, %xmm0
movapd %xmm0, 0xc0(%rsp)
addq %r8, %r12
movq 0xf0(%rsp), %rbp
incq %rbp
movq 0xa0(%rsp), %rdi
callq 0x1030
movq %r14, %rdi
callq 0x1030
movq 0xf8(%rsp), %rax
addq %r15, %rax
movq %rax, %r15
movq %r13, %rdi
callq 0x1030
movq %rbx, %rdi
movq %rbp, %rbx
callq 0x1030
cmpq 0xe0(%rsp), %rbp
movq 0xe8(%rsp), %rbp
movq 0x1635e(%rip), %r13     # 0x19ff8
jne 0x3a2b
jmp 0x4781
movq %r14, 0x30(%rsp)
cvtsi2sd %r15d, %xmm0
movsd %xmm0, 0x90(%rsp)
leal 0xf(%r15), %r13d
andl $0x3ffffff0, %r13d      # imm = 0x3FFFFFF0
leaq -0x1(%r15), %rax
movq %rax, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
movdqa %xmm0, 0x110(%rsp)
pxor %xmm0, %xmm0
movdqa %xmm0, 0x40(%rsp)
movl $0x1, %edx
movq $0x0, 0x10(%rsp)
movq $0x0, 0x60(%rsp)
xorl %r12d, %r12d
movaps 0xf35b(%rip), %xmm0     # 0x13060
movq %r13, 0xd8(%rsp)
movq %rbx, 0x38(%rsp)
movq %r15, 0xa8(%rsp)
movaps %xmm0, 0x20(%rsp)
movq 0x162d2(%rip), %rax     # 0x19ff8
movq (%rax), %rdi
leaq 0xf8fa(%rip), %rsi      # 0x1362a
movq %rdx, 0x98(%rsp)
movq 0x8(%rsp), %rcx
movl %r15d, %r8d
xorl %eax, %eax
callq 0x1110
xorl %eax, %eax
movdqa 0xf38f(%rip), %xmm0     # 0x130e0
movdqa 0xf377(%rip), %xmm1     # 0x130d0
movdqa 0xf35f(%rip), %xmm2     # 0x130c0
movdqa 0xf347(%rip), %xmm3     # 0x130b0
movdqa 0xf32f(%rip), %xmm4     # 0x130a0
movdqa 0xf317(%rip), %xmm5     # 0x13090
movdqa 0xf2ff(%rip), %xmm6     # 0x13080
movdqa 0xf2e7(%rip), %xmm7     # 0x13070
movdqa 0xf35e(%rip), %xmm14    # 0x130f0
pcmpeqd %xmm15, %xmm15
movq 0x18(%rsp), %rbp
movdqa 0x110(%rsp), %xmm8
pxor %xmm14, %xmm8
movdqa %xmm0, %xmm9
pxor %xmm14, %xmm9
movdqa %xmm9, %xmm11
pcmpgtd %xmm8, %xmm11
pshufd $0xa0, %xmm11, %xmm10   # xmm10 = xmm11[0,0,2,2]
pshuflw $0xe8, %xmm10, %xmm12   # xmm12 = xmm10[0,2,2,3,4,5,6,7]
pcmpeqd %xmm8, %xmm9
pshufd $0xf5, %xmm9, %xmm9     # xmm9 = xmm9[1,1,3,3]
pshuflw $0xe8, %xmm9, %xmm13    # xmm13 = xmm9[0,2,2,3,4,5,6,7]
pand %xmm12, %xmm13
pshufd $0xf5, %xmm11, %xmm11   # xmm11 = xmm11[1,1,3,3]
pshuflw $0xe8, %xmm11, %xmm12   # xmm12 = xmm11[0,2,2,3,4,5,6,7]
por %xmm13, %xmm12
pxor %xmm15, %xmm12
packssdw %xmm12, %xmm12
movd %xmm12, %ecx
testb $0x1, %cl
je 0x3e09
movb %al, (%rbx,%rax)
pand %xmm10, %xmm9
por %xmm11, %xmm9
packssdw %xmm9, %xmm9
pxor %xmm15, %xmm9
packssdw %xmm9, %xmm9
packsswb %xmm9, %xmm9
movd %xmm9, %ecx
shrl $0x8, %ecx
testb $0x1, %cl
je 0x3e3b
leal 0x1(%rax), %ecx
movb %cl, 0x1(%rbx,%rax)
movdqa %xmm1, %xmm10
pxor %xmm14, %xmm10
movdqa %xmm10, %xmm11
pcmpgtd %xmm8, %xmm11
pshufd $0xa0, %xmm11, %xmm9    # xmm9 = xmm11[0,0,2,2]
pcmpeqd %xmm8, %xmm10
pshufd $0xf5, %xmm10, %xmm10   # xmm10 = xmm10[1,1,3,3]
movdqa %xmm10, %xmm12
pand %xmm9, %xmm12
pshufd $0xf5, %xmm11, %xmm11   # xmm11 = xmm11[1,1,3,3]
por %xmm11, %xmm12
packssdw %xmm12, %xmm12
pxor %xmm15, %xmm12
packssdw %xmm12, %xmm12
packsswb %xmm12, %xmm12
movd %xmm12, %ecx
shrl $0x10, %ecx
testb $0x1, %cl
je 0x3e9d
leal 0x2(%rax), %ecx
movb %cl, 0x2(%rbx,%rax)
pshufhw $0x84, %xmm9, %xmm9     # xmm9 = xmm9[0,1,2,3,4,5,4,6]
pshufhw $0x84, %xmm10, %xmm10   # xmm10 = xmm10[0,1,2,3,4,5,4,6]
pand %xmm9, %xmm10
pshufhw $0x84, %xmm11, %xmm9    # xmm9 = xmm11[0,1,2,3,4,5,4,6]
por %xmm10, %xmm9
pxor %xmm15, %xmm9
packssdw %xmm9, %xmm9
packsswb %xmm9, %xmm9
movd %xmm9, %ecx
shrl $0x18, %ecx
testb $0x1, %cl
je 0x3edc
leal 0x3(%rax), %ecx
movb %cl, 0x3(%rbx,%rax)
movdqa %xmm2, %xmm9
pxor %xmm14, %xmm9
movdqa %xmm9, %xmm11
pcmpgtd %xmm8, %xmm11
pshufd $0xa0, %xmm11, %xmm10   # xmm10 = xmm11[0,0,2,2]
pshuflw $0xe8, %xmm10, %xmm12   # xmm12 = xmm10[0,2,2,3,4,5,6,7]
pcmpeqd %xmm8, %xmm9
pshufd $0xf5, %xmm9, %xmm9     # xmm9 = xmm9[1,1,3,3]
pshuflw $0xe8, %xmm9, %xmm13    # xmm13 = xmm9[0,2,2,3,4,5,6,7]
pand %xmm12, %xmm13
pshufd $0xf5, %xmm11, %xmm11   # xmm11 = xmm11[1,1,3,3]
pshuflw $0xe8, %xmm11, %xmm12   # xmm12 = xmm11[0,2,2,3,4,5,6,7]
por %xmm13, %xmm12
pxor %xmm15, %xmm12
packssdw %xmm12, %xmm12
packsswb %xmm12, %xmm12
pextrw $0x2, %xmm12, %ecx
testb $0x1, %cl
je 0x3f44
leal 0x4(%rax), %ecx
movb %cl, 0x4(%rbx,%rax)
pand %xmm10, %xmm9
por %xmm11, %xmm9
packssdw %xmm9, %xmm9
pxor %xmm15, %xmm9
packssdw %xmm9, %xmm9
packsswb %xmm9, %xmm9
pextrw $0x2, %xmm9, %ecx
shrl $0x8, %ecx
testb $0x1, %cl
je 0x3f77
leal 0x5(%rax), %ecx
movb %cl, 0x5(%rbx,%rax)
movdqa %xmm3, %xmm10
pxor %xmm14, %xmm10
movdqa %xmm10, %xmm11
pcmpgtd %xmm8, %xmm11
pshufd $0xa0, %xmm11, %xmm9    # xmm9 = xmm11[0,0,2,2]
pcmpeqd %xmm8, %xmm10
pshufd $0xf5, %xmm10, %xmm10   # xmm10 = xmm10[1,1,3,3]
movdqa %xmm10, %xmm12
pand %xmm9, %xmm12
pshufd $0xf5, %xmm11, %xmm11   # xmm11 = xmm11[1,1,3,3]
por %xmm11, %xmm12
packssdw %xmm12, %xmm12
pxor %xmm15, %xmm12
packssdw %xmm12, %xmm12
packsswb %xmm12, %xmm12
pextrw $0x3, %xmm12, %ecx
testb $0x1, %cl
je 0x3fd7
leal 0x6(%rax), %ecx
movb %cl, 0x6(%rbx,%rax)
pshufhw $0x84, %xmm9, %xmm9     # xmm9 = xmm9[0,1,2,3,4,5,4,6]
pshufhw $0x84, %xmm10, %xmm10   # xmm10 = xmm10[0,1,2,3,4,5,4,6]
pand %xmm9, %xmm10
pshufhw $0x84, %xmm11, %xmm9    # xmm9 = xmm11[0,1,2,3,4,5,4,6]
por %xmm10, %xmm9
pxor %xmm15, %xmm9
packssdw %xmm9, %xmm9
packsswb %xmm9, %xmm9
pextrw $0x3, %xmm9, %ecx
shrl $0x8, %ecx
testb $0x1, %cl
je 0x4017
leal 0x7(%rax), %ecx
movb %cl, 0x7(%rbx,%rax)
movdqa %xmm4, %xmm9
pxor %xmm14, %xmm9
movdqa %xmm9, %xmm11
pcmpgtd %xmm8, %xmm11
pshufd $0xa0, %xmm11, %xmm10   # xmm10 = xmm11[0,0,2,2]
pshuflw $0xe8, %xmm10, %xmm12   # xmm12 = xmm10[0,2,2,3,4,5,6,7]
pcmpeqd %xmm8, %xmm9
pshufd $0xf5, %xmm9, %xmm9     # xmm9 = xmm9[1,1,3,3]
pshuflw $0xe8, %xmm9, %xmm13    # xmm13 = xmm9[0,2,2,3,4,5,6,7]
pand %xmm12, %xmm13
pshufd $0xf5, %xmm11, %xmm11   # xmm11 = xmm11[1,1,3,3]
pshuflw $0xe8, %xmm11, %xmm12   # xmm12 = xmm11[0,2,2,3,4,5,6,7]
por %xmm13, %xmm12
pxor %xmm15, %xmm12
packssdw %xmm12, %xmm12
packsswb %xmm12, %xmm12
pextrw $0x4, %xmm12, %ecx
testb $0x1, %cl
je 0x407f
leal 0x8(%rax), %ecx
movb %cl, 0x8(%rbx,%rax)
pand %xmm10, %xmm9
por %xmm11, %xmm9
packssdw %xmm9, %xmm9
pxor %xmm15, %xmm9
packssdw %xmm9, %xmm9
packsswb %xmm9, %xmm9
pextrw $0x4, %xmm9, %ecx
shrl $0x8, %ecx
testb $0x1, %cl
je 0x40b2
leal 0x9(%rax), %ecx
movb %cl, 0x9(%rbx,%rax)
movdqa %xmm5, %xmm10
pxor %xmm14, %xmm10
movdqa %xmm10, %xmm11
pcmpgtd %xmm8, %xmm11
pshufd $0xa0, %xmm11, %xmm9    # xmm9 = xmm11[0,0,2,2]
pcmpeqd %xmm8, %xmm10
pshufd $0xf5, %xmm10, %xmm10   # xmm10 = xmm10[1,1,3,3]
movdqa %xmm10, %xmm12
pand %xmm9, %xmm12
pshufd $0xf5, %xmm11, %xmm11   # xmm11 = xmm11[1,1,3,3]
por %xmm11, %xmm12
packssdw %xmm12, %xmm12
pxor %xmm15, %xmm12
packssdw %xmm12, %xmm12
packsswb %xmm12, %xmm12
pextrw $0x5, %xmm12, %ecx
testb $0x1, %cl
je 0x4112
leal 0xa(%rax), %ecx
movb %cl, 0xa(%rbx,%rax)
pshufhw $0x84, %xmm9, %xmm9     # xmm9 = xmm9[0,1,2,3,4,5,4,6]
pshufhw $0x84, %xmm10, %xmm10   # xmm10 = xmm10[0,1,2,3,4,5,4,6]
pand %xmm9, %xmm10
pshufhw $0x84, %xmm11, %xmm9    # xmm9 = xmm11[0,1,2,3,4,5,4,6]
por %xmm10, %xmm9
pxor %xmm15, %xmm9
packssdw %xmm9, %xmm9
packsswb %xmm9, %xmm9
pextrw $0x5, %xmm9, %ecx
shrl $0x8, %ecx
testb $0x1, %cl
je 0x4152
leal 0xb(%rax), %ecx
movb %cl, 0xb(%rbx,%rax)
movdqa %xmm6, %xmm9
pxor %xmm14, %xmm9
movdqa %xmm9, %xmm11
pcmpgtd %xmm8, %xmm11
pshufd $0xa0, %xmm11, %xmm10   # xmm10 = xmm11[0,0,2,2]
pshuflw $0xe8, %xmm10, %xmm12   # xmm12 = xmm10[0,2,2,3,4,5,6,7]
pcmpeqd %xmm8, %xmm9
pshufd $0xf5, %xmm9, %xmm9     # xmm9 = xmm9[1,1,3,3]
pshuflw $0xe8, %xmm9, %xmm13    # xmm13 = xmm9[0,2,2,3,4,5,6,7]
pand %xmm12, %xmm13
pshufd $0xf5, %xmm11, %xmm11   # xmm11 = xmm11[1,1,3,3]
pshuflw $0xe8, %xmm11, %xmm12   # xmm12 = xmm11[0,2,2,3,4,5,6,7]
por %xmm13, %xmm12
pxor %xmm15, %xmm12
packssdw %xmm12, %xmm12
packsswb %xmm12, %xmm12
pextrw $0x6, %xmm12, %ecx
testb $0x1, %cl
je 0x41ba
leal 0xc(%rax), %ecx
movb %cl, 0xc(%rbx,%rax)
pand %xmm10, %xmm9
por %xmm11, %xmm9
packssdw %xmm9, %xmm9
pxor %xmm15, %xmm9
packssdw %xmm9, %xmm9
packsswb %xmm9, %xmm9
pextrw $0x6, %xmm9, %ecx
shrl $0x8, %ecx
testb $0x1, %cl
je 0x41ed
leal 0xd(%rax), %ecx
movb %cl, 0xd(%rbx,%rax)
movdqa %xmm7, %xmm10
pxor %xmm14, %xmm10
movdqa %xmm10, %xmm11
pcmpgtd %xmm8, %xmm11
pshufd $0xa0, %xmm11, %xmm9    # xmm9 = xmm11[0,0,2,2]
pcmpeqd %xmm8, %xmm10
pshufd $0xf5, %xmm10, %xmm8    # xmm8 = xmm10[1,1,3,3]
movdqa %xmm8, %xmm12
pand %xmm9, %xmm12
pshufd $0xf5, %xmm11, %xmm10   # xmm10 = xmm11[1,1,3,3]
por %xmm10, %xmm12
packssdw %xmm12, %xmm11
pxor %xmm15, %xmm11
packssdw %xmm11, %xmm11
packsswb %xmm11, %xmm11
pextrw $0x7, %xmm11, %ecx
testb $0x1, %cl
je 0x424d
leal 0xe(%rax), %ecx
movb %cl, 0xe(%rbx,%rax)
pshufhw $0x84, %xmm9, %xmm9     # xmm9 = xmm9[0,1,2,3,4,5,4,6]
pshufhw $0x84, %xmm8, %xmm8     # xmm8 = xmm8[0,1,2,3,4,5,4,6]
pand %xmm9, %xmm8
pshufhw $0x84, %xmm10, %xmm9    # xmm9 = xmm10[0,1,2,3,4,5,4,6]
por %xmm8, %xmm9
pxor %xmm15, %xmm9
packssdw %xmm9, %xmm8
packsswb %xmm8, %xmm8
pextrw $0x7, %xmm8, %ecx
shrl $0x8, %ecx
testb $0x1, %cl
je 0x428d
leal 0xf(%rax), %ecx
movb %cl, 0xf(%rbx,%rax)
addq $0x10, %rax
movdqa 0xee66(%rip), %xmm8     # 0x13100
paddq %xmm8, %xmm0
paddq %xmm8, %xmm1
paddq %xmm8, %xmm2
paddq %xmm8, %xmm3
paddq %xmm8, %xmm4
paddq %xmm8, %xmm5
paddq %xmm8, %xmm6
paddq %xmm8, %xmm7
cmpq %rax, %r13
jne 0x3d9c
movq %r12, 0x58(%rsp)
callq 0x1070
movq %rax, %r13
callq 0x1070
cmpq %r13, %rax
je 0x42d8
callq 0x1070
movq %rax, %r13
callq 0x1070
subq %r13, %rax
pxor %xmm0, %xmm0
cmpq $0x1e847f, %rax         # imm = 0x1E847F
jg 0x435b
xorl %r14d, %r14d
movq 0xa0(%rsp), %rbp
movq %rbx, %r12
movq %r13, %rbx
movq %r15, %rdi
callq 0x9aca
movq %r12, %rdi
movq %rax, %rsi
movq 0x18(%rsp), %rdx
movq %r15, %rcx
movq %rbp, %r8
callq 0x969a
movq %rax, %r13
incl %r14d
callq 0x1070
subq %rbx, %rax
cmpq $0x1e8480, %rax         # imm = 0x1E8480
jl 0x430f
movq %r13, 0x10(%rsp)
xorps %xmm0, %xmm0
cvtsi2sd %r14d, %xmm0
movq 0x18(%rsp), %rbp
movq %rbx, %r13
movq %r12, %rbx
movq %xmm0, 0x80(%rsp)
callq 0x1070
movq %rax, %r14
movq 0x10(%rsp), %r12
movq %r12, %rdi
callq 0x7712
testl %eax, %eax
jne 0x4702
subq %r13, %r14
xorps %xmm3, %xmm3
cvtsi2sd %r14, %xmm3
movapd 0x20(%rsp), %xmm2
movapd %xmm2, %xmm0
movsd 0x80(%rsp), %xmm4
mulsd %xmm4, %xmm0
movapd %xmm3, %xmm1
divsd %xmm4, %xmm1
cmpltsd %xmm0, %xmm3
andpd %xmm3, %xmm1
andnpd %xmm2, %xmm3
orpd %xmm1, %xmm3
movq %r12, %xmm1
punpckldq 0xec77(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0xec7f(%rip), %xmm1     # 0x13050
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movsd 0x90(%rsp), %xmm1
divsd %xmm1, %xmm0
mulsd 0xec26(%rip), %xmm0     # 0x13018
movq 0x15bff(%rip), %rax     # 0x19ff8
movq (%rax), %rdi
movapd %xmm3, 0x80(%rsp)
divsd %xmm3, %xmm1
divsd 0xebff(%rip), %xmm1     # 0x13010
leaq 0xed4b(%rip), %rsi      # 0x13163
movq 0x98(%rsp), %rdx
movq 0x8(%rsp), %rcx
movl %r15d, %r8d
movl %r12d, %r9d
movapd %xmm0, 0x40(%rsp)
movapd %xmm1, 0x100(%rsp)
movb $0x2, %al
callq 0x1110
movq %rbp, %r14
movq %rbp, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x10c0
callq 0x1070
movq %rax, %r13
callq 0x1070
cmpq %r13, %rax
je 0x4459
callq 0x1070
movq %rax, %r12
callq 0x1070
subq %r12, %rax
xorpd %xmm0, %xmm0
cmpq $0x1e847f, %rax         # imm = 0x1E847F
jg 0x44e2
xorl %r14d, %r14d
movq 0x68(%rsp), %r13
movq 0x10(%rsp), %rbp
movq %r12, %r15
movq 0x38(%rsp), %r12
movq 0x18(%rsp), %rdi
movq 0xa8(%rsp), %rsi
movq %r12, %rdx
movq %rbp, %rcx
movq %r13, %r8
callq 0x818a
movq %rax, %rbx
incl %r14d
callq 0x1070
subq %r15, %rax
cmpq $0x1e8480, %rax         # imm = 0x1E8480
jl 0x4494
movq %rbx, 0x60(%rsp)
xorps %xmm0, %xmm0
cvtsi2sd %r14d, %xmm0
movq 0x18(%rsp), %r14
movq %r15, %r12
movq 0xa8(%rsp), %r15
movsd %xmm0, 0xb0(%rsp)
callq 0x1070
movq %rax, %r13
movq 0x60(%rsp), %rbx
movq %rbx, %rdi
callq 0x7712
testl %eax, %eax
jne 0x46b6
cmpq %r15, %rbx
jne 0x46b6
subq %r12, %r13
xorps %xmm3, %xmm3
cvtsi2sd %r13, %xmm3
movapd 0x20(%rsp), %xmm2
unpckhpd %xmm2, %xmm2            # xmm2 = xmm2[1,1]
movapd %xmm2, %xmm0
movsd 0xb0(%rsp), %xmm4
mulsd %xmm4, %xmm0
movapd %xmm3, %xmm1
divsd %xmm4, %xmm1
cmpltsd %xmm0, %xmm3
andpd %xmm3, %xmm1
andnpd %xmm2, %xmm3
orpd %xmm1, %xmm3
movq 0x15aa1(%rip), %r13     # 0x19ff8
movq (%r13), %rdi
movsd 0x90(%rsp), %xmm2
movapd %xmm3, 0x20(%rsp)
divsd %xmm3, %xmm2
divsd 0xea9a(%rip), %xmm2     # 0x13010
leaq 0xec16(%rip), %rsi      # 0x13193
movq 0x98(%rsp), %rbp
movl %ebp, %edx
movq 0x8(%rsp), %r12
movq %r12, %rcx
movl %r15d, %r8d
movq 0x10(%rsp), %r9
movdqa 0x40(%rsp), %xmm0
movdqa 0x100(%rsp), %xmm1
movapd %xmm2, 0xb0(%rsp)
movb $0x3, %al
callq 0x1110
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x55ae
movq 0x30(%rsp), %r14
cmpq %rax, %r14
movq 0x38(%rsp), %rbx
jne 0x473e
leal 0x1(%rbp), %eax
movdqa 0x80(%rsp), %xmm0
punpcklqdq 0x20(%rsp), %xmm0 # xmm0 = xmm0[0],mem[0]
movq %r15, 0x60(%rsp)
movq %r14, %r12
cmpl 0x15af6(%rip), %ebp     # 0x1a0ec
movl %eax, %edx
movq 0xd8(%rsp), %r13
jl 0x3d1a
movq 0x18(%rsp), %r13
movapd 0x100(%rsp), %xmm1
unpcklpd 0xb0(%rsp), %xmm1       # xmm1 = xmm1[0],mem[0]
movdqa %xmm0, 0x20(%rsp)
movq 0x70(%rsp), %r12
movq 0x10(%rsp), %r8
movapd 0x40(%rsp), %xmm3
jmp 0x465d
movq 0x18(%rsp), %r13
xorps %xmm1, %xmm1
cvtsi2sd %r15d, %xmm1
unpcklpd %xmm1, %xmm1            # xmm1 = xmm1[0,0]
movapd %xmm2, 0x20(%rsp)
divpd %xmm2, %xmm1
divpd 0xeab8(%rip), %xmm1     # 0x13110
movq 0x70(%rsp), %r12
movq 0x68(%rsp), %r14
movsd 0xe9ae(%rip), %xmm0     # 0x13018
ucomisd %xmm3, %xmm0
leaq 0xebbe(%rip), %rsi      # 0x13233
leaq 0xeb7f(%rip), %rax      # 0x131fb
cmovaq %rax, %rsi
movq 0x15971(%rip), %rax     # 0x19ff8
movq (%rax), %rdi
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
movq 0x8(%rsp), %rdx
movl %r15d, %ecx
movapd %xmm3, %xmm0
movb $0x3, %al
movq %r8, %rbp
callq 0x1110
movq %rbp, %r8
movapd 0x20(%rsp), %xmm2
jmp 0x3c29
movq 0x1593b(%rip), %r13     # 0x19ff8
movq (%r13), %rdi
leaq 0xefa1(%rip), %rsi      # 0x13669
movq 0x8(%rsp), %rdx
xorl %eax, %eax
callq 0x1110
movapd 0x20(%rsp), %xmm2
movlpd 0x80(%rsp), %xmm2       # xmm2 = mem[0],xmm2[1]
movq 0x30(%rsp), %r14
movq 0x10(%rsp), %r8
movapd 0x40(%rsp), %xmm3
movq 0x58(%rsp), %r13
movq 0x38(%rsp), %rbx
jmp 0x3c11
movq 0x158ef(%rip), %r13     # 0x19ff8
movq (%r13), %rdi
leaq 0xef2d(%rip), %rsi      # 0x13641
movq 0x8(%rsp), %rdx
xorl %eax, %eax
callq 0x1110
movq 0x30(%rsp), %r14
movq %r12, %r8
movapd 0x40(%rsp), %xmm3
movapd 0x20(%rsp), %xmm2
movq 0x58(%rsp), %r13
jmp 0x3c11
movq %rax, %r13
movq 0x158b0(%rip), %rax     # 0x19ff8
movq (%rax), %rdi
leaq 0xef42(%rip), %rsi      # 0x13694
movq %r12, %rdx
movl %r14d, %ecx
movl %r13d, %r8d
xorl %eax, %eax
callq 0x1110
movapd 0x80(%rsp), %xmm2
unpcklpd 0x20(%rsp), %xmm2       # xmm2 = xmm2[0],mem[0]
movq 0x10(%rsp), %r8
movapd 0x40(%rsp), %xmm3
jmp 0x3c11
xorl %ebx, %ebx
cmpl $0x1, 0x7c(%rsp)
je 0x47d0
movq %r12, %rdi
movq %r15, %rsi
movdqa 0xc0(%rsp), %xmm0
callq 0x1858
jmp 0x47d0
xorl %ebx, %ebx
jmp 0x47d0
movq (%r13), %rdi
leaq 0xedfd(%rip), %rsi      # 0x135ac
movq 0x8(%rsp), %rdx
jmp 0x47c4
movq (%r13), %rdi
leaq 0xecd6(%rip), %rsi      # 0x13497
movq %r14, %rdx
xorl %eax, %eax
callq 0x1110
movl $0xb, %ebx
movl %ebx, %eax
addq $0x728, %rsp            # imm = 0x728
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rsi
movq %rbx, %rdx
movq %r12, %rcx
callq 0x1817
movl $0xc, %ebx
jmp 0x47d0
movq 0x157f8(%rip), %rax     # 0x19ff8
movq (%rax), %rdi
leaq 0xed1a(%rip), %rsi      # 0x13524
movq 0x8(%rsp), %rdx
movl %r13d, %ecx
movl %r15d, %r8d
xorl %eax, %eax
callq 0x1110
movq %r14, %rdi
callq 0x1030
movq %rbx, %rdi
callq 0x1030
movl $0xd, %ebx
jmp 0x47d0
nop