// File: /workspace/github_cpp_makefile_star2_O3/mouda[P]LTE_random_access-simulate/ap.cpp
// Function: alglib::vdotproduct(alglib::complex const*, long, char const*, alglib::complex const*, long, char const*, long)
alglib::complex alglib::vdotproduct(const alglib::complex *v0, ae_int_t stride0, const char *conj0, const alglib::complex *v1, ae_int_t stride1, const char *conj1, ae_int_t n)
{
    double rx = 0, ry = 0;
    ae_int_t i;
    bool bconj0 = !((conj0[0]=='N') || (conj0[0]=='n'));
    bool bconj1 = !((conj1[0]=='N') || (conj1[0]=='n'));
    if( bconj0 && bconj1 )
    {
        double v0x, v0y, v1x, v1y;
        for(i=0; i<n; i++, v0+=stride0, v1+=stride1)
        {
            v0x = v0->x;
            v0y = -v0->y;
            v1x = v1->x;
            v1y = -v1->y;
            rx += v0x*v1x-v0y*v1y;
            ry += v0x*v1y+v0y*v1x;
        }
    }
    if( !bconj0 && bconj1 )
    {
        double v0x, v0y, v1x, v1y;
        for(i=0; i<n; i++, v0+=stride0, v1+=stride1)
        {
            v0x = v0->x;
            v0y = v0->y;
            v1x = v1->x;
            v1y = -v1->y;
            rx += v0x*v1x-v0y*v1y;
            ry += v0x*v1y+v0y*v1x;
        }
    }
    if( bconj0 && !bconj1 )
    {
        double v0x, v0y, v1x, v1y;
        for(i=0; i<n; i++, v0+=stride0, v1+=stride1)
        {
            v0x = v0->x;
            v0y = -v0->y;
            v1x = v1->x;
            v1y = v1->y;
            rx += v0x*v1x-v0y*v1y;
            ry += v0x*v1y+v0y*v1x;
        }
    }
    if( !bconj0 && !bconj1 )
    {
        double v0x, v0y, v1x, v1y;
        for(i=0; i<n; i++, v0+=stride0, v1+=stride1)
        {
            v0x = v0->x;
            v0y = v0->y;
            v1x = v1->x;
            v1y = v1->y;
            rx += v0x*v1x-v0y*v1y;
            ry += v0x*v1y+v0y*v1x;
        }
    }
    return alglib::complex(rx,ry);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rax
movq 0x28(%rsp), %rdi
movq 0x20(%rsp), %r10
movb (%rcx), %cl
andb $-0x21, %cl
cmpb $0x4e, %cl
sete %r11b
movb (%r10), %r10b
andb $-0x21, %r10b
cmpb $0x4e, %r10b
sete %bl
testq %rdi, %rdi
setle %bpl
xorpd %xmm0, %xmm0
orb %r11b, %bpl
orb %bl, %bpl
jne 0x29c9c
movq %rdx, %r11
shlq $0x4, %r11
movq %r9, %rbx
shlq $0x4, %rbx
movapd 0x955d(%rip), %xmm1     # 0x331b0
movq %rdi, %r14
movupd (%r8), %xmm2
movapd %xmm2, %xmm3
unpckhpd %xmm2, %xmm3            # xmm3 = xmm3[1],xmm2[1]
xorpd %xmm1, %xmm3
movsd (%rsi), %xmm4
movsd 0x8(%rsi), %xmm5
unpcklpd %xmm5, %xmm5            # xmm5 = xmm5[0,0]
mulpd %xmm2, %xmm5
unpcklpd %xmm4, %xmm4            # xmm4 = xmm4[0,0]
unpcklpd %xmm2, %xmm3            # xmm3 = xmm3[0],xmm2[0]
mulpd %xmm4, %xmm3
subpd %xmm5, %xmm3
shufpd $0x1, %xmm3, %xmm3      # xmm3 = xmm3[1,0]
addpd %xmm3, %xmm0
addq %r11, %rsi
addq %rbx, %r8
decq %r14
jne 0x29c56
testq %rdi, %rdi
setle %r11b
cmpb $0x4e, %r10b
sete %bl
cmpb $0x4e, %cl
setne %bpl
orb %r11b, %bpl
orb %bl, %bpl
jne 0x29d18
movq %rdx, %r11
shlq $0x4, %r11
movq %r9, %rbx
shlq $0x4, %rbx
movapd 0x94e1(%rip), %xmm1     # 0x331b0
movq %rdi, %r14
movupd (%r8), %xmm2
movapd %xmm2, %xmm3
unpckhpd %xmm2, %xmm3            # xmm3 = xmm3[1],xmm2[1]
xorpd %xmm1, %xmm3
movsd (%rsi), %xmm4
movsd 0x8(%rsi), %xmm5
unpcklpd %xmm5, %xmm5            # xmm5 = xmm5[0,0]
mulpd %xmm2, %xmm5
unpcklpd %xmm4, %xmm4            # xmm4 = xmm4[0,0]
unpcklpd %xmm2, %xmm3            # xmm3 = xmm3[0],xmm2[0]
mulpd %xmm4, %xmm3
addpd %xmm5, %xmm3
shufpd $0x1, %xmm3, %xmm3      # xmm3 = xmm3[1,0]
addpd %xmm3, %xmm0
addq %r11, %rsi
addq %rbx, %r8
decq %r14
jne 0x29cd2
testq %rdi, %rdi
setle %r11b
cmpb $0x4e, %r10b
setne %bl
cmpb $0x4e, %cl
sete %bpl
orb %bl, %bpl
orb %r11b, %bpl
jne 0x29d8c
movq %rdx, %r11
shlq $0x4, %r11
movq %r9, %rbx
shlq $0x4, %rbx
movapd 0x9465(%rip), %xmm1     # 0x331b0
movq %rdi, %r14
movsd (%rsi), %xmm2
movsd 0x8(%rsi), %xmm3
movapd %xmm3, %xmm4
xorpd %xmm1, %xmm4
movupd (%r8), %xmm5
unpcklpd %xmm4, %xmm3            # xmm3 = xmm3[0],xmm4[0]
unpcklpd %xmm2, %xmm2            # xmm2 = xmm2[0,0]
mulpd %xmm5, %xmm2
shufpd $0x1, %xmm5, %xmm5      # xmm5 = xmm5[1,0]
mulpd %xmm3, %xmm5
addpd %xmm5, %xmm2
addpd %xmm2, %xmm0
addq %r11, %rsi
addq %rbx, %r8
decq %r14
jne 0x29d4e
testq %rdi, %rdi
jle 0x29dee
cmpb $0x4e, %cl
jne 0x29dee
cmpb $0x4e, %r10b
jne 0x29dee
addq $0x8, %rsi
shlq $0x4, %rdx
shlq $0x4, %r9
movapd 0x9400(%rip), %xmm1     # 0x331b0
movsd -0x8(%rsi), %xmm2
movsd (%rsi), %xmm3
movapd %xmm3, %xmm4
xorpd %xmm1, %xmm4
movupd (%r8), %xmm5
unpcklpd %xmm3, %xmm4            # xmm4 = xmm4[0],xmm3[0]
unpcklpd %xmm2, %xmm2            # xmm2 = xmm2[0,0]
mulpd %xmm5, %xmm2
shufpd $0x1, %xmm5, %xmm5      # xmm5 = xmm5[1,0]
mulpd %xmm4, %xmm5
addpd %xmm5, %xmm2
addpd %xmm2, %xmm0
addq %rdx, %rsi
addq %r9, %r8
decq %rdi
jne 0x29db0
movupd %xmm0, (%rax)
popq %rbx
popq %r14
popq %rbp
retq