// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/tools/gt_repfind.c
// Function: gt_suffix_prefix_match_with_output
static int gt_suffix_prefix_match_with_output(GT_UNUSED void *info,
                                              const GtGenericEncseq
                                                *genericencseq,
                                              GtUword matchlen,
                                              GtUword pos1,
                                              GtUword pos2,
                                              GT_UNUSED GtError *err)
{
  GtUword seqnum1, relpos1, seqnum2, relpos2, seqstartpos;
  const GtEncseq *encseq;

  gt_assert(pos1 < pos2);
  gt_assert(genericencseq != NULL && genericencseq->hasencseq);
  encseq = genericencseq->seqptr.encseq;
  seqnum1 = gt_encseq_seqnum(encseq,pos1);
  seqstartpos = gt_encseq_seqstartpos(encseq, seqnum1);
  gt_assert(seqstartpos <= pos1);
  relpos1 = pos1 - seqstartpos;
  seqnum2 = gt_encseq_seqnum(encseq,pos2);
  seqstartpos = gt_encseq_seqstartpos(encseq, seqnum2);
  gt_assert(seqstartpos <= pos2);
  relpos2 = pos2 - seqstartpos;
  if (relpos1 == 0)
  {
    GtUword seqlen2 = gt_encseq_seqlength(encseq,seqnum2);

    if (relpos2 + matchlen == seqlen2)
    {
      printf(GT_WU " " GT_WU " " GT_WU "\n",seqnum2,seqnum1,matchlen);
    }
  } else
  {
    if (relpos2 == 0)
    {
      GtUword seqlen1 = gt_encseq_seqlength(encseq,seqnum1);

      if (relpos1 + matchlen == seqlen1)
      {
        printf(GT_WU " " GT_WU " " GT_WU "\n",seqnum1,seqnum2,matchlen);
      }
    }
  }
  return 0;
}

// Assembly:
subq $0x78, %rsp
movq %rdi, 0x70(%rsp)
movq %rsi, 0x68(%rsp)
movq %rdx, 0x60(%rsp)
movq %rcx, 0x58(%rsp)
movq %r8, 0x50(%rsp)
movq %r9, 0x48(%rsp)
movq 0x58(%rsp), %rax
cmpq 0x50(%rsp), %rax
jb 0x599a6
movq 0x5e262b(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4bc694(%rip), %rsi    # 0x516013
leaq 0x4cce03(%rip), %rdx    # 0x526789
leaq 0x4cce08(%rip), %rcx    # 0x526795
leaq 0x4cc6f4(%rip), %r8     # 0x526088
movl $0x98, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x599a8
jmp 0x599aa
cmpq $0x0, 0x68(%rsp)
je 0x599bc
movq 0x68(%rsp), %rax
testb $0x1, (%rax)
jne 0x599f4
movq 0x5e25dd(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4bc646(%rip), %rsi    # 0x516013
leaq 0x4cce70(%rip), %rdx    # 0x526844
leaq 0x4ccdba(%rip), %rcx    # 0x526795
leaq 0x4cc6a6(%rip), %r8     # 0x526088
movl $0x99, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x599f6
movq 0x68(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rdi
movq 0x58(%rsp), %rsi
callq 0xb03a0
movq %rax, 0x40(%rsp)
movq 0x18(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0xb0530
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
cmpq 0x58(%rsp), %rax
jbe 0x59a70
movq 0x5e2561(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4bc5ca(%rip), %rsi    # 0x516013
leaq 0x4ccd68(%rip), %rdx    # 0x5267b8
leaq 0x4ccd3e(%rip), %rcx    # 0x526795
leaq 0x4cc62a(%rip), %r8     # 0x526088
movl $0x9d, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x59a72
movq 0x58(%rsp), %rax
subq 0x20(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x18(%rsp), %rdi
movq 0x50(%rsp), %rsi
callq 0xb03a0
movq %rax, 0x30(%rsp)
movq 0x18(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0xb0530
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
cmpq 0x50(%rsp), %rax
jbe 0x59aed
movq 0x5e24e4(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4bc54d(%rip), %rsi    # 0x516013
leaq 0x4cccff(%rip), %rdx    # 0x5267cc
leaq 0x4cccc1(%rip), %rcx    # 0x526795
leaq 0x4cc5ad(%rip), %r8     # 0x526088
movl $0xa1, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x59aef
movq 0x50(%rsp), %rax
subq 0x20(%rsp), %rax
movq %rax, 0x28(%rsp)
cmpq $0x0, 0x38(%rsp)
jne 0x59b4a
movq 0x18(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0xb09f0
movq %rax, 0x10(%rsp)
movq 0x28(%rsp), %rax
addq 0x60(%rsp), %rax
cmpq 0x10(%rsp), %rax
jne 0x59b48
movq 0x30(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq 0x60(%rsp), %rcx
leaq 0x51d27d(%rip), %rdi    # 0x576dbe
movb $0x0, %al
callq 0x19070
jmp 0x59b98
cmpq $0x0, 0x28(%rsp)
jne 0x59b96
movq 0x18(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0xb09f0
movq %rax, 0x8(%rsp)
movq 0x38(%rsp), %rax
addq 0x60(%rsp), %rax
cmpq 0x8(%rsp), %rax
jne 0x59b94
movq 0x40(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq 0x60(%rsp), %rcx
leaq 0x51d231(%rip), %rdi    # 0x576dbe
movb $0x0, %al
callq 0x19070
jmp 0x59b96
jmp 0x59b98
xorl %eax, %eax
addq $0x78, %rsp
retq
nop