// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/match/sfx-suftaborder.c
// Function: gt_checkifprefixesareidentical
void gt_checkifprefixesareidentical(const char *filename,
                                    int line,
                                    const GtEncseq *encseq,
                                    GtReadmode readmode,
                                    const GtSuffixsortspace *suffixsortspace,
                                    GtUword subbucketleft,
                                    GtUword width,
                                    GtUword depth)
{
  GtUword idx, maxlcp, pos1, pos2;
  int cmp;
  GtEncseqReader *esr1, *esr2;

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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, %rbx
movq %r8, %r15
movl %ecx, %ebp
movq %rdx, %r12
movl %esi, 0x4(%rsp)
movq %rdi, 0x18(%rsp)
movq 0x68(%rsp), %r14
movq %rdx, %rdi
movl %ecx, %esi
xorl %edx, %edx
callq 0xed76d
movq %rax, 0x10(%rsp)
movq %r12, 0x8(%rsp)
movq %r12, %rdi
movl %ebp, (%rsp)
movl %ebp, %esi
xorl %edx, %edx
callq 0xed76d
testq %r14, %r14
je 0x206816
movq %rax, %r12
movl $0x1, %r13d
cmpq %r13, 0x60(%rsp)
je 0x2067f0
leaq -0x1(%r13), %rdx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x206063
movq %rax, %rbp
movq %r15, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x206063
movq 0x8(%rsp), %rdi
movl (%rsp), %esi
leaq 0x20(%rsp), %rdx
xorl %ecx, %ecx
movl $0x1, %r8d
movq %r14, %r9
pushq %r12
pushq 0x18(%rsp)
pushq %rax
pushq %rbp
callq 0xf2285
addq $0x20, %rsp
movq 0x20(%rsp), %r10
cmpq %r14, %r10
ja 0x206811
incq %r13
testl %eax, %eax
jne 0x2067b0
cmpq %r14, %r10
jae 0x206746
leaq -0x2(%r13), %r11
decq %r13
leaq 0x1be5f4(%rip), %rdx    # 0x3c4db2
movq 0x18(%rsp), %rdi
movl 0x4(%rsp), %esi
movq 0x8(%rsp), %rcx
movl (%rsp), %r8d
movq %r15, %r9
pushq %r10
pushq %rax
pushq %r13
pushq %r11
pushq %r14
pushq %rbx
callq 0x8036d
addq $0x30, %rsp
movl $0x2, %edi
callq 0x17940
movq 0x10(%rsp), %rdi
callq 0xed7bf
movq %r12, %rdi
callq 0xed7bf
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x804a2
callq 0x804d9