// File: /workspace/github_c_makefile_star2_O0/Cyan4973[P]FiniteStateEntropy/programs/bench.c
// Function: BMK_benchMem
void BMK_benchMem(chunkParameters_t* chunkP, int nbChunks,
                  const char* inFileName, int benchedSize,
                  U64* totalCompressedSize, double* totalCompressionTime, double* totalDecompressionTime,
                  int nbSymbols, int memLog)
{
    int trial, chunkNb;
    size_t cSize = 0;
    double fastestC = 100000000., fastestD = 100000000.;
    double ratio = 0.;
    U32 crcCheck = 0;
    int nbDecodeLoops = ((100 MB) / (benchedSize+1)) + 1;
    U32 const crcOrig = XXH32(chunkP[0].origBuffer, benchedSize,0);
    size_t (*compressor)(void* dst, size_t, const void* src, size_t, unsigned, unsigned);
    size_t (*decompressor)(void* dst, size_t maxDstSize, const void* cSrc, size_t cSrcSize);
    size_t const nameLength = strlen(inFileName);

    /* Init */
    if (nameLength > 17) inFileName += nameLength-17;   /* display last 17 characters */
    if (nbSymbols == 3) {   /* switch to special mode */
        BMK_benchMem285 (chunkP, nbChunks, inFileName, benchedSize, totalCompressedSize, totalCompressionTime, totalDecompressionTime, memLog);
        return;
    }
    switch(BMK_byteCompressor)
    {
    default:
    case 1:
        compressor = FSE_compress2;
        decompressor = FSE_decompress;
        break;
    case 2:
        compressor = HUF_compress2;
        decompressor = HUF_decompress;
        break;
    case 3:
        compressor = BMK_ZLIBH_compress;
        decompressor = BMK_ZLIBH_decompress;
        break;
    }

    DISPLAY("\r%79s\r", "");
    for (trial = 1; trial <= nbIterations; trial++) {
        int nbLoops = 0;
        clock_t clockStart, clockDuration;

        /* Compression */
        DISPLAY("%1i-%-15.15s : %9i ->\r", trial, inFileName, benchedSize);
        { int i; for (i=0; i<benchedSize; i++) chunkP[0].compressedBuffer[i]=(char)i; }    /* warming up memory */

        clockStart = clock();
        while(clock() == clockStart);
        clockStart = clock();
        while(BMK_clockSpan(clockStart) < TIMELOOP) {
            for (chunkNb=0; chunkNb<nbChunks; chunkNb++) {
                size_t const cBSize = compressor(
                            chunkP[chunkNb].compressedBuffer, FSE_compressBound(chunkP[chunkNb].origSize),
                            chunkP[chunkNb].origBuffer, chunkP[chunkNb].origSize,
                            nbSymbols, memLog);
                if (FSE_isError(cBSize)) {
                    DISPLAY("!!! Error compressing block %i  !!!!  => %s   \n",
                            chunkNb, FSE_getErrorName(cBSize));
                    return;
                }
                chunkP[chunkNb].compressedSize = cBSize;
            }
            nbLoops++;
        }
        clockDuration = BMK_clockSpan(clockStart);
        clockDuration += !clockDuration;  /* to avoid division by zero */

        if ((double)clockDuration < fastestC * nbLoops * CLOCKS_PER_SEC)
            fastestC = (double) clockDuration / CLOCKS_PER_SEC / nbLoops;
        cSize=0;
        for (chunkNb=0; chunkNb<nbChunks; chunkNb++)
            cSize += chunkP[chunkNb].compressedSize ? chunkP[chunkNb].compressedSize : chunkP[chunkNb].origSize;
        ratio = (double)cSize / (double)benchedSize * 100.;

        DISPLAY("%1i-%-15.15s : %9i -> %9i (%5.2f%%),%7.1f MB/s\r",
                 trial, inFileName, (int)benchedSize,
                 (int)cSize, ratio,
                 (double)benchedSize / (1 MB) / fastestC);

        //if (loopNb == nbIterations) DISPLAY("\n"); continue;   /* skip decompression */
        /* Decompression */
        { int i; for (i=0; i<benchedSize; i++) chunkP[0].destBuffer[i]=0; }     /* zeroing area, for CRC checking */

        clockStart = clock();
        while(clock() == clockStart);
        clockStart = clock();
        for (nbLoops=0; nbLoops < nbDecodeLoops; nbLoops++) {
            for (chunkNb=0; chunkNb<nbChunks; chunkNb++) {
                size_t regenSize;

                switch(chunkP[chunkNb].compressedSize)
                {
                case 0:   /* not compressed block; just memcpy() it */
                    regenSize = chunkP[chunkNb].origSize;
                    memcpy(chunkP[chunkNb].destBuffer, chunkP[chunkNb].origBuffer, regenSize);
                    break;
                case 1:   /* single value byte; just memset() it */
                    regenSize = chunkP[chunkNb].origSize;
                    memset(chunkP[chunkNb].destBuffer, chunkP[chunkNb].origBuffer[0], chunkP[chunkNb].origSize);
                    break;
                default:
                    regenSize = decompressor(chunkP[chunkNb].destBuffer, chunkP[chunkNb].origSize,
                                             chunkP[chunkNb].compressedBuffer, chunkP[chunkNb].compressedSize);
                }

                if (0) {  /* debugging => look for wrong bytes */
                    const char* src = chunkP[chunkNb].origBuffer;
                    const char* regen = chunkP[chunkNb].destBuffer;
                    size_t origSize = chunkP[chunkNb].origSize;
                    size_t n;
                    for (n=0; (n<origSize) && (src[n]==regen[n]); n++);
                    if (n<origSize) {
                        DISPLAY("\n!!! %15s : Invalid block %i !!! pos %u/%u\n",
                                inFileName, chunkNb, (U32)n, (U32)origSize);
                        break;
                }   }

                if (regenSize != chunkP[chunkNb].origSize) {
                    DISPLAY("!! Error decompressing block %i of cSize %u !! => (%s)  \n",
                             chunkNb, (U32)chunkP[chunkNb].compressedSize, FSE_getErrorName(regenSize));
                    return;
            }   }
        }
        clockDuration = BMK_clockSpan(clockStart);

        if (clockDuration > 0) {
            if ((double)clockDuration < fastestD * nbDecodeLoops * CLOCKS_PER_SEC)
                fastestD = (double)clockDuration / CLOCKS_PER_SEC / nbDecodeLoops;
            assert(fastestD > 1./1000000000);   /* avoid overflow */
            nbDecodeLoops = (U32)(1. / fastestD) + 1;   /* aims for ~1sec */
        } else {
            assert(nbDecodeLoops < 20000000);  /* avoid overflow */
            nbDecodeLoops *= 100;
        }
        DISPLAY("%1i-%-15.15s : %9i -> %9i (%5.2f%%),%7.1f MB/s ,%7.1f MB/s\r",
                 trial, inFileName, (int)benchedSize,
                 (int)cSize, ratio,
                 (double)benchedSize / (1 MB) / fastestC,
                 (double)benchedSize / (1 MB) / fastestD);

        /* CRC Checking */
        crcCheck = XXH32(chunkP[0].destBuffer, benchedSize, 0);
        if (crcOrig!=crcCheck) {
            const char* src = chunkP[0].origBuffer;
            const char* fin = chunkP[0].destBuffer;
            const char* const srcStart = src;
            while (*src==*fin)
                src++, fin++;
            DISPLAY("\n!!! %15s : Invalid Checksum !!! pos %i/%i\n",
                    inFileName, (int)(src-srcStart), benchedSize);
            break;
    }   }

    if (crcOrig==crcCheck) {
        if (ratio<100.)
            DISPLAY("%-17.17s : %9i -> %9i (%5.2f%%),%7.1f MB/s ,%7.1f MB/s\n",
                     inFileName, (int)benchedSize,
                     (int)cSize, ratio,
                     (double)benchedSize / (1 MB) / fastestC,
                     (double)benchedSize / (1 MB) / fastestD);
        else
            DISPLAY("%-17.17s : %9i -> %9i (%5.1f%%),%7.1f MB/s ,%7.1f MB/s \n",
                     inFileName, (int)benchedSize,
                     (int)cSize, ratio,
                     (double)benchedSize / (1 MB) / fastestC,
                     (double)benchedSize / (1 MB) / fastestD);
    }
    else DISPLAY("\n");
    *totalCompressedSize    += cSize;
    *totalCompressionTime   += fastestC;
    *totalDecompressionTime += fastestD;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x130, %rsp            # imm = 0x130
movl 0x20(%rbp), %eax
movl 0x18(%rbp), %eax
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq $0x0, -0x40(%rbp)
movsd 0x2359d(%rip), %xmm0    # 0x25008
movsd %xmm0, -0x48(%rbp)
movsd 0x23590(%rip), %xmm0    # 0x25008
movsd %xmm0, -0x50(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x58(%rbp)
movl $0x0, -0x5c(%rbp)
movl -0x1c(%rbp), %ecx
addl $0x1, %ecx
movl $0x6400000, %eax        # imm = 0x6400000
xorl %edx, %edx
divl %ecx
addl $0x1, %eax
movl %eax, -0x60(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rdi
movslq -0x1c(%rbp), %rsi
xorl %edx, %edx
callq 0x5e60
movl %eax, -0x64(%rbp)
movq -0x18(%rbp), %rdi
callq 0x1090
movq %rax, -0x80(%rbp)
cmpq $0x11, -0x80(%rbp)
jbe 0x1adb
movq -0x80(%rbp), %rax
subq $0x11, %rax
addq -0x18(%rbp), %rax
movq %rax, -0x18(%rbp)
cmpl $0x3, 0x18(%rbp)
jne 0x1b10
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
movl -0x1c(%rbp), %ecx
movq -0x28(%rbp), %r8
movq -0x30(%rbp), %r9
movq 0x10(%rbp), %r10
movl 0x20(%rbp), %eax
movq %r10, (%rsp)
movl %eax, 0x8(%rsp)
callq 0x1350
jmp 0x24c2
movl 0x2a5c2(%rip), %eax     # 0x2c0d8
movl %eax, -0xd4(%rbp)
subl $0x1, %eax
je 0x1b3f
jmp 0x1b23
movl -0xd4(%rbp), %eax
subl $0x2, %eax
je 0x1b57
jmp 0x1b30
movl -0xd4(%rbp), %eax
subl $0x3, %eax
je 0x1b6f
jmp 0x1b3d
jmp 0x1b3f
leaq 0x10d1a(%rip), %rax     # 0x12860
movq %rax, -0x70(%rbp)
leaq 0xe9af(%rip), %rax      # 0x10500
movq %rax, -0x78(%rbp)
jmp 0x1b85
leaq 0x15012(%rip), %rax     # 0x16b70
movq %rax, -0x70(%rbp)
leaq 0x17467(%rip), %rax     # 0x18fd0
movq %rax, -0x78(%rbp)
jmp 0x1b85
leaq -0x1b6(%rip), %rax      # 0x19c0
movq %rax, -0x70(%rbp)
leaq -0x181(%rip), %rax      # 0x1a00
movq %rax, -0x78(%rbp)
movq 0x2a46c(%rip), %rax     # 0x2bff8
movq (%rax), %rdi
leaq 0x234ef(%rip), %rsi     # 0x25085
leaq 0x23908(%rip), %rdx     # 0x254a5
movb $0x0, %al
callq 0x1100
movl $0x1, -0x34(%rbp)
movl -0x34(%rbp), %eax
cmpl 0x2a530(%rip), %eax     # 0x2c0e4
jg 0x23ad
movl $0x0, -0x84(%rbp)
movq 0x2a42d(%rip), %rax     # 0x2bff8
movq (%rax), %rdi
movl -0x34(%rbp), %edx
movq -0x18(%rbp), %rcx
movl -0x1c(%rbp), %r8d
leaq 0x235cc(%rip), %rsi     # 0x251ac
movb $0x0, %al
callq 0x1100
movl $0x0, -0x9c(%rbp)
movl -0x9c(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jge 0x1c27
movl -0x9c(%rbp), %eax
movb %al, %dl
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rax
movslq -0x9c(%rbp), %rcx
movb %dl, (%rax,%rcx)
movl -0x9c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x9c(%rbp)
jmp 0x1bf1
callq 0x1070
movq %rax, -0x90(%rbp)
callq 0x1070
cmpq -0x90(%rbp), %rax
jne 0x1c43
jmp 0x1c33
callq 0x1070
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rdi
callq 0x19a0
cmpq $0x1e8480, %rax         # imm = 0x1E8480
jge 0x1d95
movl $0x0, -0x38(%rbp)
movl -0x38(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0x1d81
movq -0x70(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rax
movq %rax, -0xe8(%rbp)
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rdi
callq 0x12490
movq -0xe8(%rbp), %rdi
movq %rax, %rsi
movq -0xe0(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movq 0x8(%rcx), %rdx
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %r8
imulq $0x38, %r8, %r8
addq %r8, %rcx
movq 0x10(%rcx), %rcx
movl 0x18(%rbp), %r8d
movl 0x20(%rbp), %r9d
callq *%rax
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rdi
callq 0xe390
cmpl $0x0, %eax
je 0x1d59
movq 0x2a2e1(%rip), %rax     # 0x2bff8
movq (%rax), %rax
movq %rax, -0xf8(%rbp)
movl -0x38(%rbp), %eax
movl %eax, -0xec(%rbp)
movq -0xa8(%rbp), %rdi
callq 0xe3d0
movq -0xf8(%rbp), %rdi
movl -0xec(%rbp), %edx
movq %rax, %rcx
leaq 0x23476(%rip), %rsi     # 0x251c3
movb $0x0, %al
callq 0x1100
jmp 0x24c2
movq -0xa8(%rbp), %rcx
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 0x20(%rax)
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x1c6e
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
jmp 0x1c4f
movq -0x90(%rbp), %rdi
callq 0x19a0
movq %rax, -0x98(%rbp)
cmpq $0x0, -0x98(%rbp)
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cltq
addq -0x98(%rbp), %rax
movq %rax, -0x98(%rbp)
cvtsi2sdq -0x98(%rbp), %xmm1
movsd -0x48(%rbp), %xmm0
cvtsi2sdl -0x84(%rbp), %xmm2
mulsd %xmm2, %xmm0
movsd 0x23234(%rip), %xmm2    # 0x25020
mulsd %xmm2, %xmm0
ucomisd %xmm1, %xmm0
jbe 0x1e1c
cvtsi2sdq -0x98(%rbp), %xmm0
movsd 0x23219(%rip), %xmm1    # 0x25020
divsd %xmm1, %xmm0
cvtsi2sdl -0x84(%rbp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x48(%rbp)
movq $0x0, -0x40(%rbp)
movl $0x0, -0x38(%rbp)
movl -0x38(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0x1e99
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
cmpq $0x0, 0x20(%rax)
je 0x1e65
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movq 0x20(%rax), %rax
movq %rax, -0x100(%rbp)
jmp 0x1e7f
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rax
movq %rax, -0x100(%rbp)
movq -0x100(%rbp), %rax
addq -0x40(%rbp), %rax
movq %rax, -0x40(%rbp)
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x1e2b
movaps 0x231a0(%rip), %xmm1    # 0x25040
movq -0x40(%rbp), %xmm0
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x2319f(%rip), %xmm1    # 0x25050
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
cvtsi2sdl -0x1c(%rbp), %xmm1
divsd %xmm1, %xmm0
movsd 0x23147(%rip), %xmm1    # 0x25018
mulsd %xmm1, %xmm0
movsd %xmm0, -0x58(%rbp)
movq 0x2a117(%rip), %rax     # 0x2bff8
movq (%rax), %rdi
movl -0x34(%rbp), %edx
movq -0x18(%rbp), %rcx
movl -0x1c(%rbp), %r8d
movq -0x40(%rbp), %rax
movl %eax, %r9d
movsd -0x58(%rbp), %xmm0
cvtsi2sdl -0x1c(%rbp), %xmm1
movsd 0x23120(%rip), %xmm2    # 0x25028
divsd %xmm2, %xmm1
divsd -0x48(%rbp), %xmm1
leaq 0x232db(%rip), %rsi     # 0x251f3
movb $0x2, %al
callq 0x1100
movl $0x0, -0xac(%rbp)
movl -0xac(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jge 0x1f58
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movslq -0xac(%rbp), %rcx
movb $0x0, (%rax,%rcx)
movl -0xac(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xac(%rbp)
jmp 0x1f29
callq 0x1070
movq %rax, -0x90(%rbp)
callq 0x1070
cmpq -0x90(%rbp), %rax
jne 0x1f74
jmp 0x1f64
callq 0x1070
movq %rax, -0x90(%rbp)
movl $0x0, -0x84(%rbp)
movl -0x84(%rbp), %eax
cmpl -0x60(%rbp), %eax
jge 0x2191
movl $0x0, -0x38(%rbp)
movl -0x38(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0x217b
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
movq 0x20(%rax,%rcx), %rax
movq %rax, -0x108(%rbp)
testq %rax, %rax
je 0x1fdd
jmp 0x1fcb
movq -0x108(%rbp), %rax
subq $0x1, %rax
je 0x202e
jmp 0x208e
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rax
movq %rax, -0xb8(%rbp)
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movq 0x28(%rax), %rdi
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rsi
movq -0xb8(%rbp), %rdx
callq 0x1120
jmp 0x20e7
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rax
movq %rax, -0xb8(%rbp)
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movq 0x28(%rax), %rdi
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
movsbl (%rax), %eax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movq 0x10(%rcx), %rdx
movzbl %al, %esi
callq 0x10c0
jmp 0x20e7
movq -0x78(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movq 0x28(%rcx), %rdi
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movq 0x10(%rcx), %rsi
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
movq 0x18(%rcx), %rdx
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %r8
imulq $0x38, %r8, %r8
addq %r8, %rcx
movq 0x20(%rcx), %rcx
callq *%rax
movq %rax, -0xb8(%rbp)
movq -0xb8(%rbp), %rax
movq -0x8(%rbp), %rcx
movslq -0x38(%rbp), %rdx
imulq $0x38, %rdx, %rdx
addq %rdx, %rcx
cmpq 0x10(%rcx), %rax
je 0x216b
movq 0x29eee(%rip), %rax     # 0x2bff8
movq (%rax), %rax
movq %rax, -0x118(%rbp)
movl -0x38(%rbp), %eax
movl %eax, -0x110(%rbp)
movq -0x8(%rbp), %rax
movslq -0x38(%rbp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movq 0x20(%rax), %rax
movl %eax, -0x10c(%rbp)
movq -0xb8(%rbp), %rdi
callq 0xe3d0
movq -0x118(%rbp), %rdi
movl -0x110(%rbp), %edx
movl -0x10c(%rbp), %ecx
movq %rax, %r8
leaq 0x230c4(%rip), %rsi     # 0x25223
movb $0x0, %al
callq 0x1100
jmp 0x24c2
jmp 0x216d
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x1fa0
jmp 0x217d
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
jmp 0x1f8a
movq -0x90(%rbp), %rdi
callq 0x19a0
movq %rax, -0x98(%rbp)
cmpq $0x0, -0x98(%rbp)
jle 0x2250
cvtsi2sdq -0x98(%rbp), %xmm1
movsd -0x50(%rbp), %xmm0
cvtsi2sdl -0x60(%rbp), %xmm2
mulsd %xmm2, %xmm0
movsd 0x22e4f(%rip), %xmm2    # 0x25020
mulsd %xmm2, %xmm0
ucomisd %xmm1, %xmm0
jbe 0x21fe
cvtsi2sdq -0x98(%rbp), %xmm0
movsd 0x22e34(%rip), %xmm1    # 0x25020
divsd %xmm1, %xmm0
cvtsi2sdl -0x60(%rbp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x50(%rbp)
movsd -0x50(%rbp), %xmm0
movsd 0x22e25(%rip), %xmm1    # 0x25030
ucomisd %xmm1, %xmm0
jbe 0x2213
jmp 0x2232
leaq 0x23043(%rip), %rdi     # 0x2525d
leaq 0x23055(%rip), %rsi     # 0x25276
movl $0x1af, %edx            # imm = 0x1AF
leaq 0x23051(%rip), %rcx     # 0x2527e
callq 0x10b0
movsd -0x50(%rbp), %xmm1
movsd 0x22df9(%rip), %xmm0    # 0x25038
divsd %xmm1, %xmm0
cvttsd2si %xmm0, %rax
addl $0x1, %eax
movl %eax, -0x60(%rbp)
jmp 0x2281
cmpl $0x1312d00, -0x60(%rbp) # imm = 0x1312D00
jge 0x225b
jmp 0x227a
leaq 0x23080(%rip), %rdi     # 0x252e2
leaq 0x2300d(%rip), %rsi     # 0x25276
movl $0x1b2, %edx            # imm = 0x1B2
leaq 0x23009(%rip), %rcx     # 0x2527e
callq 0x10b0
imull $0x64, -0x60(%rbp), %eax
movl %eax, -0x60(%rbp)
movq 0x29d70(%rip), %rax     # 0x2bff8
movq (%rax), %rdi
movl -0x34(%rbp), %edx
movq -0x18(%rbp), %rcx
movl -0x1c(%rbp), %r8d
movq -0x40(%rbp), %rax
movl %eax, %r9d
movsd -0x58(%rbp), %xmm0
cvtsi2sdl -0x1c(%rbp), %xmm1
movsd 0x22d79(%rip), %xmm2    # 0x25028
divsd %xmm2, %xmm1
divsd -0x48(%rbp), %xmm1
cvtsi2sdl -0x1c(%rbp), %xmm2
movsd 0x22d63(%rip), %xmm3    # 0x25028
divsd %xmm3, %xmm2
divsd -0x50(%rbp), %xmm2
leaq 0x23026(%rip), %rsi     # 0x252fb
movb $0x3, %al
callq 0x1100
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rdi
movslq -0x1c(%rbp), %rsi
xorl %edx, %edx
callq 0x5e60
movl %eax, -0x5c(%rbp)
movl -0x64(%rbp), %eax
cmpl -0x5c(%rbp), %eax
je 0x239d
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0xc0(%rbp)
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0xc8(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0xc0(%rbp), %rax
movsbl (%rax), %eax
movq -0xc8(%rbp), %rcx
movsbl (%rcx), %ecx
cmpl %ecx, %eax
jne 0x2368
movq -0xc0(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xc0(%rbp)
movq -0xc8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xc8(%rbp)
jmp 0x232a
movq 0x29c89(%rip), %rax     # 0x2bff8
movq (%rax), %rdi
movq -0x18(%rbp), %rdx
movq -0xc0(%rbp), %rax
movq -0xd0(%rbp), %rcx
subq %rcx, %rax
movl %eax, %ecx
movl -0x1c(%rbp), %r8d
leaq 0x22fa3(%rip), %rsi     # 0x25337
movb $0x0, %al
callq 0x1100
jmp 0x23ad
jmp 0x239f
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x1bab
movl -0x64(%rbp), %eax
cmpl -0x5c(%rbp), %eax
jne 0x247a
movsd 0x22c57(%rip), %xmm0    # 0x25018
ucomisd -0x58(%rbp), %xmm0
jbe 0x2421
movq 0x29c29(%rip), %rax     # 0x2bff8
movq (%rax), %rdi
movq -0x18(%rbp), %rdx
movl -0x1c(%rbp), %ecx
movq -0x40(%rbp), %rax
movl %eax, %r8d
movsd -0x58(%rbp), %xmm0
cvtsi2sdl -0x1c(%rbp), %xmm1
movsd 0x22c36(%rip), %xmm2    # 0x25028
divsd %xmm2, %xmm1
divsd -0x48(%rbp), %xmm1
cvtsi2sdl -0x1c(%rbp), %xmm2
movsd 0x22c20(%rip), %xmm3    # 0x25028
divsd %xmm3, %xmm2
divsd -0x50(%rbp), %xmm2
leaq 0x22f4b(%rip), %rsi     # 0x25363
movb $0x3, %al
callq 0x1100
jmp 0x2478
movq 0x29bd0(%rip), %rax     # 0x2bff8
movq (%rax), %rdi
movq -0x18(%rbp), %rdx
movl -0x1c(%rbp), %ecx
movq -0x40(%rbp), %rax
movl %eax, %r8d
movsd -0x58(%rbp), %xmm0
cvtsi2sdl -0x1c(%rbp), %xmm1
movsd 0x22bdd(%rip), %xmm2    # 0x25028
divsd %xmm2, %xmm1
divsd -0x48(%rbp), %xmm1
cvtsi2sdl -0x1c(%rbp), %xmm2
movsd 0x22bc7(%rip), %xmm3    # 0x25028
divsd %xmm3, %xmm2
divsd -0x50(%rbp), %xmm2
leaq 0x22f2a(%rip), %rsi     # 0x2539b
movb $0x3, %al
callq 0x1100
jmp 0x2492
movq 0x29b77(%rip), %rax     # 0x2bff8
movq (%rax), %rdi
leaq 0x23019(%rip), %rsi     # 0x254a4
movb $0x0, %al
callq 0x1100
movq -0x40(%rbp), %rcx
movq -0x28(%rbp), %rax
addq (%rax), %rcx
movq %rcx, (%rax)
movsd -0x48(%rbp), %xmm0
movq -0x30(%rbp), %rax
addsd (%rax), %xmm0
movsd %xmm0, (%rax)
movsd -0x50(%rbp), %xmm0
movq 0x10(%rbp), %rax
addsd (%rax), %xmm0
movsd %xmm0, (%rax)
addq $0x130, %rsp            # imm = 0x130
popq %rbp
retq
nopl (%rax,%rax)