// File: /workspace/github_c_makefile_star2_O1/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, %r13
movq %rsi, 0x30(%rsp)
movq %rdi, %rbp
callq 0x9540
movl (%rbp), %eax
cmpl $0x2, %eax
movq %r15, 0x18(%rsp)
movq %r13, 0x38(%rsp)
movq %rbp, 0x28(%rsp)
movq %r14, 0x60(%rsp)
je 0x1ecaf
cmpl $0x1, %eax
jne 0x1f06d
callq 0x98a0
movq %rax, 0x10(%rsp)
leaq (,%r14,4), %rbx
movq %rbx, %rdi
callq 0x95b0
movq %rax, 0x20(%rsp)
movq %rbx, %rdi
callq 0x95b0
movq %rax, %r12
movl 0x30(%rbp), %edi
callq 0x97d0
movq %rax, 0x40(%rsp)
movq %r13, 0x8(%rbp)
movq 0x18(%rsp), %rax
movq %rax, 0x10(%rbp)
leaq (,%r13,4), %rdi
movq %rdi, 0x48(%rsp)
imulq %rax, %rdi
callq 0x95b0
movq %rax, 0x58(%rbp)
testq %r14, %r14
je 0x1ec81
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 0x1491c(%rip), %xmm1    # 0x334c0
movdqa 0x14454(%rip), %xmm2    # 0x33000
xorl %ecx, %ecx
movdqa 0x1445a(%rip), %xmm3    # 0x33010
pxor %xmm3, %xmm0
pcmpeqd %xmm4, %xmm4
movdqa 0x1490a(%rip), %xmm5    # 0x334d0
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 0x1ec02
movl $0x7f800000, (%r12,%rcx,4) # imm = 0x7F800000
pxor %xmm4, %xmm6
pextrw $0x4, %xmm6, %edx
testb $0x1, %dl
je 0x1ec19
movl $0x7f800000, 0x4(%r12,%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 0x1ec59
movl $0x7f800000, 0x8(%r12,%rcx,4) # imm = 0x7F800000
pextrw $0x4, %xmm6, %edx
testb $0x1, %dl
je 0x1ec6c
movl $0x7f800000, 0xc(%r12,%rcx,4) # imm = 0x7F800000
addq $0x4, %rcx
paddq %xmm5, %xmm2
paddq %xmm5, %xmm1
cmpq %rcx, %rax
jne 0x1ebc6
movq %r14, %r15
shrq $0x20, %r15
movq 0x10(%rsp), %r13
movq %r13, %rdi
callq 0x9340
movl %eax, %ebx
testq %r15, %r15
jne 0x1ef14
movl %ebx, %eax
xorl %edx, %edx
divl %r14d
movl %edx, %r13d
jmp 0x1ef30
callq 0x98a0
movq %rax, 0x10(%rsp)
leaq (,%r14,8), %rbx
movq %rbx, %rdi
callq 0x95b0
movq %rax, 0x20(%rsp)
movq %rbx, %rdi
callq 0x95b0
movq %rax, %r12
movl 0x30(%rbp), %edi
callq 0x9800
movq %rax, 0x40(%rsp)
movq %r13, 0x8(%rbp)
movq %r15, 0x10(%rbp)
leaq (,%r13,8), %rdi
movq %rdi, 0x48(%rsp)
imulq %r15, %rdi
callq 0x95b0
movq %rax, 0x58(%rbp)
testq %r14, %r14
je 0x1edaa
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 0x142d1(%rip), %xmm1    # 0x33000
xorl %ecx, %ecx
movdqa 0x142d7(%rip), %xmm2    # 0x33010
pxor %xmm2, %xmm0
movabsq $0x7ff0000000000000, %rdx # imm = 0x7FF0000000000000
pcmpeqd %xmm3, %xmm3
movdqa 0x142cd(%rip), %xmm4    # 0x33020
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 0x1ed89
movq %rdx, (%r12,%rcx,8)
pxor %xmm3, %xmm5
pextrw $0x4, %xmm5, %esi
testb $0x1, %sil
je 0x1ed9d
movq %rdx, 0x8(%r12,%rcx,8)
addq $0x2, %rcx
paddq %xmm4, %xmm1
cmpq %rcx, %rax
jne 0x1ed53
movq %r14, %r15
shrq $0x20, %r15
movq 0x10(%rsp), %r13
movq %r13, %rdi
callq 0x9340
movl %eax, %ebx
testq %r15, %r15
jne 0x1edd1
movl %ebx, %eax
xorl %edx, %edx
divl %r14d
movl %edx, %r13d
jmp 0x1eded
movq %r13, %rdi
callq 0x9340
movl %eax, %eax
shlq $0x20, %rbx
orq %rax, %rbx
movq %rbx, %rax
xorl %edx, %edx
divq %r14
movq %rdx, %r13
leaq -0x1(%r14), %r15
xorl %ebx, %ebx
movq 0x18(%rsp), %rbp
movq 0x10(%rsp), %rdi
callq 0x9340
movl %eax, %eax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
mulsd 0x14dfc(%rip), %xmm0    # 0x33c10
movsd %xmm0, 0x50(%rsp)
movq %rbx, %r14
movq 0x38(%rsp), %rcx
imulq %rcx, %r14
shlq $0x3, %r14
movq 0x28(%rsp), %rax
movq 0x58(%rax), %rdi
addq %r14, %rdi
movq %r13, %rax
imulq %rcx, %rax
movq 0x30(%rsp), %rcx
leaq (%rcx,%rax,8), %rsi
movq 0x48(%rsp), %rdx
callq 0x95a0
incq %rbx
movq %rbx, 0x58(%rsp)
cmpq %rbp, %rbx
movq %rbp, %rax
je 0x1eefe
movq 0x28(%rsp), %rax
addq 0x58(%rax), %r14
movq 0x40(%rsp), %rax
movq %rax, (%rsp)
movl $0x1, %ecx
movq 0x20(%rsp), %r13
movq %r13, %rdi
movq 0x38(%rsp), %rsi
movq %r14, %rdx
movq 0x30(%rsp), %r8
movq 0x60(%rsp), %rbx
movq %rbx, %r9
callq 0x9a80
xorpd %xmm0, %xmm0
testq %rbx, %rbx
je 0x1eec7
xorl %eax, %eax
movsd (%r12,%rax,8), %xmm1
minsd (%r13,%rax,8), %xmm1
movsd %xmm1, (%r12,%rax,8)
addsd %xmm1, %xmm0
incq %rax
cmpq %rax, %rbx
jne 0x1eea8
testq %r15, %r15
movq 0x18(%rsp), %rax
je 0x1eefb
movsd 0x50(%rsp), %xmm1
mulsd %xmm0, %xmm1
xorpd %xmm0, %xmm0
xorl %r13d, %r13d
addsd (%r12,%r13,8), %xmm0
ucomisd %xmm1, %xmm0
jae 0x1eefe
incq %r13
cmpq %r13, %r15
jne 0x1eee2
movq %r15, %r13
jmp 0x1eefe
xorl %r13d, %r13d
movq 0x58(%rsp), %rbx
cmpq %rax, %rbx
movq %rax, %rbp
jne 0x1edf8
jmp 0x1f04d
movq %r13, %rdi
callq 0x9340
movl %eax, %eax
shlq $0x20, %rbx
orq %rax, %rbx
movq %rbx, %rax
xorl %edx, %edx
divq %r14
movq %rdx, %r13
leaq -0x1(%r14), %r15
xorl %ebx, %ebx
movq 0x18(%rsp), %rbp
movq 0x10(%rsp), %rdi
callq 0x9340
movl %eax, %eax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
mulsd 0x14cb9(%rip), %xmm0    # 0x33c10
movsd %xmm0, 0x50(%rsp)
movq %rbx, %r14
movq 0x38(%rsp), %rcx
imulq %rcx, %r14
shlq $0x2, %r14
movq 0x28(%rsp), %rax
movq 0x58(%rax), %rdi
addq %r14, %rdi
movq %r13, %rax
imulq %rcx, %rax
movq 0x30(%rsp), %rcx
leaq (%rcx,%rax,4), %rsi
movq 0x48(%rsp), %rdx
callq 0x95a0
incq %rbx
movq %rbx, 0x58(%rsp)
cmpq %rbp, %rbx
je 0x1f03f
movq 0x28(%rsp), %rax
addq 0x58(%rax), %r14
movq 0x40(%rsp), %rax
movq %rax, (%rsp)
movl $0x1, %ecx
movq 0x20(%rsp), %r13
movq %r13, %rdi
movq 0x38(%rsp), %rsi
movq %r14, %rdx
movq 0x30(%rsp), %r8
movq 0x60(%rsp), %rbx
movq %rbx, %r9
callq 0x9a70
xorpd %xmm0, %xmm0
testq %rbx, %rbx
je 0x1f007
xorl %eax, %eax
movss (%r12,%rax,4), %xmm1
minss (%r13,%rax,4), %xmm1
movss %xmm1, (%r12,%rax,4)
addss %xmm1, %xmm0
incq %rax
cmpq %rax, %rbx
jne 0x1efe8
testq %r15, %r15
movq 0x18(%rsp), %rbp
je 0x1f03c
xorps %xmm1, %xmm1
cvtsd2ss 0x50(%rsp), %xmm1
mulss %xmm1, %xmm0
xorps %xmm1, %xmm1
xorl %r13d, %r13d
addss (%r12,%r13,4), %xmm1
ucomiss %xmm0, %xmm1
jae 0x1f03f
incq %r13
cmpq %r13, %r15
jne 0x1f024
movq %r15, %r13
jmp 0x1f03f
xorl %r13d, %r13d
movq 0x58(%rsp), %rbx
cmpq %rbp, %rbx
jne 0x1ef3b
movq 0x20(%rsp), %rdi
callq 0x9580
movq %r12, %rdi
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x9580
callq 0x90b0