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

  gt_error_check(err);
  gt_assert(dev_toolbox);

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

  /* call development tool */
  if (!had_err) {
    if (!(toolfunc = gt_toolbox_get(dev_toolbox, argv[parsed_args]))) {
      tool = gt_toolbox_get_tool(dev_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 0x2385f
movq %rbx, %rdi
callq 0x89eb7
testb %al, %al
jne 0x2395e
testq %r15, %r15
je 0x23934
movslq %r14d, %r13
movq (%r12,%r13,8), %rsi
movq %r15, %rdi
callq 0xb0d84
movq (%r12,%r13,8), %rdx
testb %al, %al
je 0x238a0
leaq (%r12,%r13,8), %r13
movq %r15, %rdi
movq %rdx, %rsi
callq 0xb0e40
movq %rax, %r12
testq %rax, %rax
je 0x238b9
movq $0x0, (%rsp)
jmp 0x238d2
leaq 0x2c6b61(%rip), %rsi    # 0x2ea408
xorl %r15d, %r15d
movq %rbx, %rdi
xorl %eax, %eax
callq 0x89dbb
pushq $-0x1
popq %rbx
jmp 0x2391b
movq (%r13), %rsi
movq %r15, %rdi
callq 0xb0d2d
movq %rax, (%rsp)
testq %rax, %rax
je 0x23988
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 0x23908
movl %ebp, %edi
movq %r15, %rsi
movq %rbx, %rdx
callq *%r12
jmp 0x23919
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 0x41462d(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2c16ce(%rip), %rsi    # 0x2e5013
leaq 0x2c6a02(%rip), %rdx    # 0x2ea34e
leaq 0x2c6aa7(%rip), %rcx    # 0x2ea3fa
leaq 0x2c6a19(%rip), %r8     # 0x2ea373
pushq $0x70
jmp 0x239b0
movq 0x414603(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2c16a4(%rip), %rsi    # 0x2e5013
leaq 0x2c1849(%rip), %rdx    # 0x2e51bf
leaq 0x2c6a7d(%rip), %rcx    # 0x2ea3fa
leaq 0x2c69ef(%rip), %r8     # 0x2ea373
pushq $0x6f
jmp 0x239b0
movq 0x4145d9(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2c167a(%rip), %rsi    # 0x2e5013
leaq 0x2eeffd(%rip), %rdx    # 0x31299d
leaq 0x2c6a53(%rip), %rcx    # 0x2ea3fa
leaq 0x2c69c5(%rip), %r8     # 0x2ea373
pushq $0x7d
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
nop