// File: /workspace/github_c_makefile_star2_O3/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, %rbp
movq %rsi, %r15
movq %rdi, %r12
movq (%rsi), %rdx
leaq (%rdx,%rbp), %rsi
addq 0x88(%r15), %rdx
callq 0x1b2cce
movq %rbx, 0x8(%rsp)
cmpq %rbx, %rax
jne 0x1ffa4c
movq %r12, %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x1b2e4a
testb %al, %al
je 0x1ffa0b
movq %r12, %rdi
movq %r13, %rsi
movq %r14, %rdx
movq 0x8(%rsp), %rcx
callq 0x1b2772
movq %rax, 0x18(%rsp)
movq 0x10(%rax), %rax
testq %rax, %rax
jle 0x1ffa0b
movq 0x18(%rsp), %rcx
movq (%rcx), %rcx
movq 0x8(%rsp), %rdx
leaq (%rdx,%rbp), %rsi
movq %rcx, %rbx
movq %rbp, 0x10(%rsp)
movq %rsi, 0x20(%rsp)
cmpq %rbp, %rsi
jbe 0x1ff9fe
movq (%rbx), %r14
movq 0x8(%rsp), %r13
movq %r12, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x1b2e34
movq (%r15), %rcx
movzbl (%rcx,%rbp), %r8d
cmpb %al, %r8b
jne 0x1ffa1a
incq %rbp
incq %r14
decq %r13
jne 0x1ff9c3
movq 0x18(%rsp), %rax
movq (%rax), %rcx
movq 0x10(%rax), %rax
movq 0x10(%rsp), %rbp
movq 0x20(%rsp), %rsi
addq $0x8, %rbx
leaq (%rcx,%rax,8), %rdx
cmpq %rdx, %rbx
jb 0x1ff9b6
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movzbl %al, %r9d
movq 0x2b955b(%rip), %rax    # 0x4b8f80
movq (%rax), %rdi
movq %r14, (%rsp)
leaq 0x1bc60c(%rip), %rsi    # 0x3bc03f
movq 0x10(%rsp), %rdx
movq %rbp, %rcx
xorl %eax, %eax
callq 0x17ab0
movl $0x2, %edi
callq 0x17940
movq 0x2b952d(%rip), %rcx    # 0x4b8f80
movq (%rcx), %rdi
leaq 0x1bc59e(%rip), %rsi    # 0x3bbffb
movq %rbp, %rdx
movq 0x8(%rsp), %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x17ab0
jmp 0x1ffa42