// File: /workspace/github_cpp_makefile_star2_O3/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, 0x70(%rsp)
movl %r9d, 0x2c(%rsp)
movq %r8, %r12
movl %ecx, %r15d
movq %rdx, %r14
movq %rsi, %rbx
movsd %xmm0, 0x18(%rsp)
movq %rdi, 0x30(%rsp)
movq 0x100(%rsp), %r13
leaq 0xb0(%rsp), %rsi
movq %r13, %rdi
callq 0x25055
leaq 0x78(%rsp), %rdi
movl $0x4, %edx
xorl %esi, %esi
movq %r13, %rcx
movl $0x1, %r8d
callq 0x251ec
xorl %edi, %edi
testq %rbx, %rbx
setg %dil
leaq 0x1744a(%rip), %rsi     # 0x360b8
movq %r13, %rdx
callq 0x2510e
xorl %edi, %edi
cmpq $0x3, %r12
setb %dil
leaq 0x17452(%rip), %rsi     # 0x360d9
movq %r13, %rdx
callq 0x2510e
movsd 0x149c9(%rip), %xmm0    # 0x33660
movq %r13, %rdi
callq 0x25f91
movsd %xmm0, 0x68(%rsp)
movq %rbx, 0x10(%rsp)
testq %rbx, %rbx
jle 0x1ef10
xorps %xmm0, %xmm0
movl $0x8, %ebx
movq %r13, %rbp
movq 0x10(%rsp), %r13
movsd %xmm0, 0x48(%rsp)
movq 0x28(%r14), %rax
movsd -0x8(%rax,%rbx), %xmm0
movsd (%rax,%rbx), %xmm1
movq %rbp, %rdi
callq 0x276fb
movaps %xmm0, %xmm1
movsd 0x48(%rsp), %xmm0
movq %rbp, %rdi
callq 0x25edc
addq $0x10, %rbx
decq %r13
jne 0x1ecc3
movq %r14, 0x58(%rsp)
movsd %xmm0, 0x48(%rsp)
testq %r12, %r12
setne %bl
movq 0x10(%rsp), %rsi
leaq -0x1(%rsi), %r14
movq $0x0, 0x50(%rsp)
leaq 0x78(%rsp), %rdi
movq %rbp, %rdx
callq 0x25326
movl %r15d, %eax
xorb $0x1, %al
orb %al, %bl
movq %rbp, %r13
movq %r14, 0x20(%rsp)
jne 0x1ef18
shlq $0x4, 0x10(%rsp)
leaq 0x50(%rsp), %r12
movq %r14, %rbx
cmpb $0x0, 0x2c(%rsp)
je 0x1ed61
movsd 0x18(%rsp), %xmm0
callq 0x276c0
jmp 0x1ed8a
movq 0x30(%rsp), %rax
movq 0x38(%rax), %rax
movq (%rax,%rbx,8), %rax
movq 0x10(%rsp), %rcx
movsd -0x10(%rax,%rcx), %xmm0
movsd -0x8(%rax,%rcx), %xmm1
movsd 0x18(%rsp), %xmm2
callq 0x2792b
movq 0x20(%rsp), %r14
cmpq %r14, %rbx
jge 0x1ee93
leaq 0x1(%rbx), %r13
movq 0xa0(%rsp), %rbp
movq 0x10(%rsp), %r15
addq %r15, %rbp
movq 0x30(%rsp), %rax
movq 0x38(%rax), %rax
movq (%rax,%rbx,8), %r12
addq %r15, %r12
movq %r13, %rdi
movq %r14, %rsi
movsd %xmm0, 0x60(%rsp)
movsd %xmm1, 0xa8(%rsp)
callq 0x2897c
movl $0x1, %esi
movl $0x1, %ecx
movq %rbp, %rdi
movq %r12, %rdx
movq %r15, %r14
leaq 0x17eb0(%rip), %r8      # 0x36ca0
movq %rax, %r9
movsd 0x18(%rsp), %xmm0
callq 0x27d63
movq 0xa0(%rsp), %r12
addq %r15, %r12
movq 0x58(%rsp), %r15
movq 0x28(%r15), %rbp
addq %r14, %rbp
movq %r13, %rdi
movq 0x100(%rsp), %r13
movq 0x20(%rsp), %rsi
callq 0x2897c
movq %rax, (%rsp)
movl $0x1, %esi
movl $0x1, %r8d
movq %r12, %rdi
leaq 0x50(%rsp), %r12
leaq 0x17e58(%rip), %rdx     # 0x36ca0
movq %rbp, %rcx
movq %rdx, %r9
callq 0x279da
movaps %xmm0, %xmm2
movaps %xmm1, %xmm3
movsd %xmm0, 0x38(%rsp)
movsd %xmm1, 0x40(%rsp)
movq 0x28(%r15), %rax
movsd -0x10(%rax,%r14), %xmm0
movsd -0x8(%rax,%r14), %xmm1
callq 0x27804
movaps %xmm0, %xmm2
movsd 0x60(%rsp), %xmm0
movaps %xmm1, %xmm3
movsd 0xa8(%rsp), %xmm1
jmp 0x1eead
movq 0x58(%rsp), %r15
movq 0x28(%r15), %rax
movq 0x10(%rsp), %rcx
movsd -0x10(%rax,%rcx), %xmm2
movsd -0x8(%rax,%rcx), %xmm3
movsd 0x48(%rsp), %xmm5
movsd 0x68(%rsp), %xmm4
movsd 0x70(%rsp), %xmm6
movq %r12, %rdi
leaq 0x38(%rsp), %rsi
movq %r13, %r14
movq %r13, %rdx
callq 0x1eac1
movl %eax, %ebp
testb %al, %al
je 0x1f0a7
movq 0x28(%r15), %rax
movups 0x38(%rsp), %xmm0
movq 0x10(%rsp), %rcx
movups %xmm0, -0x10(%rax,%rcx)
leaq -0x1(%rbx), %rax
addq $-0x10, %rcx
movq %rcx, 0x10(%rsp)
testq %rbx, %rbx
movq %rax, %rbx
movq %r14, %r13
jg 0x1ed4d
jmp 0x1f0aa
movb $0x1, %bpl
jmp 0x1f0aa
testq %r12, %r12
setne %cl
orb %r15b, %cl
jne 0x1f0c6
negq 0x10(%rsp)
movq $-0x1, %r12
xorl %ebx, %ebx
movq 0x58(%rsp), %r14
cmpb $0x0, 0x2c(%rsp)
je 0x1ef4e
movsd 0x18(%rsp), %xmm0
callq 0x276c0
jmp 0x1ef71
movq 0x30(%rsp), %rax
movq 0x38(%rax), %rax
movq (%rax,%rbx), %rax
movsd (%rax,%rbx,2), %xmm0
movsd 0x8(%rax,%rbx,2), %xmm1
movsd 0x18(%rsp), %xmm2
callq 0x2792b
testq %rbx, %rbx
je 0x1f045
movq 0xa0(%rsp), %rbp
movq 0x30(%rsp), %rax
movq 0x38(%rax), %rax
movq (%rax,%rbx), %r13
xorl %edi, %edi
movq %r12, %rsi
movsd %xmm0, 0x20(%rsp)
movsd %xmm1, 0x60(%rsp)
callq 0x2897c
movl $0x1, %esi
movl $0x1, %ecx
movq %rbp, %rdi
movq %r13, %rdx
leaq 0x17ce4(%rip), %r15     # 0x36ca0
movq %r15, %r8
movq %rax, %r9
movsd 0x18(%rsp), %xmm0
callq 0x27d63
movq 0xa0(%rsp), %r13
movq 0x28(%r14), %rbp
xorl %edi, %edi
movq %r12, %rsi
callq 0x2897c
movq %rax, (%rsp)
movl $0x1, %esi
movl $0x1, %r8d
movq %r13, %rdi
movq 0x100(%rsp), %r13
movq %r15, %rdx
movq %rbp, %rcx
movq %r15, %r9
callq 0x279da
movaps %xmm0, %xmm2
movaps %xmm1, %xmm3
movsd %xmm0, 0x38(%rsp)
movsd %xmm1, 0x40(%rsp)
movq 0x28(%r14), %rax
movsd (%rax,%rbx,2), %xmm0
movsd 0x8(%rax,%rbx,2), %xmm1
callq 0x27804
movaps %xmm0, %xmm2
movsd 0x20(%rsp), %xmm0
movaps %xmm1, %xmm3
movsd 0x60(%rsp), %xmm1
jmp 0x1f052
movq 0x28(%r14), %rax
movsd (%rax), %xmm2
movsd 0x8(%rax), %xmm3
movsd 0x68(%rsp), %xmm4
movsd 0x48(%rsp), %xmm5
movsd 0x70(%rsp), %xmm6
leaq 0x50(%rsp), %rdi
leaq 0x38(%rsp), %rsi
movq %r13, %rdx
callq 0x1eac1
movl %eax, %ebp
testb %al, %al
je 0x1f0aa
movq 0x28(%r14), %rax
movups 0x38(%rsp), %xmm0
movups %xmm0, (%rax,%rbx,2)
addq $0x8, %rbx
movq 0x10(%rsp), %rax
addq %r12, %rax
incq %rax
incq %r12
cmpq $-0x1, %rax
jne 0x1ef3a
jmp 0x1f0aa
movq %r14, %r13
movq %r13, %rdi
callq 0x24ff2
movl %ebp, %eax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpq $0x1, %r12
setne %cl
orb %al, %cl
movq 0x58(%rsp), %r14
jne 0x1f247
xorl %r12d, %r12d
leaq 0x50(%rsp), %r15
cmpb $0x0, 0x2c(%rsp)
je 0x1f0f6
movsd 0x18(%rsp), %xmm0
callq 0x276c0
jmp 0x1f120
movq 0x30(%rsp), %rax
movq 0x38(%rax), %rax
movq (%rax,%r12,8), %rax
movq %r12, %rcx
shlq $0x4, %rcx
movsd (%rax,%rcx), %xmm0
movsd 0x8(%rax,%rcx), %xmm1
movsd 0x18(%rsp), %xmm2
callq 0x2792b
movq 0x28(%r14), %rax
movq %r12, %rbx
shlq $0x4, %rbx
movsd (%rax,%rbx), %xmm2
movsd 0x8(%rax,%rbx), %xmm3
movsd 0x68(%rsp), %xmm4
movsd 0x48(%rsp), %xmm5
movsd 0x70(%rsp), %xmm6
movq %r15, %rdi
leaq 0x38(%rsp), %rsi
movq %r13, %rdx
callq 0x1eac1
movl %eax, %ebp
testb %al, %al
je 0x1f0aa
movq 0x28(%r14), %rax
movups 0x38(%rsp), %xmm0
movups %xmm0, (%rax,%rbx)
movq 0x20(%rsp), %r14
cmpq %r14, %r12
jge 0x1f22f
leaq 0x1(%r12), %r15
movq %r15, %r13
shlq $0x4, %r13
movq 0xa0(%rsp), %rbx
addq %r13, %rbx
movq 0x30(%rsp), %rax
movq 0x38(%rax), %rax
movq (%rax,%r12,8), %r12
addq %r13, %r12
movq %r15, %rdi
movq %r14, %rsi
callq 0x2897c
movl $0x1, %esi
movl $0x1, %ecx
movq %rbx, %rdi
movq %r12, %rdx
leaq 0x17ada(%rip), %r12     # 0x36ca0
movq %r12, %r8
movq %rax, %r9
movsd 0x18(%rsp), %xmm0
callq 0x27d63
movq 0x58(%rsp), %rax
movq 0x28(%rax), %rbx
addq %r13, %rbx
addq 0xa0(%rsp), %r13
movq %r15, %rdi
movq %r14, %rsi
callq 0x2897c
movsd 0x38(%rsp), %xmm0
movsd 0x40(%rsp), %xmm1
movl $0x1, %esi
movl $0x1, %ecx
movq %rbx, %rdi
movq %r13, %rdx
movq 0x100(%rsp), %r13
movq %r12, %r8
movq %rax, %r9
callq 0x2842b
movq %r15, %r12
leaq 0x50(%rsp), %r15
jmp 0x1f232
incq %r12
cmpq 0x10(%rsp), %r12
movq 0x58(%rsp), %r14
jne 0x1f0e2
jmp 0x1f0aa
cmpq $0x1, %r12
setne %dl
movl %eax, %ecx
xorb $0x1, %cl
orb %cl, %dl
jne 0x1f3cb
shlq $0x3, 0x10(%rsp)
cmpb $0x0, 0x2c(%rsp)
je 0x1f275
movsd 0x18(%rsp), %xmm0
callq 0x276c0
jmp 0x1f29f
movq 0x30(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x10(%rsp), %rcx
movq -0x8(%rax,%rcx), %rax
movsd -0x10(%rax,%rcx,2), %xmm0
movsd -0x8(%rax,%rcx,2), %xmm1
movsd 0x18(%rsp), %xmm2
callq 0x2792b
movq 0x28(%r14), %rax
movq 0x10(%rsp), %rcx
movsd -0x10(%rax,%rcx,2), %xmm2
movsd -0x8(%rax,%rcx,2), %xmm3
movsd 0x68(%rsp), %xmm4
movsd 0x48(%rsp), %xmm5
movsd 0x70(%rsp), %xmm6
leaq 0x50(%rsp), %rdi
leaq 0x38(%rsp), %rsi
movq %r13, %rdx
callq 0x1eac1
movl %eax, %ebp
testb %al, %al
je 0x1f0aa
movq 0x28(%r14), %rax
movups 0x38(%rsp), %xmm0
movq 0x10(%rsp), %rcx
movups %xmm0, -0x10(%rax,%rcx,2)
movq %r14, %rbx
movq 0x20(%rsp), %r14
testq %r14, %r14
je 0x1f0aa
movq 0xa0(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x30(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x10(%rsp), %r15
movq -0x8(%rax,%r15), %r12
leaq -0x1(%r14), %r13
xorl %edi, %edi
movq %r14, 0x20(%rsp)
movq %r13, %rsi
callq 0x2897c
movl $0x1, %esi
movl $0x1, %ecx
movq 0x60(%rsp), %rdi
movq %r12, %rdx
leaq 0x1794e(%rip), %r8      # 0x36ca0
movq %rax, %r9
movsd 0x18(%rsp), %xmm0
callq 0x27d63
movq 0x28(%rbx), %r14
movq 0xa0(%rsp), %r12
xorl %edi, %edi
movq %r13, %rsi
callq 0x2897c
movsd 0x38(%rsp), %xmm0
movsd 0x40(%rsp), %xmm1
movl $0x1, %esi
movl $0x1, %ecx
movq %r14, %rdi
movq %r12, %rdx
leaq 0x17907(%rip), %r8      # 0x36ca0
movq %rax, %r9
callq 0x2842b
addq $-0x8, %r15
movq %r15, 0x10(%rsp)
cmpq $0x0, 0x20(%rsp)
movq %r13, 0x20(%rsp)
movq 0x100(%rsp), %r13
movq %rbx, %r14
jg 0x1f261
jmp 0x1f0aa
cmpq $0x2, %r12
setne %dl
orb %al, %dl
jne 0x1f550
xorl %r12d, %r12d
leaq 0x50(%rsp), %r15
cmpb $0x0, 0x2c(%rsp)
je 0x1f3f6
movsd 0x18(%rsp), %xmm0
callq 0x276c0
jmp 0x1f428
movq 0x30(%rsp), %rax
movq 0x38(%rax), %rax
movq (%rax,%r12,8), %rax
movq %r12, %rcx
shlq $0x4, %rcx
movsd (%rax,%rcx), %xmm0
movsd 0x8(%rax,%rcx), %xmm1
movq %r13, %rdi
callq 0x276d2
movsd 0x18(%rsp), %xmm2
callq 0x2792b
movq 0x28(%r14), %rax
movq %r12, %rbx
shlq $0x4, %rbx
movsd (%rax,%rbx), %xmm2
movsd 0x8(%rax,%rbx), %xmm3
movsd 0x68(%rsp), %xmm4
movsd 0x48(%rsp), %xmm5
movsd 0x70(%rsp), %xmm6
movq %r15, %rdi
leaq 0x38(%rsp), %rsi
movq %r13, %rdx
callq 0x1eac1
movl %eax, %ebp
testb %al, %al
je 0x1f0aa
movq 0x28(%r14), %rax
movups 0x38(%rsp), %xmm0
movups %xmm0, (%rax,%rbx)
movq 0x20(%rsp), %r14
cmpq %r14, %r12
jge 0x1f538
leaq 0x1(%r12), %r15
movq %r15, %r13
shlq $0x4, %r13
movq 0xa0(%rsp), %rbx
addq %r13, %rbx
movq 0x30(%rsp), %rax
movq 0x38(%rax), %rax
movq (%rax,%r12,8), %r12
addq %r13, %r12
movq %r15, %rdi
movq %r14, %rsi
callq 0x2897c
movl $0x1, %esi
movl $0x1, %ecx
movq %rbx, %rdi
movq %r12, %rdx
leaq 0x16b18(%rip), %r8      # 0x35fe6
movq %rax, %r9
movsd 0x18(%rsp), %xmm0
callq 0x27d63
movq 0x58(%rsp), %rax
movq 0x28(%rax), %rbx
addq %r13, %rbx
addq 0xa0(%rsp), %r13
movq %r15, %rdi
movq %r14, %rsi
callq 0x2897c
movsd 0x38(%rsp), %xmm0
movsd 0x40(%rsp), %xmm1
movl $0x1, %esi
movl $0x1, %ecx
movq %rbx, %rdi
movq %r13, %rdx
movq 0x100(%rsp), %r13
leaq 0x1777a(%rip), %r8      # 0x36ca0
movq %rax, %r9
callq 0x2842b
movq %r15, %r12
leaq 0x50(%rsp), %r15
jmp 0x1f53b
incq %r12
cmpq 0x10(%rsp), %r12
movq 0x58(%rsp), %r14
jne 0x1f3e2
jmp 0x1f0aa
cmpq $0x2, %r12
setne %al
orb %cl, %al
jne 0x1f6d7
shlq $0x3, 0x10(%rsp)
cmpb $0x0, 0x2c(%rsp)
je 0x1f579
movsd 0x18(%rsp), %xmm0
callq 0x276c0
jmp 0x1f5ab
movq 0x30(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x10(%rsp), %rcx
movq -0x8(%rax,%rcx), %rax
movsd -0x10(%rax,%rcx,2), %xmm0
movsd -0x8(%rax,%rcx,2), %xmm1
movq %r13, %rdi
callq 0x276d2
movsd 0x18(%rsp), %xmm2
callq 0x2792b
movq 0x28(%r14), %rax
movq 0x10(%rsp), %rcx
movsd -0x10(%rax,%rcx,2), %xmm2
movsd -0x8(%rax,%rcx,2), %xmm3
movsd 0x68(%rsp), %xmm4
movsd 0x48(%rsp), %xmm5
movsd 0x70(%rsp), %xmm6
leaq 0x50(%rsp), %rdi
leaq 0x38(%rsp), %rsi
movq %r13, %rdx
callq 0x1eac1
movl %eax, %ebp
testb %al, %al
je 0x1f0aa
movq 0x28(%r14), %rax
movups 0x38(%rsp), %xmm0
movq 0x10(%rsp), %rcx
movups %xmm0, -0x10(%rax,%rcx,2)
movq %r14, %rbx
movq 0x20(%rsp), %r14
testq %r14, %r14
je 0x1f0aa
movq 0xa0(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x30(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x10(%rsp), %r15
movq -0x8(%rax,%r15), %r12
leaq -0x1(%r14), %r13
xorl %edi, %edi
movq %r14, 0x20(%rsp)
movq %r13, %rsi
callq 0x2897c
movl $0x1, %esi
movl $0x1, %ecx
movq 0x60(%rsp), %rdi
movq %r12, %rdx
leaq 0x16988(%rip), %r8      # 0x35fe6
movq %rax, %r9
movsd 0x18(%rsp), %xmm0
callq 0x27d63
movq 0x28(%rbx), %r14
movq 0xa0(%rsp), %r12
xorl %edi, %edi
movq %r13, %rsi
callq 0x2897c
movsd 0x38(%rsp), %xmm0
movsd 0x40(%rsp), %xmm1
movl $0x1, %esi
movl $0x1, %ecx
movq %r14, %rdi
movq %r12, %rdx
leaq 0x175fb(%rip), %r8      # 0x36ca0
movq %rax, %r9
callq 0x2842b
addq $-0x8, %r15
movq %r15, 0x10(%rsp)
cmpq $0x0, 0x20(%rsp)
movq %r13, 0x20(%rsp)
movq 0x100(%rsp), %r13
movq %rbx, %r14
jg 0x1f565
jmp 0x1f0aa
xorl %ebp, %ebp
jmp 0x1f0aa