// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/tools/gt_script_filter.c
// Function: gt_script_filter_runner
static int gt_script_filter_runner(int argc, const char **argv, int parsed_args,
                                   void *tool_arguments, GT_UNUSED GtError *err)
{
  GtScriptFilterArguments *arguments = tool_arguments;
  int had_err = 0;
  GtUword i;

  gt_error_check(err);
  gt_assert(arguments);

  for (i = parsed_args; !had_err && i < argc; i++) {
    GtScriptFilter *sf = NULL;
    sf = gt_script_filter_new(argv[i], err);
    if (!sf) {
      had_err = -1;
      break;
    } else {
      if (arguments->showinfo) {
        if (arguments->oneline) {
          const char *name,
                     *version,
                     *author;

          if (!(name = gt_script_filter_get_name(sf, err)))
            had_err = -1;

          if (!had_err) {
            if (!(version = gt_script_filter_get_version(sf, err)))
              had_err = -1;
          }

          if (!had_err) {
            if (!(author = gt_script_filter_get_author(sf, err)))
              had_err = -1;
          }

          if (!had_err) {
            printf("%s v%s (by %s)\n", name, version, author);
          }
        } else {
          const char *out;

          if (arguments->scriptname)
            printf("script name:\t%s\n", argv[i]);

          out = gt_script_filter_get_name(sf, err);
          if (out)
            printf("filter name:\t%s\n", out);
          else
            had_err = -1;

          if (!had_err) {
            out = gt_script_filter_get_version(sf, err);
            if (out)
              printf("version:\t%s\n", out);
            else
              had_err = -1;
          }

          if (!had_err) {
            out = gt_script_filter_get_author(sf, err);
            if (out)
              printf("author:\t\t%s\n", out);
            else
              had_err = -1;
          }

          if (!had_err) {
            out = gt_script_filter_get_email(sf, err);
            if (out)
              printf("email:\t\t%s\n", out);
            else
              had_err = -1;
          }

          if (!had_err) {
            out = gt_script_filter_get_description(sf, err);
            if (out)
              printf("description:\t%s\n", out);
            else
              had_err = -1;
          }

          if (i != argc-1)
            printf("\n");
        }
      }
      if (arguments->validate) {
        GT_UNUSED bool select;
        GtStr *seqid = gt_str_new_cstr("foo");
        GtFeatureNode *fn = (GtFeatureNode*) gt_feature_node_new(seqid, "gene",
                                                             23, 42,
                                                             GT_STRAND_FORWARD);
        had_err = gt_script_filter_run(sf, fn, &select, err);
        gt_genome_node_delete((GtGenomeNode*) fn);
        gt_str_delete(seqid);
      }
      gt_script_filter_delete(sf);
    }
  }

  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, %r14
movl %edx, %r12d
movq %rsi, 0x10(%rsp)
movl %edi, %ebp
testq %r8, %r8
movq %rcx, (%rsp)
je 0xbe95f
movq %r14, %rdi
callq 0xfcc32
movq (%rsp), %rcx
testb %al, %al
jne 0xbebb8
testq %rcx, %rcx
je 0xbebb3
xorl %r13d, %r13d
cmpl %ebp, %r12d
jae 0xbeba1
movslq %ebp, %rax
movq %rax, 0x20(%rsp)
movslq %r12d, %rbx
decl %ebp
movslq %ebp, %rax
incq %rbx
negq %rax
movq %rax, 0x18(%rsp)
movq 0x10(%rsp), %rax
movq -0x8(%rax,%rbx,8), %rdi
movq %r14, %rsi
callq 0x171842
testq %rax, %rax
je 0xbeb9b
movq %rax, %r12
xorl %r13d, %r13d
movq (%rsp), %rcx
cmpb $0x1, 0x1(%rcx)
jne 0xbeb20
cmpb $0x1, (%rcx)
jne 0xbea31
movq %r12, %rdi
movq %r14, %r15
movq %r14, %rsi
callq 0x17198a
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
testq %rax, %rax
je 0xbeb1c
movq %rax, %rbp
movq %r12, %rdi
movq %r15, %rsi
callq 0x171b54
testq %rax, %rax
je 0xbeb1c
movq %r15, %rsi
movq %rax, %r15
movq %r12, %rdi
callq 0x171b36
testq %rax, %rax
movq (%rsp), %rcx
je 0xbeb20
xorl %r13d, %r13d
leaq 0x2973c0(%rip), %rdi    # 0x355ddc
movq %rbp, %rsi
movq %r15, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x17070
jmp 0xbeb1c
cmpb $0x1, 0x2(%rcx)
movq %r14, %r15
jne 0xbea52
movq 0x10(%rsp), %rax
movq -0x8(%rax,%rbx,8), %rsi
leaq 0x2973a1(%rip), %rdi    # 0x355dec
xorl %eax, %eax
callq 0x17070
movq %r12, %rdi
movq %r15, %rsi
callq 0x17198a
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
testq %rax, %rax
je 0xbeb04
leaq 0x29738a(%rip), %rdi    # 0x355dfd
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
movq %r12, %rdi
movq %r15, %rsi
callq 0x171b54
testq %rax, %rax
je 0xbeb04
leaq 0x29737a(%rip), %rdi    # 0x355e0e
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
movq %r12, %rdi
movq %r15, %rsi
callq 0x171b36
testq %rax, %rax
je 0xbeb04
leaq 0x297366(%rip), %rdi    # 0x355e1b
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
movq %r12, %rdi
movq %r15, %rsi
callq 0x171b45
testq %rax, %rax
je 0xbeb04
leaq 0x297352(%rip), %rdi    # 0x355e28
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
movq %r12, %rdi
movq %r15, %rsi
callq 0x171b18
testq %rax, %rax
je 0xbeb04
xorl %r13d, %r13d
leaq 0x29733a(%rip), %rdi    # 0x355e34
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
movq 0x18(%rsp), %rax
addq %rbx, %rax
cmpq $0x1, %rax
je 0xbeb1c
movl $0xa, %edi
callq 0x17a20
movq (%rsp), %rcx
cmpb $0x1, 0x3(%rcx)
jne 0xbeb7a
leaq 0x2ad720(%rip), %rdi    # 0x36c24d
callq 0x11acc9
movq %rax, %r15
movl $0x17, %edx
movl $0x2a, %ecx
movq %rax, %rdi
leaq 0x31ec02(%rip), %rsi    # 0x3dd74b
xorl %r8d, %r8d
callq 0x1422f4
movq %rax, %rbp
movq %r12, %rdi
movq %rax, %rsi
leaq 0xf(%rsp), %rdx
movq %r14, %rcx
callq 0x171d45
movl %eax, %r13d
movq %rbp, %rdi
callq 0x1451a0
movq %r15, %rdi
callq 0x11bdbf
movq %r12, %rdi
callq 0x171e61
testl %r13d, %r13d
jne 0xbeba1
leaq 0x1(%rbx), %rax
cmpq 0x20(%rsp), %rbx
movq %rax, %rbx
jb 0xbe98f
jmp 0xbeba1
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
movl %r13d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1e686
callq 0x1e64f
nopl (%rax)