// File: /workspace/github_cpp_makefile_star2_O2/ctSkennerton[P]fxtract/util/stress.c
// Function: main
int
main(int argc, char **argv)
{
    setvbuf(stdout, NULL, _IOLBF, 0);
    int         count = 10001;  // count MUST be odd, or hash is always zero!
    int         tgtlen, patlen, m, t, p, i, r;
    intptr_t    hash = 0, exp = 0;
    int         tv[] = { 65536, 32768, 16384, 8192, 4096, 2048, 1024,
                         962, 961, 960, 512, 256, 128, 64, 32, 16, 8, 0 };
    int         pv[] = { 1025, 1024, 1023, 
                         714, 713, 712, 711, 258, 
                         257, 256, 255, 254, 
                         130, 129, 128, 127, 126,
                         98, 97, 96, 95, 94, 
                         66,  65,  64,  63,  62, 
                         50, 49, 48, 47, 46, 34,  33,  32,  31,  30, 23, 22, 21,
                         18,  17,  16,  15,  14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 0 };
    char        pat[9999], tgt[99999];
    int         lo, hi;
    switch (argc) {
    case 1: lo = -(hi = 4); break;
    case 2: lo = -(hi = atoi(argv[1])); break;
    case 3: lo = atoi(argv[1]), hi = atoi(argv[2]); break;
    default: die("Usage: stress <limit>  or  stress <min> <max>");
    }

    for (m = lo; m <= hi; m++) {
        printf("M TARG. PATT | SSE2 BERG WINS BNDM | RG7g RG7h RG7s RG7w best winner(s)\n");
        for (t = 0; (tgtlen = tv[t]); ++t) {
            for (p = 0; (patlen = pv[p]); ++p) {
                if (patlen >= tgtlen || patlen <= m || patlen <= -m) continue;

                char c258[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789,abcdefghijklmnopqrstuvwxyz.AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz0918273645.5463728190zZyYxXwWvVuUtTsSrRqQpPoOnNmMlLkKjJiIhHgGfFeEdDcCbBaA.zyxwvutsrqponmlkjihgfedcba,9876543210ZYXWVUTSRQPONMLKJIHGFEDCBA,@ACEGIKMOQSUW";
                if (patlen < (int)sizeof c258) {
                    memcpy(pat, c258, patlen);
                } else {
                    strcpy(pat, c258);
                    char flip = 3, *cp;
                    while ((int)strlen(pat) < patlen) {
                        for (cp = c258; *cp; cp++) *cp ^= flip;
                        strcat(pat, c258);
                        flip <<= 1;
                    }
                }
                pat[patlen] = 0;

                if  (m < 0) for (i = 0; i < tgtlen; i -= m) memcpy(tgt+i, &pat[patlen+m], -m);
                else if (m) for (i = 0; i < tgtlen; i += m) memcpy(tgt+i, pat, m);
                else memset(tgt, '-', tgtlen);
                strcpy(tgt+tgtlen, pat);
                // The "hash ^=" is necessary, else gcc OPTIMIZES OUT the strstr calls.
#               define DO_MEM(T,F) \
                            double T = tick(); \
                            for (r = 1; r < 6553600/count; ++r, tgt[1] ^= 1) \
                                hash ^= (intptr_t)F(tgt, tgtlen+patlen, pat, patlen); \
                            T = tick() - T; if (F == bndmem && patlen > 128) T = 0; \
                            if (exp && hash != exp) fprintf(stderr, #F "(%d,%d) failed\n", tgtlen,patlen)
#               define DO_STR(T,F) \
                            double T = tick(); \
                            for (r = 1; r < 6553600/count; ++r, tgt[1] ^= 1) \
                                hash ^= (intptr_t)F(tgt, pat); \
                            T = tick() - T
                DO_STR(tbase, strstr);  // sets exp[]
                exp = hash;
                DO_STR(tsse2, sse2str);
                DO_STR(tberg, bergstr);
//                DO_STR(tchrs, strchrs);
                DO_STR(twins, winstr);
                DO_MEM(tbndm, bndmem);
                DO_MEM(trg7g, Railgun7g);
                DO_MEM(trg7h, Railgun7h);
                DO_MEM(trg7s, Railgun7s);
                DO_MEM(trg7w, Railgun7w);
#                   undef  DO_MEM
#                   undef  DO_STR

                double *timev[] =    { &tbase, &tsse2, &tberg, &twins, &tbndm, &trg7g, &trg7h, &trg7s, &trg7w, NULL };
                char const *namev[] = { "base", "sse2", "berg", "wins", "bndm", "gull", "hash", "seki", "wolf", NULL };
                int b = 0;
                for (i = 1; timev[i]; ++i) if (*timev[i] && *timev[b] > *timev[i]) b = i;
                
                printf("%1d %5d %4d | %4.0f %4.0f %4.0f %4.0f | %4.0f %4.0f %4.0f %4.0f %4.0f %s",
                       m, tgtlen, patlen,
                       tsse2 * 100 / tbase,
                       tberg * 100 / tbase,
                       twins * 100 / tbase,
                       tbndm * 100 / tbase,
                       trg7g * 100 / tbase,
                       trg7h * 100 / tbase,
                       trg7s * 100 / tbase,
                       trg7w * 100 / tbase,
                       *timev[b] * 100 / tbase,
                       namev[b]);

                for (i = 0; timev[i]; ++i)
                    if (i != b && *timev[i] && *timev[i] < 1.1 * *timev[b])
                        printf(",%s", namev[i]);

                putchar('\n');
            }
        }
    }

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x6b848, %rsp          # imm = 0x6B848
movq %rsi, %r15
movl %edi, %ebp
movq 0x8ac7(%rip), %rax      # 0xbfc0
movq (%rax), %rdi
pushq $0x1
popq %rdx
xorl %esi, %esi
xorl %ecx, %ecx
callq 0x3030
cmpl $0x1, %ebp
je 0x3531
cmpl $0x3, %ebp
je 0x3539
cmpl $0x2, %ebp
jne 0x550e
movq 0x8(%r15), %rdi
callq 0x3310
movl %eax, %ebp
movl %eax, 0x94(%rsp)
negl %ebp
jmp 0x3554
pushq $-0x4
popq %rbp
pushq $0x4
popq %rax
jmp 0x354d
movq 0x8(%r15), %rdi
callq 0x3310
movl %eax, %ebp
movq 0x10(%r15), %rdi
callq 0x3310
movl %eax, 0x94(%rsp)
leaq 0x4b35(%rip), %rbx      # 0x8090
leaq 0x4d7e(%rip), %r15      # 0x82e0
leaq 0x580(%rsp), %r12
leaq 0x31a0(%rsp), %r13
xorl %r14d, %r14d
cmpl 0x94(%rsp), %ebp
jg 0x54fa
movl %ebp, %ebp
leaq 0x4d0b(%rip), %rdi      # 0x8296
callq 0x3300
movl %ebp, %eax
negl %eax
movq %rax, 0x138(%rsp)
xorl %ecx, %ecx
movq %rbp, 0x148(%rsp)
cmpq $0x11, %rcx
je 0x54f3
leaq 0x4a89(%rip), %rax      # 0x8040
movslq (%rax,%rcx,4), %rax
leaq (%rsp,%rax), %rdx
addq $0x31a0, %rdx           # imm = 0x31A0
movq %rdx, 0x98(%rsp)
leaq -0x2(%rax), %rdx
movq %rdx, 0x178(%rsp)
leal -0x1(%rax), %edx
movl %edx, 0xcc(%rsp)
movslq %edx, %rdx
leaq 0x31a0(%rsp,%rdx), %rsi
movq %rsi, 0x108(%rsp)
movq %rdx, 0x158(%rsp)
incq %rdx
movq %rdx, 0x130(%rsp)
movl %eax, %edx
movq %rdx, 0x160(%rsp)
xorl %edx, %edx
movq %rcx, 0x150(%rsp)
movq %rax, 0x18(%rsp)
cmpq $0x38, %rdx
je 0x54eb
movq %rdx, 0x38(%rsp)
movl (%rbx,%rdx,4), %edx
cmpl %eax, %edx
jge 0x541b
cmpl %ebp, %edx
jle 0x541b
cmpl 0x138(%rsp), %edx
jle 0x541b
movq %rdx, 0x10(%rsp)
movslq %edx, %rbx
movl $0x10c, %edx            # imm = 0x10C
movq %r12, %rdi
movq %r15, %rsi
callq 0x3160
movq 0x38(%rsp), %rax
addq $-0x7, %rax
cmpq $0x31, %rax
movq %rbx, 0x70(%rsp)
ja 0x36a0
leaq 0x690(%rsp), %r15
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x3160
movq 0x18(%rsp), %rdx
movq 0x10(%rsp), %rcx
jmp 0x36f6
movl $0x10c, %edx            # imm = 0x10C
leaq 0x690(%rsp), %rdi
movq %r15, %rsi
movq %rdi, %r15
callq 0x3160
movb $0x3, %bl
movq %r15, %rdi
callq 0x30d0
movq 0x10(%rsp), %rcx
cmpl %eax, %ecx
jle 0x36ec
movq %r12, %rax
movb (%rax), %cl
testb %cl, %cl
je 0x36dd
xorb %bl, %cl
movb %cl, (%rax)
incq %rax
jmp 0x36ce
movq %r15, %rdi
movq %r12, %rsi
callq 0x3370
addb %bl, %bl
jmp 0x36ba
movq 0x18(%rsp), %rdx
movq 0x70(%rsp), %rbx
movb $0x0, 0x690(%rsp,%rbx)
testl %ebp, %ebp
movq 0x138(%rsp), %r12
movq %r14, 0x58(%rsp)
js 0x3737
testq %rbp, %rbp
je 0x376e
xorl %ebx, %ebx
movq %r13, %r14
cmpl %ebx, %edx
jle 0x3779
movq %r14, %rdi
movq %r15, %rsi
movq %rbp, %rdx
callq 0x3160
addq %rbp, %r14
addl %ebp, %ebx
movq 0x18(%rsp), %rdx
jmp 0x3719
leal (%rcx,%rbp), %eax
cltq
leaq (%rsp,%rax), %r14
addq $0x690, %r14            # imm = 0x690
xorl %ebx, %ebx
cmpl %edx, %ebx
jge 0x3779
movl %ebx, %eax
leaq (%rsp,%rax), %rdi
addq $0x31a0, %rdi           # imm = 0x31A0
movq %r14, %rsi
movq %r12, %rdx
callq 0x3160
subl %ebp, %ebx
movq 0x18(%rsp), %rdx
jmp 0x3749
movq %r13, %rdi
pushq $0x2d
popq %rsi
callq 0x3110
movq 0x98(%rsp), %rdi
movq %r15, %rsi
callq 0x31b0
callq 0x6791
movsd %xmm0, 0xc0(%rsp)
movl $0x28e, %ebx            # imm = 0x28E
movb 0x31a1(%rsp), %bpl
movq 0x58(%rsp), %r14
subl $0x1, %ebx
jb 0x37ca
movq %r13, %rdi
movq %r15, %rsi
callq 0x3080
xorq %rax, %r14
xorb $0x1, %bpl
movb %bpl, 0x31a1(%rsp)
jmp 0x37a9
callq 0x6791
subsd 0xc0(%rsp), %xmm0
movsd %xmm0, 0xc0(%rsp)
callq 0x6791
movsd %xmm0, 0x100(%rsp)
movl $0x28e, %ebx            # imm = 0x28E
movq %r14, %r12
subl $0x1, %ebx
jb 0x3814
movq %r13, %rdi
movq %r15, %rsi
callq 0x69ad
xorq %rax, %r12
xorb $0x1, 0x31a1(%rsp)
jmp 0x37f7
callq 0x6791
subsd 0x100(%rsp), %xmm0
movsd %xmm0, 0x100(%rsp)
callq 0x6791
movsd %xmm0, 0xf8(%rsp)
movb 0x690(%rsp), %al
movb 0x691(%rsp), %cl
movb 0x31a1(%rsp), %dl
movzbl 0x692(%rsp), %esi
pushq $0x1
popq %rdi
cmpl $0x28f, %edi            # imm = 0x28F
je 0x3934
movq %r13, %r9
testb %al, %al
je 0x3920
movq %r13, %r8
movb (%r8), %r9b
testb %r9b, %r9b
je 0x3915
incq %r8
cmpb %al, %r9b
jne 0x3873
testb %cl, %cl
je 0x391a
movb (%r8), %r10b
cmpb %cl, %r10b
je 0x38c5
cmpb %al, %r10b
je 0x38bc
testb %r10b, %r10b
je 0x3915
movb 0x1(%r8), %r9b
cmpb %al, %r9b
je 0x38b9
testb %r9b, %r9b
je 0x3915
movb 0x2(%r8), %r10b
addq $0x2, %r8
jmp 0x3897
incq %r8
movb 0x1(%r8), %r10b
incq %r8
jmp 0x3892
leaq -0x1(%r8), %r9
movl %esi, %r11d
cmpb %sil, 0x1(%r8)
jne 0x390b
xorl %r10d, %r10d
movl %esi, %r11d
testl %r11d, %r11d
je 0x3920
movb 0x2(%r8,%r10), %bl
movzbl 0x693(%rsp,%r10), %r11d
cmpb %r11b, %bl
jne 0x390b
testb %bl, %bl
je 0x3920
movzbl 0x694(%rsp,%r10), %r11d
leaq 0x2(%r10), %rbx
cmpb %r11b, 0x3(%r8,%r10)
movq %rbx, %r10
je 0x38d8
movl %ecx, %r10d
testl %r11d, %r11d
jne 0x3897
jmp 0x3920
xorl %r9d, %r9d
jmp 0x3920
decq %r8
movq %r8, %r9
xorq %r9, %r12
incl %edi
xorb $0x1, %dl
movb %dl, 0x31a1(%rsp)
jmp 0x3859
movq %r12, 0x30(%rsp)
movq %r14, 0x58(%rsp)
callq 0x6791
subsd 0xf8(%rsp), %xmm0
movsd %xmm0, 0xf8(%rsp)
callq 0x6791
movsd %xmm0, 0xf0(%rsp)
movq %r15, %rdi
callq 0x30d0
movq %rax, %r14
movq 0x690(%rsp), %rbx
movsbl %bl, %eax
movl %eax, 0x20(%rsp)
leal -0xc(%r14), %r15d
leal -0x8(%r14), %ebp
pushq $0x1
popq %r12
movabsq $0x100000000000000, %r8 # imm = 0x100000000000000
leaq 0x467e(%rip), %r9       # 0x8018
cmpl $0x28f, %r12d           # imm = 0x28F
je 0x3cc6
cmpl $0x8, %r14d
ja 0x3be8
movl %r14d, %eax
movslq (%r9,%rax,4), %rcx
addq %r9, %rcx
movq %r13, %rax
jmpq *%rcx
movq %r13, %rdi
movl 0x20(%rsp), %esi
callq 0x30c0
leaq 0x4645(%rip), %r9       # 0x8018
movabsq $0x100000000000000, %r8 # imm = 0x100000000000000
jmp 0x3cac
movl 0x31a0(%rsp), %ecx
movl $0x1010100, %eax        # imm = 0x1010100
subl %ecx, %eax
orl %ecx, %eax
notl %eax
testl $0x80808080, %eax       # imm = 0x80808080
jne 0x3caa
movq %r13, %rdx
cmpl %ebx, %ecx
je 0x3cc1
movl 0x1(%rdx), %ecx
incq %rdx
movl $0x0, %eax
cmpl $0x1000000, %ecx        # imm = 0x1000000
jae 0x3a02
jmp 0x3cac
movzwl 0x31a0(%rsp), %ecx
testb %cl, %cl
je 0x3caa
movq %r13, %rax
cmpw $0x100, %cx             # imm = 0x100
jb 0x3caa
cmpw %bx, %cx
je 0x3cac
movzwl 0x1(%rax), %ecx
incq %rax
jmp 0x3a35
movl 0x31a0(%rsp), %ecx
movl $0x10100, %eax          # imm = 0x10100
subl %ecx, %eax
orl %ecx, %eax
notl %eax
testl $0x808080, %eax         # imm = 0x808080
jne 0x3caa
movq %r13, %rax
movl %ecx, %edx
xorl %ebx, %edx
testl $0xffffff, %edx         # imm = 0xFFFFFF
je 0x3cac
cmpl $0x1000000, %ecx        # imm = 0x1000000
jb 0x3caa
movl 0x1(%rax), %ecx
incq %rax
jmp 0x3a72
movq 0x31a0(%rsp), %rcx
movabsq $0x1010101010100, %rax  # imm = 0x1010101010100
subq %rcx, %rax
orq %rcx, %rax
notq %rax
movabsq $0x80808080808080, %rdx # imm = 0x80808080808080
testq %rax, %rdx
jne 0x3caa
movq %r13, %rax
movq %rcx, %rdx
xorq %rbx, %rdx
leaq -0x1(%r8), %rsi
testq %rsi, %rdx
je 0x3cac
cmpq %r8, %rcx
jb 0x3caa
movq 0x1(%rax), %rcx
incq %rax
jmp 0x3ac7
movq 0x31a0(%rsp), %rcx
movabsq $0x101010100, %rax      # imm = 0x101010100
subq %rcx, %rax
orq %rcx, %rax
notq %rax
movabsq $0x8080808080, %rdx     # imm = 0x8080808080
testq %rax, %rdx
jne 0x3caa
movq %r13, %rax
movq %rcx, %rdx
xorq %rbx, %rdx
shlq $0x18, %rdx
je 0x3cac
shrq $0x28, %rcx
testb %cl, %cl
je 0x3caa
movq 0x1(%rax), %rcx
incq %rax
jmp 0x3b1d
movq 0x31a0(%rsp), %rcx
movabsq $0x10101010100, %rax    # imm = 0x10101010100
subq %rcx, %rax
orq %rcx, %rax
notq %rax
movabsq $0x808080808080, %rdx   # imm = 0x808080808080
testq %rax, %rdx
jne 0x3caa
movq %r13, %rax
movq %rcx, %rdx
xorq %rbx, %rdx
shlq $0x10, %rdx
je 0x3cac
shrq $0x30, %rcx
testb %cl, %cl
je 0x3caa
movq 0x1(%rax), %rcx
incq %rax
jmp 0x3b73
movq 0x31a0(%rsp), %rcx
movabsq $0x101010101010100, %rax # imm = 0x101010101010100
subq %rcx, %rax
orq %rcx, %rax
notq %rax
movabsq $-0x7f7f7f7f7f7f7f80, %rdx # imm = 0x8080808080808080
testq %rax, %rdx
jne 0x3caa
movq %r13, %rdx
cmpq %rcx, %rbx
je 0x3cc1
movq 0x1(%rdx), %rcx
incq %rdx
movl $0x0, %eax
cmpq %r8, %rcx
jae 0x3bc9
jmp 0x3cac
movq 0x31a0(%rsp), %rcx
movabsq $0x101010101010100, %rax # imm = 0x101010101010100
subq %rcx, %rax
orq %rcx, %rax
notq %rax
movabsq $-0x7f7f7f7f7f7f7f80, %rdx # imm = 0x8080808080808080
testq %rax, %rdx
jne 0x3caa
movq %r13, %rax
cmpq %rcx, %rbx
jne 0x3c9a
movl %ebp, %ecx
xorl %edi, %edi
cmpl $0x8, %ecx
jl 0x3c42
movq 0x698(%rsp,%rdi), %rdx
leaq 0x8(%rdi), %rsi
addl $-0x8, %ecx
cmpq 0x8(%rax,%rdi), %rdx
movq %rsi, %rdi
je 0x3c22
jmp 0x3c9a
leaq (%rax,%rdi), %rdx
addq $0x8, %rdx
leaq (%rsp,%rdi), %rsi
addq $0x698, %rsi            # imm = 0x698
cmpl $0x4, %ecx
jl 0x3c78
movl (%rsi), %ecx
cmpl (%rdx), %ecx
jne 0x3c9a
movl %r15d, %ecx
subl %edi, %ecx
leaq (%rsp,%rdi), %rsi
addq $0x69c, %rsi            # imm = 0x69C
leaq (%rax,%rdi), %rdx
addq $0xc, %rdx
cmpl $0x2, %ecx
jl 0x3c90
movzwl (%rsi), %edi
cmpw (%rdx), %di
jne 0x3c9a
addl $-0x2, %ecx
addq $0x2, %rsi
addq $0x2, %rdx
testl %ecx, %ecx
je 0x3cac
movb (%rsi), %cl
cmpb (%rdx), %cl
je 0x3cac
movq 0x1(%rax), %rcx
incq %rax
cmpq %r8, %rcx
jae 0x3c19
xorl %eax, %eax
xorq %rax, 0x30(%rsp)
incl %r12d
xorb $0x1, 0x31a1(%rsp)
jmp 0x399a
movq %rdx, %rax
jmp 0x3cac
callq 0x6791
subsd 0xf0(%rsp), %xmm0
movsd %xmm0, 0xf0(%rsp)
callq 0x6791
movsd %xmm0, 0xe8(%rsp)
movq 0x18(%rsp), %rax
movq 0x10(%rsp), %rcx
addl %ecx, %eax
movl %eax, 0x2c(%rsp)
movl $0x28e, %ebx            # imm = 0x28E
movb 0x31a1(%rsp), %bpl
leaq 0x690(%rsp), %r14
subl $0x1, %ebx
jb 0x3d3c
movq %r13, %rdi
movl 0x2c(%rsp), %esi
movq %r14, %rdx
movq 0x10(%rsp), %rcx
callq 0x551c
xorq %rax, 0x30(%rsp)
xorb $0x1, %bpl
movb %bpl, 0x31a1(%rsp)
jmp 0x3d10
callq 0x6791
xorpd %xmm1, %xmm1
cmpq $0xe, 0x38(%rsp)
jb 0x3d5a
subsd 0xe8(%rsp), %xmm0
movapd %xmm0, %xmm1
movsd %xmm1, 0xe8(%rsp)
movq 0x58(%rsp), %rax
testq %rax, %rax
movq 0x30(%rsp), %rcx
movq 0x70(%rsp), %rbx
je 0x3d80
cmpq %rax, %rcx
jne 0x5428
callq 0x6791
movsd %xmm0, 0xe0(%rsp)
movslq 0x2c(%rsp), %rax
movq %rax, 0x170(%rsp)
leaq (%rsp,%rax), %r13
addq $0x31a0, %r13           # imm = 0x31A0
movb 0x31a1(%rsp), %al
movq 0x10(%rsp), %rcx
leal -0x4(%rcx), %ebp
leal -0x1(%rcx), %r14d
movq 0x690(%rsp), %rdi
movzbl %dil, %edx
movl %edx, %esi
shll $0x8, %esi
movq %rsi, 0x68(%rsp)
movl %edx, %esi
shll $0x10, %esi
movq %rsi, 0x50(%rsp)
movl %edi, %esi
shll $0x18, %esi
movslq %esi, %rsi
movq %rsi, 0x60(%rsp)
movq %rcx, %rsi
negq %rsi
movq %rsi, 0xa0(%rsp)
movsbl %dl, %esi
shll $0x8, %esi
movq %rdi, 0x20(%rsp)
movl %edi, %r9d
shrl $0x8, %r9d
movq %r14, %rdi
negq %rdi
movq %rdi, 0x110(%rsp)
movq %rcx, %rdi
subq %r14, %rdi
leaq (%rsp,%rdi), %r15
addq $0x690, %r15            # imm = 0x690
movq %rcx, %rdi
movslq %esi, %rcx
movq %rcx, 0x88(%rsp)
leal -0x1(%rdi), %r11d
leal -0x2(%rdi), %ecx
movl %ecx, 0x80(%rsp)
leaq 0x31a0(%rsp,%rdi), %rcx
movq %rcx, 0xa8(%rsp)
leaq 0x31a0(%rsp,%rbx), %rcx
movq %rcx, 0xb0(%rsp)
pushq $0x1
popq %rbx
cmpl $0x28f, %ebx            # imm = 0x28F
je 0x4147
cmpq $0x37, 0x38(%rsp)
jne 0x3ee5
movq 0x70(%rsp), %rcx
movsbq 0x68f(%rsp,%rcx), %rdi
addq 0x88(%rsp), %rdi
movl %edi, %esi
shrl $0x8, %esi
movsbl %sil, %r8d
movq 0xb0(%rsp), %r12
movzbl -0x3(%r12), %esi
shll $0x8, %esi
movzbl -0x1(%r12), %r10d
orq %rsi, %r10
movb -0x2(%r12), %sil
cmpq %rdi, %r10
jne 0x3ec4
cmpb %r9b, %sil
je 0x3fa1
movsbl %sil, %esi
xorl %r10d, %r10d
cmpl %esi, %r8d
setne %r10b
addq %r10, %r12
incq %r12
cmpq %r13, %r12
jbe 0x3e9f
xorl %r12d, %r12d
jmp 0x407d
cmpl $0x3c1, 0x2c(%rsp)      # imm = 0x3C1
jge 0x3faa
movq 0xa8(%rsp), %r8
movq 0xa0(%rsp), %rcx
movq (%r8,%rcx), %rsi
cmpq %rsi, 0x20(%rsp)
jne 0x3f4f
movq 0x110(%rsp), %rcx
leaq (%r8,%rcx), %r12
xorl %esi, %esi
xorl %edi, %edi
cmpq %rsi, %r14
je 0x4072
movsbl (%r15,%rsi), %r10d
cmpb (%r12,%rsi), %r10b
jne 0x3f84
movl %edi, %ecx
cmpq %rsi, %rcx
sete %cl
cmpl %r10d, %edx
setne %r10b
andb %cl, %r10b
movzbl %r10b, %ecx
addl %ecx, %edi
incq %rsi
jmp 0x3f1e
movl %esi, %ecx
andl $0xff00, %ecx           # imm = 0xFF00
xorl %edi, %edi
cmpl 0x68(%rsp), %ecx
je 0x3f84
movl %esi, %ecx
andl $0xff0000, %ecx         # imm = 0xFF0000
pushq $0x1
popq %rdi
cmpl 0x50(%rsp), %ecx
je 0x3f84
andl $0xff000000, %esi       # imm = 0xFF000000
xorl %edi, %edi
cmpq 0x60(%rsp), %rsi
sete %dil
xorl $0x3, %edi
movslq %edi, %rcx
addq %rcx, %r8
incq %r8
movl $0x0, %r12d
cmpq %r13, %r8
jbe 0x3efb
jmp 0x407d
addq $-0x3, %r12
jmp 0x407d
xorl %esi, %esi
cmpq $0x10000, %rsi          # imm = 0x10000
je 0x3fc2
movb %r11b, 0x1b840(%rsp,%rsi)
incq %rsi
jmp 0x3fac
xorl %esi, %esi
cmpq %rsi, %r14
je 0x3fde
movzwl 0x690(%rsp,%rsi), %ecx
movb %sil, 0x1b840(%rsp,%rcx)
incq %rsi
jmp 0x3fc4
movzwl 0x68e(%rsp,%rdi), %r8d
xorl %edi, %edi
cmpq 0x178(%rsp), %rdi
jg 0x4097
movq 0x10(%rsp), %rcx
leaq (%rdi,%rcx), %rsi
movzwl 0x319e(%rsp,%rsi), %ecx
movzbl 0x1b840(%rsp,%rcx), %r10d
cmpl %r10d, 0x80(%rsp)
jne 0x4056
movq 0x20(%rsp), %rcx
cmpq %rcx, 0x31a0(%rsp,%rdi)
jne 0x4051
leaq (%rsp,%rdi), %r12
addq $0x31a0, %r12           # imm = 0x31A0
xorl %esi, %esi
cmpq %rsi, %rbp
je 0x407d
movb 0x694(%rsp,%rsi), %cl
leaq 0x1(%rsi), %r10
cmpb 0x4(%r12,%rsi), %cl
movq %r10, %rsi
je 0x4037
incq %rdi
jmp 0x3fe9
movl %r10d, %r12d
cmpl %r10d, %r14d
jne 0x4063
addq %r12, %rdi
jmp 0x3fe9
subq %r12, %rsi
addq $-0x2, %rsi
movq %rsi, %rdi
jmp 0x3fe9
addq 0xa0(%rsp), %r8
movq %r8, %r12
xorq %r12, 0x30(%rsp)
incl %ebx
xorb $0x1, %al
movb %al, 0x31a1(%rsp)
movq 0x10(%rsp), %rdi
jmp 0x3e64
cmpq 0x158(%rsp), %rdi
jne 0x40e2
movq 0x130(%rsp), %rdi
movq 0x108(%rsp), %rcx
cmpq %r8, (%rcx)
jne 0x40e2
xorl %esi, %esi
cmpq %rsi, %rbp
je 0x412d
movb 0x694(%rsp,%rsi), %cl
leaq 0x1(%rsi), %rdi
movq 0x108(%rsp), %r10
cmpb 0x4(%r10,%rsi), %cl
movq %rdi, %rsi
je 0x40b8
movq 0x130(%rsp), %rdi
cmpq 0x18(%rsp), %rdi
jne 0x3edd
movq 0x98(%rsp), %rcx
cmpq %r8, (%rcx)
jne 0x3edd
xorl %esi, %esi
cmpq %rsi, %rbp
je 0x413a
movb 0x694(%rsp,%rsi), %cl
leaq 0x1(%rsi), %rdi
movl $0x0, %r12d
movq 0x98(%rsp), %r8
cmpb 0x4(%r8,%rsi), %cl
movq %rdi, %rsi
je 0x4100
jmp 0x407d
movq 0x108(%rsp), %r12
jmp 0x407d
movq 0x98(%rsp), %r12
jmp 0x407d
callq 0x6791
subsd 0xe0(%rsp), %xmm0
movsd %xmm0, 0xe0(%rsp)
cmpq $0x0, 0x58(%rsp)
je 0x4176
movq 0x30(%rsp), %rax
cmpq 0x58(%rsp), %rax
jne 0x544f
callq 0x6791
movsd %xmm0, 0xd8(%rsp)
movzbl 0x690(%rsp), %eax
movl %eax, 0x12c(%rsp)
movsbl %al, %ebx
movl %ebx, %r9d
shll $0x8, %r9d
movzbl 0x692(%rsp), %esi
orl %r9d, %esi
movzbl 0x691(%rsp), %eax
movl %eax, 0x44(%rsp)
orl %eax, %r9d
testl %r14d, %r14d
movl $0x0, %r12d
cmovgl %r14d, %r12d
movq 0x10(%rsp), %rdi
testl %edi, %edi
movl $0x0, %eax
cmovgl %edi, %eax
movq %rax, 0x88(%rsp)
movl 0x690(%rsp), %eax
movzbl %al, %ecx
movl %ecx, %edx
shll $0x8, %edx
movl %edx, 0x128(%rsp)
shll $0x10, %ecx
movl %ecx, 0x120(%rsp)
movl %eax, 0x20(%rsp)
shll $0x18, %eax
movl %eax, 0x11c(%rsp)
movq 0x70(%rsp), %rax
movq %rax, %rcx
negq %rcx
movq %rcx, 0x140(%rsp)
movslq %r14d, %rcx
movq %rcx, %rdx
negq %rdx
movq %rdx, 0x168(%rsp)
movq %rcx, 0x68(%rsp)
subq %rcx, %rax
addq %rsp, %rax
addq $0x690, %rax            # imm = 0x690
movq %rax, 0x50(%rsp)
movb 0x31a1(%rsp), %al
leal 0x1(%rdi), %ecx
movslq %ebp, %rdx
movq %rdx, 0x60(%rsp)
leal -0x7(%rdi), %r10d
pushq $0x1
popq %r11
movl %r11d, %edx
movq %r10, 0xd0(%rsp)
movl %r9d, 0x40(%rsp)
movl %esi, 0x48(%rsp)
movl %ecx, 0x124(%rsp)
cmpl $0x28f, %edx            # imm = 0x28F
je 0x4777
movl %edx, 0xb8(%rsp)
movb %al, 0x78(%rsp)
cmpl $0x1, %edi
je 0x431a
leaq 0x31a2(%rsp), %rax
cmpl $0x2, %edi
je 0x42eb
leaq 0x31a3(%rsp), %rax
cmpl $0x3, %edi
jne 0x4355
movzbl -0x3(%rax), %ecx
shll $0x8, %ecx
movzbl -0x1(%rax), %edx
orl %ecx, %edx
movb -0x2(%rax), %cl
cmpl %edx, %esi
jne 0x42d4
cmpb %cl, 0x44(%rsp)
je 0x442e
movzbl %cl, %ecx
xorl %edx, %edx
cmpl %ecx, %ebx
setne %dl
addq %rdx, %rax
incq %rax
cmpq %r13, %rax
jbe 0x42b6
jmp 0x4313
movzbl -0x2(%rax), %edx
shll $0x8, %edx
movzbl -0x1(%rax), %ecx
orl %ecx, %edx
cmpl %edx, %r9d
je 0x4425
xorl %edx, %edx
cmpl %ecx, %ebx
setne %dl
addq %rdx, %rax
incq %rax
cmpq %r13, %rax
jbe 0x42eb
xorl %eax, %eax
jmp 0x46fb
leaq 0x31a0(%rsp), %rdi
movl 0x12c(%rsp), %esi
movq 0x170(%rsp), %rdx
callq 0x3210
movl 0x48(%rsp), %esi
movl 0x40(%rsp), %r9d
movq 0xd0(%rsp), %r10
movq 0x10(%rsp), %rdi
pushq $0x1
popq %r11
jmp 0x46fb
cmpl $0x3c1, 0x2c(%rsp)      # imm = 0x3C1
jge 0x4437
movq 0xb0(%rsp), %rcx
movq 0x140(%rsp), %rax
movl (%rcx,%rax), %edx
cmpl %edx, 0x20(%rsp)
jne 0x43c3
movq 0x168(%rsp), %rax
leaq (%rcx,%rax), %rdx
xorl %esi, %esi
xorl %eax, %eax
cmpq %rsi, 0x68(%rsp)
je 0x44f4
movq 0x50(%rsp), %rdi
movb (%rdi,%rsi), %dil
cmpb (%rdx,%rsi), %dil
jne 0x4401
cmpl %esi, %eax
sete %r8b
cmpb 0x20(%rsp), %dil
setne %dil
andb %r8b, %dil
movzbl %dil, %edi
addl %edi, %eax
incq %rsi
jmp 0x438c
movl %edx, %esi
andl $0xff00, %esi           # imm = 0xFF00
xorl %eax, %eax
cmpl %esi, 0x128(%rsp)
je 0x4406
movl %edx, %esi
andl $0xff0000, %esi         # imm = 0xFF0000
movl %r11d, %eax
cmpl %esi, 0x120(%rsp)
je 0x4406
andl $0xff000000, %edx       # imm = 0xFF000000
xorl %eax, %eax
cmpl %edx, 0x11c(%rsp)
sete %al
xorl $0x3, %eax
jmp 0x4406
movq 0x10(%rsp), %rdi
cltq
addq %rax, %rcx
incq %rcx
movl $0x0, %eax
cmpq %r13, %rcx
movl 0x48(%rsp), %esi
jbe 0x436b
jmp 0x46fb
addq $-0x2, %rax
jmp 0x46fb
addq $-0x3, %rax
jmp 0x46fb
xorl %eax, %eax
movl 0x124(%rsp), %ecx
cmpq $0x100, %rax            # imm = 0x100
je 0x445b
movl %edi, 0x180(%rsp,%rax,4)
movl %ecx, 0x2da0(%rsp,%rax,4)
incq %rax
jmp 0x4440
movl %r14d, %eax
xorl %ecx, %ecx
cmpq %rcx, %r12
je 0x447b
movzbl 0x690(%rsp,%rcx), %edx
movl %eax, 0x180(%rsp,%rdx,4)
incq %rcx
decl %eax
jmp 0x4460
movl %edi, %eax
xorl %ecx, %ecx
cmpq %rcx, 0x88(%rsp)
je 0x449f
movzbl 0x690(%rsp,%rcx), %edx
movl %eax, 0x2da0(%rsp,%rdx,4)
incq %rcx
decl %eax
jmp 0x447f
xorl %eax, %eax
cmpq $0x10000, %rax          # imm = 0x10000
je 0x44b6
movb %r14b, 0x5b840(%rsp,%rax)
incq %rax
jmp 0x44a1
xorl %eax, %eax
cmpq %rax, %r12
je 0x44d1
movzwl 0x690(%rsp,%rax), %ecx
movb %al, 0x5b840(%rsp,%rcx)
incq %rax
jmp 0x44b8
cmpq $0x30, 0x38(%rsp)
jae 0x4642
xorl %eax, %eax
cmpq $0x40000, %rax          # imm = 0x40000
je 0x4509
movb $0x0, 0x1b840(%rsp,%rax)
incq %rax
jmp 0x44df
addq 0x140(%rsp), %rcx
movq %rcx, %rax
movq 0x10(%rsp), %rdi
jmp 0x46f7
xorl %eax, %eax
cmpq %rax, %r10
je 0x4547
movl 0x690(%rsp,%rax), %ecx
roll $0x5, %ecx
xorl 0x694(%rsp,%rax), %ecx
xorl $0x811c9dc5, %ecx       # imm = 0x811C9DC5
imull $0xad3e7, %ecx, %ecx    # imm = 0xAD3E7
movl %ecx, %edx
shrl $0x10, %edx
andl $0x3ffff, %ecx          # imm = 0x3FFFF
xorl %edx, %ecx
movb $0x1, 0x1b840(%rsp,%rcx)
incq %rax
jmp 0x450b
xorl %ecx, %ecx
cmpl 0xcc(%rsp), %ecx
jg 0x471b
leal (%rcx,%rdi), %eax
movslq %eax, %rsi
movzwl 0x319e(%rsp,%rsi), %edi
movzbl 0x5b840(%rsp,%rdi), %r8d
movl 0x80(%rsp), %eax
movslq %ecx, %rdx
subl %r8d, %eax
jne 0x45e9
movl 0x20(%rsp), %eax
cmpl %eax, 0x31a0(%rsp,%rdx)
jne 0x45bf
leaq (%rsp,%rdx), %rax
addq $0x31a0, %rax           # imm = 0x31A0
xorl %r8d, %r8d
cmpq %r8, 0x60(%rsp)
je 0x46ed
movb 0x694(%rsp,%r8), %r9b
leaq 0x1(%r8), %r10
cmpb 0x4(%rax,%r8), %r9b
movq %r10, %r8
movq 0xd0(%rsp), %r10
je 0x4596
shrl $0x8, %edi
movl 0x180(%rsp,%rdi,4), %edi
movzbl 0x31a0(%rsp,%rsi), %eax
movl 0x2da0(%rsp,%rax,4), %eax
cmpl %eax, %edi
cmoval %edi, %eax
movq 0x10(%rsp), %rdi
movl 0x40(%rsp), %r9d
jmp 0x45f6
movl %r14d, %esi
cmpl %r8d, %r14d
movq 0x10(%rsp), %rdi
je 0x4637
cmpl %r10d, %eax
jge 0x4635
movq 0xa8(%rsp), %r8
movl -0x8(%r8,%rdx), %esi
roll $0x5, %esi
xorl -0x4(%r8,%rdx), %esi
xorl $0x811c9dc5, %esi       # imm = 0x811C9DC5
imull $0xad3e7, %esi, %edx    # imm = 0xAD3E7
movl %edx, %esi
shrl $0x10, %esi
andl $0x3ffff, %edx          # imm = 0x3FFFF
xorl %esi, %edx
cmpb $0x0, 0x1b840(%rsp,%rdx)
cmovel %r10d, %eax
movl %eax, %esi
addl %esi, %ecx
movl 0x48(%rsp), %esi
jmp 0x4549
xorl %ecx, %ecx
cmpl 0xcc(%rsp), %ecx
jg 0x471b
leal (%rcx,%rdi), %eax
movslq %eax, %rdx
movzwl 0x319e(%rsp,%rdx), %esi
movzbl 0x5b840(%rsp,%rsi), %edi
movl 0x80(%rsp), %eax
subl %edi, %eax
jne 0x46d4
movslq %ecx, %rax
movl 0x20(%rsp), %edi
cmpl %edi, 0x31a0(%rsp,%rax)
jne 0x46aa
addq %rsp, %rax
addq $0x31a0, %rax           # imm = 0x31A0
xorl %edi, %edi
cmpq %rdi, 0x60(%rsp)
je 0x46ed
movb 0x694(%rsp,%rdi), %r8b
leaq 0x1(%rdi), %r9
cmpb 0x4(%rax,%rdi), %r8b
movq %r9, %rdi
je 0x468d
shrl $0x8, %esi
movl 0x180(%rsp,%rsi,4), %esi
movzbl 0x31a0(%rsp,%rdx), %eax
movl 0x2da0(%rsp,%rax,4), %eax
cmpl %eax, %esi
cmoval %esi, %eax
movq 0x10(%rsp), %rdi
movl 0x40(%rsp), %r9d
jmp 0x46e0
cmpl %edi, %r14d
cmovel %r14d, %eax
movq 0x10(%rsp), %rdi
addl %ecx, %eax
movl %eax, %ecx
movl 0x48(%rsp), %esi
jmp 0x4644
movq 0x10(%rsp), %rdi
movl 0x40(%rsp), %r9d
movl 0x48(%rsp), %esi
xorq %rax, 0x30(%rsp)
movl 0xb8(%rsp), %edx
incl %edx
movb 0x78(%rsp), %al
xorb $0x1, %al
movb %al, 0x31a1(%rsp)
jmp 0x4278
cmpl 0x18(%rsp), %ecx
jne 0x4313
movq 0x98(%rsp), %rax
movl 0x20(%rsp), %ecx
cmpl %ecx, (%rax)
jne 0x4313
xorl %ecx, %ecx
cmpq %rcx, 0x60(%rsp)
je 0x476d
movb 0x694(%rsp,%rcx), %dl
movq 0x160(%rsp), %rax
addl %ecx, %eax
movslq %eax, %rsi
incq %rcx
movl $0x0, %eax
cmpb 0x31a4(%rsp,%rsi), %dl
movl 0x48(%rsp), %esi
je 0x473b
jmp 0x46fb
movq 0x98(%rsp), %rax
jmp 0x46fb
callq 0x6791
subsd 0xd8(%rsp), %xmm0
movsd %xmm0, 0xd8(%rsp)
cmpq $0x0, 0x58(%rsp)
je 0x47a6
movq 0x30(%rsp), %rax
cmpq 0x58(%rsp), %rax
jne 0x5476
callq 0x6791
movsd %xmm0, 0x5b840(%rsp)
movb 0x31a1(%rsp), %sil
movl 0x690(%rsp), %ebx
movq 0x38(%rsp), %rcx
leaq -0x1b(%rcx), %rax
movq %rax, 0x80(%rsp)
movq 0x10(%rsp), %rcx
leal -0xb(%rcx), %eax
movq %rax, 0x20(%rsp)
movzbl %bl, %edi
movl %edi, %eax
shll $0x8, %eax
movl %eax, 0x60(%rsp)
movl %edi, %eax
shll $0x10, %eax
movl %eax, 0x44(%rsp)
movl %ebx, %eax
shll $0x18, %eax
movl %eax, 0x78(%rsp)
movsbl %dil, %eax
shll $0x8, %eax
movl %eax, 0x50(%rsp)
movl %ebx, 0x68(%rsp)
shrl $0x8, %ebx
pushq $0x1
popq %r12
movq 0x18(%rsp), %rdx
cmpl $0x28f, %r12d           # imm = 0x28F
je 0x4bd4
cmpq $0x37, 0x38(%rsp)
movb %sil, 0x88(%rsp)
jne 0x48b0
movq 0x70(%rsp), %rax
movsbl 0x68f(%rsp,%rax), %esi
addl 0x50(%rsp), %esi
movl %esi, %ecx
shrl $0x8, %ecx
movsbl %cl, %r9d
movq 0xb0(%rsp), %rcx
movsbl -0x3(%rcx), %r11d
shll $0x8, %r11d
movsbl -0x1(%rcx), %r10d
addl %r10d, %r11d
movb -0x2(%rcx), %r8b
cmpl %r11d, %esi
jne 0x487c
cmpb %bl, %r8b
je 0x4972
movsbl %r8b, %r8d
xorl %r11d, %r11d
cmpl %r10d, %r9d
setne %r11b
incq %r11
cmpl %r8d, %r9d
movl $0x0, %r8d
cmoveq %r8, %r11
addq %r11, %rcx
incq %rcx
movl $0x0, %r10d
cmpq %r13, %rcx
jbe 0x4859
jmp 0x4bb3
cmpl $0x3c0, 0x2c(%rsp)      # imm = 0x3C0
jg 0x497e
movq 0xa8(%rsp), %rsi
movq 0xa0(%rsp), %rax
movl (%rsi,%rax), %r9d
cmpl %r9d, 0x68(%rsp)
jne 0x491e
movq 0x110(%rsp), %rax
leaq (%rsi,%rax), %r9
xorl %r10d, %r10d
xorl %ecx, %ecx
cmpq %r10, %r14
je 0x49a9
movsbl (%r15,%r10), %r8d
cmpb (%r9,%r10), %r8b
jne 0x4959
movl %ecx, %r11d
cmpq %r10, %r11
sete %r11b
cmpl %r8d, %edi
setne %r8b
andb %r11b, %r8b
movzbl %r8b, %r8d
addl %r8d, %ecx
incq %r10
jmp 0x48ea
movl %r9d, %r8d
andl $0xff00, %r8d           # imm = 0xFF00
xorl %ecx, %ecx
cmpl %r8d, 0x60(%rsp)
je 0x4959
movl %r9d, %r8d
andl $0xff0000, %r8d         # imm = 0xFF0000
pushq $0x1
popq %rcx
cmpl %r8d, 0x44(%rsp)
je 0x4959
andl $0xff000000, %r9d       # imm = 0xFF000000
xorl %ecx, %ecx
cmpl %r9d, 0x78(%rsp)
sete %cl
xorl $0x3, %ecx
incl %ecx
addq %rcx, %rsi
movl $0x0, %r10d
cmpq %r13, %rsi
jbe 0x48c6
jmp 0x4bb3
addq $-0x3, %rcx
movq %rcx, %r10
jmp 0x4bb3
cmpq $0x1e, 0x80(%rsp)
jae 0x4a38
xorl %ecx, %ecx
pushq $0x1
popq %r11
cmpq $0x10000, %rcx          # imm = 0x10000
je 0x49b9
movb $0x0, 0x1b840(%rsp,%rcx)
incq %rcx
jmp 0x4993
addq 0xa0(%rsp), %rsi
movq %rsi, %r10
jmp 0x4bb3
xorl %ecx, %ecx
cmpq %rcx, %r14
je 0x49d5
movzwl 0x690(%rsp,%rcx), %esi
movb $0x1, 0x1b840(%rsp,%rsi)
incq %rcx
jmp 0x49bb
xorl %ecx, %ecx
cmpq %rdx, %rcx
ja 0x4bb0
leaq (%rsp,%rcx), %r10
addq $0x31a0, %r10           # imm = 0x31A0
movq 0x10(%rsp), %rsi
movzwl -0x2(%rsi,%r10), %esi
cmpb $0x0, 0x1b840(%rsp,%rsi)
movq %r14, %rsi
je 0x4a33
movq %r11, %rsi
movl 0x68(%rsp), %eax
cmpl %eax, (%r10)
jne 0x4a33
xorl %esi, %esi
cmpq %rsi, %rbp
je 0x4bb3
movb 0x694(%rsp,%rsi), %r8b
leaq 0x1(%rsi), %r9
cmpb 0x4(%r10,%rsi), %r8b
movq %r9, %rsi
je 0x4a11
movq %r11, %rsi
addq %rsi, %rcx
jmp 0x49d7
xorl %ecx, %ecx
pushq $0x1
popq %r11
movl $0x811c9dc5, %r9d       # imm = 0x811C9DC5
cmpq $0x2000, %rcx           # imm = 0x2000
je 0x4a5a
movb $0x0, 0x1b840(%rsp,%rcx)
incq %rcx
jmp 0x4a44
xorl %r10d, %r10d
cmpq %r10, 0x20(%rsp)
je 0x4ad4
movl 0x690(%rsp,%r10), %ecx
xorl %r9d, %ecx
imull $0xad3e7, %ecx, %ecx    # imm = 0xAD3E7
movl 0x694(%rsp,%r10), %esi
xorl %r9d, %esi
imull $0xad3e7, %esi, %esi    # imm = 0xAD3E7
movl 0x698(%rsp,%r10), %r8d
xorl %r9d, %r8d
imull $0xad3e7, %r8d, %r8d    # imm = 0xAD3E7
roll $0x5, %r8d
xorl %ecx, %r8d
imull $0xad3e7, %r8d, %ecx    # imm = 0xAD3E7
roll $0x5, %esi
xorl %ecx, %esi
imull $0xad3e7, %esi, %esi    # imm = 0xAD3E7
movzwl %si, %ecx
shrl $0x10, %esi
xorl %esi, %ecx
movl %ecx, %esi
shrl $0x3, %esi
andb $0x7, %cl
movl %r11d, %r8d
shll %cl, %r8d
orb %r8b, 0x1b840(%rsp,%rsi)
incq %r10
jmp 0x4a5d
xorl %ecx, %ecx
cmpq %rdx, %rcx
jg 0x4bb0
leaq (%rsp,%rcx), %r10
addq $0x31a0, %r10           # imm = 0x31A0
movq 0x10(%rsp), %rax
movl -0xc(%rax,%r10), %esi
xorl %r9d, %esi
imull $0xad3e7, %esi, %esi    # imm = 0xAD3E7
movl -0x8(%rax,%r10), %r8d
xorl %r9d, %r8d
movl $0x811c9dc5, %edx       # imm = 0x811C9DC5
movl -0x4(%rax,%r10), %r9d
xorl %edx, %r9d
imull $0xad3e7, %r9d, %r9d    # imm = 0xAD3E7
roll $0x5, %r9d
imull $0xad3e7, %r8d, %r8d    # imm = 0xAD3E7
xorl %esi, %r9d
roll $0x5, %r8d
imull $0xad3e7, %r9d, %esi    # imm = 0xAD3E7
xorl %esi, %r8d
imull $0xad3e7, %r8d, %esi    # imm = 0xAD3E7
movzwl %si, %r8d
shrl $0x10, %esi
xorl %esi, %r8d
movl %r8d, %esi
shrl $0x3, %esi
movzbl 0x1b840(%rsp,%rsi), %esi
andl $0x7, %r8d
btl %r8d, %esi
movl %r11d, %esi
cmovael 0x20(%rsp), %esi
cmpl $0x1, %esi
jne 0x4b90
movl 0x68(%rsp), %eax
cmpl %eax, (%r10)
jne 0x4b90
xorl %r9d, %r9d
cmpq %r9, %rbp
je 0x4ba9
movb 0x694(%rsp,%r9), %r8b
leaq 0x1(%r9), %r11
cmpb 0x4(%r10,%r9), %r8b
movq %r11, %r9
je 0x4b75
movl %esi, %esi
addq %rsi, %rcx
pushq $0x1
popq %r11
movl $0x811c9dc5, %r9d       # imm = 0x811C9DC5
movq 0x18(%rsp), %rdx
jmp 0x4ad6
movq 0x18(%rsp), %rdx
jmp 0x4bb3
xorl %r10d, %r10d
xorq %r10, 0x30(%rsp)
incl %r12d
movb 0x88(%rsp), %sil
xorb $0x1, %sil
movb %sil, 0x31a1(%rsp)
jmp 0x481a
movq 0x58(%rsp), %r15
testq %r15, %r15
sete %bl
callq 0x6791
subsd 0x5b840(%rsp), %xmm0
movsd %xmm0, 0x5b840(%rsp)
cmpq %r15, 0x30(%rsp)
sete %al
orb %bl, %al
je 0x549d
callq 0x6791
movsd %xmm0, 0x180(%rsp)
movq 0x38(%rsp), %r10
leaq -0x26(%r10), %rax
movq %rax, 0x48(%rsp)
leaq -0x5(%r10), %rax
movq %rax, 0xb0(%rsp)
movl 0x690(%rsp), %r12d
movq 0xa8(%rsp), %rax
leaq -0xc(%rax), %rcx
movq %rcx, 0x70(%rsp)
leaq -0xb(%rax), %rax
movq %rax, 0x80(%rsp)
movq 0x10(%rsp), %rax
leal (%rax,%rax), %ecx
movq %rcx, 0x60(%rsp)
addl $-0x3, %eax
movq %rax, 0x50(%rsp)
movl 0x2c(%rsp), %r11d
leaq (%rsp,%r11), %rbx
addq $0x31a0, %rbx           # imm = 0x31A0
movl %r12d, %eax
movl $0xff, %ecx
andl %ecx, %eax
imull $0x1010101, %eax, %eax  # imm = 0x1010101
movl %eax, 0x44(%rsp)
leaq 0x319d(%rsp), %rax
addq %rax, %r11
movl %r12d, %eax
shll $0x8, %eax
movzwl %ax, %eax
movl %r12d, %r15d
shrl $0x10, %r15d
andl %ecx, %r15d
orl %eax, %r15d
movl %r12d, %eax
shrl $0x8, %eax
movl %eax, 0x88(%rsp)
pushq $0x1
popq %r9
movl %r9d, %eax
pushq $0x2
popq %rbp
movq %r11, 0x78(%rsp)
movq %rbx, 0xb8(%rsp)
cmpl $0x28f, %eax            # imm = 0x28F
je 0x517f
movl %eax, 0x68(%rsp)
cmpq $0x37, %r10
leaq 0x31a0(%rsp), %rax
jne 0x4d3d
movzbl (%rax), %esi
shll $0x8, %esi
movzbl 0x2(%rax), %edx
orl %edx, %esi
movb 0x1(%rax), %cl
cmpl %esi, %r15d
jne 0x4d0f
cmpb 0x88(%rsp), %cl
je 0x4e3d
xorl %esi, %esi
cmpb %r12b, %dl
setne %sil
incq %rsi
cmpb %r12b, %cl
movl $0x0, %ecx
cmoveq %rcx, %rsi
addq %rsi, %rax
incq %rax
movl $0x0, %r13d
cmpq %r11, %rax
jbe 0x4cee
jmp 0x5167
cmpl $0x3c0, 0x2c(%rsp)      # imm = 0x3C0
jg 0x4de6
movq 0xa8(%rsp), %rax
movq 0xa0(%rsp), %rcx
movl (%rax,%rcx), %edx
cmpl %edx, %r12d
jne 0x4da9
movq 0x110(%rsp), %rcx
leaq (%rax,%rcx), %rdx
xorl %esi, %esi
movl %r9d, %ecx
cmpq %rsi, %r14
je 0x4e35
leal 0x1(%rsi), %edi
movb 0x690(%rsp,%rdi), %dil
cmpb (%rdx,%rsi), %dil
jne 0x4dcd
cmpl %esi, %ecx
sete %r8b
cmpb %r12b, %dil
setne %dil
andb %r8b, %dil
movzbl %dil, %edi
addl %edi, %ecx
incq %rsi
jmp 0x4d74
xorl 0x44(%rsp), %edx
movl %r9d, %ecx
testw $0xff00, %dx            # imm = 0xFF00
je 0x4dcd
movl %ebp, %ecx
testl $0xff0000, %edx         # imm = 0xFF0000
je 0x4dcd
cmpl $0x1000000, %edx        # imm = 0x1000000
pushq $0x4
popq %rcx
sbbl $0x0, %ecx
movl %ecx, %ecx
addq %rcx, %rax
movl $0x0, %r13d
cmpq %rbx, %rax
jbe 0x4d53
jmp 0x5167
cmpq $0x12, 0x48(%rsp)
ja 0x4ef0
movl $0x10000, %edx          # imm = 0x10000
leaq 0x1b840(%rsp), %rdi
xorl %esi, %esi
callq 0x3110
movq 0x10(%rsp), %rsi
pushq $0x1
popq %r9
xorl %eax, %eax
movq 0x18(%rsp), %rdx
movq 0x50(%rsp), %rdi
cmpq %rax, %r14
je 0x4e45
movzwl 0x690(%rsp,%rax), %ecx
movb $0x1, 0x1b840(%rsp,%rcx)
incq %rax
jmp 0x4e1b
addq 0xa0(%rsp), %rax
movq %rax, %r13
jmp 0x5167
xorl %ebx, %ebx
cmpl %edx, %ebx
ja 0x4fe8
leal (%rbx,%rsi), %eax
addl $-0x2, %eax
movzwl 0x31a0(%rsp,%rax), %eax
cmpb $0x0, 0x1b840(%rsp,%rax)
movl %r14d, %ecx
je 0x4ee9
leal (%rbx,%rsi), %eax
leal -0x4(%rax), %ecx
movzwl 0x31a0(%rsp,%rcx), %ecx
movzbl 0x1b840(%rsp,%rcx), %ecx
addl $-0x3, %eax
movzwl 0x31a0(%rsp,%rax), %eax
movzbl 0x1b840(%rsp,%rax), %eax
addl %ecx, %eax
movl %edi, %ecx
cmpl $0x2, %eax
jb 0x4ee9
movl %ebx, %eax
movl %r9d, %ecx
cmpl %r12d, 0x31a0(%rsp,%rax)
jne 0x4ee9
leaq (%rsp,%rax), %r13
addq $0x31a0, %r13           # imm = 0x31A0
movq %r13, %rdi
leaq 0x690(%rsp), %rsi
movq 0x10(%rsp), %rdx
callq 0x57b4
movq 0x50(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
pushq $0x1
popq %r9
movl %r9d, %ecx
testl %eax, %eax
je 0x5155
addl %ecx, %ebx
jmp 0x4e47
cmpq $0x33, 0xb0(%rsp)
ja 0x4ff0
movl $0x10000, %edx          # imm = 0x10000
leaq 0x1b840(%rsp), %rdi
xorl %esi, %esi
callq 0x3110
xorl %eax, %eax
pushq $0x1
popq %r9
movq 0x10(%rsp), %rsi
movq 0xd0(%rsp), %rdi
movq 0x50(%rsp), %r8
cmpq %rax, %r8
je 0x4f4c
movl 0x690(%rsp,%rax), %ecx
movzwl %cx, %edx
shrl $0x10, %ecx
xorl %ecx, %edx
movb $0x1, 0x1b840(%rsp,%rdx)
incq %rax
jmp 0x4f2b
xorl %ebx, %ebx
movq 0x18(%rsp), %rdx
cmpl %edx, %ebx
ja 0x4fe8
movl 0x319c(%rsp,%rsi), %eax
movzwl %ax, %ecx
shrl $0x10, %eax
xorl %eax, %ecx
cmpb $0x0, 0x1b840(%rsp,%rcx)
movl %r8d, %ecx
je 0x4fe1
movl %ebx, %eax
leaq (%rsp,%rax), %r13
addq $0x31a0, %r13           # imm = 0x31A0
movl -0x8(%rsi,%r13), %eax
movzwl %ax, %ecx
shrl $0x10, %eax
xorl %eax, %ecx
cmpb $0x0, 0x1b840(%rsp,%rcx)
movl %edi, %ecx
je 0x4fe1
movl %r9d, %ecx
cmpl %r12d, (%r13)
jne 0x4fe1
movq %r13, %rdi
leaq 0x690(%rsp), %rsi
movq 0x10(%rsp), %rdx
callq 0x57b4
movq 0x50(%rsp), %r8
movq 0xd0(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
pushq $0x1
popq %r9
movl %r9d, %ecx
testl %eax, %eax
je 0x5155
addl %ecx, %ebx
jmp 0x4f53
xorl %r13d, %r13d
jmp 0x5155
movl $0x2000, %edx           # imm = 0x2000
leaq 0x1b840(%rsp), %rdi
xorl %esi, %esi
callq 0x3110
leaq 0x690(%rsp), %rdi
callq 0x57d7
movl %eax, %edx
xorl %esi, %esi
pushq $0x1
popq %r8
movl $0x7f807f, %r9d         # imm = 0x7F807F
cmpq %rsi, 0x20(%rsp)
je 0x5077
movzwl %dx, %edi
movzbl 0x690(%rsp,%rsi), %eax
imull $0xfffafdf0, %eax, %eax # imm = 0xFFFAFDF0
addl %edx, %eax
addl $0x7f807f00, %eax       # imm = 0x7F807F00
movl %edx, %ecx
shrl $0x10, %ecx
xorl %ecx, %edi
movl %edi, %ecx
andb $0x7, %cl
movl %r8d, %edx
shll %cl, %edx
shrl $0x3, %edi
orb %dl, 0x1b840(%rsp,%rdi)
movzbl 0x69c(%rsp,%rsi), %ecx
xorl %edx, %edx
divl %r9d
shll $0x8, %edx
orl %edx, %ecx
movl %ecx, %eax
xorl %edx, %edx
divl %r9d
incq %rsi
jmp 0x501f
movq 0x70(%rsp), %rdi
callq 0x57d7
pushq $0x1
popq %r9
movl %eax, %ebp
xorl %ebx, %ebx
movq 0x18(%rsp), %rax
cmpl %eax, %ebx
ja 0x514f
movl %ebp, %eax
shrl $0x10, %eax
movzwl %bp, %ecx
xorl %eax, %ecx
movl %ecx, %eax
shrl $0x3, %eax
movzbl 0x1b840(%rsp,%rax), %eax
andl $0x7, %ecx
btl %ecx, %eax
movl %ebx, %edi
jae 0x512e
cmpl %r12d, 0x31a0(%rsp,%rdi)
jne 0x50e9
leaq (%rsp,%rdi), %r13
addq $0x31a0, %r13           # imm = 0x31A0
movq %r13, %rdi
leaq 0x690(%rsp), %rsi
movq 0x10(%rsp), %rdx
callq 0x57b4
pushq $0x1
popq %r9
testl %eax, %eax
je 0x5152
movq 0x60(%rsp), %rcx
leal (%rbx,%rcx), %eax
addl %ebx, %ecx
addl $-0xc, %ecx
movzbl 0x31a0(%rsp,%rcx), %edx
movzbl 0x31a0(%rsp,%rax), %ecx
imull $0xfffafdf0, %edx, %eax # imm = 0xFFFAFDF0
addl %ebp, %eax
addl $0x7f807f00, %eax       # imm = 0x7F807F00
xorl %edx, %edx
movl $0x7f807f, %esi         # imm = 0x7F807F
divl %esi
shll $0x8, %edx
orl %edx, %ecx
movl %ecx, %eax
xorl %edx, %edx
divl %esi
movl %r9d, %eax
movl %edx, %ebp
jmp 0x5146
addq 0x80(%rsp), %rdi
callq 0x57d7
pushq $0x1
popq %r9
movl %eax, %ebp
movq 0x20(%rsp), %rax
addl %ebx, %eax
movl %eax, %ebx
jmp 0x5089
xorl %r13d, %r13d
pushq $0x2
popq %rbp
movq 0x38(%rsp), %r10
movq 0x78(%rsp), %r11
movq 0xb8(%rsp), %rbx
xorq %r13, 0x30(%rsp)
movl 0x68(%rsp), %eax
incl %eax
xorb $0x1, 0x31a1(%rsp)
jmp 0x4cd1
movq 0x58(%rsp), %r14
testq %r14, %r14
sete %bl
callq 0x6791
subsd 0x180(%rsp), %xmm0
movsd %xmm0, 0x180(%rsp)
cmpq %r14, 0x30(%rsp)
sete %al
orb %bl, %al
leaq 0x31a0(%rsp), %r13
je 0x54c4
leaq 0xc0(%rsp), %rax
movq %rax, 0x1b840(%rsp)
leaq 0x100(%rsp), %rax
movq %rax, 0x1b848(%rsp)
leaq 0xf8(%rsp), %rax
movq %rax, 0x1b850(%rsp)
leaq 0xf0(%rsp), %rax
movq %rax, 0x1b858(%rsp)
leaq 0xe8(%rsp), %rax
movq %rax, 0x1b860(%rsp)
leaq 0xe0(%rsp), %rax
movq %rax, 0x1b868(%rsp)
leaq 0xd8(%rsp), %rax
movq %rax, 0x1b870(%rsp)
leaq 0x5b840(%rsp), %rax
movq %rax, 0x1b878(%rsp)
leaq 0x180(%rsp), %rax
movq %rax, 0x1b880(%rsp)
andq $0x0, 0x1b888(%rsp)
xorl %ecx, %ecx
pushq $0x1
popq %rax
leaq 0x580(%rsp), %r12
xorpd %xmm2, %xmm2
movq 0x148(%rsp), %rbp
movq 0x1b840(%rsp,%rax,8), %rdx
movslq %ecx, %rbx
testq %rdx, %rdx
je 0x52a0
movsd (%rdx), %xmm0
ucomisd %xmm2, %xmm0
jne 0x5287
jnp 0x529b
movq 0x1b840(%rsp,%rbx,8), %rdx
movsd (%rdx), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x529b
movl %eax, %ecx
incq %rax
jmp 0x526b
movsd 0x100(%rsp), %xmm0
movsd 0x2d56(%rip), %xmm10    # 0x8008
mulsd %xmm10, %xmm0
movsd 0xc0(%rsp), %xmm8
divsd %xmm8, %xmm0
movsd 0xf8(%rsp), %xmm1
mulsd %xmm10, %xmm1
divsd %xmm8, %xmm1
movsd 0xf0(%rsp), %xmm2
mulsd %xmm10, %xmm2
divsd %xmm8, %xmm2
movsd 0xe8(%rsp), %xmm3
mulsd %xmm10, %xmm3
divsd %xmm8, %xmm3
movsd 0xe0(%rsp), %xmm4
mulsd %xmm10, %xmm4
divsd %xmm8, %xmm4
movsd 0xd8(%rsp), %xmm5
mulsd %xmm10, %xmm5
divsd %xmm8, %xmm5
movsd 0x5b840(%rsp), %xmm6
mulsd %xmm10, %xmm6
divsd %xmm8, %xmm6
movsd 0x180(%rsp), %xmm7
mulsd %xmm10, %xmm7
divsd %xmm8, %xmm7
movq 0x1b840(%rsp,%rbx,8), %r14
movsd (%r14), %xmm9
mulsd %xmm10, %xmm9
divsd %xmm8, %xmm9
leaq 0x6a07(%rip), %rax      # 0xbd70
movq (%rax,%rbx,8), %r8
movsd %xmm9, (%rsp)
leaq 0x2ecf(%rip), %rdi      # 0x8249
movl %ebp, %esi
movq 0x18(%rsp), %rdx
movq 0x10(%rsp), %rcx
movb $0x8, %al
callq 0x3050
xorpd %xmm2, %xmm2
movl %ebx, %ebx
xorl %r15d, %r15d
leaq 0xc0(%rsp), %rax
testq %rax, %rax
je 0x53f3
subq $0x1, %rbx
jb 0x53e5
movsd (%rax), %xmm0
ucomisd %xmm2, %xmm0
jne 0x53b5
jnp 0x53e5
movsd (%r14), %xmm1
mulsd 0x2c4e(%rip), %xmm1     # 0x8010
ucomisd %xmm0, %xmm1
jbe 0x53e5
leaq 0x69a1(%rip), %rax      # 0xbd70
movq (%r15,%rax), %rsi
leaq 0x2eb8(%rip), %rdi      # 0x8292
xorl %eax, %eax
callq 0x3050
xorpd %xmm2, %xmm2
movq 0x1b848(%rsp,%r15), %rax
addq $0x8, %r15
jmp 0x539e
pushq $0xa
popq %rdi
callq 0x32a0
leaq 0x2c8e(%rip), %rbx      # 0x8090
leaq 0x2ed7(%rip), %r15      # 0x82e0
movq 0x150(%rsp), %rcx
movq 0x18(%rsp), %rax
movq 0x30(%rsp), %r14
movq 0x38(%rsp), %rdx
incq %rdx
jmp 0x3623
movq 0x6ba9(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
leaq 0x2d69(%rip), %rsi      # 0x81a2
movq 0x18(%rsp), %rdx
movq 0x10(%rsp), %rcx
xorl %eax, %eax
callq 0x32d0
jmp 0x3d80
movq 0x6b82(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
leaq 0x2d58(%rip), %rsi      # 0x81b8
movq 0x18(%rsp), %rdx
movq 0x10(%rsp), %rcx
xorl %eax, %eax
callq 0x32d0
jmp 0x4176
movq 0x6b5b(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
leaq 0x2d4a(%rip), %rsi      # 0x81d1
movq 0x18(%rsp), %rdx
movq 0x10(%rsp), %rcx
xorl %eax, %eax
callq 0x32d0
jmp 0x47a6
movq 0x6b34(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
leaq 0x2d3c(%rip), %rsi      # 0x81ea
movq 0x18(%rsp), %rdx
movq 0x10(%rsp), %rcx
xorl %eax, %eax
callq 0x32d0
jmp 0x4c06
movq 0x6b0d(%rip), %rax      # 0xbfd8
movq (%rax), %rdi
leaq 0x2d2e(%rip), %rsi      # 0x8203
movq 0x18(%rsp), %rdx
movq 0x10(%rsp), %rcx
xorl %eax, %eax
callq 0x32d0
jmp 0x51b9
incq %rcx
jmp 0x35a6
incl %ebp
jmp 0x3575
xorl %eax, %eax
addq $0x6b848, %rsp          # imm = 0x6B848
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2c5f(%rip), %rdi      # 0x8174
xorl %eax, %eax
callq 0x5f21