LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/zpole[P]IICV/vl/host.c
// Function: vl_x86cpu_info_init
VL_INLINE void
_vl_cpuid (vl_int32* info, int function)
{
#if defined(VL_ARCH_IX86) && (defined(__PIC__) || defined(__pic__))
  /* This version is compatible with -fPIC on x386 targets. This special
   * case is required becaus
   * on such platform -fPIC alocates ebx as global offset table pointer.
   * Note that =r below will be mapped to a register different from ebx,
   * so the code is sound. */
  __asm__ __volatile__
  ("pushl %%ebx      \n" /* save %ebx */
   "cpuid            \n"
   "movl %%ebx, %1   \n" /* save what cpuid just put in %ebx */
   "popl %%ebx       \n" /* restore the old %ebx */
   : "=a"(info[0]), "=r"(info[1]), "=c"(info[2]), "=d"(info[3])
   : "a"(function)
   : "cc") ; /* clobbered (cc=condition codes) */
#else /* no -fPIC or -fPIC with a 64-bit target */
  __asm__ __volatile__
  ("cpuid"
   : "=a"(info[0]), "=b"(info[1]), "=c"(info[2]), "=d"(info[3])
   : "a"(function)
   : "cc") ;
#endif
}

// Assembly:
pushq %rbx
xorl %eax, %eax
cpuid
movl %ebx, (%rdi)
movl %edx, 0x4(%rdi)
movl %ecx, 0x8(%rdi)
testl %eax, %eax
jle 0x17347
movl $0x1, %eax
cpuid
movl %edx, %eax
andl $0x800000, %eax         # imm = 0x800000
movl %eax, 0x38(%rdi)
movl %edx, %eax
andl $0x2000000, %eax        # imm = 0x2000000
movl %eax, 0x34(%rdi)
andl $0x4000000, %edx        # imm = 0x4000000
movl %edx, 0x30(%rdi)
movd %ecx, %xmm0
pshufd $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0]
pand 0x1b74e(%rip), %xmm0    # 0x32a90
movdqu %xmm0, 0x20(%rdi)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/zpole[P]IICV/vl/host.c
// Function: vl_x86cpu_info_to_string_copy
char *
_vl_x86cpu_info_to_string_copy (VlX86CpuInfo const *self)
{
  char * string = 0 ;
  int length = 0 ;
  while (string == 0) {
    if (length > 0) {
      string = vl_malloc(sizeof(char) * length) ;
      if (string == NULL) break ;
    }
    length = snprintf(string, length, "%s%s%s%s%s%s%s%s",
                      self->vendor.string,
                      self->hasMMX   ? " MMX" : "",
                      self->hasSSE   ? " SSE" : "",
                      self->hasSSE2  ? " SSE2" : "",
                      self->hasSSE3  ? " SSE3" : "",
                      self->hasSSE41 ? " SSE41" : "",
                      self->hasSSE42 ? " SSE42" : "",
                      self->hasAVX   ? " AVX" : "") ;
    length += 1 ;
  }
  return string ;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x1b4aa(%rip), %r12     # 0x32808
xorl %ebp, %ebp
testl %ebp, %ebp
jle 0x17378
movl %ebp, %edi
callq 0x95b0
movq %rax, %r15
testq %rax, %rax
jne 0x1737b
jmp 0x17423
xorl %r15d, %r15d
cmpl $0x0, 0x38(%rbx)
leaq 0x1b73b(%rip), %r8      # 0x32ac1
cmoveq %r12, %r8
cmpl $0x0, 0x34(%rbx)
leaq 0x1b731(%rip), %r9      # 0x32ac6
cmoveq %r12, %r9
cmpl $0x0, 0x30(%rbx)
leaq 0x1b761(%rip), %r10     # 0x32b05
cmoveq %r12, %r10
movslq %ebp, %rsi
movdqu 0x20(%rbx), %xmm0
pcmpeqd 0x1b6e8(%rip), %xmm0    # 0x32aa0
movmskps %xmm0, %eax
testb $0x8, %al
leaq 0x1b707(%rip), %r11     # 0x32acb
cmovneq %r12, %r11
testb $0x4, %al
leaq 0x1b700(%rip), %rbp     # 0x32ad1
cmovneq %r12, %rbp
testb $0x2, %al
leaq 0x1b6fa(%rip), %r13     # 0x32ad8
cmovneq %r12, %r13
testb $0x1, %al
leaq 0x1b6f4(%rip), %r14     # 0x32adf
cmovneq %r12, %r14
subq $0x8, %rsp
movq %r15, %rdi
leaq 0x1b6b3(%rip), %rdx     # 0x32ab0
movq %rbx, %rcx
xorl %eax, %eax
pushq %r14
pushq %r13
pushq %rbp
pushq %r11
pushq %r10
callq 0x9390
addq $0x30, %rsp
movl %eax, %ebp
incl %ebp
testq %r15, %r15
je 0x17360
jmp 0x17426
xorl %r15d, %r15d
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/zpole[P]IICV/vl/ikmeans.c
// Function: vl_ikm_delete
void
vl_ikm_delete (VlIKMFilt* f)
{
  if (f) {
    if (f->centers) vl_free(f->centers) ;
    if (f->inter_dist) vl_free(f->inter_dist) ;
    vl_free(f) ;
  }
}

// Assembly:
testq %rdi, %rdi
je 0x17521
pushq %rbx
movq %rdi, %rbx
movq 0x20(%rdi), %rdi
testq %rdi, %rdi
je 0x1750a
callq 0x9580
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0x17518
callq 0x9580
movq %rbx, %rdi
popq %rbx
jmp 0x9580
retq
// File: /workspace/github_c_makefile_star2_O3/zpole[P]IICV/vl/ikmeans.c
// Function: vl_ikm_push
void
vl_ikm_push (VlIKMFilt *f, vl_uint32 *asgn, vl_uint8 const *data, vl_size N) {
  switch (f -> method) {
  case VL_IKM_LLOYD : vl_ikm_push_lloyd (f, asgn, data, N) ; break ;
  case VL_IKM_ELKAN : vl_ikm_push_elkan (f, asgn, data, N) ; break ;
  default :
    abort() ;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r8
movq %rdx, (%rsp)
movl 0x18(%rdi), %eax
cmpl $0x1, %eax
movq %rcx, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
je 0x180eb
testl %eax, %eax
jne 0x181ab
testq %r8, %r8
je 0x1819c
movq 0x20(%rdi), %r12
movq (%rdi), %r13
movq 0x8(%rdi), %rbp
xorl %r15d, %r15d
movq %r12, %rdi
movq (%rsp), %rbx
movq %rbx, %rsi
movq %r13, %rdx
movq %rbp, %rcx
callq 0x9030
movq 0x8(%rsp), %rcx
movl %eax, (%rcx,%r15,4)
incq %r15
addq %r13, %rbx
movq %rbx, (%rsp)
cmpq %r15, 0x10(%rsp)
jne 0x180b7
jmp 0x1819c
testq %r8, %r8
je 0x1819c
movq 0x28(%rdi), %rax
movq 0x8(%rdi), %r14
xorl %ecx, %ecx
movl $0x0, %edx
testq %r14, %r14
je 0x1818d
movl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
xorl %r9d, %r9d
xorl %r10d, %r10d
xorl %edx, %edx
movq (%rsp), %rsi
movq %rdx, %r11
imulq %r14, %r11
leaq (%rax,%r11,4), %r11
cmpl %r8d, (%r11,%r10,4)
jge 0x18177
movq (%rdi), %r11
testq %r11, %r11
je 0x1816a
movq %r11, %r12
imulq %r9, %r12
addq 0x20(%rdi), %r12
movq %rcx, %r13
imulq %r11, %r13
addq %rsi, %r13
xorl %r15d, %r15d
xorl %ebp, %ebp
movzbl (%r13,%r15), %ebx
subl (%r12,%r15,4), %ebx
imull %ebx, %ebx
addl %ebx, %ebp
incq %r15
cmpq %r15, %r11
jne 0x18151
jmp 0x1816c
xorl %ebp, %ebp
cmpl %r8d, %ebp
cmovlq %r10, %rdx
cmovll %ebp, %r8d
incq %r10
addq $0x4, %r9
cmpq %r14, %r10
jne 0x1811e
movq 0x10(%rsp), %r8
movq 0x8(%rsp), %rsi
movl %edx, (%rsi,%rcx,4)
incq %rcx
cmpq %r8, %rcx
jne 0x180fe
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x90b0
// File: /workspace/github_c_makefile_star2_O3/zpole[P]IICV/vl/ikmeans.c
// Function: vl_ikm_push_one
vl_uint32
vl_ikm_push_one (vl_ikmacc_t const *centers,
		 vl_uint8 const *data,
		 vl_size M, vl_size K)
{
  vl_uindex i,k ;

  /* assign data to centers */
  vl_uindex best = (vl_uindex) -1 ;
  vl_ikmacc_t best_dist = 0 ;

  for(k = 0 ; k < K ; ++k) {
    vl_ikmacc_t dist = 0 ;

    /* compute distance with this center */
    for(i = 0 ; i < M ; ++i) {
      vl_ikmacc_t delta = (vl_ikmacc_t)data[i] - centers[k*M + i] ;
      dist += delta * delta ;
    }

    /* compare with current best */
    if (best == (vl_uindex) -1 || dist < best_dist) {
      best = k  ;
      best_dist = dist ;
    }
  }
  return (vl_uint32)best;
}

// Assembly:
testq %rcx, %rcx
je 0x18218
pushq %rbp
pushq %rbx
leaq (,%rdx,4), %r8
movq $-0x1, %rax
xorl %r9d, %r9d
xorl %r10d, %r10d
movl $0x0, %r11d
testq %rdx, %rdx
je 0x181f1
xorl %ebx, %ebx
xorl %r11d, %r11d
movzbl (%rsi,%rbx), %ebp
subl (%rdi,%rbx,4), %ebp
imull %ebp, %ebp
addl %ebp, %r11d
incq %rbx
cmpq %rbx, %rdx
jne 0x181dc
cmpq $-0x1, %rax
sete %bl
cmpl %r9d, %r11d
setl %bpl
orb %bl, %bpl
cmovneq %r10, %rax
cmovnel %r11d, %r9d
incq %r10
addq %r8, %rdi
cmpq %rcx, %r10
jne 0x181cc
popq %rbx
popq %rbp
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
// File: /workspace/github_c_makefile_star2_O3/zpole[P]IICV/vl/imopv.c
// Function: vl_imsmooth_f
VL_EXPORT void
VL_XCAT(vl_imsmooth_, SFX)
(T * smoothed, vl_size smoothedStride,
 T const *image, vl_size width, vl_size height, vl_size stride,
 double sigmax, double sigmay)
{
  T *filterx, *filtery, *buffer ;
  vl_size sizex, sizey ;

  filterx = VL_XCAT(_vl_new_gaussian_fitler_,SFX)(&sizex,sigmax) ;
  if (sigmax == sigmay) {
    filtery = filterx ;
    sizey = sizex ;
  } else {
    filtery = VL_XCAT(_vl_new_gaussian_fitler_,SFX)(&sizey,sigmay) ;
  }
  buffer = vl_malloc(width*height*sizeof(T)) ;

  VL_XCAT(vl_imconvcol_v,SFX) (buffer, height,
                               image, width, height, stride,
                               filtery,
                               -((signed)sizey-1)/2, ((signed)sizey-1)/2,
                               1, VL_PAD_BY_CONTINUITY | VL_TRANSPOSE) ;

  VL_XCAT(vl_imconvcol_v,SFX) (smoothed, smoothedStride,
                               buffer, height, width, height,
                               filterx,
                               -((signed)sizex-1)/2, ((signed)sizex-1)/2,
                               1, VL_PAD_BY_CONTINUITY | VL_TRANSPOSE) ;

  vl_free(buffer) ;
  vl_free(filterx) ;
  if (sigmax != sigmay) {
    vl_free(filtery) ;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movsd %xmm1, 0x8(%rsp)
movsd %xmm0, 0x10(%rsp)
movq %r9, 0x28(%rsp)
movq %r8, %r14
movq %rcx, %r12
movq %rdx, 0x20(%rsp)
movq %rsi, 0x38(%rsp)
movq %rdi, 0x30(%rsp)
leaq 0x18(%rsp), %rdi
callq 0x1920b
movsd 0x8(%rsp), %xmm0
movq %rax, %rbx
movsd 0x10(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jne 0x190e3
jp 0x190e3
movq 0x18(%rsp), %r15
movq %r15, %rbp
movq %rbx, (%rsp)
jmp 0x190fd
leaq 0x40(%rsp), %r13
movq %r13, %rdi
callq 0x1920b
movq %rax, (%rsp)
movq (%r13), %rbp
movq 0x18(%rsp), %r15
movq %r12, %rdi
imulq %r14, %rdi
shlq $0x2, %rdi
callq 0x95b0
movq %rax, %r13
leal -0x1(%rbp), %eax
movl $0x1, %r11d
movl $0x1, %ecx
subl %ebp, %ecx
movl %ecx, %edx
shrl $0x1f, %edx
addl %ecx, %edx
sarl %edx
movslq %edx, %r10
shrl $0x1f, %eax
addl %ebp, %eax
decl %eax
sarl %eax
cltq
subq $0x8, %rsp
movl $0x5, %ebp
movq %r13, %rdi
movq %r14, %rsi
movq 0x28(%rsp), %rdx
movq %r12, %rcx
movq %r14, %r8
movq 0x30(%rsp), %r9
pushq %rbp
pushq %r11
pushq %rax
pushq %r10
movq 0x28(%rsp), %rbp
pushq %rbp
callq 0x92b0
addq $0x30, %rsp
leal -0x1(%r15), %eax
movl $0x1, %ecx
subl %r15d, %ecx
movl %ecx, %edx
shrl $0x1f, %edx
addl %ecx, %edx
sarl %edx
movslq %edx, %r10
shrl $0x1f, %eax
addl %r15d, %eax
decl %eax
sarl %eax
cltq
subq $0x8, %rsp
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq %r13, %rdx
movq %r14, %rcx
movq %r12, %r8
movq %r14, %r9
movl $0x5, %r11d
pushq %r11
movl $0x1, %r11d
pushq %r11
pushq %rax
pushq %r10
pushq %rbx
callq 0x92b0
addq $0x30, %rsp
movq %r13, %rdi
callq 0x9580
movq %rbx, %rdi
callq 0x9580
movsd 0x10(%rsp), %xmm0
ucomisd 0x8(%rsp), %xmm0
jne 0x191e6
jnp 0x191fc
movq %rbp, %rdi
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x9580
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/zpole[P]IICV/vl/imopv.c
// Function: vl_new_gaussian_fitler_f
static T*
VL_XCAT(_vl_new_gaussian_fitler_,SFX)(vl_size *size, double sigma)
{
  T* filter ;
  T mass = (T)1.0 ;
  vl_index i ;
  vl_size width = vl_ceil_d(sigma * 3.0) ;
  *size = 2 * width + 1 ;

  assert(size) ;

  filter = vl_malloc((*size) * sizeof(T)) ;
  filter[width] = 1.0 ;
  for (i = 1 ; i <= (signed)width ; ++i) {
    double x = (double)i / sigma ;
    double g = exp(-0.5 * x * x) ;
    mass += g + g ;
    filter[width-i] = g ;
    filter[width+i] = g ;
  }
  for (i = 0 ; i < (signed)(*size) ; ++i) {filter[i] /= mass ;}
  return filter ;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movapd %xmm0, %xmm1
movq %rdi, %r14
movsd 0x18ff8(%rip), %xmm0    # 0x32220
movsd %xmm1, 0x10(%rsp)
mulsd %xmm1, %xmm0
callq 0x99c0
cvttsd2si %xmm0, %r12
leaq (%r12,%r12), %rax
leaq 0x1(,%r12,2), %rcx
movq %rcx, (%r14)
leaq 0x4(,%rax,4), %rdi
callq 0x95b0
movq %rax, %rbx
movl $0x3f800000, (%rax,%r12,4) # imm = 0x3F800000
movslq %r12d, %r15
testq %r15, %r15
jle 0x192e1
leaq (%rbx,%r12,4), %r12
negq %r15
movl $0x1, %r13d
movss 0x190dc(%rip), %xmm2    # 0x3235c
xorl %ebp, %ebp
movss %xmm2, 0xc(%rsp)
xorps %xmm1, %xmm1
cvtsi2sd %r13, %xmm1
divsd 0x10(%rsp), %xmm1
movapd %xmm1, %xmm0
mulsd 0x18f86(%rip), %xmm0    # 0x32228
mulsd %xmm1, %xmm0
callq 0x9a60
xorps %xmm1, %xmm1
cvtsd2ss %xmm0, %xmm1
addsd %xmm0, %xmm0
xorps %xmm2, %xmm2
cvtss2sd 0xc(%rsp), %xmm2
addsd %xmm0, %xmm2
cvtsd2ss %xmm2, %xmm2
movss %xmm1, -0x4(%r12,%rbp,4)
movss %xmm1, (%r12,%r13,4)
incq %r13
decq %rbp
cmpq %rbp, %r15
jne 0x19282
jmp 0x192e9
movss 0x19073(%rip), %xmm2    # 0x3235c
movslq (%r14), %rax
testq %rax, %rax
jle 0x19309
xorl %ecx, %ecx
movss (%rbx,%rcx,4), %xmm0
divss %xmm2, %xmm0
movss %xmm0, (%rbx,%rcx,4)
incq %rcx
cmpq %rcx, %rax
jne 0x192f3
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/zpole[P]IICV/vl/imopv.c
// Function: vl_imintegral_f
VL_EXPORT void
VL_XCAT(vl_imintegral_, SFX)
(T * integral, vl_size integralStride,
 T const * image,
 vl_size imageWidth, vl_size imageHeight, vl_size imageStride)
{
  vl_uindex x, y ;
  T temp  = 0 ;

  if (imageHeight > 0) {
    for (x = 0 ; x < imageWidth ; ++ x) {
      temp += *image++ ;
      *integral++ = temp ;
    }
  }

  for (y = 1 ; y < imageHeight ; ++ y) {
    T * integralPrev ;
    integral += integralStride - imageWidth ;
    image += imageStride - imageWidth ;
    integralPrev = integral - integralStride ;

    temp = 0 ;
    for (x = 0 ; x < imageWidth ; ++ x) {
      temp += *image++ ;
      *integral++ = *integralPrev++ + temp ;
    }
  }
}

// Assembly:
testq %r8, %r8
sete %al
testq %rcx, %rcx
sete %r10b
orb %al, %r10b
jne 0x1a471
xorps %xmm0, %xmm0
xorl %eax, %eax
xorl %r10d, %r10d
addss (%rdx,%r10,4), %xmm0
movss %xmm0, (%rdi,%r10,4)
incq %r10
addq $-0x4, %rax
cmpq %r10, %rcx
jne 0x1a453
subq %rax, %rdi
subq %rax, %rdx
cmpq $0x2, %r8
jb 0x1a4fd
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rax
subq %rcx, %rax
movq %r9, %r10
subq %rcx, %r10
leaq (,%rcx,4), %r11
negq %r11
shlq $0x2, %rsi
shlq $0x2, %r9
movl $0x1, %ebx
testq %rcx, %rcx
je 0x1a4e8
leaq (%rdi,%rsi), %r14
addq %r9, %rdx
xorps %xmm0, %xmm0
movq %rcx, %r15
addss (%rdx,%r11), %xmm0
movss (%rdi,%r11), %xmm1
addss %xmm0, %xmm1
movss %xmm1, (%r14,%r11)
addq $0x4, %rdi
addq $0x4, %r14
addq $0x4, %rdx
decq %r15
jne 0x1a4b6
addq %r11, %r14
addq %r11, %rdx
movq %r14, %rdi
jmp 0x1a4f0
leaq (%rdi,%rax,4), %rdi
leaq (%rdx,%r10,4), %rdx
incq %rbx
cmpq %r8, %rbx
jne 0x1a4a4
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/zpole[P]IICV/vl/kdtree.c
// Function: vl_kdforest_new
VlKDForest *
vl_kdforest_new (vl_type dataType,
                 vl_size dimension, vl_size numTrees, VlVectorComparisonType distance)
{
  VlKDForest * self = vl_calloc (sizeof(VlKDForest), 1) ;

  assert(dataType == VL_TYPE_FLOAT || dataType == VL_TYPE_DOUBLE) ;
  assert(dimension >= 1) ;
  assert(numTrees >= 1) ;

  self -> rand = vl_get_rand () ;
  self -> dataType = dataType ;
  self -> numData = 0 ;
  self -> data = 0 ;
  self -> dimension = dimension ;
  self -> numTrees = numTrees ;
  self -> trees = 0 ;
  self -> thresholdingMethod = VL_KDTREE_MEDIAN ;
  self -> splitHeapSize = VL_MIN(numTrees, VL_KDTREE_SPLIT_HEAP_SIZE) ;
  self -> splitHeapNumNodes = 0 ;
  self -> distance = distance;
  self -> maxNumNodes = 0 ;
  self -> numSearchers = 0 ;
  self -> headSearcher = 0 ;

  switch (self->dataType) {
    case VL_TYPE_FLOAT:
      self -> distanceFunction = (void(*)(void))
      vl_get_vector_comparison_function_f (distance) ;
      break;
    case VL_TYPE_DOUBLE :
      self -> distanceFunction = (void(*)(void))
      vl_get_vector_comparison_function_d (distance) ;
      break ;
    default :
      abort() ;
  }

  return self ;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %ecx, %ebp
movq %rdx, %r15
movq %rsi, %r12
movl %edi, %r14d
movl $0xf8, %edi
movl $0x1, %esi
callq 0x98f0
movq %rax, %rbx
callq 0x98a0
movq %rax, 0x8(%rbx)
movl %r14d, 0x10(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rbx)
movq %r12, (%rbx)
movq %r15, 0x40(%rbx)
xorl %eax, %eax
movq %rax, 0x38(%rbx)
movl $0x0, 0x48(%rbx)
cmpq $0x5, %r15
movl $0x5, %ecx
cmovbq %r15, %rcx
movq %rcx, 0xd0(%rbx)
movq %rax, 0xc8(%rbx)
movl %ebp, 0x28(%rbx)
movq %rax, 0xd8(%rbx)
movups %xmm0, 0xe8(%rbx)
cmpl $0x2, %r14d
je 0x1ce76
cmpl $0x1, %r14d
jne 0x1ce8d
movl %ebp, %edi
callq 0x97d0
jmp 0x1ce7d
movl %ebp, %edi
callq 0x9800
movq %rax, 0x30(%rbx)
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x90b0
// File: /workspace/github_c_makefile_star2_O3/zpole[P]IICV/vl/kdtree.c
// Function: vl_kdforest_new_searcher
VlKDForestSearcher *
vl_kdforest_new_searcher (VlKDForest * kdforest)
{
  VlKDForestSearcher * self = vl_calloc(sizeof(VlKDForestSearcher), 1);
  if(kdforest->numSearchers == 0) {
    kdforest->headSearcher = self;
    self->previous = NULL;
    self->next = NULL;
  } else {
    VlKDForestSearcher * lastSearcher = kdforest->headSearcher;
    while (1) {
      if(lastSearcher->next) {
        lastSearcher = lastSearcher->next;
      } else {
        lastSearcher->next = self;
        self->previous = lastSearcher;
        self->next = NULL;
        break;
      }
    }
  }

  kdforest->numSearchers++;

  self->forest = kdforest;
  self->searchHeapArray = vl_malloc (sizeof(VlKDForestSearchState) * kdforest->maxNumNodes) ;
  self->searchIdBook = vl_calloc (sizeof(vl_uindex), kdforest->numData) ;
  return self ;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movl $0x50, %edi
movl $0x1, %esi
callq 0x98f0
movq %rax, %rbx
movq 0xe8(%r14), %rax
leaq 0xf0(%r14), %rcx
testq %rax, %rax
je 0x1ced1
movq (%rcx), %rsi
movq %rsi, %rcx
movq (%rsi), %rsi
movq %rcx, %rdx
testq %rsi, %rsi
jne 0x1cec1
jmp 0x1ced3
xorl %edx, %edx
movq %rbx, (%rcx)
movq %rdx, 0x8(%rbx)
movq $0x0, (%rbx)
incq %rax
movq %rax, 0xe8(%r14)
movq %r14, 0x20(%rbx)
movq 0xd8(%r14), %rax
shlq $0x3, %rax
leaq (%rax,%rax,2), %rdi
callq 0x95b0
movq %rax, 0x18(%rbx)
movq 0x20(%r14), %rsi
movl $0x8, %edi
callq 0x98f0
movq %rax, 0x10(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/zpole[P]IICV/vl/kdtree.c
// Function: vl_kdforestsearcher_delete
void
vl_kdforestsearcher_delete (VlKDForestSearcher * self)
{
  if (self->previous && self->next) {
    self->previous->next = self->next;
    self->next->previous = self->previous;
  } else if (self->previous && !self->next) {
    self->previous->next = NULL;
  } else if (!self->previous && self->next) {
    self->next->previous = NULL;
    self->forest->headSearcher = self->next;
  } else {
    self->forest->headSearcher = NULL;
  }
  self->forest->numSearchers -- ;
  vl_free(self->searchHeapArray) ;
  vl_free(self->searchIdBook) ;
  vl_free(self) ;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rax
movq 0x8(%rdi), %rcx
testq %rcx, %rcx
je 0x1cf45
testq %rax, %rax
je 0x1cf5f
movq %rax, (%rcx)
movq (%rbx), %rax
movq %rcx, 0x8(%rax)
jmp 0x1cf77
testq %rax, %rax
je 0x1cf68
movq $0x0, 0x8(%rax)
movq 0x20(%rbx), %rcx
movq %rax, 0xf0(%rcx)
jmp 0x1cf77
movq $0x0, (%rcx)
jmp 0x1cf77
movq 0x20(%rbx), %rax
movq $0x0, 0xf0(%rax)
movq 0x20(%rbx), %rax
decq 0xe8(%rax)
movq 0x18(%rbx), %rdi
callq 0x9580
movq 0x10(%rbx), %rdi
callq 0x9580
movq %rbx, %rdi
popq %rbx
jmp 0x9580
// File: /workspace/github_c_makefile_star2_O3/zpole[P]IICV/vl/kdtree.c
// Function: vl_kdforest_delete
void
vl_kdforest_delete (VlKDForest * self)
{
  vl_uindex ti ;
  VlKDForestSearcher * searcher ;

  while ((searcher = vl_kdforest_get_searcher(self, 0))) {
    vl_kdforestsearcher_delete(searcher) ;
  }

  if (self->trees) {
    for (ti = 0 ; ti < self->numTrees ; ++ ti) {
      if (self->trees[ti]) {
        if (self->trees[ti]->nodes) vl_free (self->trees[ti]->nodes) ;
        if (self->trees[ti]->dataIndex) vl_free (self->trees[ti]->dataIndex) ;
        vl_free (self->trees[ti]) ;
      }
    }
    vl_free (self->trees) ;
  }
  vl_free (self) ;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0xf0(%rdi), %rdi
testq %rdi, %rdi
je 0x1cfda
callq 0x91d0
movq 0xf0(%rbx), %rdi
jmp 0x1cfc7
movq 0x38(%rbx), %rdi
testq %rdi, %rdi
je 0x1d047
movq 0x40(%rbx), %rax
testq %rax, %rax
je 0x1d042
xorl %r14d, %r14d
movq 0x38(%rbx), %rcx
movq (%rcx,%r14,8), %rdi
testq %rdi, %rdi
je 0x1d036
movq (%rdi), %rax
testq %rax, %rax
je 0x1d014
movq %rax, %rdi
callq 0x9580
movq 0x38(%rbx), %rax
movq (%rax,%r14,8), %rdi
movq 0x18(%rdi), %rax
testq %rax, %rax
je 0x1d02d
movq %rax, %rdi
callq 0x9580
movq 0x38(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x9580
movq 0x40(%rbx), %rax
incq %r14
cmpq %rax, %r14
jb 0x1cfef
movq 0x38(%rbx), %rdi
callq 0x9580
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x9580
// File: /workspace/github_c_makefile_star2_O3/zpole[P]IICV/vl/kdtree.c
// Function: vl_kdtree_calc_bounds_recursively
static void
vl_kdtree_calc_bounds_recursively (VlKDTree * tree,
                                   vl_uindex nodeIndex, double * searchBounds)
{
  VlKDTreeNode * node = tree->nodes + nodeIndex ;
  vl_uindex i = node->splitDimension ;
  double t = node->splitThreshold ;

  node->lowerBound = searchBounds [2 * i + 0] ;
  node->upperBound = searchBounds [2 * i + 1] ;

  //VL_PRINT("%f %f\n",node->lowerBound,node->upperBound);

  if (node->lowerChild > 0) {
    searchBounds [2 * i + 1] = t ;
    vl_kdtree_calc_bounds_recursively (tree, node->lowerChild, searchBounds) ;
    searchBounds [2 * i + 1] = node->upperBound ;
  }
  if (node->upperChild > 0) {
    searchBounds [2 * i + 0] = t ;
    vl_kdtree_calc_bounds_recursively (tree, node->upperChild, searchBounds) ;
    searchBounds [2 * i + 0] = node->lowerBound ;
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rdi, %r14
movq (%rdi), %rcx
imulq $0x38, %rsi, %rdx
leaq (%rcx,%rdx), %r15
movl 0x18(%rcx,%rdx), %eax
movsd 0x20(%rcx,%rdx), %xmm1
leaq (%rax,%rax), %r12
movq %rax, %rsi
shlq $0x4, %rsi
movsd (%rbx,%rsi), %xmm0
movsd %xmm0, 0x28(%rcx,%rdx)
movsd 0x8(%rbx,%r12,8), %xmm0
movsd %xmm0, 0x30(%rcx,%rdx)
movq 0x8(%rcx,%rdx), %rsi
testq %rsi, %rsi
jle 0x1d8e4
leaq 0x1(,%rax,2), %r13
movsd %xmm1, (%rbx,%r13,8)
movq %r14, %rdi
movq %rbx, %rdx
movsd %xmm1, 0x8(%rsp)
callq 0x1d85e
movsd 0x8(%rsp), %xmm1
movsd 0x30(%r15), %xmm0
movsd %xmm0, (%rbx,%r13,8)
movq 0x10(%r15), %rsi
testq %rsi, %rsi
jle 0x1d90a
movsd %xmm1, (%rbx,%r12,8)
movq %r14, %rdi
movq %rbx, %rdx
callq 0x1d85e
movsd 0x28(%r15), %xmm0
movsd %xmm0, (%rbx,%r12,8)
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/zpole[P]IICV/vl/kmeans.c
// Function: vl_kmeans_reset
VL_EXPORT void
vl_kmeans_reset (VlKMeans * self)
{
  self->numCenters = 0 ;
  self->dimension = 0 ;

  if (self->centers) vl_free(self->centers) ;
  if (self->centerDistances) vl_free(self->centerDistances) ;

  self->centers = NULL ;
  self->centerDistances = NULL ;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
movq 0x58(%rdi), %rdi
testq %rdi, %rdi
je 0x1e3b5
callq 0x9580
movq 0x60(%rbx), %rdi
addq $0x58, %rbx
testq %rdi, %rdi
je 0x1e3c7
callq 0x9580
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/zpole[P]IICV/vl/kmeans.c
// Function: vl_kmeans_new_copy
VL_EXPORT VlKMeans *
vl_kmeans_new_copy (VlKMeans const * kmeans)
{
  VlKMeans * self = vl_malloc(sizeof(VlKMeans)) ;

  self->algorithm = kmeans->algorithm ;
  self->distance = kmeans->distance ;
  self->dataType = kmeans->dataType ;

  self->verbosity = kmeans->verbosity ;
  self->maxNumIterations = kmeans->maxNumIterations ;
  self->numRepetitions = kmeans->numRepetitions ;

  self->dimension = kmeans->dimension ;
  self->numCenters = kmeans->numCenters ;
  self->centers = NULL ;
  self->centerDistances = NULL ;

  self->numTrees = kmeans->numTrees;
  self->maxNumComparisons = kmeans->maxNumComparisons;

  if (kmeans->centers) {
    vl_size dataSize = vl_get_type_size(self->dataType) * self->dimension * self->numCenters ;
    self->centers = vl_malloc(dataSize) ;
    memcpy (self->centers, kmeans->centers, dataSize) ;
  }

  if (kmeans->centerDistances) {
    vl_size dataSize = vl_get_type_size(self->dataType) * self->numCenters * self->numCenters ;
    self->centerDistances = vl_malloc(dataSize) ;
    memcpy (self->centerDistances, kmeans->centerDistances, dataSize) ;
  }

  return self ;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movl $0x80, %edi
callq 0x95b0
movq %rax, %rbx
movq 0x2c(%r14), %rax
movq %rax, 0x2c(%rbx)
movl (%r14), %eax
movl %eax, (%rbx)
movl 0x50(%r14), %ecx
movl %ecx, 0x50(%rbx)
movq 0x38(%r14), %rcx
movq %rcx, 0x38(%rbx)
movq 0x48(%r14), %rcx
movq %rcx, 0x48(%rbx)
movq 0x8(%r14), %rcx
movq %rcx, 0x8(%rbx)
movq 0x10(%r14), %r15
movq %r15, 0x10(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x58(%rbx)
movups 0x18(%r14), %xmm0
movups %xmm0, 0x18(%rbx)
cmpq $0x0, 0x58(%r14)
je 0x1e4dc
decl %eax
cmpl $0xa, %eax
jae 0x1e52f
leaq 0x58(%rbx), %r12
movl %eax, %eax
leaq 0x14cb8(%rip), %rdx     # 0x33170
imulq %rcx, %r15
imulq (%rdx,%rax,8), %r15
movq %r15, %rdi
callq 0x95b0
movq %rax, (%r12)
movq 0x58(%r14), %rsi
movq %rax, %rdi
movq %r15, %rdx
callq 0x95a0
cmpq $0x0, 0x60(%r14)
je 0x1e520
movl (%rbx), %eax
decl %eax
cmpl $0xa, %eax
jae 0x1e52f
movl %eax, %eax
leaq 0x14c7b(%rip), %rcx     # 0x33170
movq 0x10(%rbx), %rdx
movq (%rcx,%rax,8), %r15
imulq %rdx, %r15
imulq %rdx, %r15
movq %r15, %rdi
callq 0x95b0
movq %rax, 0x60(%rbx)
movq 0x60(%r14), %rsi
movq %rax, %rdi
movq %r15, %rdx
callq 0x95a0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
callq 0x90b0
// File: /workspace/github_c_makefile_star2_O3/zpole[P]IICV/vl/kmeans.c
// Function: vl_kmeans_set_centers
VL_EXPORT void
vl_kmeans_set_centers
(VlKMeans * self,
 void const * centers,
 vl_size dimension,
 vl_size numCenters)
{
  vl_kmeans_reset (self) ;

  switch (self->dataType) {
    case VL_TYPE_FLOAT :
      _vl_kmeans_set_centers_f
      (self, (float const *)centers, dimension, numCenters) ;
      break ;
    case VL_TYPE_DOUBLE :
      _vl_kmeans_set_centers_d
      (self, (double const *)centers, dimension, numCenters) ;
      break ;
    default:
      abort() ;
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r12
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x9540
movl (%r15), %eax
cmpl $0x2, %eax
je 0x1e57e
cmpl $0x1, %eax
jne 0x1e5b3
movq %rbx, 0x8(%r15)
movq %r12, 0x10(%r15)
imulq %r12, %rbx
shlq $0x2, %rbx
jmp 0x1e58e
movq %rbx, 0x8(%r15)
movq %r12, 0x10(%r15)
imulq %r12, %rbx
shlq $0x3, %rbx
movq %rbx, %rdi
callq 0x95b0
movq %rax, 0x58(%r15)
movq %rax, %rdi
movq %r14, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x95a0
callq 0x90b0
// File: /workspace/github_c_makefile_star2_O3/zpole[P]IICV/vl/kmeans.c
// Function: vl_kmeans_quantize_f
static void
VL_XCAT(_vl_kmeans_quantize_, SFX)
(VlKMeans * self,
 vl_uint32 * assignments,
 TYPE * distances,
 TYPE const * data,
 vl_size numData)
{
  vl_index i ;

#if (FLT == VL_TYPE_FLOAT)
  VlFloatVectorComparisonFunction distFn = vl_get_vector_comparison_function_f(self->distance) ;
#else
  VlDoubleVectorComparisonFunction distFn = vl_get_vector_comparison_function_d(self->distance) ;
#endif

#ifdef _OPENMP
#pragma omp parallel default(none) \
            shared(self, distances, assignments, numData, distFn, data) \
            num_threads(vl_get_max_threads())
#endif
  {
    /* vl_malloc cannot be used here if mapped to MATLAB malloc */
    TYPE * distanceToCenters = malloc(sizeof(TYPE) * self->numCenters) ;

#ifdef _OPENMP
#pragma omp for
#endif
    for (i = 0 ; i < (signed)numData ; ++i) {
      vl_uindex k ;
      TYPE bestDistance = (TYPE) VL_INFINITY_D ;
      VL_XCAT(vl_eval_vector_comparison_on_all_pairs_, SFX)(distanceToCenters,
                                                            self->dimension,
                                                            data + self->dimension * i, 1,
                                                            (TYPE*)self->centers, self->numCenters,
                                                            distFn) ;
      for (k = 0 ; k < self->numCenters ; ++k) {
        if (distanceToCenters[k] < bestDistance) {
          bestDistance = distanceToCenters[k] ;
          assignments[i] = (vl_uint32)k ;
        }
      }
      if (distances) distances[i] = bestDistance ;
    }

    free(distanceToCenters) ;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, %r13
movq %rcx, 0x20(%rsp)
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movl 0x30(%rdi), %edi
callq 0x97d0
movq %rax, 0x18(%rsp)
movq 0x10(%r12), %rbp
leaq (,%rbp,4), %rdi
callq 0x9ad8
movq %rax, %rbx
movslq %r13d, %rax
movq %rax, 0x10(%rsp)
testq %rax, %rax
jle 0x1f1a0
xorl %r13d, %r13d
movq 0x8(%r12), %rsi
movq 0x58(%r12), %r8
movq %rsi, %rax
imulq %r13, %rax
movq 0x20(%rsp), %rcx
leaq (%rcx,%rax,4), %rdx
movq 0x18(%rsp), %rax
movq %rax, (%rsp)
movl $0x1, %ecx
movq %rbx, %rdi
movq %rbp, %r9
callq 0x9a70
movq 0x10(%r12), %rbp
movss 0x13145(%rip), %xmm0    # 0x322a8
testq %rbp, %rbp
je 0x1f18b
movss 0x13138(%rip), %xmm0    # 0x322a8
xorl %eax, %eax
movss (%rbx,%rax,4), %xmm1
ucomiss %xmm1, %xmm0
jbe 0x1f183
movl %eax, (%r15,%r13,4)
movaps %xmm1, %xmm0
incq %rax
cmpq %rax, %rbp
jne 0x1f172
testq %r14, %r14
je 0x1f196
movss %xmm0, (%r14,%r13,4)
incq %r13
cmpq 0x10(%rsp), %r13
jne 0x1f123
movq %rbx, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x9ad0
// File: /workspace/github_c_makefile_star2_O3/zpole[P]IICV/vl/kmeans.c
// Function: vl_kmeans_sort_data_helper_f
static void
VL_XCAT(_vl_kmeans_sort_data_helper_, SFX)
(VlKMeans * self, vl_uint32 * permutations, TYPE const * data, vl_size numData)
{
  vl_uindex d, x ;

  for (d = 0 ; d < self->dimension ; ++d) {
    VlKMeansSortWrapper array ;
    array.permutation = permutations + d * numData ;
    array.data = data + d ;
    array.stride = self->dimension ;
    for (x = 0 ; x < numData ; ++x) {
      array.permutation[x] = (vl_uint32)x ;
    }
    VL_XCAT3(_vl_kmeans_, SFX, _qsort_sort)(&array, numData) ;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, 0x10(%rsp)
movq %rsi, (%rsp)
movq %rdi, 0x8(%rsp)
movq 0x8(%rdi), %rax
testq %rax, %rax
je 0x23565
movq %rcx, %rbx
leaq -0x1(%rcx), %r13
leaq 0x1(%rcx), %rbp
andq $-0x2, %rbp
movq %r13, %xmm0
pshufd $0x44, %xmm0, %xmm4     # xmm4 = xmm0[0,1,0,1]
movq (%rsp), %rcx
leaq 0x4(%rcx), %r14
leaq (,%rbx,4), %r15
xorl %r12d, %r12d
movdqa 0xeb90(%rip), %xmm5     # 0x32010
pxor %xmm5, %xmm4
pcmpeqd %xmm6, %xmm6
movdqa 0xeb90(%rip), %xmm7     # 0x32020
movdqa %xmm4, 0x30(%rsp)
movq %r12, %rcx
imulq %rbx, %rcx
movq (%rsp), %rdx
leaq (%rdx,%rcx,4), %rcx
movq %rcx, 0x18(%rsp)
movq 0x10(%rsp), %rcx
leaq (%rcx,%r12,4), %rcx
movq %rcx, 0x20(%rsp)
movq %rax, 0x28(%rsp)
testq %rbx, %rbx
je 0x23524
xorl %eax, %eax
movdqa 0xeb34(%rip), %xmm0     # 0x32000
movdqa %xmm0, %xmm1
pxor %xmm5, %xmm1
movdqa %xmm1, %xmm2
pcmpgtd %xmm4, %xmm2
pcmpeqd %xmm4, %xmm1
pshufd $0xf5, %xmm1, %xmm3     # xmm3 = xmm1[1,1,3,3]
pand %xmm2, %xmm3
pshufd $0xf5, %xmm2, %xmm1     # xmm1 = xmm2[1,1,3,3]
por %xmm3, %xmm1
movd %xmm1, %ecx
notl %ecx
testb $0x1, %cl
je 0x23502
movl %eax, -0x4(%r14,%rax,4)
pxor %xmm6, %xmm1
pextrw $0x4, %xmm1, %ecx
testb $0x1, %cl
je 0x23517
leal 0x1(%rax), %ecx
movl %ecx, (%r14,%rax,4)
addq $0x2, %rax
paddq %xmm7, %xmm0
cmpq %rax, %rbp
jne 0x234cc
leaq 0x18(%rsp), %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x23574
movdqa 0xeae5(%rip), %xmm7     # 0x32020
pcmpeqd %xmm6, %xmm6
movdqa 0xeac9(%rip), %xmm5     # 0x32010
movdqa 0x30(%rsp), %xmm4
incq %r12
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rax
addq %r15, %r14
cmpq %rax, %r12
jb 0x23496
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/zpole[P]IICV/vl/qsort-def.h
// Function: vl_kmeans_f_qsort_sort_recursive
VL_INLINE void
VL_QSORT_sort_recursive
(VL_QSORT_array array, vl_uindex begin, vl_uindex end)
{
  vl_uindex pivot = (end + begin) / 2 ;
  vl_uindex lowPart, i ;

  assert (begin <= end) ;

  /* swap pivot with last */
  VL_QSORT_swap (array, pivot, end) ;
  pivot = end ;

  /*
   Now scan from left to right, moving all element smaller
   or equal than the pivot to the low part
   array[0], array[1], ..., array[lowPart - 1].
   */
  lowPart = begin ;
  for (i = begin; i < end ; ++i) { /* one less */
    if (VL_QSORT_cmp (array, i, pivot) <= 0) {
      /* array[i] must be moved into the low part */
      VL_QSORT_swap (array, lowPart, i) ;
      lowPart ++ ;
    }
  }

  /* the pivot should also go into the low part */
  VL_QSORT_swap (array, lowPart, pivot) ;
  pivot = lowPart ;

  /* do recursion */
  if (pivot > begin) {
    /* note that pivot-1 stays non-negative */
    VL_QSORT_sort_recursive (array, begin, pivot - 1) ;
  }
  if (pivot < end) {
    VL_QSORT_sort_recursive (array, pivot + 1, end) ;
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rdi, %r14
movq (%rdi), %rax
xorps %xmm1, %xmm1
leaq (%rsi,%rbx), %rdx
andq $-0x2, %rdx
movl (%rax,%rdx,2), %ecx
movl (%rax,%rbx,4), %edi
movl %edi, (%rax,%rdx,2)
movl %ecx, (%rax,%rbx,4)
cmpq %rbx, %rsi
jae 0x23611
movq 0x8(%r14), %rcx
movq 0x10(%r14), %rdx
movq %rsi, %rdi
movq %rsi, %r15
movl (%rax,%rdi,4), %r8d
movq %rdx, %r9
imulq %r8, %r9
movss (%rcx,%r9,4), %xmm0
movl (%rax,%rbx,4), %r9d
imulq %rdx, %r9
subss (%rcx,%r9,4), %xmm0
ucomiss %xmm0, %xmm1
jb 0x235df
movl (%rax,%r15,4), %r9d
movl %r8d, (%rax,%r15,4)
movl %r9d, (%rax,%rdi,4)
incq %r15
incq %rdi
cmpq %rdi, %rbx
jne 0x235ac
movl (%rax,%rbx,4), %ecx
movl (%rax,%r15,4), %edx
movl %ecx, (%rax,%r15,4)
movl %edx, (%rax,%rbx,4)
cmpq %rsi, %r15
jbe 0x2360c
leaq -0x1(%r15), %rdx
movq %r14, %rdi
callq 0x23574
xorps %xmm1, %xmm1
movq (%r14), %rax
movq %r15, %rsi
jmp 0x2361a
movl (%rax,%rsi,4), %edx
movl %ecx, (%rax,%rsi,4)
movl %edx, (%rax,%rbx,4)
leaq 0x1(%rsi), %rcx
cmpq %rbx, %rsi
movq %rcx, %rsi
jb 0x23585
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/zpole[P]IICV/vl/kmeans.c
// Function: vl_kmeans_update_center_distances_f
static double
VL_XCAT(_vl_kmeans_update_center_distances_, SFX)
(VlKMeans * self)
{
#if (FLT == VL_TYPE_FLOAT)
  VlFloatVectorComparisonFunction distFn = vl_get_vector_comparison_function_f(self->distance) ;
#else
  VlDoubleVectorComparisonFunction distFn = vl_get_vector_comparison_function_d(self->distance) ;
#endif

  if (! self->centerDistances) {
    self->centerDistances = vl_malloc (sizeof(TYPE) *
                                       self->numCenters *
                                       self->numCenters) ;
  }
  VL_XCAT(vl_eval_vector_comparison_on_all_pairs_, SFX)(self->centerDistances,
      self->dimension,
      self->centers, self->numCenters,
      NULL, 0,
      distFn) ;
  return self->numCenters * (self->numCenters - 1) / 2 ;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x30(%rdi), %edi
callq 0x97d0
movq %rax, %r14
movq 0x60(%rbx), %rdi
testq %rdi, %rdi
jne 0x23663
movq 0x10(%rbx), %rdi
imulq %rdi, %rdi
shlq $0x2, %rdi
callq 0x95b0
movq %rax, %rdi
movq %rax, 0x60(%rbx)
movq 0x58(%rbx), %rdx
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rcx
movq %r14, (%rsp)
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x9a70
movq 0x10(%rbx), %rax
leaq -0x1(%rax), %rcx
imulq %rax, %rcx
shrq %rcx
cvtsi2sd %rcx, %xmm0
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/zpole[P]IICV/vl/lbp.c
// Function: vl_lbp_new
VlLbp *
vl_lbp_new(VlLbpMappingType type, vl_bool transposed)
{
  VlLbp * self = vl_malloc(sizeof(VlLbp)) ;
  if (self == NULL) {
    vl_set_last_error(VL_ERR_ALLOC, NULL) ;
    return NULL ;
  }
  self->transposed = transposed ;
  switch (type) {
    case VlLbpUniform: _vl_lbp_init_uniform(self) ; break ;
    default: exit(1) ;
  }
  return self ;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %r14d
movl %edi, %ebp
movl $0x110, %edi            # imm = 0x110
callq 0x95b0
movq %rax, %rbx
testq %rax, %rax
je 0x239cf
movl %r14d, 0x108(%rbx)
testl %ebp, %ebp
jne 0x239e5
movq $0x3a, (%rbx)
movq %rbx, %rdi
addq $0x9, %rdi
movl $0xfe, %edx
movl $0x39, %esi
callq 0x9400
movb $0x38, %al
movb %al, 0x8(%rbx)
movb %al, 0x107(%rbx)
movl $0x2, %edx
xorl %esi, %esi
xorl %edi, %edi
xorl %r9d, %r9d
movl %edx, %r8d
leal 0x1(%r9), %eax
movl %r8d, %r10d
movl $0xffffffff, %r11d      # imm = 0xFFFFFFFF
movl %eax, %ecx
shll %cl, %r11d
andb $0x7, %r10b
cmpl $0x0, 0x108(%rbx)
notl %r11d
movzbl %r10b, %ecx
cmovel %edi, %ecx
shll %cl, %r11d
movzbl %r11b, %ecx
shrl $0x8, %r11d
orl %r11d, %ecx
addl %esi, %r9d
movb %r9b, 0x8(%rbx,%rcx)
decl %r8d
movl %eax, %r9d
cmpl $0x7, %eax
jne 0x23979
incl %edi
decl %edx
addl $0x7, %esi
cmpl $0x8, %edi
jne 0x23973
jmp 0x239dd
movl $0x2, %edi
xorl %esi, %esi
xorl %eax, %eax
callq 0x9150
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
movl $0x1, %edi
callq 0x9920
// File: /workspace/github_c_makefile_star2_O3/zpole[P]IICV/vl/mathop.c
// Function: vl_distance_l2_f
VL_EXPORT T
VL_XCAT(_vl_distance_l2_, SFX)
(vl_size dimension, T const * X, T const * Y)
{
  T const * X_end = X + dimension ;
  T acc = 0.0 ;
  while (X < X_end) {
    T d = *X++ - *Y++ ;
    acc += d * d ;
  }
  return acc ;
}

// Assembly:
testq %rdi, %rdi
jle 0x24a0a
leaq (%rsi,%rdi,4), %rax
xorps %xmm0, %xmm0
movss (%rsi), %xmm1
addq $0x4, %rsi
subss (%rdx), %xmm1
addq $0x4, %rdx
mulss %xmm1, %xmm1
addss %xmm1, %xmm0
cmpq %rax, %rsi
jb 0x249ec
retq
xorps %xmm0, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O3/zpole[P]IICV/vl/mathop.c
// Function: vl_distance_l1_f
VL_EXPORT T
VL_XCAT(_vl_distance_l1_, SFX)
(vl_size dimension, T const * X, T const * Y)
{
  T const * X_end = X + dimension ;
  T acc = 0.0 ;
  while (X < X_end) {
    T d = *X++ - *Y++ ;
    acc += VL_MAX(d, -d) ;
  }
  return acc ;
}

// Assembly:
testq %rdi, %rdi
jle 0x24a45
leaq (%rsi,%rdi,4), %rax
xorps %xmm0, %xmm0
movaps 0xd5ef(%rip), %xmm1     # 0x32010
movss (%rsi), %xmm2
addq $0x4, %rsi
subss (%rdx), %xmm2
addq $0x4, %rdx
movaps %xmm2, %xmm3
xorps %xmm1, %xmm3
maxss %xmm3, %xmm2
addss %xmm2, %xmm0
cmpq %rax, %rsi
jb 0x24a21
retq
xorps %xmm0, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O3/zpole[P]IICV/vl/mathop.c
// Function: vl_distance_chi2_f
VL_EXPORT T
VL_XCAT(_vl_distance_chi2_, SFX)
(vl_size dimension, T const * X, T const * Y)
{
  T const * X_end = X + dimension ;
  T acc = 0.0 ;
  while (X < X_end) {
    T a = *X++ ;
    T b = *Y++ ;
    T delta = a - b ;
    T denom = (a + b) ;
    T numer = delta * delta ;
    if (denom) {
      T ratio = numer / denom ;
      acc += ratio ;
    }
  }
  return acc ;
}

// Assembly:
testq %rdi, %rdi
jle 0x24a96
leaq (%rsi,%rdi,4), %rax
xorps %xmm1, %xmm1
xorps %xmm2, %xmm2
movss (%rsi), %xmm3
addq $0x4, %rsi
movss (%rdx), %xmm4
addq $0x4, %rdx
movaps %xmm3, %xmm0
addss %xmm4, %xmm0
subss %xmm4, %xmm3
mulss %xmm3, %xmm3
divss %xmm0, %xmm3
addss %xmm2, %xmm3
cmpneqss %xmm1, %xmm0
andps %xmm0, %xmm3
andnps %xmm2, %xmm0
orps %xmm3, %xmm0
movaps %xmm0, %xmm2
cmpq %rax, %rsi
jb 0x24a58
retq
xorps %xmm0, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O3/zpole[P]IICV/vl/mathop.c
// Function: vl_distance_hellinger_f
VL_EXPORT T
VL_XCAT(_vl_distance_hellinger_, SFX)
(vl_size dimension, T const * X, T const * Y)
{
  T const * X_end = X + dimension ;
  T acc = 0.0 ;
  while (X < X_end) {
    T a = *X++ ;
    T b = *Y++ ;
#if (FLT == VL_TYPE_FLOAT)
    acc += a + b - 2.0 * sqrtf (a*b) ;
#else
    acc += a + b - 2.0 * sqrt (a*b) ;
#endif
  }
  return acc ;
}

// Assembly:
testq %rdi, %rdi
jle 0x24b41
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rsi, %r14
leaq (%rsi,%rdi,4), %r15
xorps %xmm2, %xmm2
xorps %xmm3, %xmm3
movss (%r14), %xmm1
movss (%rbx), %xmm4
movaps %xmm1, %xmm0
mulss %xmm4, %xmm0
ucomiss %xmm2, %xmm0
jb 0x24ad7
sqrtss %xmm0, %xmm0
jmp 0x24b03
movss %xmm3, 0xc(%rsp)
movss %xmm1, 0x8(%rsp)
movss %xmm4, 0x4(%rsp)
callq 0x95e0
movss 0x4(%rsp), %xmm4
movss 0x8(%rsp), %xmm1
movss 0xc(%rsp), %xmm3
xorps %xmm2, %xmm2
addq $0x4, %r14
addq $0x4, %rbx
addss %xmm4, %xmm1
cvtss2sd %xmm1, %xmm1
cvtss2sd %xmm0, %xmm0
addsd %xmm0, %xmm0
subsd %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtss2sd %xmm3, %xmm0
addsd %xmm1, %xmm0
xorps %xmm3, %xmm3
cvtsd2ss %xmm0, %xmm3
cmpq %r15, %r14
jb 0x24abc
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x24b44
xorps %xmm3, %xmm3
movaps %xmm3, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O3/zpole[P]IICV/vl/mathop.c
// Function: vl_distance_js_f
VL_EXPORT T
VL_XCAT(_vl_distance_js_, SFX)
(vl_size dimension, T const * X, T const * Y)
{
  T const * X_end = X + dimension ;
  T acc = 0.0 ;
  while (X < X_end) {
    T x = *X++ ;
    T y = *Y++ ;
    if (x) acc += x - x * VL_XCAT(vl_log2_,SFX)(1 + y/x) ;
    if (y) acc += y - y * VL_XCAT(vl_log2_,SFX)(1 + x/y) ;
  }
  return acc ;
}

// Assembly:
testq %rdi, %rdi
jle 0x24c1a
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rsi, %r14
leaq (%rsi,%rdi,4), %r15
xorps %xmm0, %xmm0
movss (%r14), %xmm2
movss (%rbx), %xmm1
ucomiss 0xd811(%rip), %xmm2     # 0x32388
movss %xmm1, 0x8(%rsp)
jne 0x24b81
jnp 0x24bc2
movss %xmm0, 0x4(%rsp)
movaps %xmm1, %xmm0
divss %xmm2, %xmm0
addss 0xd7c6(%rip), %xmm0     # 0x3235c
movss %xmm2, 0xc(%rsp)
callq 0x9ac0
movss 0xc(%rsp), %xmm2
mulss %xmm2, %xmm0
movaps %xmm2, %xmm1
subss %xmm0, %xmm1
movss 0x4(%rsp), %xmm0
addss %xmm1, %xmm0
movss 0x8(%rsp), %xmm1
ucomiss 0xd7bf(%rip), %xmm1     # 0x32388
jne 0x24bcd
jnp 0x24bff
divss %xmm1, %xmm2
addss 0xd783(%rip), %xmm2     # 0x3235c
movss %xmm0, 0x4(%rsp)
movaps %xmm2, %xmm0
callq 0x9ac0
movss 0x8(%rsp), %xmm1
mulss %xmm1, %xmm0
subss %xmm0, %xmm1
movss 0x4(%rsp), %xmm0
addss %xmm1, %xmm0
addq $0x4, %r14
addq $0x4, %rbx
cmpq %r15, %r14
jb 0x24b67
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
xorps %xmm0, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O3/zpole[P]IICV/vl/mathop.c
// Function: vl_kernel_l2_f
VL_EXPORT T
VL_XCAT(_vl_kernel_l2_, SFX)
(vl_size dimension, T const * X, T const * Y)
{
  T const * X_end = X + dimension ;
  T acc = 0.0 ;
  while (X < X_end) {
    T a = *X++ ;
    T b = *Y++ ;
    acc += a * b ;
  }
  return acc ;
}

// Assembly:
testq %rdi, %rdi
jle 0x24c44
leaq (%rsi,%rdi,4), %rax
xorps %xmm0, %xmm0
movss (%rsi), %xmm1
mulss (%rdx), %xmm1
addq $0x4, %rsi
addq $0x4, %rdx
addss %xmm1, %xmm0
cmpq %rax, %rsi
jb 0x24c2a
retq
xorps %xmm0, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O3/zpole[P]IICV/vl/mathop.c
// Function: vl_kernel_l1_f
VL_EXPORT T
VL_XCAT(_vl_kernel_l1_, SFX)
(vl_size dimension, T const * X, T const * Y)
{
  T const * X_end = X + dimension ;
  T acc = 0.0 ;
  while (X < X_end) {
    T a = *X++ ;
    T b = *Y++ ;
    T a_ = VL_XCAT(vl_abs_, SFX) (a) ;
    T b_ = VL_XCAT(vl_abs_, SFX) (b) ;
    acc += a_ + b_ - VL_XCAT(vl_abs_, SFX) (a - b) ;
  }
  return acc / ((T)2) ;
}

// Assembly:
testq %rdi, %rdi
jle 0x24c95
leaq (%rsi,%rdi,4), %rax
xorps %xmm0, %xmm0
movaps 0xd515(%rip), %xmm1     # 0x32170
movss (%rsi), %xmm2
addq $0x4, %rsi
movss (%rdx), %xmm3
addq $0x4, %rdx
movaps %xmm2, %xmm4
andps %xmm1, %xmm4
subss %xmm3, %xmm2
andps %xmm1, %xmm3
addss %xmm4, %xmm3
andps %xmm1, %xmm2
subss %xmm2, %xmm3
addss %xmm3, %xmm0
cmpq %rax, %rsi
jb 0x24c5b
mulss 0xd6cc(%rip), %xmm0     # 0x32360
retq
xorps %xmm0, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O3/zpole[P]IICV/vl/mathop.c
// Function: vl_kernel_hellinger_f
VL_EXPORT T
VL_XCAT(_vl_kernel_hellinger_, SFX)
(vl_size dimension, T const * X, T const * Y)
{
  T const * X_end = X + dimension ;
  T acc = 0.0 ;
  while (X < X_end) {
    T a = *X++ ;
    T b = *Y++ ;
#if (FLT == VL_TYPE_FLOAT)
    acc += sqrtf (a*b) ;
#else
    acc += sqrt (a*b) ;
#endif
  }
  return acc ;
}

// Assembly:
testq %rdi, %rdi
jle 0x24d4c
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rsi, %r14
leaq (%rsi,%rdi,4), %r15
xorps %xmm2, %xmm2
xorps %xmm1, %xmm1
movss (%r14), %xmm0
mulss (%rbx), %xmm0
ucomiss %xmm2, %xmm0
jb 0x24d1c
sqrtss %xmm0, %xmm0
jmp 0x24d30
movss %xmm1, 0xc(%rsp)
callq 0x95e0
xorps %xmm2, %xmm2
movss 0xc(%rsp), %xmm1
addss %xmm0, %xmm1
addq $0x4, %r14
addq $0x4, %rbx
cmpq %r15, %r14
jb 0x24d08
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x24d4f
xorps %xmm1, %xmm1
movaps %xmm1, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O3/zpole[P]IICV/vl/mathop.c
// Function: vl_kernel_js_f
VL_EXPORT T
VL_XCAT(_vl_kernel_js_, SFX)
(vl_size dimension, T const * X, T const * Y)
{
  T const * X_end = X + dimension ;
  T acc = 0.0 ;
  while (X < X_end) {
    T x = *X++ ;
    T y = *Y++ ;
    if (x) acc += x * VL_XCAT(vl_log2_,SFX)(1 + y/x) ;
    if (y) acc += y * VL_XCAT(vl_log2_,SFX)(1 + x/y) ;
  }
  return (T)0.5 * acc ;
}

// Assembly:
testq %rdi, %rdi
jle 0x24e36
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rsi, %r14
leaq (%rsi,%rdi,4), %r15
xorps %xmm0, %xmm0
movss (%r14), %xmm2
movss (%rbx), %xmm1
ucomiss 0xd606(%rip), %xmm2     # 0x32388
movss %xmm1, 0x8(%rsp)
jne 0x24d8c
jnp 0x24dd2
movss %xmm0, 0x4(%rsp)
movaps %xmm1, %xmm0
divss %xmm2, %xmm0
addss 0xd5bb(%rip), %xmm0     # 0x3235c
movss %xmm2, 0xc(%rsp)
callq 0x9ac0
movss 0xc(%rsp), %xmm2
mulss %xmm2, %xmm0
movss 0x4(%rsp), %xmm1
addss %xmm0, %xmm1
movss %xmm1, 0x4(%rsp)
movss 0x8(%rsp), %xmm1
movss 0x4(%rsp), %xmm0
ucomiss 0xd5af(%rip), %xmm1     # 0x32388
jne 0x24ddd
jnp 0x24e13
divss %xmm1, %xmm2
addss 0xd573(%rip), %xmm2     # 0x3235c
movss %xmm0, 0x4(%rsp)
movaps %xmm2, %xmm0
callq 0x9ac0
mulss 0x8(%rsp), %xmm0
movss 0x4(%rsp), %xmm1
addss %xmm0, %xmm1
movss %xmm1, 0x4(%rsp)
movss 0x4(%rsp), %xmm0
addq $0x4, %r14
addq $0x4, %rbx
cmpq %r15, %r14
jb 0x24d72
mulss 0xd534(%rip), %xmm0     # 0x32360
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
xorps %xmm0, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O3/zpole[P]IICV/vl/mathop.c
// Function: vl_distance_mahalanobis_sq_f
VL_EXPORT T
VL_XCAT(_vl_distance_mahalanobis_sq_, SFX)
(vl_size dimension, T const * X, T const * MU, T const * S)
{
  T const * X_end = X + dimension ;
  T acc = 0.0 ;
  while (X < X_end) {
    T d = *X++ - *MU++ ;
    acc += d * d * (*S++) ;
  }
  return acc ;
}

// Assembly:
testq %rdi, %rdi
jle 0x24e72
leaq (%rsi,%rdi,4), %rax
xorps %xmm0, %xmm0
xorl %edi, %edi
leaq (%rsi,%rdi), %r8
addq $0x4, %r8
movss -0x4(%r8), %xmm1
subss (%rdx,%rdi), %xmm1
mulss %xmm1, %xmm1
mulss (%rcx,%rdi), %xmm1
addss %xmm1, %xmm0
addq $0x4, %rdi
cmpq %rax, %r8
jb 0x24e48
retq
xorps %xmm0, %xmm0
retq