// File: /workspace/github_cpp_makefile_star2_O1/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, 0x34(%rsp)
movq %r8, %r14
movl %ecx, %ebp
movq %rdx, 0x10(%rsp)
movq %rsi, %r15
movsd %xmm0, 0x20(%rsp)
movq %rdi, 0x38(%rsp)
movq 0x100(%rsp), %rbx
leaq 0xb0(%rsp), %rsi
movq %rbx, %rdi
callq 0x2575d
leaq 0x78(%rsp), %rdi
movl $0x4, %edx
xorl %esi, %esi
movq %rbx, %rcx
movl $0x1, %r8d
callq 0x25900
xorl %edi, %edi
testq %r15, %r15
setg %dil
leaq 0x17cbb(%rip), %rsi     # 0x36f30
movq %rbx, %rdx
callq 0x2581c
xorl %edi, %edi
cmpq $0x3, %r14
setb %dil
leaq 0x17cc3(%rip), %rsi     # 0x36f51
movq %rbx, %rdx
callq 0x2581c
movsd 0x1539a(%rip), %xmm0    # 0x34638
movq %rbx, %rdi
callq 0x266d6
movsd %xmm0, 0x68(%rsp)
testq %r15, %r15
jle 0x1f502
movl %ebp, 0x28(%rsp)
xorps %xmm0, %xmm0
movl $0x8, %ebx
movq %r15, %r13
movq 0x100(%rsp), %rbp
movsd %xmm0, 0x58(%rsp)
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rax
movsd -0x8(%rax,%rbx), %xmm0
movsd (%rax,%rbx), %xmm1
movq %rbp, %rdi
callq 0x27ea6
movaps %xmm0, %xmm1
movsd 0x58(%rsp), %xmm0
movq %rbp, %rdi
callq 0x26621
addq $0x10, %rbx
decq %r13
jne 0x1f2cc
movsd %xmm0, 0x58(%rsp)
testq %r14, %r14
setne %bl
leaq -0x1(%r15), %r12
movq $0x0, 0x50(%rsp)
leaq 0x78(%rsp), %rdi
movq %r15, %rsi
movq %rbp, %rdx
callq 0x25a42
movl 0x28(%rsp), %edx
movl %edx, %eax
xorb $0x1, %al
orb %al, %bl
movq %r12, 0x18(%rsp)
jne 0x1f50a
shlq $0x4, %r15
movq %r12, %r13
movq 0x100(%rsp), %rbx
cmpb $0x0, 0x34(%rsp)
je 0x1f369
movsd 0x20(%rsp), %xmm0
callq 0x27e6b
jmp 0x1f38f
movq 0x38(%rsp), %rax
movq 0x38(%rax), %rax
movq (%rax,%r13,8), %rax
movsd -0x10(%rax,%r15), %xmm0
movsd -0x8(%rax,%r15), %xmm1
movsd 0x20(%rsp), %xmm2
callq 0x280dd
cmpq %r12, %r13
jge 0x1f490
leaq 0x1(%r13), %rdi
movq %rdi, 0xa8(%rsp)
movq 0xa0(%rsp), %r12
addq %r15, %r12
movq 0x38(%rsp), %rax
movq 0x38(%rax), %rax
movq (%rax,%r13,8), %rbx
addq %r15, %rbx
movq 0x18(%rsp), %rsi
movsd %xmm0, 0x28(%rsp)
movsd %xmm1, 0x60(%rsp)
callq 0x2923f
movl $0x1, %esi
movl $0x1, %ecx
movq %r12, %rdi
movq %rbx, %rdx
movq 0x10(%rsp), %rbp
leaq 0x186d3(%rip), %r14     # 0x37ac4
movq %r14, %r8
movq %rax, %r9
movsd 0x20(%rsp), %xmm0
callq 0x2852a
movq 0xa0(%rsp), %rbx
addq %r15, %rbx
movq 0x28(%rbp), %r12
addq %r15, %r12
movq 0xa8(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0x2923f
movq %rax, (%rsp)
movl $0x1, %esi
movl $0x1, %r8d
movq %rbx, %rdi
movq 0x100(%rsp), %rbx
movq %r14, %rdx
movq %r12, %rcx
movq 0x18(%rsp), %r12
movq %r14, %r9
callq 0x28174
movaps %xmm0, %xmm2
movaps %xmm1, %xmm3
movsd %xmm0, 0x40(%rsp)
movsd %xmm1, 0x48(%rsp)
movq 0x28(%rbp), %rax
movsd -0x10(%rax,%r15), %xmm0
movsd -0x8(%rax,%r15), %xmm1
callq 0x27fba
movaps %xmm0, %xmm2
movsd 0x28(%rsp), %xmm0
movaps %xmm1, %xmm3
movsd 0x60(%rsp), %xmm1
jmp 0x1f4a7
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rax
movsd -0x10(%rax,%r15), %xmm2
movsd -0x8(%rax,%r15), %xmm3
movsd 0x58(%rsp), %xmm5
movsd 0x68(%rsp), %xmm4
movsd 0x70(%rsp), %xmm6
leaq 0x50(%rsp), %rdi
leaq 0x40(%rsp), %rsi
movq %rbx, %rdx
callq 0x1f0c7
testb %al, %al
je 0x1fd00
movl %eax, %ebp
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rax
movups 0x40(%rsp), %xmm0
movups %xmm0, -0x10(%rax,%r15)
leaq -0x1(%r13), %rax
addq $-0x10, %r15
testq %r13, %r13
movq %rax, %r13
jg 0x1f355
jmp 0x1fd02
movb $0x1, %bpl
jmp 0x1fd02
testq %r14, %r14
setne %cl
orb %dl, %cl
jne 0x1f6b6
negq %r15
movq $-0x1, %r12
xorl %r13d, %r13d
movq 0x100(%rsp), %rbx
movq 0x10(%rsp), %r14
cmpb $0x0, 0x34(%rsp)
je 0x1f546
movsd 0x20(%rsp), %xmm0
callq 0x27e6b
jmp 0x1f56b
movq 0x38(%rsp), %rax
movq 0x38(%rax), %rax
movq (%rax,%r13), %rax
movsd (%rax,%r13,2), %xmm0
movsd 0x8(%rax,%r13,2), %xmm1
movsd 0x20(%rsp), %xmm2
callq 0x280dd
testq %r13, %r13
je 0x1f642
movq 0xa0(%rsp), %rbx
movq 0x38(%rsp), %rax
movq 0x38(%rax), %rax
movq (%rax,%r13), %rbp
xorl %edi, %edi
movq %r12, %rsi
movsd %xmm0, 0x18(%rsp)
movsd %xmm1, 0x28(%rsp)
callq 0x2923f
movl $0x1, %esi
movl $0x1, %ecx
movq %rbx, %rdi
movq %rbp, %rdx
leaq 0x1850e(%rip), %r8      # 0x37ac4
movq %rax, %r9
movsd 0x20(%rsp), %xmm0
callq 0x2852a
movq 0xa0(%rsp), %rbx
movq 0x28(%r14), %rbp
xorl %edi, %edi
movq %r12, %rsi
callq 0x2923f
movq %rax, (%rsp)
movl $0x1, %esi
movl $0x1, %r8d
movq %rbx, %rdi
movq 0x100(%rsp), %rbx
leaq 0x184c9(%rip), %rdx     # 0x37ac4
movq %rbp, %rcx
movq %rdx, %r9
callq 0x28174
movaps %xmm0, %xmm2
movaps %xmm1, %xmm3
movsd %xmm0, 0x40(%rsp)
movsd %xmm1, 0x48(%rsp)
movq 0x28(%r14), %rax
movsd (%rax,%r13,2), %xmm0
movsd 0x8(%rax,%r13,2), %xmm1
callq 0x27fba
movaps %xmm0, %xmm2
movsd 0x18(%rsp), %xmm0
movaps %xmm1, %xmm3
movsd 0x28(%rsp), %xmm1
jmp 0x1f658
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rax
movsd (%rax,%r13,2), %xmm2
movsd 0x8(%rax,%r13,2), %xmm3
movsd 0x68(%rsp), %xmm4
movsd 0x58(%rsp), %xmm5
movsd 0x70(%rsp), %xmm6
leaq 0x50(%rsp), %rdi
leaq 0x40(%rsp), %rsi
movq %rbx, %rdx
callq 0x1f0c7
testb %al, %al
je 0x1fd00
movl %eax, %ebp
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rax
movups 0x40(%rsp), %xmm0
movups %xmm0, (%rax,%r13,2)
addq $0x8, %r13
leaq (%r15,%r12), %rax
incq %rax
incq %r12
cmpq $-0x1, %rax
jne 0x1f532
jmp 0x1fd02
cmpq $0x1, %r14
setne %cl
orb %al, %cl
movq 0x100(%rsp), %rbx
jne 0x1f854
xorl %r12d, %r12d
leaq 0x50(%rsp), %r14
xorl %r13d, %r13d
cmpb $0x0, 0x34(%rsp)
je 0x1f6ec
movsd 0x20(%rsp), %xmm0
callq 0x27e6b
jmp 0x1f711
movq 0x38(%rsp), %rax
movq 0x38(%rax), %rax
movq (%rax,%r13,8), %rax
movsd (%rax,%r12), %xmm0
movsd 0x8(%rax,%r12), %xmm1
movsd 0x20(%rsp), %xmm2
callq 0x280dd
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rax
movsd (%rax,%r12), %xmm2
movsd 0x8(%rax,%r12), %xmm3
movsd 0x68(%rsp), %xmm4
movsd 0x58(%rsp), %xmm5
movsd 0x70(%rsp), %xmm6
movq %r14, %rdi
leaq 0x40(%rsp), %rsi
movq %rbx, %rdx
callq 0x1f0c7
testb %al, %al
je 0x1fd00
movl %eax, %ebp
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rax
movups 0x40(%rsp), %xmm0
movups %xmm0, (%rax,%r12)
cmpq 0x18(%rsp), %r13
jge 0x1f83f
movq 0xa0(%rsp), %rax
leaq 0x1(%r13), %rbx
leaq (%rax,%r12), %r14
addq $0x10, %r14
movq 0x38(%rsp), %rax
movq 0x38(%rax), %rax
movq (%rax,%r13,8), %rax
leaq 0x10(%rax,%r12), %rax
movq %rax, 0x28(%rsp)
movq %rbx, %rdi
movq 0x18(%rsp), %rsi
callq 0x2923f
movl $0x1, %esi
movl $0x1, %ecx
movq %r14, %rdi
movq 0x28(%rsp), %rdx
leaq 0x18302(%rip), %r14     # 0x37ac4
movq %r14, %r8
movq %rax, %r9
movsd 0x20(%rsp), %xmm0
callq 0x2852a
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rax
addq %r12, %rax
addq $0x10, %rax
movq %rax, 0x28(%rsp)
movq 0xa0(%rsp), %rax
leaq 0x10(%rax,%r12), %rax
movq %rax, 0x60(%rsp)
movq %rbx, %rdi
movq 0x100(%rsp), %rbx
movq 0x18(%rsp), %rsi
callq 0x2923f
movsd 0x40(%rsp), %xmm0
movsd 0x48(%rsp), %xmm1
movl $0x1, %esi
movl $0x1, %ecx
movq 0x28(%rsp), %rdi
movq 0x60(%rsp), %rdx
movq %r14, %r8
leaq 0x50(%rsp), %r14
movq %rax, %r9
callq 0x28cd6
incq %r13
addq $0x10, %r12
cmpq %r13, %r15
jne 0x1f6d8
jmp 0x1fd02
cmpq $0x1, %r14
setne %dl
movl %eax, %ecx
xorb $0x1, %cl
orb %cl, %dl
jne 0x1f9cd
movq %r15, %rbx
shlq $0x4, %rbx
leaq 0x50(%rsp), %r14
leaq 0x40(%rsp), %r12
cmpb $0x0, 0x34(%rsp)
je 0x1f88d
movsd 0x20(%rsp), %xmm0
callq 0x27e6b
jmp 0x1f8b2
movq 0x38(%rsp), %rax
movq 0x38(%rax), %rax
movq -0x8(%rax,%r15,8), %rax
movsd -0x10(%rax,%rbx), %xmm0
movsd -0x8(%rax,%rbx), %xmm1
movsd 0x20(%rsp), %xmm2
callq 0x280dd
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rax
movsd -0x10(%rax,%rbx), %xmm2
movsd -0x8(%rax,%rbx), %xmm3
movsd 0x68(%rsp), %xmm4
movsd 0x58(%rsp), %xmm5
movsd 0x70(%rsp), %xmm6
movq %r14, %rdi
movq %r12, %rsi
movq 0x100(%rsp), %rdx
callq 0x1f0c7
testb %al, %al
je 0x1fd00
movl %eax, %ebp
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rax
movups 0x40(%rsp), %xmm0
movups %xmm0, -0x10(%rax,%rbx)
cmpq $0x1, %r15
je 0x1f9bb
movq 0xa0(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x38(%rsp), %rax
movq 0x38(%rax), %rax
movq %r12, %r14
movq -0x8(%rax,%r15,8), %r12
leaq -0x2(%r15), %r13
xorl %edi, %edi
movq %r13, %rsi
callq 0x2923f
movl $0x1, %esi
movl $0x1, %ecx
movq 0x18(%rsp), %rdi
movq %r12, %rdx
leaq 0x1816c(%rip), %r8      # 0x37ac4
movq %rax, %r9
movsd 0x20(%rsp), %xmm0
callq 0x2852a
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0xa0(%rsp), %r12
xorl %edi, %edi
movq %r13, %rsi
callq 0x2923f
movsd 0x40(%rsp), %xmm0
movsd 0x48(%rsp), %xmm1
movl $0x1, %esi
movl $0x1, %ecx
movq 0x18(%rsp), %rdi
movq %r12, %rdx
movq %r14, %r12
leaq 0x50(%rsp), %r14
leaq 0x18111(%rip), %r8      # 0x37ac4
movq %rax, %r9
callq 0x28cd6
addq $-0x10, %rbx
decq %r15
jg 0x1f879
jmp 0x1fd02
cmpq $0x2, %r14
setne %dl
orb %al, %dl
jne 0x1fb7c
xorl %r13d, %r13d
leaq 0x50(%rsp), %r14
xorl %r12d, %r12d
cmpb $0x0, 0x34(%rsp)
je 0x1fa03
movsd 0x20(%rsp), %xmm0
callq 0x27e6b
movq 0x100(%rsp), %rbx
jmp 0x1fa38
movq 0x38(%rsp), %rax
movq 0x38(%rax), %rax
movq (%rax,%r12,8), %rax
movsd (%rax,%r13), %xmm0
movsd 0x8(%rax,%r13), %xmm1
movq 0x100(%rsp), %rbx
movq %rbx, %rdi
callq 0x27e7d
movsd 0x20(%rsp), %xmm2
callq 0x280dd
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rax
movsd (%rax,%r13), %xmm2
movsd 0x8(%rax,%r13), %xmm3
movsd 0x68(%rsp), %xmm4
movsd 0x58(%rsp), %xmm5
movsd 0x70(%rsp), %xmm6
movq %r14, %rdi
leaq 0x40(%rsp), %rsi
movq %rbx, %rdx
callq 0x1f0c7
testb %al, %al
je 0x1fd00
movl %eax, %ebp
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rax
movups 0x40(%rsp), %xmm0
movups %xmm0, (%rax,%r13)
cmpq 0x18(%rsp), %r12
jge 0x1fb67
movq 0xa0(%rsp), %rax
leaq 0x1(%r12), %r14
addq %r13, %rax
addq $0x10, %rax
movq %rax, 0x28(%rsp)
movq 0x38(%rsp), %rax
movq 0x38(%rax), %rax
movq (%rax,%r12,8), %rax
leaq 0x10(%rax,%r13), %rax
movq %rax, 0x60(%rsp)
movq %r14, %rdi
movq 0x18(%rsp), %rbx
movq %rbx, %rsi
callq 0x2923f
movl $0x1, %esi
movl $0x1, %ecx
movq 0x28(%rsp), %rdi
movq 0x60(%rsp), %rdx
leaq 0x1736b(%rip), %r8      # 0x36e5e
movq %rax, %r9
movsd 0x20(%rsp), %xmm0
callq 0x2852a
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rax
addq %r13, %rax
addq $0x10, %rax
movq %rax, 0x28(%rsp)
movq 0xa0(%rsp), %rax
leaq 0x10(%rax,%r13), %rax
movq %rax, 0x60(%rsp)
movq %r14, %rdi
leaq 0x50(%rsp), %r14
movq %rbx, %rsi
callq 0x2923f
movsd 0x40(%rsp), %xmm0
movsd 0x48(%rsp), %xmm1
movl $0x1, %esi
movl $0x1, %ecx
movq 0x28(%rsp), %rdi
movq 0x60(%rsp), %rdx
leaq 0x17f65(%rip), %r8      # 0x37ac4
movq %rax, %r9
callq 0x28cd6
incq %r12
addq $0x10, %r13
cmpq %r12, %r15
jne 0x1f9e7
jmp 0x1fd02
cmpq $0x2, %r14
setne %al
orb %cl, %al
jne 0x1fd00
movq %r15, %rbx
shlq $0x4, %rbx
leaq 0x50(%rsp), %r14
leaq 0x40(%rsp), %r13
cmpb $0x0, 0x34(%rsp)
je 0x1fbb8
movsd 0x20(%rsp), %xmm0
callq 0x27e6b
movq 0x100(%rsp), %r12
jmp 0x1fbed
movq 0x38(%rsp), %rax
movq 0x38(%rax), %rax
movq -0x8(%rax,%r15,8), %rax
movsd -0x10(%rax,%rbx), %xmm0
movsd -0x8(%rax,%rbx), %xmm1
movq 0x100(%rsp), %r12
movq %r12, %rdi
callq 0x27e7d
movsd 0x20(%rsp), %xmm2
callq 0x280dd
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rax
movsd -0x10(%rax,%rbx), %xmm2
movsd -0x8(%rax,%rbx), %xmm3
movsd 0x68(%rsp), %xmm4
movsd 0x58(%rsp), %xmm5
movsd 0x70(%rsp), %xmm6
movq %r14, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x1f0c7
testb %al, %al
je 0x1fd00
movl %eax, %ebp
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rax
movups 0x40(%rsp), %xmm0
movups %xmm0, -0x10(%rax,%rbx)
cmpq $0x1, %r15
je 0x1fcf1
movq 0xa0(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x38(%rsp), %rax
movq 0x38(%rax), %rax
movq -0x8(%rax,%r15,8), %r12
movq %r13, %r14
leaq -0x2(%r15), %r13
xorl %edi, %edi
movq %r13, %rsi
callq 0x2923f
movl $0x1, %esi
movl $0x1, %ecx
movq 0x18(%rsp), %rdi
movq %r12, %rdx
leaq 0x171d0(%rip), %r8      # 0x36e5e
movq %rax, %r9
movsd 0x20(%rsp), %xmm0
callq 0x2852a
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0xa0(%rsp), %r12
xorl %edi, %edi
movq %r13, %rsi
movq %r14, %r13
leaq 0x50(%rsp), %r14
callq 0x2923f
movsd 0x40(%rsp), %xmm0
movsd 0x48(%rsp), %xmm1
movl $0x1, %esi
movl $0x1, %ecx
movq 0x18(%rsp), %rdi
movq %r12, %rdx
leaq 0x17ddb(%rip), %r8      # 0x37ac4
movq %rax, %r9
callq 0x28cd6
addq $-0x10, %rbx
decq %r15
jg 0x1fb9c
jmp 0x1fd02
xorl %ebp, %ebp
movq 0x100(%rsp), %rdi
callq 0x256fa
movl %ebp, %eax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq