// File: /workspace/github_c_makefile_star2_O1/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 $0xc8, %rsp
movq %rcx, %r14
movq %rdx, %r12
movl %esi, %ebx
movq %rdi, %r15
movq 0x50(%rdi), %rdi
movq %rcx, %rsi
callq 0xe99f7
incq 0x90(%r15)
cmpq %r14, 0xa0(%r15)
jae 0x15ab5d
movq %r14, 0xa0(%r15)
movq %r14, 0x8(%rsp)
cmpb $0x1, 0xb8(%r15)
jne 0x15b23b
movq 0xf0(%r15), %rdi
movzbl %bl, %esi
callq 0xd3da7
movb %al, 0x3(%rsp)
movq 0x68(%r15), %rdi
incq %r12
movq %r12, 0x50(%rsp)
movq %r12, %rsi
callq 0x1267c7
movq 0x68(%r15), %rdi
callq 0x1267b3
cmpq 0x28(%r15), %rax
jb 0x15b23b
movq 0x50(%rsp), %rcx
movq 0x8(%rsp), %rax
subq %rax, %rcx
movq %rcx, 0x28(%rsp)
leaq (%rax,%rax), %rbp
leaq 0x1(,%rax,2), %rdi
leaq 0x231daa(%rip), %rdx    # 0x38c979
movl $0x8, %esi
movl $0x2fe, %ecx            # imm = 0x2FE
callq 0x1093ef
movq %rax, %r12
movq %r15, 0x78(%rsp)
movq 0x68(%r15), %rdi
callq 0x126a34
movq %rax, %rdi
callq 0xea0f8
testq %rax, %rax
je 0x15aca1
movq %rax, %r13
movq $0x0, 0x18(%rsp)
movq %r13, %rdi
callq 0xea174
movq %rax, %rbx
movq %rax, %rdi
movq 0x28(%rsp), %rsi
callq 0x3044c1
movq %rax, %r15
movq %rbx, %rdi
movq 0x50(%rsp), %rsi
callq 0x3044c1
movq %rax, %r14
cmpq $-0x1, %r15
sete %al
cmpq $-0x1, %r14
sete %cl
orb %al, %cl
jne 0x15ac8b
decq %r14
movq %rbx, %rdi
callq 0x304453
xorl %ecx, %ecx
cmpq %r14, %r15
ja 0x15ac7b
movb 0x3(%rsp), %sil
movb (%rax,%r15), %dl
cmpb %sil, %dl
jne 0x15ac6e
incq %rcx
jmp 0x15ac73
cmpb $0x2d, %dl
jne 0x15ac7b
incq %r15
cmpq %r14, %r15
jbe 0x15ac60
incq 0x18(%rsp)
cmpq %rbp, %rcx
cmovaeq %rbp, %rcx
incq (%r12,%rcx,8)
movq %r13, %rdi
callq 0xea184
movq %rax, %r13
testq %rax, %rax
jne 0x15ac0c
jmp 0x15acaa
movq $0x0, 0x18(%rsp)
movq 0x8(%rsp), %rdx
movq (%r12,%rdx,8), %r14
movq (%r12), %rbx
incq %rbp
xorl %r15d, %r15d
xorl %eax, %eax
cmpq %rax, %rdx
je 0x15acd3
movq (%r12,%rax,8), %rcx
cmpq %rbx, %rcx
cmovaq %rcx, %rbx
cmovaq %rax, %r15
incq %rax
cmpq %rax, %rbp
jne 0x15acbf
leaq 0x231c97(%rip), %rsi    # 0x38c979
movq %r12, %rdi
movl $0x320, %edx            # imm = 0x320
callq 0x109670
movq %r14, 0x40(%rsp)
cmpq 0x18(%rsp), %r14
movq 0x78(%rsp), %rsi
jae 0x15b23b
movsd 0x18(%rsp), %xmm1
unpcklps 0x1f5bcf(%rip), %xmm1   # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x1f5bd7(%rip), %xmm1   # 0x3508f0
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movsd 0x1f5ff3(%rip), %xmm1   # 0x350d20
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, 0x40(%rsp)
jb 0x15b23b
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 0x15b23b
movq 0x68(%rsi), %rdi
testq %rdi, %rdi
je 0x15b24d
movq 0x10(%rsi), %rax
movq %rax, 0x70(%rsp)
movq 0x18(%rsi), %rax
movq %rax, 0x98(%rsp)
movb 0x38(%rsi), %al
movb %al, 0x6(%rsp)
movb 0x39(%rsi), %al
movb %al, 0x4(%rsp)
movq 0x30(%rsi), %rax
movq %rax, 0x48(%rsp)
movq 0x20(%rsi), %rax
movq %rax, 0xa8(%rsp)
movb 0xf9(%rsi), %bpl
movq 0xc8(%rsi), %rax
movq %rax, 0x60(%rsp)
movq 0xe8(%rsi), %r12
movb 0xfa(%rsi), %r14b
callq 0x126a34
movq %rax, %rdi
callq 0xea0f8
testq %rax, %rax
je 0x15b23b
movq %rax, %r13
movl %ebp, %eax
xorb $0x1, %al
movq %r12, 0xa0(%rsp)
testq %r12, %r12
sete %cl
orb %al, %r14b
orb %cl, %r14b
movb %r14b, 0x7(%rsp)
movsd 0x48(%rsp), %xmm0
unpcklps 0x1f5ab2(%rip), %xmm0   # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x1f5aba(%rip), %xmm0   # 0x3508f0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movapd %xmm1, 0xb0(%rsp)
movq $0x0, 0x10(%rsp)
movb %bpl, 0x48(%rsp)
movq %r13, %rdi
callq 0xea174
movq %rax, %r12
movq %rax, %rdi
callq 0x3046ed
testb %al, %al
je 0x15af0d
movq %r12, %rdi
callq 0x304433
cmpq 0xa8(%rsp), %rax
jb 0x15af0d
cmpb $0x0, 0x7(%rsp)
jne 0x15aec2
movq %r12, %rdi
callq 0x30469f
movq 0xa0(%rsp), %rdi
movq %rax, %rsi
callq 0x105a11
testq %rax, %rax
je 0x15aec2
movq %rax, %rdi
callq 0x3046bf
movl %eax, %r14d
xorb $0x1, %r14b
andb %bpl, %r14b
jmp 0x15aec5
movl %ebp, %r14d
movq %r12, %rdi
movq 0x28(%rsp), %rsi
callq 0x3044c1
movq %rax, %rbp
movq %r12, %rdi
movq 0x50(%rsp), %rsi
callq 0x3044c1
leaq 0x1(%rbp), %rcx
cmpq $0x2, %rcx
setb %dl
cmpq $-0x1, %rax
sete %cl
orb %dl, %cl
jne 0x15af0d
movb %r14b, 0x5(%rsp)
movq %r12, %rdi
movq %rax, %r14
callq 0x304482
cmpq %rax, %r14
jne 0x15af2b
movq %r13, %rdi
callq 0xea184
movq %rax, %r13
testq %rax, %rax
movb 0x48(%rsp), %bpl
jne 0x15ae59
jmp 0x15b209
decq %r14
movq %r14, 0x38(%rsp)
movq %r12, %rdi
callq 0x304453
movq %rax, %r14
movq %r12, %rdi
callq 0x304462
movq 0x38(%rsp), %rsi
cmpq %rsi, %rbp
movq %rbp, 0x68(%rsp)
jbe 0x15af5f
xorl %r9d, %r9d
xorl %ebp, %ebp
xorl %r8d, %r8d
jmp 0x15af93
movq %rbp, %rdi
xorl %r9d, %r9d
xorl %ebp, %ebp
xorl %r8d, %r8d
movb 0x3(%rsp), %dl
movb (%r14,%rdi), %cl
cmpb %dl, %cl
jne 0x15af83
incq %r8
movsbq (%rax,%rdi), %rcx
addq %rcx, %r9
jmp 0x15af8b
cmpb $0x2d, %cl
jne 0x15af93
incq %rbp
incq %rdi
cmpq %rsi, %rdi
jbe 0x15af6e
testq %r8, %r8
je 0x15af0d
cmpq 0x98(%rsp), %r8
jb 0x15af0d
movq %r8, %rcx
shlq $0x5, %rcx
addq %r8, %rcx
movq %r9, %rdx
subq %rcx, %rdx
jbe 0x15b252
movq %rdx, %xmm0
movq 0x1f5913(%rip), %xmm1   # 0x3508e0
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x1f5917(%rip), %xmm2   # 0x3508f0
subpd %xmm2, %xmm0
movapd %xmm0, %xmm3
unpckhpd %xmm0, %xmm3            # xmm3 = xmm3[1],xmm0[1]
addsd %xmm0, %xmm3
movq %r8, %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 %r8, %rcx
subq 0x8(%rsp), %rcx
jae 0x15b12b
testq %rbp, %rbp
je 0x15af0d
movq 0x8(%rsp), %rdx
subq %r8, %rdx
cmpq %rdx, %rbp
setae %cl
cmpq 0x70(%rsp), %rdx
ja 0x15af0d
movapd 0xb0(%rsp), %xmm0
ucomisd %xmm3, %xmm0
jb 0x15af0d
orb 0x6(%rsp), %cl
je 0x15af0d
movq %rdx, 0x58(%rsp)
movapd %xmm3, 0x80(%rsp)
movq %r9, 0x90(%rsp)
movq %r8, 0x20(%rsp)
movq %rax, 0x30(%rsp)
movq %r12, %rdi
callq 0x3046bf
cmpb $0x0, 0x4(%rsp)
jne 0x15b08a
testb %al, %al
jne 0x15af0d
cmpb $0x0, 0x5(%rsp)
je 0x15b0df
movq 0x58(%rsp), %rax
cmpq %rax, %rbp
cmovbq %rbp, %rax
subq $0x8, %rsp
movsbl 0xb(%rsp), %r10d
movq %r12, %rdi
movq 0x30(%rsp), %rsi
movq 0x20(%rsp), %rdx
movq 0x10(%rsp), %rcx
movq 0x48(%rsp), %r8
movq 0x28(%rsp), %r9
movapd 0x88(%rsp), %xmm0
pushq 0x68(%rsp)
pushq %rax
pushq %r10
pushq %rbx
pushq %r15
callq 0x15b473
addq $0x30, %rsp
movq %r12, %rdi
callq 0x3046af
movq 0x58(%rsp), %r8
cmpq %r8, %rbp
cmovbq %rbp, %r8
movq 0x90(%rsp), %rax
xorl %edx, %edx
divq 0x20(%rsp)
movsbl 0x3(%rsp), %r10d
movsbl %al, %eax
movq %r14, %rdi
movq 0x30(%rsp), %rsi
movq 0x68(%rsp), %rdx
movq 0x38(%rsp), %rcx
movl $0x2d, %r9d
pushq %rax
pushq %r10
jmp 0x15b1f4
jbe 0x15af0d
cmpq 0x70(%rsp), %rcx
ja 0x15af0d
movapd 0xb0(%rsp), %xmm0
ucomisd %xmm3, %xmm0
jb 0x15af0d
movq %rcx, 0x20(%rsp)
movapd %xmm3, 0x80(%rsp)
movq %r8, %rbp
movq %rax, 0x30(%rsp)
movq %r12, %rdi
callq 0x3046bf
cmpb $0x0, 0x4(%rsp)
jne 0x15b17c
testb %al, %al
jne 0x15af0d
movsbl 0x3(%rsp), %eax
movq %rax, 0x10(%rsp)
cmpb $0x0, 0x5(%rsp)
je 0x15b1cc
subq $0x8, %rsp
movq %r12, %rdi
movq 0x30(%rsp), %rsi
movq 0x20(%rsp), %rdx
movq 0x10(%rsp), %rcx
movq 0x48(%rsp), %r8
movq %rbp, %r9
movapd 0x88(%rsp), %xmm0
pushq 0x68(%rsp)
pushq 0x30(%rsp)
pushq 0x28(%rsp)
pushq %rbx
pushq %r15
callq 0x15b473
addq $0x30, %rsp
movq %r12, %rdi
callq 0x3046af
movq %r14, %rdi
movq 0x30(%rsp), %rsi
movq 0x68(%rsp), %rdx
movq 0x38(%rsp), %rcx
movq 0x20(%rsp), %r8
movq 0x10(%rsp), %r9
pushq $0x7f
pushq $0x2d
callq 0x15b877
addq $0x10, %rsp
movb $0x1, %al
movq %rax, 0x10(%rsp)
jmp 0x15af0d
testb $0x1, 0x10(%rsp)
movq 0x78(%rsp), %rax
je 0x15b23b
incq 0x98(%rax)
movq 0x58(%rax), %rdi
movq 0x8(%rsp), %rsi
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xe99f7
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x49904
callq 0x498cb