// File: /workspace/github_c_makefile_star2_O3/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 0x1280cd
movq %rdi, %r14
cmpb $0x0, 0x11(%rdi)
je 0x1280cd
movq %rsi, %rbp
movq 0x8(%r14), %rdi
leaq 0x232eec(%rip), %rsi    # 0x35ae55
callq 0x17210
testq %rax, %rax
je 0x128032
movq %rax, %r15
movq %rsp, %rdi
movb $0x0, 0x2000(%rdi)
movl $0x2000, %esi           # imm = 0x2000
movq %rax, %rdx
callq 0x17c30
testq %rax, %rax
je 0x127fdc
movq %rsp, %r12
leaq 0x2afaa1(%rip), %r13    # 0x3d7a41
movq %r12, %rdi
movl $0xa, %esi
callq 0x17880
testq %rax, %rax
je 0x127fb5
movb $0x0, (%rax)
movq %r13, %rdi
movl $0x2000, %esi           # imm = 0x2000
movq %r12, %rdx
xorl %eax, %eax
callq 0x103d72
movq %r12, %rdi
movl $0x2000, %esi           # imm = 0x2000
movq %r15, %rdx
callq 0x17c30
testq %rax, %rax
jne 0x127fa0
movq %r15, %rdi
callq 0x17a70
movl %eax, %ebx
testl %eax, %eax
jne 0x12805e
cmpb $0x0, 0x10(%r14)
jne 0x12805e
movq (%r14), %rdi
callq 0x11b0a1
leaq 0x232e55(%rip), %rsi    # 0x35ae55
movq %rax, %rdi
callq 0x17210
movq %rax, %r14
testq %rax, %rax
jne 0x1280b8
callq 0x17060
movl (%rax), %edi
callq 0x17240
leaq 0x24ffb8(%rip), %rsi    # 0x377fdf
xorl %r14d, %r14d
movq %rbp, %rdi
movq %rax, %rdx
jmp 0x128079
movq 0x8(%r14), %rbx
callq 0x17060
movl (%rax), %edi
callq 0x17240
leaq 0x24ff23(%rip), %rsi    # 0x377f6c
xorl %r14d, %r14d
movq %rbp, %rdi
movq %rbx, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0xfcb67
jmp 0x1280b8
callq 0x17060
cmpl $0xa, (%rax)
jne 0x128082
movq 0x8(%r14), %rdx
leaq 0x24ff1b(%rip), %rsi    # 0x377f8e
xorl %r14d, %r14d
movq %rbp, %rdi
xorl %eax, %eax
callq 0xfcb67
jmp 0x1280b8
movzbl %bh, %ecx
cmpl $0x7f, %ecx
jne 0x1280a0
leaq 0x24ff0f(%rip), %rsi    # 0x377fa0
xorl %r14d, %r14d
movq %rbp, %rdi
xorl %eax, %eax
callq 0xfcb67
jmp 0x1280b8
movq 0x8(%r14), %rdx
leaq 0x24ff1e(%rip), %rsi    # 0x377fc9
xorl %r14d, %r14d
movq %rbp, %rdi
xorl %eax, %eax
callq 0xfcb67
movq %r14, %rax
addq $0x2008, %rsp           # imm = 0x2008
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x3bbbd