// File: /workspace/github_c_makefile_star2_O3/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, %r14
movq %rdx, %r12
movl %esi, %ebx
movq %rdi, %r15
movq 0x50(%rdi), %rdi
movq %rcx, %rsi
callq 0xe54fb
incq 0x90(%r15)
cmpq %r14, 0xa0(%r15)
jae 0x15322e
movq %r14, 0xa0(%r15)
movq %r14, 0x18(%rsp)
cmpb $0x1, 0xb8(%r15)
jne 0x153962
movq 0xf0(%r15), %rdi
movzbl %bl, %esi
callq 0xd187b
movl %eax, %ebp
movq 0x68(%r15), %rdi
incq %r12
movq %r12, 0x60(%rsp)
movq %r12, %rsi
callq 0x1209fb
movq 0x68(%r15), %rdi
callq 0x1209e7
cmpq 0x28(%r15), %rax
jb 0x153962
movq 0x60(%rsp), %rcx
movq 0x18(%rsp), %rax
subq %rax, %rcx
movq %rcx, 0x38(%rsp)
leaq (%rax,%rax), %r12
leaq 0x1(,%rax,2), %rdi
leaq 0x23031b(%rip), %rdx    # 0x3835b9
movl $0x8, %esi
movl $0x2fe, %ecx            # imm = 0x2FE
callq 0x10436a
movq %rax, 0x8(%rsp)
movq %r15, 0x58(%rsp)
movq 0x68(%r15), %rdi
callq 0x120c4b
movq %rax, %rdi
callq 0xe5b94
testq %rax, %rax
je 0x153379
movq %rax, %r13
movq $0x0, 0x20(%rsp)
movq %r13, %rdi
callq 0xe5c10
movq %rax, %rbx
movq %rax, %rdi
movq 0x38(%rsp), %rsi
callq 0x2fa819
movq %rax, %r15
movq %rbx, %rdi
movq 0x60(%rsp), %rsi
callq 0x2fa819
movq %rax, %r14
cmpq $-0x1, %r15
sete %al
cmpq $-0x1, %r14
sete %cl
orb %al, %cl
jne 0x153363
decq %r14
movq %rbx, %rdi
callq 0x2fa7ab
xorl %ecx, %ecx
cmpq %r14, %r15
jbe 0x153333
movq 0x8(%rsp), %rsi
jmp 0x153353
movq 0x8(%rsp), %rsi
movb (%rax,%r15), %dl
cmpb %bpl, %dl
jne 0x153346
incq %rcx
jmp 0x15334b
cmpb $0x2d, %dl
jne 0x153353
incq %r15
cmpq %r14, %r15
jbe 0x153338
incq 0x20(%rsp)
cmpq %r12, %rcx
cmovaeq %r12, %rcx
incq (%rsi,%rcx,8)
movq %r13, %rdi
callq 0xe5c20
movq %rax, %r13
testq %rax, %rax
jne 0x1532dd
jmp 0x153382
movq $0x0, 0x20(%rsp)
movq 0x18(%rsp), %rdx
movq 0x8(%rsp), %rdi
movq (%rdi,%rdx,8), %r14
movq (%rdi), %rbx
incq %r12
xorl %r15d, %r15d
xorl %eax, %eax
cmpq %rax, %rdx
je 0x1533af
movq (%rdi,%rax,8), %rcx
cmpq %rbx, %rcx
cmovaq %rcx, %rbx
cmovaq %rax, %r15
incq %rax
cmpq %rax, %r12
jne 0x15339b
leaq 0x2301fb(%rip), %rsi    # 0x3835b9
movl $0x320, %edx            # imm = 0x320
callq 0x1045eb
movq %r14, 0x50(%rsp)
cmpq 0x20(%rsp), %r14
movq 0x58(%rsp), %rsi
jae 0x153962
movsd 0x20(%rsp), %xmm1
unpcklps 0x1f44f6(%rip), %xmm1   # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x1f44fe(%rip), %xmm1   # 0x3478f0
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movsd 0x1f491a(%rip), %xmm1   # 0x347d20
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, 0x50(%rsp)
jb 0x153962
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 0x153962
movq 0x68(%rsi), %rdi
testq %rdi, %rdi
je 0x153974
movq 0x10(%rsi), %rax
movq %rax, 0x70(%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 0x30(%rsi), %rax
movq %rax, 0x8(%rsp)
movq 0x20(%rsi), %rax
movq %rax, 0x78(%rsp)
movb 0xf9(%rsi), %r13b
movq 0xc8(%rsi), %rax
movq %rax, 0x68(%rsp)
movq 0xe8(%rsi), %r12
movb 0xfa(%rsi), %r14b
callq 0x120c4b
movq %rax, %rdi
callq 0xe5b94
testq %rax, %rax
je 0x153962
movl %r13d, %edx
movq %rax, %r13
movl %edx, %eax
xorb $0x1, %al
testq %r12, %r12
sete %cl
orb %al, %r14b
movsd 0x8(%rsp), %xmm0
unpcklps 0x1f43e9(%rip), %xmm0   # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
orb %cl, %r14b
subpd 0x1f43ee(%rip), %xmm0   # 0x3478f0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movapd %xmm1, 0xc0(%rsp)
movq $0x0, 0x28(%rsp)
movb %dl, 0x4(%rsp)
movq %r12, 0xb8(%rsp)
movb %r14b, 0x7(%rsp)
movq 0x78(%rsp), %r14
movq %r13, %rdi
callq 0xe5c10
movq %rax, %r12
movq %rax, %rdi
callq 0x2faa45
testb %al, %al
je 0x153624
movq %r12, %rdi
callq 0x2fa78b
cmpq %r14, %rax
jb 0x153624
cmpb $0x0, 0x7(%rsp)
jne 0x153596
movq %r12, %rdi
callq 0x2fa9f7
movq 0xb8(%rsp), %rdi
movq %rax, %rsi
callq 0x100add
testq %rax, %rax
je 0x153596
movq %rax, %rdi
callq 0x2faa17
xorb $0x1, %al
andb 0x4(%rsp), %al
jmp 0x15359a
movb 0x4(%rsp), %al
movb %al, 0x3(%rsp)
xorl %eax, %eax
movq %rax, 0x88(%rsp)
movq %rax, 0x80(%rsp)
movq %r12, %rdi
movq 0x38(%rsp), %rsi
callq 0x2fa819
movq %rax, %r14
movq %r12, %rdi
movq 0x60(%rsp), %rsi
callq 0x2fa819
movq %r14, 0x8(%rsp)
leaq 0x1(%r14), %rcx
cmpq $0x2, %rcx
setb %dl
cmpq $-0x1, %rax
sete %cl
orb %dl, %cl
jne 0x15361f
movq %r12, %rdi
movq %rax, %r14
callq 0x2fa7da
cmpq %rax, %r14
je 0x15361f
decq %r14
movq %r14, 0x48(%rsp)
movq %r12, %rdi
callq 0x2fa7ab
movq %rax, %r14
movq %r12, %rdi
callq 0x2fa7ba
movq 0x48(%rsp), %r9
cmpq %r9, 0x8(%rsp)
jbe 0x15363d
movq 0x78(%rsp), %r14
movq %r13, %rdi
callq 0xe5c20
movq %rax, %r13
testq %rax, %rax
jne 0x153536
jmp 0x153930
xorl %r11d, %r11d
movq 0x8(%rsp), %r10
leaq 0x88(%rsp), %rdi
leaq 0x80(%rsp), %r8
movb (%r14,%r10), %sil
cmpb %bpl, %sil
jne 0x15366b
incq %r11
movsbq (%rax,%r10), %rcx
movq %rdi, %rdx
jmp 0x153679
movl $0x1, %ecx
movq %r8, %rdx
cmpb $0x2d, %sil
jne 0x153684
addq %rcx, (%rdx)
incq %r10
cmpq %r9, %r10
jbe 0x153655
testq %r11, %r11
je 0x15361f
cmpq 0xb0(%rsp), %r11
jb 0x15361f
movq 0x88(%rsp), %rsi
movq %r11, %rcx
shlq $0x5, %rcx
addq %r11, %rcx
movq %rsi, %rdx
subq %rcx, %rdx
jbe 0x153979
movq %rdx, %xmm0
movq 0x1f4222(%rip), %xmm1   # 0x3478e0
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x1f4226(%rip), %xmm2   # 0x3478f0
subpd %xmm2, %xmm0
movapd %xmm0, %xmm3
unpckhpd %xmm0, %xmm3            # xmm3 = xmm3[1],xmm0[1]
addsd %xmm0, %xmm3
movq %r11, %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 %r11, %rcx
subq 0x18(%rsp), %rcx
jae 0x1537a5
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x15361f
movq 0x18(%rsp), %rdx
subq %r11, %rdx
cmpq %rdx, %rdi
setae %cl
movq %rdx, 0x10(%rsp)
cmpq 0x70(%rsp), %rdx
ja 0x15361f
movapd 0xc0(%rsp), %xmm0
ucomisd %xmm3, %xmm0
jb 0x15361f
orb 0x6(%rsp), %cl
je 0x15361f
movq %rdi, 0xa8(%rsp)
movq %r12, %rdi
movq %rax, 0x40(%rsp)
movq %r11, 0x30(%rsp)
movapd %xmm3, 0x90(%rsp)
movq %rsi, 0xa0(%rsp)
callq 0x2faa17
movq 0xa8(%rsp), %rcx
movapd 0x90(%rsp), %xmm0
cmpb $0x0, 0x5(%rsp)
jne 0x153876
testb %al, %al
jne 0x15361f
jmp 0x153876
jbe 0x15361f
cmpq 0x70(%rsp), %rcx
ja 0x15361f
movapd 0xc0(%rsp), %xmm0
ucomisd %xmm3, %xmm0
jb 0x15361f
movq %r12, %rdi
movq %rax, 0x40(%rsp)
movq %r11, 0x30(%rsp)
movapd %xmm3, 0x90(%rsp)
movq %rcx, 0x10(%rsp)
callq 0x2faa17
cmpb $0x0, 0x5(%rsp)
jne 0x1537f8
testb %al, %al
jne 0x15361f
movsbl %bpl, %eax
movq %rax, 0x28(%rsp)
cmpb $0x0, 0x3(%rsp)
je 0x153849
subq $0x8, %rsp
movq %r12, %rdi
movq 0x40(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq 0x20(%rsp), %rcx
movq 0x58(%rsp), %r8
movq 0x38(%rsp), %r9
movapd 0x98(%rsp), %xmm0
pushq 0x70(%rsp)
pushq 0x20(%rsp)
pushq 0x40(%rsp)
pushq %rbx
pushq %r15
callq 0x153b9a
addq $0x30, %rsp
movq %r12, %rdi
callq 0x2faa07
movq %r14, %rdi
movq 0x40(%rsp), %rsi
movq 0x8(%rsp), %rdx
movq 0x48(%rsp), %rcx
movq 0x10(%rsp), %r8
movq 0x28(%rsp), %r9
pushq $0x7f
pushq $0x2d
jmp 0x153905
movq 0x10(%rsp), %rax
cmpq %rax, %rcx
cmovbq %rcx, %rax
movq %rax, 0x10(%rsp)
cmpb $0x0, 0x3(%rsp)
je 0x1538c7
subq $0x8, %rsp
movsbl %bpl, %eax
movq %r12, %rdi
movq 0x40(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq 0x20(%rsp), %rcx
movq 0x58(%rsp), %r8
movq 0x38(%rsp), %r9
pushq 0x70(%rsp)
pushq 0x20(%rsp)
pushq %rax
pushq %rbx
pushq %r15
callq 0x153b9a
addq $0x30, %rsp
movq %r12, %rdi
callq 0x2faa07
movq 0xa0(%rsp), %rax
xorl %edx, %edx
divq 0x30(%rsp)
movsbl %bpl, %r10d
movsbl %al, %eax
movq %r14, %rdi
movq 0x40(%rsp), %rsi
movq 0x8(%rsp), %rdx
movq 0x48(%rsp), %rcx
movq 0x10(%rsp), %r8
movl $0x2d, %r9d
pushq %rax
pushq %r10
callq 0x153fae
addq $0x10, %rsp
movq %r13, %rdi
callq 0xe5c20
movq %rax, %r13
movb $0x1, %al
movq %rax, 0x28(%rsp)
testq %r13, %r13
movq 0x58(%rsp), %rax
jne 0x153531
jmp 0x15393c
testb $0x1, 0x28(%rsp)
movq 0x58(%rsp), %rax
je 0x153962
incq 0x98(%rax)
movq 0x58(%rax), %rdi
movq 0x18(%rsp), %rsi
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xe54fb
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x48a90
callq 0x48a57