// File: /workspace/github_cpp_makefile_star2_O1/syzcch[P]FEC_C_version/./fec_star.h
// Function: star::decoding()
void decoding()
    {
        int i,j,k,m,stripe;
        int rs_nbr = 0;      /*rs_nbr means error data number*/
        int rs_data_nbr = 0; /*rs_data_nbr means how many error data in original data*/
        int rs_check_nbr = 0;/*rs_check_nbr means how many error data in redundancy data*/
        int rs_disk1 = -1;
        int rs_disk2 = -1;
        int rs_disk3 = -1;

        if( check_data_size % block_nbr != 0)
        {
            printf(" Cannot  striping. wrong DATA_LENGTH!\n");
            exit(1);
        }

        for(i = 0; i < data_disk_nbr+ 2; i++)
        {
            if(restarts[i] == 1)
            {
                rs_disk1 = i;
                break;
            }
        }
        if( rs_disk1 != -1)
        {
            for( i = rs_disk1 + 1; i < data_disk_nbr + 2; i++)
            {
                if(restarts[i] == 1)
                {
                    rs_disk2 = i;
                    break;
                }
            }
        }
        if(rs_disk2 != -1)
        {
            for( i = rs_disk2 + 1; i < data_disk_nbr + 2; i++)
            {
                if(restarts[i] == 1)
                {
                    rs_disk3 = i;
                    break;
                }
            }
        }

        if(rs_disk1 != -1)memset(check_data[rs_disk1], 0,check_data_size*sizeof(int));
        if(rs_disk2 != -1)memset(check_data[rs_disk2], 0,check_data_size*sizeof(int));
        if(rs_disk3 != -1)memset(check_data[rs_disk3], 0,check_data_size*sizeof(int));


//      printf("rs_disks : %d %d %d\n", rs_disk1,rs_disk2,rs_disk3);

        for( i = 0; i <= data_disk_nbr + 2; i++)
            rs_nbr += restarts[i];

        if( TOLERENCE < rs_nbr)
        {
            printf(" Too many error data!\n");
            exit(1);
        }

        //printf("rs_nbr = %d\n",rs_nbr);
        for( i = 0; i < data_disk_nbr; i++)
            rs_data_nbr += restarts[i];

        rs_check_nbr = rs_nbr - rs_data_nbr;

        if(rs_data_nbr == 0)
        {
            if(restarts[data_disk_nbr] == 1)
                STAR_encoding_row();
            if(restarts[data_disk_nbr + 1] == 1)
                STAR_encoding_diag1();
            if(restarts[data_disk_nbr + 2] == 1)
                STAR_encoding_diag2();
        }

        if(rs_data_nbr == 1)
        {
            if( rs_check_nbr <= 1)
            {
                Evenodd_decoding(restarts);
                if(restarts[data_disk_nbr + 2] == 1)
                    STAR_encoding_diag2();
            }
            if(rs_check_nbr == 2)
            {
                if( restarts[data_disk_nbr] == 0)/*no error in row checksum*/
                {
                    for( i = 0; i < check_data_size; i++)
                    {
                        for( j = 0; j <= data_disk_nbr; j++)
                        {
                            if( j != rs_disk1)
                                check_data[rs_disk1][i] ^= check_data[j][i];
                        }
                    }
                    STAR_encoding_diag1();
                    STAR_encoding_diag2();
                }
                if(restarts[data_disk_nbr] == 1)/*row checksum is broken*/
                {
                    if(restarts[data_disk_nbr + 2] == 1)
                    {
                        Evenodd_decoding(restarts);
                        STAR_encoding_diag2();
                    }
                    if(restarts[data_disk_nbr + 1] == 1)
                    {
                        Evenodd_decoding_1(rs_disk1, rs_disk2);
                        STAR_encoding_diag1();
                    }
                }
            }
        }

        if(rs_data_nbr == 2)
        {
            if(rs_check_nbr == 0)
            {
                Evenodd_decoding(restarts);
            }
            else /*rs_check_nbr == 1*/
                if(restarts[data_disk_nbr] == 1)
                {
                    int *tmp_for_s1s2;
                    tmp_for_s1s2 = (int *)malloc(sizeof(int) * block_size);
                    memset( tmp_for_s1s2, 0, sizeof(int)  * block_size);
                    for( i = 0; i < block_nbr; i++)/*s1 xor s2*/
                    {
                        for( j = 0; j < block_size; j++)
                        {
                            tmp_for_s1s2[j] ^= check_data[data_disk_nbr + 1][i * block_size + j];
                            tmp_for_s1s2[j] ^= check_data[data_disk_nbr + 2][i * block_size + j];
                        }
                    }

                    int **tmp;// storing s
                    tmp = (int **)malloc( sizeof(int *) * 3);
                    for( i = 0; i < 3; i++)
                    {
                        tmp[i] = (int *)malloc(sizeof(int) * p * block_size);
                        memset( tmp[i], 0, sizeof(int) * p * block_size);
                    }

                    for( i = 0; i < check_data_size; i++)
                    {
                        for ( j = 0; j <= data_disk_nbr; j++)
                        {
                            tmp[0][i] ^= check_data[j][i] ;
                        }
                    }
                    for( stripe = 0; stripe < block_nbr + 1; stripe++)
                    {
                        for( i = 0; i < data_disk_nbr; i++)
                        {
                            for( j = 0; j < block_size; j++)
                            {
                                k = (stripe - i + p) % p;
                                if( k < block_nbr)
                                {
                                    tmp[1][stripe * block_size + j] ^= check_data[i][k * block_size + j];
                                }
                            }
                        }
                    }
                    for(  i = 0; i < check_data_size; i++)
                    {
                        tmp[1][i] ^= check_data[data_disk_nbr + 1][i];
                    }


                    for( stripe = 0; stripe < block_nbr + 1; stripe++)
                    {
                        for( i = 0; i < data_disk_nbr; i++)
                        {
                            for( j = 0; j < block_size ; j++)
                            {
                                k = (stripe + i + p) % p;
                                if( k < block_nbr)
                                {
                                    tmp[2][stripe * block_size + j] ^= check_data[i][k * block_size + j];
                                }
                            }
                        }
                    }
                    for( i = 0 ; i < check_data_size; i++)
                    {
                        tmp[2][i] ^= check_data[data_disk_nbr + 2][i];
                    }

                    /*finish computing all s~~ ,storing them in **tmp */
                    int **tmp_for_xor;
                    tmp_for_xor = (int **)malloc( sizeof(int *) * p);
                    for( i = 0; i < p; i++)
                    {
                        tmp_for_xor[i] = (int *)malloc(sizeof(int) * block_size);
                        memset( tmp_for_xor[i], 0, sizeof(int) * block_size);
                    }

                    for( i = 0; i < block_nbr + 1; i++)
                    {
                        for( j = 0; j < block_size; j ++)
                        {
                            tmp_for_xor[i][j] = tmp[0][i * block_size + j] ^ tmp[0][((rs_disk2 - rs_disk1 + i) % p) * block_size + j]
                                                ^ tmp[1][((rs_disk2 + p + i) % p) * block_size + j] ^ tmp[2][((p - rs_disk1 + i) % p) * block_size + j]
                                                ^ tmp_for_s1s2[j];
                        }
                    }

                    /*    *tmp[0] = c[p][0] xor c[s][rs_disk2 - rs_disk1]
                          *tmp[i] = c[p][i] xor c[s][(rs_disk2 - rs_disk1 + i)%p]
                      ...................................
                    */
                    /*c[p][k] xor c[p][p-1] = tmp_for_xor[k], and [rs_disk2][p-1] is zero*/
                    k = p - 1 - ( rs_disk2 - rs_disk1);
                    for( i = 0; i< block_size; i++)
                    {
                        check_data[data_disk_nbr][k * block_size + i] = tmp_for_xor[k][i];
                    }

                    m = block_nbr - 1;
                    while(m)
                    {
                        i = (k + rs_disk1 - rs_disk2 + p) % p;

                        for( j = 0; j < block_size; j++)
                        {
                            check_data[data_disk_nbr][i * block_size + j] = tmp_for_xor[i][j] ^ check_data[data_disk_nbr][k * block_size + j];
                        }
                        k = i;
                        m--;
                    }
                    restarts[data_disk_nbr] = 0;/*restore p*/
                    free(tmp);
                    free(tmp_for_s1s2);
                    free(tmp_for_xor);

                    Evenodd_decoding( restarts);
                }

            if(restarts[data_disk_nbr + 1] == 1)
            {
                Evenodd_decoding_1(rs_disk1, rs_disk2);
                STAR_encoding_diag1();
            }
            if(restarts[data_disk_nbr + 2] == 1)
            {
                Evenodd_decoding(restarts);
                STAR_encoding_diag2();
            }
        }

        /*3 error data*/
        if(rs_data_nbr == 3)
        {
            int r,s,t,u,v;

            int **tmp;/*store s~~*/
            tmp = (int **)malloc( sizeof(int *) * 3);
            for( i = 0; i < 3; i++)
            {
                tmp[i] = (int *)malloc(sizeof(int) * p * block_size);
                memset( tmp[i], 0, sizeof(int) * p * block_size);
            }
            int *tmp_for_s1;
            tmp_for_s1 = (int *)malloc(sizeof(int) * block_size);
            memset( tmp_for_s1, 0, sizeof(int) * block_size);

            int *tmp_for_s2;
            tmp_for_s2 = (int *)malloc(sizeof(int) * block_size);
            memset( tmp_for_s2, 0, sizeof(int) * block_size);

            int **tmp_for_xor;
            tmp_for_xor = (int **)malloc( sizeof(int *) * p);
            for( i = 0; i < p; i++)
            {
                tmp_for_xor[i] = (int *)malloc(sizeof(int) * block_size);
                memset( tmp_for_xor[i], 0, sizeof(int) * block_size);
            }


            /*computing s~~*/
            for( i = 0; i < block_nbr; i++)
            {
                for( j = 0; j < block_size; j++)
                {
                    tmp_for_s1[j] ^= check_data[data_disk_nbr][i * block_size + j];
                    tmp_for_s1[j] ^= check_data[data_disk_nbr + 1][i * block_size + j];

                    tmp_for_s2[j] ^= check_data[data_disk_nbr][i * block_size + j];
                    tmp_for_s2[j] ^= check_data[data_disk_nbr + 2][i * block_size + j];
                }
            }


            for( i = 0; i < check_data_size; i++)
            {
                for ( j = 0; j <= data_disk_nbr; j++)
                {
                    tmp[0][i] ^= check_data[j][i] ;
                }
            }

            for( stripe = 0; stripe < block_nbr + 1; stripe++)
            {
                for( i = 0; i < data_disk_nbr; i++)
                {
                    for( j = 0; j < block_size; j++)
                    {
                        k = (stripe - i + p) % p;
                        if( k < block_nbr)
                        {
                            tmp[1][stripe * block_size + j] ^= check_data[i][k * block_size + j];
                        }
                    }
                }
            }
            for(  i = 0; i < block_nbr + 1; i++)
            {
                for(j = 0; j < block_size; j++)
                {
                    if( i < block_nbr)
                        tmp[1][i * block_size + j] ^= (check_data[data_disk_nbr + 1][i * block_size + j] ^ tmp_for_s1[j]);
                    else tmp[1][i * block_size + j] ^= tmp_for_s1[j];
                }
            }


            for( stripe = 0; stripe < block_nbr + 1; stripe++)
            {
                for( i = 0; i < data_disk_nbr; i++)
                {
                    for( j = 0; j < block_size ; j++)
                    {
                        k = (stripe + i + p) % p;
                        if( k < block_nbr)
                        {
                            tmp[2][stripe * block_size + j] ^= check_data[i][k * block_size + j];
                        }
                    }
                }
            }

            for( i = 0 ; i < block_nbr + 1; i++)
            {
                for(j = 0; j < block_size; j++)
                {
                    if( i < block_nbr)
                        tmp[2][i * block_size + j] ^= (check_data[data_disk_nbr + 2][i * block_size + j] ^ tmp_for_s2[j]);
                    else tmp[2][i * block_size + j] ^= tmp_for_s2[j];
                }
            }

            /*finish computing all s~~ ,storing them in **tmp */

            r = rs_disk1;
            s = rs_disk2;
            t = rs_disk3;
            u = s - r;
            v = t - s;

            /*deal with 3 error data with symmetry*/
            if( u == v)
            {
                for( i = 0; i < block_nbr + 1; i++)
                {
                    for( j = 0; j < block_size; j ++)
                    {
                        tmp_for_xor[i][j] = tmp[0][i * block_size + j] ^ tmp[0][((t - r + i) % p) * block_size + j]
                                            ^ tmp[1][((t + p + i) % p) * block_size + j] ^ tmp[2][((p - r + i) % p) * block_size + j];
                    }
                }
                /*    *tmp_for_xor[0] = c[s][0] xor c[s][t-r]
                      *tmp_for_xor[1] = c[s][1] xor c[s][(t-r+1)%p]
                      *tmp_for_xor[i] = c[s][i] xor c[s][(t-r+i)%p]
                      ...................................*/
                /*c[s][k] xor c[s][p-1] = tmp_for_xor[k],and c[s][p-1] is zero*/
                k = p - 1 -( t - r );
                for( i = 0; i< block_size; i++)
                {
                    check_data[s][k * block_size + i] = tmp_for_xor[k][i];
                }

                m = block_nbr - 1;
                while(m)
                {
                    i = (r - t + k + p) % p;

                    for( j = 0; j < block_size; j++)
                    {
                        check_data[s][i * block_size + j] = tmp_for_xor[i][j] ^ check_data[s][k * block_size + j];
                    }
                    k = i;
                    m--;
                }
            }

            /*asymmetry*/
            else if( u != v)
            {
                int d;/*d means cross*/
                int **flag;

                flag = (int**)malloc(3*sizeof(int*));
                for(i=0; i<3; i++)
                {
                    flag[i] = (int*)malloc(sizeof(int) * p);
                    memset(flag[i],0, p*sizeof(int));
                }

                for(d = 0; d <= p; d++)
                {
                    if( (u + v * d) % p == 0)
                        break;
                }

                for(i = 0; i< d ; i++ )
                {
                    /*slope -1*/
                    flag[0][(0 + i * v) % p] ++;
                    flag[1][(s - r + i * v) % p]++;
                    flag[2][(t - r + i * v) % p]++;

                    /*slope 1*/
                    flag[2][(0 + i * v) % p]++;
                    flag[1][(t-s+i * v) % p]++;
                    flag[0][(t-r+i * v) % p]++;

                }

                int *count;
                count = (int*)malloc(sizeof(int) * p);
                memset(count, 0, sizeof(int)*p);

                for(i = 0; i < p; i++) /*find how many 1 in line i*/
                {
                    for(j = 0; j<3; j++)
                    {
                        if(flag[j][i] == 1)
                            count[i]++;
                    }
                }

                for( m = 0; m < block_nbr + 1; m++)/*a xor a */
                {
                    for( i = 0; i < p ; i++)
                    {
                        if(count[i] == 2 || count[i] == 3)
                        {
                            for( j = 0; j < block_size; j++)
                                tmp_for_xor[m /** v*/][j] ^= tmp[0][((i + m /** v*/) % p) * block_size + j];
                        }
                    }
                    for( i = 0; i < d; i++)
                    {
                        for( j = 0; j < block_size; j++)
                        {
                            tmp_for_xor[m][j] ^= tmp[1][ ((t + p + 0 + i * v + m) % p) * block_size + j];
                            tmp_for_xor[m][j] ^= tmp[2][ ((p - r + 0 + i * v + m) % p) * block_size + j];
                        }
                    }
                }
                /*now,*tmp_for_xor[0] = c[s][u] xor c[s][p-u]
                       *tmp_for_xor[i] = c[s][(u + i)%p] xor c[s][ ( p-u+i)%p ]
                       ...............................................*/
                i = u - 1;
                k = (u + i) % p;/*c[s][k] xor c[s][p-1] = tmp_for_xor[k],and c[s][p-1] is zero*/
                for( j = 0; j< block_size; j++)
                {
                    check_data[s][k * block_size + j] = tmp_for_xor[i][j];
                }

                m = block_nbr - 1;
                while(m)
                {
                    i = (k + u) % p;

                    for( j = 0; j < block_size; j++)
                    {
                        check_data[s][((u + i) % p) * block_size + j] = tmp_for_xor[i][j] ^ check_data[s][k * block_size + j];
                    }
                    k = (u + i) % p;
                    m--;
                }

                /* is count[i]==3,then s = s XOR s[0][i]*/
                /*next, the value of count[u] & count[p-u] is equal 1 or 2*/
                /*
                if((count[u] == 1) && (count[p-u]==1))
                {
                    then a[s][u] XOR a[s][p-u] = s XOR s[1][t] XOR s[2][(p-r)%p] XOR s[1][(t+v)%p] XOR ......
                }
                else if(count[u] ==2)
                {
                  then using s[0][u]and s[0][p-u]
                }
                */
            }

            restarts[s] = 0;/*data s have been restore*/
            free(tmp);
            free(tmp_for_s1);
            free(tmp_for_s2);
            free(tmp_for_xor);

            Evenodd_decoding(restarts);
        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movslq 0x8(%rdi), %rcx
movl %ecx, %eax
cltd
idivl 0x14(%rdi)
testl %edx, %edx
jne 0x25ef
movq %rdi, %rbx
movslq 0x28(%rdi), %rax
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
cmpq $-0x1, %rax
jl 0x1549
movq 0x20(%rbx), %rdx
leal 0x2(%rax), %esi
xorl %r13d, %r13d
cmpl $0x1, (%rdx,%r13,4)
je 0x1549
incq %r13
cmpq %r13, %rsi
jne 0x1534
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
cmpl $-0x1, %r13d
je 0x156c
movslq %r13d, %rsi
movq 0x20(%rbx), %rdx
cmpq %rax, %rsi
jg 0x156c
leaq 0x1(%rsi), %rdi
cmpl $0x1, 0x4(%rdx,%rsi,4)
movq %rdi, %rsi
jne 0x1556
movl %edi, %r12d
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
cmpl $-0x1, %r12d
je 0x1598
movslq %r12d, %rsi
movq 0x20(%rbx), %rdx
cmpq %rax, %rsi
jg 0x1593
leaq 0x1(%rsi), %rdi
cmpl $0x1, 0x4(%rdx,%rsi,4)
movq %rdi, %rsi
jne 0x157e
jmp 0x1598
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
cmpl $-0x1, %r13d
movq %rdi, -0x68(%rbp)
je 0x15bf
movq 0x18(%rbx), %rax
movslq %r13d, %rdx
movq (%rax,%rdx,8), %rdi
shlq $0x2, %rcx
xorl %esi, %esi
movq %rcx, %rdx
callq 0x1050
movq -0x68(%rbp), %rdi
cmpl $-0x1, %r12d
je 0x15e3
movq 0x18(%rbx), %rax
movslq %r12d, %rcx
movq (%rax,%rcx,8), %rdi
movslq 0x8(%rbx), %rdx
shlq $0x2, %rdx
xorl %esi, %esi
callq 0x1050
movq -0x68(%rbp), %rdi
cmpl $-0x1, %edi
je 0x1602
movq 0x18(%rbx), %rax
movslq %edi, %rcx
movq (%rax,%rcx,8), %rdi
movslq 0x8(%rbx), %rdx
shlq $0x2, %rdx
xorl %esi, %esi
callq 0x1050
movslq 0x28(%rbx), %rax
xorl %r15d, %r15d
cmpq $-0x2, %rax
jl 0x162e
leal 0x2(%rax), %ecx
movq 0x20(%rbx), %rdx
xorl %esi, %esi
testl %ecx, %ecx
cmovlel %esi, %ecx
incl %ecx
xorl %r15d, %r15d
addl (%rdx,%rsi,4), %r15d
incq %rsi
cmpq %rsi, %rcx
jne 0x1622
cmpl $0x3, %r15d
jg 0x25f8
testl %eax, %eax
jle 0x1653
movq 0x20(%rbx), %rcx
xorl %edx, %edx
xorl %r14d, %r14d
addl (%rcx,%rdx,4), %r14d
incq %rdx
cmpq %rdx, %rax
jne 0x1645
jmp 0x1656
xorl %r14d, %r14d
cmpl $0x3, %r14d
ja 0x2228
movl %r14d, %ecx
leaq 0x299a(%rip), %rdx      # 0x4004
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
movq %r13, -0x48(%rbp)
jmpq *%rcx
movq 0x20(%rbx), %rcx
cmpl $0x1, (%rcx,%rax,4)
jne 0x1689
movq %rbx, %rdi
callq 0x27b2
movq 0x20(%rbx), %rax
movslq 0x28(%rbx), %rcx
cmpl $0x1, 0x4(%rax,%rcx,4)
jne 0x16a0
movq %rbx, %rdi
callq 0x27f8
movq 0x20(%rbx), %rax
movslq 0x28(%rbx), %rcx
cmpl $0x1, 0x8(%rax,%rcx,4)
jne 0x16b7
movq %rbx, %rdi
callq 0x297c
cmpl $0x3, %r14d
je 0x1cf6
cmpl $0x2, %r14d
je 0x17e9
cmpl $0x1, %r14d
jne 0x2228
movl %r14d, %eax
movl %r15d, %r14d
movl %eax, -0x78(%rbp)
subl %eax, %r14d
cmpl $0x1, %r14d
jg 0x170a
movq 0x20(%rbx), %rsi
movq %rbx, %rdi
callq 0x2ac4
movq 0x20(%rbx), %rax
movslq 0x28(%rbx), %rcx
cmpl $0x1, 0x8(%rax,%rcx,4)
jne 0x170a
movq %rbx, %rdi
callq 0x297c
cmpl $0x2, %r14d
movl -0x78(%rbp), %r14d
jne 0x17d5
movq 0x20(%rbx), %rax
movslq 0x28(%rbx), %rcx
cmpl $0x0, (%rax,%rcx,4)
jne 0x178b
cmpl $0x0, 0x8(%rbx)
jle 0x177b
movslq %r13d, %rax
movl %r13d, %ecx
negq %rcx
xorl %edx, %edx
cmpl $0x0, 0x28(%rbx)
js 0x176f
movq 0x18(%rbx), %rsi
movq $-0x1, %rdi
leaq (%rcx,%rdi), %r8
cmpq $-0x1, %r8
je 0x1763
movq 0x8(%rsi,%rdi,8), %r8
movl (%r8,%rdx,4), %r8d
movq (%rsi,%rax,8), %r9
xorl %r8d, (%r9,%rdx,4)
movslq 0x28(%rbx), %r8
incq %rdi
cmpq %r8, %rdi
jl 0x1748
incq %rdx
movslq 0x8(%rbx), %rsi
cmpq %rsi, %rdx
jl 0x1737
movq %rbx, %rdi
callq 0x27f8
movq %rbx, %rdi
callq 0x297c
movq 0x20(%rbx), %rsi
movslq 0x28(%rbx), %rax
cmpl $0x1, (%rsi,%rax,4)
jne 0x17d5
cmpl $0x1, 0x8(%rsi,%rax,4)
jne 0x17b0
movq %rbx, %rdi
callq 0x2ac4
movq %rbx, %rdi
callq 0x297c
movq 0x20(%rbx), %rax
movslq 0x28(%rbx), %rcx
cmpl $0x1, 0x4(%rax,%rcx,4)
jne 0x17d5
movq %rbx, %rdi
movl %r13d, %esi
movl %r12d, %edx
callq 0x31f4
movq %rbx, %rdi
callq 0x27f8
cmpl $0x3, %r14d
je 0x1cf6
cmpl $0x2, %r14d
jne 0x2228
movq 0x20(%rbx), %rsi
cmpl %r14d, %r15d
je 0x1c9f
movslq 0x28(%rbx), %r13
cmpl $0x1, (%rsi,%r13,4)
jne 0x1ca7
movq %rsi, -0x70(%rbp)
movl %r14d, -0x78(%rbp)
movq %r12, -0x30(%rbp)
movslq 0xc(%rbx), %r14
leaq (,%r14,4), %r12
movq %r12, %rdi
callq 0x10d0
movq %rax, %r15
movq %rax, %rdi
xorl %esi, %esi
movq %r12, %rdx
movq %r14, %r12
callq 0x1050
movslq 0x14(%rbx), %rax
testq %rax, %rax
jle 0x1894
movq 0x18(%rbx), %rcx
movl %r12d, %edx
leaq (,%rdx,4), %rsi
xorl %edi, %edi
xorl %r8d, %r8d
testl %r12d, %r12d
jle 0x1889
movq 0x10(%rcx,%r13,8), %r9
addq %rdi, %r9
movq 0x8(%rcx,%r13,8), %r10
addq %rdi, %r10
xorl %r11d, %r11d
movl (%r15,%r11,4), %r14d
xorl (%r10,%r11,4), %r14d
movl %r14d, (%r15,%r11,4)
xorl (%r9,%r11,4), %r14d
movl %r14d, (%r15,%r11,4)
incq %r11
cmpq %r11, %rdx
jne 0x186d
incq %r8
addq %rsi, %rdi
cmpq %rax, %r8
jne 0x1855
movl $0x18, %edi
callq 0x10d0
movq %r12, %rcx
movq %rax, %r12
movslq 0x10(%rbx), %r13
imulq %rcx, %r13
shlq $0x2, %r13
xorl %r14d, %r14d
movq %r13, %rdi
callq 0x10d0
movq %rax, (%r12,%r14,8)
movq %rax, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x1050
incq %r14
cmpq $0x3, %r14
jne 0x18b3
cmpl $0x0, 0x8(%rbx)
jle 0x1915
movq 0x18(%rbx), %rax
xorl %ecx, %ecx
cmpl $0x0, 0x28(%rbx)
js 0x1909
movq (%r12), %rdx
movq $-0x1, %rsi
movq 0x8(%rax,%rsi,8), %rdi
movl (%rdi,%rcx,4), %edi
xorl %edi, (%rdx,%rcx,4)
movslq 0x28(%rbx), %rdi
incq %rsi
cmpq %rdi, %rsi
jl 0x18f2
incq %rcx
movslq 0x8(%rbx), %rdx
cmpq %rdx, %rcx
jl 0x18e1
cmpl $0x0, 0x14(%rbx)
js 0x1992
xorl %ecx, %ecx
cmpl $0x0, 0x28(%rbx)
jle 0x1982
xorl %esi, %esi
movl 0xc(%rbx), %edi
testl %edi, %edi
jle 0x1976
movl %ecx, %r8d
subl %esi, %r8d
movq 0x18(%rbx), %r9
xorl %r10d, %r10d
movl 0x10(%rbx), %r11d
leal (%r11,%r8), %eax
cltd
idivl %r11d
cmpl 0x14(%rbx), %edx
jge 0x196b
movq (%r9,%rsi,8), %rax
imull %edi, %edx
addl %r10d, %edx
movslq %edx, %rdx
movl (%rax,%rdx,4), %eax
movq 0x8(%r12), %rdx
imull %ecx, %edi
addl %r10d, %edi
movslq %edi, %rdi
xorl %eax, (%rdx,%rdi,4)
incl %r10d
movl 0xc(%rbx), %edi
cmpl %edi, %r10d
jl 0x1939
incq %rsi
movslq 0x28(%rbx), %rax
cmpq %rax, %rsi
jl 0x1925
leaq 0x1(%rcx), %rax
movslq 0x14(%rbx), %rdx
cmpq %rdx, %rcx
movq %rax, %rcx
jl 0x191d
cmpl $0x0, 0x8(%rbx)
jle 0x19be
movq 0x18(%rbx), %rax
movq 0x8(%r12), %rcx
xorl %edx, %edx
movslq 0x28(%rbx), %rsi
movq 0x8(%rax,%rsi,8), %rsi
movl (%rsi,%rdx,4), %esi
xorl %esi, (%rcx,%rdx,4)
incq %rdx
movslq 0x8(%rbx), %rsi
cmpq %rsi, %rdx
jl 0x19a3
cmpl $0x0, 0x14(%rbx)
js 0x1a39
xorl %ecx, %ecx
cmpl $0x0, 0x28(%rbx)
jle 0x1a29
xorl %esi, %esi
movl 0xc(%rbx), %edi
testl %edi, %edi
jle 0x1a1d
leal (%rsi,%rcx), %r8d
movq 0x18(%rbx), %r9
xorl %r10d, %r10d
movl 0x10(%rbx), %r11d
leal (%r11,%r8), %eax
cltd
idivl %r11d
cmpl 0x14(%rbx), %edx
jge 0x1a12
movq (%r9,%rsi,8), %rax
imull %edi, %edx
addl %r10d, %edx
movslq %edx, %rdx
movl (%rax,%rdx,4), %eax
movq 0x10(%r12), %rdx
imull %ecx, %edi
addl %r10d, %edi
movslq %edi, %rdi
xorl %eax, (%rdx,%rdi,4)
incl %r10d
movl 0xc(%rbx), %edi
cmpl %edi, %r10d
jl 0x19e0
incq %rsi
movslq 0x28(%rbx), %rax
cmpq %rax, %rsi
jl 0x19ce
leaq 0x1(%rcx), %rax
movslq 0x14(%rbx), %rdx
cmpq %rdx, %rcx
movq %rax, %rcx
jl 0x19c6
cmpl $0x0, 0x8(%rbx)
jle 0x1a65
movq 0x18(%rbx), %rax
movq 0x10(%r12), %rcx
xorl %edx, %edx
movslq 0x28(%rbx), %rsi
movq 0x10(%rax,%rsi,8), %rsi
movl (%rsi,%rdx,4), %esi
xorl %esi, (%rcx,%rdx,4)
incq %rdx
movslq 0x8(%rbx), %rsi
cmpq %rsi, %rdx
jl 0x1a4a
movq %r15, -0x88(%rbp)
movslq 0x10(%rbx), %r14
leaq (,%r14,8), %rdi
callq 0x10d0
movq %rax, -0x58(%rbp)
testq %r14, %r14
jle 0x1ab6
movslq 0xc(%rbx), %r13
shlq $0x2, %r13
xorl %r15d, %r15d
movq %r13, %rdi
callq 0x10d0
movq -0x58(%rbp), %rcx
movq %rax, (%rcx,%r15,8)
movq %rax, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x1050
incq %r15
cmpq %r15, %r14
jne 0x1a91
cmpl $0x0, 0x14(%rbx)
js 0x1ba7
movq -0x30(%rbp), %rax
subl -0x48(%rbp), %eax
movq %rax, -0x80(%rbp)
xorl %edi, %edi
movq -0x88(%rbp), %r14
movl 0xc(%rbx), %r13d
testl %r13d, %r13d
jle 0x1b93
movq (%r12), %r8
movq 0x8(%r12), %rax
movq %rax, -0x40(%rbp)
movq -0x30(%rbp), %rax
addl %edi, %eax
movq %rax, -0x50(%rbp)
movq 0x10(%r12), %rax
movq %rax, -0x60(%rbp)
movl %edi, %esi
subl -0x48(%rbp), %esi
movq -0x58(%rbp), %rax
movq (%rax,%rdi,8), %rax
movq %rax, -0x38(%rbp)
movq -0x80(%rbp), %rax
leal (%rax,%rdi), %ecx
xorl %r15d, %r15d
movl %edi, %eax
imull %r13d, %eax
movslq %eax, %r11
addq %r15, %r11
movl 0x10(%rbx), %r10d
movl %ecx, %eax
cltd
idivl %r10d
imull %r13d, %edx
movslq %edx, %rax
addq %r15, %rax
movl (%r8,%rax,4), %r9d
xorl (%r8,%r11,4), %r9d
movq -0x50(%rbp), %rax
addl %r10d, %eax
cltd
idivl %r10d
imull %r13d, %edx
movslq %edx, %rax
addq %r15, %rax
movq -0x40(%rbp), %rdx
xorl (%rdx,%rax,4), %r9d
leal (%rsi,%r10), %eax
cltd
idivl %r10d
imull %r13d, %edx
movslq %edx, %rax
addq %r15, %rax
movq -0x60(%rbp), %r10
xorl (%r10,%rax,4), %r9d
xorl (%r14,%r15,4), %r9d
movq -0x38(%rbp), %rax
movl %r9d, (%rax,%r15,4)
incq %r15
movslq 0xc(%rbx), %r13
cmpq %r13, %r15
jl 0x1b1c
leaq 0x1(%rdi), %rax
movslq 0x14(%rbx), %rcx
cmpq %rcx, %rdi
movq %rax, %rdi
jl 0x1ad4
movq -0x30(%rbp), %rcx
notl %ecx
movq -0x48(%rbp), %r10
addl %r10d, %ecx
addl 0x10(%rbx), %ecx
movl 0xc(%rbx), %edx
testl %edx, %edx
movq -0x58(%rbp), %r13
jle 0x1bf5
movslq %ecx, %rax
movq (%r13,%rax,8), %rax
movq 0x18(%rbx), %rsi
xorl %edi, %edi
movl (%rax,%rdi,4), %r8d
movslq 0x28(%rbx), %r9
movq (%rsi,%r9,8), %r9
imull %ecx, %edx
movslq %edx, %rdx
addq %rdi, %rdx
movl %r8d, (%r9,%rdx,4)
incq %rdi
movslq 0xc(%rbx), %rdx
cmpq %rdx, %rdi
jl 0x1bd0
movl 0x14(%rbx), %esi
decl %esi
movq -0x88(%rbp), %r15
je 0x1c6c
movl %r10d, %edi
subl -0x30(%rbp), %edi
movq 0x18(%rbx), %r8
movl 0xc(%rbx), %r9d
movl 0x10(%rbx), %r10d
leal (%rdi,%rcx), %eax
addl %r10d, %eax
cltd
idivl %r10d
testl %r9d, %r9d
jle 0x1c66
movslq %edx, %rax
movq (%r13,%rax,8), %rax
xorl %r10d, %r10d
movslq 0x28(%rbx), %r11
movq (%r8,%r11,8), %r11
movl %r9d, %r14d
imull %ecx, %r14d
movslq %r14d, %r14
addq %r10, %r14
movl (%r11,%r14,4), %r14d
xorl (%rax,%r10,4), %r14d
imull %edx, %r9d
movslq %r9d, %r9
addq %r10, %r9
movl %r14d, (%r11,%r9,4)
incq %r10
movslq 0xc(%rbx), %r9
cmpq %r9, %r10
jl 0x1c2f
movl %edx, %ecx
decl %esi
jne 0x1c0d
movslq 0x28(%rbx), %rax
movq -0x70(%rbp), %r14
movl $0x0, (%r14,%rax,4)
movq %r12, %rdi
callq 0x10b0
movq %r15, %rdi
callq 0x10b0
movq %r13, %rdi
callq 0x10b0
movq %r14, %rsi
movq -0x30(%rbp), %r12
movl -0x78(%rbp), %r14d
movq %rbx, %rdi
callq 0x2ac4
movq 0x20(%rbx), %rax
movslq 0x28(%rbx), %rcx
cmpl $0x1, 0x4(%rax,%rcx,4)
movq -0x48(%rbp), %rsi
jne 0x1ccd
movq %rbx, %rdi
movl %r12d, %edx
callq 0x31f4
movq %rbx, %rdi
callq 0x27f8
movq 0x20(%rbx), %rsi
movslq 0x28(%rbx), %rax
cmpl $0x1, 0x8(%rsi,%rax,4)
jne 0x1cec
movq %rbx, %rdi
callq 0x2ac4
movq %rbx, %rdi
callq 0x297c
cmpl $0x3, %r14d
jne 0x2228
movq %r12, -0x30(%rbp)
movl $0x18, %edi
callq 0x10d0
movq %rax, %r12
movslq 0x10(%rbx), %rax
movslq 0xc(%rbx), %r14
imulq %rax, %r14
shlq $0x2, %r14
xorl %r15d, %r15d
movq %r14, %rdi
callq 0x10d0
movq %rax, (%r12,%r15,8)
movq %rax, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x1050
incq %r15
cmpq $0x3, %r15
jne 0x1d1a
movslq 0xc(%rbx), %rax
movq %rax, -0x50(%rbp)
leaq (,%rax,4), %r15
movq %r15, %rdi
callq 0x10d0
movq %rax, -0x80(%rbp)
movq %rax, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x1050
movq %r15, %rdi
callq 0x10d0
movq %rax, -0x78(%rbp)
movq %rax, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x1050
movslq 0x10(%rbx), %r14
leaq (,%r14,8), %rdi
callq 0x10d0
movq %rax, -0x38(%rbp)
testq %r14, %r14
jle 0x1dc0
xorl %r13d, %r13d
movq %r15, %rdi
callq 0x10d0
movq -0x38(%rbp), %rcx
movq %rax, (%rcx,%r13,8)
movq %rax, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x1050
incq %r13
cmpq %r13, %r14
jne 0x1d9b
movslq 0x14(%rbx), %rax
movq %rax, -0x40(%rbp)
testq %rax, %rax
jle 0x1e58
movl -0x50(%rbp), %ecx
movq 0x18(%rbx), %rax
movq %rax, -0x60(%rbp)
movslq 0x28(%rbx), %rsi
leaq (,%rcx,4), %rax
movq %rax, -0x50(%rbp)
xorl %r8d, %r8d
xorl %r9d, %r9d
movq -0x80(%rbp), %rdi
movq -0x78(%rbp), %rdx
testl %ecx, %ecx
jle 0x1e4b
movq -0x60(%rbp), %rax
movq 0x10(%rax,%rsi,8), %r10
addq %r8, %r10
movq 0x8(%rax,%rsi,8), %r11
addq %r8, %r11
movq (%rax,%rsi,8), %r14
addq %r8, %r14
xorl %r15d, %r15d
movl (%r14,%r15,4), %r13d
movl (%rdi,%r15,4), %eax
xorl %r13d, %eax
movl %eax, (%rdi,%r15,4)
xorl (%r11,%r15,4), %eax
xorl (%rdx,%r15,4), %r13d
movl %eax, (%rdi,%r15,4)
movl %r13d, (%rdx,%r15,4)
xorl (%r10,%r15,4), %r13d
movl %r13d, (%rdx,%r15,4)
incq %r15
cmpq %r15, %rcx
jne 0x1e1c
incq %r9
addq -0x50(%rbp), %r8
cmpq -0x40(%rbp), %r9
jne 0x1dfa
cmpl $0x0, 0x8(%rbx)
movq -0x48(%rbp), %r14
movq -0x80(%rbp), %r15
jle 0x1ea0
movq 0x18(%rbx), %rax
xorl %ecx, %ecx
cmpl $0x0, 0x28(%rbx)
js 0x1e94
movq (%r12), %rdx
movq $-0x1, %rsi
movq 0x8(%rax,%rsi,8), %rdi
movl (%rdi,%rcx,4), %edi
xorl %edi, (%rdx,%rcx,4)
movslq 0x28(%rbx), %rdi
incq %rsi
cmpq %rdi, %rsi
jl 0x1e7d
incq %rcx
movslq 0x8(%rbx), %rdx
cmpq %rdx, %rcx
jl 0x1e6c
cmpl $0x0, 0x14(%rbx)
js 0x1f1d
xorl %ecx, %ecx
cmpl $0x0, 0x28(%rbx)
jle 0x1f0d
xorl %esi, %esi
movl 0xc(%rbx), %edi
testl %edi, %edi
jle 0x1f01
movl %ecx, %r8d
subl %esi, %r8d
movq 0x18(%rbx), %r9
xorl %r10d, %r10d
movl 0x10(%rbx), %r11d
leal (%r11,%r8), %eax
cltd
idivl %r11d
cmpl 0x14(%rbx), %edx
jge 0x1ef6
movq (%r9,%rsi,8), %rax
imull %edi, %edx
addl %r10d, %edx
movslq %edx, %rdx
movl (%rax,%rdx,4), %eax
movq 0x8(%r12), %rdx
imull %ecx, %edi
addl %r10d, %edi
movslq %edi, %rdi
xorl %eax, (%rdx,%rdi,4)
incl %r10d
movl 0xc(%rbx), %edi
cmpl %edi, %r10d
jl 0x1ec4
incq %rsi
movslq 0x28(%rbx), %rax
cmpq %rax, %rsi
jl 0x1eb0
leaq 0x1(%rcx), %rax
movslq 0x14(%rbx), %rdx
cmpq %rdx, %rcx
movq %rax, %rcx
jl 0x1ea8
cmpl $0x0, 0x14(%rbx)
js 0x1f86
xorl %eax, %eax
movl 0xc(%rbx), %esi
testl %esi, %esi
jle 0x1f7c
movq 0x18(%rbx), %rcx
xorl %edx, %edx
cmpl 0x14(%rbx), %eax
jge 0x1f5b
movslq 0x28(%rbx), %rdi
movq 0x8(%rcx,%rdi,8), %rdi
imull %eax, %esi
addl %edx, %esi
movslq %esi, %rsi
movl (%r15,%rdx,4), %r8d
xorl (%rdi,%rsi,4), %r8d
movq 0x8(%r12), %rdi
xorl %r8d, (%rdi,%rsi,4)
jmp 0x1f70
movl (%r15,%rdx,4), %edi
movq 0x8(%r12), %r8
imull %eax, %esi
addl %edx, %esi
movslq %esi, %rsi
xorl %edi, (%r8,%rsi,4)
incq %rdx
movslq 0xc(%rbx), %rsi
cmpq %rsi, %rdx
jl 0x1f32
leal 0x1(%rax), %ecx
cmpl 0x14(%rbx), %eax
movl %ecx, %eax
jl 0x1f25
cmpl $0x0, 0x14(%rbx)
movq -0x78(%rbp), %r15
js 0x2005
xorl %ecx, %ecx
cmpl $0x0, 0x28(%rbx)
jle 0x1ff5
xorl %esi, %esi
movl 0xc(%rbx), %edi
testl %edi, %edi
jle 0x1fe9
leal (%rsi,%rcx), %r8d
movq 0x18(%rbx), %r9
xorl %r10d, %r10d
movl 0x10(%rbx), %r11d
leal (%r11,%r8), %eax
cltd
idivl %r11d
cmpl 0x14(%rbx), %edx
jge 0x1fde
movq (%r9,%rsi,8), %rax
imull %edi, %edx
addl %r10d, %edx
movslq %edx, %rdx
movl (%rax,%rdx,4), %eax
movq 0x10(%r12), %rdx
imull %ecx, %edi
addl %r10d, %edi
movslq %edi, %rdi
xorl %eax, (%rdx,%rdi,4)
incl %r10d
movl 0xc(%rbx), %edi
cmpl %edi, %r10d
jl 0x1fac
incq %rsi
movslq 0x28(%rbx), %rax
cmpq %rax, %rsi
jl 0x1f9a
leaq 0x1(%rcx), %rax
movslq 0x14(%rbx), %rdx
cmpq %rdx, %rcx
movq %rax, %rcx
jl 0x1f92
cmpl $0x0, 0x14(%rbx)
js 0x206e
xorl %eax, %eax
movl 0xc(%rbx), %esi
testl %esi, %esi
jle 0x2064
movq 0x18(%rbx), %rcx
xorl %edx, %edx
cmpl 0x14(%rbx), %eax
jge 0x2043
movslq 0x28(%rbx), %rdi
movq 0x10(%rcx,%rdi,8), %rdi
imull %eax, %esi
addl %edx, %esi
movslq %esi, %rsi
movl (%r15,%rdx,4), %r8d
xorl (%rdi,%rsi,4), %r8d
movq 0x10(%r12), %rdi
xorl %r8d, (%rdi,%rsi,4)
jmp 0x2058
movl (%r15,%rdx,4), %edi
movq 0x10(%r12), %r8
imull %eax, %esi
addl %edx, %esi
movslq %esi, %rsi
xorl %edi, (%r8,%rsi,4)
incq %rdx
movslq 0xc(%rbx), %rsi
cmpq %rsi, %rdx
jl 0x201a
leal 0x1(%rax), %ecx
cmpl 0x14(%rbx), %eax
movl %ecx, %eax
jl 0x200d
movq -0x30(%rbp), %rax
movl %eax, %edx
subl %r14d, %edx
movq -0x68(%rbp), %rcx
subl %eax, %ecx
cmpl %ecx, %edx
jne 0x2237
cmpl $0x0, 0x14(%rbx)
js 0x2165
movq -0x68(%rbp), %rax
subl -0x48(%rbp), %eax
movq %rax, -0x58(%rbp)
xorl %edi, %edi
movl 0xc(%rbx), %r10d
testl %r10d, %r10d
jle 0x2151
movq (%r12), %r8
movq 0x8(%r12), %rax
movq %rax, -0x40(%rbp)
movq -0x68(%rbp), %rax
addl %edi, %eax
movq %rax, -0x50(%rbp)
movq 0x10(%r12), %rax
movq %rax, -0x60(%rbp)
movl %edi, %r13d
subl -0x48(%rbp), %r13d
movq -0x38(%rbp), %rax
movq (%rax,%rdi,8), %rsi
movq -0x58(%rbp), %rax
leal (%rax,%rdi), %ecx
xorl %r14d, %r14d
movl %edi, %eax
imull %r10d, %eax
movslq %eax, %r15
addq %r14, %r15
movl 0x10(%rbx), %r9d
movl %ecx, %eax
cltd
idivl %r9d
imull %r10d, %edx
movslq %edx, %rax
addq %r14, %rax
movl (%r8,%rax,4), %r11d
xorl (%r8,%r15,4), %r11d
movq -0x50(%rbp), %rax
addl %r9d, %eax
cltd
idivl %r9d
imull %r10d, %edx
movslq %edx, %rax
addq %r14, %rax
movq -0x40(%rbp), %rdx
xorl (%rdx,%rax,4), %r11d
leal (%r9,%r13), %eax
cltd
idivl %r9d
imull %r10d, %edx
movslq %edx, %rax
addq %r14, %rax
movq -0x60(%rbp), %rdx
xorl (%rdx,%rax,4), %r11d
movl %r11d, (%rsi,%r14,4)
incq %r14
movslq 0xc(%rbx), %r10
cmpq %r10, %r14
jl 0x20e2
leaq 0x1(%rdi), %rax
movslq 0x14(%rbx), %rcx
cmpq %rcx, %rdi
movq %rax, %rdi
jl 0x209c
movl 0xc(%rbx), %eax
movl 0x10(%rbx), %ecx
movq -0x48(%rbp), %r15
subl -0x68(%rbp), %r15d
addl %r15d, %ecx
decl %ecx
testl %eax, %eax
jle 0x21b1
movslq %ecx, %rdx
movq -0x38(%rbp), %rsi
movq (%rsi,%rdx,8), %rdx
movq 0x18(%rbx), %rsi
movslq -0x30(%rbp), %rdi
movq (%rsi,%rdi,8), %rsi
xorl %edi, %edi
movl (%rdx,%rdi,4), %r8d
imull %ecx, %eax
cltq
addq %rdi, %rax
movl %r8d, (%rsi,%rax,4)
incq %rdi
movslq 0xc(%rbx), %rax
cmpq %rax, %rdi
jl 0x2195
movl 0x14(%rbx), %esi
decl %esi
je 0x25a3
movq 0x18(%rbx), %rdi
movslq -0x30(%rbp), %r8
leal (%rcx,%r15), %eax
movl 0xc(%rbx), %r9d
movl 0x10(%rbx), %r10d
addl %r10d, %eax
cltd
idivl %r10d
testl %r9d, %r9d
jle 0x221d
movslq %edx, %rax
movq -0x38(%rbp), %r10
movq (%r10,%rax,8), %rax
movq (%rdi,%r8,8), %r10
xorl %r11d, %r11d
movl %r9d, %r14d
imull %ecx, %r14d
movslq %r14d, %r14
addq %r11, %r14
movl (%r10,%r14,4), %r14d
xorl (%rax,%r11,4), %r14d
imull %edx, %r9d
movslq %r9d, %r9
addq %r11, %r9
movl %r14d, (%r10,%r9,4)
incq %r11
movslq 0xc(%rbx), %r9
cmpq %r9, %r11
jl 0x21ee
movl %edx, %ecx
decl %esi
jne 0x21c4
jmp 0x25a3
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %ecx, -0x60(%rbp)
movq %rdx, -0x70(%rbp)
movl $0x18, %edi
callq 0x10d0
movq %rax, %r13
movslq 0x10(%rbx), %r15
shlq $0x2, %r15
xorl %r14d, %r14d
movq %r15, %rdi
callq 0x10d0
movq %rax, (%r13,%r14,8)
movq %rax, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x1050
incq %r14
cmpq $0x3, %r14
jne 0x2256
movl 0x10(%rbx), %esi
testl %esi, %esi
movq -0x70(%rbp), %rax
js 0x22ad
leal 0x1(%rsi), %edi
xorl %r9d, %r9d
movl %eax, %ecx
movq -0x38(%rbp), %r15
movl -0x60(%rbp), %r8d
movl %ecx, %eax
cltd
idivl %esi
testl %edx, %edx
je 0x22b4
incl %r9d
addl %r8d, %ecx
cmpl %r9d, %edi
jne 0x2294
movl %edi, %r9d
jmp 0x22b4
xorl %r9d, %r9d
movq -0x38(%rbp), %r15
movl %r9d, -0x40(%rbp)
testl %r9d, %r9d
movq -0x70(%rbp), %r14
je 0x2335
movq (%r13), %rdi
movq 0x8(%r13), %r8
movq 0x10(%r13), %r9
movq -0x68(%rbp), %r10
subl -0x48(%rbp), %r10d
xorl %ecx, %ecx
movl -0x40(%rbp), %r11d
movl %ecx, %eax
cltd
idivl 0x10(%rbx)
movslq %edx, %rax
incl (%rdi,%rax,4)
leal (%r14,%rcx), %eax
cltd
idivl 0x10(%rbx)
movslq %edx, %rax
incl (%r8,%rax,4)
leal (%r10,%rcx), %esi
movl %esi, %eax
cltd
idivl 0x10(%rbx)
movslq %edx, %rax
incl (%r9,%rax,4)
movl %ecx, %eax
cltd
idivl 0x10(%rbx)
movslq %edx, %rax
incl (%r9,%rax,4)
addl -0x60(%rbp), %ecx
movl %ecx, %eax
cltd
idivl 0x10(%rbx)
movslq %edx, %rax
incl (%r8,%rax,4)
movl %esi, %eax
cltd
idivl 0x10(%rbx)
movslq %edx, %rax
incl (%rdi,%rax,4)
decl %r11d
jne 0x22db
movslq 0x10(%rbx), %r14
leaq (,%r14,4), %rdi
movq %rdi, -0x58(%rbp)
callq 0x10d0
movq %rax, -0x50(%rbp)
movq %rax, %rdi
xorl %esi, %esi
movq -0x58(%rbp), %rdx
callq 0x1050
testq %r14, %r14
jle 0x2388
xorl %eax, %eax
xorl %ecx, %ecx
movq (%r13,%rcx,8), %rdx
cmpl $0x1, (%rdx,%rax,4)
jne 0x2377
movq -0x50(%rbp), %rdx
incl (%rdx,%rax,4)
incq %rcx
cmpq $0x3, %rcx
jne 0x2365
incq %rax
cmpq %r14, %rax
jne 0x2363
cmpl $0x0, 0x14(%rbx)
movl -0x40(%rbp), %r14d
js 0x24c5
xorl %esi, %esi
cmpl $0x0, 0x10(%rbx)
movq -0x50(%rbp), %r13
jle 0x23f8
xorl %edi, %edi
movl (%r13,%rdi,4), %eax
andl $-0x2, %eax
cmpl $0x2, %eax
jne 0x23ec
movl 0xc(%rbx), %r9d
testl %r9d, %r9d
jle 0x23ec
movq (%r12), %r8
leal (%rdi,%rsi), %ecx
movq (%r15,%rsi,8), %r10
xorl %r11d, %r11d
movl %ecx, %eax
cltd
idivl 0x10(%rbx)
imull %r9d, %edx
movslq %edx, %rax
addq %r11, %rax
movl (%r8,%rax,4), %eax
xorl %eax, (%r10,%r11,4)
incq %r11
movslq 0xc(%rbx), %r9
cmpq %r9, %r11
jl 0x23c8
incq %rdi
movslq 0x10(%rbx), %rax
cmpq %rax, %rdi
jl 0x23a4
testl %r14d, %r14d
je 0x24ad
movq -0x68(%rbp), %rax
addl %esi, %eax
movq %rax, -0x58(%rbp)
movl %esi, %eax
subl -0x48(%rbp), %eax
movl %eax, -0x88(%rbp)
xorl %r8d, %r8d
movl 0xc(%rbx), %edi
testl %edi, %edi
jle 0x249d
movq 0x8(%r12), %r9
movq 0x10(%r12), %r10
movl %r8d, %r11d
imull -0x60(%rbp), %r11d
movq -0x58(%rbp), %rax
leal (%rax,%r11), %r14d
movq -0x38(%rbp), %rax
movq (%rax,%rsi,8), %r13
addl -0x88(%rbp), %r11d
xorl %ecx, %ecx
movl 0x10(%rbx), %r15d
leal (%r14,%r15), %eax
cltd
idivl %r15d
imull %edi, %edx
movslq %edx, %rax
addq %rcx, %rax
movl (%r13,%rcx,4), %edi
xorl (%r9,%rax,4), %edi
movl %edi, (%r13,%rcx,4)
movl 0x10(%rbx), %r15d
leal (%r11,%r15), %eax
cltd
idivl %r15d
movslq 0xc(%rbx), %rax
movslq %edx, %rdx
imulq %rax, %rdx
addq %rcx, %rdx
xorl (%r10,%rdx,4), %edi
movl %edi, (%r13,%rcx,4)
incq %rcx
movslq 0xc(%rbx), %rdi
cmpq %rdi, %rcx
jl 0x244b
incl %r8d
movl -0x40(%rbp), %r14d
cmpl %r14d, %r8d
jne 0x2419
leaq 0x1(%rsi), %rax
movslq 0x14(%rbx), %rcx
cmpq %rcx, %rsi
movq %rax, %rsi
movq -0x38(%rbp), %r15
jl 0x2398
movq -0x70(%rbp), %r9
leal -0x1(,%r9,2), %eax
cltd
idivl 0x10(%rbx)
movl %edx, %ecx
movl 0xc(%rbx), %eax
testl %eax, %eax
jle 0x2513
leal -0x1(%r9), %edx
movslq %edx, %rdx
movq (%r15,%rdx,8), %rdx
movq 0x18(%rbx), %rsi
movslq -0x30(%rbp), %rdi
movq (%rsi,%rdi,8), %rsi
xorl %edi, %edi
movl (%rdx,%rdi,4), %r8d
imull %ecx, %eax
cltq
addq %rdi, %rax
movl %r8d, (%rsi,%rax,4)
incq %rdi
movslq 0xc(%rbx), %rax
cmpq %rax, %rdi
jl 0x24f7
movl 0x14(%rbx), %r8d
decl %r8d
je 0x25a3
movq 0x18(%rbx), %rax
movq %rax, -0x40(%rbp)
movslq -0x30(%rbp), %r10
leal (%rcx,%r9), %eax
cltd
idivl 0x10(%rbx)
movl %edx, %esi
movl 0xc(%rbx), %r14d
testl %r14d, %r14d
jle 0x258f
movslq %esi, %rax
movq -0x38(%rbp), %rdx
movq (%rdx,%rax,8), %r11
movq -0x40(%rbp), %rax
movq (%rax,%r10,8), %r15
movq -0x70(%rbp), %rax
leal (%rsi,%rax), %edi
xorl %r13d, %r13d
movl %r14d, %eax
imull %ecx, %eax
cltq
addq %r13, %rax
movl (%r15,%rax,4), %r9d
xorl (%r11,%r13,4), %r9d
movl %edi, %eax
cltd
idivl 0x10(%rbx)
imull %r14d, %edx
movslq %edx, %rax
addq %r13, %rax
movl %r9d, (%r15,%rax,4)
incq %r13
movslq 0xc(%rbx), %r14
cmpq %r14, %r13
jl 0x255c
movq -0x70(%rbp), %r9
addl %r9d, %esi
movl %esi, %eax
cltd
idivl 0x10(%rbx)
movl %edx, %ecx
decl %r8d
jne 0x252c
movq 0x20(%rbx), %r15
movslq -0x30(%rbp), %rax
movl $0x0, (%r15,%rax,4)
movq %r12, %rdi
callq 0x10b0
movq -0x80(%rbp), %rdi
callq 0x10b0
movq -0x78(%rbp), %rdi
callq 0x10b0
movq -0x38(%rbp), %rdi
callq 0x10b0
movq %rbx, %rdi
movq %r15, %rsi
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2ac4
leaq 0x1a94(%rip), %rdi      # 0x408a
jmp 0x25ff
leaq 0x1a75(%rip), %rdi      # 0x4074
callq 0x1100
movl $0x1, %edi
callq 0x10c0