// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/extended/hpol_processor.c
// Function: gt_hpol_processor_process_hpol_end
static void gt_hpol_processor_process_hpol_end(GtHpolProcessor *hpp,
    GtUchar c, GtUword endpos, GtUword hlen)
{
  bool edited = false;
  gt_disc_distri_add(hpp->hdist, hlen);
  hpp->nof_h++;
  if (hlen > hpp->hlen_max)
    hpp->hlen_max = hlen;
  if (hpp->adjust_s_hlen)
  {
    char ch = gt_alphabet_decode(hpp->alpha, c);
    GtUword a_supp_max = ULONG_MAX, a_supp = 0, piled, r_supp = 0, a_hlen,
                  r_supp_min = 0;
    gt_aligned_segments_pile_move_over_position(hpp->asp, endpos + 1UL);
    piled = gt_aligned_segments_pile_size(hpp->asp);
    if (piled >= hpp->covmin)
    {
      gt_hpol_processor_determine_alternative_consensus(hpp, ch,
          endpos + 1UL - hlen, hlen, &a_hlen, &a_supp, &piled,
          &r_supp);
      a_supp_max = (GtUword)(hpp->altmax * (double)piled);
      r_supp_min = (GtUword)(hpp->refmin * (double)piled);
      if (r_supp < piled && r_supp >= r_supp_min && a_supp <= a_supp_max)
      {
        edited = gt_hpol_processor_adjust_hlen_of_all_segments(hpp->asp, ch,
            endpos + 1UL - hlen, piled, hlen, r_supp, a_hlen, a_supp,
            hpp->clenmax, hpp->allow_partial, hpp->allow_multiple,
            hpp->read_hmin, hpp->qmax, hpp->mapqmin, hpp->output_stats,
            hpp->outfp_stats, hpp->processed_segments,
            hpp->output_multihit_stats);
      }
    }
  }
  if (edited)
  {
    hpp->nof_h_e++;
    gt_disc_distri_add(hpp->hdist_e, hlen);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rcx, %r15
movq %rdx, %r14
movl %esi, %ebx
movq %rdi, %r12
movq 0x50(%rdi), %rdi
movq %rcx, %rsi
callq 0x6d96d
incq 0x90(%r12)
cmpq %r15, 0xa0(%r12)
jae 0xef53c
movq %r15, 0xa0(%r12)
cmpb $0x1, 0xb8(%r12)
jne 0xefc02
movq 0xf0(%r12), %rdi
movzbl %bl, %esi
callq 0x575cc
movl %eax, %ebx
movq 0x68(%r12), %rdi
incq %r14
movq %r14, 0x50(%rsp)
movq %r14, %rsi
callq 0xb4a51
movq 0x68(%r12), %rdi
callq 0xb4a0a
cmpq 0x28(%r12), %rax
jb 0xefc02
movq 0x50(%rsp), %rax
subq %r15, %rax
movq %rax, 0x30(%rsp)
leaq (%r15,%r15), %r14
movq %r15, 0x8(%rsp)
leaq 0x1(,%r15,2), %rdi
leaq 0x234415(%rip), %rdx    # 0x3239c1
pushq $0x8
popq %rsi
movq %rdi, 0x48(%rsp)
movl $0x2fe, %ecx            # imm = 0x2FE
callq 0x9334a
movq %rax, %rbp
movq %r12, 0x98(%rsp)
movq 0x68(%r12), %rdi
callq 0xb4d1e
movq %rax, %rdi
callq 0x6e1b4
movq %rax, %r13
movq $0x0, 0x28(%rsp)
movsbl %bl, %eax
movq %rax, 0x10(%rsp)
testq %r13, %r13
je 0xef683
movq %r13, %rdi
callq 0x6e2bb
movq %rax, %r15
movq %rax, %rdi
movq 0x30(%rsp), %rsi
callq 0x296501
movq %rax, %r12
movq %r15, %rdi
movq 0x50(%rsp), %rsi
callq 0x296501
movq %rax, %rbx
cmpq $-0x1, %r12
sete %al
cmpq $-0x1, %rbx
sete %cl
orb %al, %cl
jne 0xef673
incq 0x28(%rsp)
decq %rbx
movq %r15, %rdi
callq 0x29632e
subq $0x8, %rsp
movq %rax, %rdi
xorl %esi, %esi
movq %r12, %rdx
movq %rbx, %rcx
movq 0x18(%rsp), %r8
xorl %r9d, %r9d
pushq $0x0
callq 0xeff12
addq $0x10, %rsp
cmpq %r14, %rax
cmovaeq %r14, %rax
incq (%rbp,%rax,8)
movq %r13, %rdi
callq 0x6e2fe
movq %rax, %r13
jmp 0xef5ef
movq 0x8(%rsp), %r13
movq (%rbp,%r13,8), %r12
movq (%rbp), %rbx
xorl %r15d, %r15d
xorl %eax, %eax
movq 0x28(%rsp), %r14
movq 0x48(%rsp), %rdx
cmpq %rax, %rdx
je 0xef6bf
cmpq %rax, %r13
je 0xef6ba
movq (%rbp,%rax,8), %rcx
cmpq %rbx, %rcx
cmovaq %rcx, %rbx
cmovaq %rax, %r15
incq %rax
jmp 0xef6a0
leaq 0x2342fb(%rip), %rsi    # 0x3239c1
movq %rbp, %rdi
movl $0x320, %edx            # imm = 0x320
callq 0x936f9
cmpq %r14, %r12
movq 0x98(%rsp), %rsi
jae 0xefc02
movq %r14, %xmm1
punpckldq 0x1f81ef(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x1f81f7(%rip), %xmm1   # 0x2e78f0
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movsd 0x1f8613(%rip), %xmm1   # 0x2e7d20
movsd 0x48(%rsi), %xmm2
mulsd %xmm0, %xmm2
cvttsd2si %xmm2, %rax
movq %rax, %rcx
subsd %xmm1, %xmm2
cvttsd2si %xmm2, %rdx
sarq $0x3f, %rcx
andq %rcx, %rdx
orq %rax, %rdx
cmpq %rdx, %r12
jb 0xefc02
mulsd 0x40(%rsi), %xmm0
cvttsd2si %xmm0, %rax
movq %rax, %rcx
subsd %xmm1, %xmm0
cvttsd2si %xmm0, %rdx
sarq $0x3f, %rcx
andq %rcx, %rdx
orq %rax, %rdx
cmpq %rdx, %rbx
ja 0xefc02
movq %r12, 0x78(%rsp)
movq 0x68(%rsi), %rdi
testq %rdi, %rdi
je 0xefc14
movq 0x10(%rsi), %rax
movq %rax, 0x80(%rsp)
movq 0x18(%rsi), %rax
movq %rax, 0xb0(%rsp)
movb 0x38(%rsi), %al
movb %al, 0x6(%rsp)
movb 0x39(%rsi), %al
movb %al, 0x5(%rsp)
movq 0x20(%rsi), %rax
movq %rax, 0x48(%rsp)
movb 0xf9(%rsi), %r12b
movq 0xc8(%rsi), %rax
movq %rax, 0x70(%rsp)
movq 0xe8(%rsi), %rax
movq %rax, 0xb8(%rsp)
testq %rax, %rax
sete %r14b
orb 0xfa(%rsi), %r14b
movsd 0x30(%rsi), %xmm0
movaps %xmm0, 0x60(%rsp)
callq 0xb4d1e
movq %rax, %rdi
callq 0x6e1b4
movq %rax, %rbp
movb %r12b, 0x4(%rsp)
xorb $0x1, %r12b
movapd 0x60(%rsp), %xmm1
unpcklps 0x1f80dc(%rip), %xmm1   # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
orb %r14b, %r12b
movb %r12b, 0x7(%rsp)
subpd 0x1f80dc(%rip), %xmm1   # 0x2e78f0
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movapd %xmm0, 0xc0(%rsp)
movq $0x0, 0x18(%rsp)
testq %rbp, %rbp
je 0xefbe0
movq %rbp, %rdi
callq 0x6e2bb
movq %rax, %r14
movq %rax, %rdi
callq 0x296a89
testb %al, %al
je 0xef901
movq %r14, %rdi
callq 0x2962a8
cmpq 0x48(%rsp), %rax
jb 0xef901
cmpb $0x0, 0x7(%rsp)
jne 0xef8a3
movq %r14, %rdi
callq 0x29693c
movq 0xb8(%rsp), %rdi
movq %rax, %rsi
callq 0x8f482
testq %rax, %rax
je 0xef8a3
movq %rax, %rdi
callq 0x2969c2
movl %eax, %r12d
xorb $0x1, %r12b
andb 0x4(%rsp), %r12b
jmp 0xef8a8
movb 0x4(%rsp), %r12b
andq $0x0, 0x58(%rsp)
andq $0x0, 0x38(%rsp)
movq %r14, %rdi
movq 0x30(%rsp), %rsi
callq 0x296501
movq %rax, %r13
movq %r14, %rdi
movq 0x50(%rsp), %rsi
callq 0x296501
movq %r13, 0x60(%rsp)
leaq 0x1(%r13), %rcx
cmpq $0x2, %rcx
setb %dl
cmpq $-0x1, %rax
sete %cl
orb %dl, %cl
jne 0xef8fc
movq %r14, %rdi
movq %rax, %r13
callq 0x2963f6
cmpq %rax, %r13
jne 0xef911
movq 0x8(%rsp), %r13
movq %rbp, %rdi
callq 0x6e2fe
movq %rax, %rbp
jmp 0xef832
movq %r13, %rcx
decq %rcx
movq %rcx, 0x40(%rsp)
movq %r14, %rdi
callq 0x29632e
movq %rax, %r13
movq %r14, %rdi
callq 0x296370
subq $0x8, %rsp
movq %r13, 0x98(%rsp)
movq %r13, %rdi
movq %rax, 0x90(%rsp)
movq %rax, %rsi
movq 0x68(%rsp), %rdx
movq 0x48(%rsp), %rcx
movq 0x18(%rsp), %r8
leaq 0x60(%rsp), %r9
leaq 0x40(%rsp), %rax
pushq %rax
callq 0xeff12
addq $0x10, %rsp
testq %rax, %rax
je 0xef8fc
cmpq 0xb0(%rsp), %rax
jb 0xef8fc
movq 0x58(%rsp), %rdx
imulq $0x21, %rax, %rcx
subq %rcx, %rdx
jbe 0xefc42
movq %rdx, %xmm0
movq 0x1f7f46(%rip), %xmm1   # 0x2e78e0
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x1f7f4a(%rip), %xmm2   # 0x2e78f0
subpd %xmm2, %xmm0
movapd %xmm0, %xmm3
unpckhpd %xmm0, %xmm3            # xmm3 = xmm3[1],xmm0[1]
addsd %xmm0, %xmm3
movq %rax, %xmm0
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
subpd %xmm2, %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
divsd %xmm1, %xmm3
movq %rax, %r13
subq 0x8(%rsp), %r13
jae 0xefb05
movq 0x38(%rsp), %rcx
testq %rcx, %rcx
je 0xef8fc
movq 0x8(%rsp), %r13
subq %rax, %r13
cmpq %r13, %rcx
setae %cl
cmpq 0x80(%rsp), %r13
ja 0xef8fc
movapd 0xc0(%rsp), %xmm0
ucomisd %xmm3, %xmm0
jb 0xef8fc
orb 0x6(%rsp), %cl
je 0xef8fc
movq %r14, %rdi
movq %rax, 0x20(%rsp)
movapd %xmm3, 0xa0(%rsp)
callq 0x2969c2
movapd 0xa0(%rsp), %xmm0
cmpb $0x0, 0x5(%rsp)
jne 0xefa56
testb %al, %al
jne 0xef8fc
movq %r13, 0x18(%rsp)
testb %r12b, %r12b
movq 0x8(%rsp), %r13
je 0xefaac
movq 0x38(%rsp), %rax
movq 0x18(%rsp), %rcx
cmpq %rcx, %rax
cmovaeq %rcx, %rax
subq $0x8, %rsp
movq %r14, %rdi
movq 0x38(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq %r13, %rcx
movq 0x80(%rsp), %r8
movq 0x28(%rsp), %r9
pushq 0x78(%rsp)
pushq %rax
pushq 0x28(%rsp)
pushq %rbx
pushq %r15
callq 0xeff61
addq $0x30, %rsp
movq %r14, %rdi
callq 0x29697f
movq 0x38(%rsp), %rax
movq 0x18(%rsp), %r8
cmpq %r8, %rax
cmovbq %rax, %r8
movq 0x58(%rsp), %rax
xorl %edx, %edx
divq 0x20(%rsp)
movsbl %al, %eax
movq 0x90(%rsp), %rdi
movq 0x88(%rsp), %rsi
movq 0x60(%rsp), %rdx
movq 0x40(%rsp), %rcx
pushq $0x2d
popq %r9
pushq %rax
pushq 0x18(%rsp)
callq 0xf0440
addq $0x10, %rsp
jmp 0xefbd4
jbe 0xef8fc
cmpq 0x80(%rsp), %r13
ja 0xef8fc
movapd 0xc0(%rsp), %xmm0
ucomisd %xmm3, %xmm0
jb 0xef8fc
movq %r14, %rdi
movq %rax, 0x20(%rsp)
movapd %xmm3, 0xa0(%rsp)
callq 0x2969c2
movapd 0xa0(%rsp), %xmm0
movq 0x20(%rsp), %r9
cmpb $0x0, 0x5(%rsp)
jne 0xefb5f
testb %al, %al
jne 0xef8fc
testb %r12b, %r12b
je 0xefb98
subq $0x8, %rsp
movq %r14, %rdi
movq 0x38(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq 0x10(%rsp), %rcx
movq 0x80(%rsp), %r8
pushq 0x78(%rsp)
pushq %r13
pushq 0x28(%rsp)
pushq %rbx
pushq %r15
callq 0xeff61
addq $0x30, %rsp
movq %r14, %rdi
callq 0x29697f
movq 0x90(%rsp), %rdi
movq 0x88(%rsp), %rsi
movq 0x60(%rsp), %rdx
movq 0x40(%rsp), %rcx
movq %r13, %r8
movq 0x10(%rsp), %r9
pushq $0x7f
pushq $0x2d
callq 0xf0440
addq $0x10, %rsp
movq 0x8(%rsp), %r13
movb $0x1, %al
movq %rax, 0x18(%rsp)
jmp 0xef901
testb $0x1, 0x18(%rsp)
movq 0x98(%rsp), %rax
je 0xefc02
incq 0x98(%rax)
movq 0x58(%rax), %rdi
movq %r13, %rsi
callq 0x6d96d
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x34834d(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1f53ee(%rip), %rsi    # 0x2e5013
leaq 0x22509d(%rip), %rdx    # 0x314cc9
leaq 0x234660(%rip), %rcx    # 0x324293
leaq 0x233d87(%rip), %r8     # 0x3239c1
movl $0x2d6, %r9d            # imm = 0x2D6
jmp 0xefc6e
movq 0x34831f(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1f53c0(%rip), %rsi    # 0x2e5013
leaq 0x234667(%rip), %rdx    # 0x3242c1
leaq 0x23468f(%rip), %rcx    # 0x3242f0
leaq 0x233d59(%rip), %r8     # 0x3239c1
movl $0x29d, %r9d            # imm = 0x29D
xorl %eax, %eax
callq 0x17a50
callq 0x17390