// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/dist-short.c
// Function: gt_reversesuffixmatch
GtUword gt_reversesuffixmatch(GtUword *eqsvector,
                                 unsigned int alphasize,
                                 const GtUchar *useq,
                                 GtUword ulen,
                                 const GtUchar *vseq,
                                 GtUword vlen,
                                 GtUword maxdistance)
{
  DECLARELOCALVARS;
  const GtUchar *vptr;

  gt_initeqsvectorrev(eqsvector,(GtUword) alphasize,useq,ulen);
  gt_assert(maxdistance > 0);
  for (vptr = vseq + vlen - 1; vptr >= vseq; vptr--)
  {
    COMPUTENEWDIST(*vptr);
    if (distval <= maxdistance)
    {
      break;
    }
  }
  /* gt_assert(distval <= maxdistance); */
  return (GtUword) (vseq + vlen - vptr);
}

// Assembly:
subq $0x88, %rsp
movq 0x90(%rsp), %rax
movq %rdi, 0x80(%rsp)
movl %esi, 0x7c(%rsp)
movq %rdx, 0x70(%rsp)
movq %rcx, 0x68(%rsp)
movq %r8, 0x60(%rsp)
movq %r9, 0x58(%rsp)
movq $-0x1, 0x50(%rsp)
movq $0x0, 0x48(%rsp)
movq 0x68(%rsp), %rcx
subq $0x1, %rcx
movl $0x1, %eax
shlq %cl, %rax
movq %rax, 0x18(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x80(%rsp), %rdi
movl 0x7c(%rsp), %eax
movl %eax, %esi
movq 0x70(%rsp), %rdx
movq 0x68(%rsp), %rcx
callq 0x4d1e90
cmpq $0x0, 0x90(%rsp)
ja 0x4a43d1
movq 0x197c00(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x71c69(%rip), %rsi     # 0x516013
leaq 0x111a87(%rip), %rdx    # 0x5b5e38
leaq 0x111a90(%rip), %rcx    # 0x5b5e48
leaq 0x111a23(%rip), %r8     # 0x5b5de2
movl $0x7a, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4a43d3
movq 0x60(%rsp), %rax
addq 0x58(%rsp), %rax
addq $-0x1, %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
cmpq 0x60(%rsp), %rax
jb 0x4a456f
jmp 0x4a43f8
movq 0x8(%rsp), %rax
movzbl (%rax), %eax
cmpl $0xff, %eax
jne 0x4a443f
movq 0x197b92(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x71bfb(%rip), %rsi     # 0x516013
leaq 0x11197e(%rip), %rdx    # 0x5b5d9d
leaq 0x111a22(%rip), %rcx    # 0x5b5e48
leaq 0x1119b5(%rip), %r8     # 0x5b5de2
movl $0x7d, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4a4441
movq 0x8(%rsp), %rax
movzbl (%rax), %eax
cmpl $0xfe, %eax
je 0x4a446b
movq 0x80(%rsp), %rax
movq 0x8(%rsp), %rcx
movzbl (%rcx), %ecx
movq (%rax,%rcx,8), %rax
movq %rax, 0x40(%rsp)
jmp 0x4a4474
movq $0x0, 0x40(%rsp)
movq 0x40(%rsp), %rax
orq 0x48(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x40(%rsp), %rax
andq 0x50(%rsp), %rax
addq 0x50(%rsp), %rax
xorq 0x50(%rsp), %rax
orq 0x40(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x48(%rsp), %rax
movq 0x30(%rsp), %rcx
orq 0x50(%rsp), %rcx
xorq $-0x1, %rcx
orq %rcx, %rax
movq %rax, 0x28(%rsp)
movq 0x50(%rsp), %rax
andq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x28(%rsp), %rax
andq 0x18(%rsp), %rax
cmpq $0x0, %rax
je 0x4a44eb
movq 0x10(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x10(%rsp)
jmp 0x4a450b
movq 0x20(%rsp), %rax
andq 0x18(%rsp), %rax
cmpq $0x0, %rax
je 0x4a4509
movq 0x10(%rsp), %rax
addq $-0x1, %rax
movq %rax, 0x10(%rsp)
jmp 0x4a450b
movq 0x28(%rsp), %rax
shlq %rax
orq $0x1, %rax
movq %rax, 0x28(%rsp)
movq 0x20(%rsp), %rax
shlq %rax
movq 0x38(%rsp), %rcx
orq 0x28(%rsp), %rcx
xorq $-0x1, %rcx
orq %rcx, %rax
movq %rax, 0x50(%rsp)
movq 0x28(%rsp), %rax
andq 0x38(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x10(%rsp), %rax
cmpq 0x90(%rsp), %rax
ja 0x4a455a
jmp 0x4a456f
jmp 0x4a455c
movq 0x8(%rsp), %rax
addq $-0x1, %rax
movq %rax, 0x8(%rsp)
jmp 0x4a43e6
movq 0x60(%rsp), %rax
addq 0x58(%rsp), %rax
movq 0x8(%rsp), %rcx
subq %rcx, %rax
addq $0x88, %rsp
retq
nopl (%rax)