// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/tagerator.c
// Function: checkmstats
static void checkmstats(void *processinfo,
                        const void *patterninfo,
                        GtUword patternstartpos,
                        GtUword mstatlength,
                        GtUword leftbound,
                        GtUword rightbound)
{
  GT_UNUSED GtUword realmstatlength;
  TgrTagwithlength *twl = (TgrTagwithlength *) patterninfo;

  realmstatlength = genericmstats((const Limdfsresources *) processinfo,
                                  twl->tagptr + patternstartpos,
                                  twl->tagptr + twl->taglen);
#ifndef NDEBUG
  if (mstatlength != realmstatlength)
  {
    fprintf(stderr,"patternstartpos = "GT_WU": mstatlength = "GT_WU" != "GT_WU
            "  = realmstatlength\n",
                    patternstartpos,mstatlength,realmstatlength);
    exit(GT_EXIT_PROGRAMMING_ERROR);
  }
#endif
  if (gt_intervalwidthleq((const Limdfsresources *) processinfo,leftbound,
                       rightbound))
  {
    GtUchar cc;
    GtUword *sptr, witnessposition;
    GtUword idx;
    GtArrayGtUword *mstatspos = gt_fromitv2sortedmatchpositions(
                                  (Limdfsresources *) processinfo,
                                  leftbound,
                                  rightbound,
                                  mstatlength);
    for (sptr = mstatspos->spaceGtUword; sptr < mstatspos->spaceGtUword +
                                               mstatspos->nextfreeGtUword;
         sptr++)
    {
      witnessposition = *sptr;
      for (idx = patternstartpos; idx < patternstartpos + mstatlength; idx++)
      {
        cc = gt_limdfs_getencodedchar((const Limdfsresources *) processinfo,
                                  witnessposition + idx - patternstartpos,
                                  GT_READMODE_FORWARD);
        if (twl->tagptr[idx] != cc)
        {
          fprintf(stderr,"patternstartpos = "GT_WU": pattern["GT_WU
                  "] = %u != %u = sequence["GT_WU"]\n",
                  patternstartpos, idx, (unsigned int) twl->tagptr[idx],
                  (unsigned int) cc,
                  (GtUword) (witnessposition+idx-patternstartpos));
          exit(GT_EXIT_PROGRAMMING_ERROR);
        }
      }
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %rbx
movq %r8, %r13
movq %rcx, %r14
movq %rdx, %rax
movq %rsi, %r15
movq %rdi, %r12
movq (%rsi), %rdx
movq %rax, 0x8(%rsp)
leaq (%rdx,%rax), %rsi
addq 0x88(%r15), %rdx
callq 0x160899
cmpq %r14, %rax
jne 0x1b35fc
movq %r12, %rdi
movq %r13, %rsi
movq %rbx, %rdx
callq 0x160a31
testb %al, %al
je 0x1b35bd
movq %r12, %rdi
movq %r13, %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x16020b
movq (%rax), %rdx
addq 0x8(%rsp), %r14
movq %rdx, %r13
movq %rax, 0x10(%rsp)
movq 0x10(%rax), %rcx
leaq (%rdx,%rcx,8), %rcx
cmpq %rcx, %r13
jae 0x1b35bd
movq (%r13), %rbx
movq 0x8(%rsp), %rbp
cmpq %r14, %rbp
jae 0x1b35af
movq %r12, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x1609e8
movq (%r15), %rcx
movzbl (%rcx,%rbp), %r8d
cmpb %al, %r8b
jne 0x1b35cc
incq %rbp
incq %rbx
jmp 0x1b3588
addq $0x8, %r13
movq 0x10(%rsp), %rax
movq (%rax), %rdx
jmp 0x1b3572
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movzbl %al, %r9d
movq 0x284991(%rip), %rax    # 0x437f68
movq (%rax), %rdi
movq %rbx, (%rsp)
leaq 0x1a8eac(%rip), %rsi    # 0x35c491
movq 0x8(%rsp), %rdx
movq %rbp, %rcx
xorl %eax, %eax
callq 0x17a50
pushq $0x2
popq %rdi
callq 0x178f0
movq 0x284965(%rip), %rcx    # 0x437f68
movq (%rcx), %rdi
leaq 0x1a8e40(%rip), %rsi    # 0x35c44d
movq 0x8(%rsp), %rdx
movq %r14, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x17a50
jmp 0x1b35f4