// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x78, %rsp
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 0x68(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x70(%rsp), %rdi
movq 0x38(%rsp), %rax
movq (%rax), %rsi
addq 0x60(%rsp), %rsi
movq 0x38(%rsp), %rax
movq (%rax), %rdx
movq 0x38(%rsp), %rax
addq 0x88(%rax), %rdx
callq 0x255d50
movq %rax, 0x40(%rsp)
movq 0x58(%rsp), %rax
cmpq 0x40(%rsp), %rax
je 0x2effe9
movq 0x34bfe1(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
movq 0x60(%rsp), %rdx
movq 0x58(%rsp), %rcx
movq 0x40(%rsp), %r8
leaq 0x29f070(%rip), %rsi    # 0x58f048
movb $0x0, %al
callq 0x199f0
movl $0x2, %edi
callq 0x19890
movq 0x70(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq 0x48(%rsp), %rdx
callq 0x2560d0
testb $0x1, %al
jne 0x2f0006
jmp 0x2f0142
movq 0x70(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq 0x58(%rsp), %rcx
callq 0x2552f0
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
movq 0x10(%rsp), %rcx
movq (%rcx), %rcx
movq 0x10(%rsp), %rdx
movq 0x10(%rdx), %rdx
shlq $0x3, %rdx
addq %rdx, %rcx
cmpq %rcx, %rax
jae 0x2f0140
movq 0x28(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq 0x60(%rsp), %rcx
addq 0x58(%rsp), %rcx
cmpq %rcx, %rax
jae 0x2f012b
movq 0x70(%rsp), %rdi
movq 0x20(%rsp), %rsi
addq 0x18(%rsp), %rsi
subq 0x60(%rsp), %rsi
xorl %edx, %edx
callq 0x256050
movb %al, 0x37(%rsp)
movq 0x38(%rsp), %rax
movq (%rax), %rax
movq 0x18(%rsp), %rcx
movzbl (%rax,%rcx), %eax
movzbl 0x37(%rsp), %ecx
cmpl %ecx, %eax
je 0x2f0116
movq 0x34beda(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
movq 0x60(%rsp), %rdx
movq 0x18(%rsp), %rcx
movq 0x38(%rsp), %rax
movq (%rax), %rax
movq 0x18(%rsp), %rsi
movzbl (%rax,%rsi), %r8d
movzbl 0x37(%rsp), %r9d
movq 0x20(%rsp), %rax
addq 0x18(%rsp), %rax
subq 0x60(%rsp), %rax
leaq 0x29ef8b(%rip), %rsi    # 0x58f08c
movq %rax, (%rsp)
movb $0x0, %al
callq 0x199f0
movl $0x2, %edi
callq 0x19890
jmp 0x2f0118
movq 0x18(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x18(%rsp)
jmp 0x2f006e
jmp 0x2f012d
movq 0x28(%rsp), %rax
addq $0x8, %rax
movq %rax, 0x28(%rsp)
jmp 0x2f0031
jmp 0x2f0142
addq $0x78, %rsp
retq
nopw (%rax,%rax)