// File: /workspace/github_cpp_makefile_star2_O1/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 0x2a6b4
movq %rdx, %r11
shlq $0x4, %r11
movq %r9, %rbx
shlq $0x4, %rbx
xorpd %xmm1, %xmm1
movapd 0x9b78(%rip), %xmm2     # 0x341e0
movq %rdi, %r14
movsd (%rsi), %xmm3
movsd 0x8(%rsi), %xmm4
movsd (%r8), %xmm5
movsd 0x8(%r8), %xmm6
movapd %xmm6, %xmm7
xorpd %xmm2, %xmm7
mulsd %xmm4, %xmm6
mulsd %xmm3, %xmm7
mulsd %xmm5, %xmm3
subsd %xmm6, %xmm3
addsd %xmm3, %xmm0
mulsd %xmm4, %xmm5
subsd %xmm5, %xmm7
addsd %xmm7, %xmm1
addq %r11, %rsi
addq %rbx, %r8
decq %r14
jne 0x2a66b
jmp 0x2a6b8
xorpd %xmm1, %xmm1
cmpb $0x4e, %r10b
sete %r11b
cmpb $0x4e, %cl
setne %bl
testq %rdi, %rdi
setle %bpl
orb %bl, %bpl
orb %r11b, %bpl
jne 0x2a72d
movq %rdx, %r11
shlq $0x4, %r11
movq %r9, %rbx
shlq $0x4, %rbx
movq %rdi, %r14
movsd (%rsi), %xmm2
movsd 0x8(%rsi), %xmm3
movsd (%r8), %xmm4
movsd 0x8(%r8), %xmm5
movapd %xmm3, %xmm6
mulsd %xmm5, %xmm6
movapd %xmm2, %xmm7
mulsd %xmm4, %xmm7
addsd %xmm6, %xmm7
addsd %xmm7, %xmm0
mulsd %xmm4, %xmm3
mulsd %xmm5, %xmm2
subsd %xmm2, %xmm3
addsd %xmm3, %xmm1
addq %r11, %rsi
addq %rbx, %r8
decq %r14
jne 0x2a6e6
cmpb $0x4e, %r10b
setne %r11b
cmpb $0x4e, %cl
sete %bl
orb %r11b, %bl
testq %rdi, %rdi
setle %r11b
orb %bl, %r11b
jne 0x2a79e
movq %rdx, %r11
shlq $0x4, %r11
movq %r9, %rbx
shlq $0x4, %rbx
movq %rdi, %r14
movsd (%rsi), %xmm2
movsd 0x8(%rsi), %xmm3
movsd (%r8), %xmm4
movsd 0x8(%r8), %xmm5
movapd %xmm2, %xmm6
mulsd %xmm4, %xmm6
mulsd %xmm3, %xmm4
mulsd %xmm5, %xmm3
addsd %xmm3, %xmm6
addsd %xmm6, %xmm0
mulsd %xmm5, %xmm2
subsd %xmm4, %xmm2
addsd %xmm2, %xmm1
addq %r11, %rsi
addq %rbx, %r8
decq %r14
jne 0x2a75b
testq %rdi, %rdi
jle 0x2a801
cmpb $0x4e, %cl
jne 0x2a801
cmpb $0x4e, %r10b
jne 0x2a801
addq $0x8, %rsi
shlq $0x4, %rdx
addq $0x8, %r8
shlq $0x4, %r9
movsd -0x8(%rsi), %xmm2
movsd (%rsi), %xmm3
movsd -0x8(%r8), %xmm4
movsd (%r8), %xmm5
movapd %xmm2, %xmm6
mulsd %xmm5, %xmm2
mulsd %xmm3, %xmm5
mulsd %xmm4, %xmm6
subsd %xmm5, %xmm6
addsd %xmm6, %xmm0
mulsd %xmm4, %xmm3
addsd %xmm3, %xmm2
addsd %xmm2, %xmm1
addq %rdx, %rsi
addq %r9, %r8
decq %rdi
jne 0x2a7be
movsd %xmm0, (%rax)
movsd %xmm1, 0x8(%rax)
popq %rbx
popq %r14
popq %rbp
retq