// File: /workspace/github_c_makefile_star2_O1/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 0x9610
movl (%r14), %eax
cmpl $0x2, %eax
je 0x127bf
cmpl $0x1, %eax
jne 0x1294d
leaq (,%r15,4), %rbp
movq %rbp, %rdi
callq 0x95b0
movq %rax, %r12
movq %r14, %rdi
movq %r15, %rsi
callq 0x13b33
movq 0x10(%r14), %rdx
movq 0x38(%r14), %rdi
imulq 0x8(%r14), %rdx
shlq $0x2, %rdx
xorl %esi, %esi
callq 0x9400
movq 0x10(%r14), %rdx
movq 0x48(%r14), %rdi
shlq $0x2, %rdx
xorl %esi, %esi
callq 0x9400
movq 0x10(%r14), %rdx
movq 0x40(%r14), %rdi
imulq 0x8(%r14), %rdx
shlq $0x2, %rdx
xorl %esi, %esi
callq 0x9400
movq 0x50(%r14), %rdi
imulq 0x10(%r14), %rbp
xorl %esi, %esi
movq %rbp, %rdx
callq 0x9400
testq %r13, %r13
je 0x126e4
movq 0x68(%r14), %rdi
testq %rdi, %rdi
je 0x126d8
cmpl $0x0, 0x78(%r14)
je 0x126d8
callq 0x9250
movq %r13, 0x68(%r14)
movl $0x0, 0x78(%r14)
cmpq $0x0, 0x68(%r14)
jne 0x12747
movq %r15, %rax
shrq $0x2, %rax
cmpq $0xb, %rax
movl $0xa, %r13d
cmovaeq %rax, %r13
movl (%r14), %edi
movl $0x1, %esi
callq 0x91b0
movabsq $0x200000000, %rcx      # imm = 0x200000000
movq %rcx, 0x28(%rax)
movq $0x5, 0x38(%rax)
movq %r13, 0x20(%rax)
movl $0x1, %ecx
movq %rcx, 0x18(%rax)
movq %rcx, 0x48(%rax)
movl 0x30(%r14), %ecx
movl %ecx, 0x50(%rax)
movq %rax, 0x68(%r14)
movl $0x1, 0x78(%r14)
movq 0x68(%r14), %rdi
movq 0x8(%r14), %rdx
movq 0x10(%r14), %r8
movq %rbx, %rsi
movq %r15, %rcx
callq 0x9500
movq 0x68(%r14), %rdi
movq %r12, %rsi
xorl %edx, %edx
movq %rbx, %rcx
movq %r15, %r8
callq 0x9ab0
testq %r15, %r15
je 0x1279b
movq 0x10(%r14), %rax
movq 0x50(%r14), %rcx
shlq $0x2, %rax
xorl %edx, %edx
movl (%r12,%rdx,4), %esi
movl $0x3f800000, (%rcx,%rsi,4) # imm = 0x3F800000
incq %rdx
addq %rax, %rcx
cmpq %rdx, %r15
jne 0x12785
movq 0x50(%r14), %rsi
movq 0x48(%r14), %rdx
movq 0x38(%r14), %r8
movq 0x40(%r14), %rcx
movq %r15, (%rsp)
movq %r14, %rdi
movq %rbx, %r9
callq 0x13b86
jmp 0x12937
leaq (,%r15,4), %rdi
callq 0x95b0
movq %rax, %r12
movq %r14, %rdi
movq %r15, %rsi
callq 0x13b33
movq 0x10(%r14), %rdx
movq 0x38(%r14), %rdi
imulq 0x8(%r14), %rdx
shlq $0x3, %rdx
xorl %esi, %esi
callq 0x9400
movq 0x10(%r14), %rdx
movq 0x48(%r14), %rdi
shlq $0x3, %rdx
xorl %esi, %esi
callq 0x9400
movq 0x10(%r14), %rdx
movq 0x40(%r14), %rdi
imulq 0x8(%r14), %rdx
shlq $0x3, %rdx
xorl %esi, %esi
callq 0x9400
movq 0x50(%r14), %rdi
movq 0x10(%r14), %rdx
imulq %r15, %rdx
shlq $0x3, %rdx
xorl %esi, %esi
callq 0x9400
testq %r13, %r13
je 0x1285a
movq 0x68(%r14), %rdi
testq %rdi, %rdi
je 0x1284e
cmpl $0x0, 0x78(%r14)
je 0x1284e
callq 0x9250
movq %r13, 0x68(%r14)
movl $0x0, 0x78(%r14)
cmpq $0x0, 0x68(%r14)
jne 0x128bd
movq %r15, %rax
shrq $0x2, %rax
cmpq $0xb, %rax
movl $0xa, %r13d
cmovaeq %rax, %r13
movl (%r14), %edi
movl $0x1, %esi
callq 0x91b0
movabsq $0x200000000, %rcx      # imm = 0x200000000
movq %rcx, 0x28(%rax)
movq $0x5, 0x38(%rax)
movq %r13, 0x20(%rax)
movl $0x1, %ecx
movq %rcx, 0x18(%rax)
movq %rcx, 0x48(%rax)
movl 0x30(%r14), %ecx
movl %ecx, 0x50(%rax)
movq %rax, 0x68(%r14)
movl $0x1, 0x78(%r14)
movq 0x68(%r14), %rdi
movq 0x8(%r14), %rdx
movq 0x10(%r14), %r8
movq %rbx, %rsi
movq %r15, %rcx
callq 0x9500
movq 0x68(%r14), %rdi
movq %r12, %rsi
xorl %edx, %edx
movq %rbx, %rcx
movq %r15, %r8
callq 0x9ab0
testq %r15, %r15
je 0x12918
movq 0x10(%r14), %rax
movq 0x50(%r14), %rcx
shlq $0x3, %rax
xorl %edx, %edx
movabsq $0x3ff0000000000000, %rsi # imm = 0x3FF0000000000000
movl (%r12,%rdx,4), %edi
movq %rsi, (%rcx,%rdi,8)
incq %rdx
addq %rax, %rcx
cmpq %rdx, %r15
jne 0x12905
movq 0x50(%r14), %rsi
movq 0x48(%r14), %rdx
movq 0x38(%r14), %r8
movq 0x40(%r14), %rcx
movq %r15, (%rsp)
movq %r14, %rdi
movq %rbx, %r9
callq 0x14285
movq %r12, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x9580
callq 0x90b0