// File: /workspace/github_c_makefile_star2_O2/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 0x40aff
movq %r8, %r12
movq %rcx, %r14
cmpq %r8, %rcx
jae 0x40aff
cmpb $0x0, (%rsi)
je 0x40aff
movq %rdx, %r15
movq 0x8(%rsi), %rbx
movq %rbx, %rdi
callq 0x76086
testb %al, %al
je 0x409f9
movq %rbx, %rdi
movq %r14, %rsi
callq 0x74c9d
movq %rax, %r13
movq %rbx, %rdi
movq %rax, %rsi
callq 0x74d9c
movq %rax, 0x90(%rsp)
movq %rbx, %rdi
movq %r13, 0x98(%rsp)
movq %r13, %rsi
callq 0x75173
movq %rax, 0x88(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x74c9d
movq %rax, %r13
movq %rbx, %rdi
movq %rax, %rsi
callq 0x74d9c
movq %rax, %rbp
movq %rbx, %rdi
movq %r13, %rsi
callq 0x75173
cmpq %r12, %rbp
ja 0x40b35
movq 0x98(%rsp), %rcx
movq 0x90(%rsp), %r9
movq 0x88(%rsp), %r11
jmp 0x40a08
xorl %r13d, %r13d
xorl %ebp, %ebp
xorl %r11d, %r11d
xorl %r9d, %r9d
xorl %ecx, %ecx
xorl %eax, %eax
leaq 0xe0(%rsp), %r10
movq %rbx, 0x8(%r10)
andq $0x0, (%r10)
andq $0x0, 0x10(%r10)
pcmpeqd %xmm0, %xmm0
movdqu %xmm0, 0x18(%r10)
andq $0x0, 0x28(%r10)
movw $0x100, %dx             # imm = 0x100
movw %dx, 0x30(%r10)
leaq 0xa8(%rsp), %r8
movq %rbx, 0x8(%r8)
andq $0x0, (%r8)
andq $0x0, 0x10(%r8)
movdqu %xmm0, 0x18(%r8)
andq $0x0, 0x28(%r8)
movw %dx, 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 %r10, 0x40(%rsp)
movq %r12, 0x38(%rsp)
movq %r15, 0x30(%rsp)
movq %r13, 0x28(%rsp)
pxor %xmm0, %xmm0
movdqu %xmm0, 0x8(%rsp)
andl $0x0, 0x78(%rsp)
andq $0x0, 0x18(%rsp)
movq %r11, (%rsp)
movl $0x1, 0x20(%rsp)
movq %r15, %rdx
movq %r14, %r8
callq 0x16b730
testb %al, %al
je 0x40aeb
movq 0x8(%rbx), %rsi
movq 0x18(%rbx), %rdi
movq 0x2a722e(%rip), %xmm0   # 0x2e7d10
movdqa %xmm0, %xmm1
callq 0x16a2d0
xorl %eax, %eax
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x3f7462(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2a4503(%rip), %rsi    # 0x2e5013
leaq 0x2b4c6e(%rip), %rdx    # 0x2f5785
leaq 0x2b4ca8(%rip), %rcx    # 0x2f57c6
leaq 0x2b44ab(%rip), %r8     # 0x2f4fd0
pushq $0x58
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
movq 0x3f742c(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2a44cd(%rip), %rsi    # 0x2e5013
leaq 0x2b4c98(%rip), %rdx    # 0x2f57e5
leaq 0x2b4c72(%rip), %rcx    # 0x2f57c6
leaq 0x2b4475(%rip), %r8     # 0x2f4fd0
pushq $0x6b
jmp 0x40b27