// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/seed-extend.c
// Function: gt_optimal_maxalilendiff_perc_mat_history
void gt_optimal_maxalilendiff_perc_mat_history(
                GtUword *maxalignedlendifference,
                GtUword *perc_mat_history,
                GtUword arg_maxalignedlendifference,
                GtUword arg_perc_mat_history,
                GtUword errorpercentage,
                GtUword sensitivity)
{
  gt_assert(perc_mat_history != NULL);
  if (arg_maxalignedlendifference == 0)
  {
    if (arg_perc_mat_history == 0)
    {
      const GtGreedyparams *best_value;

      gt_assert(errorpercentage <= 100 - GT_EXTEND_MIN_IDENTITY_PERCENTAGE &&
                sensitivity >= 90 && sensitivity - 90 <= 10);
      best_value = best_percmathistory_maxalilendiff[GT_MIN(sensitivity
                                                               - 90,9)];
      *maxalignedlendifference = best_value[errorpercentage].maxalilendiff;
      *perc_mat_history = best_value[errorpercentage].percmathistory;
    } else
    {
      *maxalignedlendifference = 0; /* case to be implemented */
      *perc_mat_history = arg_perc_mat_history;
    }
  } else
  {
    if (perc_mat_history == 0)
    {
      *maxalignedlendifference = arg_maxalignedlendifference;
      *perc_mat_history = 0; /* case to be implemented */
    } else
    {
      *perc_mat_history = arg_perc_mat_history;
      *maxalignedlendifference = arg_maxalignedlendifference;
    }
  }
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movq %rdx, 0x30(%rsp)
movq %rcx, 0x28(%rsp)
movq %r8, 0x20(%rsp)
movq %r9, 0x18(%rsp)
cmpq $0x0, 0x38(%rsp)
jne 0x2ab782
movq 0x39084f(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x26a8b8(%rip), %rsi    # 0x516013
leaq 0x2dc0fc(%rip), %rdx    # 0x58785e
leaq 0x2dc10e(%rip), %rcx    # 0x587877
leaq 0x2dbf64(%rip), %r8     # 0x5876d4
movl $0x17e, %r9d            # imm = 0x17E
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2ab784
cmpq $0x0, 0x30(%rsp)
jne 0x2ab881
cmpq $0x0, 0x28(%rsp)
jne 0x2ab866
jmp 0x2ab79e
cmpq $0x1e, 0x20(%rsp)
ja 0x2ab7bd
cmpq $0x5a, 0x18(%rsp)
jb 0x2ab7bd
movq 0x18(%rsp), %rax
subq $0x5a, %rax
cmpq $0xa, %rax
jbe 0x2ab7f5
movq 0x3907dc(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x26a845(%rip), %rsi    # 0x516013
leaq 0x2dbe7b(%rip), %rdx    # 0x587650
leaq 0x2dc09b(%rip), %rcx    # 0x587877
leaq 0x2dbef1(%rip), %r8     # 0x5876d4
movl $0x186, %r9d            # imm = 0x186
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2ab7f7
movq 0x18(%rsp), %rax
subq $0x5a, %rax
cmpq $0x9, %rax
jae 0x2ab816
movq 0x18(%rsp), %rax
subq $0x5a, %rax
movq %rax, 0x8(%rsp)
jmp 0x2ab822
movl $0x9, %eax
movq %rax, 0x8(%rsp)
jmp 0x2ab822
movq 0x8(%rsp), %rcx
leaq 0x392e82(%rip), %rax    # 0x63e6b0
movq (%rax,%rcx,8), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
movslq 0x4(%rax,%rcx,8), %rcx
movq 0x40(%rsp), %rax
movq %rcx, (%rax)
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
movslq (%rax,%rcx,8), %rcx
movq 0x38(%rsp), %rax
movq %rcx, (%rax)
jmp 0x2ab87f
movq 0x40(%rsp), %rax
movq $0x0, (%rax)
movq 0x28(%rsp), %rcx
movq 0x38(%rsp), %rax
movq %rcx, (%rax)
jmp 0x2ab8c0
cmpq $0x0, 0x38(%rsp)
jne 0x2ab8a4
movq 0x30(%rsp), %rcx
movq 0x40(%rsp), %rax
movq %rcx, (%rax)
movq 0x38(%rsp), %rax
movq $0x0, (%rax)
jmp 0x2ab8be
movq 0x28(%rsp), %rcx
movq 0x38(%rsp), %rax
movq %rcx, (%rax)
movq 0x30(%rsp), %rcx
movq 0x40(%rsp), %rax
movq %rcx, (%rax)
jmp 0x2ab8c0
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)