// File: /workspace/github_c_makefile_star2_O2/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, 0x8(%rsp)
movq %rdi, %r14
movl 0x80(%rsp), %r13d
movq 0x70(%rsp), %rbx
cmpl $0x2, %esi
movq %rdi, 0x28(%rsp)
je 0x2bfbb
cmpl $0x1, %esi
jne 0x2c2ac
movq %r15, %rax
imulq %r12, %rax
movq %rax, 0x10(%rsp)
leaq (,%rax,4), %rdx
movq %r14, %rdi
xorl %esi, %esi
callq 0x9420
xorl %eax, %eax
movslq %r15d, %rcx
movslq %ebx, %rbp
testq %rbp, %rbp
cmovleq %rax, %rbp
testq %rcx, %rcx
cmovleq %rax, %rcx
movq %rcx, 0x18(%rsp)
leaq (,%r12,4), %rbx
xorps %xmm4, %xmm4
movq 0x8(%rsp), %rdi
cmpq 0x18(%rsp), %rax
je 0x2c1f2
movq %rax, %rcx
movq 0x78(%rsp), %rax
movq %rcx, 0x20(%rsp)
leaq (%rax,%rcx,4), %rax
xorpd %xmm0, %xmm0
movq 0x30(%rsp), %rcx
xorl %edx, %edx
cmpq %rbp, %rdx
je 0x2be54
movq %rdx, %rsi
imulq %r15, %rsi
movss (%rax,%rsi,4), %xmm1
ucomiss %xmm4, %xmm1
jbe 0x2be4c
cvtss2sd %xmm1, %xmm1
xorl %esi, %esi
cmpq %rsi, %r12
je 0x2be48
cvtss2sd (%rcx,%rsi,4), %xmm2
cvtss2sd (%r14,%rsi,4), %xmm3
mulsd %xmm1, %xmm2
addsd %xmm3, %xmm2
cvtsd2ss %xmm2, %xmm2
movss %xmm2, (%r14,%rsi,4)
incq %rsi
jmp 0x2be21
addsd %xmm1, %xmm0
incq %rdx
addq %rbx, %rcx
jmp 0x2be05
ucomisd 0x11a4(%rip), %xmm0     # 0x2d000
jbe 0x2bec0
testb $0x8, %r13b
jne 0x2be95
xorpd 0x1234(%rip), %xmm0     # 0x2d0a0
xorl %eax, %eax
cmpq %rax, %r12
je 0x2bec0
cvtss2sd (%rdi,%rax,4), %xmm1
cvtss2sd (%r14,%rax,4), %xmm2
mulsd %xmm0, %xmm1
addsd %xmm2, %xmm1
cvtsd2ss %xmm1, %xmm1
movss %xmm1, (%r14,%rax,4)
incq %rax
jmp 0x2be6e
xorl %eax, %eax
cmpq %rax, %r12
je 0x2bec0
cvtss2sd (%r14,%rax,4), %xmm1
divsd %xmm0, %xmm1
cvtsd2ss %xmm1, %xmm1
movss %xmm1, (%r14,%rax,4)
subss (%rdi,%rax,4), %xmm1
movss %xmm1, (%r14,%rax,4)
incq %rax
jmp 0x2be97
testb $0x2, %r13b
movq %rdi, 0x8(%rsp)
jne 0x2beec
movl 0x80(%rsp), %r13d
testb $0x1, %r13b
jne 0x2bf4f
movq 0x20(%rsp), %rax
incq %rax
addq %rbx, %r14
addq %rbx, %rdi
jmp 0x2bdde
xorl %r13d, %r13d
cmpq %r13, %r12
je 0x2becb
movss (%r14,%r13,4), %xmm0
ucomiss %xmm4, %xmm0
jae 0x2bf19
movss 0x14a5(%rip), %xmm1     # 0x2d3ac
ucomiss %xmm0, %xmm1
xorps 0x145f(%rip), %xmm0     # 0x2d370
jb 0x2bf21
sqrtss %xmm0, %xmm0
jmp 0x2bf2e
jb 0x2bf37
sqrtss %xmm0, %xmm0
jmp 0x2bf44
callq 0x9610
xorps %xmm4, %xmm4
movq 0x8(%rsp), %rdi
xorps 0x143b(%rip), %xmm0     # 0x2d370
jmp 0x2bf44
callq 0x9610
xorps %xmm4, %xmm4
movq 0x8(%rsp), %rdi
movss %xmm0, (%r14,%r13,4)
incq %r13
jmp 0x2beef
xorpd %xmm0, %xmm0
xorl %eax, %eax
cmpq %rax, %r12
je 0x2bf6d
movss (%r14,%rax,4), %xmm1
mulss %xmm1, %xmm1
addss %xmm1, %xmm0
incq %rax
jmp 0x2bf55
ucomiss %xmm4, %xmm0
jb 0x2bf78
sqrtss %xmm0, %xmm0
jmp 0x2bf85
callq 0x9610
xorps %xmm4, %xmm4
movq 0x8(%rsp), %rdi
cvtss2sd %xmm0, %xmm1
ucomisd 0x140f(%rip), %xmm1     # 0x2d3a0
ja 0x2bf9b
movss 0x1415(%rip), %xmm0     # 0x2d3b0
xorl %eax, %eax
cmpq %rax, %r12
je 0x2bed9
movss (%r14,%rax,4), %xmm1
divss %xmm0, %xmm1
movss %xmm1, (%r14,%rax,4)
incq %rax
jmp 0x2bf9d
movq %r15, %rax
imulq %r12, %rax
movq %rax, 0x10(%rsp)
leaq (,%rax,8), %rdx
movq %r14, %rdi
xorl %esi, %esi
callq 0x9420
xorl %eax, %eax
movslq %r15d, %rcx
movslq %ebx, %rbp
testq %rbp, %rbp
cmovleq %rax, %rbp
testq %rcx, %rcx
cmovleq %rax, %rcx
movq %rcx, 0x18(%rsp)
leaq (,%r12,8), %rbx
xorpd %xmm3, %xmm3
movq 0x8(%rsp), %rdi
cmpq 0x18(%rsp), %rax
je 0x2c1c1
movq %rax, %rcx
movq 0x78(%rsp), %rax
movq %rcx, 0x20(%rsp)
leaq (%rax,%rcx,8), %rax
xorpd %xmm0, %xmm0
movq 0x30(%rsp), %rcx
xorl %edx, %edx
cmpq %rbp, %rdx
je 0x2c070
movq %rdx, %rsi
imulq %r15, %rsi
movsd (%rax,%rsi,8), %xmm1
ucomisd %xmm3, %xmm1
jbe 0x2c068
xorl %esi, %esi
cmpq %rsi, %r12
je 0x2c064
movsd (%rcx,%rsi,8), %xmm2
mulsd %xmm1, %xmm2
addsd (%r14,%rsi,8), %xmm2
movsd %xmm2, (%r14,%rsi,8)
incq %rsi
jmp 0x2c045
addsd %xmm1, %xmm0
incq %rdx
addq %rbx, %rcx
jmp 0x2c02c
ucomisd %xmm3, %xmm0
jbe 0x2c0cc
testb $0x8, %r13b
jne 0x2c0a5
xorpd 0x101c(%rip), %xmm0     # 0x2d0a0
xorl %eax, %eax
cmpq %rax, %r12
je 0x2c0cc
movsd (%rdi,%rax,8), %xmm1
mulsd %xmm0, %xmm1
addsd (%r14,%rax,8), %xmm1
movsd %xmm1, (%r14,%rax,8)
incq %rax
jmp 0x2c086
xorl %eax, %eax
cmpq %rax, %r12
je 0x2c0cc
movsd (%r14,%rax,8), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%r14,%rax,8)
subsd (%rdi,%rax,8), %xmm1
movsd %xmm1, (%r14,%rax,8)
incq %rax
jmp 0x2c0a7
testb $0x2, %r13b
movq %rdi, 0x8(%rsp)
jne 0x2c0f8
movl 0x80(%rsp), %r13d
testb $0x1, %r13b
jne 0x2c161
movq 0x20(%rsp), %rax
incq %rax
addq %rbx, %r14
addq %rbx, %rdi
jmp 0x2c005
xorl %r13d, %r13d
cmpq %r13, %r12
je 0x2c0d7
movsd (%r14,%r13,8), %xmm0
ucomisd %xmm3, %xmm0
jae 0x2c128
movsd 0x1284(%rip), %xmm1     # 0x2d398
ucomisd %xmm0, %xmm1
xorpd 0xf80(%rip), %xmm0      # 0x2d0a0
jb 0x2c130
sqrtsd %xmm0, %xmm0
jmp 0x2c13e
jb 0x2c148
sqrtsd %xmm0, %xmm0
jmp 0x2c156
callq 0x9a00
xorpd %xmm3, %xmm3
movq 0x8(%rsp), %rdi
xorpd 0xf5a(%rip), %xmm0      # 0x2d0a0
jmp 0x2c156
callq 0x9a00
xorpd %xmm3, %xmm3
movq 0x8(%rsp), %rdi
movsd %xmm0, (%r14,%r13,8)
incq %r13
jmp 0x2c0fb
xorpd %xmm0, %xmm0
xorl %eax, %eax
cmpq %rax, %r12
je 0x2c17f
movsd (%r14,%rax,8), %xmm1
mulsd %xmm1, %xmm1
addsd %xmm1, %xmm0
incq %rax
jmp 0x2c167
ucomisd %xmm3, %xmm0
jb 0x2c18b
sqrtsd %xmm0, %xmm0
jmp 0x2c199
callq 0x9a00
xorpd %xmm3, %xmm3
movq 0x8(%rsp), %rdi
maxsd 0x11ff(%rip), %xmm0     # 0x2d3a0
xorl %eax, %eax
cmpq %rax, %r12
je 0x2c0e5
movsd (%r14,%rax,8), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%r14,%rax,8)
incq %rax
jmp 0x2c1a3
testb $0x4, %r13b
movq 0x28(%rsp), %rbx
movq 0x10(%rsp), %r14
jne 0x2c29d
xorpd %xmm0, %xmm0
xorl %eax, %eax
cmpq %rax, %r14
je 0x2c223
movsd (%rbx,%rax,8), %xmm1
mulsd %xmm1, %xmm1
addsd %xmm1, %xmm0
incq %rax
jmp 0x2c1db
testb $0x4, %r13b
movq 0x28(%rsp), %rbx
movq 0x10(%rsp), %r14
jne 0x2c29d
xorpd %xmm0, %xmm0
xorl %eax, %eax
cmpq %rax, %r14
je 0x2c233
movss (%rbx,%rax,4), %xmm1
mulss %xmm1, %xmm1
addss %xmm1, %xmm0
incq %rax
jmp 0x2c20c
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x2c241
sqrtsd %xmm0, %xmm0
jmp 0x2c246
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
jb 0x2c268
sqrtss %xmm0, %xmm0
jmp 0x2c26d
callq 0x9a00
maxsd 0x1152(%rip), %xmm0     # 0x2d3a0
xorl %eax, %eax
cmpq %rax, %r14
je 0x2c29d
movsd (%rbx,%rax,8), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, (%rbx,%rax,8)
incq %rax
jmp 0x2c250
callq 0x9610
cvtss2sd %xmm0, %xmm1
ucomisd 0x1127(%rip), %xmm1     # 0x2d3a0
ja 0x2c283
movss 0x112d(%rip), %xmm0     # 0x2d3b0
xorl %eax, %eax
cmpq %rax, %r14
je 0x2c29d
movss (%rbx,%rax,4), %xmm1
divss %xmm0, %xmm1
movss %xmm1, (%rbx,%rax,4)
incq %rax
jmp 0x2c285
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x90b0