// File: mouda[P]LTE_random_access-simulate/alglibinternal.cpp
// Function: alglib_impl::internalschurdecomposition(alglib_impl::ae_matrix*, long, long, long, alglib_impl::ae_vector*, alglib_impl::ae_vector*, alglib_impl::ae_matrix*, long*, alglib_impl::ae_state*)
void internalschurdecomposition(/* Real    */ ae_matrix* h,
     ae_int_t n,
     ae_int_t tneeded,
     ae_int_t zneeded,
     /* Real    */ ae_vector* wr,
     /* Real    */ ae_vector* wi,
     /* Real    */ ae_matrix* z,
     ae_int_t* info,
     ae_state *_state)
{
    ae_frame _frame_block;
    ae_vector work;
    ae_int_t i;
    ae_int_t i1;
    ae_int_t i2;
    ae_int_t ierr;
    ae_int_t ii;
    ae_int_t itemp;
    ae_int_t itn;
    ae_int_t its;
    ae_int_t j;
    ae_int_t k;
    ae_int_t l;
    ae_int_t maxb;
    ae_int_t nr;
    ae_int_t ns;
    ae_int_t nv;
    double absw;
    double ovfl;
    double smlnum;
    double tau;
    double temp;
    double tst1;
    double ulp;
    double unfl;
    ae_matrix s;
    ae_vector v;
    ae_vector vv;
    ae_vector workc1;
    ae_vector works1;
    ae_vector workv3;
    ae_vector tmpwr;
    ae_vector tmpwi;
    ae_bool initz;
    ae_bool wantt;
    ae_bool wantz;
    double cnst;
    ae_bool failflag;
    ae_int_t p1;
    ae_int_t p2;
    double vt;

    ae_frame_make(_state, &_frame_block);
    ae_vector_clear(wr);
    ae_vector_clear(wi);
    *info = 0;
    ae_vector_init(&work, 0, DT_REAL, _state, ae_true);
    ae_matrix_init(&s, 0, 0, DT_REAL, _state, ae_true);
    ae_vector_init(&v, 0, DT_REAL, _state, ae_true);
    ae_vector_init(&vv, 0, DT_REAL, _state, ae_true);
    ae_vector_init(&workc1, 0, DT_REAL, _state, ae_true);
    ae_vector_init(&works1, 0, DT_REAL, _state, ae_true);
    ae_vector_init(&workv3, 0, DT_REAL, _state, ae_true);
    ae_vector_init(&tmpwr, 0, DT_REAL, _state, ae_true);
    ae_vector_init(&tmpwi, 0, DT_REAL, _state, ae_true);

    
    /*
     * Set the order of the multi-shift QR algorithm to be used.
     * If you want to tune algorithm, change this values
     */
    ns = 12;
    maxb = 50;
    
    /*
     * Now 2 < NS <= MAXB < NH.
     */
    maxb = ae_maxint(3, maxb, _state);
    ns = ae_minint(maxb, ns, _state);
    
    /*
     * Initialize
     */
    cnst = 1.5;
    ae_vector_set_length(&work, ae_maxint(n, 1, _state)+1, _state);
    ae_matrix_set_length(&s, ns+1, ns+1, _state);
    ae_vector_set_length(&v, ns+1+1, _state);
    ae_vector_set_length(&vv, ns+1+1, _state);
    ae_vector_set_length(wr, ae_maxint(n, 1, _state)+1, _state);
    ae_vector_set_length(wi, ae_maxint(n, 1, _state)+1, _state);
    ae_vector_set_length(&workc1, 1+1, _state);
    ae_vector_set_length(&works1, 1+1, _state);
    ae_vector_set_length(&workv3, 3+1, _state);
    ae_vector_set_length(&tmpwr, ae_maxint(n, 1, _state)+1, _state);
    ae_vector_set_length(&tmpwi, ae_maxint(n, 1, _state)+1, _state);
    ae_assert(n>=0, "InternalSchurDecomposition: incorrect N!", _state);
    ae_assert(tneeded==0||tneeded==1, "InternalSchurDecomposition: incorrect TNeeded!", _state);
    ae_assert((zneeded==0||zneeded==1)||zneeded==2, "InternalSchurDecomposition: incorrect ZNeeded!", _state);
    wantt = tneeded==1;
    initz = zneeded==2;
    wantz = zneeded!=0;
    *info = 0;
    
    /*
     * Initialize Z, if necessary
     */
    if( initz )
    {
        ae_matrix_set_length(z, n+1, n+1, _state);
        for(i=1; i<=n; i++)
        {
            for(j=1; j<=n; j++)
            {
                if( i==j )
                {
                    z->ptr.pp_double[i][j] = 1;
                }
                else
                {
                    z->ptr.pp_double[i][j] = 0;
                }
            }
        }
    }
    
    /*
     * Quick return if possible
     */
    if( n==0 )
    {
        ae_frame_leave(_state);
        return;
    }
    if( n==1 )
    {
        wr->ptr.p_double[1] = h->ptr.pp_double[1][1];
        wi->ptr.p_double[1] = 0;
        ae_frame_leave(_state);
        return;
    }
    
    /*
     * Set rows and columns 1 to N to zero below the first
     * subdiagonal.
     */
    for(j=1; j<=n-2; j++)
    {
        for(i=j+2; i<=n; i++)
        {
            h->ptr.pp_double[i][j] = 0;
        }
    }
    
    /*
     * Test if N is sufficiently small
     */
    if( (ns<=2||ns>n)||maxb>=n )
    {
        
        /*
         * Use the standard double-shift algorithm
         */
        hsschur_internalauxschur(wantt, wantz, n, 1, n, h, wr, wi, 1, n, z, &work, &workv3, &workc1, &works1, info, _state);
        
        /*
         * fill entries under diagonal blocks of T with zeros
         */
        if( wantt )
        {
            j = 1;
            while(j<=n)
            {
                if( ae_fp_eq(wi->ptr.p_double[j],0) )
                {
                    for(i=j+1; i<=n; i++)
                    {
                        h->ptr.pp_double[i][j] = 0;
                    }
                    j = j+1;
                }
                else
                {
                    for(i=j+2; i<=n; i++)
                    {
                        h->ptr.pp_double[i][j] = 0;
                        h->ptr.pp_double[i][j+1] = 0;
                    }
                    j = j+2;
                }
            }
        }
        ae_frame_leave(_state);
        return;
    }
    unfl = ae_minrealnumber;
    ovfl = 1/unfl;
    ulp = 2*ae_machineepsilon;
    smlnum = unfl*(n/ulp);
    
    /*
     * I1 and I2 are the indices of the first row and last column of H
     * to which transformations must be applied. If eigenvalues only are
     * being computed, I1 and I2 are set inside the main loop.
     */
    i1 = 1;
    i2 = n;
    
    /*
     * ITN is the total number of multiple-shift QR iterations allowed.
     */
    itn = 30*n;
    
    /*
     * The main loop begins here. I is the loop index and decreases from
     * IHI to ILO in steps of at most MAXB. Each iteration of the loop
     * works with the active submatrix in rows and columns L to I.
     * Eigenvalues I+1 to IHI have already converged. Either L = ILO or
     * H(L,L-1) is negligible so that the matrix splits.
     */
    i = n;
    for(;;)
    {
        l = 1;
        if( i<1 )
        {
            
            /*
             * fill entries under diagonal blocks of T with zeros
             */
            if( wantt )
            {
                j = 1;
                while(j<=n)
                {
                    if( ae_fp_eq(wi->ptr.p_double[j],0) )
                    {
                        for(i=j+1; i<=n; i++)
                        {
                            h->ptr.pp_double[i][j] = 0;
                        }
                        j = j+1;
                    }
                    else
                    {
                        for(i=j+2; i<=n; i++)
                        {
                            h->ptr.pp_double[i][j] = 0;
                            h->ptr.pp_double[i][j+1] = 0;
                        }
                        j = j+2;
                    }
                }
            }
            
            /*
             * Exit
             */
            ae_frame_leave(_state);
            return;
        }
        
        /*
         * Perform multiple-shift QR iterations on rows and columns ILO to I
         * until a submatrix of order at most MAXB splits off at the bottom
         * because a subdiagonal element has become negligible.
         */
        failflag = ae_true;
        for(its=0; its<=itn; its++)
        {
            
            /*
             * Look for a single small subdiagonal element.
             */
            for(k=i; k>=l+1; k--)
            {
                tst1 = ae_fabs(h->ptr.pp_double[k-1][k-1], _state)+ae_fabs(h->ptr.pp_double[k][k], _state);
                if( ae_fp_eq(tst1,0) )
                {
                    tst1 = upperhessenberg1norm(h, l, i, l, i, &work, _state);
                }
                if( ae_fp_less_eq(ae_fabs(h->ptr.pp_double[k][k-1], _state),ae_maxreal(ulp*tst1, smlnum, _state)) )
                {
                    break;
                }
            }
            l = k;
            if( l>1 )
            {
                
                /*
                 * H(L,L-1) is negligible.
                 */
                h->ptr.pp_double[l][l-1] = 0;
            }
            
            /*
             * Exit from loop if a submatrix of order <= MAXB has split off.
             */
            if( l>=i-maxb+1 )
            {
                failflag = ae_false;
                break;
            }
            
            /*
             * Now the active submatrix is in rows and columns L to I. If
             * eigenvalues only are being computed, only the active submatrix
             * need be transformed.
             */
            if( its==20||its==30 )
            {
                
                /*
                 * Exceptional shifts.
                 */
                for(ii=i-ns+1; ii<=i; ii++)
                {
                    wr->ptr.p_double[ii] = cnst*(ae_fabs(h->ptr.pp_double[ii][ii-1], _state)+ae_fabs(h->ptr.pp_double[ii][ii], _state));
                    wi->ptr.p_double[ii] = 0;
                }
            }
            else
            {
                
                /*
                 * Use eigenvalues of trailing submatrix of order NS as shifts.
                 */
                copymatrix(h, i-ns+1, i, i-ns+1, i, &s, 1, ns, 1, ns, _state);
                hsschur_internalauxschur(ae_false, ae_false, ns, 1, ns, &s, &tmpwr, &tmpwi, 1, ns, z, &work, &workv3, &workc1, &works1, &ierr, _state);
                for(p1=1; p1<=ns; p1++)
                {
                    wr->ptr.p_double[i-ns+p1] = tmpwr.ptr.p_double[p1];
                    wi->ptr.p_double[i-ns+p1] = tmpwi.ptr.p_double[p1];
                }
                if( ierr>0 )
                {
                    
                    /*
                     * If DLAHQR failed to compute all NS eigenvalues, use the
                     * unconverged diagonal elements as the remaining shifts.
                     */
                    for(ii=1; ii<=ierr; ii++)
                    {
                        wr->ptr.p_double[i-ns+ii] = s.ptr.pp_double[ii][ii];
                        wi->ptr.p_double[i-ns+ii] = 0;
                    }
                }
            }
            
            /*
             * Form the first column of (G-w(1)) (G-w(2)) . . . (G-w(ns))
             * where G is the Hessenberg submatrix H(L:I,L:I) and w is
             * the vector of shifts (stored in WR and WI). The result is
             * stored in the local array V.
             */
            v.ptr.p_double[1] = 1;
            for(ii=2; ii<=ns+1; ii++)
            {
                v.ptr.p_double[ii] = 0;
            }
            nv = 1;
            for(j=i-ns+1; j<=i; j++)
            {
                if( ae_fp_greater_eq(wi->ptr.p_double[j],0) )
                {
                    if( ae_fp_eq(wi->ptr.p_double[j],0) )
                    {
                        
                        /*
                         * real shift
                         */
                        p1 = nv+1;
                        ae_v_move(&vv.ptr.p_double[1], 1, &v.ptr.p_double[1], 1, ae_v_len(1,p1));
                        matrixvectormultiply(h, l, l+nv, l, l+nv-1, ae_false, &vv, 1, nv, 1.0, &v, 1, nv+1, -wr->ptr.p_double[j], _state);
                        nv = nv+1;
                    }
                    else
                    {
                        if( ae_fp_greater(wi->ptr.p_double[j],0) )
                        {
                            
                            /*
                             * complex conjugate pair of shifts
                             */
                            p1 = nv+1;
                            ae_v_move(&vv.ptr.p_double[1], 1, &v.ptr.p_double[1], 1, ae_v_len(1,p1));
                            matrixvectormultiply(h, l, l+nv, l, l+nv-1, ae_false, &v, 1, nv, 1.0, &vv, 1, nv+1, -2*wr->ptr.p_double[j], _state);
                            itemp = vectoridxabsmax(&vv, 1, nv+1, _state);
                            temp = 1/ae_maxreal(ae_fabs(vv.ptr.p_double[itemp], _state), smlnum, _state);
                            p1 = nv+1;
                            ae_v_muld(&vv.ptr.p_double[1], 1, ae_v_len(1,p1), temp);
                            absw = pythag2(wr->ptr.p_double[j], wi->ptr.p_double[j], _state);
                            temp = temp*absw*absw;
                            matrixvectormultiply(h, l, l+nv+1, l, l+nv, ae_false, &vv, 1, nv+1, 1.0, &v, 1, nv+2, temp, _state);
                            nv = nv+2;
                        }
                    }
                    
                    /*
                     * Scale V(1:NV) so that max(abs(V(i))) = 1. If V is zero,
                     * reset it to the unit vector.
                     */
                    itemp = vectoridxabsmax(&v, 1, nv, _state);
                    temp = ae_fabs(v.ptr.p_double[itemp], _state);
                    if( ae_fp_eq(temp,0) )
                    {
                        v.ptr.p_double[1] = 1;
                        for(ii=2; ii<=nv; ii++)
                        {
                            v.ptr.p_double[ii] = 0;
                        }
                    }
                    else
                    {
                        temp = ae_maxreal(temp, smlnum, _state);
                        vt = 1/temp;
                        ae_v_muld(&v.ptr.p_double[1], 1, ae_v_len(1,nv), vt);
                    }
                }
            }
            
            /*
             * Multiple-shift QR step
             */
            for(k=l; k<=i-1; k++)
            {
                
                /*
                 * The first iteration of this loop determines a reflection G
                 * from the vector V and applies it from left and right to H,
                 * thus creating a nonzero bulge below the subdiagonal.
                 *
                 * Each subsequent iteration determines a reflection G to
                 * restore the Hessenberg form in the (K-1)th column, and thus
                 * chases the bulge one step toward the bottom of the active
                 * submatrix. NR is the order of G.
                 */
                nr = ae_minint(ns+1, i-k+1, _state);
                if( k>l )
                {
                    p1 = k-1;
                    p2 = k+nr-1;
                    ae_v_move(&v.ptr.p_double[1], 1, &h->ptr.pp_double[k][p1], h->stride, ae_v_len(1,nr));
                }
                generatereflection(&v, nr, &tau, _state);
                if( k>l )
                {
                    h->ptr.pp_double[k][k-1] = v.ptr.p_double[1];
                    for(ii=k+1; ii<=i; ii++)
                    {
                        h->ptr.pp_double[ii][k-1] = 0;
                    }
                }
                v.ptr.p_double[1] = 1;
                
                /*
                 * Apply G from the left to transform the rows of the matrix in
                 * columns K to I2.
                 */
                applyreflectionfromtheleft(h, tau, &v, k, k+nr-1, k, i2, &work, _state);
                
                /*
                 * Apply G from the right to transform the columns of the
                 * matrix in rows I1 to min(K+NR,I).
                 */
                applyreflectionfromtheright(h, tau, &v, i1, ae_minint(k+nr, i, _state), k, k+nr-1, &work, _state);
                if( wantz )
                {
                    
                    /*
                     * Accumulate transformations in the matrix Z
                     */
                    applyreflectionfromtheright(z, tau, &v, 1, n, k, k+nr-1, &work, _state);
                }
            }
        }
        
        /*
         * Failure to converge in remaining number of iterations
         */
        if( failflag )
        {
            *info = i;
            ae_frame_leave(_state);
            return;
        }
        
        /*
         * A submatrix of order <= MAXB in rows and columns L to I has split
         * off. Use the double-shift QR algorithm to handle it.
         */
        hsschur_internalauxschur(wantt, wantz, n, l, i, h, wr, wi, 1, n, z, &work, &workv3, &workc1, &works1, info, _state);
        if( *info>0 )
        {
            ae_frame_leave(_state);
            return;
        }
        
        /*
         * Decrement number of remaining iterations, and return to start of
         * the main loop with a new value of I.
         */
        itn = itn-its;
        i = l-1;
    }
    ae_frame_leave(_state);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x418, %rsp            # imm = 0x418
movq 0x20(%rbp), %rax
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movq %rdi, -0x30(%rbp)
movq %rsi, -0x38(%rbp)
movq %rdx, -0x40(%rbp)
movq %rcx, -0x48(%rbp)
movq %r8, -0x50(%rbp)
movq %r9, -0x58(%rbp)
movq 0x20(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x3b0f0
movq -0x50(%rbp), %rdi
callq 0x3b6f0
movq -0x58(%rbp), %rdi
callq 0x3b6f0
movq 0x18(%rbp), %rax
movq $0x0, (%rax)
movq 0x20(%rbp), %rcx
leaq -0xa0(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
movl $0x3, %edx
movl $0x1, %r8d
callq 0x3b400
movq 0x20(%rbp), %r8
leaq -0x198(%rbp), %rdi
xorl %eax, %eax
movl %eax, %edx
movl $0x3, %ecx
movl $0x1, %r9d
movq %rdx, %rsi
callq 0x3b7d0
movq 0x20(%rbp), %rcx
leaq -0x1c8(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
movl $0x3, %edx
movl $0x1, %r8d
callq 0x3b400
movq 0x20(%rbp), %rcx
leaq -0x1f8(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
movl $0x3, %edx
movl $0x1, %r8d
callq 0x3b400
movq 0x20(%rbp), %rcx
leaq -0x228(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
movl $0x3, %edx
movl $0x1, %r8d
callq 0x3b400
movq 0x20(%rbp), %rcx
leaq -0x258(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
movl $0x3, %edx
movl $0x1, %r8d
callq 0x3b400
movq 0x20(%rbp), %rcx
leaq -0x288(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
movl $0x3, %edx
movl $0x1, %r8d
callq 0x3b400
movq 0x20(%rbp), %rcx
leaq -0x2b8(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
movl $0x3, %edx
movl $0x1, %r8d
callq 0x3b400
movq 0x20(%rbp), %rcx
leaq -0x2e8(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
movl $0x3, %edx
movl $0x1, %r8d
callq 0x3b400
movq $0xc, -0x110(%rbp)
movq $0x32, -0x100(%rbp)
movq -0x100(%rbp), %rsi
movq 0x20(%rbp), %rdx
movl $0x3, %edi
callq 0x3c9f0
movq %rax, -0x100(%rbp)
movq -0x100(%rbp), %rdi
movq -0x110(%rbp), %rsi
movq 0x20(%rbp), %rdx
callq 0x3ca30
movq %rax, -0x110(%rbp)
movsd 0x2eaf4(%rip), %xmm0    # 0x57858
movsd %xmm0, -0x2f8(%rbp)
movq -0x38(%rbp), %rdi
movq 0x20(%rbp), %rdx
movl $0x1, %esi
callq 0x3c9f0
movq %rax, %rsi
addq $0x1, %rsi
movq 0x20(%rbp), %rdx
leaq -0xa0(%rbp), %rdi
callq 0x3b620
movq -0x110(%rbp), %rsi
addq $0x1, %rsi
movq -0x110(%rbp), %rdx
addq $0x1, %rdx
movq 0x20(%rbp), %rcx
leaq -0x198(%rbp), %rdi
callq 0x3bc30
movq -0x110(%rbp), %rsi
addq $0x1, %rsi
addq $0x1, %rsi
movq 0x20(%rbp), %rdx
leaq -0x1c8(%rbp), %rdi
callq 0x3b620
movq -0x110(%rbp), %rsi
addq $0x1, %rsi
addq $0x1, %rsi
movq 0x20(%rbp), %rdx
leaq -0x1f8(%rbp), %rdi
callq 0x3b620
movq -0x50(%rbp), %rax
movq %rax, -0x330(%rbp)
movq -0x38(%rbp), %rdi
movq 0x20(%rbp), %rdx
movl $0x1, %esi
callq 0x3c9f0
movq -0x330(%rbp), %rdi
movq %rax, %rsi
addq $0x1, %rsi
movq 0x20(%rbp), %rdx
callq 0x3b620
movq -0x58(%rbp), %rax
movq %rax, -0x328(%rbp)
movq -0x38(%rbp), %rdi
movq 0x20(%rbp), %rdx
movl $0x1, %esi
callq 0x3c9f0
movq -0x328(%rbp), %rdi
movq %rax, %rsi
addq $0x1, %rsi
movq 0x20(%rbp), %rdx
callq 0x3b620
movq 0x20(%rbp), %rdx
leaq -0x228(%rbp), %rdi
movl $0x2, %esi
callq 0x3b620
movq 0x20(%rbp), %rdx
leaq -0x258(%rbp), %rdi
movl $0x2, %esi
callq 0x3b620
movq 0x20(%rbp), %rdx
leaq -0x288(%rbp), %rdi
movl $0x4, %esi
callq 0x3b620
movq -0x38(%rbp), %rdi
movq 0x20(%rbp), %rdx
movl $0x1, %esi
callq 0x3c9f0
movq %rax, %rsi
addq $0x1, %rsi
movq 0x20(%rbp), %rdx
leaq -0x2b8(%rbp), %rdi
callq 0x3b620
movq -0x38(%rbp), %rdi
movq 0x20(%rbp), %rdx
movl $0x1, %esi
callq 0x3c9f0
movq %rax, %rsi
addq $0x1, %rsi
movq 0x20(%rbp), %rdx
leaq -0x2e8(%rbp), %rdi
callq 0x3b620
cmpq $0x0, -0x38(%rbp)
setge %al
movq 0x20(%rbp), %rdx
movzbl %al, %edi
andl $0x1, %edi
leaq 0x2ee2c(%rip), %rsi     # 0x57d37
callq 0x3b240
movb $0x1, %al
cmpq $0x0, -0x40(%rbp)
movb %al, -0x319(%rbp)
je 0x28f2d
cmpq $0x1, -0x40(%rbp)
sete %al
movb %al, -0x319(%rbp)
movb -0x319(%rbp), %al
movq 0x20(%rbp), %rdx
movzbl %al, %edi
andl $0x1, %edi
leaq 0x2ee1c(%rip), %rsi     # 0x57d60
callq 0x3b240
movb $0x1, %al
cmpq $0x0, -0x48(%rbp)
movb %al, -0x331(%rbp)
je 0x28f75
movb $0x1, %al
cmpq $0x1, -0x48(%rbp)
movb %al, -0x331(%rbp)
je 0x28f75
cmpq $0x2, -0x48(%rbp)
sete %al
movb %al, -0x331(%rbp)
movb -0x331(%rbp), %al
movq 0x20(%rbp), %rdx
movzbl %al, %edi
andl $0x1, %edi
leaq 0x2ee03(%rip), %rsi     # 0x57d8f
callq 0x3b240
cmpq $0x1, -0x40(%rbp)
sete %al
andb $0x1, %al
movb %al, -0x2ea(%rbp)
cmpq $0x2, -0x48(%rbp)
sete %al
andb $0x1, %al
movb %al, -0x2e9(%rbp)
cmpq $0x0, -0x48(%rbp)
setne %al
andb $0x1, %al
movb %al, -0x2eb(%rbp)
movq 0x18(%rbp), %rax
movq $0x0, (%rax)
testb $0x1, -0x2e9(%rbp)
je 0x290b6
movq 0x10(%rbp), %rdi
movq -0x38(%rbp), %rsi
addq $0x1, %rsi
movq -0x38(%rbp), %rdx
addq $0x1, %rdx
movq 0x20(%rbp), %rcx
callq 0x3bc30
movq $0x1, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
cmpq -0x38(%rbp), %rax
jg 0x290b4
movq $0x1, -0xe8(%rbp)
movq -0xe8(%rbp), %rax
cmpq -0x38(%rbp), %rax
jg 0x2909b
movq -0xa8(%rbp), %rax
cmpq -0xe8(%rbp), %rax
jne 0x29063
movq 0x10(%rbp), %rax
movq 0x38(%rax), %rax
movq -0xa8(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq -0xe8(%rbp), %rcx
movsd 0x2bfac(%rip), %xmm0    # 0x55008
movsd %xmm0, (%rax,%rcx,8)
jmp 0x29085
movq 0x10(%rbp), %rax
movq 0x38(%rax), %rax
movq -0xa8(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq -0xe8(%rbp), %rcx
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
jmp 0x29087
movq -0xe8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xe8(%rbp)
jmp 0x2901d
jmp 0x2909d
movq -0xa8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xa8(%rbp)
jmp 0x29001
jmp 0x290b6
cmpq $0x0, -0x38(%rbp)
jne 0x290cb
movq 0x20(%rbp), %rdi
callq 0x3b030
jmp 0x2a63c
cmpq $0x1, -0x38(%rbp)
jne 0x2910e
movq -0x30(%rbp), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax), %rax
movsd 0x8(%rax), %xmm0
movq -0x50(%rbp), %rax
movq 0x28(%rax), %rax
movsd %xmm0, 0x8(%rax)
movq -0x58(%rbp), %rax
movq 0x28(%rax), %rax
xorps %xmm0, %xmm0
movsd %xmm0, 0x8(%rax)
movq 0x20(%rbp), %rdi
callq 0x3b030
jmp 0x2a63c
movq $0x1, -0xe8(%rbp)
movq -0xe8(%rbp), %rax
movq -0x38(%rbp), %rcx
subq $0x2, %rcx
cmpq %rcx, %rax
jg 0x29198
movq -0xe8(%rbp), %rax
addq $0x2, %rax
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
cmpq -0x38(%rbp), %rax
jg 0x29182
movq -0x30(%rbp), %rax
movq 0x38(%rax), %rax
movq -0xa8(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq -0xe8(%rbp), %rcx
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
movq -0xa8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xa8(%rbp)
jmp 0x2913f
jmp 0x29184
movq -0xe8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xe8(%rbp)
jmp 0x29119
cmpq $0x2, -0x110(%rbp)
jle 0x291c0
movq -0x110(%rbp), %rax
cmpq -0x38(%rbp), %rax
jg 0x291c0
movq -0x100(%rbp), %rax
cmpq -0x38(%rbp), %rax
jl 0x293d4
movb -0x2ea(%rbp), %dil
movb -0x2eb(%rbp), %sil
movq -0x38(%rbp), %rdx
movq -0x38(%rbp), %r8
movq -0x30(%rbp), %r9
movq -0x50(%rbp), %rax
movq -0x58(%rbp), %rcx
movq %rcx, -0x348(%rbp)
movq -0x38(%rbp), %r13
movq 0x10(%rbp), %r12
movq 0x18(%rbp), %r10
movq 0x20(%rbp), %rcx
movq %rcx, -0x340(%rbp)
movl $0x1, %ecx
leaq -0xa0(%rbp), %r15
leaq -0x288(%rbp), %r14
leaq -0x228(%rbp), %rbx
leaq -0x258(%rbp), %r11
andb $0x1, %dil
andb $0x1, %sil
movzbl %dil, %edi
movzbl %sil, %esi
movq %rax, (%rsp)
movq -0x348(%rbp), %rax
movq %rax, 0x8(%rsp)
movq -0x340(%rbp), %rax
movq $0x1, 0x10(%rsp)
movq %r13, 0x18(%rsp)
movq %r12, 0x20(%rsp)
movq %r15, 0x28(%rsp)
movq %r14, 0x30(%rsp)
movq %rbx, 0x38(%rsp)
movq %r11, 0x40(%rsp)
movq %r10, 0x48(%rsp)
movq %rax, 0x50(%rsp)
callq 0x2a650
testb $0x1, -0x2ea(%rbp)
je 0x293c6
movq $0x1, -0xe8(%rbp)
movq -0xe8(%rbp), %rax
cmpq -0x38(%rbp), %rax
jg 0x293c4
movq -0x58(%rbp), %rax
movq 0x28(%rax), %rax
movq -0xe8(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
xorps %xmm1, %xmm1
callq 0x3c3d0
testb $0x1, %al
jne 0x292c9
jmp 0x29335
movq -0xe8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
cmpq -0x38(%rbp), %rax
jg 0x2931e
movq -0x30(%rbp), %rax
movq 0x38(%rax), %rax
movq -0xa8(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq -0xe8(%rbp), %rcx
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
movq -0xa8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xa8(%rbp)
jmp 0x292db
movq -0xe8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xe8(%rbp)
jmp 0x293bf
movq -0xe8(%rbp), %rax
addq $0x2, %rax
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
cmpq -0x38(%rbp), %rax
jg 0x293ad
movq -0x30(%rbp), %rax
movq 0x38(%rax), %rax
movq -0xa8(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq -0xe8(%rbp), %rcx
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
movq -0x30(%rbp), %rax
movq 0x38(%rax), %rax
movq -0xa8(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq -0xe8(%rbp), %rcx
xorps %xmm0, %xmm0
movsd %xmm0, 0x8(%rax,%rcx,8)
movq -0xa8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xa8(%rbp)
jmp 0x29347
movq -0xe8(%rbp), %rax
addq $0x2, %rax
movq %rax, -0xe8(%rbp)
jmp 0x29296
jmp 0x293c6
movq 0x20(%rbp), %rdi
callq 0x3b030
jmp 0x2a63c
movsd 0x2d04c(%rip), %xmm0    # 0x56428
movsd %xmm0, -0x158(%rbp)
movsd 0x2bc1c(%rip), %xmm0    # 0x55008
divsd -0x158(%rbp), %xmm0
movsd %xmm0, -0x128(%rbp)
movsd 0x2c3b4(%rip), %xmm0    # 0x557b8
movsd %xmm0, -0x150(%rbp)
movsd -0x158(%rbp), %xmm0
cvtsi2sdq -0x38(%rbp), %xmm1
divsd -0x150(%rbp), %xmm1
mulsd %xmm1, %xmm0
movsd %xmm0, -0x130(%rbp)
movq $0x1, -0xb0(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0xb8(%rbp)
imulq $0x1e, -0x38(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq $0x1, -0xf8(%rbp)
cmpq $0x1, -0xa8(%rbp)
jge 0x295ca
testb $0x1, -0x2ea(%rbp)
je 0x295bc
movq $0x1, -0xe8(%rbp)
movq -0xe8(%rbp), %rax
cmpq -0x38(%rbp), %rax
jg 0x295ba
movq -0x58(%rbp), %rax
movq 0x28(%rax), %rax
movq -0xe8(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
xorps %xmm1, %xmm1
callq 0x3c3d0
testb $0x1, %al
jne 0x294bf
jmp 0x2952b
movq -0xe8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
cmpq -0x38(%rbp), %rax
jg 0x29514
movq -0x30(%rbp), %rax
movq 0x38(%rax), %rax
movq -0xa8(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq -0xe8(%rbp), %rcx
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
movq -0xa8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xa8(%rbp)
jmp 0x294d1
movq -0xe8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xe8(%rbp)
jmp 0x295b5
movq -0xe8(%rbp), %rax
addq $0x2, %rax
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
cmpq -0x38(%rbp), %rax
jg 0x295a3
movq -0x30(%rbp), %rax
movq 0x38(%rax), %rax
movq -0xa8(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq -0xe8(%rbp), %rcx
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
movq -0x30(%rbp), %rax
movq 0x38(%rax), %rax
movq -0xa8(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq -0xe8(%rbp), %rcx
xorps %xmm0, %xmm0
movsd %xmm0, 0x8(%rax,%rcx,8)
movq -0xa8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xa8(%rbp)
jmp 0x2953d
movq -0xe8(%rbp), %rax
addq $0x2, %rax
movq %rax, -0xe8(%rbp)
jmp 0x2948c
jmp 0x295bc
movq 0x20(%rbp), %rdi
callq 0x3b030
jmp 0x2a63c
movb $0x1, -0x2f9(%rbp)
movq $0x0, -0xe0(%rbp)
movq -0xe0(%rbp), %rax
cmpq -0xd8(%rbp), %rax
jg 0x2a513
movq -0xa8(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0xf0(%rbp), %rax
movq -0xf8(%rbp), %rcx
addq $0x1, %rcx
cmpq %rcx, %rax
jl 0x29768
movq -0x30(%rbp), %rax
movq 0x38(%rax), %rax
movq -0xf0(%rbp), %rcx
subq $0x1, %rcx
movq (%rax,%rcx,8), %rax
movq -0xf0(%rbp), %rcx
subq $0x1, %rcx
movsd (%rax,%rcx,8), %xmm0
movq 0x20(%rbp), %rdi
callq 0x3c820
movsd %xmm0, -0x350(%rbp)
movq -0x30(%rbp), %rax
movq 0x38(%rax), %rax
movq -0xf0(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq -0xf0(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq 0x20(%rbp), %rdi
callq 0x3c820
movaps %xmm0, %xmm1
movsd -0x350(%rbp), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x148(%rbp)
movsd -0x148(%rbp), %xmm0
xorps %xmm1, %xmm1
callq 0x3c3d0
testb $0x1, %al
jne 0x296a6
jmp 0x296e2
movq -0x30(%rbp), %rdi
movq -0xf8(%rbp), %rsi
movq -0xa8(%rbp), %rdx
movq -0xf8(%rbp), %rcx
movq -0xa8(%rbp), %r8
movq 0x20(%rbp), %rax
leaq -0xa0(%rbp), %r9
movq %rax, (%rsp)
callq 0x232c0
movsd %xmm0, -0x148(%rbp)
movq -0x30(%rbp), %rax
movq 0x38(%rax), %rax
movq -0xf0(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq -0xf0(%rbp), %rcx
subq $0x1, %rcx
movsd (%rax,%rcx,8), %xmm0
movq 0x20(%rbp), %rdi
callq 0x3c820
movsd %xmm0, -0x358(%rbp)
movsd -0x150(%rbp), %xmm0
mulsd -0x148(%rbp), %xmm0
movsd -0x130(%rbp), %xmm1
movq 0x20(%rbp), %rdi
callq 0x3ca70
movaps %xmm0, %xmm1
movsd -0x358(%rbp), %xmm0
callq 0x3c480
testb $0x1, %al
jne 0x2974d
jmp 0x2974f
jmp 0x29768
jmp 0x29751
movq -0xf0(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0xf0(%rbp)
jmp 0x295fe
movq -0xf0(%rbp), %rax
movq %rax, -0xf8(%rbp)
cmpq $0x1, -0xf8(%rbp)
jle 0x297a6
movq -0x30(%rbp), %rax
movq 0x38(%rax), %rax
movq -0xf8(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq -0xf8(%rbp), %rcx
subq $0x1, %rcx
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
movq -0xf8(%rbp), %rax
movq -0xa8(%rbp), %rcx
subq -0x100(%rbp), %rcx
addq $0x1, %rcx
cmpq %rcx, %rax
jl 0x297d0
movb $0x0, -0x2f9(%rbp)
jmp 0x2a513
cmpq $0x14, -0xe0(%rbp)
je 0x297e8
cmpq $0x1e, -0xe0(%rbp)
jne 0x298e3
movq -0xa8(%rbp), %rax
subq -0x110(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
cmpq -0xa8(%rbp), %rax
jg 0x298de
movsd -0x2f8(%rbp), %xmm0
movsd %xmm0, -0x360(%rbp)
movq -0x30(%rbp), %rax
movq 0x38(%rax), %rax
movq -0xc8(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq -0xc8(%rbp), %rcx
subq $0x1, %rcx
movsd (%rax,%rcx,8), %xmm0
movq 0x20(%rbp), %rdi
callq 0x3c820
movsd %xmm0, -0x368(%rbp)
movq -0x30(%rbp), %rax
movq 0x38(%rax), %rax
movq -0xc8(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq -0xc8(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq 0x20(%rbp), %rdi
callq 0x3c820
movsd -0x368(%rbp), %xmm1
movaps %xmm0, %xmm2
movsd -0x360(%rbp), %xmm0
addsd %xmm2, %xmm1
mulsd %xmm1, %xmm0
movq -0x50(%rbp), %rax
movq 0x28(%rax), %rax
movq -0xc8(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq -0x58(%rbp), %rax
movq 0x28(%rax), %rax
movq -0xc8(%rbp), %rcx
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
movq -0xc8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xc8(%rbp)
jmp 0x29801
jmp 0x29b59
movq -0x30(%rbp), %rdi
movq -0xa8(%rbp), %rsi
subq -0x110(%rbp), %rsi
addq $0x1, %rsi
movq -0xa8(%rbp), %rdx
movq -0xa8(%rbp), %rcx
subq -0x110(%rbp), %rcx
addq $0x1, %rcx
movq -0xa8(%rbp), %r8
movq -0x110(%rbp), %r11
movq -0x110(%rbp), %r10
movq 0x20(%rbp), %rax
leaq -0x198(%rbp), %r9
movq $0x1, (%rsp)
movq %r11, 0x8(%rsp)
movq $0x1, 0x10(%rsp)
movq %r10, 0x18(%rsp)
movq %rax, 0x20(%rsp)
callq 0x23460
movq -0x110(%rbp), %rdx
movq -0x110(%rbp), %r8
movq -0x110(%rbp), %r13
movq 0x10(%rbp), %r12
movq 0x20(%rbp), %rax
movq %rax, -0x370(%rbp)
xorl %esi, %esi
movl $0x1, %ecx
leaq -0x198(%rbp), %r9
leaq -0x2b8(%rbp), %rax
leaq -0x2e8(%rbp), %rdi
movq %rdi, -0x378(%rbp)
leaq -0xa0(%rbp), %r15
leaq -0x288(%rbp), %r14
leaq -0x228(%rbp), %rbx
leaq -0x258(%rbp), %r11
leaq -0xc0(%rbp), %r10
movl %esi, %edi
movq %rax, (%rsp)
movq -0x378(%rbp), %rax
movq %rax, 0x8(%rsp)
movq -0x370(%rbp), %rax
movq $0x1, 0x10(%rsp)
movq %r13, 0x18(%rsp)
movq %r12, 0x20(%rsp)
movq %r15, 0x28(%rsp)
movq %r14, 0x30(%rsp)
movq %rbx, 0x38(%rsp)
movq %r11, 0x40(%rsp)
movq %r10, 0x48(%rsp)
movq %rax, 0x50(%rsp)
callq 0x2a650
movq $0x1, -0x308(%rbp)
movq -0x308(%rbp), %rax
cmpq -0x110(%rbp), %rax
jg 0x29ab0
movq -0x290(%rbp), %rax
movq -0x308(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq -0x50(%rbp), %rax
movq 0x28(%rax), %rax
movq -0xa8(%rbp), %rcx
subq -0x110(%rbp), %rcx
addq -0x308(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq -0x2c0(%rbp), %rax
movq -0x308(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq -0x58(%rbp), %rax
movq 0x28(%rax), %rax
movq -0xa8(%rbp), %rcx
subq -0x110(%rbp), %rcx
addq -0x308(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq -0x308(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x308(%rbp)
jmp 0x29a1b
cmpq $0x0, -0xc0(%rbp)
jle 0x29b57
movq $0x1, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
cmpq -0xc0(%rbp), %rax
jg 0x29b55
movq -0x160(%rbp), %rax
movq -0xc8(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq -0xc8(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq -0x50(%rbp), %rax
movq 0x28(%rax), %rax
movq -0xa8(%rbp), %rcx
subq -0x110(%rbp), %rcx
addq -0xc8(%rbp), %rcx
movsd %xmm0, (%rax,%rcx,8)
movq -0x58(%rbp), %rax
movq 0x28(%rax), %rax
movq -0xa8(%rbp), %rcx
subq -0x110(%rbp), %rcx
addq -0xc8(%rbp), %rcx
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
movq -0xc8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xc8(%rbp)
jmp 0x29ac9
jmp 0x29b57
jmp 0x29b59
movq -0x1a0(%rbp), %rax
movsd 0x2b4a0(%rip), %xmm0    # 0x55008
movsd %xmm0, 0x8(%rax)
movq $0x2, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
movq -0x110(%rbp), %rcx
addq $0x1, %rcx
cmpq %rcx, %rax
jg 0x29bb9
movq -0x1a0(%rbp), %rax
movq -0xc8(%rbp), %rcx
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
movq -0xc8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xc8(%rbp)
jmp 0x29b78
movq $0x1, -0x118(%rbp)
movq -0xa8(%rbp), %rax
subq -0x110(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xe8(%rbp)
movq -0xe8(%rbp), %rax
cmpq -0xa8(%rbp), %rax
jg 0x2a1ba
movq -0x58(%rbp), %rax
movq 0x28(%rax), %rax
movq -0xe8(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
xorps %xmm1, %xmm1
callq 0x3c500
testb $0x1, %al
jne 0x29c16
jmp 0x2a1a1
movq -0x58(%rbp), %rax
movq 0x28(%rax), %rax
movq -0xe8(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
xorps %xmm1, %xmm1
callq 0x3c3d0
testb $0x1, %al
jne 0x29c3b
jmp 0x29d73
movq -0x118(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x308(%rbp)
movq -0x1d0(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x388(%rbp)
movq -0x1a0(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x380(%rbp)
movq -0x308(%rbp), %rsi
movl $0x1, %edi
callq 0x42370
movq -0x388(%rbp), %rdi
movq -0x380(%rbp), %rdx
movq %rax, %r8
movl $0x1, %ecx
movq %rcx, %rsi
callq 0x41b10
movq -0x30(%rbp), %rdi
movq -0xf8(%rbp), %rsi
movq -0xf8(%rbp), %rdx
addq -0x118(%rbp), %rdx
movq -0xf8(%rbp), %rcx
movq -0xf8(%rbp), %r8
addq -0x118(%rbp), %r8
subq $0x1, %r8
movq -0x118(%rbp), %rbx
movq -0x118(%rbp), %r10
addq $0x1, %r10
movq -0x50(%rbp), %rax
movq 0x28(%rax), %rax
movq -0xe8(%rbp), %r9
movsd (%rax,%r9,8), %xmm0
movq %xmm0, %rax
movabsq $-0x8000000000000000, %r9 # imm = 0x8000000000000000
xorq %r9, %rax
movq %rax, %xmm1
movq 0x20(%rbp), %rax
xorl %r9d, %r9d
leaq -0x1f8(%rbp), %r14
movsd 0x2b2e2(%rip), %xmm0    # 0x55008
leaq -0x1c8(%rbp), %r11
movq %r14, (%rsp)
movq $0x1, 0x8(%rsp)
movq %rbx, 0x10(%rsp)
movq %r11, 0x18(%rsp)
movq $0x1, 0x20(%rsp)
movq %r10, 0x28(%rsp)
movq %rax, 0x30(%rsp)
callq 0x23930
movq -0x118(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x118(%rbp)
jmp 0x2a06f
movq -0x58(%rbp), %rax
movq 0x28(%rax), %rax
movq -0xe8(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
xorps %xmm1, %xmm1
callq 0x3c4c0
testb $0x1, %al
jne 0x29d98
jmp 0x2a06d
movq -0x118(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x308(%rbp)
movq -0x1d0(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x3a0(%rbp)
movq -0x1a0(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x398(%rbp)
movq -0x308(%rbp), %rsi
movl $0x1, %edi
callq 0x42370
movq -0x3a0(%rbp), %rdi
movq -0x398(%rbp), %rdx
movq %rax, %r8
movl $0x1, %ecx
movq %rcx, %rsi
callq 0x41b10
movq -0x30(%rbp), %rdi
movq -0xf8(%rbp), %rsi
movq -0xf8(%rbp), %rdx
addq -0x118(%rbp), %rdx
movq -0xf8(%rbp), %rcx
movq -0xf8(%rbp), %r8
addq -0x118(%rbp), %r8
subq $0x1, %r8
movq -0x118(%rbp), %rbx
movq -0x118(%rbp), %r10
addq $0x1, %r10
movq -0x50(%rbp), %rax
movq 0x28(%rax), %rax
movq -0xe8(%rbp), %r9
movsd 0x2b7d0(%rip), %xmm1    # 0x55628
mulsd (%rax,%r9,8), %xmm1
movq 0x20(%rbp), %rax
xorl %r9d, %r9d
leaq -0x1c8(%rbp), %r14
movsd 0x2b194(%rip), %xmm0    # 0x55008
leaq -0x1f8(%rbp), %r11
movq %r14, (%rsp)
movq $0x1, 0x8(%rsp)
movq %rbx, 0x10(%rsp)
movq %r11, 0x18(%rsp)
movq $0x1, 0x20(%rsp)
movq %r10, 0x28(%rsp)
movq %rax, 0x30(%rsp)
callq 0x23930
movq -0x118(%rbp), %rdx
addq $0x1, %rdx
movq 0x20(%rbp), %rcx
leaq -0x1f8(%rbp), %rdi
movl $0x1, %esi
callq 0x23030
movq %rax, -0xd0(%rbp)
movq -0x1d0(%rbp), %rax
movq -0xd0(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq 0x20(%rbp), %rdi
callq 0x3c820
movsd -0x130(%rbp), %xmm1
movq 0x20(%rbp), %rdi
callq 0x3ca70
movaps %xmm0, %xmm1
movsd 0x2b0ff(%rip), %xmm0    # 0x55008
divsd %xmm1, %xmm0
movsd %xmm0, -0x140(%rbp)
movq -0x118(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x308(%rbp)
movq -0x1d0(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x390(%rbp)
movq -0x308(%rbp), %rsi
movl $0x1, %edi
callq 0x42370
movq -0x390(%rbp), %rdi
movq %rax, %rdx
movsd -0x140(%rbp), %xmm0
movl $0x1, %esi
callq 0x422d0
movq -0x50(%rbp), %rax
movq 0x28(%rax), %rax
movq -0xe8(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq -0x58(%rbp), %rax
movq 0x28(%rax), %rax
movq -0xe8(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm1
movq 0x20(%rbp), %rdi
callq 0x23d00
movsd %xmm0, -0x120(%rbp)
movsd -0x140(%rbp), %xmm0
mulsd -0x120(%rbp), %xmm0
mulsd -0x120(%rbp), %xmm0
movsd %xmm0, -0x140(%rbp)
movq -0x30(%rbp), %rdi
movq -0xf8(%rbp), %rsi
movq -0xf8(%rbp), %rdx
addq -0x118(%rbp), %rdx
addq $0x1, %rdx
movq -0xf8(%rbp), %rcx
movq -0xf8(%rbp), %r8
addq -0x118(%rbp), %r8
movq -0x118(%rbp), %rbx
addq $0x1, %rbx
movq -0x118(%rbp), %r10
addq $0x2, %r10
movsd -0x140(%rbp), %xmm1
movq 0x20(%rbp), %rax
xorl %r9d, %r9d
leaq -0x1f8(%rbp), %r14
movsd 0x2afe3(%rip), %xmm0    # 0x55008
leaq -0x1c8(%rbp), %r11
movq %r14, (%rsp)
movq $0x1, 0x8(%rsp)
movq %rbx, 0x10(%rsp)
movq %r11, 0x18(%rsp)
movq $0x1, 0x20(%rsp)
movq %r10, 0x28(%rsp)
movq %rax, 0x30(%rsp)
callq 0x23930
movq -0x118(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x118(%rbp)
jmp 0x2a06f
movq -0x118(%rbp), %rdx
movq 0x20(%rbp), %rcx
leaq -0x1c8(%rbp), %rdi
movl $0x1, %esi
callq 0x23030
movq %rax, -0xd0(%rbp)
movq -0x1a0(%rbp), %rax
movq -0xd0(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq 0x20(%rbp), %rdi
callq 0x3c820
movsd %xmm0, -0x140(%rbp)
movsd -0x140(%rbp), %xmm0
xorps %xmm1, %xmm1
callq 0x3c3d0
testb $0x1, %al
jne 0x2a0cc
jmp 0x2a127
movq -0x1a0(%rbp), %rax
movsd 0x2af2d(%rip), %xmm0    # 0x55008
movsd %xmm0, 0x8(%rax)
movq $0x2, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
cmpq -0x118(%rbp), %rax
jg 0x2a125
movq -0x1a0(%rbp), %rax
movq -0xc8(%rbp), %rcx
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
movq -0xc8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xc8(%rbp)
jmp 0x2a0eb
jmp 0x2a19f
movsd -0x140(%rbp), %xmm0
movsd -0x130(%rbp), %xmm1
movq 0x20(%rbp), %rdi
callq 0x3ca70
movsd %xmm0, -0x140(%rbp)
movsd 0x2aeb8(%rip), %xmm0    # 0x55008
divsd -0x140(%rbp), %xmm0
movsd %xmm0, -0x318(%rbp)
movq -0x1a0(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x3a8(%rbp)
movq -0x118(%rbp), %rsi
movl $0x1, %edi
callq 0x42370
movq -0x3a8(%rbp), %rdi
movq %rax, %rdx
movsd -0x318(%rbp), %xmm0
movl $0x1, %esi
callq 0x422d0
jmp 0x2a1a1
jmp 0x2a1a3
movq -0xe8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xe8(%rbp)
jmp 0x29bdd
movq -0xf8(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0xf0(%rbp), %rax
movq -0xa8(%rbp), %rcx
subq $0x1, %rcx
cmpq %rcx, %rax
jg 0x2a4fa
movq -0x110(%rbp), %rdi
addq $0x1, %rdi
movq -0xa8(%rbp), %rsi
subq -0xf0(%rbp), %rsi
addq $0x1, %rsi
movq 0x20(%rbp), %rdx
callq 0x3ca30
movq %rax, -0x108(%rbp)
movq -0xf0(%rbp), %rax
cmpq -0xf8(%rbp), %rax
jle 0x2a2cb
movq -0xf0(%rbp), %rax
subq $0x1, %rax
movq %rax, -0x308(%rbp)
movq -0xf0(%rbp), %rax
addq -0x108(%rbp), %rax
subq $0x1, %rax
movq %rax, -0x310(%rbp)
movq -0x1a0(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x3c0(%rbp)
movq -0x30(%rbp), %rax
movq 0x38(%rax), %rax
movq -0xf0(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq -0x308(%rbp), %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x3b8(%rbp)
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x3b0(%rbp)
movq -0x108(%rbp), %rsi
movl $0x1, %edi
callq 0x42370
movq -0x3c0(%rbp), %rdi
movq -0x3b8(%rbp), %rdx
movq -0x3b0(%rbp), %rcx
movq %rax, %r8
movl $0x1, %esi
callq 0x41b10
movq -0x108(%rbp), %rsi
movq 0x20(%rbp), %rcx
leaq -0x1c8(%rbp), %rdi
leaq -0x138(%rbp), %rdx
callq 0x25760
movq -0xf0(%rbp), %rax
cmpq -0xf8(%rbp), %rax
jle 0x2a38a
movq -0x1a0(%rbp), %rax
movsd 0x8(%rax), %xmm0
movq -0x30(%rbp), %rax
movq 0x38(%rax), %rax
movq -0xf0(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq -0xf0(%rbp), %rcx
subq $0x1, %rcx
movsd %xmm0, (%rax,%rcx,8)
movq -0xf0(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
cmpq -0xa8(%rbp), %rax
jg 0x2a388
movq -0x30(%rbp), %rax
movq 0x38(%rax), %rax
movq -0xc8(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq -0xf0(%rbp), %rcx
subq $0x1, %rcx
xorps %xmm0, %xmm0
movsd %xmm0, (%rax,%rcx,8)
movq -0xc8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xc8(%rbp)
jmp 0x2a33e
jmp 0x2a38a
movq -0x1a0(%rbp), %rax
movsd 0x2ac6f(%rip), %xmm0    # 0x55008
movsd %xmm0, 0x8(%rax)
movq -0x30(%rbp), %rdi
movsd -0x138(%rbp), %xmm0
movq -0xf0(%rbp), %rdx
movq -0xf0(%rbp), %rcx
addq -0x108(%rbp), %rcx
subq $0x1, %rcx
movq -0xf0(%rbp), %r8
movq -0xb8(%rbp), %r9
movq 0x20(%rbp), %rax
leaq -0x1c8(%rbp), %rsi
leaq -0xa0(%rbp), %r10
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x25b80
movq -0x30(%rbp), %rax
movq %rax, -0x3d8(%rbp)
movsd -0x138(%rbp), %xmm0
movsd %xmm0, -0x3d0(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0x3c8(%rbp)
movq -0xf0(%rbp), %rdi
addq -0x108(%rbp), %rdi
movq -0xa8(%rbp), %rsi
movq 0x20(%rbp), %rdx
callq 0x3ca30
movq -0x3d8(%rbp), %rdi
movsd -0x3d0(%rbp), %xmm0
movq -0x3c8(%rbp), %rdx
movq %rax, %rcx
movq -0xf0(%rbp), %r8
movq -0xf0(%rbp), %r9
addq -0x108(%rbp), %r9
subq $0x1, %r9
movq 0x20(%rbp), %rax
leaq -0x1c8(%rbp), %rsi
leaq -0xa0(%rbp), %r10
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x25d70
testb $0x1, -0x2eb(%rbp)
je 0x2a4e1
movq 0x10(%rbp), %rdi
movsd -0x138(%rbp), %xmm0
movq -0x38(%rbp), %rcx
movq -0xf0(%rbp), %r8
movq -0xf0(%rbp), %r9
addq -0x108(%rbp), %r9
subq $0x1, %r9
movq 0x20(%rbp), %rax
leaq -0x1c8(%rbp), %rsi
movl $0x1, %edx
leaq -0xa0(%rbp), %r10
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x25d70
jmp 0x2a4e3
movq -0xf0(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xf0(%rbp)
jmp 0x2a1c8
jmp 0x2a4fc
movq -0xe0(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xe0(%rbp)
jmp 0x295dc
testb $0x1, -0x2f9(%rbp)
je 0x2a538
movq -0xa8(%rbp), %rcx
movq 0x18(%rbp), %rax
movq %rcx, (%rax)
movq 0x20(%rbp), %rdi
callq 0x3b030
jmp 0x2a63c
movb -0x2ea(%rbp), %dil
movb -0x2eb(%rbp), %sil
movq -0x38(%rbp), %rdx
movq -0xf8(%rbp), %rcx
movq -0xa8(%rbp), %r8
movq -0x30(%rbp), %r9
movq -0x50(%rbp), %rax
movq -0x58(%rbp), %r10
movq %r10, -0x3e8(%rbp)
movq -0x38(%rbp), %r13
movq 0x10(%rbp), %r12
movq 0x18(%rbp), %r10
movq 0x20(%rbp), %r11
movq %r11, -0x3e0(%rbp)
leaq -0xa0(%rbp), %r15
leaq -0x288(%rbp), %r14
leaq -0x228(%rbp), %rbx
leaq -0x258(%rbp), %r11
andb $0x1, %dil
andb $0x1, %sil
movzbl %dil, %edi
movzbl %sil, %esi
movq %rax, (%rsp)
movq -0x3e8(%rbp), %rax
movq %rax, 0x8(%rsp)
movq -0x3e0(%rbp), %rax
movq $0x1, 0x10(%rsp)
movq %r13, 0x18(%rsp)
movq %r12, 0x20(%rsp)
movq %r15, 0x28(%rsp)
movq %r14, 0x30(%rsp)
movq %rbx, 0x38(%rsp)
movq %r11, 0x40(%rsp)
movq %r10, 0x48(%rsp)
movq %rax, 0x50(%rsp)
callq 0x2a650
movq 0x18(%rbp), %rax
cmpq $0x0, (%rax)
jle 0x2a610
movq 0x20(%rbp), %rdi
callq 0x3b030
jmp 0x2a63c
movq -0xd8(%rbp), %rax
subq -0xe0(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0xf8(%rbp), %rax
subq $0x1, %rax
movq %rax, -0xa8(%rbp)
jmp 0x2945b
addq $0x418, %rsp            # imm = 0x418
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop