// File: /workspace/github_c_makefile_star2_O1/zpole[P]IICV/vl/vlad.c
// Function: vl_vlad_encode
void
vl_vlad_encode (void * enc, vl_type dataType,
                void const * means, vl_size dimension, vl_size numClusters,
                void const * data, vl_size numData,
                void const * assignments,
                int flags)
{
  switch(dataType) {
    case VL_TYPE_FLOAT:
      _vl_vlad_encode_f ((float *) enc,
                         (float const *) means, dimension, numClusters,
                         (float const *) data,  numData,
                         (float const *) assignments, flags) ;
      break;
    case VL_TYPE_DOUBLE:
      _vl_vlad_encode_d ((double *) enc,
                         (double const *) means, dimension, numClusters,
                         (double const *) data, numData,
                         (double const *) assignments, flags) ;
      break;
    default:
      abort();
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r9, 0x30(%rsp)
movq %r8, %r15
movq %rcx, %r12
movq %rdx, %r13
movq 0x70(%rsp), %rbx
cmpl $0x2, %esi
movq %rdi, 0x10(%rsp)
je 0x31fac
cmpl $0x1, %esi
jne 0x32291
movq %r15, %rax
imulq %r12, %rax
movq %rax, 0x18(%rsp)
leaq (,%rax,4), %rdx
xorl %esi, %esi
callq 0x9400
movslq %r15d, %rax
movq %rax, 0x20(%rsp)
testq %rax, %rax
jle 0x31f5e
movslq %ebx, %r14
testq %r12, %r12
sete %al
movl 0x80(%rsp), %ecx
testb $0x2, %cl
sete %cl
orb %al, %cl
movb %cl, 0x7(%rsp)
leaq (,%r12,4), %rbp
movq $0x0, 0x8(%rsp)
xorps %xmm4, %xmm4
movq 0x10(%rsp), %rbx
xorpd %xmm0, %xmm0
testq %r14, %r14
jle 0x31de3
movq 0x78(%rsp), %rax
movq 0x8(%rsp), %rcx
leaq (%rax,%rcx,4), %rax
movq 0x30(%rsp), %rcx
xorl %edx, %edx
movq %rdx, %rsi
imulq %r15, %rsi
movss (%rax,%rsi,4), %xmm1
ucomiss %xmm4, %xmm1
jbe 0x31dd8
cvtss2sd %xmm1, %xmm1
addsd %xmm1, %xmm0
testq %r12, %r12
je 0x31dd8
xorl %esi, %esi
xorps %xmm2, %xmm2
cvtss2sd (%rcx,%rsi,4), %xmm2
xorps %xmm3, %xmm3
cvtss2sd (%rbx,%rsi,4), %xmm3
mulsd %xmm1, %xmm2
addsd %xmm3, %xmm2
cvtsd2ss %xmm2, %xmm2
movss %xmm2, (%rbx,%rsi,4)
incq %rsi
cmpq %rsi, %r12
jne 0x31daf
incq %rdx
addq %rbp, %rcx
cmpq %r14, %rdx
jne 0x31d8f
ucomisd 0x1245(%rip), %xmm0     # 0x33030
jbe 0x31e64
movl 0x80(%rsp), %eax
testb $0x8, %al
jne 0x31e34
testq %r12, %r12
je 0x31e64
xorpd 0x12cb(%rip), %xmm0     # 0x330d0
xorl %eax, %eax
xorps %xmm1, %xmm1
cvtss2sd (%r13,%rax,4), %xmm1
xorps %xmm2, %xmm2
cvtss2sd (%rbx,%rax,4), %xmm2
mulsd %xmm0, %xmm1
addsd %xmm2, %xmm1
cvtsd2ss %xmm1, %xmm1
movss %xmm1, (%rbx,%rax,4)
incq %rax
cmpq %rax, %r12
jne 0x31e07
jmp 0x31e64
testq %r12, %r12
je 0x31e64
xorl %eax, %eax
xorps %xmm1, %xmm1
cvtss2sd (%rbx,%rax,4), %xmm1
divsd %xmm0, %xmm1
cvtsd2ss %xmm1, %xmm1
movss %xmm1, (%rbx,%rax,4)
subss (%r13,%rax,4), %xmm1
movss %xmm1, (%rbx,%rax,4)
incq %rax
cmpq %rax, %r12
jne 0x31e3b
movq %r13, 0x28(%rsp)
cmpb $0x0, 0x7(%rsp)
jne 0x31ec7
xorl %r13d, %r13d
movss (%rbx,%r13,4), %xmm0
ucomiss %xmm4, %xmm0
jae 0x31e98
movss 0x1546(%rip), %xmm1     # 0x333cc
ucomiss %xmm0, %xmm1
xorps 0x1180(%rip), %xmm0     # 0x33010
jb 0x31ea0
sqrtss %xmm0, %xmm0
jmp 0x31ea8
jb 0x31eb1
sqrtss %xmm0, %xmm0
jmp 0x31eb9
callq 0x95e0
xorps %xmm4, %xmm4
xorps 0x1161(%rip), %xmm0     # 0x33010
jmp 0x31eb9
callq 0x95e0
xorps %xmm4, %xmm4
movss %xmm0, (%rbx,%r13,4)
incq %r13
cmpq %r13, %r12
jne 0x31e73
movl 0x80(%rsp), %eax
testb $0x1, %al
movq 0x28(%rsp), %r13
je 0x31f40
xorpd %xmm0, %xmm0
testq %r12, %r12
je 0x31ef7
xorl %eax, %eax
movss (%rbx,%rax,4), %xmm1
mulss %xmm1, %xmm1
addss %xmm1, %xmm0
incq %rax
cmpq %rax, %r12
jne 0x31ee2
ucomiss %xmm4, %xmm0
jb 0x31f02
sqrtss %xmm0, %xmm0
jmp 0x31f0a
callq 0x95e0
xorps %xmm4, %xmm4
xorps %xmm1, %xmm1
cvtss2sd %xmm0, %xmm1
ucomisd 0x14a7(%rip), %xmm1     # 0x333c0
ja 0x31f23
movss 0x14ad(%rip), %xmm0     # 0x333d0
testq %r12, %r12
je 0x31f40
xorl %eax, %eax
movss (%rbx,%rax,4), %xmm1
divss %xmm0, %xmm1
movss %xmm1, (%rbx,%rax,4)
incq %rax
cmpq %rax, %r12
jne 0x31f2a
movq 0x8(%rsp), %rcx
incq %rcx
addq %rbp, %rbx
addq %rbp, %r13
movq %rcx, 0x8(%rsp)
cmpq 0x20(%rsp), %rcx
jne 0x31d71
movl 0x80(%rsp), %eax
testb $0x4, %al
movq 0x10(%rsp), %rbx
movq 0x18(%rsp), %r14
jne 0x32282
xorps %xmm1, %xmm1
xorpd %xmm0, %xmm0
testq %r14, %r14
je 0x31f9a
xorl %eax, %eax
movss (%rbx,%rax,4), %xmm2
mulss %xmm2, %xmm2
addss %xmm2, %xmm0
incq %rax
cmpq %rax, %r14
jne 0x31f85
ucomiss %xmm1, %xmm0
jb 0x3221b
sqrtss %xmm0, %xmm0
jmp 0x32220
movq %r15, %rax
imulq %r12, %rax
movq %rax, 0x18(%rsp)
leaq (,%rax,8), %rdx
xorl %esi, %esi
callq 0x9400
movslq %r15d, %rax
movq %rax, 0x20(%rsp)
testq %rax, %rax
jle 0x321d2
movslq %ebx, %rbx
testq %r12, %r12
sete %al
movl 0x80(%rsp), %ecx
testb $0x2, %cl
sete %cl
orb %al, %cl
movb %cl, 0x7(%rsp)
leaq (,%r12,8), %rbp
movq $0x0, 0x8(%rsp)
xorpd %xmm3, %xmm3
movq 0x10(%rsp), %r14
xorpd %xmm0, %xmm0
testq %rbx, %rbx
jle 0x32071
movq 0x78(%rsp), %rax
movq 0x8(%rsp), %rcx
leaq (%rax,%rcx,8), %rax
movq 0x30(%rsp), %rcx
xorl %edx, %edx
movq %rdx, %rsi
imulq %r15, %rsi
movsd (%rax,%rsi,8), %xmm1
ucomisd %xmm3, %xmm1
jbe 0x32066
addsd %xmm1, %xmm0
testq %r12, %r12
je 0x32066
xorl %esi, %esi
movsd (%rcx,%rsi,8), %xmm2
mulsd %xmm1, %xmm2
addsd (%r14,%rsi,8), %xmm2
movsd %xmm2, (%r14,%rsi,8)
incq %rsi
cmpq %rsi, %r12
jne 0x32049
incq %rdx
addq %rbp, %rcx
cmpq %rbx, %rdx
jne 0x3202c
ucomisd %xmm3, %xmm0
jbe 0x320de
movl 0x80(%rsp), %eax
testb $0x8, %al
jne 0x320b2
testq %r12, %r12
je 0x320de
xorpd 0x1041(%rip), %xmm0     # 0x330d0
xorl %eax, %eax
movsd (%r13,%rax,8), %xmm1
mulsd %xmm0, %xmm1
addsd (%r14,%rax,8), %xmm1
movsd %xmm1, (%r14,%rax,8)
incq %rax
cmpq %rax, %r12
jne 0x32091
jmp 0x320de
testq %r12, %r12
je 0x320de
xorl %eax, %eax
movsd (%r14,%rax,8), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%r14,%rax,8)
subsd (%r13,%rax,8), %xmm1
movsd %xmm1, (%r14,%rax,8)
incq %rax
cmpq %rax, %r12
jne 0x320b9
movq %r13, 0x28(%rsp)
cmpb $0x0, 0x7(%rsp)
jne 0x32147
xorl %r13d, %r13d
movsd (%r14,%r13,8), %xmm0
ucomisd %xmm3, %xmm0
jae 0x32115
movsd 0x12b7(%rip), %xmm1     # 0x333b8
ucomisd %xmm0, %xmm1
xorpd 0xfc3(%rip), %xmm0      # 0x330d0
jb 0x3211d
sqrtsd %xmm0, %xmm0
jmp 0x32126
jb 0x32130
sqrtsd %xmm0, %xmm0
jmp 0x32139
callq 0x9990
xorpd %xmm3, %xmm3
xorpd 0xfa2(%rip), %xmm0      # 0x330d0
jmp 0x32139
callq 0x9990
xorpd %xmm3, %xmm3
movsd %xmm0, (%r14,%r13,8)
incq %r13
cmpq %r13, %r12
jne 0x320ed
movl 0x80(%rsp), %eax
testb $0x1, %al
movq 0x28(%rsp), %r13
je 0x321b4
xorpd %xmm0, %xmm0
testq %r12, %r12
je 0x32178
xorl %eax, %eax
movsd (%r14,%rax,8), %xmm1
mulsd %xmm1, %xmm1
addsd %xmm1, %xmm0
incq %rax
cmpq %rax, %r12
jne 0x32162
ucomisd %xmm3, %xmm0
jb 0x32184
sqrtsd %xmm0, %xmm0
jmp 0x3218d
callq 0x9990
xorpd %xmm3, %xmm3
maxsd 0x122b(%rip), %xmm0     # 0x333c0
testq %r12, %r12
je 0x321b4
xorl %eax, %eax
movsd (%r14,%rax,8), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%r14,%rax,8)
incq %rax
cmpq %rax, %r12
jne 0x3219c
movq 0x8(%rsp), %rcx
incq %rcx
addq %rbp, %r14
addq %rbp, %r13
movq %rcx, 0x8(%rsp)
cmpq 0x20(%rsp), %rcx
jne 0x3200e
movl 0x80(%rsp), %eax
testb $0x4, %al
movq 0x10(%rsp), %rbx
movq 0x18(%rsp), %r14
jne 0x32282
xorpd %xmm1, %xmm1
xorpd %xmm0, %xmm0
testq %r14, %r14
je 0x3220f
xorl %eax, %eax
movsd (%rbx,%rax,8), %xmm2
mulsd %xmm2, %xmm2
addsd %xmm2, %xmm0
incq %rax
cmpq %rax, %r14
jne 0x321fa
ucomisd %xmm1, %xmm0
jb 0x32258
sqrtsd %xmm0, %xmm0
jmp 0x3225d
callq 0x95e0
xorps %xmm1, %xmm1
cvtss2sd %xmm0, %xmm1
ucomisd 0x1191(%rip), %xmm1     # 0x333c0
ja 0x32239
movss 0x1197(%rip), %xmm0     # 0x333d0
testq %r14, %r14
je 0x32282
xorl %eax, %eax
movss (%rbx,%rax,4), %xmm1
divss %xmm0, %xmm1
movss %xmm1, (%rbx,%rax,4)
incq %rax
cmpq %rax, %r14
jne 0x32240
jmp 0x32282
callq 0x9990
testq %r14, %r14
je 0x32282
maxsd 0x1156(%rip), %xmm0     # 0x333c0
xorl %eax, %eax
movsd (%rbx,%rax,8), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%rbx,%rax,8)
incq %rax
cmpq %rax, %r14
jne 0x3226c
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x90b0