// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/sfx-suftaborder.c
// Function: gt_checksortedsuffixes
void gt_checksortedsuffixes(const char *filename,
                            int line,
                            const GtEncseq *encseq,
                            GtReadmode readmode,
                            const GtSuffixsortspace *suffixsortspace,
                            GtUword subbucketleft,
                            GtUword numberofsuffixes,
                            bool specialsareequal,
                            bool specialsareequalatdepth0,
                            GtUword depth)
{
  GtUword idx, pos1, pos2, maxlcp,
                totallength = gt_encseq_total_length(encseq);
  GtEncseqReader *esr1, *esr2;
  int cmp;

  gt_assert(!specialsareequal || specialsareequalatdepth0);
  esr1 = gt_encseq_create_reader_with_readmode(encseq, readmode, 0);
  esr2 = gt_encseq_create_reader_with_readmode(encseq, readmode, 0);
  gt_assert(numberofsuffixes > 0);
  pos1 = gt_suffixsortspace_get(suffixsortspace,subbucketleft,0);
  gt_assert(pos1 < totallength);
  for (idx = 1UL; idx < numberofsuffixes; idx++)
  {
    pos2 = gt_suffixsortspace_get(suffixsortspace,subbucketleft,idx);
    if (pos2 < totallength)
    {
      cmp = gt_encseq_check_comparetwosuffixes(encseq,
                                               readmode,
                                               &maxlcp,
                                               specialsareequal,
                                               specialsareequalatdepth0,
                                               depth,
                                               pos1,
                                               pos2,
                                               esr1,
                                               esr2);
      if (cmp > 0)
      {
        showcomparisonfailure(filename,
                              line,
                              "checksortedsuffixes",
                              encseq,
                              readmode,
                              suffixsortspace,
                              subbucketleft,
                              depth,
                              idx-1,
                              idx,
                              cmp,
                              maxlcp);
        exit(GT_EXIT_PROGRAMMING_ERROR);
      }
      gt_assert(depth == 0 || maxlcp <= depth);
    }
    pos1 = pos2;
  }
  gt_encseq_reader_delete(esr1);
  gt_encseq_reader_delete(esr2);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0xc0, %rsp
movl %ecx, 0x3c(%rsp)
movq %rdx, %rax
movl 0x3c(%rsp), %edx
movq %rax, 0x40(%rsp)
movl %esi, %eax
movq 0x40(%rsp), %rsi
movl %eax, 0x48(%rsp)
movq %rdi, %r10
movl 0x48(%rsp), %edi
movq 0xf8(%rsp), %rax
movb 0xf0(%rsp), %al
movb 0xe8(%rsp), %cl
movq 0xe0(%rsp), %r11
movq %r10, 0xb8(%rsp)
movl %edi, 0xb4(%rsp)
movq %rsi, 0xa8(%rsp)
movl %edx, 0xa4(%rsp)
movq %r8, 0x98(%rsp)
movq %r9, 0x90(%rsp)
andb $0x1, %cl
movb %cl, 0x8f(%rsp)
andb $0x1, %al
movb %al, 0x8e(%rsp)
movq 0xa8(%rsp), %rdi
callq 0xa9d00
movq %rax, 0x60(%rsp)
testb $0x1, 0x8f(%rsp)
je 0x2eb81b
testb $0x1, 0x8e(%rsp)
jne 0x2eb81b
movq 0x3507b6(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x22a81f(%rip), %rsi    # 0x516013
leaq 0x23f696(%rip), %rdx    # 0x52ae91
leaq 0x2a3012(%rip), %rcx    # 0x58e814
leaq 0x2a2fde(%rip), %r8     # 0x58e7e7
movl $0x8b, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2eb81d
movq 0xa8(%rsp), %rdi
movl 0xa4(%rsp), %esi
xorl %eax, %eax
movl %eax, %edx
callq 0xac380
movq %rax, 0x58(%rsp)
movq 0xa8(%rsp), %rdi
movl 0xa4(%rsp), %esi
xorl %eax, %eax
movl %eax, %edx
callq 0xac380
movq %rax, 0x50(%rsp)
cmpq $0x0, 0xe0(%rsp)
ja 0x2eb89a
movq 0x350737(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x22a7a0(%rip), %rsi    # 0x516013
leaq 0x28bf78(%rip), %rdx    # 0x5777f2
leaq 0x2a2f93(%rip), %rcx    # 0x58e814
leaq 0x2a2f5f(%rip), %r8     # 0x58e7e7
movl $0x8e, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2eb89c
movq 0x98(%rsp), %rdi
movq 0x90(%rsp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x2e9ec0
movq %rax, 0x78(%rsp)
movq 0x78(%rsp), %rax
cmpq 0x60(%rsp), %rax
jb 0x2eb8fe
movq 0x3506d3(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x22a73c(%rip), %rsi    # 0x516013
leaq 0x24d7f9(%rip), %rdx    # 0x5390d7
leaq 0x2a2f2f(%rip), %rcx    # 0x58e814
leaq 0x2a2efb(%rip), %r8     # 0x58e7e7
movl $0x90, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2eb900
movq $0x1, 0x80(%rsp)
movq 0x80(%rsp), %rax
cmpq 0xe0(%rsp), %rax
jae 0x2ebacb
movq 0x98(%rsp), %rdi
movq 0x90(%rsp), %rsi
movq 0x80(%rsp), %rdx
callq 0x2e9ec0
movq %rax, 0x70(%rsp)
movq 0x70(%rsp), %rax
cmpq 0x60(%rsp), %rax
jae 0x2ebaa8
movq 0xa8(%rsp), %rdi
movl 0xa4(%rsp), %esi
movb 0x8f(%rsp), %cl
movb 0x8e(%rsp), %r8b
movq 0xf8(%rsp), %r9
movq 0x78(%rsp), %rbx
movq 0x70(%rsp), %r11
movq 0x58(%rsp), %r10
movq 0x50(%rsp), %rax
leaq 0x68(%rsp), %rdx
andb $0x1, %cl
andb $0x1, %r8b
movzbl %cl, %ecx
movzbl %r8b, %r8d
movq %rbx, (%rsp)
movq %r11, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
callq 0xb5f40
movl %eax, 0x4c(%rsp)
cmpl $0x0, 0x4c(%rsp)
jle 0x2eba50
movq 0xb8(%rsp), %rdi
movl 0xb4(%rsp), %esi
movq 0xa8(%rsp), %rcx
movl 0xa4(%rsp), %r8d
movq 0x98(%rsp), %r9
movq 0x90(%rsp), %r15
movq 0xf8(%rsp), %r14
movq 0x80(%rsp), %rbx
subq $0x1, %rbx
movq 0x80(%rsp), %r11
movl 0x4c(%rsp), %r10d
movq 0x68(%rsp), %rax
leaq 0x2a2df3(%rip), %rdx    # 0x58e817
movq %r15, (%rsp)
movq %r14, 0x8(%rsp)
movq %rbx, 0x10(%rsp)
movq %r11, 0x18(%rsp)
movl %r10d, 0x20(%rsp)
movq %rax, 0x28(%rsp)
callq 0x2eb520
movl $0x2, %edi
callq 0x19890
jmp 0x2eba52
cmpq $0x0, 0xf8(%rsp)
je 0x2ebaa4
movq 0x68(%rsp), %rax
cmpq 0xf8(%rsp), %rax
jbe 0x2ebaa4
movq 0x35052d(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x22a596(%rip), %rsi    # 0x516013
leaq 0x2a2da7(%rip), %rdx    # 0x58e82b
leaq 0x2a2d89(%rip), %rcx    # 0x58e814
leaq 0x2a2d55(%rip), %r8     # 0x58e7e7
movl $0xb0, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2ebaa6
jmp 0x2ebaa8
movq 0x70(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x80(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x80(%rsp)
jmp 0x2eb90c
movq 0x58(%rsp), %rdi
callq 0xac3f0
movq 0x50(%rsp), %rdi
callq 0xac3f0
addq $0xc0, %rsp
popq %rbx
popq %r14
popq %r15
retq
nopl (%rax)