// File: /workspace/github_c_makefile_star2_O2/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 0x1c5257(%rip), %rsi    # 0x354ce4
movl $0x101, %edi            # imm = 0x101
movl $0x371, %edx            # imm = 0x371
callq 0x93160
movq %rax, %rbx
movl %r12d, %ebp
movl %r13d, 0xc(%rsp)
orb %r13b, %bpl
cmpb $0x1, %bpl
movq %r14, 0x18(%rsp)
jne 0x18faf0
leaq 0x1c563f(%rip), %rax    # 0x3550fb
leaq 0x1c5640(%rip), %rcx    # 0x355103
testb %r12b, %r12b
cmovneq %rax, %rcx
leaq 0x1d93d8(%rip), %rdx    # 0x368ea9
movl $0x100, %esi            # imm = 0x100
movq %rbx, %rdi
xorl %eax, %eax
callq 0x17bf0
cmpl $0x100, %eax            # imm = 0x100
jae 0x18fcf5
movl %eax, %r13d
jmp 0x18faf3
xorl %r13d, %r13d
leaq (%rbx,%r13), %rdi
movl $0x100, %r14d           # imm = 0x100
movl $0x100, %esi            # imm = 0x100
subq %r13, %rsi
leaq 0x19fd11(%rip), %rdx    # 0x32f81d
movl %r15d, %ecx
xorl %eax, %eax
callq 0x17bf0
movslq %eax, %r15
addq %r13, %r15
cmpq %r14, %r15
jae 0x18fcc4
leaq (%rbx,%r15), %rdi
subq %r15, %r14
leaq 0x1f68f7(%rip), %rdx    # 0x38642a
movq %r14, %rsi
movq 0x20(%rsp), %rcx
xorl %eax, %eax
callq 0x17bf0
movslq %eax, %r13
addq %r15, %r13
testb %bpl, %bpl
je 0x18fb95
cmpq $0x100, %r13            # imm = 0x100
movq 0x10(%rsp), %rbp
jae 0x18fd26
leaq (%rbx,%r13), %r14
movl $0x100, %r15d           # imm = 0x100
subq %r13, %r15
movq %rbp, %rdi
callq 0x18fa0c
pushq $0x64
popq %rcx
subq %rax, %rcx
leaq 0x1f68a9(%rip), %rdx    # 0x38642a
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x17bf0
cltq
addq %rax, %r13
jmp 0x18fb9a
movq 0x10(%rsp), %rbp
testb %r12b, %r12b
je 0x18fc2c
movq 0x78(%rsp), %r14
movq 0x70(%rsp), %r15
movq %rbp, %rdi
callq 0x18fa0c
leaq 0x30(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r15, %rcx
movq %rax, %r8
movq %r14, %r9
callq 0x18ef30
cmpq $0x100, %r13            # imm = 0x100
jae 0x18fd57
leaq (%rbx,%r13), %rdi
movl $0x100, %r14d           # imm = 0x100
movl $0x100, %esi            # imm = 0x100
subq %r13, %rsi
movq 0x30(%rsp), %rcx
leaq 0x1f682d(%rip), %rdx    # 0x38642a
xorl %eax, %eax
callq 0x17bf0
cltq
addq %r13, %rax
cmpq %r14, %rax
jae 0x18fd88
movq %rbx, %rdi
addq %rax, %rdi
subq %rax, %r14
movq 0x28(%rsp), %rcx
leaq 0x1f6803(%rip), %rdx    # 0x38642a
movq %r14, %rsi
jmp 0x18fcab
cmpb $0x0, 0xc(%rsp)
je 0x18fcb2
movq 0x88(%rsp), %rcx
testq %rcx, %rcx
je 0x18fc64
cmpq $0x100, %r13            # imm = 0x100
jae 0x18fdb6
movq %rbx, %rdi
addq %r13, %rdi
movl $0x100, %esi            # imm = 0x100
subq %r13, %rsi
leaq 0x1a5037(%rip), %rdx    # 0x334c99
jmp 0x18fcab
cmpq $0x100, %r13            # imm = 0x100
jae 0x18fde4
movq 0x80(%rsp), %r14
movq %rbx, %r15
addq %r13, %r15
movl $0x100, %r12d           # imm = 0x100
subq %r13, %r12
movq %rbp, %rdi
callq 0x18fa0c
movq %rax, %rdi
movq %r14, %rsi
callq 0x18eb68
leaq 0x1a4ff7(%rip), %rdx    # 0x334c99
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rcx
xorl %eax, %eax
callq 0x17bf0
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2a829d(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x15533e(%rip), %rsi    # 0x2e5013
leaq 0x1c53ec(%rip), %rdx    # 0x3550c8
leaq 0x1c53f8(%rip), %rcx    # 0x3550db
leaq 0x1c4ffa(%rip), %r8     # 0x354ce4
movl $0x378, %r9d            # imm = 0x378
jmp 0x18fe10
movq 0x2a826c(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x15530d(%rip), %rsi    # 0x2e5013
leaq 0x1c53bb(%rip), %rdx    # 0x3550c8
leaq 0x1c53c7(%rip), %rcx    # 0x3550db
leaq 0x1c4fc9(%rip), %r8     # 0x354ce4
movl $0x377, %r9d            # imm = 0x377
jmp 0x18fe10
movq 0x2a823b(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1552dc(%rip), %rsi    # 0x2e5013
leaq 0x1c538a(%rip), %rdx    # 0x3550c8
leaq 0x1c5396(%rip), %rcx    # 0x3550db
leaq 0x1c4f98(%rip), %r8     # 0x354ce4
movl $0x37c, %r9d            # imm = 0x37C
jmp 0x18fe10
movq 0x2a820a(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1552ab(%rip), %rsi    # 0x2e5013
leaq 0x1c5359(%rip), %rdx    # 0x3550c8
leaq 0x1c5365(%rip), %rcx    # 0x3550db
leaq 0x1c4f67(%rip), %r8     # 0x354ce4
movl $0x389, %r9d            # imm = 0x389
jmp 0x18fe10
movq 0x2a81d9(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x15527a(%rip), %rsi    # 0x2e5013
leaq 0x1c5328(%rip), %rdx    # 0x3550c8
leaq 0x1c5334(%rip), %rcx    # 0x3550db
leaq 0x1c4f36(%rip), %r8     # 0x354ce4
movl $0x38a, %r9d            # imm = 0x38A
jmp 0x18fe10
movq 0x2a81ab(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x15524c(%rip), %rsi    # 0x2e5013
leaq 0x1c52fa(%rip), %rdx    # 0x3550c8
leaq 0x1c5306(%rip), %rcx    # 0x3550db
leaq 0x1c4f08(%rip), %r8     # 0x354ce4
movl $0x397, %r9d            # imm = 0x397
jmp 0x18fe10
movq 0x2a817d(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x15521e(%rip), %rsi    # 0x2e5013
leaq 0x1c52cc(%rip), %rdx    # 0x3550c8
leaq 0x1c52d8(%rip), %rcx    # 0x3550db
leaq 0x1c4eda(%rip), %r8     # 0x354ce4
movl $0x394, %r9d            # imm = 0x394
xorl %eax, %eax
callq 0x17a50
callq 0x17390