// File: /workspace/github_c_makefile_star2_O2/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 $0x58, %rsp
movq %r8, %r15
movq %rcx, %r14
movq %rdx, %r12
movq %rsi, 0x48(%rsp)
movq %rdi, %r13
callq 0x9570
movl (%r13), %eax
cmpl $0x2, %eax
movq %r15, 0x50(%rsp)
movq %r12, 0x28(%rsp)
movq %r13, 0x20(%rsp)
je 0x1b7dd
cmpl $0x1, %eax
jne 0x1ba80
callq 0x9910
movq %rax, 0x8(%rsp)
leaq (,%r14,4), %rbx
movq %rbx, %rdi
callq 0x95e0
movq %rax, %rbp
movq %rbx, %rdi
callq 0x95e0
movq %rax, %rbx
movl 0x30(%r13), %edi
callq 0x9830
movq %rax, 0x38(%rsp)
movq %r12, 0x8(%r13)
movq %r15, 0x10(%r13)
leaq (,%r12,4), %rdi
movq %rdi, 0x40(%rsp)
imulq %r15, %rdi
callq 0x95e0
movq %rax, 0x58(%r13)
xorl %eax, %eax
cmpq %rax, %r14
je 0x1b956
movl $0x7f800000, (%rbx,%rax,4) # imm = 0x7F800000
incq %rax
jmp 0x1b7c8
callq 0x9910
movq %rax, 0x8(%rsp)
leaq (,%r14,8), %rbx
movq %rbx, %rdi
callq 0x95e0
movq %rax, %rbp
movq %rbx, %rdi
callq 0x95e0
movq %rax, %rbx
movl 0x30(%r13), %edi
callq 0x9860
movq %rax, 0x38(%rsp)
movq %r12, 0x8(%r13)
movq %r15, 0x10(%r13)
leaq (,%r12,8), %rdi
movq %rdi, 0x40(%rsp)
imulq %r15, %rdi
callq 0x95e0
movq %rax, 0x58(%r13)
xorl %eax, %eax
movabsq $0x7ff0000000000000, %rcx # imm = 0x7FF0000000000000
cmpq %rax, %r14
je 0x1b84f
movq %rcx, (%rbx,%rax,8)
incq %rax
jmp 0x1b841
movq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x1f4d1
movq %rax, %r12
leaq -0x1(%r14), %rax
movq %rax, 0x30(%rsp)
movq $0x0, 0x18(%rsp)
movq 0x8(%rsp), %rdi
callq 0x1f526
movsd %xmm0, 0x10(%rsp)
movq 0x18(%rsp), %r15
movq %r15, %r13
movq 0x28(%rsp), %rax
imulq %rax, %r13
shlq $0x3, %r13
movq 0x20(%rsp), %rcx
movq 0x58(%rcx), %rdi
addq %r13, %rdi
imulq %rax, %r12
movq 0x48(%rsp), %rax
leaq (%rax,%r12,8), %rsi
movq %rax, %r12
movq 0x40(%rsp), %rdx
callq 0x95d0
incq %r15
movq %r15, 0x18(%rsp)
cmpq 0x50(%rsp), %r15
je 0x1ba62
movq 0x20(%rsp), %rax
addq 0x58(%rax), %r13
movq 0x38(%rsp), %rax
movq %rax, (%rsp)
movq %rbp, %rdi
movq 0x28(%rsp), %rsi
movq %r13, %rdx
pushq $0x1
popq %rcx
movq %r12, %r8
movq %r14, %r9
callq 0x9b00
xorpd %xmm0, %xmm0
xorl %eax, %eax
cmpq %rax, %r14
je 0x1b91e
movsd (%rbx,%rax,8), %xmm1
minsd (%rbp,%rax,8), %xmm1
movsd %xmm1, (%rbx,%rax,8)
addsd %xmm1, %xmm0
incq %rax
jmp 0x1b900
movsd 0x10(%rsp), %xmm1
mulsd %xmm0, %xmm1
xorpd %xmm0, %xmm0
xorl %r12d, %r12d
movq 0x30(%rsp), %rax
cmpq %r12, %rax
je 0x1b94e
addsd (%rbx,%r12,8), %xmm0
ucomisd %xmm1, %xmm0
jae 0x1b871
incq %r12
jmp 0x1b934
movq %rax, %r12
jmp 0x1b871
movq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x1f4d1
movq %rax, %r12
leaq -0x1(%r14), %rax
movq %rax, 0x30(%rsp)
movq $0x0, 0x18(%rsp)
movq 0x8(%rsp), %rdi
callq 0x1f526
movsd %xmm0, 0x10(%rsp)
movq 0x18(%rsp), %r15
movq %r15, %r13
movq 0x28(%rsp), %rax
imulq %rax, %r13
shlq $0x2, %r13
movq 0x20(%rsp), %rcx
movq 0x58(%rcx), %rdi
addq %r13, %rdi
imulq %rax, %r12
movq 0x48(%rsp), %rax
leaq (%rax,%r12,4), %rsi
movq %rax, %r12
movq 0x40(%rsp), %rdx
callq 0x95d0
incq %r15
movq %r15, 0x18(%rsp)
cmpq 0x50(%rsp), %r15
je 0x1ba62
cvtsd2ss 0x10(%rsp), %xmm0
movss %xmm0, 0x10(%rsp)
movq 0x20(%rsp), %rax
addq 0x58(%rax), %r13
movq 0x38(%rsp), %rax
movq %rax, (%rsp)
movq %rbp, %rdi
movq 0x28(%rsp), %rsi
movq %r13, %rdx
pushq $0x1
popq %rcx
movq %r12, %r8
movq %r14, %r9
callq 0x9af0
xorps %xmm0, %xmm0
xorl %eax, %eax
cmpq %rax, %r14
je 0x1ba30
movss (%rbx,%rax,4), %xmm1
minss (%rbp,%rax,4), %xmm1
movss %xmm1, (%rbx,%rax,4)
addss %xmm1, %xmm0
incq %rax
jmp 0x1ba12
mulss 0x10(%rsp), %xmm0
xorps %xmm1, %xmm1
xorl %r12d, %r12d
movq 0x30(%rsp), %rax
cmpq %r12, %rax
je 0x1ba5a
addss (%rbx,%r12,4), %xmm1
ucomiss %xmm0, %xmm1
jae 0x1b978
incq %r12
jmp 0x1ba41
movq %rax, %r12
jmp 0x1b978
movq %rbp, %rdi
callq 0x95b0
movq %rbx, %rdi
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x95b0
callq 0x90b0