// File: /workspace/github_cpp_makefile_star2_O3/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
movq %rcx, (%rsp)
movq %rdx, %r13
movq 0x90(%rsp), %rcx
testl %esi, %esi
movq %r9, 0x18(%rsp)
movq %r8, 0x10(%rsp)
movsd %xmm0, 0x40(%rsp)
movq %rdi, 0x38(%rsp)
je 0x192ea
movq (%rsp), %rax
subq %r13, %rax
movq %rax, 0x30(%rsp)
jl 0x19454
incq 0x30(%rsp)
movq (%rsp), %rax
incq %rax
movq %rax, 0x50(%rsp)
leaq (,%r13,8), %rax
movq %rax, 0x48(%rsp)
movl $0x1, %r12d
xorl %ebp, %ebp
movq %r13, 0x28(%rsp)
leaq 0x1(%r13), %rax
movq %rax, 0x8(%rsp)
movq 0x28(%r8), %rax
movsd 0x8(%rax,%rbp), %xmm0
movsd %xmm0, 0x20(%rsp)
leaq 0x8(%rbp), %r14
movq 0x28(%rcx), %r15
addq %r14, %r15
movq 0x28(%r9), %rbx
addq %r14, %rbx
movq %r12, %rdi
movq 0x30(%rsp), %r13
movq %r13, %rsi
callq 0x2897c
movl $0x1, %esi
movl $0x1, %ecx
movq %r15, %rdi
movq %rbx, %rdx
movq %rax, %r8
movsd 0x20(%rsp), %xmm0
callq 0x2870e
movq 0x18(%rsp), %rax
movq 0x28(%rax), %rax
movsd 0x8(%rax,%rbp), %xmm0
movsd %xmm0, 0x20(%rsp)
movq 0x90(%rsp), %rax
movq 0x28(%rax), %rbx
addq %r14, %rbx
movq 0x10(%rsp), %rax
movq 0x28(%rax), %r15
addq %r14, %r15
movq %r12, %rdi
movq %r13, %rsi
callq 0x2897c
movl $0x1, %esi
movl $0x1, %ecx
movq %rbx, %rdi
movq %r15, %rdx
movq %rax, %r8
movsd 0x20(%rsp), %xmm0
callq 0x28815
movq 0x90(%rsp), %rax
movq 0x28(%rax), %rbx
addq %r14, %rbx
movq %r12, %rdi
movq %r13, %rsi
callq 0x2897c
movl $0x1, %esi
movq %rbx, %rdi
movq %rax, %rdx
movsd 0x40(%rsp), %xmm0
callq 0x28939
movq 0x38(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x48(%rsp), %rcx
addq %rcx, %rax
movq (%rbp,%rax), %rbx
addq %rcx, %rbx
addq %rbp, %rbx
movq 0x90(%rsp), %rax
movq 0x28(%rax), %r15
addq %r14, %r15
movq 0x28(%rsp), %rdi
movq (%rsp), %rsi
callq 0x2897c
movl $0x1, %esi
movl $0x1, %ecx
movq %rbx, %rdi
movq %r15, %rdx
movq %rax, %r8
callq 0x2878f
movq 0x90(%rsp), %rcx
movq 0x10(%rsp), %r8
movq 0x18(%rsp), %r9
incq %r12
movq %r14, %rbp
movq 0x8(%rsp), %rax
movq %rax, %r13
cmpq %rax, 0x50(%rsp)
jne 0x19182
jmp 0x19454
cmpq %r13, (%rsp)
jl 0x19454
incq (%rsp)
movl $0x1, %r12d
leaq (,%r13,8), %rax
movq %rax, 0x28(%rsp)
movq %r13, %rbp
leaq 0x1(%rbp), %r14
movq 0x28(%r8), %rax
movsd (%rax,%r12,8), %xmm0
movsd %xmm0, 0x8(%rsp)
movq 0x28(%rcx), %rbx
addq $0x8, %rbx
movq 0x28(%r9), %r15
addq $0x8, %r15
movl $0x1, %edi
movq %r12, %rsi
callq 0x2897c
movl $0x1, %esi
movl $0x1, %ecx
movq %rbx, %rdi
movq %r15, %rdx
movq %rax, %r8
movsd 0x8(%rsp), %xmm0
callq 0x2870e
movq 0x18(%rsp), %rax
movq 0x28(%rax), %rax
movsd (%rax,%r12,8), %xmm0
movsd %xmm0, 0x8(%rsp)
movq 0x90(%rsp), %rax
movq 0x28(%rax), %rbx
addq $0x8, %rbx
movq 0x10(%rsp), %rax
movq 0x28(%rax), %r15
addq $0x8, %r15
movl $0x1, %edi
movq %r12, %rsi
callq 0x2897c
movl $0x1, %esi
movl $0x1, %ecx
movq %rbx, %rdi
movq %r15, %rdx
movq %rax, %r8
movsd 0x8(%rsp), %xmm0
callq 0x28815
movq 0x90(%rsp), %rax
movq 0x28(%rax), %rbx
addq $0x8, %rbx
movl $0x1, %edi
movq %r12, %rsi
callq 0x2897c
movl $0x1, %esi
movq %rbx, %rdi
movq %rax, %rdx
movsd 0x40(%rsp), %xmm0
callq 0x28939
movq 0x38(%rsp), %rax
movq 0x38(%rax), %rax
movq (%rax,%rbp,8), %rbx
addq 0x28(%rsp), %rbx
movq 0x90(%rsp), %rax
movq 0x28(%rax), %r15
addq $0x8, %r15
movq %r13, %rdi
movq %rbp, %rsi
callq 0x2897c
movl $0x1, %esi
movl $0x1, %ecx
movq %rbx, %rdi
movq %r15, %rdx
movq %rax, %r8
callq 0x2878f
movq 0x90(%rsp), %rcx
movq 0x10(%rsp), %r8
movq 0x18(%rsp), %r9
incq %r12
movq %r14, %rbp
cmpq %r14, (%rsp)
jne 0x1930e
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq