// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/blast_process_call.c
// Function: gt_blast_process_call_run
FILE *gt_blast_process_call_run(GtBlastProcessCall *call, GtError *err)
{
  int had_err = 0;
#ifndef _WIN32
  int errcode;
#endif
  FILE *blastout = NULL,
       *installcheck = NULL;
  gt_assert(call->query && call->db);

  installcheck = popen(call->version_call, "r");
  if (installcheck == NULL) {
    gt_error_set(err, "Could not open pipe to run %s: %s",
                 call->version_call, strerror(errno));
    had_err = -1;
  }
  /* this assures that we get the output if debugging is set, and also we
     prevent BROKEN_PIPE error if pclose(3) is called before the version call
     exits */
  if (!had_err) {
    char *newline = NULL;
    char line[BUFSIZ + 1];
    line[BUFSIZ] = '\0';
    while (fgets(line, (int) BUFSIZ, installcheck) != NULL) {
      if ((newline = strrchr(line, '\n')) != NULL) {
        *newline = '\0';
        newline = NULL;
      }
      gt_log_log("%.*s", BUFSIZ, line);
    }
  }
  if (!had_err) {
#ifndef _WIN32
    errcode = pclose(installcheck);
    if ((call->all && WEXITSTATUS(errcode) != 1) ||
        errcode != 0) {
      if (errno == ECHILD)
        gt_error_set(err, "Error calling %s.", call->version_call);
      else if (WEXITSTATUS(errcode) == 127)
        gt_error_set(err, "shell returned 127, BLAST not installed?");
      else
        gt_error_set(err, "%s error, returned %d",
                     call->version_call, WEXITSTATUS(errcode));
      had_err = -1;
    }
#endif
  }
  if (!had_err) {
    blastout = popen(gt_str_get(call->str), "r");
    if (blastout == NULL) {
      gt_error_set(err, "Could not open pipe to run BLAST process: %s",
                   strerror(errno));
    }
  }
  return blastout;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2008, %rsp           # imm = 0x2008
cmpb $0x1, 0x19(%rdi)
jne 0x12dfb5
movq %rdi, %r14
cmpb $0x0, 0x11(%rdi)
je 0x12dfb5
movq %rsi, %rbp
movq 0x8(%r14), %rdi
leaq 0x236078(%rip), %rsi    # 0x363ec9
callq 0x17210
testq %rax, %rax
je 0x12df1a
movq %rax, %r15
movq %rsp, %rdi
movb $0x0, 0x2000(%rdi)
movl $0x2000, %esi           # imm = 0x2000
movq %rax, %rdx
callq 0x17c30
testq %rax, %rax
je 0x12dec4
movq %rsp, %r12
leaq 0x2b330e(%rip), %r13    # 0x3e1196
movq %r12, %rdi
movl $0xa, %esi
callq 0x17880
testq %rax, %rax
je 0x12de9d
movb $0x0, (%rax)
movq %r13, %rdi
movl $0x2000, %esi           # imm = 0x2000
movq %r12, %rdx
xorl %eax, %eax
callq 0x108e02
movq %r12, %rdi
movl $0x2000, %esi           # imm = 0x2000
movq %r15, %rdx
callq 0x17c30
testq %rax, %rax
jne 0x12de88
movq %r15, %rdi
callq 0x17a70
movl %eax, %ebx
testl %eax, %eax
jne 0x12df46
cmpb $0x0, 0x10(%r14)
jne 0x12df46
movq (%r14), %rdi
callq 0x120d23
leaq 0x235fe1(%rip), %rsi    # 0x363ec9
movq %rax, %rdi
callq 0x17210
movq %rax, %r14
testq %rax, %rax
jne 0x12dfa0
callq 0x17060
movl (%rax), %edi
callq 0x17240
leaq 0x25336e(%rip), %rsi    # 0x38127d
xorl %r14d, %r14d
movq %rbp, %rdi
movq %rax, %rdx
jmp 0x12df61
movq 0x8(%r14), %rbx
callq 0x17060
movl (%rax), %edi
callq 0x17240
leaq 0x2532d9(%rip), %rsi    # 0x38120a
xorl %r14d, %r14d
movq %rbp, %rdi
movq %rbx, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x1019cf
jmp 0x12dfa0
callq 0x17060
cmpl $0xa, (%rax)
jne 0x12df6a
movq 0x8(%r14), %rdx
leaq 0x2532d1(%rip), %rsi    # 0x38122c
xorl %r14d, %r14d
movq %rbp, %rdi
xorl %eax, %eax
callq 0x1019cf
jmp 0x12dfa0
movzbl %bh, %ecx
cmpl $0x7f, %ecx
jne 0x12df88
leaq 0x2532c5(%rip), %rsi    # 0x38123e
xorl %r14d, %r14d
movq %rbp, %rdi
xorl %eax, %eax
callq 0x1019cf
jmp 0x12dfa0
movq 0x8(%r14), %rdx
leaq 0x2532d4(%rip), %rsi    # 0x381267
xorl %r14d, %r14d
movq %rbp, %rdi
xorl %eax, %eax
callq 0x1019cf
movq %r14, %rax
addq $0x2008, %rsp           # imm = 0x2008
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x3c602