// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/ft-polish.c
// Function: polishing_info_new_with_bias
GtFtPolishing_info *polishing_info_new_with_bias(double errorpercentage,
                                                 double matchscore_bias,
                                                 GtUword history_size)
{
  GtFtPolishing_info *pol_info = gt_malloc(sizeof *pol_info);

  gt_assert(pol_info != NULL);
  if (history_size == 0)
  {
    pol_info->cut_depth = (GtUword) 15;
  } else
  {
    pol_info->cut_depth = GT_MIN(history_size/2,(GtUword) 15);
  }
  pol_info->pol_size = 2 * pol_info->cut_depth;
  pol_info->entries = 1UL << pol_info->cut_depth;
  pol_info->mask = pol_info->entries - 1;
  pol_info->values = gt_malloc(sizeof *pol_info->values * pol_info->entries);
  gt_assert(pol_info->values != NULL);
  pol_info->match_score = 20.0 * errorpercentage * matchscore_bias;
  gt_assert(pol_info->match_score <= 1000.0);
  pol_info->difference_score = 1000.0 - pol_info->match_score;
  fill_polishing_info(pol_info,0,0,0,0);
  return pol_info;
}

// Assembly:
subq $0x28, %rsp
movsd %xmm0, 0x20(%rsp)
movsd %xmm1, 0x18(%rsp)
movq %rdi, 0x10(%rsp)
movl $0x38, %edi
leaq 0x32a0b7(%rip), %rsi    # 0x579408
movl $0x29, %edx
callq 0xe80f0
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
jne 0x24f3a0
movq 0x3ecc31(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2c6c9a(%rip), %rsi    # 0x516013
leaq 0x32d4bf(%rip), %rdx    # 0x57c83f
leaq 0x32a097(%rip), %rcx    # 0x57941e
leaq 0x32a07a(%rip), %r8     # 0x579408
movl $0x2b, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x24f3a2
cmpq $0x0, 0x10(%rsp)
jne 0x24f3b9
movq 0x8(%rsp), %rax
movq $0xf, 0x8(%rax)
jmp 0x24f3ed
movq 0x10(%rsp), %rax
shrq %rax
cmpq $0xf, %rax
jae 0x24f3d5
movq 0x10(%rsp), %rax
shrq %rax
movq %rax, (%rsp)
jmp 0x24f3e0
movl $0xf, %eax
movq %rax, (%rsp)
jmp 0x24f3e0
movq (%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rcx
shlq %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rcx
movl $0x1, %eax
shlq %cl, %rax
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, (%rax)
movq 0x8(%rsp), %rax
movq (%rax), %rcx
subq $0x1, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0x8(%rsp), %rax
movq (%rax), %rdi
shlq $0x2, %rdi
leaq 0x329fc2(%rip), %rsi    # 0x579408
movl $0x36, %edx
callq 0xe80f0
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x30(%rax)
movq 0x8(%rsp), %rax
cmpq $0x0, 0x30(%rax)
jne 0x24f4a0
movq 0x3ecb31(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2c6b9a(%rip), %rsi    # 0x516013
leaq 0x329fbb(%rip), %rdx    # 0x57943b
leaq 0x329f97(%rip), %rcx    # 0x57941e
leaq 0x329f7a(%rip), %r8     # 0x579408
movl $0x37, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x24f4a2
movsd 0x329f56(%rip), %xmm0   # 0x579400
mulsd 0x20(%rsp), %xmm0
mulsd 0x18(%rsp), %xmm0
cvttsd2si %xmm0, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x28(%rax)
movq 0x8(%rsp), %rax
cvtsi2sdq 0x28(%rax), %xmm1
movsd 0x307529(%rip), %xmm0   # 0x556a00
ucomisd %xmm1, %xmm0
jae 0x24f515
movq 0x3ecabc(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2c6b25(%rip), %rsi    # 0x516013
leaq 0x329f5f(%rip), %rdx    # 0x579454
leaq 0x329f22(%rip), %rcx    # 0x57941e
leaq 0x329f05(%rip), %r8     # 0x579408
movl $0x39, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x24f517
movq 0x8(%rsp), %rax
cvtsi2sdq 0x28(%rax), %xmm1
movsd 0x3074d6(%rip), %xmm0   # 0x556a00
subsd %xmm1, %xmm0
cvttsd2si %xmm0, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x20(%rax)
movq 0x8(%rsp), %rdi
xorl %eax, %eax
movl %eax, %r8d
movq %r8, %rsi
movq %r8, %rdx
movq %r8, %rcx
callq 0x24f560
movq 0x8(%rsp), %rax
addq $0x28, %rsp
retq
nop