// File: /workspace/github_c_makefile_star2_O3/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 0xbd1e8
movq %r8, %r12
movq %rcx, %r14
cmpq %r8, %rcx
jae 0xbd1e8
cmpb $0x0, (%rsi)
je 0xbd1e8
movq %rdx, %r15
movq 0x8(%rsi), %rbx
movq %rbx, %rdi
callq 0xec555
testb %al, %al
je 0xbd0e5
movq %rbx, %rdi
movq %r14, %rsi
callq 0xeb655
movq %rax, %r13
movq %rbx, %rdi
movq %rax, %rsi
callq 0xeb6ee
movq %rax, 0x90(%rsp)
movq %rbx, %rdi
movq %r13, 0x98(%rsp)
movq %r13, %rsi
callq 0xeb9d2
movq %rax, 0x88(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
callq 0xeb655
movq %rax, %r13
movq %rbx, %rdi
movq %rax, %rsi
callq 0xeb6ee
movq %rax, %rbp
movq %rbx, %rdi
movq %r13, %rsi
callq 0xeb9d2
cmpq %r12, %rbp
ja 0xbd1ed
movq 0x98(%rsp), %rcx
movq 0x90(%rsp), %r9
movq 0x88(%rsp), %r11
jmp 0xbd0f4
xorl %r13d, %r13d
xorl %ebp, %ebp
xorl %r11d, %r11d
xorl %r9d, %r9d
xorl %ecx, %ecx
xorl %eax, %eax
leaq 0xe0(%rsp), %rdx
movq %rbx, 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 %rbx, 0x8(%r8)
movq %r10, (%r8)
movq %r10, 0x10(%r8)
movdqu %xmm0, 0x18(%r8)
movq %r10, 0x28(%r8)
movw %si, 0x30(%r8)
movq 0xa0(%rsp), %rbx
movq 0x8(%rbx), %rdi
movq 0x18(%rbx), %rsi
subq %r9, %r14
subq %rbp, %r12
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 %r13, 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 0x1bbef3
testb %al, %al
je 0xbd1d4
movq 0x8(%rbx), %rsi
movq 0x18(%rbx), %rdi
movq 0x28ab45(%rip), %xmm0   # 0x347d10
movdqa %xmm0, %xmm1
callq 0x1bae05
xorl %eax, %eax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1e29a
callq 0x1e2d1