// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/tools/gt_compreads.c
// Function: gt_compreads_runner
static int gt_compreads_runner(GT_UNUSED int argc,
                         const char **argv,
                         int parsed_args,
                         void *tool_arguments, GtError *err)
{
  GtToolbox *compreads_toolbox = tool_arguments;
  GtToolfunc toolfunc;
  GtTool *tool = NULL;
  int had_err = 0;
  char **nargv = NULL;

  gt_error_check(err);
  gt_assert(compreads_toolbox);
  if (!gt_toolbox_has_tool(compreads_toolbox, argv[parsed_args])) {
    gt_error_set(err, "compreads tool '%s' not found; option -help lists "
                      "possible tools", argv[parsed_args]);
    had_err = -1;
  }

  if (!had_err) {
    if (!(toolfunc = gt_toolbox_get(compreads_toolbox, argv[parsed_args]))) {
      tool = gt_toolbox_get_tool(compreads_toolbox, argv[parsed_args]);
      gt_assert(tool);
    }

    nargv = gt_cstr_array_prefix_first(argv + parsed_args,
                                       gt_error_get_progname(err));
    gt_error_set_progname(err, nargv[0]);
    if (toolfunc != NULL)
      had_err = toolfunc(argc - parsed_args, (const char**) nargv, err);
    else
      had_err = gt_tool_run(tool, argc - parsed_args, (const char**) nargv,
                            err);
  }
  gt_cstr_array_delete(nargv);

  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbx
movq %rcx, %r15
movl %edx, %r14d
movq %rsi, %r12
movl %edi, %ebp
testq %r8, %r8
je 0x1b965
movq %rbx, %rdi
callq 0x89eb7
testb %al, %al
jne 0x1ba64
testq %r15, %r15
je 0x1ba3a
movslq %r14d, %r13
movq (%r12,%r13,8), %rsi
movq %r15, %rdi
callq 0xb0d84
movq (%r12,%r13,8), %rdx
testb %al, %al
je 0x1b9a6
leaq (%r12,%r13,8), %r13
movq %r15, %rdi
movq %rdx, %rsi
callq 0xb0e40
movq %rax, %r12
testq %rax, %rax
je 0x1b9bf
movq $0x0, (%rsp)
jmp 0x1b9d8
leaq 0x2cb19e(%rip), %rsi    # 0x2e6b4b
xorl %r15d, %r15d
movq %rbx, %rdi
xorl %eax, %eax
callq 0x89dbb
pushq $-0x1
popq %rbx
jmp 0x1ba21
movq (%r13), %rsi
movq %r15, %rdi
callq 0xb0d2d
movq %rax, (%rsp)
testq %rax, %rax
je 0x1ba8e
movq %rbx, %rdi
callq 0x8a001
movq %r13, %rdi
movq %rax, %rsi
callq 0x6c7c9
movq %rax, %r15
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x89f8a
subl %r14d, %ebp
testq %r12, %r12
je 0x1ba0e
movl %ebp, %edi
movq %r15, %rsi
movq %rbx, %rdx
callq *%r12
jmp 0x1ba1f
movq (%rsp), %rdi
movl %ebp, %esi
movq %r15, %rdx
movq %rbx, %rcx
callq 0xb05a1
movl %eax, %ebx
movq %r15, %rdi
callq 0x6ca1b
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x41c527(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2c95c8(%rip), %rsi    # 0x2e5013
leaq 0x2cb056(%rip), %rdx    # 0x2e6aa8
leaq 0x2cb0de(%rip), %rcx    # 0x2e6b37
leaq 0x2cb079(%rip), %r8     # 0x2e6ad9
pushq $0x4c
jmp 0x1bab6
movq 0x41c4fd(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2c959e(%rip), %rsi    # 0x2e5013
leaq 0x2c9743(%rip), %rdx    # 0x2e51bf
leaq 0x2cb0b4(%rip), %rcx    # 0x2e6b37
leaq 0x2cb04f(%rip), %r8     # 0x2e6ad9
pushq $0x4b
jmp 0x1bab6
movq 0x41c4d3(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2c9574(%rip), %rsi    # 0x2e5013
leaq 0x2f6ef7(%rip), %rdx    # 0x31299d
leaq 0x2cb08a(%rip), %rcx    # 0x2e6b37
leaq 0x2cb025(%rip), %r8     # 0x2e6ad9
pushq $0x56
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390