// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/match_iterator_last.c
// Function: get_run_parameterization
static int get_run_parameterization(GtMatchIteratorLast *mil, GtStr *out,
                                    GtStr *lastbinary,
                                    const char *indexname, const char *qryname,
                                    GtError *err)
{
  int had_err = 0;
  const char *env;
  gt_assert(mil);
  gt_error_check(err);
  gt_str_reset(out);
  gt_str_reset(lastbinary);

  env = getenv("GT_LAST_PATH");
  if (env) {
    gt_str_append_cstr(out, env);
    gt_str_append_cstr(out, "/lastal");
    if (!gt_file_exists(gt_str_get(out))) {
      gt_error_set(err, "cannot find LAST executable at %s", gt_str_get(out));
      had_err = -1;
    }
  } else {
    gt_str_append_cstr(out, "lastal");
  }
  gt_str_append_str(lastbinary, out);

  if (!had_err) {
    if (mil->pvt->op.match_score != GT_UNDEF_INT) {
      gt_str_append_cstr(out, " -r ");
      gt_str_append_int(out, mil->pvt->op.match_score);
    }
    if (mil->pvt->op.mismatch_cost != GT_UNDEF_INT) {
      gt_str_append_cstr(out, " -q ");
      gt_str_append_int(out, mil->pvt->op.mismatch_cost);
    }
    if (mil->pvt->op.gap_open_cost != GT_UNDEF_INT) {
      gt_str_append_cstr(out, " -a ");
      gt_str_append_int(out, mil->pvt->op.gap_open_cost);
    }
    if (mil->pvt->op.gap_ext_cost != GT_UNDEF_INT) {
      gt_str_append_cstr(out, " -b ");
      gt_str_append_int(out, mil->pvt->op.gap_ext_cost);
    }
    if (mil->pvt->op.xdrop != GT_UNDEF_INT) {
      gt_str_append_cstr(out, " -x ");
      gt_str_append_int(out, mil->pvt->op.xdrop);
    }
    if (mil->pvt->op.ydrop != GT_UNDEF_INT) {
      gt_str_append_cstr(out, " -y ");
      gt_str_append_int(out, mil->pvt->op.ydrop);
    }
    if (mil->pvt->op.zdrop != GT_UNDEF_INT) {
      gt_str_append_cstr(out, " -z ");
      gt_str_append_int(out, mil->pvt->op.zdrop);
    }
    if (mil->pvt->op.k != GT_UNDEF_INT) {
      gt_str_append_cstr(out, " -k ");
      gt_str_append_int(out, mil->pvt->op.k);
    }
    if (mil->pvt->op.mscoregapped != GT_UNDEF_INT) {
      gt_str_append_cstr(out, " -e ");
      gt_str_append_int(out, mil->pvt->op.mscoregapped);
    }
    if (mil->pvt->op.mscoregapless != GT_UNDEF_INT) {
      gt_str_append_cstr(out, " -d ");
      gt_str_append_int(out, mil->pvt->op.mscoregapless);
    }
  }
  gt_str_append_cstr(out," -f 0 ");
  gt_str_append_cstr(out, indexname);
  gt_str_append_cstr(out," ");
  gt_str_append_cstr(out, qryname);
  return had_err;
}

// 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)
movl $0x0, 0x14(%rsp)
cmpq $0x0, 0x40(%rsp)
jne 0x1aa00a
movq 0x491fc7(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x36c030(%rip), %rsi    # 0x516013
leaq 0x3af8ed(%rip), %rdx    # 0x5598d7
leaq 0x3afa5e(%rip), %rcx    # 0x559a4f
leaq 0x3af8a6(%rip), %r8     # 0x55989e
movl $0x62, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1aa00c
jmp 0x1aa00e
cmpq $0x0, 0x18(%rsp)
je 0x1aa05e
movq 0x18(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x1aa026
jmp 0x1aa05e
movq 0x491f73(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x36bfdc(%rip), %rsi    # 0x516013
leaq 0x36c181(%rip), %rdx    # 0x5161bf
leaq 0x3afa0a(%rip), %rcx    # 0x559a4f
leaq 0x3af852(%rip), %r8     # 0x55989e
movl $0x63, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1aa060
movq 0x38(%rsp), %rdi
callq 0x11e110
movq 0x30(%rsp), %rdi
callq 0x11e110
leaq 0x3af87b(%rip), %rdi    # 0x5598f6
callq 0x198a0
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
je 0x1aa0f5
movq 0x38(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x11d550
movq 0x38(%rsp), %rdi
leaq 0x3af9c0(%rip), %rsi    # 0x559a68
callq 0x11d550
movq 0x38(%rsp), %rdi
callq 0x11dee0
movq %rax, %rdi
callq 0xde820
testb $0x1, %al
jne 0x1aa0f3
movq 0x18(%rsp), %rax
movq %rax, (%rsp)
movq 0x38(%rsp), %rdi
callq 0x11dee0
movq (%rsp), %rdi
movq %rax, %rdx
leaq 0x3af98c(%rip), %rsi    # 0x559a70
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x14(%rsp) # imm = 0xFFFFFFFF
jmp 0x1aa106
movq 0x38(%rsp), %rdi
leaq 0x3af968(%rip), %rsi    # 0x559a69
callq 0x11d550
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x11d750
cmpl $0x0, 0x14(%rsp)
jne 0x1aa35c
movq 0x40(%rsp), %rax
movq 0x8(%rax), %rax
cmpl $0x80000000, 0x10(%rax) # imm = 0x80000000
je 0x1aa159
movq 0x38(%rsp), %rdi
leaq 0x39ff93(%rip), %rsi    # 0x54a0d1
callq 0x11d550
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rax
movq 0x8(%rax), %rax
movl 0x10(%rax), %esi
callq 0x11dd20
movq 0x40(%rsp), %rax
movq 0x8(%rax), %rax
cmpl $0x80000000, 0x14(%rax) # imm = 0x80000000
je 0x1aa192
movq 0x38(%rsp), %rdi
leaq 0x39ff1b(%rip), %rsi    # 0x54a092
callq 0x11d550
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rax
movq 0x8(%rax), %rax
movl 0x14(%rax), %esi
callq 0x11dd20
movq 0x40(%rsp), %rax
movq 0x8(%rax), %rax
cmpl $0x80000000, 0x18(%rax) # imm = 0x80000000
je 0x1aa1cb
movq 0x38(%rsp), %rdi
leaq 0x39ff69(%rip), %rsi    # 0x54a119
callq 0x11d550
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rax
movq 0x8(%rax), %rax
movl 0x18(%rax), %esi
callq 0x11dd20
movq 0x40(%rsp), %rax
movq 0x8(%rax), %rax
cmpl $0x80000000, 0x1c(%rax) # imm = 0x80000000
je 0x1aa204
movq 0x38(%rsp), %rdi
leaq 0x3af8a9(%rip), %rsi    # 0x559a92
callq 0x11d550
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rax
movq 0x8(%rax), %rax
movl 0x1c(%rax), %esi
callq 0x11dd20
movq 0x40(%rsp), %rax
movq 0x8(%rax), %rax
cmpl $0x80000000, 0x20(%rax) # imm = 0x80000000
je 0x1aa23d
movq 0x38(%rsp), %rdi
leaq 0x3af875(%rip), %rsi    # 0x559a97
callq 0x11d550
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rax
movq 0x8(%rax), %rax
movl 0x20(%rax), %esi
callq 0x11dd20
movq 0x40(%rsp), %rax
movq 0x8(%rax), %rax
cmpl $0x80000000, 0x24(%rax) # imm = 0x80000000
je 0x1aa276
movq 0x38(%rsp), %rdi
leaq 0x3af841(%rip), %rsi    # 0x559a9c
callq 0x11d550
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rax
movq 0x8(%rax), %rax
movl 0x24(%rax), %esi
callq 0x11dd20
movq 0x40(%rsp), %rax
movq 0x8(%rax), %rax
cmpl $0x80000000, 0x28(%rax) # imm = 0x80000000
je 0x1aa2af
movq 0x38(%rsp), %rdi
leaq 0x3af80d(%rip), %rsi    # 0x559aa1
callq 0x11d550
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rax
movq 0x8(%rax), %rax
movl 0x28(%rax), %esi
callq 0x11dd20
movq 0x40(%rsp), %rax
movq 0x8(%rax), %rax
cmpl $0x80000000, 0x34(%rax) # imm = 0x80000000
je 0x1aa2e8
movq 0x38(%rsp), %rdi
leaq 0x3af7d9(%rip), %rsi    # 0x559aa6
callq 0x11d550
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rax
movq 0x8(%rax), %rax
movl 0x34(%rax), %esi
callq 0x11dd20
movq 0x40(%rsp), %rax
movq 0x8(%rax), %rax
cmpl $0x80000000, 0x2c(%rax) # imm = 0x80000000
je 0x1aa321
movq 0x38(%rsp), %rdi
leaq 0x39fc73(%rip), %rsi    # 0x549f79
callq 0x11d550
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rax
movq 0x8(%rax), %rax
movl 0x2c(%rax), %esi
callq 0x11dd20
movq 0x40(%rsp), %rax
movq 0x8(%rax), %rax
cmpl $0x80000000, 0x30(%rax) # imm = 0x80000000
je 0x1aa35a
movq 0x38(%rsp), %rdi
leaq 0x39fc00(%rip), %rsi    # 0x549f3f
callq 0x11d550
movq 0x38(%rsp), %rdi
movq 0x40(%rsp), %rax
movq 0x8(%rax), %rax
movl 0x30(%rax), %esi
callq 0x11dd20
jmp 0x1aa35c
movq 0x38(%rsp), %rdi
leaq 0x3af743(%rip), %rsi    # 0x559aab
callq 0x11d550
movq 0x38(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0x11d550
movq 0x38(%rsp), %rdi
leaq 0x3eb0f7(%rip), %rsi    # 0x59547f
callq 0x11d550
movq 0x38(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x11d550
movl 0x14(%rsp), %eax
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)