// File: /workspace/github_c_makefile_star2_O0/zpole[P]IICV/vl/mathop.c
// Function: vl_eval_vector_comparison_on_all_pairs_f
VL_EXPORT void
VL_XCAT(vl_eval_vector_comparison_on_all_pairs_, SFX)
(T * result, vl_size dimension,
 T const * X, vl_size numDataX,
 T const * Y, vl_size numDataY,
 COMPARISONFUNCTION_TYPE function)
{
  vl_uindex xi ;
  vl_uindex yi ;

  if (dimension == 0) return ;
  if (numDataX == 0) return ;
  assert (X) ;

  if (Y) {
    if (numDataY == 0) return ;
    for (yi = 0 ; yi < numDataY ; ++ yi) {
      for (xi = 0 ; xi < numDataX ; ++ xi) {
        *result++ = (*function)(dimension, X, Y) ;
        X += dimension ;
      }
      X -= dimension * numDataX ;
      Y += dimension ;
    }
  } else {
    T * resultTransp = result ;
    Y = X ;
    for (yi = 0 ; yi < numDataX ; ++ yi) {
      for (xi = 0 ; xi <= yi ; ++ xi) {
        T z = (*function)(dimension, X, Y) ;
        X += dimension ;
        *result       = z ;
        *resultTransp = z ;
        result        += 1 ;
        resultTransp  += numDataX ;
      }
      X -= dimension * (yi + 1) ;
      Y += dimension ;
      result       += numDataX - (yi + 1) ;
      resultTransp += 1        - (yi + 1) * numDataX ;
    }
  }
}

// Assembly:
subq $0x58, %rsp
movq 0x60(%rsp), %rax
movq %rdi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movq %rdx, 0x40(%rsp)
movq %rcx, 0x38(%rsp)
movq %r8, 0x30(%rsp)
movq %r9, 0x28(%rsp)
cmpq $0x0, 0x48(%rsp)
jne 0x3a5d4
jmp 0x3a81d
cmpq $0x0, 0x38(%rsp)
jne 0x3a5e1
jmp 0x3a81d
cmpq $0x0, 0x30(%rsp)
je 0x3a6c2
cmpq $0x0, 0x28(%rsp)
jne 0x3a5fa
jmp 0x3a81d
movq $0x0, 0x18(%rsp)
movq 0x18(%rsp), %rax
cmpq 0x28(%rsp), %rax
jae 0x3a6bd
movq $0x0, 0x20(%rsp)
movq 0x20(%rsp), %rax
cmpq 0x38(%rsp), %rax
jae 0x3a676
movq 0x60(%rsp), %rax
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x30(%rsp), %rdx
callq *%rax
movq 0x50(%rsp), %rax
movq %rax, %rcx
addq $0x4, %rcx
movq %rcx, 0x50(%rsp)
movss %xmm0, (%rax)
movq 0x48(%rsp), %rax
shlq $0x2, %rax
addq 0x40(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x20(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x20(%rsp)
jmp 0x3a61c
movq 0x48(%rsp), %rdx
imulq 0x38(%rsp), %rdx
movq 0x40(%rsp), %rax
xorl %ecx, %ecx
subq %rdx, %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, 0x40(%rsp)
movq 0x48(%rsp), %rax
shlq $0x2, %rax
addq 0x30(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x18(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x18(%rsp)
jmp 0x3a603
jmp 0x3a81d
movq 0x50(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x30(%rsp)
movq $0x0, 0x18(%rsp)
movq 0x18(%rsp), %rax
cmpq 0x38(%rsp), %rax
jae 0x3a81b
movq $0x0, 0x20(%rsp)
movq 0x20(%rsp), %rax
cmpq 0x18(%rsp), %rax
ja 0x3a789
movq 0x60(%rsp), %rax
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x30(%rsp), %rdx
callq *%rax
movss %xmm0, 0xc(%rsp)
movq 0x48(%rsp), %rax
shlq $0x2, %rax
addq 0x40(%rsp), %rax
movq %rax, 0x40(%rsp)
movss 0xc(%rsp), %xmm0
movq 0x50(%rsp), %rax
movss %xmm0, (%rax)
movss 0xc(%rsp), %xmm0
movq 0x10(%rsp), %rax
movss %xmm0, (%rax)
movq 0x50(%rsp), %rax
addq $0x4, %rax
movq %rax, 0x50(%rsp)
movq 0x38(%rsp), %rax
shlq $0x2, %rax
addq 0x10(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x20(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x20(%rsp)
jmp 0x3a6f8
movq 0x48(%rsp), %rdx
movq 0x18(%rsp), %rax
addq $0x1, %rax
imulq %rax, %rdx
movq 0x40(%rsp), %rax
xorl %ecx, %ecx
subq %rdx, %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, 0x40(%rsp)
movq 0x48(%rsp), %rax
shlq $0x2, %rax
addq 0x30(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x38(%rsp), %rax
movq 0x18(%rsp), %rcx
addq $0x1, %rcx
subq %rcx, %rax
shlq $0x2, %rax
addq 0x50(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x18(%rsp), %rcx
addq $0x1, %rcx
imulq 0x38(%rsp), %rcx
movl $0x1, %eax
subq %rcx, %rax
shlq $0x2, %rax
addq 0x10(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x18(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x18(%rsp)
jmp 0x3a6df
jmp 0x3a81d
addq $0x58, %rsp
retq
nopw %cs:(%rax,%rax)