// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/hpol_processor.c
// Function: gt_hpol_processor_refregioncheck
static void gt_hpol_processor_refregioncheck(
    GtAlignedSegment *as, void *data)
{
  GtHpolProcessor *hpp = data;
  GtUword rlen, i, startpos;
  char *r;
  bool haserr = false;
  gt_assert(hpp != NULL);
  gt_aligned_segment_ungap_refregion(as);
  gt_aligned_segment_assign_refregion_chars(as, hpp->encseq);
  r = gt_aligned_segment_refregion(as);
  rlen = (GtUword)strlen(r);
  startpos = gt_aligned_segment_refregion_startpos(as);
  for (i = 0; i < rlen; i++)
  {
    if (r[i] != gt_encseq_get_decoded_char(hpp->encseq, startpos + i,
          GT_READMODE_FORWARD))
    {
      haserr = true;
    }
  }
  if (haserr)
  {
    char *s;
    gt_aligned_segment_ungap_seq_and_qual(as);
    s = gt_aligned_segment_seq(as);
    fprintf(stderr, "segment   = %s\n", s);
    fprintf(stderr, "refregion = %s\n", r);
    fprintf(stderr, "            ");
    for (i = 0; i < rlen; i++)
    {
      if (r[i] != gt_encseq_get_decoded_char(hpp->encseq, startpos + i,
            GT_READMODE_FORWARD))
        fprintf(stderr, "X");
      else
        fprintf(stderr, " ");
    }
    fprintf(stderr, "\n");
    fprintf(stderr, "cognate = ");
    for (i = 0; i < rlen; i++)
    {
      fprintf(stderr, "%c", gt_encseq_get_decoded_char(hpp->encseq,
            startpos + i, GT_READMODE_FORWARD));
    }
    fprintf(stderr, "\n");
    fprintf(stderr, "[startpos = "GT_WU"]\n", startpos);
    exit(EXIT_FAILURE);
  }
}

// Assembly:
subq $0x58, %rsp
movq %rdi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x40(%rsp)
movb $0x0, 0x1f(%rsp)
cmpq $0x0, 0x40(%rsp)
jne 0x18dcfd
movq 0x4ae2d4(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x38833d(%rip), %rsi    # 0x516013
leaq 0x3c8060(%rip), %rdx    # 0x555d3d
leaq 0x3c81ce(%rip), %rcx    # 0x555eb2
leaq 0x3c8015(%rip), %r8     # 0x555d00
movl $0xf8, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x18dcff
movq 0x50(%rsp), %rdi
callq 0x4887d0
movq 0x50(%rsp), %rdi
movq 0x40(%rsp), %rax
movq (%rax), %rsi
callq 0x488e90
movq 0x50(%rsp), %rdi
callq 0x4882b0
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rdi
callq 0x192b0
movq %rax, 0x38(%rsp)
movq 0x50(%rsp), %rdi
callq 0x488350
movq %rax, 0x28(%rsp)
movq $0x0, 0x30(%rsp)
movq 0x30(%rsp), %rax
cmpq 0x38(%rsp), %rax
jae 0x18ddac
movq 0x20(%rsp), %rax
movq 0x30(%rsp), %rcx
movsbl (%rax,%rcx), %eax
movl %eax, 0xc(%rsp)
movq 0x40(%rsp), %rax
movq (%rax), %rdi
movq 0x28(%rsp), %rsi
addq 0x30(%rsp), %rsi
xorl %edx, %edx
callq 0xaa4b0
movb %al, %cl
movl 0xc(%rsp), %eax
movsbl %cl, %ecx
cmpl %ecx, %eax
je 0x18dd9a
movb $0x1, 0x1f(%rsp)
jmp 0x18dd9c
movq 0x30(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x30(%rsp)
jmp 0x18dd51
testb $0x1, 0x1f(%rsp)
je 0x18df86
movq 0x50(%rsp), %rdi
callq 0x4889b0
movq 0x50(%rsp), %rdi
callq 0x488210
movq %rax, 0x10(%rsp)
movq 0x4ae1c9(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
movq 0x10(%rsp), %rdx
leaq 0x3c80ed(%rip), %rsi    # 0x555ed3
movb $0x0, %al
callq 0x199f0
movq 0x4ae1ac(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
movq 0x20(%rsp), %rdx
leaq 0x3c80e0(%rip), %rsi    # 0x555ee3
movb $0x0, %al
callq 0x199f0
movq 0x4ae18f(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3c80d8(%rip), %rsi    # 0x555ef3
movb $0x0, %al
callq 0x199f0
movq $0x0, 0x30(%rsp)
movq 0x30(%rsp), %rax
cmpq 0x38(%rsp), %rax
jae 0x18deb6
movq 0x20(%rsp), %rax
movq 0x30(%rsp), %rcx
movsbl (%rax,%rcx), %eax
movl %eax, 0x8(%rsp)
movq 0x40(%rsp), %rax
movq (%rax), %rdi
movq 0x28(%rsp), %rsi
addq 0x30(%rsp), %rsi
xorl %edx, %edx
callq 0xaa4b0
movb %al, %cl
movl 0x8(%rsp), %eax
movsbl %cl, %ecx
cmpl %ecx, %eax
je 0x18de89
movq 0x4ae12a(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3dab06(%rip), %rsi    # 0x568986
movb $0x0, %al
callq 0x199f0
jmp 0x18dea1
movq 0x4ae110(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4075e5(%rip), %rsi    # 0x59547f
movb $0x0, %al
callq 0x199f0
jmp 0x18dea3
movq 0x30(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x30(%rsp)
jmp 0x18de2b
movq 0x4ae0e3(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4053ac(%rip), %rsi    # 0x593273
movb $0x0, %al
callq 0x199f0
movq 0x4ae0cb(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3c8021(%rip), %rsi    # 0x555f00
movb $0x0, %al
callq 0x199f0
movq $0x0, 0x30(%rsp)
movq 0x30(%rsp), %rax
cmpq 0x38(%rsp), %rax
jae 0x18df47
movq 0x4ae09e(%rip), %rax    # 0x63bfa0
movq (%rax), %rax
movq %rax, (%rsp)
movq 0x40(%rsp), %rax
movq (%rax), %rdi
movq 0x28(%rsp), %rsi
addq 0x30(%rsp), %rsi
xorl %edx, %edx
callq 0xaa4b0
movq (%rsp), %rdi
movsbl %al, %edx
leaq 0x3d3d9c(%rip), %rsi    # 0x561ccc
movb $0x0, %al
callq 0x199f0
movq 0x30(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x30(%rsp)
jmp 0x18deef
movq 0x4ae052(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x40531b(%rip), %rsi    # 0x593273
movb $0x0, %al
callq 0x199f0
movq 0x4ae03a(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
movq 0x28(%rsp), %rdx
leaq 0x3c7f96(%rip), %rsi    # 0x555f0b
movb $0x0, %al
callq 0x199f0
movl $0x1, %edi
callq 0x19890
addq $0x58, %rsp
retq
nopl (%rax,%rax)