// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/ltr/ltrharvest_stream.c
// Function: gt_simpleexactselfmatchstore
static int gt_simpleexactselfmatchstore(void *info,
                                        const GtGenericEncseq *genericencseq,
                                        GtUword len, GtUword pos1,
                                        GtUword pos2,
                                        GT_UNUSED GtError *err)
{
  GtUword distance;
  RepeatInfo *repeatinfo = (RepeatInfo *) info;

  gt_error_check(err);
  gt_assert(pos1 < pos2);
  if (repeatinfo->ltrsearchseqrange.start > 0 ||
      repeatinfo->ltrsearchseqrange.end > 0)
  {
    if (pos1 < repeatinfo->ltrsearchseqrange.start  ||
        pos2 + len - 1 > repeatinfo->ltrsearchseqrange.end)
    {
      return 0;
    }
  }
  distance = pos2 - pos1;
  /*test maximal length of candidate pair and distance constraints*/
  if (len <= repeatinfo->lmax && repeatinfo->dmin <= distance
                              && distance <= repeatinfo->dmax)
  {
    GtUword seqnum1, seqnum2;

    gt_assert(genericencseq->hasencseq);
    seqnum1 = gt_encseq_seqnum(genericencseq->seqptr.encseq,pos1);
    seqnum2 = gt_encseq_seqnum(genericencseq->seqptr.encseq,pos2);
    if (seqnum1 == seqnum2)
    {
      Repeat *nextfreerepeatptr;

      GT_GETNEXTFREEINARRAY(nextfreerepeatptr,&repeatinfo->repeats,Repeat,32);
      nextfreerepeatptr->pos1 = pos1;
      nextfreerepeatptr->offset = distance;
      nextfreerepeatptr->len = len;
      nextfreerepeatptr->contignumber = seqnum1;
    }
  }
  return 0;
}

// Assembly:
subq $0x68, %rsp
movq %rdi, 0x58(%rsp)
movq %rsi, 0x50(%rsp)
movq %rdx, 0x48(%rsp)
movq %rcx, 0x40(%rsp)
movq %r8, 0x38(%rsp)
movq %r9, 0x30(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x20(%rsp)
cmpq $0x0, 0x30(%rsp)
je 0x30fc2c
movq 0x30(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x30fbf4
jmp 0x30fc2c
movq 0x32c3a5(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x20640e(%rip), %rsi    # 0x516013
leaq 0x2065b3(%rip), %rdx    # 0x5161bf
leaq 0x284797(%rip), %rcx    # 0x5943aa
leaq 0x284668(%rip), %r8     # 0x594282
movl $0xc4, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x30fc2e
jmp 0x30fc30
movq 0x40(%rsp), %rax
cmpq 0x38(%rsp), %rax
jb 0x30fc74
movq 0x32c35d(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2063c6(%rip), %rsi    # 0x516013
leaq 0x216b35(%rip), %rdx    # 0x526789
leaq 0x28474f(%rip), %rcx    # 0x5943aa
leaq 0x284620(%rip), %r8     # 0x594282
movl $0xc5, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x30fc76
movq 0x20(%rsp), %rax
cmpq $0x0, 0x38(%rax)
ja 0x30fc8e
movq 0x20(%rsp), %rax
cmpq $0x0, 0x40(%rax)
jbe 0x30fcc6
movq 0x40(%rsp), %rax
movq 0x20(%rsp), %rcx
cmpq 0x38(%rcx), %rax
jb 0x30fcb7
movq 0x38(%rsp), %rax
addq 0x48(%rsp), %rax
subq $0x1, %rax
movq 0x20(%rsp), %rcx
cmpq 0x40(%rcx), %rax
jbe 0x30fcc4
movl $0x0, 0x64(%rsp)
jmp 0x30fef5
jmp 0x30fcc6
movq 0x38(%rsp), %rax
subq 0x40(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x48(%rsp), %rax
movq 0x20(%rsp), %rcx
cmpq 0x20(%rcx), %rax
ja 0x30feed
movq 0x20(%rsp), %rax
movq 0x28(%rax), %rax
cmpq 0x28(%rsp), %rax
ja 0x30feed
movq 0x28(%rsp), %rax
movq 0x20(%rsp), %rcx
cmpq 0x30(%rcx), %rax
ja 0x30feed
jmp 0x30fd13
movq 0x50(%rsp), %rax
testb $0x1, (%rax)
jne 0x30fd55
movq 0x32c27c(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2062e5(%rip), %rsi    # 0x516013
leaq 0x216b28(%rip), %rdx    # 0x52685d
leaq 0x28466e(%rip), %rcx    # 0x5943aa
leaq 0x28453f(%rip), %r8     # 0x594282
movl $0xd6, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x30fd57
movq 0x50(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x40(%rsp), %rsi
callq 0xb03a0
movq %rax, 0x18(%rsp)
movq 0x50(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x38(%rsp), %rsi
callq 0xb03a0
movq %rax, 0x10(%rsp)
movq 0x18(%rsp), %rax
cmpq 0x10(%rsp), %rax
jne 0x30feeb
jmp 0x30fd99
jmp 0x30fd9b
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rax
addq $0x0, %rax
movq 0x20(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jb 0x30fe43
movq $0x20, (%rsp)
xorl %eax, %eax
cmpq (%rsp), %rax
jbe 0x30fdff
movq 0x32c1d2(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x20623b(%rip), %rsi    # 0x516013
leaq 0x2093c8(%rip), %rdx    # 0x5191a7
leaq 0x2845c4(%rip), %rcx    # 0x5943aa
leaq 0x284495(%rip), %r8     # 0x594282
movl $0xdd, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x30fe01
movq (%rsp), %rcx
movq 0x20(%rsp), %rax
addq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rsi
shlq $0x5, %rsi
leaq 0x284454(%rip), %rdx    # 0x594282
movl $0xdd, %ecx
callq 0xe8540
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, (%rax)
jmp 0x30fe45
movq 0x20(%rsp), %rax
cmpq $0x0, (%rax)
jne 0x30fe88
movq 0x32c149(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2061b2(%rip), %rsi    # 0x516013
leaq 0x28455f(%rip), %rdx    # 0x5943c7
leaq 0x28453b(%rip), %rcx    # 0x5943aa
leaq 0x28440c(%rip), %r8     # 0x594282
movl $0xdd, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x30fe8a
jmp 0x30fe8c
movq 0x20(%rsp), %rax
movq (%rax), %rax
movq 0x20(%rsp), %rdx
movq 0x10(%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x10(%rdx)
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, 0x8(%rsp)
movq 0x40(%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, (%rax)
movq 0x28(%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x48(%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x18(%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x18(%rax)
jmp 0x30feed
movl $0x0, 0x64(%rsp)
movl 0x64(%rsp), %eax
addq $0x68, %rsp
retq
nop