// File: /workspace/github_c_makefile_star2_O2/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, %rbx
movq %rcx, %r14
movl %edx, %ebp
movq %rsi, 0x10(%rsp)
movl %edi, %r15d
testq %r8, %r8
je 0x42533
movq %rbx, %rdi
callq 0x89eb7
testb %al, %al
jne 0x427a8
movq %rbx, (%rsp)
testq %r14, %r14
je 0x4277e
movslq %ebp, %rbx
movslq %r15d, %rax
movq %rax, 0x20(%rsp)
decl %eax
cltq
movq %rax, 0x18(%rsp)
xorl %r13d, %r13d
movq (%rsp), %rsi
testl %r13d, %r13d
jne 0x4276c
cmpq 0x20(%rsp), %rbx
jae 0x4276c
movq 0x10(%rsp), %rax
movq (%rax,%rbx,8), %rdi
callq 0x114f71
testq %rax, %rax
je 0x42768
movq %rax, %r12
xorl %r13d, %r13d
cmpb $0x1, 0x1(%r14)
jne 0x42700
cmpb $0x1, (%r14)
jne 0x4260d
movq %r12, %rdi
movq (%rsp), %rsi
callq 0x1150d0
pushq $-0x1
popq %r13
testq %rax, %rax
je 0x42700
movq %rax, %rbp
movq %r12, %rdi
movq (%rsp), %rsi
callq 0x11533f
pushq $-0x1
popq %r13
testq %rax, %rax
je 0x42700
movq %rax, %r15
movq %r12, %rdi
movq (%rsp), %rsi
callq 0x115321
pushq $-0x1
popq %r13
testq %rax, %rax
je 0x42700
xorl %r13d, %r13d
leaq 0x2b37f4(%rip), %rdi    # 0x2f5dec
movq %rbp, %rsi
movq %r15, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x17070
jmp 0x42700
cmpb $0x1, 0x2(%r14)
movq (%rsp), %r15
pushq $-0x1
popq %rbp
jne 0x42632
movq 0x10(%rsp), %rax
movq (%rax,%rbx,8), %rsi
leaq 0x2b37d1(%rip), %rdi    # 0x2f5dfc
xorl %eax, %eax
callq 0x17070
movq %r12, %rdi
movq %r15, %rsi
callq 0x1150d0
movl %ebp, %r13d
testq %rax, %rax
je 0x426f1
leaq 0x2b37bd(%rip), %rdi    # 0x2f5e0d
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
movq %r12, %rdi
movq %r15, %rsi
callq 0x11533f
movl %ebp, %r13d
testq %rax, %rax
je 0x426f1
leaq 0x2b37a6(%rip), %rdi    # 0x2f5e1e
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
movq %r12, %rdi
movq %r15, %rsi
callq 0x115321
movl %ebp, %r13d
testq %rax, %rax
je 0x426f1
leaq 0x2b378f(%rip), %rdi    # 0x2f5e2b
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
movq %r12, %rdi
movq %r15, %rsi
callq 0x115330
movl %ebp, %r13d
testq %rax, %rax
je 0x426f1
leaq 0x2b3778(%rip), %rdi    # 0x2f5e38
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
movq %r12, %rdi
movq %r15, %rsi
callq 0x115303
movl %ebp, %r13d
testq %rax, %rax
je 0x426f1
xorl %r13d, %r13d
leaq 0x2b375d(%rip), %rdi    # 0x2f5e44
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
cmpq %rbx, 0x18(%rsp)
je 0x42700
pushq $0xa
popq %rdi
callq 0x179c0
cmpb $0x1, 0x3(%r14)
jne 0x42758
leaq 0x2c9e1f(%rip), %rdi    # 0x30c52d
callq 0xacbd1
movq %rax, %r15
movq %rax, %rdi
leaq 0x33b3fb(%rip), %rsi    # 0x37db1b
pushq $0x17
popq %rdx
pushq $0x2a
popq %rcx
xorl %r8d, %r8d
callq 0xd9acb
movq %rax, %rbp
movq %r12, %rdi
movq %rax, %rsi
leaq 0xf(%rsp), %rdx
movq (%rsp), %rcx
callq 0x115548
movl %eax, %r13d
movq %rbp, %rdi
callq 0xde013
movq %r15, %rdi
callq 0xae103
movq %r12, %rdi
callq 0x115689
incq %rbx
jmp 0x42557
pushq $-0x1
popq %r13
movl %r13d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x3f57e3(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2a2884(%rip), %rsi    # 0x2e5013
leaq 0x305ebd(%rip), %rdx    # 0x348653
leaq 0x2b3637(%rip), %rcx    # 0x2f5dd4
leaq 0x2b3519(%rip), %r8     # 0x2f5cbd
pushq $0x57
jmp 0x427d0
movq 0x3f57b9(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2a285a(%rip), %rsi    # 0x2e5013
leaq 0x2a29ff(%rip), %rdx    # 0x2e51bf
leaq 0x2b360d(%rip), %rcx    # 0x2f5dd4
leaq 0x2b34ef(%rip), %r8     # 0x2f5cbd
pushq $0x56
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
nop