// File: /workspace/github_cpp_makefile_star2_O2/mouda[P]LTE_random_access-simulate/ap.cpp
// Function: alglib_impl::ae_v_cmovec(alglib_impl::ae_complex*, long, alglib_impl::ae_complex const*, long, char const*, long, alglib_impl::ae_complex)
void ae_v_cmovec(ae_complex *vdst, ae_int_t stride_dst, const ae_complex* vsrc, ae_int_t stride_src, const char *conj_src, ae_int_t n, ae_complex alpha)
{
    ae_bool bconj = !((conj_src[0]=='N') || (conj_src[0]=='n'));
    ae_int_t i;
    if( stride_dst!=1 || stride_src!=1 )
    {
        /*
         * general unoptimized case
         */
        if( bconj )
        {
            double ax = alpha.x, ay = alpha.y;
            for(i=0; i<n; i++, vdst+=stride_dst, vsrc+=stride_src)
            {
                vdst->x =  ax*vsrc->x+ay*vsrc->y;
                vdst->y = -ax*vsrc->y+ay*vsrc->x;
            }
        }
        else
        {
            double ax = alpha.x, ay = alpha.y;
            for(i=0; i<n; i++, vdst+=stride_dst, vsrc+=stride_src)
            {
                vdst->x = ax*vsrc->x-ay*vsrc->y;
                vdst->y = ax*vsrc->y+ay*vsrc->x;
            }
        }
    }
    else
    {
        /*
         * highly optimized case
         */
        if( bconj )
        {
            double ax = alpha.x, ay = alpha.y;
            for(i=0; i<n; i++, vdst++, vsrc++)
            {
                vdst->x =  ax*vsrc->x+ay*vsrc->y;
                vdst->y = -ax*vsrc->y+ay*vsrc->x;
            }
        }
        else
        {
            double ax = alpha.x, ay = alpha.y;
            for(i=0; i<n; i++, vdst++, vsrc++)
            {
                vdst->x = ax*vsrc->x-ay*vsrc->y;
                vdst->y = ax*vsrc->y+ay*vsrc->x;
            }
        }
    }
}

// Assembly:
movb (%r8), %al
andb $-0x21, %al
movq %rsi, %r8
xorq $0x1, %r8
movq %rcx, %r10
xorq $0x1, %r10
orq %r8, %r10
je 0x26054
cmpb $0x4e, %al
jne 0x260ac
xorl %eax, %eax
testq %r9, %r9
cmovgq %r9, %rax
shlq $0x4, %rcx
addq $0x8, %rdi
shlq $0x4, %rsi
subq $0x1, %rax
jb 0x26169
movsd 0x8(%rdx), %xmm2
movapd %xmm2, %xmm3
mulsd %xmm1, %xmm3
movsd (%rdx), %xmm4
mulsd %xmm0, %xmm4
subsd %xmm3, %xmm4
movsd %xmm4, -0x8(%rdi)
movsd (%rdx), %xmm3
mulsd %xmm1, %xmm3
mulsd %xmm0, %xmm2
addsd %xmm3, %xmm2
movsd %xmm2, (%rdi)
addq %rcx, %rdx
addq %rsi, %rdi
jmp 0x26010
cmpb $0x4e, %al
jne 0x26111
xorl %eax, %eax
testq %r9, %r9
cmovleq %rax, %r9
subq $0x1, %r9
jb 0x26169
movsd 0x8(%rdx,%rax), %xmm2
movapd %xmm2, %xmm3
mulsd %xmm1, %xmm3
movsd (%rdx,%rax), %xmm4
mulsd %xmm0, %xmm4
subsd %xmm3, %xmm4
movsd %xmm4, (%rdi,%rax)
movsd (%rdx,%rax), %xmm3
mulsd %xmm1, %xmm3
mulsd %xmm0, %xmm2
addsd %xmm3, %xmm2
movsd %xmm2, 0x8(%rdi,%rax)
addq $0x10, %rax
jmp 0x26065
movapd 0xa0fc(%rip), %xmm2     # 0x301b0
xorl %eax, %eax
testq %r9, %r9
cmovgq %r9, %rax
xorpd %xmm0, %xmm2
shlq $0x4, %rcx
addq $0x8, %rdi
shlq $0x4, %rsi
subq $0x1, %rax
jb 0x26169
movsd 0x8(%rdx), %xmm3
movapd %xmm3, %xmm4
mulsd %xmm1, %xmm4
movsd (%rdx), %xmm5
mulsd %xmm0, %xmm5
addsd %xmm4, %xmm5
movsd %xmm5, -0x8(%rdi)
movsd (%rdx), %xmm4
mulsd %xmm1, %xmm4
mulsd %xmm2, %xmm3
addsd %xmm4, %xmm3
movsd %xmm3, (%rdi)
addq %rcx, %rdx
addq %rsi, %rdi
jmp 0x260cd
movapd 0xa097(%rip), %xmm2     # 0x301b0
xorpd %xmm0, %xmm2
xorl %eax, %eax
testq %r9, %r9
cmovleq %rax, %r9
subq $0x1, %r9
jb 0x26169
movsd 0x8(%rdx,%rax), %xmm3
movapd %xmm3, %xmm4
mulsd %xmm1, %xmm4
movsd (%rdx,%rax), %xmm5
mulsd %xmm0, %xmm5
addsd %xmm4, %xmm5
movsd %xmm5, (%rdi,%rax)
movsd (%rdx,%rax), %xmm4
mulsd %xmm1, %xmm4
mulsd %xmm2, %xmm3
addsd %xmm4, %xmm3
movsd %xmm3, 0x8(%rdi,%rax)
addq $0x10, %rax
jmp 0x26126
retq