// File: /workspace/github_c_makefile_star2_O2/zpole[P]IICV/vl/gmm.c
// Function: vl_gmm_init_with_kmeans
void
vl_gmm_init_with_kmeans
(VlGMM * self,
 void const * data,
 vl_size numData,
 VlKMeans * kmeansInit)
{
  vl_gmm_reset (self) ;
  switch (self->dataType) {
    case VL_TYPE_FLOAT :
      _vl_gmm_init_with_kmeans_f
      (self, (float const *)data, numData, kmeansInit) ;
      break ;
    case VL_TYPE_DOUBLE :
      _vl_gmm_init_with_kmeans_d
      (self, (double const *)data, numData, kmeansInit) ;
      break ;
    default:
      abort() ;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r13
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
callq 0x9650
movl (%r14), %eax
cmpl $0x2, %eax
je 0x11534
cmpl $0x1, %eax
jne 0x116bf
leaq (,%r15,4), %rbp
movq %rbp, %rdi
callq 0x95e0
movq %rax, %r12
movq %r14, %rdi
movq %r15, %rsi
callq 0x126b1
movq 0x10(%r14), %rdx
movq 0x38(%r14), %rdi
imulq 0x8(%r14), %rdx
shlq $0x2, %rdx
xorl %esi, %esi
callq 0x9420
movq 0x10(%r14), %rdx
movq 0x48(%r14), %rdi
shlq $0x2, %rdx
xorl %esi, %esi
callq 0x9420
movq 0x10(%r14), %rdx
movq 0x40(%r14), %rdi
imulq 0x8(%r14), %rdx
shlq $0x2, %rdx
xorl %esi, %esi
callq 0x9420
movq 0x50(%r14), %rdi
imulq 0x10(%r14), %rbp
xorl %esi, %esi
movq %rbp, %rdx
callq 0x9420
testq %r13, %r13
je 0x1147f
movq %r14, %rdi
movq %r13, %rsi
callq 0x98c0
movq 0x68(%r14), %rdi
testq %rdi, %rdi
jne 0x114e1
movq %r15, %rax
shrq $0x2, %rax
cmpq $0xb, %rax
pushq $0xa
popq %r13
cmovaeq %rax, %r13
movl (%r14), %edi
pushq $0x1
popq %rsi
callq 0x91b0
movq %rax, %rdi
movabsq $0x200000000, %rax      # imm = 0x200000000
movq %rax, 0x28(%rdi)
movq $0x5, 0x38(%rdi)
movq %r13, 0x20(%rdi)
pushq $0x1
popq %rax
movq %rax, 0x18(%rdi)
movq %rax, 0x48(%rdi)
movl 0x30(%r14), %eax
movl %eax, 0x50(%rdi)
movq %rdi, 0x68(%r14)
movl $0x1, 0x78(%r14)
movq 0x8(%r14), %rdx
movq 0x10(%r14), %r8
movq %rbx, %rsi
movq %r15, %rcx
callq 0x9530
movq 0x68(%r14), %rdi
xorl %r13d, %r13d
movq %r12, %rsi
xorl %edx, %edx
movq %rbx, %rcx
movq %r15, %r8
callq 0x9b30
movq 0x50(%r14), %rsi
cmpq %r13, %r15
je 0x1168e
movl (%r12,%r13,4), %eax
movq 0x10(%r14), %rcx
imulq %r13, %rcx
leaq (%rsi,%rcx,4), %rcx
movl $0x3f800000, (%rcx,%rax,4) # imm = 0x3F800000
incq %r13
jmp 0x1150f
leaq (,%r15,4), %rdi
callq 0x95e0
movq %rax, %r12
movq %r14, %rdi
movq %r15, %rsi
callq 0x126b1
movq 0x10(%r14), %rdx
movq 0x38(%r14), %rdi
imulq 0x8(%r14), %rdx
shlq $0x3, %rdx
xorl %esi, %esi
callq 0x9420
movq 0x10(%r14), %rdx
movq 0x48(%r14), %rdi
shlq $0x3, %rdx
xorl %esi, %esi
callq 0x9420
movq 0x10(%r14), %rdx
movq 0x40(%r14), %rdi
imulq 0x8(%r14), %rdx
shlq $0x3, %rdx
xorl %esi, %esi
callq 0x9420
movq 0x50(%r14), %rdi
movq 0x10(%r14), %rdx
imulq %r15, %rdx
shlq $0x3, %rdx
xorl %esi, %esi
callq 0x9420
testq %r13, %r13
je 0x115b9
movq %r14, %rdi
movq %r13, %rsi
callq 0x98c0
movq 0x68(%r14), %rdi
testq %rdi, %rdi
jne 0x1161b
movq %r15, %rax
shrq $0x2, %rax
cmpq $0xb, %rax
pushq $0xa
popq %r13
cmovaeq %rax, %r13
movl (%r14), %edi
pushq $0x1
popq %rsi
callq 0x91b0
movq %rax, %rdi
movabsq $0x200000000, %rax      # imm = 0x200000000
movq %rax, 0x28(%rdi)
movq $0x5, 0x38(%rdi)
movq %r13, 0x20(%rdi)
pushq $0x1
popq %rax
movq %rax, 0x18(%rdi)
movq %rax, 0x48(%rdi)
movl 0x30(%r14), %eax
movl %eax, 0x50(%rdi)
movq %rdi, 0x68(%r14)
movl $0x1, 0x78(%r14)
movq 0x8(%r14), %rdx
movq 0x10(%r14), %r8
movq %rbx, %rsi
movq %r15, %rcx
callq 0x9530
movq 0x68(%r14), %rdi
xorl %r13d, %r13d
movq %r12, %rsi
xorl %edx, %edx
movq %rbx, %rcx
movq %r15, %r8
callq 0x9b30
movq 0x50(%r14), %rsi
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
cmpq %r13, %r15
je 0x11671
movl (%r12,%r13,4), %ecx
movq 0x10(%r14), %rdx
imulq %r13, %rdx
leaq (%rsi,%rdx,8), %rdx
movq %rax, (%rdx,%rcx,8)
incq %r13
jmp 0x11653
movq 0x48(%r14), %rdx
movq 0x38(%r14), %r8
movq 0x40(%r14), %rcx
movq %r15, (%rsp)
movq %r14, %rdi
movq %rbx, %r9
callq 0x12d5b
jmp 0x116a9
movq 0x48(%r14), %rdx
movq 0x38(%r14), %r8
movq 0x40(%r14), %rcx
movq %r15, (%rsp)
movq %r14, %rdi
movq %rbx, %r9
callq 0x126f3
movq %r12, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x95b0
callq 0x90b0