// File: /workspace/github_cpp_makefile_star2_O2/mouda[P]LTE_random_access-simulate/alglibinternal.cpp
// Function: alglib_impl::cmatrixscaledtrsafesolve(alglib_impl::ae_matrix*, double, long, alglib_impl::ae_vector*, bool, long, bool, double, alglib_impl::ae_state*)
ae_bool cmatrixscaledtrsafesolve(/* Complex */ ae_matrix* a,
     double sa,
     ae_int_t n,
     /* Complex */ ae_vector* x,
     ae_bool isupper,
     ae_int_t trans,
     ae_bool isunit,
     double maxgrowth,
     ae_state *_state)
{
    ae_frame _frame_block;
    double lnmax;
    double nrmb;
    double nrmx;
    ae_int_t i;
    ae_complex alpha;
    ae_complex beta;
    ae_complex vc;
    ae_vector tmp;
    ae_bool result;

    ae_frame_make(_state, &_frame_block);
    ae_vector_init(&tmp, 0, DT_COMPLEX, _state, ae_true);

    ae_assert(n>0, "CMatrixTRSafeSolve: incorrect N!", _state);
    ae_assert((trans==0||trans==1)||trans==2, "CMatrixTRSafeSolve: incorrect Trans!", _state);
    result = ae_true;
    lnmax = ae_log(ae_maxrealnumber, _state);
    
    /*
     * Quick return if possible
     */
    if( n<=0 )
    {
        ae_frame_leave(_state);
        return result;
    }
    
    /*
     * Load norms: right part and X
     */
    nrmb = 0;
    for(i=0; i<=n-1; i++)
    {
        nrmb = ae_maxreal(nrmb, ae_c_abs(x->ptr.p_complex[i], _state), _state);
    }
    nrmx = 0;
    
    /*
     * Solve
     */
    ae_vector_set_length(&tmp, n, _state);
    result = ae_true;
    if( isupper&&trans==0 )
    {
        
        /*
         * U*x = b
         */
        for(i=n-1; i>=0; i--)
        {
            
            /*
             * Task is reduced to alpha*x[i] = beta
             */
            if( isunit )
            {
                alpha = ae_complex_from_d(sa);
            }
            else
            {
                alpha = ae_c_mul_d(a->ptr.pp_complex[i][i],sa);
            }
            if( i<n-1 )
            {
                ae_v_cmoved(&tmp.ptr.p_complex[i+1], 1, &a->ptr.pp_complex[i][i+1], 1, "N", ae_v_len(i+1,n-1), sa);
                vc = ae_v_cdotproduct(&tmp.ptr.p_complex[i+1], 1, "N", &x->ptr.p_complex[i+1], 1, "N", ae_v_len(i+1,n-1));
                beta = ae_c_sub(x->ptr.p_complex[i],vc);
            }
            else
            {
                beta = x->ptr.p_complex[i];
            }
            
            /*
             * solve alpha*x[i] = beta
             */
            result = safesolve_cbasicsolveandupdate(alpha, beta, lnmax, nrmb, maxgrowth, &nrmx, &vc, _state);
            if( !result )
            {
                ae_frame_leave(_state);
                return result;
            }
            x->ptr.p_complex[i] = vc;
        }
        ae_frame_leave(_state);
        return result;
    }
    if( !isupper&&trans==0 )
    {
        
        /*
         * L*x = b
         */
        for(i=0; i<=n-1; i++)
        {
            
            /*
             * Task is reduced to alpha*x[i] = beta
             */
            if( isunit )
            {
                alpha = ae_complex_from_d(sa);
            }
            else
            {
                alpha = ae_c_mul_d(a->ptr.pp_complex[i][i],sa);
            }
            if( i>0 )
            {
                ae_v_cmoved(&tmp.ptr.p_complex[0], 1, &a->ptr.pp_complex[i][0], 1, "N", ae_v_len(0,i-1), sa);
                vc = ae_v_cdotproduct(&tmp.ptr.p_complex[0], 1, "N", &x->ptr.p_complex[0], 1, "N", ae_v_len(0,i-1));
                beta = ae_c_sub(x->ptr.p_complex[i],vc);
            }
            else
            {
                beta = x->ptr.p_complex[i];
            }
            
            /*
             * solve alpha*x[i] = beta
             */
            result = safesolve_cbasicsolveandupdate(alpha, beta, lnmax, nrmb, maxgrowth, &nrmx, &vc, _state);
            if( !result )
            {
                ae_frame_leave(_state);
                return result;
            }
            x->ptr.p_complex[i] = vc;
        }
        ae_frame_leave(_state);
        return result;
    }
    if( isupper&&trans==1 )
    {
        
        /*
         * U^T*x = b
         */
        for(i=0; i<=n-1; i++)
        {
            
            /*
             * Task is reduced to alpha*x[i] = beta
             */
            if( isunit )
            {
                alpha = ae_complex_from_d(sa);
            }
            else
            {
                alpha = ae_c_mul_d(a->ptr.pp_complex[i][i],sa);
            }
            beta = x->ptr.p_complex[i];
            
            /*
             * solve alpha*x[i] = beta
             */
            result = safesolve_cbasicsolveandupdate(alpha, beta, lnmax, nrmb, maxgrowth, &nrmx, &vc, _state);
            if( !result )
            {
                ae_frame_leave(_state);
                return result;
            }
            x->ptr.p_complex[i] = vc;
            
            /*
             * update the rest of right part
             */
            if( i<n-1 )
            {
                ae_v_cmoved(&tmp.ptr.p_complex[i+1], 1, &a->ptr.pp_complex[i][i+1], 1, "N", ae_v_len(i+1,n-1), sa);
                ae_v_csubc(&x->ptr.p_complex[i+1], 1, &tmp.ptr.p_complex[i+1], 1, "N", ae_v_len(i+1,n-1), vc);
            }
        }
        ae_frame_leave(_state);
        return result;
    }
    if( !isupper&&trans==1 )
    {
        
        /*
         * L^T*x = b
         */
        for(i=n-1; i>=0; i--)
        {
            
            /*
             * Task is reduced to alpha*x[i] = beta
             */
            if( isunit )
            {
                alpha = ae_complex_from_d(sa);
            }
            else
            {
                alpha = ae_c_mul_d(a->ptr.pp_complex[i][i],sa);
            }
            beta = x->ptr.p_complex[i];
            
            /*
             * solve alpha*x[i] = beta
             */
            result = safesolve_cbasicsolveandupdate(alpha, beta, lnmax, nrmb, maxgrowth, &nrmx, &vc, _state);
            if( !result )
            {
                ae_frame_leave(_state);
                return result;
            }
            x->ptr.p_complex[i] = vc;
            
            /*
             * update the rest of right part
             */
            if( i>0 )
            {
                ae_v_cmoved(&tmp.ptr.p_complex[0], 1, &a->ptr.pp_complex[i][0], 1, "N", ae_v_len(0,i-1), sa);
                ae_v_csubc(&x->ptr.p_complex[0], 1, &tmp.ptr.p_complex[0], 1, "N", ae_v_len(0,i-1), vc);
            }
        }
        ae_frame_leave(_state);
        return result;
    }
    if( isupper&&trans==2 )
    {
        
        /*
         * U^H*x = b
         */
        for(i=0; i<=n-1; i++)
        {
            
            /*
             * Task is reduced to alpha*x[i] = beta
             */
            if( isunit )
            {
                alpha = ae_complex_from_d(sa);
            }
            else
            {
                alpha = ae_c_mul_d(ae_c_conj(a->ptr.pp_complex[i][i], _state),sa);
            }
            beta = x->ptr.p_complex[i];
            
            /*
             * solve alpha*x[i] = beta
             */
            result = safesolve_cbasicsolveandupdate(alpha, beta, lnmax, nrmb, maxgrowth, &nrmx, &vc, _state);
            if( !result )
            {
                ae_frame_leave(_state);
                return result;
            }
            x->ptr.p_complex[i] = vc;
            
            /*
             * update the rest of right part
             */
            if( i<n-1 )
            {
                ae_v_cmoved(&tmp.ptr.p_complex[i+1], 1, &a->ptr.pp_complex[i][i+1], 1, "Conj", ae_v_len(i+1,n-1), sa);
                ae_v_csubc(&x->ptr.p_complex[i+1], 1, &tmp.ptr.p_complex[i+1], 1, "N", ae_v_len(i+1,n-1), vc);
            }
        }
        ae_frame_leave(_state);
        return result;
    }
    if( !isupper&&trans==2 )
    {
        
        /*
         * L^T*x = b
         */
        for(i=n-1; i>=0; i--)
        {
            
            /*
             * Task is reduced to alpha*x[i] = beta
             */
            if( isunit )
            {
                alpha = ae_complex_from_d(sa);
            }
            else
            {
                alpha = ae_c_mul_d(ae_c_conj(a->ptr.pp_complex[i][i], _state),sa);
            }
            beta = x->ptr.p_complex[i];
            
            /*
             * solve alpha*x[i] = beta
             */
            result = safesolve_cbasicsolveandupdate(alpha, beta, lnmax, nrmb, maxgrowth, &nrmx, &vc, _state);
            if( !result )
            {
                ae_frame_leave(_state);
                return result;
            }
            x->ptr.p_complex[i] = vc;
            
            /*
             * update the rest of right part
             */
            if( i>0 )
            {
                ae_v_cmoved(&tmp.ptr.p_complex[0], 1, &a->ptr.pp_complex[i][0], 1, "Conj", ae_v_len(0,i-1), sa);
                ae_v_csubc(&x->ptr.p_complex[0], 1, &tmp.ptr.p_complex[0], 1, "N", ae_v_len(0,i-1), vc);
            }
        }
        ae_frame_leave(_state);
        return result;
    }
    result = ae_false;
    ae_frame_leave(_state);
    return result;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movsd %xmm1, 0x60(%rsp)
movl %r9d, 0x1c(%rsp)
movq %r8, %r12
movl %ecx, %r13d
movq %rdx, %rbp
movq %rsi, %rbx
movsd %xmm0, 0x8(%rsp)
movq %rdi, 0x20(%rsp)
movq 0x100(%rsp), %r15
leaq 0xb0(%rsp), %rsi
movq %r15, %rdi
callq 0x23815
leaq 0x78(%rsp), %rdi
pushq $0x4
popq %rdx
pushq $0x1
popq %r8
xorl %esi, %esi
movq %r15, %rcx
callq 0x239a5
xorl %edi, %edi
testq %rbx, %rbx
setg %dil
leaq 0x15a3a(%rip), %rsi     # 0x330a8
movq %r15, %rdx
callq 0x238ca
xorl %edi, %edi
cmpq $0x3, %r12
setb %dil
leaq 0x15a42(%rip), %rsi     # 0x330c9
movq %r15, %rdx
callq 0x238ca
movsd 0x12fc9(%rip), %xmm0    # 0x30660
movq %r15, %rdi
callq 0x2455f
movsd %xmm0, 0x58(%rsp)
testq %rbx, %rbx
jle 0x1d8e6
xorps %xmm0, %xmm0
movsd %xmm0, 0x50(%rsp)
movq %rbx, %r14
pushq $0x8
popq %rbx
movq %r14, 0x38(%rsp)
subq $0x1, %r14
jb 0x1d6fc
movq 0x28(%rbp), %rax
movsd -0x8(%rax,%rbx), %xmm0
movsd (%rax,%rbx), %xmm1
movq %r15, %rdi
callq 0x2589c
movaps %xmm0, %xmm1
movsd 0x50(%rsp), %xmm0
movq %r15, %rdi
callq 0x244b6
movsd %xmm0, 0x50(%rsp)
addq $0x10, %rbx
jmp 0x1d6c2
testq %r12, %r12
setne %bl
movq 0x38(%rsp), %r14
movq %r15, %rdx
leaq -0x1(%r14), %r15
andq $0x0, 0x40(%rsp)
leaq 0x78(%rsp), %rdi
movq %r14, %rsi
callq 0x23add
movl %r13d, %eax
xorb $0x1, %al
orb %al, %bl
movq %rbp, 0x10(%rsp)
movq %r15, 0x68(%rsp)
jne 0x1d911
shlq $0x4, %r14
leaq 0x40(%rsp), %r12
movq %r15, %r13
movq %r14, %rbx
movq %r13, %rax
shrq $0x3f, %rax
testq %r13, %r13
movq %rax, 0x48(%rsp)
js 0x1d8ed
cmpb $0x0, 0x1c(%rsp)
je 0x1d770
movsd 0x8(%rsp), %xmm0
callq 0x25861
jmp 0x1d794
movq 0x20(%rsp), %rax
movq 0x38(%rax), %rax
movq (%rax,%r13,8), %rax
movsd -0x10(%rax,%rbx), %xmm0
movsd -0x8(%rax,%rbx), %xmm1
movsd 0x8(%rsp), %xmm2
callq 0x25ac9
cmpq %r15, %r13
jge 0x1d880
movq %r15, %r14
leaq 0x1(%r13), %rdi
movq %rdi, 0xa8(%rsp)
movq 0xa0(%rsp), %r15
addq %rbx, %r15
movq 0x20(%rsp), %rax
movq 0x38(%rax), %rax
movq (%rax,%r13,8), %r12
addq %rbx, %r12
movq %r14, %rsi
movsd %xmm0, 0x38(%rsp)
movsd %xmm1, 0x70(%rsp)
callq 0x26b4d
movq %r15, %rdi
pushq $0x1
popq %rcx
movq %rcx, %rsi
movq %r12, %rdx
leaq 0x16446(%rip), %r8      # 0x33c34
movq %rax, %r9
movsd 0x8(%rsp), %xmm0
callq 0x25eee
movq 0xa0(%rsp), %r15
addq %rbx, %r15
movq 0x28(%rbp), %r12
addq %rbx, %r12
movq 0xa8(%rsp), %rdi
movq %r14, %rsi
callq 0x26b4d
movq %rax, (%rsp)
movq %r15, %rdi
pushq $0x1
popq %rsi
leaq 0x16405(%rip), %rdx     # 0x33c34
movq %r12, %rcx
leaq 0x40(%rsp), %r12
movq %rsi, %r8
movq %rdx, %r9
callq 0x25b78
movaps %xmm0, %xmm2
movaps %xmm1, %xmm3
movsd %xmm0, 0x28(%rsp)
movsd %xmm1, 0x30(%rsp)
movq 0x28(%rbp), %rax
movsd -0x10(%rax,%rbx), %xmm0
movq %rbx, %r15
movsd -0x8(%rax,%rbx), %xmm1
callq 0x259a2
movaps %xmm0, %xmm2
movsd 0x38(%rsp), %xmm0
movaps %xmm1, %xmm3
movsd 0x70(%rsp), %xmm1
jmp 0x1d893
movq 0x28(%rbp), %rax
movsd -0x10(%rax,%rbx), %xmm2
movq %rbx, %r15
movsd -0x8(%rax,%rbx), %xmm3
movsd 0x58(%rsp), %xmm4
movsd 0x50(%rsp), %xmm5
movsd 0x60(%rsp), %xmm6
movq %r12, %rdi
leaq 0x28(%rsp), %rsi
movq 0x100(%rsp), %rdx
callq 0x1d4c5
testb %al, %al
je 0x1d8ed
movq 0x10(%rsp), %rbp
movq 0x28(%rbp), %rax
movups 0x28(%rsp), %xmm0
movq %r15, %rbx
movups %xmm0, -0x10(%rax,%r15)
decq %r13
addq $-0x10, %rbx
movq 0x68(%rsp), %r15
jmp 0x1d747
movb $0x1, %al
movq %rax, 0x48(%rsp)
movq 0x100(%rsp), %rdi
callq 0x237b6
movq 0x48(%rsp), %rax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testq %r12, %r12
setne %cl
orb %r13b, %cl
jne 0x1dab0
movq 0x38(%rsp), %rbx
negq %rbx
pushq $-0x1
popq %r12
xorl %r13d, %r13d
movq %rbx, 0x38(%rsp)
leaq (%rbx,%r12), %rax
cmpq $-0x1, %rax
sete %r14b
movq %r14, 0x48(%rsp)
je 0x1d8ed
cmpb $0x0, 0x1c(%rsp)
je 0x1d95b
movsd 0x8(%rsp), %xmm0
callq 0x25861
jmp 0x1d981
movq 0x20(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax,%r12,8), %rax
movsd (%rax,%r13), %xmm0
movsd 0x8(%rax,%r13), %xmm1
movsd 0x8(%rsp), %xmm2
callq 0x25ac9
movq %r12, %r15
incq %r15
jne 0x1d99b
movq 0x28(%rbp), %rax
movsd (%rax), %xmm2
movsd 0x8(%rax), %xmm3
jmp 0x1da5b
movq 0xa0(%rsp), %rbx
movq 0x20(%rsp), %rax
movq 0x38(%rax), %rax
movq (%rax,%r15,8), %rbp
xorl %edi, %edi
movq %r12, %rsi
movsd %xmm0, 0x68(%rsp)
movsd %xmm1, 0x70(%rsp)
callq 0x26b4d
movq %rbx, %rdi
pushq $0x1
popq %rcx
movq %rcx, %rsi
movq %rbp, %rdx
leaq 0x1625b(%rip), %r8      # 0x33c34
movq %rax, %r9
movsd 0x8(%rsp), %xmm0
callq 0x25eee
movq 0xa0(%rsp), %rbx
movq 0x10(%rsp), %r14
movq 0x28(%r14), %rbp
xorl %edi, %edi
movq %r12, %rsi
callq 0x26b4d
movq %rax, (%rsp)
movq %rbx, %rdi
pushq $0x1
popq %rsi
leaq 0x16221(%rip), %rdx     # 0x33c34
movq %rbp, %rcx
movq %rsi, %r8
movq %rdx, %r9
callq 0x25b78
movaps %xmm0, %xmm2
movaps %xmm1, %xmm3
movsd %xmm0, 0x28(%rsp)
movsd %xmm1, 0x30(%rsp)
movq 0x28(%r14), %rax
movsd (%rax,%r13), %xmm0
movsd 0x8(%rax,%r13), %xmm1
callq 0x259a2
movaps %xmm0, %xmm2
movsd 0x68(%rsp), %xmm0
movaps %xmm1, %xmm3
movsd 0x70(%rsp), %xmm1
movsd 0x58(%rsp), %xmm4
movsd 0x50(%rsp), %xmm5
movsd 0x60(%rsp), %xmm6
leaq 0x40(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movq 0x100(%rsp), %rdx
callq 0x1d4c5
testb %al, %al
je 0x1d8ed
movq 0x10(%rsp), %rbp
movq 0x28(%rbp), %rax
movups 0x28(%rsp), %xmm0
movups %xmm0, (%rax,%r13)
addq $0x10, %r13
movq %r15, %r12
movq 0x38(%rsp), %rbx
jmp 0x1d934
cmpq $0x1, %r12
setne %cl
orb %al, %cl
movq 0x38(%rsp), %rbx
jne 0x1dc3e
xorl %r15d, %r15d
leaq 0x40(%rsp), %r12
leaq 0x28(%rsp), %r13
movq 0x68(%rsp), %r14
cmpq %rbx, %r15
sete %al
movq %rax, 0x48(%rsp)
je 0x1d8ed
cmpb $0x0, 0x1c(%rsp)
je 0x1dafb
movsd 0x8(%rsp), %xmm0
callq 0x25861
jmp 0x1db25
movq 0x20(%rsp), %rax
movq 0x38(%rax), %rax
movq (%rax,%r15,8), %rax
movq %r15, %rcx
shlq $0x4, %rcx
movsd (%rax,%rcx), %xmm0
movsd 0x8(%rax,%rcx), %xmm1
movsd 0x8(%rsp), %xmm2
callq 0x25ac9
movq 0x28(%rbp), %rax
movq %r15, %rbx
shlq $0x4, %rbx
movsd (%rax,%rbx), %xmm2
movsd 0x8(%rax,%rbx), %xmm3
movsd 0x58(%rsp), %xmm4
movsd 0x50(%rsp), %xmm5
movsd 0x60(%rsp), %xmm6
movq %r12, %rdi
movq %r13, %rsi
movq 0x100(%rsp), %rdx
callq 0x1d4c5
testb %al, %al
je 0x1d8ed
movq 0x10(%rsp), %rbp
movq 0x28(%rbp), %rax
movups 0x28(%rsp), %xmm0
movups %xmm0, (%rax,%rbx)
cmpq %r14, %r15
jge 0x1dc31
leaq 0x1(%r15), %r12
movq %r12, %r13
shlq $0x4, %r13
movq 0xa0(%rsp), %rbx
addq %r13, %rbx
movq 0x20(%rsp), %rax
movq 0x38(%rax), %rax
movq (%rax,%r15,8), %rbp
addq %r13, %rbp
movq %r12, %rdi
movq %r14, %rsi
callq 0x26b4d
movq %rbx, %rdi
pushq $0x1
popq %rcx
movq %rcx, %rsi
movq %rbp, %rdx
movq 0x10(%rsp), %rbp
leaq 0x16068(%rip), %r15     # 0x33c34
movq %r15, %r8
movq %rax, %r9
movsd 0x8(%rsp), %xmm0
callq 0x25eee
movq 0x28(%rbp), %rbx
addq %r13, %rbx
addq 0xa0(%rsp), %r13
movq %r12, %rdi
movq %r14, %rsi
callq 0x26b4d
movsd 0x28(%rsp), %xmm0
movsd 0x30(%rsp), %xmm1
movq %rbx, %rdi
pushq $0x1
popq %rcx
movq %rcx, %rsi
movq %r13, %rdx
leaq 0x28(%rsp), %r13
movq %r15, %r8
movq %rax, %r9
callq 0x265a9
movq %r12, %r15
leaq 0x40(%rsp), %r12
movq 0x38(%rsp), %rbx
jmp 0x1dad6
incq %r15
movq 0x38(%rsp), %rbx
jmp 0x1dad6
cmpq $0x1, %r12
setne %dl
movl %eax, %ecx
xorb $0x1, %cl
orb %cl, %dl
jne 0x1dda9
shlq $0x4, %rbx
movq %r15, %rax
shrq $0x3f, %rax
testq %r15, %r15
movq %rax, 0x48(%rsp)
js 0x1d8ed
cmpb $0x0, 0x1c(%rsp)
je 0x1dc82
movq %r15, %r14
movsd 0x8(%rsp), %xmm0
callq 0x25861
jmp 0x1dca9
movq 0x20(%rsp), %rax
movq 0x38(%rax), %rax
movq %r15, %r14
movq (%rax,%r15,8), %rax
movsd -0x10(%rax,%rbx), %xmm0
movsd -0x8(%rax,%rbx), %xmm1
movsd 0x8(%rsp), %xmm2
callq 0x25ac9
movq 0x28(%rbp), %rax
movsd -0x10(%rax,%rbx), %xmm2
movq %rbx, %r12
movsd -0x8(%rax,%rbx), %xmm3
movsd 0x58(%rsp), %xmm4
movsd 0x50(%rsp), %xmm5
movsd 0x60(%rsp), %xmm6
leaq 0x40(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movq 0x100(%rsp), %rdx
callq 0x1d4c5
testb %al, %al
je 0x1d8ed
movq 0x10(%rsp), %rbp
movq 0x28(%rbp), %rax
movups 0x28(%rsp), %xmm0
movq %r12, %rbx
movups %xmm0, -0x10(%rax,%r12)
testq %r14, %r14
je 0x1dd9a
movq 0xa0(%rsp), %rbx
movq 0x20(%rsp), %rax
movq 0x38(%rax), %rax
movq (%rax,%r14,8), %r13
leaq -0x1(%r14), %rbp
xorl %edi, %edi
movq %rbp, %rsi
callq 0x26b4d
movq %rbx, %rdi
pushq $0x1
popq %rcx
movq %rcx, %rsi
movq %r13, %rdx
leaq 0x15ef1(%rip), %r15     # 0x33c34
movq %r15, %r8
movq %rax, %r9
movsd 0x8(%rsp), %xmm0
callq 0x25eee
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rbx
movq 0xa0(%rsp), %r13
xorl %edi, %edi
movq %rbp, %rsi
movq 0x10(%rsp), %rbp
callq 0x26b4d
movsd 0x28(%rsp), %xmm0
movsd 0x30(%rsp), %xmm1
movq %rbx, %rdi
movq %r12, %rbx
pushq $0x1
popq %rcx
movq %rcx, %rsi
movq %r13, %rdx
movq %r15, %r8
movq %rax, %r9
callq 0x265a9
decq %r14
addq $-0x10, %rbx
movq %r14, %r15
jmp 0x1dc56
cmpq $0x2, %r12
setne %dl
orb %al, %dl
jne 0x1df40
xorl %ebp, %ebp
leaq 0x40(%rsp), %r12
leaq 0x28(%rsp), %r13
movq 0x100(%rsp), %r15
movq 0x10(%rsp), %r14
cmpq %rbx, %rbp
sete %al
movq %rax, 0x48(%rsp)
je 0x1d8ed
cmpb $0x0, 0x1c(%rsp)
je 0x1ddf6
movsd 0x8(%rsp), %xmm0
callq 0x25861
jmp 0x1de28
movq 0x20(%rsp), %rax
movq 0x38(%rax), %rax
movq (%rax,%rbp,8), %rax
movq %rbp, %rcx
shlq $0x4, %rcx
movsd (%rax,%rcx), %xmm0
movsd 0x8(%rax,%rcx), %xmm1
movq %r15, %rdi
callq 0x25873
movsd 0x8(%rsp), %xmm2
callq 0x25ac9
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rax
movq %rbp, %rbx
shlq $0x4, %rbx
movsd (%rax,%rbx), %xmm2
movsd 0x8(%rax,%rbx), %xmm3
movsd 0x58(%rsp), %xmm4
movsd 0x50(%rsp), %xmm5
movsd 0x60(%rsp), %xmm6
movq %r12, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x1d4c5
testb %al, %al
je 0x1d8ed
movq 0x28(%r14), %rax
movups 0x28(%rsp), %xmm0
movups %xmm0, (%rax,%rbx)
movq 0x68(%rsp), %r15
cmpq %r15, %rbp
jge 0x1df2b
leaq 0x1(%rbp), %r12
movq %r12, %r13
shlq $0x4, %r13
movq 0xa0(%rsp), %rbx
addq %r13, %rbx
movq 0x20(%rsp), %rax
movq 0x38(%rax), %rax
movq (%rax,%rbp,8), %rbp
addq %r13, %rbp
movq %r12, %rdi
movq %r15, %rsi
callq 0x26b4d
movq %rbx, %rdi
pushq $0x1
popq %rcx
movq %rcx, %rsi
movq %rbp, %rdx
movq %rcx, %rbp
leaq 0x15109(%rip), %r8      # 0x32fd6
movq %rax, %r9
movsd 0x8(%rsp), %xmm0
callq 0x25eee
movq 0x28(%r14), %rbx
addq %r13, %rbx
addq 0xa0(%rsp), %r13
movq %r12, %rdi
movq %r15, %rsi
callq 0x26b4d
movsd 0x28(%rsp), %xmm0
movsd 0x30(%rsp), %xmm1
movq %rbx, %rdi
movq %rbp, %rsi
movq %r13, %rdx
leaq 0x28(%rsp), %r13
movq %rbp, %rcx
leaq 0x15d1b(%rip), %r8      # 0x33c34
movq %rax, %r9
callq 0x265a9
movq %r12, %rbp
leaq 0x40(%rsp), %r12
jmp 0x1df2e
incq %rbp
movq 0x100(%rsp), %r15
movq 0x38(%rsp), %rbx
jmp 0x1ddd1
cmpq $0x2, %r12
setne %al
orb %cl, %al
jne 0x1e0be
shlq $0x4, %rbx
movq %r15, %rax
shrq $0x3f, %rax
testq %r15, %r15
movq %rax, 0x48(%rsp)
js 0x1d8ed
cmpb $0x0, 0x1c(%rsp)
je 0x1df87
movq %r15, %r14
movsd 0x8(%rsp), %xmm0
callq 0x25861
movq 0x100(%rsp), %r15
jmp 0x1dfbe
movq 0x20(%rsp), %rax
movq 0x38(%rax), %rax
movq %r15, %r14
movq (%rax,%r15,8), %rax
movsd -0x10(%rax,%rbx), %xmm0
movsd -0x8(%rax,%rbx), %xmm1
movq 0x100(%rsp), %r15
movq %r15, %rdi
callq 0x25873
movsd 0x8(%rsp), %xmm2
callq 0x25ac9
movq 0x28(%rbp), %rax
movsd -0x10(%rax,%rbx), %xmm2
movq %rbx, %r12
movsd -0x8(%rax,%rbx), %xmm3
movsd 0x58(%rsp), %xmm4
movsd 0x50(%rsp), %xmm5
movsd 0x60(%rsp), %xmm6
leaq 0x40(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movq %r15, %rdx
callq 0x1d4c5
testb %al, %al
je 0x1d8ed
movq 0x10(%rsp), %rbp
movq 0x28(%rbp), %rax
movups 0x28(%rsp), %xmm0
movq %r12, %rbx
movups %xmm0, -0x10(%rax,%r12)
testq %r14, %r14
je 0x1e0af
movq 0xa0(%rsp), %rbx
movq 0x20(%rsp), %rax
movq 0x38(%rax), %rax
movq (%rax,%r14,8), %r13
leaq -0x1(%r14), %rbp
xorl %edi, %edi
movq %rbp, %rsi
callq 0x26b4d
movq %rbx, %rdi
pushq $0x1
popq %r15
movq %r15, %rsi
movq %r13, %rdx
movq %r15, %rcx
leaq 0x14f7f(%rip), %r8      # 0x32fd6
movq %rax, %r9
movsd 0x8(%rsp), %xmm0
callq 0x25eee
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rbx
movq 0xa0(%rsp), %r13
xorl %edi, %edi
movq %rbp, %rsi
movq 0x10(%rsp), %rbp
callq 0x26b4d
movsd 0x28(%rsp), %xmm0
movsd 0x30(%rsp), %xmm1
movq %rbx, %rdi
movq %r12, %rbx
movq %r15, %rsi
movq %r13, %rdx
movq %r15, %rcx
leaq 0x15b8d(%rip), %r8      # 0x33c34
movq %rax, %r9
callq 0x265a9
decq %r14
addq $-0x10, %rbx
movq %r14, %r15
jmp 0x1df53
movq $0x0, 0x48(%rsp)
jmp 0x1d8ed