// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/hpol_processor.c
// Function: gt_hpol_processor_run
int gt_hpol_processor_run(GtHpolProcessor *hpp, GtLogger *logger, GtError *err)
{
  int had_err = 0;
  GtUword i, hlen, tlen;
  GtUchar prev, c;
  bool coding = false;
  bool end_of_annotation = true;
  GtEncseqReader *esr;
  gt_assert(hpp != NULL);
  gt_assert(hpp->encseq != NULL);
  esr = gt_encseq_create_reader_with_readmode(hpp->encseq,
      GT_READMODE_FORWARD, 0);
  tlen = gt_encseq_total_length(hpp->encseq);
  prev = gt_encseq_reader_next_encoded_char(esr);
  hlen = 1UL;
  if (hpp->cds_oracle != NULL)
    had_err = gt_seqpos_classifier_position_is_inside_feature(
        hpp->cds_oracle, 0, &coding, &end_of_annotation, err);
  for (i = 1UL; i < tlen && !had_err; i++)
  {
    if (hpp->cds_oracle != NULL)
    {
      had_err = gt_seqpos_classifier_position_is_inside_feature(
          hpp->cds_oracle, i, &coding, &end_of_annotation, err);
    }
    if (!had_err)
    {
      c = gt_encseq_reader_next_encoded_char(esr);
      if (prev == c)
      {
        hlen++;
      }
      else
      {
        if (hlen >= hpp->hmin && (hpp->cds_oracle == NULL || coding))
          gt_hpol_processor_process_hpol_end(hpp, prev, i - 1UL, hlen);
        hlen = 1UL;
      }
      prev = c;
    }
  }
  if (!had_err)
  {
    if (hlen >= hpp->hmin && (hpp->cds_oracle == NULL || coding))
      gt_hpol_processor_process_hpol_end(hpp, prev, i - 1UL, hlen);
  }
  gt_encseq_reader_delete(esr);
  gt_aligned_segments_pile_flush(hpp->asp, true);
  if (!had_err && hpp->processed_segments != NULL)
  {
    for (i = 0; i < hpp->nfiles; i++)
      had_err = gt_hpol_processor_output_sorted_segments(hpp,
          hpp->reads_iters[i], hpp->outfiles[i], err);
  }
  if (logger != NULL && !had_err)
    gt_hpol_processor_show_hdist(hpp, logger);
  return had_err;
}

// Assembly:
subq $0x58, %rsp
movq %rdi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movq %rdx, 0x40(%rsp)
movl $0x0, 0x3c(%rsp)
movb $0x0, 0x1d(%rsp)
movb $0x1, 0x1c(%rsp)
cmpq $0x0, 0x50(%rsp)
jne 0x18ea65
movq 0x4ad56c(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3875d5(%rip), %rsi    # 0x516013
leaq 0x3c72f8(%rip), %rdx    # 0x555d3d
leaq 0x3c743c(%rip), %rcx    # 0x555e88
leaq 0x3c72ad(%rip), %r8     # 0x555d00
movl $0x3ae, %r9d            # imm = 0x3AE
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x18ea67
jmp 0x18ea69
movq 0x50(%rsp), %rax
cmpq $0x0, (%rax)
jne 0x18eaac
movq 0x4ad525(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x38758e(%rip), %rsi    # 0x516013
leaq 0x3c7412(%rip), %rdx    # 0x555e9e
leaq 0x3c73f5(%rip), %rcx    # 0x555e88
leaq 0x3c7266(%rip), %r8     # 0x555d00
movl $0x3af, %r9d            # imm = 0x3AF
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x18eaae
movq 0x50(%rsp), %rax
movq (%rax), %rdi
xorl %esi, %esi
xorl %eax, %eax
movl %eax, %edx
callq 0xac380
movq %rax, 0x10(%rsp)
movq 0x50(%rsp), %rax
movq (%rax), %rdi
callq 0xa9d00
movq %rax, 0x20(%rsp)
movq 0x10(%rsp), %rdi
callq 0xaae30
movb %al, 0x1f(%rsp)
movq $0x1, 0x28(%rsp)
movq 0x50(%rsp), %rax
cmpq $0x0, 0x60(%rax)
je 0x18eb20
movq 0x50(%rsp), %rax
movq 0x60(%rax), %rdi
movq 0x40(%rsp), %r8
xorl %eax, %eax
movl %eax, %esi
leaq 0x1d(%rsp), %rdx
leaq 0x1c(%rsp), %rcx
callq 0x1d5b50
movl %eax, 0x3c(%rsp)
movq $0x1, 0x30(%rsp)
movq 0x30(%rsp), %rcx
xorl %eax, %eax
cmpq 0x20(%rsp), %rcx
movb %al, 0xf(%rsp)
jae 0x18eb49
cmpl $0x0, 0x3c(%rsp)
setne %al
xorb $-0x1, %al
movb %al, 0xf(%rsp)
movb 0xf(%rsp), %al
testb $0x1, %al
jne 0x18eb56
jmp 0x18ec23
movq 0x50(%rsp), %rax
cmpq $0x0, 0x60(%rax)
je 0x18eb88
movq 0x50(%rsp), %rax
movq 0x60(%rax), %rdi
movq 0x30(%rsp), %rsi
movq 0x40(%rsp), %r8
leaq 0x1d(%rsp), %rdx
leaq 0x1c(%rsp), %rcx
callq 0x1d5b50
movl %eax, 0x3c(%rsp)
cmpl $0x0, 0x3c(%rsp)
jne 0x18ec0e
movq 0x10(%rsp), %rdi
callq 0xaae30
movb %al, 0x1e(%rsp)
movzbl 0x1f(%rsp), %eax
movzbl 0x1e(%rsp), %ecx
cmpl %ecx, %eax
jne 0x18ebbb
movq 0x28(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x28(%rsp)
jmp 0x18ec06
movq 0x28(%rsp), %rax
movq 0x50(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jb 0x18ebfd
movq 0x50(%rsp), %rax
cmpq $0x0, 0x60(%rax)
je 0x18ebde
testb $0x1, 0x1d(%rsp)
je 0x18ebfd
movq 0x50(%rsp), %rdi
movb 0x1f(%rsp), %al
movq 0x30(%rsp), %rdx
subq $0x1, %rdx
movq 0x28(%rsp), %rcx
movzbl %al, %esi
callq 0x18ed40
movq $0x1, 0x28(%rsp)
movb 0x1e(%rsp), %al
movb %al, 0x1f(%rsp)
jmp 0x18ec10
movq 0x30(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x30(%rsp)
jmp 0x18eb29
cmpl $0x0, 0x3c(%rsp)
jne 0x18ec6e
movq 0x28(%rsp), %rax
movq 0x50(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jb 0x18ec6c
movq 0x50(%rsp), %rax
cmpq $0x0, 0x60(%rax)
je 0x18ec4d
testb $0x1, 0x1d(%rsp)
je 0x18ec6c
movq 0x50(%rsp), %rdi
movb 0x1f(%rsp), %al
movq 0x30(%rsp), %rdx
subq $0x1, %rdx
movq 0x28(%rsp), %rcx
movzbl %al, %esi
callq 0x18ed40
jmp 0x18ec6e
movq 0x10(%rsp), %rdi
callq 0xac3f0
movq 0x50(%rsp), %rax
movq 0x68(%rax), %rdi
movl $0x1, %esi
callq 0x129c30
cmpl $0x0, 0x3c(%rsp)
jne 0x18ed0c
movq 0x50(%rsp), %rax
cmpq $0x0, 0xe8(%rax)
je 0x18ed0c
movq $0x0, 0x30(%rsp)
movq 0x30(%rsp), %rax
movq 0x50(%rsp), %rcx
cmpq 0xe0(%rcx), %rax
jae 0x18ed0a
movq 0x50(%rsp), %rdi
movq 0x50(%rsp), %rax
movq 0xd8(%rax), %rax
movq 0x30(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
movq 0x50(%rsp), %rax
movq 0xd0(%rax), %rax
movq 0x30(%rsp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x40(%rsp), %rcx
callq 0x18f1a0
movl %eax, 0x3c(%rsp)
movq 0x30(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x30(%rsp)
jmp 0x18ecaa
jmp 0x18ed0c
cmpq $0x0, 0x48(%rsp)
je 0x18ed2a
cmpl $0x0, 0x3c(%rsp)
jne 0x18ed2a
movq 0x50(%rsp), %rdi
movq 0x48(%rsp), %rsi
callq 0x18f3c0
movl 0x3c(%rsp), %eax
addq $0x58, %rsp
retq
nopw %cs:(%rax,%rax)