// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/tagerator.c
// Function: searchoverstrands
static void searchoverstrands(const TageratorOptions *tageratoroptions,
                              TgrTagwithlength *twl,
                              const AbstractDfstransformer *dfst,
                              Myersonlineresources *mor,
                              Limdfsresources *limdfsresources,
                              TgrShowmatchinfo *showmatchinfo,
                              ArrayTgrSimplematch *storeonline,
                              ArrayTgrSimplematch *storeoffline)
{
  int try;
  bool domstats, matchfound;
  GtUword maxdistance, mindistance, distance;

  if (tageratoroptions->userdefinedmaxdistance < 0)
  {
    domstats = true;
    mindistance = maxdistance = 0;
  } else
  {
    domstats = false;
    gt_assert(tageratoroptions->userdefinedmaxdistance >= 0);
    maxdistance = (GtUword) tageratoroptions->userdefinedmaxdistance;
    if (tageratoroptions->best)
    {
      mindistance = 0;
    } else
    {
      mindistance = maxdistance;
    }
  }
  matchfound = false;
  for (distance = mindistance; distance <= maxdistance; distance++)
  {
    showmatchinfo->tagptr = twl->tagptr = twl->transformedtag;
    for (try=0 ; try < 2; try++)
    {
      if ((try == 0 && !tageratoroptions->nofwdmatch) ||
          (try == 1 && !tageratoroptions->norcmatch))
      {
        if (try == 1 && !tageratoroptions->norcmatch)
        {
          showmatchinfo->tagptr = twl->tagptr = twl->rctransformedtag;
        }
        if (performpatternsearch(dfst,
                                 domstats,
                                 distance,
                                 tageratoroptions->doonline,
                                 tageratoroptions->docompare,
                                 tageratoroptions->maxintervalwidth,
                                 tageratoroptions->skpp,
                                 mor,
                                 limdfsresources,
                                 twl->tagptr,
                                 twl->taglen) && !matchfound)
        {
          matchfound = true;
        }
        if (tageratoroptions->docompare)
        {
          compareresults(storeonline,storeoffline);
        }
      }
    }
    if (tageratoroptions->best && matchfound)
    {
      break;
    }
  }
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0x78, %rsp
movq 0x98(%rsp), %rax
movq 0x90(%rsp), %rax
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 0x70(%rsp), %rax
cmpq $0x0, 0x48(%rax)
jge 0x2f0409
movb $0x1, 0x43(%rsp)
movq $0x0, 0x38(%rsp)
movq $0x0, 0x30(%rsp)
jmp 0x2f0484
movb $0x0, 0x43(%rsp)
movq 0x70(%rsp), %rax
cmpq $0x0, 0x48(%rax)
jge 0x2f0452
movq 0x34bb7f(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x225be8(%rip), %rsi    # 0x516013
leaq 0x29ed1c(%rip), %rdx    # 0x58f14e
leaq 0x29ed43(%rip), %rcx    # 0x58f17c
leaq 0x29ea4a(%rip), %r8     # 0x58ee8a
movl $0x1e8, %r9d            # imm = 0x1E8
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2f0454
movq 0x70(%rsp), %rax
movq 0x48(%rax), %rax
movq %rax, 0x38(%rsp)
movq 0x70(%rsp), %rax
testb $0x1, 0x41(%rax)
je 0x2f0478
movq $0x0, 0x30(%rsp)
jmp 0x2f0482
movq 0x38(%rsp), %rax
movq %rax, 0x30(%rsp)
jmp 0x2f0484
movb $0x0, 0x42(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
cmpq 0x38(%rsp), %rax
ja 0x2f0621
movq 0x68(%rsp), %rcx
addq $0x8, %rcx
movq 0x68(%rsp), %rax
movq %rcx, (%rax)
movq 0x48(%rsp), %rax
movq %rcx, 0x10(%rax)
movl $0x0, 0x44(%rsp)
cmpl $0x2, 0x44(%rsp)
jge 0x2f05f8
cmpl $0x0, 0x44(%rsp)
jne 0x2f04e2
movq 0x70(%rsp), %rax
testb $0x1, 0x3d(%rax)
je 0x2f04fc
cmpl $0x1, 0x44(%rsp)
jne 0x2f05e6
movq 0x70(%rsp), %rax
testb $0x1, 0x3e(%rax)
jne 0x2f05e6
cmpl $0x1, 0x44(%rsp)
jne 0x2f0528
movq 0x70(%rsp), %rax
testb $0x1, 0x3e(%rax)
jne 0x2f0528
movq 0x68(%rsp), %rcx
addq $0x48, %rcx
movq 0x68(%rsp), %rax
movq %rcx, (%rax)
movq 0x48(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x60(%rsp), %rdi
movb 0x43(%rsp), %sil
movq 0x28(%rsp), %rdx
movq 0x70(%rsp), %rax
movb 0x3a(%rax), %cl
movq 0x70(%rsp), %rax
movb 0x3b(%rax), %r8b
movq 0x70(%rsp), %rax
movq 0x58(%rax), %r9
movq 0x70(%rsp), %rax
movb 0x40(%rax), %bpl
movq 0x58(%rsp), %rbx
movq 0x50(%rsp), %r11
movq 0x68(%rsp), %rax
movq (%rax), %r10
movq 0x68(%rsp), %rax
movq 0x88(%rax), %rax
andb $0x1, %sil
andb $0x1, %cl
andb $0x1, %r8b
andb $0x1, %bpl
movzbl %sil, %esi
movzbl %cl, %ecx
movzbl %r8b, %r8d
movzbl %bpl, %ebp
movl %ebp, (%rsp)
movq %rbx, 0x8(%rsp)
movq %r11, 0x10(%rsp)
movq %r10, 0x18(%rsp)
movq %rax, 0x20(%rsp)
callq 0x2f0630
testb $0x1, %al
jne 0x2f05b8
jmp 0x2f05c4
testb $0x1, 0x42(%rsp)
jne 0x2f05c4
movb $0x1, 0x42(%rsp)
movq 0x70(%rsp), %rax
testb $0x1, 0x3b(%rax)
je 0x2f05e4
movq 0x90(%rsp), %rdi
movq 0x98(%rsp), %rsi
callq 0x2f07d0
jmp 0x2f05e6
jmp 0x2f05e8
movl 0x44(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x44(%rsp)
jmp 0x2f04c5
movq 0x70(%rsp), %rax
testb $0x1, 0x41(%rax)
je 0x2f060c
testb $0x1, 0x42(%rsp)
je 0x2f060c
jmp 0x2f0621
jmp 0x2f060e
movq 0x28(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x28(%rsp)
jmp 0x2f0493
addq $0x78, %rsp
popq %rbx
popq %rbp
retq
nopl (%rax,%rax)