// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/seed-extend.c
// Function: gt_seed_extend_params_keystring
char *gt_seed_extend_params_keystring(bool use_greedy,
                                      bool forxdrop,
                                      unsigned int seedlength,
                                      GtUword userdefinedleastlength,
                                      GtUword minidentity,
                                      GtUword maxalignedlendifference,
                                      GtUword perc_mat_history,
                                      GtUword extendgreedy,
                                      GtUword extendxdrop,
                                      GtUword xdropbelowscore)
{
  size_t maxstrlen = 256, offset = 0;
  char *out = gt_malloc(sizeof *out * (maxstrlen + 1));

  if (use_greedy || forxdrop)
  {
    GT_SEED_EXTEND_PARAMS_APPEND("%s",use_greedy ? "greedy-" : "xdrop-");
  }
  GT_SEED_EXTEND_PARAMS_APPEND("%u",seedlength);
  GT_SEED_EXTEND_PARAMS_APPEND("-" GT_WU,userdefinedleastlength);
  if (use_greedy || forxdrop)
  {
    GT_SEED_EXTEND_PARAMS_APPEND("-" GT_WU,100 -
                                 gt_minidentity2errorpercentage(minidentity));
  }
  if (use_greedy)
  {
    GtUword loc_maxalignedlendifference, loc_perc_mat_history;

    gt_optimal_maxalilendiff_perc_mat_history(
                &loc_maxalignedlendifference,
                &loc_perc_mat_history,
                maxalignedlendifference,
                perc_mat_history,
                gt_minidentity2errorpercentage(minidentity),
                extendgreedy);
    GT_SEED_EXTEND_PARAMS_APPEND("-" GT_WU,loc_maxalignedlendifference);
    GT_SEED_EXTEND_PARAMS_APPEND("-" GT_WU,loc_perc_mat_history);
  } else
  {
    if (forxdrop)
    {
      if (xdropbelowscore == 0)
      {
        GT_SEED_EXTEND_PARAMS_APPEND("-" GT_WD,
                          gt_optimalxdropbelowscore(
                          gt_minidentity2errorpercentage(minidentity),
                                                      extendxdrop));
      } else
      {
        GT_SEED_EXTEND_PARAMS_APPEND("-" GT_WD,xdropbelowscore);
      }
    }
  }
  return out;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r9, %r14
movq %r8, 0x10(%rsp)
movq %rcx, 0x20(%rsp)
movl %edx, %r15d
movl %esi, %r13d
movl %edi, %r12d
leaq 0x1d378f(%rip), %rsi    # 0x3b4884
movl $0x101, %edi            # imm = 0x101
movl $0x371, %edx            # imm = 0x371
callq 0x104226
movq %rax, %rbx
movl %r12d, %ebp
movl %r13d, 0xc(%rsp)
orb %r13b, %bpl
cmpb $0x1, %bpl
movq %r14, 0x18(%rsp)
jne 0x1e1158
leaq 0x1d3b77(%rip), %rax    # 0x3b4c9b
leaq 0x1d3b78(%rip), %rcx    # 0x3b4ca3
testb %r12b, %r12b
cmovneq %rax, %rcx
leaq 0x1e7970(%rip), %rdx    # 0x3c8aa9
movl $0x100, %esi            # imm = 0x100
movq %rbx, %rdi
xorl %eax, %eax
callq 0x17c60
cmpl $0x100, %eax            # imm = 0x100
jae 0x1e132f
movl %eax, %r13d
jmp 0x1e115b
xorl %r13d, %r13d
leaq (%rbx,%r13), %rdi
movl $0x100, %r14d           # imm = 0x100
movl $0x100, %esi            # imm = 0x100
subq %r13, %rsi
leaq 0x1ae349(%rip), %rdx    # 0x38f4bd
movl %r15d, %ecx
xorl %eax, %eax
callq 0x17c60
movslq %eax, %r15
addq %r13, %r15
cmpq %r14, %r15
jae 0x1e132a
leaq (%rbx,%r15), %rdi
subq %r15, %r14
leaq 0x204e8f(%rip), %rdx    # 0x3e602a
movq %r14, %rsi
movq 0x20(%rsp), %rcx
xorl %eax, %eax
callq 0x17c60
movslq %eax, %r13
addq %r15, %r13
testb %bpl, %bpl
je 0x1e11ff
cmpq $0x100, %r13            # imm = 0x100
movq 0x10(%rsp), %rbp
jae 0x1e1334
leaq (%rbx,%r13), %r14
movl $0x100, %r15d           # imm = 0x100
subq %r13, %r15
movq %rbp, %rdi
callq 0x1e10a5
movl $0x64, %ecx
subq %rax, %rcx
leaq 0x204e3f(%rip), %rdx    # 0x3e602a
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x17c60
cltq
addq %rax, %r13
jmp 0x1e1204
movq 0x10(%rsp), %rbp
testb %r12b, %r12b
je 0x1e1296
movq 0x78(%rsp), %r14
movq 0x70(%rsp), %r15
movq %rbp, %rdi
callq 0x1e10a5
leaq 0x30(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r15, %rcx
movq %rax, %r8
movq %r14, %r9
callq 0x1e079b
cmpq $0x100, %r13            # imm = 0x100
jae 0x1e1339
leaq (%rbx,%r13), %rdi
movl $0x100, %r14d           # imm = 0x100
movl $0x100, %esi            # imm = 0x100
subq %r13, %rsi
movq 0x30(%rsp), %rcx
leaq 0x204dc3(%rip), %rdx    # 0x3e602a
xorl %eax, %eax
callq 0x17c60
cltq
addq %r13, %rax
cmpq %r14, %rax
jae 0x1e133e
movq %rbx, %rdi
addq %rax, %rdi
subq %rax, %r14
movq 0x28(%rsp), %rcx
leaq 0x204d99(%rip), %rdx    # 0x3e602a
movq %r14, %rsi
jmp 0x1e1311
cmpb $0x0, 0xc(%rsp)
je 0x1e1318
movq 0x88(%rsp), %rcx
testq %rcx, %rcx
je 0x1e12ce
cmpq $0x100, %r13            # imm = 0x100
jae 0x1e1343
movq %rbx, %rdi
addq %r13, %rdi
movl $0x100, %esi            # imm = 0x100
subq %r13, %rsi
leaq 0x1b365e(%rip), %rdx    # 0x39492a
jmp 0x1e1311
cmpq $0x100, %r13            # imm = 0x100
jae 0x1e1348
movq 0x80(%rsp), %r14
movq %rbx, %r15
addq %r13, %r15
movl $0x100, %r12d           # imm = 0x100
subq %r13, %r12
movq %rbp, %rdi
callq 0x1e10a5
movq %rax, %rdi
movq %r14, %rsi
callq 0x1e0484
leaq 0x1b3622(%rip), %rdx    # 0x39492a
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rcx
xorl %eax, %eax
callq 0x17c60
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x74b01
callq 0x74ac8
callq 0x74b3a
callq 0x74be5
callq 0x74c1e
callq 0x74b73
callq 0x74bac