// File: /workspace/github_c_makefile_star2_O2/zpole[P]IICV/vl/fisher.c
// Function: vl_fisher_encode
VL_EXPORT vl_size
vl_fisher_encode
(void * enc, vl_type dataType,
 void const * means, vl_size dimension, vl_size numClusters,
 void const * covariances,
 void const * priors,
 void const * data,  vl_size numData,
 int flags
)
{
  switch(dataType) {
    case VL_TYPE_FLOAT:
      return _vl_fisher_encode_f
      ((float *) enc,
       (float const *) means, dimension, numClusters,
       (float const *) covariances,
       (float const *) priors,
       (float const *) data, numData,
       flags);
    case VL_TYPE_DOUBLE:
      return _vl_fisher_encode_d
      ((double *) enc,
       (double const *) means, dimension, numClusters,
       (double const *) covariances,
       (double const *) priors,
       (double const *) data, numData,
       flags);
      break;
    default:
      abort();
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %r9, %r13
movq %r8, %rbp
movq %rcx, %r15
movq %rdx, %r12
movq %rdi, %rbx
movq 0xb0(%rsp), %rax
movq %rax, %xmm0
movdqa %xmm0, 0x50(%rsp)
cmpl $0x2, %esi
movq %rdi, 0x48(%rsp)
movq %r8, (%rsp)
movq %r9, 0x28(%rsp)
je 0xf4b0
cmpl $0x1, %esi
jne 0xfda7
movq %rbp, %rdi
imulq 0xb0(%rsp), %rdi
shlq $0x2, %rdi
callq 0x95e0
movq %rax, 0x30(%rsp)
movq %rbp, %r14
imulq %r15, %r14
leaq (,%r14,4), %rdi
callq 0x95e0
movq %rax, 0x18(%rsp)
movq %r14, 0x38(%rsp)
leaq (,%r14,8), %rdx
movq %rbx, %rdi
xorl %ebx, %ebx
xorl %esi, %esi
callq 0x9420
movslq %ebp, %rbp
testq %rbp, %rbp
movl $0x0, %eax
cmovgq %rbp, %rax
leaq (,%r15,4), %rcx
xorpd %xmm2, %xmm2
movq 0x18(%rsp), %r14
movq %rax, 0x20(%rsp)
movq %rcx, 0x10(%rsp)
cmpq %rax, %rbx
je 0xf84e
movq %rbx, 0x8(%rsp)
xorl %ebx, %ebx
cmpq %rbx, %r15
je 0xf496
cvtss2sd (%r13,%rbx,4), %xmm1
movsd 0x1ddca(%rip), %xmm0    # 0x2d238
divsd %xmm1, %xmm0
ucomisd %xmm2, %xmm0
jb 0xf47e
sqrtsd %xmm0, %xmm0
jmp 0xf487
callq 0x9a00
xorpd %xmm2, %xmm2
cvtsd2ss %xmm0, %xmm0
movss %xmm0, (%r14,%rbx,4)
incq %rbx
jmp 0xf45a
movq 0x8(%rsp), %rbx
incq %rbx
movq 0x10(%rsp), %rcx
addq %rcx, %r14
addq %rcx, %r13
movq 0x20(%rsp), %rax
jmp 0xf44a
movq %rbp, %rdi
imulq %rax, %rdi
shlq $0x3, %rdi
callq 0x95e0
movq %rax, 0x40(%rsp)
movq %rbp, %r14
imulq %r15, %r14
leaq (,%r14,8), %rdi
callq 0x95e0
movq %rax, 0x18(%rsp)
movq %r14, 0x38(%rsp)
movq %r14, %rdx
shlq $0x4, %rdx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x9420
xorl %ebx, %ebx
movslq %ebp, %rdx
testq %rdx, %rdx
movl $0x0, %eax
movq %rdx, 0x10(%rsp)
cmovgq %rdx, %rax
movq %rax, 0x20(%rsp)
leaq (,%r15,8), %rax
movq %rax, 0x8(%rsp)
movsd 0x1dd14(%rip), %xmm1    # 0x2d238
xorpd %xmm2, %xmm2
movq 0x18(%rsp), %r14
cmpq 0x20(%rsp), %rbx
je 0xf582
xorl %ebp, %ebp
cmpq %rbp, %r15
je 0xf56e
movapd %xmm1, %xmm0
divsd (%r13,%rbp,8), %xmm0
ucomisd %xmm2, %xmm0
jb 0xf552
sqrtsd %xmm0, %xmm0
jmp 0xf563
callq 0x9a00
xorpd %xmm2, %xmm2
movsd 0x1dcd5(%rip), %xmm1    # 0x2d238
movsd %xmm0, (%r14,%rbp,8)
incq %rbp
jmp 0xf536
incq %rbx
movq 0x8(%rsp), %rax
addq %rax, %r14
addq %rax, %r13
movq (%rsp), %rbp
jmp 0xf52d
movq 0x40(%rsp), %r13
movq %r13, %rdi
movq %rbp, %rsi
movq 0xb0(%rsp), %r14
movq %r14, %rdx
movq 0xa0(%rsp), %rcx
movq %r12, %r8
movq %r15, %r9
pushq 0xa8(%rsp)
pushq 0x30(%rsp)
callq 0x9940
movq 0x1dc7a(%rip), %xmm2    # 0x2d238
movq %r13, %r10
addq $0x10, %rsp
movslq %r14d, %rax
xorl %ecx, %ecx
testq %rax, %rax
cmovgq %rax, %rcx
movq %rcx, (%rsp)
movl 0xb8(%rsp), %eax
testb $0x4, %al
movq 0x48(%rsp), %r14
movq 0x38(%rsp), %r9
movq 0x20(%rsp), %r11
movq 0x10(%rsp), %rbx
jne 0xfb13
movapd 0x50(%rsp), %xmm0
unpcklps 0x1db5b(%rip), %xmm0    # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x1db63(%rip), %xmm0    # 0x2d170
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movapd %xmm1, 0x50(%rsp)
leaq (%r14,%r9,8), %r13
xorl %r8d, %r8d
movsd 0x1dd62(%rip), %xmm3    # 0x2d390
xorpd %xmm4, %xmm4
movsd 0x1db8e(%rip), %xmm5    # 0x2d1c8
movq 0x18(%rsp), %rbx
xorl %r11d, %r11d
movq 0xa0(%rsp), %rdi
movq (%rsp), %r9
cmpq 0x20(%rsp), %r11
je 0xf7e9
ucomisd (%rdi,%r11,8), %xmm3
ja 0xf7d0
leaq (%r10,%r11,8), %rax
movq 0xa8(%rsp), %rcx
xorl %edx, %edx
cmpq %r9, %rdx
je 0xf6e1
movq %rdx, %rsi
imulq %rbp, %rsi
movsd (%rax,%rsi,8), %xmm0
ucomisd %xmm0, %xmm3
ja 0xf6d7
xorl %esi, %esi
cmpq %rsi, %r15
je 0xf6d4
movsd (%rcx,%rsi,8), %xmm1
subsd (%r12,%rsi,8), %xmm1
mulsd (%rbx,%rsi,8), %xmm1
movapd %xmm0, %xmm2
mulsd %xmm1, %xmm2
addsd (%r14,%rsi,8), %xmm2
movsd %xmm2, (%r14,%rsi,8)
mulsd %xmm1, %xmm1
addsd %xmm5, %xmm1
mulsd %xmm0, %xmm1
addsd (%r13,%rsi,8), %xmm1
movsd %xmm1, (%r13,%rsi,8)
incq %rsi
jmp 0xf68c
incq %r8
incq %rdx
addq 0x8(%rsp), %rcx
jmp 0xf673
cmpq $0x0, 0xb0(%rsp)
je 0xf7d0
movsd (%rdi,%r11,8), %xmm0
ucomisd %xmm4, %xmm0
movq %r8, 0x10(%rsp)
movq %r11, 0x30(%rsp)
jb 0xf70c
sqrtsd %xmm0, %xmm6
jmp 0xf726
callq 0x9a00
movq 0x30(%rsp), %r11
xorpd %xmm4, %xmm4
movq 0xa0(%rsp), %rdi
movapd %xmm0, %xmm6
movsd (%rdi,%r11,8), %xmm0
addsd %xmm0, %xmm0
ucomisd %xmm4, %xmm0
jb 0xf73c
sqrtsd %xmm0, %xmm0
jmp 0xf75e
movsd %xmm6, 0x28(%rsp)
callq 0x9a00
movsd 0x28(%rsp), %xmm6
movq 0x30(%rsp), %r11
xorpd %xmm4, %xmm4
movq 0xa0(%rsp), %rdi
movq 0x10(%rsp), %r8
movq 0x40(%rsp), %r10
movq (%rsp), %r9
movsd 0x1dc1c(%rip), %xmm3    # 0x2d390
movapd 0x50(%rsp), %xmm2
mulsd %xmm2, %xmm6
movsd 0x1dab2(%rip), %xmm5    # 0x2d238
movapd %xmm5, %xmm1
divsd %xmm6, %xmm1
mulsd %xmm2, %xmm0
movapd %xmm5, %xmm2
divsd %xmm0, %xmm2
xorl %eax, %eax
movsd 0x1da24(%rip), %xmm5    # 0x2d1c8
cmpq %rax, %r15
je 0xf7d0
movsd (%r14,%rax,8), %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, (%r14,%rax,8)
movsd (%r13,%rax,8), %xmm0
mulsd %xmm2, %xmm0
movsd %xmm0, (%r13,%rax,8)
incq %rax
jmp 0xf7a4
incq %r11
movq 0x8(%rsp), %rax
addq %rax, %r13
addq %rax, %r14
addq %rax, %rbx
addq %rax, %r12
jmp 0xf64e
movq %r8, %r12
movq %r10, %rdi
callq 0x95b0
movq 0x18(%rsp), %rdi
callq 0x95b0
movl 0xb8(%rsp), %eax
testb $0x1, %al
movq 0x48(%rsp), %r15
movq 0x38(%rsp), %r13
jne 0xfb87
movl 0xb8(%rsp), %eax
testb $0x2, %al
movq %r12, %rax
je 0xfb04
addq %r13, %r13
xorpd %xmm0, %xmm0
xorl %ecx, %ecx
cmpq %rcx, %r13
je 0xfc06
movsd (%r15,%rcx,8), %xmm1
mulsd %xmm1, %xmm1
addsd %xmm1, %xmm0
incq %rcx
jmp 0xf832
movq 0x30(%rsp), %r14
movq %r14, %rdi
movq (%rsp), %rsi
movq 0xb0(%rsp), %rbx
movq %rbx, %rdx
movq 0xa0(%rsp), %rcx
movq %r12, %r8
movq %r15, %r9
pushq 0xa8(%rsp)
pushq 0x30(%rsp)
callq 0x9820
movq %r14, %r9
addq $0x10, %rsp
movslq %ebx, %rax
xorl %ebx, %ebx
testq %rax, %rax
cmovgq %rax, %rbx
movl 0xb8(%rsp), %eax
testb $0x4, %al
movq 0x48(%rsp), %r14
movq 0x38(%rsp), %r8
movq 0x20(%rsp), %r10
movq 0x10(%rsp), %r11
pushq $0x1
popq %r13
jne 0xfc1d
movapd 0x50(%rsp), %xmm0
unpcklps 0x1d896(%rip), %xmm0    # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x1d89e(%rip), %xmm0    # 0x2d170
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movapd %xmm1, 0x50(%rsp)
leaq (%r14,%r8,4), %r13
xorl %r8d, %r8d
movsd 0x1da9d(%rip), %xmm3    # 0x2d390
xorpd %xmm4, %xmm4
movss 0x1daa9(%rip), %xmm5    # 0x2d3a8
movq 0x18(%rsp), %rbp
xorl %ecx, %ecx
movq 0xa0(%rsp), %rdi
movq %rbx, 0x40(%rsp)
cmpq %r10, %rcx
je 0xfac4
cvtss2sd (%rdi,%rcx,4), %xmm0
ucomisd %xmm0, %xmm3
ja 0xf9d8
movq %rcx, 0x8(%rsp)
leaq (%r9,%rcx,4), %rax
movq 0xa8(%rsp), %rcx
xorl %edx, %edx
cmpq %rbx, %rdx
je 0xf9af
movq %rdx, %rsi
imulq (%rsp), %rsi
movss (%rax,%rsi,4), %xmm0
cvtss2sd %xmm0, %xmm1
ucomisd %xmm1, %xmm3
ja 0xf9a7
xorl %esi, %esi
cmpq %rsi, %r15
je 0xf9a4
movss (%rcx,%rsi,4), %xmm1
subss (%r12,%rsi,4), %xmm1
mulss (%rbp,%rsi,4), %xmm1
movaps %xmm0, %xmm2
mulss %xmm1, %xmm2
addss (%r14,%rsi,4), %xmm2
movss %xmm2, (%r14,%rsi,4)
mulss %xmm1, %xmm1
addss %xmm5, %xmm1
mulss %xmm0, %xmm1
addss (%r13,%rsi,4), %xmm1
movss %xmm1, (%r13,%rsi,4)
incq %rsi
jmp 0xf95c
incq %r8
incq %rdx
addq %r11, %rcx
jmp 0xf93e
cmpq $0x0, 0xb0(%rsp)
je 0xf9d3
movq 0x8(%rsp), %rcx
cvtss2sd (%rdi,%rcx,4), %xmm0
movq %r8, %rbx
ucomisd %xmm4, %xmm0
jb 0xf9ec
sqrtsd %xmm0, %xmm6
jmp 0xfa06
movq 0x8(%rsp), %rcx
incq %rcx
addq %r11, %r13
addq %r11, %r14
addq %r11, %rbp
addq %r11, %r12
jmp 0xf913
callq 0x9a00
movq 0x8(%rsp), %rcx
xorpd %xmm4, %xmm4
movq 0xa0(%rsp), %rdi
movapd %xmm0, %xmm6
movss (%rdi,%rcx,4), %xmm0
addss %xmm0, %xmm0
cvtss2sd %xmm0, %xmm0
ucomisd %xmm4, %xmm0
jb 0xfa1f
sqrtsd %xmm0, %xmm0
jmp 0xfa41
movsd %xmm6, 0x28(%rsp)
callq 0x9a00
movsd 0x28(%rsp), %xmm6
movq 0x8(%rsp), %rcx
xorpd %xmm4, %xmm4
movq 0xa0(%rsp), %rdi
movq %rbx, %r8
movq 0x30(%rsp), %r9
movss 0x1d957(%rip), %xmm5    # 0x2d3a8
movapd 0x50(%rsp), %xmm3
mulsd %xmm3, %xmm6
movsd 0x1d7d5(%rip), %xmm2    # 0x2d238
movapd %xmm2, %xmm1
divsd %xmm6, %xmm1
cvtsd2ss %xmm1, %xmm1
mulsd %xmm3, %xmm0
divsd %xmm0, %xmm2
cvtsd2ss %xmm2, %xmm0
xorl %eax, %eax
movq 0x20(%rsp), %r10
movq 0x10(%rsp), %r11
movq 0x40(%rsp), %rbx
movsd 0x1d8fc(%rip), %xmm3    # 0x2d390
cmpq %rax, %r15
je 0xf9d8
movss (%r14,%rax,4), %xmm2
mulss %xmm1, %xmm2
movss %xmm2, (%r14,%rax,4)
movss (%r13,%rax,4), %xmm2
mulss %xmm0, %xmm2
movss %xmm2, (%r13,%rax,4)
incq %rax
jmp 0xfa94
movq %r8, %r12
movq %r9, %rdi
callq 0x95b0
movq 0x18(%rsp), %rdi
callq 0x95b0
movl 0xb8(%rsp), %eax
testb $0x1, %al
movq 0x48(%rsp), %r15
movq 0x38(%rsp), %r13
jne 0xfc93
movl 0xb8(%rsp), %eax
testb $0x2, %al
movq %r12, %rax
jne 0xfd09
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq (,%rbp,8), %rax
xorl %ecx, %ecx
pushq $0x1
popq %rdx
movq %r10, %rsi
cmpq (%rsp), %rcx
je 0xf5f8
movq %rcx, %rdi
imulq %rbp, %rdi
movq (%r10,%rdi,8), %xmm0
xorl %edi, %edi
movq %rdx, %r8
cmpq %rbx, %r8
jge 0xfb5f
movsd (%rsi,%r8,8), %xmm1
ucomisd %xmm0, %xmm1
cmovaq %r8, %rdi
maxsd %xmm0, %xmm1
incq %r8
movapd %xmm1, %xmm0
jmp 0xfb3f
xorl %r8d, %r8d
cmpq %r8, %r11
je 0xfb7f
movdqa %xmm2, %xmm0
cmpq %r8, %rdi
je 0xfb74
pxor %xmm0, %xmm0
movq %xmm0, (%rsi,%r8,8)
incq %r8
jmp 0xfb62
incq %rcx
addq %rax, %rsi
jmp 0xfb23
leaq (,%r13,2), %rbx
xorl %r14d, %r14d
xorpd %xmm1, %xmm1
movapd 0x1d502(%rip), %xmm2    # 0x2d0a0
cmpq %r14, %rbx
je 0xf817
movsd (%r15,%r14,8), %xmm0
ucomisd %xmm1, %xmm0
jae 0xfbcb
movsd 0x1d7dd(%rip), %xmm3    # 0x2d398
ucomisd %xmm0, %xmm3
xorpd %xmm2, %xmm0
jb 0xfbd3
sqrtsd %xmm0, %xmm0
jmp 0xfbe4
jb 0xfbea
sqrtsd %xmm0, %xmm0
jmp 0xfbfb
callq 0x9a00
movapd 0x1d4c0(%rip), %xmm2    # 0x2d0a0
xorpd %xmm1, %xmm1
xorpd %xmm2, %xmm0
jmp 0xfbfb
callq 0x9a00
movapd 0x1d4a9(%rip), %xmm2    # 0x2d0a0
xorpd %xmm1, %xmm1
movsd %xmm0, (%r15,%r14,8)
incq %r14
jmp 0xfb9e
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0xfd39
sqrtsd %xmm0, %xmm0
jmp 0xfd41
movq (%rsp), %rax
leaq (,%rax,4), %rax
xorl %ecx, %ecx
movss 0x1d6f1(%rip), %xmm0    # 0x2d324
movq %r9, %rdx
cmpq %rbx, %rcx
je 0xf8bd
movq %rcx, %rsi
imulq (%rsp), %rsi
movss (%r9,%rsi,4), %xmm1
xorl %esi, %esi
movq %r13, %rdi
cmpq %rbp, %rdi
jge 0xfc6f
movss (%rdx,%rdi,4), %xmm2
ucomiss %xmm1, %xmm2
cmovaq %rdi, %rsi
maxss %xmm1, %xmm2
incq %rdi
movaps %xmm2, %xmm1
jmp 0xfc52
xorl %edi, %edi
cmpq %rdi, %r10
je 0xfc8b
movaps %xmm0, %xmm1
cmpq %rdi, %rsi
je 0xfc81
xorps %xmm1, %xmm1
movss %xmm1, (%rdx,%rdi,4)
incq %rdi
jmp 0xfc71
incq %rcx
addq %rax, %rdx
jmp 0xfc36
leaq (,%r13,2), %rbx
xorl %r14d, %r14d
xorpd %xmm1, %xmm1
movaps 0x1d6c7(%rip), %xmm2    # 0x2d370
cmpq %r14, %rbx
je 0xfaf2
movss (%r15,%r14,4), %xmm0
ucomiss %xmm1, %xmm0
jae 0xfcd3
movss 0x1d6e7(%rip), %xmm3    # 0x2d3ac
ucomiss %xmm0, %xmm3
xorps %xmm2, %xmm0
jb 0xfcdb
sqrtss %xmm0, %xmm0
jmp 0xfcea
jb 0xfcef
sqrtss %xmm0, %xmm0
jmp 0xfcfe
callq 0x9610
movaps 0x1d689(%rip), %xmm2    # 0x2d370
xorps %xmm1, %xmm1
xorps %xmm2, %xmm0
jmp 0xfcfe
callq 0x9610
movaps 0x1d675(%rip), %xmm2    # 0x2d370
xorps %xmm1, %xmm1
movss %xmm0, (%r15,%r14,4)
incq %r14
jmp 0xfca9
addq %r13, %r13
xorpd %xmm0, %xmm0
xorl %ecx, %ecx
cmpq %rcx, %r13
je 0xfd2a
movss (%r15,%rcx,4), %xmm1
mulss %xmm1, %xmm1
addss %xmm1, %xmm0
incq %rcx
jmp 0xfd12
xorpd %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jb 0xfd69
sqrtss %xmm0, %xmm0
jmp 0xfd71
callq 0x9a00
movq %r12, %rax
maxsd 0x1d657(%rip), %xmm0    # 0x2d3a0
xorl %ecx, %ecx
cmpq %rcx, %r13
je 0xfb04
movsd (%r15,%rcx,8), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%r15,%rcx,8)
incq %rcx
jmp 0xfd4b
callq 0x9610
movq %r12, %rax
cvtss2sd %xmm0, %xmm1
ucomisd 0x1d623(%rip), %xmm1    # 0x2d3a0
ja 0xfd87
movss 0x1d629(%rip), %xmm0    # 0x2d3b0
xorl %ecx, %ecx
cmpq %rcx, %r13
je 0xfb04
movss (%r15,%rcx,4), %xmm1
divss %xmm0, %xmm1
movss %xmm1, (%r15,%rcx,4)
incq %rcx
jmp 0xfd89
callq 0x90b0