// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x88, %rsp
movl %edi, 0x84(%rsp)
movq %rsi, 0x78(%rsp)
movl %edx, 0x74(%rsp)
movq %rcx, 0x68(%rsp)
movq %r8, 0x60(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x58(%rsp)
movl $0x0, 0x54(%rsp)
cmpq $0x0, 0x60(%rsp)
je 0x5c863
movq 0x60(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x5c82b
jmp 0x5c863
movq 0x5df76e(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4b97d7(%rip), %rsi    # 0x516013
leaq 0x4b997c(%rip), %rdx    # 0x5161bf
leaq 0x4ca636(%rip), %rcx    # 0x526e80
leaq 0x4ca518(%rip), %r8     # 0x526d69
movl $0x56, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x5c865
jmp 0x5c867
cmpq $0x0, 0x58(%rsp)
jne 0x5c8a7
movq 0x5df72a(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4b9793(%rip), %rsi    # 0x516013
leaq 0x51e2d8(%rip), %rdx    # 0x57ab5f
leaq 0x4ca5f2(%rip), %rcx    # 0x526e80
leaq 0x4ca4d4(%rip), %r8     # 0x526d69
movl $0x57, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x5c8a9
movslq 0x74(%rsp), %rax
movq %rax, 0x48(%rsp)
xorl %eax, %eax
cmpl $0x0, 0x54(%rsp)
movb %al, 0x7(%rsp)
jne 0x5c8d7
movq 0x48(%rsp), %rax
movslq 0x84(%rsp), %rcx
cmpq %rcx, %rax
setb %al
movb %al, 0x7(%rsp)
movb 0x7(%rsp), %al
testb $0x1, %al
jne 0x5c8e4
jmp 0x5cbfd
movq $0x0, 0x40(%rsp)
movq 0x78(%rsp), %rax
movq 0x48(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
movq 0x60(%rsp), %rsi
callq 0x1d1bb0
movq %rax, 0x40(%rsp)
cmpq $0x0, 0x40(%rsp)
jne 0x5c91f
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
jmp 0x5cbfd
movq 0x58(%rsp), %rax
testb $0x1, 0x1(%rax)
je 0x5cb6e
movq 0x58(%rsp), %rax
testb $0x1, (%rax)
je 0x5c9dd
movq 0x40(%rsp), %rdi
movq 0x60(%rsp), %rsi
callq 0x1d1e00
movq %rax, 0x38(%rsp)
cmpq $0x0, %rax
jne 0x5c95e
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
cmpl $0x0, 0x54(%rsp)
jne 0x5c989
movq 0x40(%rsp), %rdi
movq 0x60(%rsp), %rsi
callq 0x1d21f0
movq %rax, 0x30(%rsp)
cmpq $0x0, %rax
jne 0x5c987
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
jmp 0x5c989
cmpl $0x0, 0x54(%rsp)
jne 0x5c9b4
movq 0x40(%rsp), %rdi
movq 0x60(%rsp), %rsi
callq 0x1d2190
movq %rax, 0x28(%rsp)
cmpq $0x0, %rax
jne 0x5c9b2
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
jmp 0x5c9b4
cmpl $0x0, 0x54(%rsp)
jne 0x5c9d8
movq 0x38(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq 0x28(%rsp), %rcx
leaq 0x4ca4c7(%rip), %rdi    # 0x526e98
movb $0x0, %al
callq 0x19070
jmp 0x5cb6c
movq 0x58(%rsp), %rax
testb $0x1, 0x2(%rax)
je 0x5ca04
movq 0x78(%rsp), %rax
movq 0x48(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
leaq 0x4ca4ab(%rip), %rdi    # 0x526ea8
movb $0x0, %al
callq 0x19070
movq 0x40(%rsp), %rdi
movq 0x60(%rsp), %rsi
callq 0x1d1e00
movq %rax, 0x20(%rsp)
cmpq $0x0, 0x20(%rsp)
je 0x5ca35
movq 0x20(%rsp), %rsi
leaq 0x4ca48d(%rip), %rdi    # 0x526eb9
movb $0x0, %al
callq 0x19070
jmp 0x5ca3d
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
cmpl $0x0, 0x54(%rsp)
jne 0x5ca7f
movq 0x40(%rsp), %rdi
movq 0x60(%rsp), %rsi
callq 0x1d21f0
movq %rax, 0x20(%rsp)
cmpq $0x0, 0x20(%rsp)
je 0x5ca75
movq 0x20(%rsp), %rsi
leaq 0x4ca45e(%rip), %rdi    # 0x526eca
movb $0x0, %al
callq 0x19070
jmp 0x5ca7d
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
jmp 0x5ca7f
cmpl $0x0, 0x54(%rsp)
jne 0x5cac1
movq 0x40(%rsp), %rdi
movq 0x60(%rsp), %rsi
callq 0x1d2190
movq %rax, 0x20(%rsp)
cmpq $0x0, 0x20(%rsp)
je 0x5cab7
movq 0x20(%rsp), %rsi
leaq 0x4ca429(%rip), %rdi    # 0x526ed7
movb $0x0, %al
callq 0x19070
jmp 0x5cabf
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
jmp 0x5cac1
cmpl $0x0, 0x54(%rsp)
jne 0x5cb03
movq 0x40(%rsp), %rdi
movq 0x60(%rsp), %rsi
callq 0x1d21c0
movq %rax, 0x20(%rsp)
cmpq $0x0, 0x20(%rsp)
je 0x5caf9
movq 0x20(%rsp), %rsi
leaq 0x4ca3f4(%rip), %rdi    # 0x526ee4
movb $0x0, %al
callq 0x19070
jmp 0x5cb01
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
jmp 0x5cb03
cmpl $0x0, 0x54(%rsp)
jne 0x5cb45
movq 0x40(%rsp), %rdi
movq 0x60(%rsp), %rsi
callq 0x1d2130
movq %rax, 0x20(%rsp)
cmpq $0x0, 0x20(%rsp)
je 0x5cb3b
movq 0x20(%rsp), %rsi
leaq 0x4ca3be(%rip), %rdi    # 0x526ef0
movb $0x0, %al
callq 0x19070
jmp 0x5cb43
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
jmp 0x5cb45
movq 0x48(%rsp), %rax
movl 0x84(%rsp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
cmpq %rcx, %rax
je 0x5cb6a
leaq 0x536710(%rip), %rdi    # 0x593273
movb $0x0, %al
callq 0x19070
jmp 0x5cb6c
jmp 0x5cb6e
movq 0x58(%rsp), %rax
testb $0x1, 0x3(%rax)
je 0x5cbde
leaq 0x4e131d(%rip), %rdi    # 0x53de9d
callq 0x11d510
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rdi
leaq 0x555fd0(%rip), %rsi    # 0x5b2b66
movl $0x17, %edx
movl $0x2a, %ecx
xorl %r8d, %r8d
callq 0x16c7e0
movq %rax, 0x8(%rsp)
movq 0x40(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq 0x60(%rsp), %rcx
leaq 0x1f(%rsp), %rdx
callq 0x1d2540
movl %eax, 0x54(%rsp)
movq 0x8(%rsp), %rdi
callq 0x173180
movq 0x10(%rsp), %rdi
callq 0x11f560
movq 0x40(%rsp), %rdi
callq 0x1d2790
jmp 0x5cbea
movq 0x48(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x48(%rsp)
jmp 0x5c8b3
movl 0x54(%rsp), %eax
addq $0x88, %rsp
retq
nopl (%rax)