// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/rdj-ovlfind-bf.c
// Function: gt_ovlfind_bf
GtContfind gt_ovlfind_bf(const char *u, GtUword u_length,
    const char *v, GtUword v_length, GtOvlfindMode m,
    GtUword min_length, bool find_nonmaximal,
    void(*spmproc) (GtUword /* overlap length */,
        bool /* true if suffix of u == prefix of v;
            false if prefix of u == suffix of v */,
        void* /* spmprocdata */), void* spmprocdata)
{
  GtContfind retval = GT_CONTFIND_OFF;
  bool self_comparison;

  gt_assert(u != NULL);
  gt_assert(u_length > 0);
  self_comparison = (v == NULL);
  gt_assert(self_comparison || v_length > 0);
  gt_assert(!self_comparison || m == GT_OVLFIND_SPM || m == GT_OVLFIND_ALL);

  if (self_comparison && m == GT_OVLFIND_ALL)
    retval = GT_CONTFIND_EQ;
  if (m != GT_OVLFIND_SPM && !self_comparison)
  {
    if (u_length == v_length)
      retval = memcmp(u, v, (size_t)u_length) == 0
               ? GT_CONTFIND_EQ : GT_CONTFIND_NO;
    else if (u_length < v_length)
      retval = contfind_bf(u, u_length, v, v_length)
               ? GT_CONTFIND_U : GT_CONTFIND_NO;
    else /* u_length > v_length */
      retval = contfind_bf(v, v_length, u, u_length)
               ? GT_CONTFIND_V : GT_CONTFIND_NO;
    if (m == GT_OVLFIND_PROPER_SPM && retval != GT_CONTFIND_NO)
      return retval;
  }
  if (m != GT_OVLFIND_CNT)
  {
    if (self_comparison)
    {
      spmfind_bf(u, u_length, u, u_length, min_length, find_nonmaximal,
                 self_comparison, spmproc, true, spmprocdata);
    }
    else
    {
      spmfind_bf(u, u_length, v, v_length, min_length, find_nonmaximal,
                 self_comparison, spmproc, true, spmprocdata);
      spmfind_bf(v, v_length, u, u_length, min_length, find_nonmaximal,
                 self_comparison, spmproc, false, spmprocdata);
    }
  }
  return retval;
}

// Assembly:
pushq %rbx
subq $0x70, %rsp
movq 0x90(%rsp), %rax
movq 0x88(%rsp), %rax
movb 0x80(%rsp), %al
movq %rdi, 0x60(%rsp)
movq %rsi, 0x58(%rsp)
movq %rdx, 0x50(%rsp)
movq %rcx, 0x48(%rsp)
movl %r8d, 0x44(%rsp)
movq %r9, 0x38(%rsp)
andb $0x1, %al
movb %al, 0x37(%rsp)
movl $0x0, 0x30(%rsp)
cmpq $0x0, 0x60(%rsp)
jne 0x4dc1f8
movq 0x15fdd9(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x39e42(%rip), %rsi     # 0x516013
leaq 0xde683(%rip), %rdx     # 0x5ba85b
leaq 0xde686(%rip), %rcx     # 0x5ba865
leaq 0xde68d(%rip), %r8      # 0x5ba873
movl $0x42, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4dc1fa
jmp 0x4dc1fc
cmpq $0x0, 0x58(%rsp)
ja 0x4dc23c
movq 0x15fd95(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x39dfe(%rip), %rsi     # 0x516013
leaq 0xde672(%rip), %rdx     # 0x5ba88e
leaq 0xde642(%rip), %rcx     # 0x5ba865
leaq 0xde649(%rip), %r8      # 0x5ba873
movl $0x43, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4dc23e
cmpq $0x0, 0x50(%rsp)
sete %al
andb $0x1, %al
movb %al, 0x2f(%rsp)
testb $0x1, 0x2f(%rsp)
jne 0x4dc294
cmpq $0x0, 0x48(%rsp)
ja 0x4dc294
movq 0x15fd3d(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x39da6(%rip), %rsi     # 0x516013
leaq 0xde627(%rip), %rdx     # 0x5ba89b
leaq 0xde5ea(%rip), %rcx     # 0x5ba865
leaq 0xde5f1(%rip), %r8      # 0x5ba873
movl $0x45, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4dc296
jmp 0x4dc298
testb $0x1, 0x2f(%rsp)
je 0x4dc2e5
cmpl $0x0, 0x44(%rsp)
je 0x4dc2e5
cmpl $0x2, 0x44(%rsp)
je 0x4dc2e5
movq 0x15fcec(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x39d55(%rip), %rsi     # 0x516013
leaq 0xde5f6(%rip), %rdx     # 0x5ba8bb
leaq 0xde599(%rip), %rcx     # 0x5ba865
leaq 0xde5a0(%rip), %r8      # 0x5ba873
movl $0x46, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4dc2e7
testb $0x1, 0x2f(%rsp)
je 0x4dc2fd
cmpl $0x2, 0x44(%rsp)
jne 0x4dc2fd
movl $0x2, 0x30(%rsp)
cmpl $0x0, 0x44(%rsp)
je 0x4dc3d6
testb $0x1, 0x2f(%rsp)
jne 0x4dc3d6
movq 0x58(%rsp), %rax
cmpq 0x48(%rsp), %rax
jne 0x4dc34b
movq 0x60(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
callq 0x192c0
movl %eax, %edx
movl $0x1, %eax
movl $0x2, %ecx
cmpl $0x0, %edx
cmovel %ecx, %eax
movl %eax, 0x30(%rsp)
jmp 0x4dc3b9
movq 0x58(%rsp), %rax
cmpq 0x48(%rsp), %rax
jae 0x4dc388
movq 0x60(%rsp), %rdi
movq 0x58(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq 0x48(%rsp), %rcx
callq 0x4dc520
movb %al, %dl
movl $0x1, %eax
movl $0x3, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movl %eax, 0x30(%rsp)
jmp 0x4dc3b7
movq 0x50(%rsp), %rdi
movq 0x48(%rsp), %rsi
movq 0x60(%rsp), %rdx
movq 0x58(%rsp), %rcx
callq 0x4dc520
movb %al, %dl
movl $0x1, %eax
movl $0x4, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movl %eax, 0x30(%rsp)
jmp 0x4dc3b9
cmpl $0x3, 0x44(%rsp)
jne 0x4dc3d4
cmpl $0x1, 0x30(%rsp)
je 0x4dc3d4
movl 0x30(%rsp), %eax
movl %eax, 0x6c(%rsp)
jmp 0x4dc513
jmp 0x4dc3d6
cmpl $0x1, 0x44(%rsp)
je 0x4dc50b
testb $0x1, 0x2f(%rsp)
je 0x4dc44b
movq 0x60(%rsp), %rdi
movq 0x58(%rsp), %rsi
movq 0x60(%rsp), %rdx
movq 0x58(%rsp), %rcx
movq 0x38(%rsp), %r8
movb 0x37(%rsp), %r9b
movb 0x2f(%rsp), %r11b
movq 0x88(%rsp), %r10
movq 0x90(%rsp), %rax
andb $0x1, %r9b
andb $0x1, %r11b
movzbl %r9b, %r9d
movzbl %r11b, %r11d
movl %r11d, (%rsp)
movq %r10, 0x8(%rsp)
movl $0x1, 0x10(%rsp)
movq %rax, 0x18(%rsp)
callq 0x4dc5f0
jmp 0x4dc509
movq 0x60(%rsp), %rdi
movq 0x58(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq 0x48(%rsp), %rcx
movq 0x38(%rsp), %r8
movb 0x37(%rsp), %r9b
movb 0x2f(%rsp), %r11b
movq 0x88(%rsp), %r10
movq 0x90(%rsp), %rax
andb $0x1, %r9b
andb $0x1, %r11b
movzbl %r9b, %r9d
movzbl %r11b, %r11d
movl %r11d, (%rsp)
movq %r10, 0x8(%rsp)
movl $0x1, 0x10(%rsp)
movq %rax, 0x18(%rsp)
callq 0x4dc5f0
movq 0x50(%rsp), %rdi
movq 0x48(%rsp), %rsi
movq 0x60(%rsp), %rdx
movq 0x58(%rsp), %rcx
movq 0x38(%rsp), %r8
movb 0x37(%rsp), %r9b
movb 0x2f(%rsp), %r11b
movq 0x88(%rsp), %r10
movq 0x90(%rsp), %rax
xorl %ebx, %ebx
andb $0x1, %r9b
andb $0x1, %r11b
movzbl %r9b, %r9d
movzbl %r11b, %r11d
movl %r11d, (%rsp)
movq %r10, 0x8(%rsp)
movl $0x0, 0x10(%rsp)
movq %rax, 0x18(%rsp)
callq 0x4dc5f0
jmp 0x4dc50b
movl 0x30(%rsp), %eax
movl %eax, 0x6c(%rsp)
movl 0x6c(%rsp), %eax
addq $0x70, %rsp
popq %rbx
retq
nopl (%rax)