// File: /workspace/github_c_makefile_star2_O2/zpole[P]IICV/vl/kmeans.c
// Function: vl_kmeans_init_centers_with_rand_data
VL_EXPORT void
vl_kmeans_init_centers_with_rand_data
(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_with_rand_data_f
      (self, (float const *)data, dimension, numData, numCenters) ;
      break ;
    case VL_TYPE_DOUBLE :
      _vl_kmeans_init_centers_with_rand_data_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 $0x38, %rsp
movq %r8, %rbx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, 0x18(%rsp)
movq %rdi, %r13
callq 0x9570
movl (%r13), %eax
cmpl $0x2, %eax
movq %rbx, 0x30(%rsp)
movq %r13, 0x10(%rsp)
je 0x1b511
cmpl $0x1, %eax
jne 0x1b724
callq 0x9910
movq %rax, %r12
movq %r15, 0x8(%r13)
movq %rbx, 0x10(%r13)
leaq (,%r15,4), %rdi
movq %rdi, 0x28(%rsp)
imulq %rbx, %rdi
callq 0x95e0
movq %rax, 0x58(%r13)
leaq (,%r14,8), %rdi
callq 0x95e0
movq %rax, %rbp
movl 0x30(%r13), %edi
callq 0x9830
movq %rax, 0x20(%rsp)
leaq (,%rbx,4), %rdi
callq 0x95e0
movq %rax, %rbx
xorl %eax, %eax
cmpq %rax, %r14
je 0x1b641
movq %rax, (%rbp,%rax,8)
incq %rax
jmp 0x1b4fe
callq 0x9910
movq %rax, %r12
movq %r15, 0x8(%r13)
movq %rbx, 0x10(%r13)
leaq (,%r15,8), %rdi
movq %rdi, 0x28(%rsp)
imulq %rbx, %rdi
callq 0x95e0
movq %rax, 0x58(%r13)
leaq (,%r14,8), %rdi
callq 0x95e0
movq %rax, %rbp
movl 0x30(%r13), %edi
callq 0x9860
movq %rax, 0x20(%rsp)
leaq (,%rbx,8), %rdi
callq 0x95e0
movq %rax, %rbx
xorl %eax, %eax
cmpq %rax, %r14
je 0x1b57a
movq %rax, (%rbp,%rax,8)
incq %rax
jmp 0x1b56b
movq %rbp, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x1f495
xorl %r12d, %r12d
xorl %r13d, %r13d
movq 0x30(%rsp), %rax
subq %r12, %rax
jbe 0x1b706
movq %r14, %rcx
subq %r13, %rcx
cmpq %rcx, %rax
jae 0x1b606
movq (%rbp,%r13,8), %rax
imulq %r15, %rax
movq 0x18(%rsp), %rcx
leaq (%rcx,%rax,8), %rdx
movq 0x10(%rsp), %rax
movq 0x58(%rax), %r8
movq 0x20(%rsp), %rax
movq %rax, (%rsp)
movq %rbx, %rdi
movq %r15, %rsi
pushq $0x1
popq %rcx
movq %r12, %r9
callq 0x9b00
xorpd %xmm1, %xmm1
xorl %eax, %eax
xorl %ecx, %ecx
cmpq %rax, %r12
je 0x1b602
movsd (%rbx,%rax,8), %xmm0
cmpeqsd %xmm1, %xmm0
movq %xmm0, %rdx
andl $0x1, %edx
orl %edx, %ecx
incq %rax
jmp 0x1b5e4
testl %ecx, %ecx
jne 0x1b639
movq %r12, %rdi
imulq %r15, %rdi
shlq $0x3, %rdi
movq 0x10(%rsp), %rax
addq 0x58(%rax), %rdi
movq (%rbp,%r13,8), %rax
imulq %r15, %rax
movq 0x18(%rsp), %rcx
leaq (%rcx,%rax,8), %rsi
movq 0x28(%rsp), %rdx
callq 0x95d0
incq %r12
incq %r13
jmp 0x1b58e
movq %rbp, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x1f495
xorl %r12d, %r12d
xorl %r13d, %r13d
movq 0x30(%rsp), %rax
subq %r12, %rax
jbe 0x1b706
movq %r14, %rcx
subq %r13, %rcx
cmpq %rcx, %rax
jae 0x1b6cb
movq (%rbp,%r13,8), %rax
imulq %r15, %rax
movq 0x18(%rsp), %rcx
leaq (%rcx,%rax,4), %rdx
movq 0x10(%rsp), %rax
movq 0x58(%rax), %r8
movq 0x20(%rsp), %rax
movq %rax, (%rsp)
movq %rbx, %rdi
movq %r15, %rsi
pushq $0x1
popq %rcx
movq %r12, %r9
callq 0x9af0
xorps %xmm1, %xmm1
xorl %eax, %eax
xorl %ecx, %ecx
cmpq %rax, %r12
je 0x1b6c7
movss (%rbx,%rax,4), %xmm0
cmpeqss %xmm1, %xmm0
movd %xmm0, %edx
andl $0x1, %edx
orl %edx, %ecx
incq %rax
jmp 0x1b6aa
testl %ecx, %ecx
jne 0x1b6fe
movq %r12, %rdi
imulq %r15, %rdi
shlq $0x2, %rdi
movq 0x10(%rsp), %rax
addq 0x58(%rax), %rdi
movq (%rbp,%r13,8), %rax
imulq %r15, %rax
movq 0x18(%rsp), %rcx
leaq (%rcx,%rax,4), %rsi
movq 0x28(%rsp), %rdx
callq 0x95d0
incq %r12
incq %r13
jmp 0x1b655
movq %rbx, %rdi
callq 0x95b0
movq %rbp, %rdi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x95b0
callq 0x90b0