// File: /workspace/github_cpp_makefile_star2_O2/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 $0x58, %rsp
movslq 0x8(%rdi), %rcx
movl %ecx, %eax
cltd
idivl 0x14(%rdi)
testl %edx, %edx
jne 0x23e3
movq %rdi, %rbx
movslq 0x28(%rdi), %r14
cmpl $-0x1, %r14d
pushq $-0x2
popq %rdx
cmovgel %r14d, %edx
movq 0x20(%rdi), %rax
addl $0x2, %edx
xorl %r12d, %r12d
pushq $-0x1
popq %rsi
movq %rsi, -0x40(%rbp)
cmpq %r12, %rdx
je 0x1527
cmpl $0x1, (%rax,%r12,4)
je 0x1533
incq %r12
jmp 0x1516
pushq $-0x1
popq %r14
movl %r14d, %r12d
jmp 0x15d5
pushq $-0x1
popq %rdx
movq %rdx, -0x40(%rbp)
movq %r12, %rdx
movq %rdx, %r15
cmpq %r14, %rdx
jg 0x156d
leaq 0x1(%r15), %rdx
cmpl $0x1, 0x4(%rax,%r15,4)
jne 0x153d
movq %rdx, %r13
cmpl %edx, %r14d
jl 0x1571
leaq 0x1(%rdx), %rsi
cmpl $0x1, 0x4(%rax,%rdx,4)
movq %rsi, %rdx
jne 0x1554
movq %rsi, -0x40(%rbp)
jmp 0x1571
pushq $-0x1
popq %r13
movq 0x18(%rbx), %rax
movq (%rax,%r12,8), %rdi
shlq $0x2, %rcx
xorl %esi, %esi
movq %rcx, %rdx
callq 0x1060
cmpq %r14, %r15
movq %r13, %r14
jg 0x15a9
movq 0x18(%rbx), %rax
movslq %r14d, %rcx
movq (%rax,%rcx,8), %rdi
movslq 0x8(%rbx), %rdx
shlq $0x2, %rdx
xorl %esi, %esi
callq 0x1060
movq -0x40(%rbp), %rcx
cmpl $-0x1, %ecx
je 0x15ce
movq 0x18(%rbx), %rax
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rdi
movslq 0x8(%rbx), %rdx
shlq $0x2, %rdx
xorl %esi, %esi
callq 0x1060
jmp 0x15d5
pushq $-0x1
popq %rax
movq %rax, -0x40(%rbp)
movl 0x28(%rbx), %eax
movslq %eax, %rcx
leaq 0x2(%rcx), %rdi
movq 0x20(%rbx), %rsi
xorl %r8d, %r8d
xorl %edx, %edx
cmpq %rdi, %r8
jg 0x15f6
addl (%rsi,%r8,4), %edx
incq %r8
jmp 0x15e8
cmpl $0x3, %edx
jg 0x23ec
xorl %r8d, %r8d
testl %eax, %eax
movl $0x0, %r9d
cmovgl %eax, %r9d
xorl %edi, %edi
cmpq %r8, %r9
je 0x161e
addl (%rsi,%r8,4), %edi
incq %r8
jmp 0x1610
cmpl $0x3, %edi
ja 0x23d4
movl %edi, %r8d
leaq 0x29d3(%rip), %r9       # 0x4004
movslq (%r9,%r8,4), %r8
addq %r9, %r8
movq %r12, -0x38(%rbp)
jmpq *%r8
cmpl $0x1, (%rsi,%rcx,4)
jne 0x1655
movq %rbx, %rdi
callq 0x25de
movq 0x20(%rbx), %rsi
movslq 0x28(%rbx), %rcx
cmpl $0x1, 0x4(%rsi,%rcx,4)
jne 0x166c
movq %rbx, %rdi
callq 0x2618
movq 0x20(%rbx), %rsi
movslq 0x28(%rbx), %rcx
cmpl $0x1, 0x8(%rsi,%rcx,4)
je 0x2354
jmp 0x23d4
movq %r14, -0x58(%rbp)
movq 0x20(%rbx), %rsi
cmpl %edi, %edx
je 0x230b
movl 0x28(%rbx), %r13d
movslq %r13d, %r14
cmpl $0x1, (%rsi,%r14,4)
jne 0x2313
movq %rsi, -0x40(%rbp)
movslq 0xc(%rbx), %r15
leaq (,%r15,4), %rsi
pushq $0x1
popq %rdi
movq %rsi, -0x48(%rbp)
callq 0x1070
movq %rax, -0x60(%rbp)
movl 0x14(%rbx), %eax
movq 0x18(%rbx), %rcx
xorl %edx, %edx
testl %r15d, %r15d
movl $0x0, %esi
movq %r15, -0x30(%rbp)
cmovgl %r15d, %esi
testl %eax, %eax
cmovlel %edx, %eax
xorl %edi, %edi
cmpq %rax, %rdi
je 0x1f88
movq %rdx, %r8
movq -0x60(%rbp), %r9
movq %rsi, %r10
subq $0x1, %r10
jb 0x1719
movl (%r9), %r11d
movq 0x8(%rcx,%r14,8), %r15
movq 0x10(%rcx,%r14,8), %r12
xorl (%r15,%r8), %r11d
xorl (%r12,%r8), %r11d
movl %r11d, (%r9)
addq $0x4, %r9
addq $0x4, %r8
jmp 0x16f1
incq %rdi
addq -0x48(%rbp), %rdx
jmp 0x16de
movq %r14, -0x58(%rbp)
pushq $0x18
popq %rdi
callq 0x10f0
movq %rax, %r12
movslq 0x10(%rbx), %r14
movslq 0xc(%rbx), %rcx
movq %r14, -0x68(%rbp)
movq %rcx, -0x50(%rbp)
imulq %rcx, %r14
shlq $0x2, %r14
xorl %r13d, %r13d
pushq $0x1
popq %r15
cmpq $0x3, %r13
je 0x176a
movq %r15, %rdi
movq %r14, %rsi
callq 0x1070
movq %rax, (%r12,%r13,8)
incq %r13
jmp 0x1750
movq -0x50(%rbp), %rax
leaq (,%rax,4), %r14
pushq $0x1
popq %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x1070
movq %rax, -0x60(%rbp)
movq %r15, %rdi
movq %r14, -0x30(%rbp)
movq %r14, %rsi
callq 0x1070
movq %rax, -0x48(%rbp)
movq -0x68(%rbp), %r13
movq %r13, %rdi
shlq $0x3, %rdi
callq 0x10f0
movq %rax, %r14
xorl %r15d, %r15d
testl %r13d, %r13d
movq %r13, %rax
movl $0x0, %r13d
cmovgl %eax, %r13d
cmpq %r15, %r13
je 0x17dc
pushq $0x1
popq %rdi
movq -0x30(%rbp), %rsi
callq 0x1070
movq %rax, (%r14,%r15,8)
incq %r15
jmp 0x17c2
movl 0x14(%rbx), %esi
movq 0x18(%rbx), %rcx
xorl %edx, %edx
movq -0x50(%rbp), %rax
testl %eax, %eax
cmovlel %edx, %eax
movq %rax, -0x50(%rbp)
testl %esi, %esi
cmovlel %edx, %esi
movq %rsi, -0x68(%rbp)
movslq 0x28(%rbx), %rsi
xorl %edi, %edi
cmpq -0x68(%rbp), %rdi
je 0x1861
movq %rdx, %r8
movq -0x60(%rbp), %r9
movq -0x48(%rbp), %r10
movq -0x50(%rbp), %r11
subq $0x1, %r11
jb 0x1858
movq (%rcx,%rsi,8), %r15
movq 0x8(%rcx,%rsi,8), %r13
movl (%r9), %eax
xorl (%r13,%r8), %eax
movl (%r15,%r8), %r15d
xorl %r15d, %eax
movl %eax, (%r9)
movl (%r10), %eax
movq 0x10(%rcx,%rsi,8), %r13
xorl (%r13,%r8), %eax
xorl %r15d, %eax
movl %eax, (%r10)
addq $0x4, %r10
addq $0x4, %r9
addq $0x4, %r8
jmp 0x1816
incq %rdi
addq -0x30(%rbp), %rdx
jmp 0x1801
xorl %eax, %eax
movslq 0x8(%rbx), %rcx
cmpq %rcx, %rax
jge 0x1893
movq 0x18(%rbx), %rcx
xorl %edx, %edx
movslq 0x28(%rbx), %rsi
cmpq %rsi, %rdx
jg 0x188e
movq (%rcx,%rdx,8), %rsi
movl (%rsi,%rax,4), %esi
movq (%r12), %rdi
xorl %esi, (%rdi,%rax,4)
incq %rdx
jmp 0x1872
incq %rax
jmp 0x1863
xorl %ecx, %ecx
movslq 0x14(%rbx), %rax
cmpq %rax, %rcx
jg 0x1901
xorl %esi, %esi
movslq 0x28(%rbx), %rax
cmpq %rax, %rsi
jge 0x18fc
movl %ecx, %edi
subl %esi, %edi
movq 0x18(%rbx), %r8
xorl %r9d, %r9d
movl 0xc(%rbx), %r10d
cmpl %r10d, %r9d
jge 0x18f7
movl 0x10(%rbx), %r11d
leal (%r11,%rdi), %eax
cltd
idivl %r11d
cmpl 0x14(%rbx), %edx
jge 0x18f2
movq (%r8,%rsi,8), %rax
imull %r10d, %edx
addl %r9d, %edx
movslq %edx, %rdx
movl (%rax,%rdx,4), %eax
movq 0x8(%r12), %rdx
imull %ecx, %r10d
addl %r9d, %r10d
movslq %r10d, %r10
xorl %eax, (%rdx,%r10,4)
incl %r9d
jmp 0x18b4
incq %rsi
jmp 0x18a0
incq %rcx
jmp 0x1895
xorl %ecx, %ecx
cmpl %eax, %ecx
jg 0x1967
movq 0x18(%rbx), %rax
xorl %edx, %edx
movslq 0xc(%rbx), %rsi
cmpq %rsi, %rdx
jge 0x1960
cmpl 0x14(%rbx), %ecx
jge 0x1943
movslq 0x28(%rbx), %rdi
movq 0x8(%rax,%rdi,8), %rdi
imull %ecx, %esi
addl %edx, %esi
movslq %esi, %rsi
movq -0x60(%rbp), %r8
movl (%r8,%rdx,4), %r8d
xorl (%rdi,%rsi,4), %r8d
movq 0x8(%r12), %rdi
xorl %r8d, (%rdi,%rsi,4)
jmp 0x195b
movq -0x60(%rbp), %rdi
movl (%rdi,%rdx,4), %edi
movq 0x8(%r12), %r8
imull %ecx, %esi
addl %edx, %esi
movslq %esi, %rsi
xorl %edi, (%r8,%rsi,4)
incq %rdx
jmp 0x190d
incl %ecx
movl 0x14(%rbx), %eax
jmp 0x1903
xorl %ecx, %ecx
movslq %eax, %rdx
cmpq %rdx, %rcx
jg 0x19d6
xorl %esi, %esi
movslq 0x28(%rbx), %rax
cmpq %rax, %rsi
jge 0x19ce
leal (%rsi,%rcx), %edi
movq 0x18(%rbx), %r8
xorl %r9d, %r9d
movl 0xc(%rbx), %r10d
cmpl %r10d, %r9d
jge 0x19c9
movl 0x10(%rbx), %r11d
leal (%r11,%rdi), %eax
cltd
idivl %r11d
cmpl 0x14(%rbx), %edx
jge 0x19c4
movq (%r8,%rsi,8), %rax
imull %r10d, %edx
addl %r9d, %edx
movslq %edx, %rdx
movl (%rax,%rdx,4), %eax
movq 0x10(%r12), %rdx
imull %ecx, %r10d
addl %r9d, %r10d
movslq %r10d, %r10
xorl %eax, (%rdx,%r10,4)
incl %r9d
jmp 0x1986
incq %rsi
jmp 0x1973
incq %rcx
movl 0x14(%rbx), %eax
jmp 0x1969
xorl %ecx, %ecx
cmpl %eax, %ecx
jg 0x1a3c
movq 0x18(%rbx), %rax
xorl %edx, %edx
movslq 0xc(%rbx), %rsi
cmpq %rsi, %rdx
jge 0x1a35
cmpl 0x14(%rbx), %ecx
jge 0x1a18
movslq 0x28(%rbx), %rdi
movq 0x10(%rax,%rdi,8), %rdi
imull %ecx, %esi
addl %edx, %esi
movslq %esi, %rsi
movq -0x48(%rbp), %r8
movl (%r8,%rdx,4), %r8d
xorl (%rdi,%rsi,4), %r8d
movq 0x10(%r12), %rdi
xorl %r8d, (%rdi,%rsi,4)
jmp 0x1a30
movq -0x48(%rbp), %rdi
movl (%rdi,%rdx,4), %edi
movq 0x10(%r12), %r8
imull %ecx, %esi
addl %edx, %esi
movslq %esi, %rsi
xorl %edi, (%r8,%rsi,4)
incq %rdx
jmp 0x19e2
incl %ecx
movl 0x14(%rbx), %eax
jmp 0x19d8
movq -0x58(%rbp), %rdx
movl %edx, %edi
movq -0x38(%rbp), %rcx
subl %ecx, %edi
movq -0x40(%rbp), %rsi
movl %esi, %r8d
subl %edx, %r8d
movq %rdi, -0x78(%rbp)
movl %r8d, -0x50(%rbp)
cmpl %r8d, %edi
jne 0x1b42
subl %ecx, %esi
movq %rsi, -0x50(%rbp)
xorl %edi, %edi
cltq
cmpq %rax, %rdi
jg 0x1b83
movq -0x40(%rbp), %rax
addl %edi, %eax
movq %rax, -0x30(%rbp)
movl %edi, %r9d
subl -0x38(%rbp), %r9d
movq -0x50(%rbp), %rax
leal (%rax,%rdi), %ecx
xorl %r10d, %r10d
movslq 0xc(%rbx), %r11
cmpq %r11, %r10
jge 0x1b0c
movl %edi, %eax
imull %r11d, %eax
addl %r10d, %eax
movslq %eax, %rsi
movl 0x10(%rbx), %r15d
movl %ecx, %eax
cltd
idivl %r15d
imull %r11d, %edx
movslq %edx, %rax
addq %r10, %rax
movq (%r12), %rdx
movq 0x8(%r12), %r8
movl (%rdx,%rax,4), %r13d
xorl (%rdx,%rsi,4), %r13d
movq -0x30(%rbp), %rax
addl %r15d, %eax
cltd
idivl %r15d
imull %r11d, %edx
movslq %edx, %rax
addq %r10, %rax
xorl (%r8,%rax,4), %r13d
movq 0x10(%r12), %rsi
leal (%r9,%r15), %eax
cltd
idivl %r15d
imull %r11d, %edx
movslq %edx, %rax
addq %r10, %rax
xorl (%rsi,%rax,4), %r13d
movq (%r14,%rdi,8), %rax
movl %r13d, (%rax,%r10,4)
incq %r10
jmp 0x1a91
incq %rdi
movl 0x14(%rbx), %eax
jmp 0x1a6b
subl %edi, %edx
cmpl $0x1, %edx
jg 0x1f2f
movq %rbx, %rdi
callq 0x28b8
movq 0x20(%rbx), %rax
movslq 0x28(%rbx), %rcx
cmpl $0x1, 0x8(%rax,%rcx,4)
je 0x2354
jmp 0x23d4
pushq $0x18
popq %rdi
callq 0x10f0
movq %rax, %r13
movslq 0x10(%rbx), %rsi
movq %rsi, %rax
shlq $0x2, %rax
movq %rax, -0x68(%rbp)
xorl %r15d, %r15d
movq %rsi, -0x30(%rbp)
cmpq $0x3, %r15
je 0x1bcb
pushq $0x1
popq %rdi
movq -0x68(%rbp), %rsi
callq 0x1070
movq -0x30(%rbp), %rsi
movq %rax, (%r13,%r15,8)
incq %r15
jmp 0x1b63
movl 0x10(%rbx), %eax
movq -0x38(%rbp), %rdx
subl -0x40(%rbp), %edx
movq %rdx, -0x38(%rbp)
leal (%rdx,%rax), %ecx
decl %ecx
movslq %ecx, %rax
movq 0x18(%rbx), %rdx
movslq -0x58(%rbp), %rdi
xorl %r8d, %r8d
movslq 0xc(%rbx), %rsi
cmpq %rsi, %r8
jge 0x1bea
movq (%r14,%rax,8), %r9
movl (%r9,%r8,4), %r9d
movq (%rdx,%rdi,8), %r10
imull %eax, %esi
addl %r8d, %esi
movslq %esi, %rsi
movl %r9d, (%r10,%rsi,4)
incq %r8
jmp 0x1ba4
xorl %r15d, %r15d
movq -0x78(%rbp), %rax
movl %eax, %ecx
cmpl %esi, %r15d
jg 0x1c50
movl %ecx, %eax
cltd
idivl %esi
testl %edx, %edx
je 0x1c50
incl %r15d
addl -0x50(%rbp), %ecx
jmp 0x1bd4
movl 0x14(%rbx), %r8d
decl %r8d
je 0x1eea
movq -0x38(%rbp), %rax
addl %ecx, %eax
movl 0x10(%rbx), %r9d
addl %r9d, %eax
cltd
idivl %r9d
movslq %edx, %rax
movq 0x18(%rbx), %r9
xorl %r10d, %r10d
movslq %esi, %r11
cmpq %r11, %r10
jge 0x1c4c
movq (%r14,%rax,8), %r11
movq (%r9,%rdi,8), %r15
movl %eax, %r13d
imull %esi, %r13d
imull %ecx, %esi
addl %r10d, %esi
movslq %esi, %rsi
movl (%r15,%rsi,4), %esi
xorl (%r11,%r10,4), %esi
addl %r10d, %r13d
movslq %r13d, %r11
movl %esi, (%r15,%r11,4)
incq %r10
movl 0xc(%rbx), %esi
jmp 0x1c12
movl %edx, %ecx
jmp 0x1bee
movq -0x40(%rbp), %rdi
subl -0x38(%rbp), %edi
xorl %ecx, %ecx
movl %r15d, %r8d
subl $0x1, %r8d
jb 0x1cc8
movq (%r13), %r9
movl %ecx, %eax
cltd
idivl 0x10(%rbx)
movslq %edx, %rax
incl (%r9,%rax,4)
movq 0x8(%r13), %r10
movq -0x78(%rbp), %rax
addl %ecx, %eax
cltd
idivl 0x10(%rbx)
movslq %edx, %rax
incl (%r10,%rax,4)
movq 0x10(%r13), %r11
leal (%rdi,%rcx), %esi
movl %esi, %eax
cltd
idivl 0x10(%rbx)
movslq %edx, %rax
incl (%r11,%rax,4)
movl %ecx, %eax
cltd
idivl 0x10(%rbx)
movslq %edx, %rax
incl (%r11,%rax,4)
addl -0x50(%rbp), %ecx
movl %ecx, %eax
cltd
idivl 0x10(%rbx)
movslq %edx, %rax
incl (%r10,%rax,4)
movl %esi, %eax
cltd
idivl 0x10(%rbx)
movslq %edx, %rax
incl (%r9,%rax,4)
jmp 0x1c5c
movl %r15d, -0x6c(%rbp)
movslq 0x10(%rbx), %r15
movq %r15, %rsi
shlq $0x2, %rsi
pushq $0x1
popq %rdi
callq 0x1070
movq %rax, -0x30(%rbp)
xorl %eax, %eax
testl %r15d, %r15d
movl $0x0, %edx
cmovgl %r15d, %edx
movq -0x40(%rbp), %rcx
cmpq %rdx, %rax
je 0x1d1e
xorl %esi, %esi
cmpq $0x3, %rsi
je 0x1d19
movq (%r13,%rsi,8), %rdi
cmpl $0x1, (%rdi,%rax,4)
jne 0x1d14
movq -0x30(%rbp), %rdi
incl (%rdi,%rax,4)
incq %rsi
jmp 0x1cfc
incq %rax
jmp 0x1cf5
xorl %edi, %edi
movl -0x6c(%rbp), %r15d
movslq 0x14(%rbx), %rax
cmpq %rax, %rdi
jg 0x1e2f
xorl %r8d, %r8d
movslq 0x10(%rbx), %rax
cmpq %rax, %r8
jge 0x1d87
movq -0x30(%rbp), %rax
movl (%rax,%r8,4), %eax
andl $-0x2, %eax
cmpl $0x2, %eax
jne 0x1d82
leal (%r8,%rdi), %esi
xorl %r9d, %r9d
movslq 0xc(%rbx), %r10
cmpq %r10, %r9
jge 0x1d82
movq (%r12), %r11
movl %esi, %eax
cltd
idivl 0x10(%rbx)
movslq %edx, %rax
imulq %r10, %rax
addq %r9, %rax
movl (%r11,%rax,4), %eax
movq (%r14,%rdi,8), %rdx
xorl %eax, (%rdx,%r9,4)
incq %r9
jmp 0x1d54
incq %r8
jmp 0x1d34
leal (%rcx,%rdi), %eax
movq %rax, -0x68(%rbp)
movl %edi, %eax
subl -0x38(%rbp), %eax
movl %eax, -0x7c(%rbp)
xorl %r9d, %r9d
cmpl %r9d, %r15d
je 0x1e27
movl %r9d, %r10d
imull -0x50(%rbp), %r10d
movq -0x68(%rbp), %rax
leal (%rax,%r10), %r11d
addl -0x7c(%rbp), %r10d
xorl %r13d, %r13d
movslq 0xc(%rbx), %r15
cmpq %r15, %r13
jge 0x1e17
movq 0x8(%r12), %rcx
movl 0x10(%rbx), %esi
leal (%r11,%rsi), %eax
cltd
idivl %esi
movslq %edx, %rax
imulq %r15, %rax
addq %r13, %rax
movq (%r14,%rdi,8), %rsi
movl (%rsi,%r13,4), %r15d
xorl (%rcx,%rax,4), %r15d
movl %r15d, (%rsi,%r13,4)
movq 0x10(%r12), %rcx
movl 0x10(%rbx), %r8d
leal (%r10,%r8), %eax
cltd
idivl %r8d
movslq 0xc(%rbx), %rax
movslq %edx, %rdx
imulq %rax, %rdx
addq %r13, %rdx
xorl (%rcx,%rdx,4), %r15d
movl %r15d, (%rsi,%r13,4)
incq %r13
jmp 0x1db9
incl %r9d
movq -0x40(%rbp), %rcx
movl -0x6c(%rbp), %r15d
jmp 0x1d99
incq %rdi
jmp 0x1d24
movq -0x78(%rbp), %rax
leal -0x1(%rax), %esi
leal -0x1(,%rax,2), %eax
cltd
idivl 0x10(%rbx)
movl %edx, %ecx
movslq %esi, %rax
movq 0x18(%rbx), %rdx
movslq -0x58(%rbp), %rdi
xorl %esi, %esi
movslq 0xc(%rbx), %r8
cmpq %r8, %rsi
jge 0x1e78
movq (%r14,%rax,8), %r9
movl (%r9,%rsi,4), %r9d
movq (%rdx,%rdi,8), %r10
imull %ecx, %r8d
addl %esi, %r8d
movslq %r8d, %r8
movl %r9d, (%r10,%r8,4)
incq %rsi
jmp 0x1e50
movl 0x14(%rbx), %eax
decl %eax
je 0x1eea
movl %eax, -0x30(%rbp)
movq -0x78(%rbp), %rsi
leal (%rcx,%rsi), %eax
cltd
idivl 0x10(%rbx)
movslq %edx, %r10
movq 0x18(%rbx), %r11
addl %r10d, %esi
xorl %r15d, %r15d
movslq %r8d, %rax
cmpq %rax, %r15
jge 0x1edd
movq (%r14,%r10,8), %rax
movq (%r11,%rdi,8), %r13
movl %r8d, %edx
imull %ecx, %edx
addl %r15d, %edx
movslq %edx, %rdx
movl (%r13,%rdx,4), %r9d
xorl (%rax,%r15,4), %r9d
movl %esi, %eax
cltd
idivl 0x10(%rbx)
imull %r8d, %edx
movslq %edx, %rax
addq %r15, %rax
movl %r9d, (%r13,%rax,4)
incq %r15
movl 0xc(%rbx), %r8d
jmp 0x1e9a
movl %esi, %eax
cltd
idivl 0x10(%rbx)
movl %edx, %ecx
movl -0x30(%rbp), %eax
jmp 0x1e7b
movq 0x20(%rbx), %r13
andl $0x0, (%r13,%rdi,4)
movq %r12, %rdi
callq 0x10d0
movq -0x60(%rbp), %rdi
callq 0x10d0
movq -0x48(%rbp), %rdi
callq 0x10d0
movq %r14, %rdi
callq 0x10d0
movq %rbx, %rdi
movq %r13, %rsi
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x28b8
cmpl $0x2, %edx
jne 0x23d4
movl (%rsi,%rcx,4), %edx
testl %edx, %edx
jne 0x2385
movslq %r12d, %rcx
movl %r12d, %edx
xorl %esi, %esi
movslq 0x8(%rbx), %rdi
cmpq %rdi, %rsi
jge 0x236a
movq 0x18(%rbx), %rdi
xorl %r8d, %r8d
movslq %eax, %r9
cmpq %r9, %r8
jg 0x1f83
cmpq %r8, %rdx
je 0x1f7e
movq (%rdi,%r8,8), %rax
movl (%rax,%rsi,4), %eax
movq (%rdi,%rcx,8), %r9
xorl %eax, (%r9,%rsi,4)
movl 0x28(%rbx), %eax
incq %r8
jmp 0x1f5f
incq %rsi
jmp 0x1f4b
pushq $0x18
popq %rdi
callq 0x10f0
movq %rax, %r12
movslq 0x10(%rbx), %r14
imulq -0x30(%rbp), %r14
shlq $0x2, %r14
xorl %r15d, %r15d
cmpq $0x3, %r15
je 0x1fbd
pushq $0x1
popq %rdi
movq %r14, %rsi
callq 0x1070
movq %rax, (%r12,%r15,8)
incq %r15
jmp 0x1fa3
xorl %eax, %eax
movslq 0x8(%rbx), %rcx
cmpq %rcx, %rax
jge 0x1ff2
movq 0x18(%rbx), %rcx
xorl %edx, %edx
movslq %r13d, %rsi
cmpq %rsi, %rdx
jg 0x1fed
movq (%rcx,%rdx,8), %rsi
movl (%rsi,%rax,4), %esi
movq (%r12), %rdi
xorl %esi, (%rdi,%rax,4)
incq %rdx
movl 0x28(%rbx), %r13d
jmp 0x1fce
incq %rax
jmp 0x1fbf
xorl %ecx, %ecx
movslq 0x14(%rbx), %rax
cmpq %rax, %rcx
jg 0x2063
xorl %esi, %esi
movslq %r13d, %rax
cmpq %rax, %rsi
jge 0x205e
movl %ecx, %edi
subl %esi, %edi
movq 0x18(%rbx), %r8
xorl %r9d, %r9d
movl 0xc(%rbx), %r10d
cmpl %r10d, %r9d
jge 0x2055
movl 0x10(%rbx), %r11d
leal (%r11,%rdi), %eax
cltd
idivl %r11d
cmpl 0x14(%rbx), %edx
jge 0x2050
movq (%r8,%rsi,8), %rax
imull %r10d, %edx
addl %r9d, %edx
movslq %edx, %rdx
movl (%rax,%rdx,4), %eax
movq 0x8(%r12), %rdx
imull %ecx, %r10d
addl %r9d, %r10d
movslq %r10d, %r10
xorl %eax, (%rdx,%r10,4)
incl %r9d
jmp 0x2012
incq %rsi
movl 0x28(%rbx), %r13d
jmp 0x1fff
incq %rcx
jmp 0x1ff4
movq 0x18(%rbx), %rax
xorl %ecx, %ecx
movslq 0x8(%rbx), %rdx
cmpq %rdx, %rcx
jge 0x208b
movslq 0x28(%rbx), %rdx
movq 0x8(%rax,%rdx,8), %rdx
movl (%rdx,%rcx,4), %edx
movq 0x8(%r12), %rsi
xorl %edx, (%rsi,%rcx,4)
incq %rcx
jmp 0x2069
xorl %ecx, %ecx
movslq 0x14(%rbx), %rax
cmpq %rax, %rcx
jg 0x20f8
xorl %esi, %esi
movslq 0x28(%rbx), %rax
cmpq %rax, %rsi
jge 0x20f3
leal (%rsi,%rcx), %edi
movq 0x18(%rbx), %r8
xorl %r9d, %r9d
movl 0xc(%rbx), %r10d
cmpl %r10d, %r9d
jge 0x20ee
movl 0x10(%rbx), %r11d
leal (%r11,%rdi), %eax
cltd
idivl %r11d
cmpl 0x14(%rbx), %edx
jge 0x20e9
movq (%r8,%rsi,8), %rax
imull %r10d, %edx
addl %r9d, %edx
movslq %edx, %rdx
movl (%rax,%rdx,4), %eax
movq 0x10(%r12), %rdx
imull %ecx, %r10d
addl %r9d, %r10d
movslq %r10d, %r10
xorl %eax, (%rdx,%r10,4)
incl %r9d
jmp 0x20ab
incq %rsi
jmp 0x2098
incq %rcx
jmp 0x208d
movq 0x18(%rbx), %rax
xorl %ecx, %ecx
movslq 0x8(%rbx), %rdx
cmpq %rdx, %rcx
jge 0x2120
movslq 0x28(%rbx), %rdx
movq 0x10(%rax,%rdx,8), %rdx
movl (%rdx,%rcx,4), %edx
movq 0x10(%r12), %rsi
xorl %edx, (%rsi,%rcx,4)
incq %rcx
jmp 0x20fe
movslq 0x10(%rbx), %rdi
movq %rdi, -0x48(%rbp)
shlq $0x3, %rdi
callq 0x10f0
movq %rax, %r13
movslq 0xc(%rbx), %r14
movq %r14, %rax
shlq $0x2, %rax
movq %rax, -0x30(%rbp)
xorl %r15d, %r15d
movq -0x48(%rbp), %rcx
testl %ecx, %ecx
movl $0x0, %eax
cmovgl %ecx, %eax
movq %rax, -0x48(%rbp)
cmpq %r15, -0x48(%rbp)
je 0x2174
pushq $0x1
popq %rdi
movq -0x30(%rbp), %rsi
callq 0x1070
movq %rax, (%r13,%r15,8)
incq %r15
jmp 0x2158
movq -0x58(%rbp), %rax
subl -0x38(%rbp), %eax
movq %rax, -0x48(%rbp)
xorl %edi, %edi
movslq 0x14(%rbx), %rax
cmpq %rax, %rdi
jg 0x222f
movq -0x58(%rbp), %rax
leal (%rax,%rdi), %r8d
movl %edi, %r9d
subl -0x38(%rbp), %r9d
movq -0x48(%rbp), %rax
leal (%rax,%rdi), %ecx
xorl %r10d, %r10d
movslq %r14d, %rax
cmpq %rax, %r10
jge 0x2227
movl %edi, %eax
imull %r14d, %eax
addl %r10d, %eax
movslq %eax, %r15
movl 0x10(%rbx), %esi
movl %ecx, %eax
cltd
idivl %esi
imull %r14d, %edx
movslq %edx, %rax
addq %r10, %rax
movq (%r12), %rdx
movl (%rdx,%rax,4), %r11d
xorl (%rdx,%r15,4), %r11d
movq 0x8(%r12), %r15
leal (%r8,%rsi), %eax
cltd
idivl %esi
imull %r14d, %edx
movslq %edx, %rax
addq %r10, %rax
xorl (%r15,%rax,4), %r11d
movq 0x10(%r12), %r15
leal (%r9,%rsi), %eax
cltd
idivl %esi
imull %r14d, %edx
movslq %edx, %rax
addq %r10, %rax
xorl (%r15,%rax,4), %r11d
movq -0x60(%rbp), %rax
xorl (%rax,%r10,4), %r11d
movq (%r13,%rdi,8), %rax
movl %r11d, (%rax,%r10,4)
incq %r10
movl 0xc(%rbx), %r14d
jmp 0x21a7
incq %rdi
jmp 0x2181
movq -0x58(%rbp), %rcx
notl %ecx
addl -0x38(%rbp), %ecx
addl 0x10(%rbx), %ecx
movslq %ecx, %rax
movq 0x18(%rbx), %rdx
xorl %esi, %esi
movslq %r14d, %rdi
cmpq %rdi, %rsi
jge 0x2273
movq (%r13,%rax,8), %rdi
movl (%rdi,%rsi,4), %edi
movslq 0x28(%rbx), %r8
movq (%rdx,%r8,8), %r8
imull %eax, %r14d
addl %esi, %r14d
movslq %r14d, %r9
movl %edi, (%r8,%r9,4)
incq %rsi
movl 0xc(%rbx), %r14d
jmp 0x2244
movl 0x14(%rbx), %esi
movq -0x38(%rbp), %rdi
subl -0x58(%rbp), %edi
decl %esi
je 0x22de
movl 0x10(%rbx), %r8d
leal (%rdi,%rcx), %eax
addl %r8d, %eax
cltd
idivl %r8d
movslq %edx, %rax
movq 0x18(%rbx), %r8
xorl %r9d, %r9d
movslq %r14d, %r10
cmpq %r10, %r9
jge 0x22da
movq (%r13,%rax,8), %r10
movslq 0x28(%rbx), %r11
movq (%r8,%r11,8), %r11
movl %eax, %r15d
imull %r14d, %r15d
imull %ecx, %r14d
addl %r9d, %r14d
movslq %r14d, %r14
movl (%r11,%r14,4), %r14d
xorl (%r10,%r9,4), %r14d
addl %r9d, %r15d
movslq %r15d, %r10
movl %r14d, (%r11,%r10,4)
incq %r9
movl 0xc(%rbx), %r14d
jmp 0x2299
movl %edx, %ecx
jmp 0x227d
movslq 0x28(%rbx), %rax
movq -0x40(%rbp), %r14
andl $0x0, (%r14,%rax,4)
movq %r12, %rdi
callq 0x10d0
movq -0x60(%rbp), %rdi
callq 0x10d0
movq %r13, %rdi
callq 0x10d0
movq %r14, %rsi
movq -0x38(%rbp), %r12
movq %rbx, %rdi
callq 0x28b8
movq 0x20(%rbx), %rsi
movslq 0x28(%rbx), %rax
cmpl $0x1, 0x4(%rsi,%rax,4)
jne 0x2341
movq %rbx, %rdi
movl %r12d, %esi
movq -0x58(%rbp), %rdx
callq 0x2f8c
movq %rbx, %rdi
callq 0x2618
movq 0x20(%rbx), %rsi
movslq 0x28(%rbx), %rax
cmpl $0x1, 0x8(%rsi,%rax,4)
jne 0x23d4
movq %rbx, %rdi
callq 0x28b8
movq %rbx, %rdi
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2786
movq %rbx, %rdi
callq 0x2618
movq %rbx, %rdi
callq 0x2786
movq 0x20(%rbx), %rsi
movslq 0x28(%rbx), %rcx
movl (%rsi,%rcx,4), %edx
cmpl $0x1, %edx
jne 0x23d4
cmpl $0x1, 0x8(%rsi,%rcx,4)
jne 0x23a9
movq %rbx, %rdi
callq 0x28b8
movq %rbx, %rdi
callq 0x2786
movq 0x20(%rbx), %rsi
movslq 0x28(%rbx), %rcx
cmpl $0x1, 0x4(%rsi,%rcx,4)
jne 0x23d4
movq %rbx, %rdi
movl %r12d, %esi
movl %r14d, %edx
callq 0x2f8c
movq %rbx, %rdi
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2618
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1ca0(%rip), %rdi      # 0x408a
jmp 0x23f3
leaq 0x1c81(%rip), %rdi      # 0x4074
callq 0x1120
pushq $0x1
popq %rdi
callq 0x10e0