// File: /workspace/github_c_makefile_star2_O3/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, 0x38(%rsp)
movb $0x0, 0xe(%rsp)
movb $0x1, 0xf(%rsp)
testq %rdi, %rdi
je 0x1531e0
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x1531e5
movq %rsi, %r14
xorl %r12d, %r12d
xorl %esi, %esi
xorl %edx, %edx
callq 0xe91b2
movq %rax, %r13
movq (%rbx), %rdi
callq 0xe7b9c
movq %rax, 0x30(%rsp)
movq %r13, %r15
movq %r13, %rdi
callq 0xe8186
movl %eax, %ebp
movq %rbx, 0x10(%rsp)
movq 0x60(%rbx), %rdi
testq %rdi, %rdi
je 0x152bae
leaq 0xe(%rsp), %rdx
leaq 0xf(%rsp), %rcx
xorl %esi, %esi
movq 0x38(%rsp), %r8
callq 0x1738c1
movl %eax, %r12d
cmpq $0x2, 0x30(%rsp)
setae %cl
testl %r12d, %r12d
sete %al
andb %al, %cl
cmpb $0x1, %cl
movq %r14, 0x28(%rsp)
movl $0x1, %r13d
jne 0x152c69
xorl %ebx, %ebx
movq %rbx, %r14
incq %rbx
movq 0x10(%rsp), %rax
movq 0x60(%rax), %rdi
testq %rdi, %rdi
je 0x152c08
movq %rbx, %rsi
leaq 0xe(%rsp), %rdx
leaq 0xf(%rsp), %rcx
movq 0x38(%rsp), %r8
callq 0x1738c1
testl %eax, %eax
jne 0x1531a6
movq %r15, %rdi
callq 0xe8186
cmpb %al, %bpl
jne 0x152c1a
incq %r13
jmp 0x152c53
movl %eax, %r12d
movq 0x10(%rsp), %rax
cmpq 0x8(%rax), %r13
jb 0x152c4a
cmpq $0x0, 0x60(%rax)
je 0x152c36
cmpb $0x1, 0xe(%rsp)
jne 0x152c4a
movzbl %bpl, %esi
movq 0x10(%rsp), %rdi
movq %r14, %rdx
movq %r13, %rcx
callq 0x1531ef
movl $0x1, %r13d
movl %r12d, %ebp
addq $0x2, %r14
cmpq 0x30(%rsp), %r14
jb 0x152bd5
movb $0x1, %al
xorl %r12d, %r12d
jmp 0x152c6b
xorl %ebx, %ebx
testb %al, %al
je 0x1531a9
movq 0x10(%rsp), %r14
cmpq 0x8(%r14), %r13
jb 0x152c9e
cmpq $0x0, 0x60(%r14)
je 0x152c8c
cmpb $0x1, 0xe(%rsp)
jne 0x152c9e
movzbl %bpl, %esi
movq %r14, %rdi
movq %rbx, %rdx
movq %r13, %rcx
callq 0x1531ef
movq %r15, %rdi
callq 0xe9204
movq 0x68(%r14), %rdi
movl $0x1, %esi
callq 0x120c5b
xorl %r12d, %r12d
cmpq $0x0, 0xe8(%r14)
movq %r14, %rbp
je 0x152de9
cmpq $0x0, 0xe0(%rbp)
je 0x152de9
leaq 0x40(%rsp), %r14
xorl %ecx, %ecx
cmpq $0x0, 0xe8(%rbp)
je 0x1531d6
movq 0xd8(%rbp), %rax
movq (%rax,%rcx,8), %r15
testq %r15, %r15
je 0x1531db
movq 0xd0(%rbp), %rax
movq %rcx, 0x30(%rsp)
movq (%rax,%rcx,8), %r13
callq 0x11ac6c
movq %rax, %rbx
movq %r15, %rdi
leaq 0x50(%rsp), %rsi
leaq 0x48(%rsp), %rdx
movq %r14, %rcx
movq 0x38(%rsp), %r8
callq 0x11433d
testl %eax, %eax
jle 0x152dc9
movq 0x40(%rsp), %rsi
movq %rbx, %rdi
callq 0x11ad62
movq 0x40(%rsp), %r12
cmpb $0x0, (%r12)
je 0x152d75
xorl %ebp, %ebp
cmpb $0x20, (%r12,%rbp)
jne 0x152d65
movb $0x0, (%r12,%rbp)
movq 0x40(%rsp), %r12
incq %rbp
movq %r12, %rdi
callq 0x172f0
cmpq %rax, %rbp
jb 0x152d54
movq 0x10(%rsp), %rbp
movq 0xe8(%rbp), %rdi
movq %r12, %rsi
callq 0x100add
testq %rax, %rax
je 0x152db1
movq %rax, %r12
movq %rbx, %rdi
callq 0x11b0a1
movq %r12, %rdi
movl $0x1, %esi
movq %r13, %rdx
movq %rax, %rcx
callq 0x1539c7
jmp 0x152d17
movq 0x40(%rsp), %rsi
leaq 0x2312c8(%rip), %rdi    # 0x384085
xorl %eax, %eax
callq 0x11f68c
jmp 0x152d17
movl %eax, %r12d
movq %rbx, %rdi
callq 0x11bdbf
movq 0x30(%rsp), %rcx
incq %rcx
cmpq 0xe0(%rbp), %rcx
jb 0x152cdd
movq 0x28(%rsp), %rbx
testq %rbx, %rbx
je 0x1531c4
testl %r12d, %r12d
jne 0x1531c4
cmpq $0x0, 0x50(%rbp)
je 0x1531ea
movq 0x8(%rbp), %rdx
cmpq $0x0, 0x60(%rbp)
leaq 0x1fb9dd(%rip), %rax    # 0x34e7f8
leaq 0x2312d5(%rip), %rcx    # 0x3840f7
cmoveq %rax, %rcx
leaq 0x231299(%rip), %rsi    # 0x3840c6
movq %rbx, %rdi
xorl %eax, %eax
callq 0x103fe1
leaq 0x2312cd(%rip), %rsi    # 0x38410b
movq %rbx, %rdi
xorl %eax, %eax
callq 0x103fe1
movq 0x8(%rbp), %rbx
cmpq 0xa0(%rbp), %rbx
ja 0x152f09
leaq 0x2312c5(%rip), %r14    # 0x384125
movq 0x50(%rbp), %rdi
movq %rbx, %rsi
callq 0xe55a7
testq %rax, %rax
je 0x152ef9
movq %rax, %r15
movq 0x58(%rbp), %rdi
movq %rbx, %rsi
callq 0xe55a7
movq %rax, %r12
movq 0x58(%rbp), %rdi
movq %rbx, %rsi
callq 0xe55a7
movq %rax, %xmm1
movq 0x1f4a40(%rip), %xmm2   # 0x3478e0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x1f4a44(%rip), %xmm3   # 0x3478f0
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x1f691c(%rip), %xmm0   # 0x3497e0
movq %r15, %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 0x28(%rsp), %rdi
movq %r14, %rsi
movq %rbx, %rdx
movq %r15, %rcx
movq %r12, %r8
movb $0x1, %al
callq 0x103fe1
incq %rbx
cmpq 0xa0(%rbp), %rbx
jbe 0x152e60
movq 0x98(%rbp), %rcx
movq %rcx, %xmm1
movq 0x1f49c3(%rip), %xmm2   # 0x3478e0
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x1f49c7(%rip), %xmm3   # 0x3478f0
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x1f689f(%rip), %xmm0   # 0x3497e0
movq 0x90(%rbp), %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 0x2311d5(%rip), %rsi    # 0x384141
movq 0x28(%rsp), %rbx
movq %rbx, %rdi
movb $0x1, %al
callq 0x103fe1
movq 0x60(%rbp), %rdi
testq %rdi, %rdi
je 0x152f9d
callq 0x173b58
leaq 0x2311ce(%rip), %rsi    # 0x38415e
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x103fe1
xorl %r12d, %r12d
cmpb $0x1, 0xb8(%rbp)
jne 0x1531c4
movq 0x78(%rbp), %rbx
addq 0x70(%rbp), %rbx
movq 0x80(%rbp), %r14
addq %rbx, %r14
addq 0x88(%rbp), %r14
leaq 0x2311a7(%rip), %rsi    # 0x384174
xorl %r12d, %r12d
movq 0x28(%rsp), %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x103fe1
movq %rbx, %xmm1
movq 0x1f48f4(%rip), %xmm0   # 0x3478e0
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movdqa %xmm0, %xmm2
movapd 0x1f48f4(%rip), %xmm0   # 0x3478f0
subpd %xmm0, %xmm1
movapd %xmm0, %xmm3
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x1f67c8(%rip), %xmm0   # 0x3497e0
movq %r14, %xmm1
movq 0x28(%rsp), %r14
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 0x23114d(%rip), %rsi    # 0x384194
movq %r14, %rdi
movq %rbx, %rdx
movb $0x1, %al
callq 0x103fe1
movq 0x78(%rbp), %rdx
movq %rdx, %xmm1
punpckldq 0x1f487b(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x1f4883(%rip), %xmm1   # 0x3478f0
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x1f675f(%rip), %xmm0   # 0x3497e0
divsd 0x10(%rsp), %xmm0
leaq 0x231131(%rip), %rsi    # 0x3841bf
movq %r14, %rdi
movb $0x1, %al
callq 0x103fe1
movq 0x70(%rbp), %rdx
movq %rdx, %xmm1
punpckldq 0x1f4837(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x1f483f(%rip), %xmm1   # 0x3478f0
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x1f671b(%rip), %xmm0   # 0x3497e0
divsd 0x10(%rsp), %xmm0
leaq 0x231118(%rip), %rsi    # 0x3841ea
movq %r14, %rdi
movb $0x1, %al
callq 0x103fe1
movq 0x80(%rbp), %rdx
movq %rdx, %xmm1
punpckldq 0x1f47f0(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x1f47f8(%rip), %xmm1   # 0x3478f0
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x1f66d4(%rip), %xmm0   # 0x3497e0
divsd 0x10(%rsp), %xmm0
leaq 0x2310fc(%rip), %rsi    # 0x384215
movq %r14, %rdi
movb $0x1, %al
callq 0x103fe1
movq 0x88(%rbp), %rdx
movq %rdx, %xmm1
punpckldq 0x1f47a9(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x1f47b1(%rip), %xmm1   # 0x3478f0
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
mulsd 0x1f668d(%rip), %xmm0   # 0x3497e0
divsd 0x10(%rsp), %xmm0
leaq 0x2310e0(%rip), %rsi    # 0x384240
movq %r14, %rdi
movb $0x1, %al
callq 0x103fe1
cmpq $0x0, 0xe8(%rbp)
je 0x1531c4
movq 0xa8(%rbp), %rdx
leaq 0x2310e9(%rip), %rsi    # 0x38426b
xorl %r12d, %r12d
movq %r14, %rdi
xorl %eax, %eax
callq 0x103fe1
movq 0xb0(%rbp), %rsi
leaq 0x2310f0(%rip), %rdi    # 0x38428d
xorl %eax, %eax
callq 0x103d72
jmp 0x1531c4
movl %eax, %r12d
movq %r15, %rdi
callq 0xe9204
movq 0x10(%rsp), %rax
movq 0x68(%rax), %rdi
movl $0x1, %esi
callq 0x120c5b
movl %r12d, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x48973
callq 0x4893a
callq 0x48a1e
callq 0x489e5
callq 0x489ac