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

  gt_error_check(err);
  gt_assert(readjoiner_toolbox);

  /* get readjoiner tools */
  if (!gt_toolbox_has_tool(readjoiner_toolbox, argv[parsed_args])) {
    gt_error_set(err, "readjoiner tool '%s' not found; option -help lists "
                      "possible tools", argv[parsed_args]);
    had_err = -1;
  }

  /* call readjoiner tool */
  if (!had_err) {
    if (!(toolfunc = gt_toolbox_get(readjoiner_toolbox, argv[parsed_args]))) {
      tool = gt_toolbox_get_tool(readjoiner_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)
      had_err = toolfunc(argc - parsed_args, (const char**) nargv, err);
    else
      had_err = gt_tool_run(tool, argc - parsed_args, (const char**) nargv,
                            err);
  }

  /* free */
  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 0x37e66
movq %rbx, %rdi
callq 0x89eb7
testb %al, %al
jne 0x37f65
testq %r15, %r15
je 0x37f3b
movslq %r14d, %r13
movq (%r12,%r13,8), %rsi
movq %r15, %rdi
callq 0xb0d84
movq (%r12,%r13,8), %rdx
testb %al, %al
je 0x37ea7
leaq (%r12,%r13,8), %r13
movq %r15, %rdi
movq %rdx, %rsi
callq 0xb0e40
movq %rax, %r12
testq %rax, %rax
je 0x37ec0
movq $0x0, (%rsp)
jmp 0x37ed9
leaq 0x2ba6e8(%rip), %rsi    # 0x2f2596
xorl %r15d, %r15d
movq %rbx, %rdi
xorl %eax, %eax
callq 0x89dbb
pushq $-0x1
popq %rbx
jmp 0x37f22
movq (%r13), %rsi
movq %r15, %rdi
callq 0xb0d2d
movq %rax, (%rsp)
testq %rax, %rax
je 0x37f8f
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 0x37f0f
movl %ebp, %edi
movq %r15, %rsi
movq %rbx, %rdx
callq *%r12
jmp 0x37f20
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 0x400026(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2ad0c7(%rip), %rsi    # 0x2e5013
leaq 0x2ba630(%rip), %rdx    # 0x2f2583
leaq 0x2ba5fa(%rip), %rcx    # 0x2f2554
leaq 0x2ba608(%rip), %r8     # 0x2f2569
pushq $0x57
jmp 0x37fb7
movq 0x3ffffc(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2ad09d(%rip), %rsi    # 0x2e5013
leaq 0x2ad242(%rip), %rdx    # 0x2e51bf
leaq 0x2ba5d0(%rip), %rcx    # 0x2f2554
leaq 0x2ba5de(%rip), %r8     # 0x2f2569
pushq $0x56
jmp 0x37fb7
movq 0x3fffd2(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2ad073(%rip), %rsi    # 0x2e5013
leaq 0x2da9f6(%rip), %rdx    # 0x31299d
leaq 0x2ba5a6(%rip), %rcx    # 0x2f2554
leaq 0x2ba5b4(%rip), %r8     # 0x2f2569
pushq $0x64
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
nopl (%rax)