// File: /workspace/github_c_makefile_star2_O0/zpole[P]IICV/vl/mathop.c
// Function: vl_get_vector_comparison_function_f
VL_EXPORT COMPARISONFUNCTION_TYPE
VL_XCAT(vl_get_vector_comparison_function_, SFX)(VlVectorComparisonType type)
{
  COMPARISONFUNCTION_TYPE function = 0 ;
  switch (type) {
    case VlDistanceL2        : function = VL_XCAT(_vl_distance_l2_,             SFX) ; break ;
    case VlDistanceL1        : function = VL_XCAT(_vl_distance_l1_,             SFX) ; break ;
    case VlDistanceChi2      : function = VL_XCAT(_vl_distance_chi2_,           SFX) ; break ;
    case VlDistanceHellinger : function = VL_XCAT(_vl_distance_hellinger_,      SFX) ; break ;
    case VlDistanceJS        : function = VL_XCAT(_vl_distance_js_,             SFX) ; break ;
    case VlKernelL2          : function = VL_XCAT(_vl_kernel_l2_,               SFX) ; break ;
    case VlKernelL1          : function = VL_XCAT(_vl_kernel_l1_,               SFX) ; break ;
    case VlKernelChi2        : function = VL_XCAT(_vl_kernel_chi2_,             SFX) ; break ;
    case VlKernelHellinger   : function = VL_XCAT(_vl_kernel_hellinger_,        SFX) ; break ;
    case VlKernelJS          : function = VL_XCAT(_vl_kernel_js_,               SFX) ; break ;
    default: abort() ;
  }

#ifndef VL_DISABLE_SSE2
  /* if a SSE2 implementation is available, use it */
  if (vl_cpu_has_sse2() && vl_get_simd_enabled()) {
    switch (type) {
      case VlDistanceL2    : function = VL_XCAT(_vl_distance_l2_sse2_,             SFX) ; break ;
      case VlDistanceL1    : function = VL_XCAT(_vl_distance_l1_sse2_,             SFX) ; break ;
      case VlDistanceChi2  : function = VL_XCAT(_vl_distance_chi2_sse2_,           SFX) ; break ;
      case VlKernelL2      : function = VL_XCAT(_vl_kernel_l2_sse2_,               SFX) ; break ;
      case VlKernelL1      : function = VL_XCAT(_vl_kernel_l1_sse2_,               SFX) ; break ;
      case VlKernelChi2    : function = VL_XCAT(_vl_kernel_chi2_sse2_,             SFX) ; break ;
      default: break ;
    }
  }
#endif

#ifndef VL_DISABLE_AVX
  /* if an AVX implementation is available, use it */
  if (vl_cpu_has_avx() && vl_get_simd_enabled()) {
    switch (type) {
      case VlDistanceL2    : function = VL_XCAT(_vl_distance_l2_avx_,             SFX) ; break ;
      default: break ;
    }
  }
#endif

  return function ;
}

// Assembly:
subq $0x28, %rsp
movl %edi, 0x24(%rsp)
movq $0x0, 0x18(%rsp)
movl 0x24(%rsp), %eax
movq %rax, 0x10(%rsp)
subq $0xa, %rax
ja 0x3a428
movq 0x10(%rsp), %rax
leaq 0x1fbf8(%rip), %rcx     # 0x59f88
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x26b38(%rip), %rax     # 0x60ed8
movq %rax, 0x18(%rsp)
jmp 0x3a42d
movq 0x26aa7(%rip), %rax     # 0x60e58
movq %rax, 0x18(%rsp)
jmp 0x3a42d
movq 0x269f9(%rip), %rax     # 0x60db8
movq %rax, 0x18(%rsp)
jmp 0x3a42d
movq 0x26a33(%rip), %rax     # 0x60e00
movq %rax, 0x18(%rsp)
jmp 0x3a42d
movq 0x26b15(%rip), %rax     # 0x60ef0
movq %rax, 0x18(%rsp)
jmp 0x3a42d
movq 0x26a1f(%rip), %rax     # 0x60e08
movq %rax, 0x18(%rsp)
jmp 0x3a42d
movq 0x26bf9(%rip), %rax     # 0x60ff0
movq %rax, 0x18(%rsp)
jmp 0x3a42d
movq 0x269cb(%rip), %rax     # 0x60dd0
movq %rax, 0x18(%rsp)
jmp 0x3a42d
movq 0x26b65(%rip), %rax     # 0x60f78
movq %rax, 0x18(%rsp)
jmp 0x3a42d
movq 0x26b97(%rip), %rax     # 0x60fb8
movq %rax, 0x18(%rsp)
jmp 0x3a42d
callq 0x90b0
callq 0x96f0
cmpl $0x0, %eax
je 0x3a4c1
callq 0x9240
cmpl $0x0, %eax
je 0x3a4c1
movl 0x24(%rsp), %eax
movq %rax, 0x8(%rsp)
subq $0x8, %rax
ja 0x3a4bd
movq 0x8(%rsp), %rax
leaq 0x1fb54(%rip), %rcx     # 0x59fb4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x26ad0(%rip), %rax     # 0x60f40
movq %rax, 0x18(%rsp)
jmp 0x3a4bf
movq 0x269e2(%rip), %rax     # 0x60e60
movq %rax, 0x18(%rsp)
jmp 0x3a4bf
movq 0x26b0c(%rip), %rax     # 0x60f98
movq %rax, 0x18(%rsp)
jmp 0x3a4bf
movq 0x26986(%rip), %rax     # 0x60e20
movq %rax, 0x18(%rsp)
jmp 0x3a4bf
movq 0x26aa8(%rip), %rax     # 0x60f50
movq %rax, 0x18(%rsp)
jmp 0x3a4bf
movq 0x269f2(%rip), %rax     # 0x60ea8
movq %rax, 0x18(%rsp)
jmp 0x3a4bf
jmp 0x3a4bf
jmp 0x3a4c1
callq 0x9330
cmpl $0x0, %eax
je 0x3a4f2
callq 0x9240
cmpl $0x0, %eax
je 0x3a4f2
movl 0x24(%rsp), %eax
subl $0x1, %eax
jne 0x3a4ee
jmp 0x3a4e0
movq 0x269d1(%rip), %rax     # 0x60eb8
movq %rax, 0x18(%rsp)
jmp 0x3a4f0
jmp 0x3a4f0
jmp 0x3a4f2
movq 0x18(%rsp), %rax
addq $0x28, %rsp
retq
nopl (%rax)