// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/extended/match_iterator_blast.c
// Function: gt_match_iterator_blastn_process_new
GtMatchIterator* gt_match_iterator_blastn_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 perc_identity,
                                                      int num_threads,
                                                      double xdrop_gap_final,
                                                      const char *moreblast,
                                                      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, " -dust yes");
  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 (perc_identity != GT_UNDEF_DOUBLE) {
    GT_UNUSED int ret;
    ret = snprintf(buffer, BUFSIZ, " -perc_identity %.2f", perc_identity);
    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_DOUBLE)
    gt_blast_process_call_set_xdrop_gap_final(call, xdrop_gap_final);
  if (moreblast != NULL) {
    GT_UNUSED int ret;
    ret = snprintf(buffer, BUFSIZ, " %s", moreblast);
    gt_assert((size_t) ret < BUFSIZ);
    gt_blast_process_call_set_opt(call, buffer);
  }
  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 %xmm2, 0x8(%rsp)
movsd %xmm1, 0x18(%rsp)
movl %r9d, 0x4(%rsp)
movl %r8d, %r14d
movl %ecx, %r15d
movl %edx, %r12d
movsd %xmm0, 0x10(%rsp)
movq %rsi, %r13
movq %rdi, %rbp
callq 0xbcf38
movq %rax, %rbx
movq %rax, %rdi
movq %rbp, %rsi
callq 0xbd034
movq %rbx, %rdi
movq %r13, %rsi
callq 0xbd0af
movsd 0x10(%rsp), %xmm0
ucomisd 0x1eb12b(%rip), %xmm0   # 0x2e7d10
jne 0xfcbe9
jnp 0xfcbf1
movq %rbx, %rdi
callq 0xbd12c
testb %r12b, %r12b
je 0xfcc05
leaq 0x22a809(%rip), %rsi    # 0x327406
movq %rbx, %rdi
callq 0xbd691
movl %r15d, %eax
negl %eax
jo 0xfcc17
movq %rbx, %rdi
movl %r15d, %esi
callq 0xbd1b0
movl %r14d, %eax
negl %eax
jo 0xfcc29
movq %rbx, %rdi
movl %r14d, %esi
callq 0xbd22b
movl 0x2060(%rsp), %r14d
movl 0x4(%rsp), %esi
movl %esi, %eax
negl %eax
jo 0xfcc43
movq %rbx, %rdi
callq 0xbd2a6
movl 0x2068(%rsp), %ebp
movl %r14d, %eax
negl %eax
jo 0xfcc5c
movq %rbx, %rdi
movl %r14d, %esi
callq 0xbd321
movl %ebp, %eax
negl %eax
jo 0xfcc6c
movq %rbx, %rdi
movl %ebp, %esi
callq 0xbd3d0
movsd 0x18(%rsp), %xmm0
ucomisd 0x1eb096(%rip), %xmm0   # 0x2e7d10
jne 0xfcc7e
jnp 0xfccae
leaq 0x22a78c(%rip), %rdx    # 0x327411
leaq 0x20(%rsp), %rdi
movl $0x2000, %esi           # imm = 0x2000
movb $0x1, %al
callq 0x17bf0
cmpl $0x2000, %eax           # imm = 0x2000
jae 0xfcd3b
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0xbd691
movl 0x2070(%rsp), %esi
movl %esi, %eax
negl %eax
jo 0xfccc3
movq %rbx, %rdi
callq 0xbd47f
movq 0x2078(%rsp), %r14
movsd 0x8(%rsp), %xmm0
ucomisd 0x1eb037(%rip), %xmm0   # 0x2e7d10
jne 0xfccdd
jnp 0xfcce5
movq %rbx, %rdi
callq 0xbd4fa
testq %r14, %r14
je 0xfcd19
leaq 0x24e692(%rip), %rdx    # 0x34b383
leaq 0x20(%rsp), %rdi
movl $0x2000, %esi           # imm = 0x2000
movq %r14, %rcx
xorl %eax, %eax
callq 0x17bf0
cmpl $0x2000, %eax           # imm = 0x2000
jae 0xfcd69
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0xbd691
movq 0x2080(%rsp), %rsi
movq %rbx, %rdi
callq 0xfc86f
addq $0x2028, %rsp           # imm = 0x2028
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x33b226(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1e82c7(%rip), %rsi    # 0x2e5013
leaq 0x22a675(%rip), %rdx    # 0x3273c8
leaq 0x22a6cc(%rip), %rcx    # 0x327426
leaq 0x22a607(%rip), %r8     # 0x327368
movl $0x15a, %r9d            # imm = 0x15A
jmp 0xfcd95
movq 0x33b1f8(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1e8299(%rip), %rsi    # 0x2e5013
leaq 0x22a647(%rip), %rdx    # 0x3273c8
leaq 0x22a69e(%rip), %rcx    # 0x327426
leaq 0x22a5d9(%rip), %r8     # 0x327368
movl $0x164, %r9d            # imm = 0x164
xorl %eax, %eax
callq 0x17a50
callq 0x17390