// File: /workspace/github_c_makefile_star2_O1/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 $0x38, %rsp
movq %r8, %rbx
movq %rcx, %r15
movl %edx, %r12d
movq %rsi, %r13
movl %edi, %ebp
testq %r8, %r8
je 0xc0920
movq %rbx, %rdi
callq 0x101a9a
testb %al, %al
jne 0xc0be5
testq %r15, %r15
je 0xc0be0
xorl %ecx, %ecx
cmpl %ebp, %r12d
jae 0xc0bcf
movslq %ebp, %rax
movq %rax, 0x30(%rsp)
movslq %r12d, %r14
decl %ebp
movslq %ebp, %rax
incq %r14
negq %rax
movq %rax, 0x20(%rsp)
xorl %ecx, %ecx
movl %ecx, 0x8(%rsp)
movq -0x8(%r13,%r14,8), %rdi
movq %rbx, %rsi
callq 0x179c06
movq %rax, %rbp
testq %rax, %rax
je 0xc0a0c
cmpb $0x1, 0x1(%r15)
jne 0xc0b30
cmpb $0x1, (%r15)
jne 0xc0a16
movq %rbp, %r12
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x179d4e
movq %rax, %rbp
cmpq $0x1, %rax
movl $0x0, %eax
sbbl %eax, %eax
movl 0x8(%rsp), %ecx
orl %eax, %ecx
jne 0xc09c2
movq %r12, %rdi
movq %rbx, %rsi
callq 0x179f18
movq %rax, 0x10(%rsp)
cmpq $0x1, %rax
movl $0x0, %ecx
sbbl %ecx, %ecx
testl %ecx, %ecx
jne 0xc09e1
movq %r12, %rdi
movq %rbx, %rsi
callq 0x179efa
movq %rax, 0x18(%rsp)
cmpq $0x1, %rax
movl $0x0, %ecx
sbbl %ecx, %ecx
movl %ecx, 0x8(%rsp)
testl %ecx, %ecx
jne 0xc0a04
leaq 0x29e418(%rip), %rdi    # 0x35ee08
movq %rbp, %rsi
movq 0x10(%rsp), %rdx
movq 0x18(%rsp), %rcx
xorl %eax, %eax
callq 0x17070
movq %r12, %rbp
jmp 0xc0b30
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
jmp 0xc0bb4
cmpb $0x1, 0x2(%r15)
jne 0xc0a30
movq -0x8(%r13,%r14,8), %rsi
leaq 0x29e3ef(%rip), %rdi    # 0x35ee18
xorl %eax, %eax
callq 0x17070
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x179d4e
testq %rax, %rax
je 0xc0a57
leaq 0x29e3e2(%rip), %rdi    # 0x35ee29
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
movl 0x8(%rsp), %eax
jmp 0xc0a5c
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %eax, %eax
jne 0xc0a8a
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x179f18
testq %rax, %rax
je 0xc0a85
leaq 0x29e3c3(%rip), %rdi    # 0x35ee3a
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
xorl %eax, %eax
jmp 0xc0a8a
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %eax, %eax
jne 0xc0ab8
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x179efa
testq %rax, %rax
je 0xc0ab3
leaq 0x29e3a2(%rip), %rdi    # 0x35ee47
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
xorl %eax, %eax
jmp 0xc0ab8
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %eax, %eax
jne 0xc0ae6
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x179f09
testq %rax, %rax
je 0xc0ae1
leaq 0x29e381(%rip), %rdi    # 0x35ee54
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
xorl %eax, %eax
jmp 0xc0ae6
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %eax, %eax
jne 0xc0b14
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x179edc
testq %rax, %rax
je 0xc0b0f
leaq 0x29e35f(%rip), %rdi    # 0x35ee60
movq %rax, %rsi
xorl %eax, %eax
callq 0x17070
xorl %eax, %eax
jmp 0xc0b14
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, 0x8(%rsp)
movq 0x20(%rsp), %rax
addq %r14, %rax
cmpq $0x1, %rax
je 0xc0b30
movl $0xa, %edi
callq 0x17a20
cmpb $0x1, 0x3(%r15)
jne 0xc0ba8
leaq 0x2b495f(%rip), %rdi    # 0x37549d
callq 0x120955
movq %rbp, %r12
movq %rax, %rbp
movl $0x17, %edx
movl $0x2a, %ecx
movq %rax, %rdi
leaq 0x3262ee(%rip), %rsi    # 0x3e6e4b
xorl %r8d, %r8d
callq 0x14952c
movq %r14, 0x28(%rsp)
movq %r13, %r14
movq %r15, %r13
movq %rax, %r15
movq %r12, %rdi
movq %rax, %rsi
leaq 0xf(%rsp), %rdx
movq %rbx, %rcx
callq 0x17a0f3
movl %eax, 0x8(%rsp)
movq %r15, %rdi
movq %r13, %r15
movq %r14, %r13
movq 0x28(%rsp), %r14
callq 0x14c43a
movq %rbp, %rdi
movq %r12, %rbp
callq 0x121b03
movq %rbp, %rdi
callq 0x17a215
movl 0x8(%rsp), %ecx
testq %rbp, %rbp
je 0xc0bcf
testl %ecx, %ecx
jne 0xc0bcf
leaq 0x1(%r14), %rax
cmpq 0x30(%rsp), %r14
movq %rax, %r14
jb 0xc0951
movl %ecx, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1e9d7
callq 0x1e9a0
nop