// File: /workspace/github_c_makefile_star2_O3/zpole[P]IICV/vl/kmeans.c
// Function: vl_kmeans_init_centers_plus_plus
VL_EXPORT void
vl_kmeans_init_centers_plus_plus
(VlKMeans * self,
 void const * data,
 vl_size dimension,
 vl_size numData,
 vl_size numCenters)
{
  vl_kmeans_reset (self) ;

  switch (self->dataType) {
    case VL_TYPE_FLOAT :
      _vl_kmeans_init_centers_plus_plus_f
      (self, (float const *)data, dimension, numData, numCenters) ;
      break ;
    case VL_TYPE_DOUBLE :
      _vl_kmeans_init_centers_plus_plus_d
      (self, (double const *)data, dimension, numData, numCenters) ;
      break ;
    default:
      abort() ;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %r8, %r15
movq %rcx, %r14
movq %rdx, %r12
movq %rsi, 0x18(%rsp)
movq %rdi, %rbp
callq 0x9540
movl (%rbp), %eax
cmpl $0x2, %eax
movq %r15, 0x40(%rsp)
movq %r12, 0x48(%rsp)
movq %rbp, 0x38(%rsp)
movq %r14, 0x60(%rsp)
je 0x1ec8d
cmpl $0x1, %eax
jne 0x1f0b1
callq 0x98a0
movq %rax, %r13
leaq (,%r14,4), %rbx
movq %rbx, %rdi
callq 0x95b0
movq %rax, 0x20(%rsp)
movq %rbx, %rdi
callq 0x95b0
movq %rax, %rbx
movl 0x30(%rbp), %edi
callq 0x97d0
movq %rax, 0x58(%rsp)
movq %r12, 0x8(%rbp)
movq %r15, 0x10(%rbp)
leaq (,%r12,4), %rdi
movq %rdi, 0x28(%rsp)
imulq %r15, %rdi
callq 0x95b0
movq %rax, 0x58(%rbp)
testq %r14, %r14
movq %r13, 0x30(%rsp)
je 0x1ef2c
leaq 0x3(%r14), %rax
andq $-0x4, %rax
leaq -0x1(%r14), %rcx
movq %rcx, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
movdqa 0x1364d(%rip), %xmm1    # 0x321c0
movdqa 0x13485(%rip), %xmm2    # 0x32000
xorl %ecx, %ecx
movdqa 0x1348b(%rip), %xmm3    # 0x32010
pxor %xmm3, %xmm0
pcmpeqd %xmm4, %xmm4
movdqa 0x1393b(%rip), %xmm5    # 0x324d0
movdqa %xmm2, %xmm6
pxor %xmm3, %xmm6
movdqa %xmm6, %xmm7
pcmpgtd %xmm0, %xmm7
pcmpeqd %xmm0, %xmm6
pshufd $0xf5, %xmm6, %xmm8     # xmm8 = xmm6[1,1,3,3]
pand %xmm7, %xmm8
pshufd $0xf5, %xmm7, %xmm6     # xmm6 = xmm7[1,1,3,3]
por %xmm8, %xmm6
movd %xmm6, %edx
notl %edx
testb $0x1, %dl
je 0x1ebd0
movl $0x7f800000, (%rbx,%rcx,4) # imm = 0x7F800000
pxor %xmm4, %xmm6
pextrw $0x4, %xmm6, %edx
testb $0x1, %dl
je 0x1ebe6
movl $0x7f800000, 0x4(%rbx,%rcx,4) # imm = 0x7F800000
movdqa %xmm1, %xmm6
pxor %xmm3, %xmm6
movdqa %xmm6, %xmm7
pcmpgtd %xmm0, %xmm7
pcmpeqd %xmm0, %xmm6
pshufd $0xf5, %xmm6, %xmm8     # xmm8 = xmm6[1,1,3,3]
pand %xmm7, %xmm8
pshufd $0xf5, %xmm7, %xmm6     # xmm6 = xmm7[1,1,3,3]
por %xmm8, %xmm6
pxor %xmm4, %xmm6
pextrw $0x0, %xmm6, %edx
testb $0x1, %dl
je 0x1ec25
movl $0x7f800000, 0x8(%rbx,%rcx,4) # imm = 0x7F800000
pextrw $0x4, %xmm6, %edx
testb $0x1, %dl
je 0x1ec37
movl $0x7f800000, 0xc(%rbx,%rcx,4) # imm = 0x7F800000
addq $0x4, %rcx
paddq %xmm5, %xmm2
paddq %xmm5, %xmm1
cmpq %rcx, %rax
jne 0x1eb95
movq %r14, %r15
shrq $0x20, %r15
movq %r13, %rdi
callq 0x9340
movl %eax, %r12d
testq %r15, %r15
movq 0x40(%rsp), %r15
je 0x1ef37
movq %r13, %rdi
callq 0x9340
movl %eax, %eax
shlq $0x20, %r12
orq %rax, %r12
movq %r12, %rax
xorl %edx, %edx
divq %r14
movq %rdx, %r13
jmp 0x1ef42
callq 0x98a0
movq %rax, %r13
leaq (,%r14,8), %rbx
movq %rbx, %rdi
callq 0x95b0
movq %rax, 0x20(%rsp)
movq %rbx, %rdi
callq 0x95b0
movq %rax, %rbx
movl 0x30(%rbp), %edi
callq 0x9800
movq %rax, 0x58(%rsp)
movq %r12, 0x8(%rbp)
movq %r15, 0x10(%rbp)
leaq (,%r12,8), %rdi
movq %rdi, 0x28(%rsp)
imulq %r15, %rdi
callq 0x95b0
movq %rax, 0x58(%rbp)
testq %r14, %r14
movq %r13, 0x30(%rsp)
je 0x1edc5
leaq 0x1(%r14), %rax
andq $-0x2, %rax
leaq -0x1(%r14), %rcx
movq %rcx, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
movdqa 0x132f0(%rip), %xmm1    # 0x32000
xorl %ecx, %ecx
movdqa 0x132f6(%rip), %xmm2    # 0x32010
pxor %xmm2, %xmm0
movabsq $0x7ff0000000000000, %rdx # imm = 0x7FF0000000000000
pcmpeqd %xmm3, %xmm3
movdqa 0x132ec(%rip), %xmm4    # 0x32020
movdqa %xmm1, %xmm5
pxor %xmm2, %xmm5
movdqa %xmm5, %xmm6
pcmpgtd %xmm0, %xmm6
pcmpeqd %xmm0, %xmm5
pshufd $0xf5, %xmm5, %xmm7     # xmm7 = xmm5[1,1,3,3]
pand %xmm6, %xmm7
pshufd $0xf5, %xmm6, %xmm5     # xmm5 = xmm6[1,1,3,3]
por %xmm7, %xmm5
movd %xmm5, %esi
notl %esi
testb $0x1, %sil
je 0x1ed6a
movq %rdx, (%rbx,%rcx,8)
pxor %xmm3, %xmm5
pextrw $0x4, %xmm5, %esi
testb $0x1, %sil
je 0x1ed7e
movq %rdx, 0x8(%rbx,%rcx,8)
addq $0x2, %rcx
paddq %xmm4, %xmm1
cmpq %rcx, %rax
jne 0x1ed34
movq %r14, %r15
shrq $0x20, %r15
movq %r13, %rdi
callq 0x9340
movl %eax, %r12d
testq %r15, %r15
movq 0x40(%rsp), %r15
je 0x1edd0
movq %r13, %rdi
callq 0x9340
movl %eax, %eax
shlq $0x20, %r12
orq %rax, %r12
movq %r12, %rax
xorl %edx, %edx
divq %r14
movq %rdx, %r13
jmp 0x1eddb
movq %r13, %rdi
callq 0x9340
movl %eax, %r12d
movl %r12d, %eax
xorl %edx, %edx
divl %r14d
movl %edx, %r13d
movq 0x30(%rsp), %rdi
callq 0x9340
movl %eax, %r12d
movq 0x58(%rbp), %rdi
movq 0x48(%rsp), %rbp
imulq %rbp, %r13
movq 0x18(%rsp), %rax
leaq (%rax,%r13,8), %rsi
movq 0x28(%rsp), %rdx
callq 0x95a0
cmpq $0x1, %r15
je 0x1f091
leaq -0x1(%r14), %rax
movq %rax, 0x50(%rsp)
movl %r12d, 0x14(%rsp)
movl $0x1, %r12d
xorl %r13d, %r13d
movq 0x18(%rsp), %r15
movq 0x38(%rsp), %r14
shlq $0x3, %r13
addq 0x58(%r14), %r13
movq 0x58(%rsp), %rax
movq %rax, (%rsp)
movl $0x1, %ecx
movq 0x20(%rsp), %rdi
movq %rbp, %rsi
movq %r13, %rdx
movq %r15, %r8
movq 0x60(%rsp), %r14
movq %r14, %r9
callq 0x9a80
movl 0x14(%rsp), %eax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
mulsd 0x13d88(%rip), %xmm0    # 0x32c00
pxor %xmm1, %xmm1
pxor %xmm2, %xmm2
testq %r14, %r14
movq 0x30(%rsp), %rdi
movq 0x50(%rsp), %rdx
je 0x1eeb6
xorl %eax, %eax
movq 0x20(%rsp), %rcx
movsd (%rbx,%rax,8), %xmm3
minsd (%rcx,%rax,8), %xmm3
movsd %xmm3, (%rbx,%rax,8)
addsd %xmm3, %xmm2
incq %rax
cmpq %rax, %r14
jne 0x1ee96
testq %rdx, %rdx
je 0x1eed6
mulsd %xmm2, %xmm0
xorl %r15d, %r15d
addsd (%rbx,%r15,8), %xmm1
ucomisd %xmm0, %xmm1
jae 0x1eed9
incq %r15
cmpq %r15, %rdx
jne 0x1eebd
movq %rdx, %r15
jmp 0x1eed9
xorl %r15d, %r15d
callq 0x9340
movl %eax, 0x14(%rsp)
movq %r12, %r13
movq 0x48(%rsp), %rbp
imulq %rbp, %r13
leaq (,%r13,8), %rdi
movq 0x38(%rsp), %r14
addq 0x58(%r14), %rdi
imulq %rbp, %r15
movq 0x18(%rsp), %rax
leaq (%rax,%r15,8), %rsi
movq %rax, %r15
movq 0x28(%rsp), %rdx
callq 0x95a0
incq %r12
cmpq 0x40(%rsp), %r12
jne 0x1ee33
jmp 0x1f091
movq %r13, %rdi
callq 0x9340
movl %eax, %r12d
movl %r12d, %eax
xorl %edx, %edx
divl %r14d
movl %edx, %r13d
movq 0x30(%rsp), %rdi
callq 0x9340
movl %eax, %r12d
movq 0x58(%rbp), %rdi
movq 0x48(%rsp), %rbp
imulq %rbp, %r13
movq 0x18(%rsp), %rax
leaq (%rax,%r13,4), %rsi
movq 0x28(%rsp), %rdx
callq 0x95a0
cmpq $0x1, %r15
je 0x1f091
leaq -0x1(%r14), %rax
movq %rax, 0x50(%rsp)
movl %r12d, 0x14(%rsp)
movl $0x1, %r12d
xorl %r13d, %r13d
movq 0x18(%rsp), %r15
movq 0x38(%rsp), %r14
shlq $0x2, %r13
addq 0x58(%r14), %r13
movq 0x58(%rsp), %rax
movq %rax, (%rsp)
movl $0x1, %ecx
movq 0x20(%rsp), %rdi
movq %rbp, %rsi
movq %r13, %rdx
movq %r15, %r8
movq 0x60(%rsp), %r14
movq %r14, %r9
callq 0x9a70
movl 0x14(%rsp), %eax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
mulsd 0x13c21(%rip), %xmm1    # 0x32c00
pxor %xmm0, %xmm0
pxor %xmm2, %xmm2
testq %r14, %r14
movq 0x30(%rsp), %rdi
movq 0x50(%rsp), %rdx
je 0x1f01d
xorl %eax, %eax
movq 0x20(%rsp), %rcx
movss (%rbx,%rax,4), %xmm3
minss (%rcx,%rax,4), %xmm3
movss %xmm3, (%rbx,%rax,4)
addss %xmm3, %xmm2
incq %rax
cmpq %rax, %r14
jne 0x1effd
testq %rdx, %rdx
je 0x1f040
cvtsd2ss %xmm1, %xmm1
mulss %xmm2, %xmm1
xorl %r15d, %r15d
addss (%rbx,%r15,4), %xmm0
ucomiss %xmm1, %xmm0
jae 0x1f043
incq %r15
cmpq %r15, %rdx
jne 0x1f028
movq %rdx, %r15
jmp 0x1f043
xorl %r15d, %r15d
callq 0x9340
movl %eax, 0x14(%rsp)
movq %r12, %r13
movq 0x48(%rsp), %rbp
imulq %rbp, %r13
leaq (,%r13,4), %rdi
movq 0x38(%rsp), %r14
addq 0x58(%r14), %rdi
imulq %rbp, %r15
movq 0x18(%rsp), %rax
leaq (%rax,%r15,4), %rsi
movq %rax, %r15
movq 0x28(%rsp), %rdx
callq 0x95a0
incq %r12
cmpq 0x40(%rsp), %r12
jne 0x1ef9a
movq 0x20(%rsp), %rdi
callq 0x9580
movq %rbx, %rdi
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x9580
callq 0x90b0