// File: /workspace/github_c_makefile_star2_O1/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdx, 0x28(%rsp)
movb $0x0, 0xe(%rsp)
movb $0x1, 0xf(%rsp)
testq %rdi, %rdi
je 0x15ab0f
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x15ab14
movq %rsi, %r14
xorl %r15d, %r15d
xorl %esi, %esi
xorl %edx, %edx
callq 0xed76d
movq %rax, %r12
movq (%rbx), %rdi
callq 0xec1d8
movq %rax, 0x20(%rsp)
movq %r12, 0x38(%rsp)
movq %r12, %rdi
callq 0xec7be
movl %eax, %edx
movq 0x60(%rbx), %rdi
testq %rdi, %rdi
je 0x15a4c4
movl %edx, %ebp
leaq 0xe(%rsp), %rdx
leaq 0xf(%rsp), %rcx
xorl %esi, %esi
movq 0x28(%rsp), %r8
callq 0x17bcbd
movl %ebp, %edx
movl %eax, %r15d
movq %r14, 0x40(%rsp)
movq %rbx, 0x10(%rsp)
cmpq $0x2, 0x20(%rsp)
setae %cl
testl %r15d, %r15d
sete %al
andb %al, %cl
cmpb $0x1, %cl
jne 0x15a5a2
movl $0x1, %r12d
xorl %r13d, %r13d
movl %edx, %r14d
leaq 0x1(%r13), %rbx
movq 0x10(%rsp), %rax
movq 0x60(%rax), %rdi
testq %rdi, %rdi
je 0x15a520
movq %rbx, %rsi
leaq 0xe(%rsp), %rdx
leaq 0xf(%rsp), %rcx
movq 0x28(%rsp), %r8
callq 0x17bcbd
movl %eax, %r15d
testl %r15d, %r15d
je 0x15a52d
movq %r12, %rbp
movl %r14d, %edx
jmp 0x15a57d
movq 0x38(%rsp), %rdi
callq 0xec7be
movl %eax, %edx
cmpb %al, %r14b
jne 0x15a546
incq %r12
movq %r12, %rbp
jmp 0x15a57d
movl $0x1, %ebp
movq 0x10(%rsp), %rax
cmpq 0x8(%rax), %r12
jb 0x15a57d
cmpq $0x0, 0x60(%rax)
je 0x15a564
cmpb $0x1, 0xe(%rsp)
jne 0x15a57d
movzbl %r14b, %esi
movq 0x10(%rsp), %rdi
movl %edx, %r14d
movq %r13, %rdx
movq %r12, %rcx
callq 0x15ab1e
jmp 0x15a528
addq $0x2, %r13
testl %r15d, %r15d
sete %al
cmpq 0x20(%rsp), %r13
jae 0x15a5a9
movq %rbx, %r13
movl %edx, %r14d
movq %rbp, %r12
testl %r15d, %r15d
je 0x15a4f4
jmp 0x15a5a9
movl $0x1, %ebp
xorl %ebx, %ebx
testb %al, %al
je 0x15a727
movq 0x10(%rsp), %r13
cmpq 0x8(%r13), %rbp
jb 0x15a5db
cmpq $0x0, 0x60(%r13)
je 0x15a5ca
cmpb $0x1, 0xe(%rsp)
jne 0x15a5db
movzbl %dl, %esi
movq %r13, %rdi
movq %rbx, %rdx
movq %rbp, %rcx
callq 0x15ab1e
movq 0x38(%rsp), %rdi
callq 0xed7bf
movq 0x68(%r13), %rdi
movl $0x1, %esi
callq 0x126a44
xorl %r15d, %r15d
cmpq $0x0, 0xe8(%r13)
je 0x15a744
cmpq $0x0, 0xe0(%r13)
je 0x15a744
leaq 0x30(%rsp), %rbp
xorl %ecx, %ecx
cmpq $0x0, 0xe8(%r13)
je 0x15ab05
movq 0xd8(%r13), %rax
movq (%rax,%rcx,8), %r12
testq %r12, %r12
je 0x15ab0a
movq 0xd0(%r13), %rax
movq %rcx, 0x20(%rsp)
movq (%rax,%rcx,8), %r14
callq 0x1208f8
movq %rax, %rbx
movq %r12, %rdi
leaq 0x50(%rsp), %rsi
leaq 0x48(%rsp), %rdx
movq %rbp, %rcx
movq 0x28(%rsp), %r8
callq 0x119a11
testl %eax, %eax
jle 0x15a705
movq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x1209e4
movq 0x30(%rsp), %r15
cmpb $0x0, (%r15)
je 0x15a6b1
xorl %r13d, %r13d
cmpb $0x20, (%r15,%r13)
jne 0x15a69c
movb $0x0, (%r15,%r13)
incq %r13
movq 0x30(%rsp), %r15
movq %r15, %rdi
callq 0x172f0
cmpq %rax, %r13
jb 0x15a690
movq 0x10(%rsp), %r13
movq 0xe8(%r13), %rdi
movq %r15, %rsi
callq 0x105a11
testq %rax, %rax
je 0x15a6ed
movq %rax, %r15
movq %rbx, %rdi
callq 0x120d23
movq %r15, %rdi
movl $0x1, %esi
movq %r14, %rdx
movq %rax, %rcx
callq 0x15b2a0
jmp 0x15a653
movq 0x30(%rsp), %rsi
leaq 0x232d4c(%rip), %rdi    # 0x38d445
xorl %eax, %eax
callq 0x125448
jmp 0x15a653
movl %eax, %r15d
movq %rbx, %rdi
callq 0x121b03
movq 0x20(%rsp), %rcx
incq %rcx
cmpq 0xe0(%r13), %rcx
jb 0x15a619
jmp 0x15a744
movq 0x38(%rsp), %rdi
callq 0xed7bf
movq 0x10(%rsp), %r13
movq 0x68(%r13), %rdi
movl $0x1, %esi
callq 0x126a44
movq 0x40(%rsp), %rbp
testq %rbp, %rbp
je 0x15aaf3
testl %r15d, %r15d
jne 0x15aaf3
cmpq $0x0, 0x50(%r13)
je 0x15ab19
movq 0x8(%r13), %rdx
cmpq $0x0, 0x60(%r13)
leaq 0x1fd0b2(%rip), %rax    # 0x357828
leaq 0x232d3a(%rip), %rcx    # 0x38d4b7
cmoveq %rax, %rcx
leaq 0x232cfe(%rip), %rsi    # 0x38d486
movq %rbp, %rdi
xorl %eax, %eax
callq 0x10906e
leaq 0x232d32(%rip), %rsi    # 0x38d4cb
movq %rbp, %rdi
xorl %eax, %eax
callq 0x10906e
movq 0x8(%r13), %rbx
cmpq 0xa0(%r13), %rbx
ja 0x15a86c
leaq 0x232d2a(%rip), %r14    # 0x38d4e5
movq 0x50(%r13), %rdi
movq %rbx, %rsi
callq 0xe9aa1
testq %rax, %rax
je 0x15a85c
movq %rax, %r12
movq 0x58(%r13), %rdi
movq %rbx, %rsi
callq 0xe9aa1
movq %rax, %r13
movq 0x10(%rsp), %rax
movq 0x58(%rax), %rdi
movq %rbx, %rsi
callq 0xe9aa1
movq %rax, %xmm1
movq 0x1f60e0(%rip), %xmm2   # 0x3508e0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x1f60e4(%rip), %xmm3   # 0x3508f0
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x1f7fcc(%rip), %xmm0   # 0x3527f0
movq %r12, %xmm1
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
subpd %xmm3, %xmm1
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
movq %rbp, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movq %r12, %rcx
movq %r13, %r8
movq 0x10(%rsp), %r13
movb $0x1, %al
callq 0x10906e
incq %rbx
cmpq 0xa0(%r13), %rbx
jbe 0x15a7bb
movq 0x98(%r13), %rcx
movq %rcx, %xmm1
movq 0x1f6060(%rip), %xmm2   # 0x3508e0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x1f6064(%rip), %xmm3   # 0x3508f0
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x1f7f4c(%rip), %xmm0   # 0x3527f0
movq 0x90(%r13), %rdx
movq %rdx, %xmm1
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
subpd %xmm3, %xmm1
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
leaq 0x232c32(%rip), %rsi    # 0x38d501
movq %rbp, %rdi
movb $0x1, %al
callq 0x10906e
movq 0x60(%r13), %rdi
testq %rdi, %rdi
je 0x15a8fb
callq 0x17bf4d
leaq 0x232c30(%rip), %rsi    # 0x38d51e
movq %rbp, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x10906e
cmpb $0x1, 0xb8(%r13)
jne 0x15aaf3
movq 0x78(%r13), %rbx
addq 0x70(%r13), %rbx
movq 0x80(%r13), %r14
addq %rbx, %r14
addq 0x88(%r13), %r14
leaq 0x232c0b(%rip), %rsi    # 0x38d534
movq %rbp, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x10906e
movq %rbx, %xmm1
movq 0x1f5f9d(%rip), %xmm0   # 0x3508e0
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movdqa %xmm0, %xmm2
movapd 0x1f5f9d(%rip), %xmm0   # 0x3508f0
subpd %xmm0, %xmm1
movapd %xmm0, %xmm3
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x1f7e81(%rip), %xmm0   # 0x3527f0
movq %r14, %xmm1
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
subpd %xmm3, %xmm1
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
movapd %xmm2, 0x10(%rsp)
divsd %xmm2, %xmm0
leaq 0x232bbb(%rip), %rsi    # 0x38d554
movq %rbp, %rdi
movq %rbx, %rdx
movb $0x1, %al
callq 0x10906e
movq 0x78(%r13), %rdx
movq %rdx, %xmm1
punpckldq 0x1f5f29(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x1f5f31(%rip), %xmm1   # 0x3508f0
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x1f7e1d(%rip), %xmm0   # 0x3527f0
divsd 0x10(%rsp), %xmm0
leaq 0x232b9f(%rip), %rsi    # 0x38d57f
movq %rbp, %rdi
movb $0x1, %al
callq 0x10906e
movq 0x70(%r13), %rdx
movq %rdx, %xmm1
punpckldq 0x1f5ee5(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x1f5eed(%rip), %xmm1   # 0x3508f0
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x1f7dd9(%rip), %xmm0   # 0x3527f0
divsd 0x10(%rsp), %xmm0
leaq 0x232b86(%rip), %rsi    # 0x38d5aa
movq %rbp, %rdi
movb $0x1, %al
callq 0x10906e
movq 0x80(%r13), %rdx
movq %rdx, %xmm1
punpckldq 0x1f5e9e(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x1f5ea6(%rip), %xmm1   # 0x3508f0
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x1f7d92(%rip), %xmm0   # 0x3527f0
divsd 0x10(%rsp), %xmm0
leaq 0x232b6a(%rip), %rsi    # 0x38d5d5
movq %rbp, %rdi
movb $0x1, %al
callq 0x10906e
movq 0x88(%r13), %rdx
movq %rdx, %xmm1
punpckldq 0x1f5e57(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x1f5e5f(%rip), %xmm1   # 0x3508f0
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x1f7d4b(%rip), %xmm0   # 0x3527f0
divsd 0x10(%rsp), %xmm0
leaq 0x232b4e(%rip), %rsi    # 0x38d600
movq %rbp, %rdi
movb $0x1, %al
callq 0x10906e
cmpq $0x0, 0xe8(%r13)
je 0x15aaf3
movq 0xa8(%r13), %rdx
leaq 0x232b57(%rip), %rsi    # 0x38d62b
movq %rbp, %rdi
xorl %eax, %eax
callq 0x10906e
movq 0xb0(%r13), %rsi
leaq 0x232b61(%rip), %rdi    # 0x38d64d
xorl %eax, %eax
callq 0x108e02
movl %r15d, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x497e7
callq 0x497ae
callq 0x49892
callq 0x49859
callq 0x49820