// File: /workspace/github_c_makefile_star2_O1/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 $0x28, %rsp
movq %r9, %r14
movq %r8, %r13
movq %rcx, %rbx
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 0x1bb87b
movq %rbx, 0x10(%rsp)
cmpq %rbx, %rax
jne 0x2091fc
movq %r12, %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x1bb9f7
testb %al, %al
je 0x2091bb
movq %r12, %rdi
movq %r13, %rsi
movq %r14, %rdx
movq 0x10(%rsp), %rcx
callq 0x1bb341
movq %rax, 0x18(%rsp)
cmpq $0x0, 0x10(%rax)
jle 0x2091bb
movq 0x18(%rsp), %rax
movq (%rax), %rbx
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rcx
addq %rcx, %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
cmpq 0x8(%rsp), %rax
jbe 0x2091a2
movq (%rbx), %r14
movq 0x10(%rsp), %r13
movq 0x8(%rsp), %rbp
movq %r12, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x1bb9e1
movq (%r15), %rcx
movzbl (%rcx,%rbp), %r8d
cmpb %al, %r8b
jne 0x2091ca
incq %rbp
incq %r14
decq %r13
jne 0x20917d
addq $0x8, %rbx
movq 0x18(%rsp), %rcx
movq 0x10(%rcx), %rax
shlq $0x3, %rax
addq (%rcx), %rax
cmpq %rax, %rbx
jb 0x209164
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movzbl %al, %r9d
movq 0x2badab(%rip), %rax    # 0x4c3f80
movq (%rax), %rdi
movq %r14, (%rsp)
leaq 0x1bc4cc(%rip), %rsi    # 0x3c56af
movq 0x8(%rsp), %rdx
movq %rbp, %rcx
xorl %eax, %eax
callq 0x17ab0
movl $0x2, %edi
callq 0x17940
movq 0x2bad7d(%rip), %rcx    # 0x4c3f80
movq (%rcx), %rdi
leaq 0x1bc45e(%rip), %rsi    # 0x3c566b
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x17ab0
jmp 0x2091f2