// File: /workspace/github_cpp_makefile_star2_O2/mouda[P]LTE_random_access-simulate/alglibinternal.cpp
// Function: alglib_impl::symmetricrank2update(alglib_impl::ae_matrix*, bool, long, long, alglib_impl::ae_vector*, alglib_impl::ae_vector*, alglib_impl::ae_vector*, double, alglib_impl::ae_state*)
void symmetricrank2update(/* Real    */ ae_matrix* a,
     ae_bool isupper,
     ae_int_t i1,
     ae_int_t i2,
     /* Real    */ ae_vector* x,
     /* Real    */ ae_vector* y,
     /* Real    */ ae_vector* t,
     double alpha,
     ae_state *_state)
{
    ae_int_t i;
    ae_int_t tp1;
    ae_int_t tp2;
    double v;


    if( isupper )
    {
        for(i=i1; i<=i2; i++)
        {
            tp1 = i+1-i1;
            tp2 = i2-i1+1;
            v = x->ptr.p_double[i+1-i1];
            ae_v_moved(&t->ptr.p_double[tp1], 1, &y->ptr.p_double[tp1], 1, ae_v_len(tp1,tp2), v);
            v = y->ptr.p_double[i+1-i1];
            ae_v_addd(&t->ptr.p_double[tp1], 1, &x->ptr.p_double[tp1], 1, ae_v_len(tp1,tp2), v);
            ae_v_muld(&t->ptr.p_double[tp1], 1, ae_v_len(tp1,tp2), alpha);
            ae_v_add(&a->ptr.pp_double[i][i], 1, &t->ptr.p_double[tp1], 1, ae_v_len(i,i2));
        }
    }
    else
    {
        for(i=i1; i<=i2; i++)
        {
            tp1 = 1;
            tp2 = i+1-i1;
            v = x->ptr.p_double[i+1-i1];
            ae_v_moved(&t->ptr.p_double[tp1], 1, &y->ptr.p_double[tp1], 1, ae_v_len(tp1,tp2), v);
            v = y->ptr.p_double[i+1-i1];
            ae_v_addd(&t->ptr.p_double[tp1], 1, &x->ptr.p_double[tp1], 1, ae_v_len(tp1,tp2), v);
            ae_v_muld(&t->ptr.p_double[tp1], 1, ae_v_len(tp1,tp2), alpha);
            ae_v_add(&a->ptr.pp_double[i][i1], 1, &t->ptr.p_double[tp1], 1, ae_v_len(i1,i));
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movsd %xmm0, 0x40(%rsp)
movq %r9, 0x38(%rsp)
movq %r8, 0x20(%rsp)
movq %rdx, %rbp
movq %rdi, 0x28(%rsp)
testl %esi, %esi
movq %rdx, 0x30(%rsp)
movq %rcx, 0x48(%rsp)
je 0x180f0
movq %rcx, %rax
subq %rbp, %rax
incq %rax
movq %rax, 0x10(%rsp)
leaq (,%rbp,8), %rax
movq %rax, 0x50(%rsp)
pushq $0x1
popq %rdx
xorl %r15d, %r15d
leaq (%rdx,%rbp), %rsi
decq %rsi
cmpq %rcx, %rsi
jg 0x18244
movq 0x20(%rsp), %rax
movq 0x28(%rax), %rax
movsd 0x8(%rax,%r15), %xmm0
movsd %xmm0, (%rsp)
leaq 0x8(%r15), %rbp
movq 0x90(%rsp), %rax
movq 0x28(%rax), %rbx
addq %rbp, %rbx
movq 0x38(%rsp), %r13
movq 0x28(%r13), %r14
addq %rbp, %r14
movq %rdx, 0x8(%rsp)
movq %rsi, 0x18(%rsp)
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %r12
movq %r12, %rsi
callq 0x26b4d
movq %rbx, %rdi
pushq $0x1
popq %rcx
movq %rcx, %rsi
movq %r14, %rdx
movq %rax, %r8
movsd (%rsp), %xmm0
callq 0x26888
movq 0x28(%r13), %rax
movsd 0x8(%rax,%r15), %xmm0
movsd %xmm0, (%rsp)
movq 0x90(%rsp), %r13
movq 0x28(%r13), %rbx
addq %rbp, %rbx
movq 0x20(%rsp), %rax
movq 0x28(%rax), %r14
addq %rbp, %r14
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x26b4d
movq %rbx, %rdi
pushq $0x1
popq %rcx
movq %rcx, %rsi
movq %r14, %rdx
movq %rcx, %r14
movq %rax, %r8
movsd (%rsp), %xmm0
callq 0x269b8
movq 0x28(%r13), %rbx
addq %rbp, %rbx
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x26b4d
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
movsd 0x40(%rsp), %xmm0
callq 0x26b08
movq 0x28(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x50(%rsp), %rcx
addq %rcx, %rax
movq (%r15,%rax), %rbx
addq %rcx, %rbx
addq %r15, %rbx
movq 0x28(%r13), %r14
addq %rbp, %r14
movq 0x18(%rsp), %rdi
movq 0x48(%rsp), %r12
movq %r12, %rsi
callq 0x26b4d
movq %rbx, %rdi
pushq $0x1
popq %rcx
movq %rcx, %rsi
movq %r14, %rdx
movq %rax, %r8
callq 0x2691c
movq 0x8(%rsp), %rdx
incq %rdx
movq %rbp, %r15
movq 0x30(%rsp), %rbp
movq %r12, %rcx
jmp 0x17f9b
leaq (,%rbp,8), %rax
movq %rax, 0x10(%rsp)
xorl %r13d, %r13d
pushq $0x1
popq %r12
movq %rbp, %rax
addq %r13, %rax
cmpq 0x48(%rsp), %rax
jg 0x18244
movq %rax, 0x8(%rsp)
leaq 0x1(%r13), %rsi
movq %rsi, 0x18(%rsp)
movq 0x20(%rsp), %rbp
movq 0x28(%rbp), %rax
movsd 0x8(%rax,%r13,8), %xmm0
movsd %xmm0, (%rsp)
movq 0x90(%rsp), %rax
movq 0x28(%rax), %rbx
addq $0x8, %rbx
movq 0x38(%rsp), %r15
movq 0x28(%r15), %r14
addq $0x8, %r14
movq %r12, %rdi
callq 0x26b4d
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %r12, %rcx
movq %rax, %r8
movsd (%rsp), %xmm0
callq 0x26888
movq 0x28(%r15), %rax
movsd 0x8(%rax,%r13,8), %xmm0
movsd %xmm0, (%rsp)
movq 0x90(%rsp), %rax
movq 0x28(%rax), %rbx
addq $0x8, %rbx
movq 0x28(%rbp), %r14
movq 0x30(%rsp), %rbp
addq $0x8, %r14
movq %r12, %rdi
movq 0x18(%rsp), %r15
movq %r15, %rsi
callq 0x26b4d
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %r12, %rcx
movq %rax, %r8
movsd (%rsp), %xmm0
callq 0x269b8
movq 0x90(%rsp), %r14
movq 0x28(%r14), %rbx
addq $0x8, %rbx
movq %r12, %rdi
movq %r15, %rsi
callq 0x26b4d
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
movsd 0x40(%rsp), %xmm0
callq 0x26b08
movq 0x28(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x10(%rsp), %rcx
addq %rcx, %rax
movq (%rax,%r13,8), %rbx
addq %rcx, %rbx
movq 0x28(%r14), %r14
addq $0x8, %r14
movq %rbp, %rdi
movq 0x8(%rsp), %rsi
callq 0x26b4d
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %r12, %rcx
movq %rax, %r8
callq 0x2691c
movq %r15, %r13
jmp 0x18104
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq