// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/tools/gt_sfxmap.c
// Function: gt_sfxmap_comparefullsuffixes
static int gt_sfxmap_comparefullsuffixes(const GtEncseq *encseq,
                                         GtReadmode readmode,
                                         GtUword *maxlcp,
                                         GtUword start1,
                                         GtUword start2,
                                         GtEncseqReader *esr1,
                                         GtEncseqReader *esr2)
{
  GtUchar cc1, cc2;
  GtUword pos1, pos2, totallength;
  int retval;

  totallength = gt_encseq_total_length(encseq);
  if (esr1 != NULL && esr2 != NULL)
  {
    gt_encseq_reader_reinit_with_readmode(esr1,encseq,readmode,start1);
    gt_encseq_reader_reinit_with_readmode(esr2,encseq,readmode,start2);
  } else
  {
    gt_assert(esr1 == NULL && esr2 == NULL);
  }
  for (pos1=start1, pos2=start2; /* Nothing */; pos1++, pos2++)
  {
    if (pos1 >= totallength)
    {
      cc1 = (GtUchar) GT_SEPARATOR;
    } else
    {
      cc1 = (esr1 != NULL) ? gt_encseq_reader_next_encoded_char(esr1)
                           : gt_encseq_get_encoded_char(encseq,pos1,readmode);
    }
    if (pos2 >= totallength)
    {
      cc2 = (GtUchar) GT_SEPARATOR;
    } else
    {
      cc2 = (esr2 != NULL) ? gt_encseq_reader_next_encoded_char(esr2)
                           : gt_encseq_get_encoded_char(encseq,pos2,readmode);
    }
    if (GT_ISSPECIAL(cc1))
    {
      if (GT_ISSPECIAL(cc2))
      {
        if (pos1 < pos2)
        {
          *maxlcp = pos1  - start1;
          retval = -1; /* a < b */
          break;
        }
        if (pos1 > pos2)
        {
          *maxlcp = pos1 - start1;
          retval = 1; /* a > b */
          break;
        }
        *maxlcp = pos1 - start1 + 1;
        retval = 0; /* a = b */
        break;
      }
      *maxlcp = pos1 - start1;
      retval = 1; /* a > b */
      break;
    } else
    {
      if (GT_ISSPECIAL(cc2))
      {
        *maxlcp = pos1 - start1;
        retval = -1; /* a < b */
        break;
      }
      if (cc1 < cc2)
      {
        *maxlcp = pos1 - start1;
        retval = -1; /* a < b */
        break;
      }
      if (cc1 > cc2)
      {
        *maxlcp = pos1 - start1;
        retval = 1; /* a > b */
        break;
      }
    }
  }
  return retval;
}

// Assembly:
subq $0x68, %rsp
movq 0x70(%rsp), %rax
movq %rdi, 0x60(%rsp)
movl %esi, 0x5c(%rsp)
movq %rdx, 0x50(%rsp)
movq %rcx, 0x48(%rsp)
movq %r8, 0x40(%rsp)
movq %r9, 0x38(%rsp)
movq 0x60(%rsp), %rdi
callq 0xa9d00
movq %rax, 0x18(%rsp)
cmpq $0x0, 0x38(%rsp)
je 0x6cdb7
cmpq $0x0, 0x70(%rsp)
je 0x6cdb7
movq 0x38(%rsp), %rdi
movq 0x60(%rsp), %rsi
movl 0x5c(%rsp), %edx
movq 0x48(%rsp), %rcx
callq 0xabdb0
movq 0x70(%rsp), %rdi
movq 0x60(%rsp), %rsi
movl 0x5c(%rsp), %edx
movq 0x40(%rsp), %rcx
callq 0xabdb0
jmp 0x6ce05
jmp 0x6cdb9
cmpq $0x0, 0x38(%rsp)
jne 0x6cdc9
cmpq $0x0, 0x70(%rsp)
je 0x6ce01
movq 0x5cf1d0(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4a9239(%rip), %rsi    # 0x516013
leaq 0x4be240(%rip), %rdx    # 0x52b021
leaq 0x4be256(%rip), %rcx    # 0x52b03e
leaq 0x4bd7fb(%rip), %r8     # 0x52a5ea
movl $0x1b3, %r9d            # imm = 0x1B3
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x6ce03
jmp 0x6ce05
movq 0x48(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x28(%rsp), %rax
cmpq 0x18(%rsp), %rax
jb 0x6ce2c
movb $-0x1, 0x37(%rsp)
jmp 0x6ce69
cmpq $0x0, 0x38(%rsp)
je 0x6ce47
movq 0x38(%rsp), %rdi
callq 0xaae30
movzbl %al, %eax
movl %eax, 0x10(%rsp)
jmp 0x6ce61
movq 0x60(%rsp), %rdi
movq 0x28(%rsp), %rsi
movl 0x5c(%rsp), %edx
callq 0xa9da0
movzbl %al, %eax
movl %eax, 0x10(%rsp)
movl 0x10(%rsp), %eax
movb %al, 0x37(%rsp)
movq 0x20(%rsp), %rax
cmpq 0x18(%rsp), %rax
jb 0x6ce7c
movb $-0x1, 0x36(%rsp)
jmp 0x6ceb9
cmpq $0x0, 0x70(%rsp)
je 0x6ce97
movq 0x70(%rsp), %rdi
callq 0xaae30
movzbl %al, %eax
movl %eax, 0xc(%rsp)
jmp 0x6ceb1
movq 0x60(%rsp), %rdi
movq 0x20(%rsp), %rsi
movl 0x5c(%rsp), %edx
callq 0xa9da0
movzbl %al, %eax
movl %eax, 0xc(%rsp)
movl 0xc(%rsp), %eax
movb %al, 0x36(%rsp)
movzbl 0x37(%rsp), %eax
cmpl $0xfe, %eax
jl 0x6cf6d
movzbl 0x36(%rsp), %eax
cmpl $0xfe, %eax
jl 0x6cf4e
movq 0x28(%rsp), %rax
cmpq 0x20(%rsp), %rax
jae 0x6cf00
movq 0x28(%rsp), %rcx
subq 0x48(%rsp), %rcx
movq 0x50(%rsp), %rax
movq %rcx, (%rax)
movl $0xffffffff, 0x14(%rsp) # imm = 0xFFFFFFFF
jmp 0x6d00e
movq 0x28(%rsp), %rax
cmpq 0x20(%rsp), %rax
jbe 0x6cf2b
movq 0x28(%rsp), %rcx
subq 0x48(%rsp), %rcx
movq 0x50(%rsp), %rax
movq %rcx, (%rax)
movl $0x1, 0x14(%rsp)
jmp 0x6d00e
movq 0x28(%rsp), %rcx
subq 0x48(%rsp), %rcx
addq $0x1, %rcx
movq 0x50(%rsp), %rax
movq %rcx, (%rax)
movl $0x0, 0x14(%rsp)
jmp 0x6d00e
movq 0x28(%rsp), %rcx
subq 0x48(%rsp), %rcx
movq 0x50(%rsp), %rax
movq %rcx, (%rax)
movl $0x1, 0x14(%rsp)
jmp 0x6d00e
movzbl 0x36(%rsp), %eax
cmpl $0xfe, %eax
jl 0x6cf95
movq 0x28(%rsp), %rcx
subq 0x48(%rsp), %rcx
movq 0x50(%rsp), %rax
movq %rcx, (%rax)
movl $0xffffffff, 0x14(%rsp) # imm = 0xFFFFFFFF
jmp 0x6d00e
movzbl 0x37(%rsp), %eax
movzbl 0x36(%rsp), %ecx
cmpl %ecx, %eax
jge 0x6cfbf
movq 0x28(%rsp), %rcx
subq 0x48(%rsp), %rcx
movq 0x50(%rsp), %rax
movq %rcx, (%rax)
movl $0xffffffff, 0x14(%rsp) # imm = 0xFFFFFFFF
jmp 0x6d00e
movzbl 0x37(%rsp), %eax
movzbl 0x36(%rsp), %ecx
cmpl %ecx, %eax
jle 0x6cfe9
movq 0x28(%rsp), %rcx
subq 0x48(%rsp), %rcx
movq 0x50(%rsp), %rax
movq %rcx, (%rax)
movl $0x1, 0x14(%rsp)
jmp 0x6d00e
jmp 0x6cfeb
jmp 0x6cfed
movq 0x28(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x28(%rsp)
movq 0x20(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x20(%rsp)
jmp 0x6ce19
movl 0x14(%rsp), %eax
addq $0x68, %rsp
retq
nopw (%rax,%rax)