// File: /workspace/github_c_makefile_star2_O2/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 0x72260
movq %rax, 0x10(%rsp)
movq %r12, 0x8(%rsp)
movq %r12, %rdi
movl %ebp, (%rsp)
movl %ebp, %esi
xorl %edx, %edx
callq 0x72260
testq %r14, %r14
je 0x1b055d
movq %rax, %r12
pushq $0x1
popq %r13
cmpq %r13, 0x60(%rsp)
je 0x1b0506
leaq -0x1(%r13), %rdx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1af8b2
movq %rax, %rbp
movq %r15, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x1af8b2
movq 0x8(%rsp), %rdi
movl (%rsp), %esi
leaq 0x20(%rsp), %rdx
xorl %ecx, %ecx
pushq $0x1
popq %r8
movq %r14, %r9
pushq %r12
pushq 0x18(%rsp)
pushq %rax
pushq %rbp
callq 0x77ebd
addq $0x20, %rsp
movq 0x20(%rsp), %r10
cmpq %r14, %r10
ja 0x1b0527
incq %r13
testl %eax, %eax
jne 0x1b04c8
cmpq %r14, %r10
jae 0x1b0460
leaq -0x2(%r13), %r11
decq %r13
leaq 0x1ab6cc(%rip), %rdx    # 0x35bba2
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 0x1b0587
addq $0x30, %rsp
pushq $0x2
popq %rdi
callq 0x178f0
movq 0x10(%rsp), %rdi
callq 0x722ae
movq %r12, %rdi
callq 0x722ae
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x287a3a(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x134adb(%rip), %rsi    # 0x2e5013
leaq 0x1ab6ff(%rip), %rdx    # 0x35bc3e
leaq 0x1ab659(%rip), %rcx    # 0x35bb9f
leaq 0x1ab671(%rip), %r8     # 0x35bbbe
pushq $0x57
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
movq 0x287a04(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x134aa5(%rip), %rsi    # 0x2e5013
leaq 0x1a71fd(%rip), %rdx    # 0x357772
leaq 0x1ab623(%rip), %rcx    # 0x35bb9f
leaq 0x1ab63b(%rip), %r8     # 0x35bbbe
pushq $0x49
jmp 0x1b054f