// File: /workspace/github_c_makefile_star2_O3/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
subq $0x18, %rsp
movq %rcx, %r13
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
callq 0x9610
movl (%r14), %eax
cmpl $0x2, %eax
je 0x127d2
cmpl $0x1, %eax
jne 0x12a44
leaq (,%r15,4), %rbp
movq %rbp, %rdi
callq 0x95b0
movq %rax, %r12
movq %r14, %rdi
movq %r15, %rsi
callq 0x13b51
movq 0x10(%r14), %rdx
movq 0x38(%r14), %rdi
imulq 0x8(%r14), %rdx
shlq $0x2, %rdx
movl $0x0, 0x10(%rsp)
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
movq 0x68(%r14), %rdi
testq %r13, %r13
je 0x12951
testq %rdi, %rdi
je 0x129b1
cmpl $0x0, 0x78(%r14)
je 0x129b1
callq 0x9250
jmp 0x129b1
leaq (,%r15,4), %rdi
callq 0x95b0
movq %rax, %r12
movq %r14, %rdi
movq %r15, %rsi
callq 0x13b51
movq 0x10(%r14), %rdx
movq 0x38(%r14), %rdi
imulq 0x8(%r14), %rdx
shlq $0x3, %rdx
xorl %ebp, %ebp
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
movq 0x68(%r14), %rdi
testq %r13, %r13
je 0x12865
testq %rdi, %rdi
je 0x128cc
cmpl $0x0, 0x78(%r14)
je 0x128cc
callq 0x9250
jmp 0x128cc
testq %rdi, %rdi
jne 0x128d7
movq %r15, %rax
shrq $0x2, %rax
cmpq $0xb, %rax
movl $0xa, %ecx
cmovaeq %rax, %rcx
movq %rcx, 0x10(%rsp)
movl (%r14), %edi
movl $0x1, %ebp
movl $0x1, %esi
callq 0x91b0
movq %rax, %r13
movabsq $0x200000000, %rax      # imm = 0x200000000
movq %rax, 0x28(%r13)
movq $0x5, 0x38(%r13)
movq 0x10(%rsp), %rax
movq %rax, 0x20(%r13)
movl $0x1, %eax
movq %rax, 0x18(%r13)
movq %rax, 0x48(%r13)
movl 0x30(%r14), %eax
movl %eax, 0x50(%r13)
movq %r13, 0x68(%r14)
movl %ebp, 0x78(%r14)
movq %r13, %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
movq 0x50(%r14), %rsi
testq %r15, %r15
je 0x12931
movq 0x10(%r14), %rax
shlq $0x3, %rax
xorl %ecx, %ecx
movabsq $0x3ff0000000000000, %rdx # imm = 0x3FF0000000000000
movq %rsi, %rdi
movl (%r12,%rcx,4), %r8d
movq %rdx, (%rdi,%r8,8)
incq %rcx
addq %rax, %rdi
cmpq %rcx, %r15
jne 0x1291e
movq 0x48(%r14), %rdx
movq 0x38(%r14), %r8
movq 0x40(%r14), %rcx
movq %r15, (%rsp)
movq %r14, %rdi
movq %rbx, %r9
callq 0x1425d
jmp 0x12a2e
testq %rdi, %rdi
jne 0x129c0
movq %r15, %rax
shrq $0x2, %rax
cmpq $0xb, %rax
movl $0xa, %ebp
cmovaeq %rax, %rbp
movl (%r14), %edi
movl $0x1, 0x10(%rsp)
movl $0x1, %esi
callq 0x91b0
movq %rax, %r13
movabsq $0x200000000, %rax      # imm = 0x200000000
movq %rax, 0x28(%r13)
movq $0x5, 0x38(%r13)
movq %rbp, 0x20(%r13)
movl $0x1, %eax
movq %rax, 0x18(%r13)
movq %rax, 0x48(%r13)
movl 0x30(%r14), %eax
movl %eax, 0x50(%r13)
movq %r13, 0x68(%r14)
movl 0x10(%rsp), %eax
movl %eax, 0x78(%r14)
movq %r13, %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
movq 0x50(%r14), %rsi
testq %r15, %r15
je 0x12a13
movq 0x10(%r14), %rax
shlq $0x2, %rax
xorl %ecx, %ecx
movq %rsi, %rdx
movl (%r12,%rcx,4), %edi
movl $0x3f800000, (%rdx,%rdi,4) # imm = 0x3F800000
incq %rcx
addq %rax, %rdx
cmpq %rcx, %r15
jne 0x129fd
movq 0x48(%r14), %rdx
movq 0x38(%r14), %r8
movq 0x40(%r14), %rcx
movq %r15, (%rsp)
movq %r14, %rdi
movq %rbx, %r9
callq 0x13ba4
movq %r12, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x9580
callq 0x90b0