// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/match_iterator_blast.c
// Function: gt_match_iterator_blastalln_process_new
GtMatchIterator* gt_match_iterator_blastalln_process_new(const char *query,
                                                         const char *db_name,
                                                         double evalue,
                                                         bool dust,
                                                         int word_size,
                                                         int gapopen,
                                                         int gapextend,
                                                         int penalty,
                                                         int reward,
                                                         double threshold,
                                                         int num_threads,
                                                         int xdrop_gap_final,
                                                         GtError *err)
{
  GtBlastProcessCall *call = gt_blast_process_call_new_all_nucl();
  char buffer[BUFSIZ];

  gt_blast_process_call_set_query(call, query);
  gt_blast_process_call_set_db(call, db_name);
  if (evalue != GT_UNDEF_DOUBLE)
    gt_blast_process_call_set_evalue(call, evalue);
  if (dust)
    gt_blast_process_call_set_opt(call, " -F");
  if (word_size != GT_UNDEF_INT)
    gt_blast_process_call_set_wordsize(call, word_size);
  if (gapopen != GT_UNDEF_INT)
    gt_blast_process_call_set_gapopen(call, gapopen);
  if (gapextend != GT_UNDEF_INT)
    gt_blast_process_call_set_gapextend(call, gapextend);
  if (penalty != GT_UNDEF_INT)
    gt_blast_process_call_set_penalty(call, penalty);
  if (reward != GT_UNDEF_INT)
    gt_blast_process_call_set_reward(call, reward);
  if (threshold != GT_UNDEF_DOUBLE) {
    GT_UNUSED int ret;
    ret = snprintf(buffer, BUFSIZ, " -f %.3f", threshold);
    gt_assert((size_t) ret < BUFSIZ);
    gt_blast_process_call_set_opt(call, buffer);
  }
  if (num_threads != GT_UNDEF_INT)
    gt_blast_process_call_set_num_threads(call, num_threads);
  if (xdrop_gap_final != GT_UNDEF_INT)
    gt_blast_process_call_set_xdrop_gap_final(call, xdrop_gap_final);
  return gt_match_iterator_blast_process_new(call, err);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2028, %rsp           # imm = 0x2028
movsd %xmm1, 0x18(%rsp)
movl %r9d, 0xc(%rsp)
movl %r8d, %r14d
movl %ecx, %r15d
movl %edx, %r12d
movsd %xmm0, 0x10(%rsp)
movq %rsi, %r13
movq %rdi, %rbp
callq 0x12d96c
movq %rax, %rbx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x12da6c
movq %rbx, %rdi
movq %r13, %rsi
callq 0x12dab6
movsd 0x10(%rsp), %xmm0
ucomisd 0x1eaf1b(%rip), %xmm0   # 0x350d10
jne 0x165df9
jnp 0x165e01
movq %rbx, %rdi
callq 0x12db00
testb %r12b, %r12b
je 0x165e15
leaq 0x22a58e(%rip), %rsi    # 0x39039b
movq %rbx, %rdi
callq 0x12ddf0
movl %r15d, %eax
negl %eax
jo 0x165e27
movq %rbx, %rdi
movl %r15d, %esi
callq 0x12db53
movl %r14d, %eax
negl %eax
jo 0x165e39
movq %rbx, %rdi
movl %r14d, %esi
callq 0x12db9b
movl 0x2060(%rsp), %r14d
movl 0xc(%rsp), %esi
movl %esi, %eax
negl %eax
jo 0x165e53
movq %rbx, %rdi
callq 0x12dbe3
movl 0x2068(%rsp), %ebp
movl %r14d, %eax
negl %eax
jo 0x165e6c
movq %rbx, %rdi
movl %r14d, %esi
callq 0x12dc2b
movl %ebp, %eax
negl %eax
jo 0x165e7c
movq %rbx, %rdi
movl %ebp, %esi
callq 0x12dc7e
movsd 0x18(%rsp), %xmm0
ucomisd 0x1eae86(%rip), %xmm0   # 0x350d10
jne 0x165e8e
jnp 0x165eba
leaq 0x22a50a(%rip), %rdx    # 0x39039f
leaq 0x20(%rsp), %rdi
movl $0x2000, %esi           # imm = 0x2000
movb $0x1, %al
callq 0x17c60
cmpl $0x2000, %eax           # imm = 0x2000
jae 0x165f10
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x12ddf0
movl 0x2078(%rsp), %ebp
movl 0x2070(%rsp), %esi
movl %esi, %eax
negl %eax
jo 0x165ed6
movq %rbx, %rdi
callq 0x12dcd1
movq 0x2080(%rsp), %r14
movl %ebp, %eax
negl %eax
jo 0x165ef3
xorps %xmm0, %xmm0
cvtsi2sd %ebp, %xmm0
movq %rbx, %rdi
callq 0x12dd19
movq %rbx, %rdi
movq %r14, %rsi
callq 0x165cfc
addq $0x2028, %rsp           # imm = 0x2028
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x4ce8d