// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/tools/gt_repfind.c
// Function: gt_exact_selfmatch_with_output
static int gt_exact_selfmatch_with_output(void *info,
                                          const GtGenericEncseq *genericencseq,
                                          GtUword len,
                                          GtUword pos1,
                                          GtUword pos2,
                                          GT_UNUSED GtError *err)
{
  GtUword queryseqnum, query_seqstart, query_seqlen, dbseqnum,
          db_seqstart, dbseqlen;
  const GtEncseq *encseq;
  GtProcessinfo_and_querymatchspaceptr *info_querymatch
    = (GtProcessinfo_and_querymatchspaceptr *) info;
  GtSeqorEncseq dbes, queryes;

  gt_assert(pos1 < pos2 && genericencseq != NULL && genericencseq->hasencseq);
  encseq = genericencseq->seqptr.encseq;
  if (gt_encseq_has_multiseq_support(encseq))
  {
    dbseqnum = gt_encseq_seqnum(encseq,pos1);
    db_seqstart = gt_encseq_seqstartpos(encseq,dbseqnum);
    dbseqlen = gt_encseq_seqlength(encseq,dbseqnum);
    queryseqnum = gt_encseq_seqnum(encseq,pos2);
    query_seqstart = gt_encseq_seqstartpos(encseq,queryseqnum);
    query_seqlen = gt_encseq_seqlength(encseq,queryseqnum);
  } else
  {
    dbseqnum = 0;
    db_seqstart = 0;
    dbseqlen = 0;
    queryseqnum = 0;
    query_seqstart = 0;
    query_seqlen = 0;
  }
  gt_assert(pos2 >= query_seqstart);
  GT_SEQORENCSEQ_INIT_ENCSEQ(&dbes,encseq);
  GT_SEQORENCSEQ_INIT_ENCSEQ(&queryes,encseq);
  if (gt_querymatch_complete(info_querymatch->querymatchspaceptr,
                             info_querymatch->out_display_flag,
                             len,
                             dbseqnum,
                             pos1 - db_seqstart,
                             db_seqstart,
                             dbseqlen,
                             0, /* score */
                             0, /* edist */
                             0, /* mismatches */
                             true,
                             (uint64_t) queryseqnum,
                             len,
                             pos2 - query_seqstart,
                             &dbes,
                             &queryes,
                             query_seqstart,
                             query_seqlen,
                             pos1 - db_seqstart,
                             pos2 - query_seqstart,
                             len,
                             false))
  {
    /* for exact matches we do not output evalues and bitscores */
    gt_querymatch_prettyprint(DBL_MAX,DBL_MAX,
                              info_querymatch->out_display_flag,
                              info_querymatch->querymatchspaceptr);
  }
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %rdi, 0xa0(%rsp)
testq %rsi, %rsi
je 0xbf1c4
movq %r8, %r12
movq %rcx, %r14
cmpq %r8, %rcx
jae 0xbf1c4
cmpb $0x0, (%rsi)
je 0xbf1c4
movq %rdx, %r15
movq 0x8(%rsi), %r13
movq %r13, %rdi
callq 0xf0b51
testb %al, %al
je 0xbf0bc
movq %r13, %rdi
movq %r14, %rsi
callq 0xefc48
movq %r15, 0x98(%rsp)
movq %rax, %r15
movq %r13, %rdi
movq %rax, %rsi
callq 0xefce0
movq %rax, 0x90(%rsp)
movq %r13, %rdi
movq %r15, %rsi
callq 0xeffd3
movq %rax, 0x88(%rsp)
movq %r13, %rdi
movq %r12, %rsi
callq 0xefc48
movq %rax, %rbx
movq %r13, %rdi
movq %rax, %rsi
callq 0xefce0
movq %rax, %rbp
movq %r13, %rdi
movq %rbx, %rsi
callq 0xeffd3
movq 0x88(%rsp), %r11
movq 0x90(%rsp), %r9
movq %r15, %rcx
movq 0x98(%rsp), %r15
jmp 0xbf0ca
xorl %eax, %eax
xorl %ecx, %ecx
xorl %r9d, %r9d
xorl %r11d, %r11d
xorl %ebp, %ebp
xorl %ebx, %ebx
subq %rbp, %r12
jb 0xbf1c9
leaq 0xe0(%rsp), %rdx
movq %r13, 0x8(%rdx)
xorl %r10d, %r10d
movq %r10, (%rdx)
movq %r10, 0x10(%rdx)
pcmpeqd %xmm0, %xmm0
movdqu %xmm0, 0x18(%rdx)
movq %r10, 0x28(%rdx)
movw $0x100, %si             # imm = 0x100
movw %si, 0x30(%rdx)
leaq 0xa8(%rsp), %r8
movq %r13, 0x8(%r8)
movq %r10, (%r8)
movq %r10, 0x10(%r8)
movdqu %xmm0, 0x18(%r8)
movq %r10, 0x28(%r8)
movw %si, 0x30(%r8)
movq 0xa0(%rsp), %r13
movq 0x8(%r13), %rdi
movq 0x18(%r13), %rsi
subq %r9, %r14
movq %r15, 0x70(%rsp)
movq %r12, 0x68(%rsp)
movq %r14, 0x60(%rsp)
movq %rax, 0x58(%rsp)
movq %rbp, 0x50(%rsp)
movq %r8, 0x48(%rsp)
movq %rdx, 0x40(%rsp)
movq %r12, 0x38(%rsp)
movq %r15, 0x30(%rsp)
movq %rbx, 0x28(%rsp)
movq %r10, 0x18(%rsp)
pxor %xmm0, %xmm0
movdqu %xmm0, 0x8(%rsp)
movq %r11, (%rsp)
movl $0x0, 0x78(%rsp)
movl $0x1, 0x20(%rsp)
movq %r15, %rdx
movq %r14, %r8
callq 0x1c4c6f
testb %al, %al
je 0xbf1b0
movq 0x8(%r13), %rsi
movq 0x18(%r13), %rdi
movq 0x291b69(%rip), %xmm0   # 0x350d10
movdqa %xmm0, %xmm1
callq 0x1c3b64
xorl %eax, %eax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1e5eb
callq 0x1e622