// File: /workspace/github_c_makefile_star2_O0/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 %r15
pushq %r14
pushq %rbx
subq $0xa0, %rsp
movq 0xc8(%rsp), %rax
movq 0xc0(%rsp), %rax
movq %rdi, 0x98(%rsp)
movl %esi, 0x94(%rsp)
movq %rdx, 0x88(%rsp)
movl %ecx, 0x84(%rsp)
movq %r8, 0x78(%rsp)
movq %r9, 0x70(%rsp)
movq 0x88(%rsp), %rdi
movl 0x84(%rsp), %esi
xorl %eax, %eax
movl %eax, %edx
callq 0xac380
movq %rax, 0x40(%rsp)
movq 0x88(%rsp), %rdi
movl 0x84(%rsp), %esi
xorl %eax, %eax
movl %eax, %edx
callq 0xac380
movq %rax, 0x38(%rsp)
cmpq $0x0, 0xc8(%rsp)
ja 0x2eb351
movq 0x350c80(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x22ace9(%rip), %rsi    # 0x516013
leaq 0x29ee9e(%rip), %rdx    # 0x58a1cf
leaq 0x2a3490(%rip), %rcx    # 0x58e7c8
leaq 0x2a34a8(%rip), %r8     # 0x58e7e7
movl $0x49, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2eb353
movq $0x0, 0x68(%rsp)
movq 0x68(%rsp), %rax
movq 0xc0(%rsp), %rcx
subq $0x1, %rcx
cmpq %rcx, %rax
jae 0x2eb4f0
movq 0x78(%rsp), %rdi
movq 0x70(%rsp), %rsi
movq 0x68(%rsp), %rdx
callq 0x2e9ec0
movq %rax, 0x58(%rsp)
movq 0x78(%rsp), %rdi
movq 0x70(%rsp), %rsi
movq 0x68(%rsp), %rdx
addq $0x1, %rdx
callq 0x2e9ec0
movq %rax, 0x50(%rsp)
movq 0x88(%rsp), %rdi
movl 0x84(%rsp), %esi
movq 0xc8(%rsp), %r9
movq 0x58(%rsp), %rbx
movq 0x50(%rsp), %r11
movq 0x40(%rsp), %r10
movq 0x38(%rsp), %rax
leaq 0x60(%rsp), %rdx
xorl %ecx, %ecx
movl $0x1, %r8d
movq %rbx, (%rsp)
movq %r11, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movq %rax, 0x18(%rsp)
callq 0xb5f40
movl %eax, 0x4c(%rsp)
movq 0x60(%rsp), %rax
cmpq 0xc8(%rsp), %rax
jbe 0x2eb447
movq 0x350b8a(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x22abf3(%rip), %rsi    # 0x516013
leaq 0x2a3412(%rip), %rdx    # 0x58e839
leaq 0x2a339a(%rip), %rcx    # 0x58e7c8
leaq 0x2a33b2(%rip), %r8     # 0x58e7e7
movl $0x57, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2eb449
cmpl $0x0, 0x4c(%rsp)
jne 0x2eb45f
movq 0x60(%rsp), %rax
cmpq 0xc8(%rsp), %rax
jae 0x2eb4db
movq 0x98(%rsp), %rdi
movl 0x94(%rsp), %esi
movq 0x88(%rsp), %rcx
movl 0x84(%rsp), %r8d
movq 0x78(%rsp), %r9
movq 0x70(%rsp), %r15
movq 0xc8(%rsp), %r14
movq 0x68(%rsp), %rbx
movq 0x68(%rsp), %r11
addq $0x1, %r11
movl 0x4c(%rsp), %r10d
movq 0x60(%rsp), %rax
leaq 0x2a331c(%rip), %rdx    # 0x58e7cb
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 0x2eb4dd
movq 0x68(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x68(%rsp)
jmp 0x2eb35c
movq 0x40(%rsp), %rdi
callq 0xac3f0
movq 0x38(%rsp), %rdi
callq 0xac3f0
addq $0xa0, %rsp
popq %rbx
popq %r14
popq %r15
retq
nopw %cs:(%rax,%rax)