// File: /workspace/github_c_makefile_star2_O1/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, 0x18(%rsp)
movq %r8, 0x10(%rsp)
movq %rcx, 0x20(%rsp)
movl %edx, %r15d
movl %esi, %r14d
movl %edi, %r12d
leaq 0x1d3548(%rip), %rsi    # 0x3bdea4
movl $0x101, %edi            # imm = 0x101
movl $0x371, %edx            # imm = 0x371
callq 0x1092b2
movq %rax, %rbx
movl %r12d, %ebp
movl %r14d, 0xc(%rsp)
orb %r14b, %bpl
cmpb $0x1, %bpl
jne 0x1ea9af
leaq 0x1d3935(%rip), %rax    # 0x3be2bb
leaq 0x1d3936(%rip), %rcx    # 0x3be2c3
testb %r12b, %r12b
cmovneq %rax, %rcx
leaq 0x1e7836(%rip), %rdx    # 0x3d21d1
movl $0x100, %esi            # imm = 0x100
movq %rbx, %rdi
xorl %eax, %eax
callq 0x17c60
movslq %eax, %r13
jmp 0x1ea9b2
xorl %r13d, %r13d
cmpq $0x100, %r13            # imm = 0x100
jae 0x1eab8e
leaq (%rbx,%r13), %rdi
movl $0x100, %r14d           # imm = 0x100
movl $0x100, %esi            # imm = 0x100
subq %r13, %rsi
leaq 0x1adf0c(%rip), %rdx    # 0x3988e4
movl %r15d, %ecx
xorl %eax, %eax
callq 0x17c60
movslq %eax, %r15
addq %r13, %r15
cmpq %r14, %r15
jae 0x1eab93
leaq (%rbx,%r15), %rdi
subq %r15, %r14
leaq 0x204e3e(%rip), %rdx    # 0x3ef83d
movq %r14, %rsi
movq 0x20(%rsp), %rcx
xorl %eax, %eax
callq 0x17c60
movslq %eax, %r13
addq %r15, %r13
testb %bpl, %bpl
je 0x1eaa63
cmpq $0x100, %r13            # imm = 0x100
movq 0x10(%rsp), %rbp
jae 0x1eab98
leaq (%rbx,%r13), %r14
movl $0x100, %r15d           # imm = 0x100
subq %r13, %r15
movq %rbp, %rdi
callq 0x1ea90a
movl $0x64, %ecx
subq %rax, %rcx
leaq 0x204dee(%rip), %rdx    # 0x3ef83d
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x17c60
cltq
addq %rax, %r13
jmp 0x1eaa68
movq 0x10(%rsp), %rbp
testb %r12b, %r12b
je 0x1eaafa
movq 0x78(%rsp), %r14
movq 0x70(%rsp), %r15
movq %rbp, %rdi
callq 0x1ea90a
leaq 0x30(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r15, %rcx
movq %rax, %r8
movq %r14, %r9
callq 0x1ea003
cmpq $0x100, %r13            # imm = 0x100
jae 0x1eab9d
leaq (%rbx,%r13), %rdi
movl $0x100, %r14d           # imm = 0x100
movl $0x100, %esi            # imm = 0x100
subq %r13, %rsi
movq 0x30(%rsp), %rcx
leaq 0x204d72(%rip), %rdx    # 0x3ef83d
xorl %eax, %eax
callq 0x17c60
cltq
addq %r13, %rax
cmpq %r14, %rax
jae 0x1eaba2
movq %rbx, %rdi
addq %rax, %rdi
subq %rax, %r14
movq 0x28(%rsp), %rcx
leaq 0x204d48(%rip), %rdx    # 0x3ef83d
movq %r14, %rsi
jmp 0x1eab75
cmpb $0x0, 0xc(%rsp)
je 0x1eab7c
movq 0x88(%rsp), %rcx
testq %rcx, %rcx
je 0x1eab32
cmpq $0x100, %r13            # imm = 0x100
jae 0x1eaba7
movq %rbx, %rdi
addq %r13, %rdi
movl $0x100, %esi            # imm = 0x100
subq %r13, %rsi
leaq 0x1b32a1(%rip), %rdx    # 0x39ddd1
jmp 0x1eab75
cmpq $0x100, %r13            # imm = 0x100
jae 0x1eabac
movq 0x80(%rsp), %r14
movq %rbx, %r15
addq %r13, %r15
movl $0x100, %r12d           # imm = 0x100
subq %r13, %r12
movq %rbp, %rdi
callq 0x1ea90a
movq %rax, %rdi
movq %r14, %rsi
callq 0x1e9cec
leaq 0x1b3265(%rip), %rdx    # 0x39ddd1
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 0x76755
callq 0x7678e
callq 0x767c7
callq 0x76872
callq 0x768ab
callq 0x76800
callq 0x76839