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

  gt_error_check(err);
  gt_assert(index_toolbox);

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

  /* call sub-tool */
  if (!had_err) {
    if (!(toolfunc = gt_toolbox_get(index_toolbox, argv[parsed_args]))) {
      tool = gt_toolbox_get_tool(index_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);
  }

  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 0x352f7
movq %rbx, %rdi
callq 0x89eb7
testb %al, %al
jne 0x353f6
testq %r15, %r15
je 0x353cc
movslq %r14d, %r13
movq (%r12,%r13,8), %rsi
movq %r15, %rdi
callq 0xb0d84
movq (%r12,%r13,8), %rdx
testb %al, %al
je 0x35338
leaq (%r12,%r13,8), %r13
movq %r15, %rdi
movq %rdx, %rsi
callq 0xb0e40
movq %rax, %r12
testq %rax, %rax
je 0x35351
movq $0x0, (%rsp)
jmp 0x3536a
leaq 0x2bc1a7(%rip), %rsi    # 0x2f14e6
xorl %r15d, %r15d
movq %rbx, %rdi
xorl %eax, %eax
callq 0x89dbb
pushq $-0x1
popq %rbx
jmp 0x353b3
movq (%r13), %rsi
movq %r15, %rdi
callq 0xb0d2d
movq %rax, (%rsp)
testq %rax, %rax
je 0x35420
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 0x353a0
movl %ebp, %edi
movq %r15, %rsi
movq %rbx, %rdx
callq *%r12
jmp 0x353b1
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 0x402b95(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2afc36(%rip), %rsi    # 0x2e5013
leaq 0x2bc044(%rip), %rdx    # 0x2f1428
leaq 0x2bc0e5(%rip), %rcx    # 0x2f14d0
leaq 0x2bc065(%rip), %r8     # 0x2f1457
pushq $0x51
jmp 0x35448
movq 0x402b6b(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2afc0c(%rip), %rsi    # 0x2e5013
leaq 0x2afdb1(%rip), %rdx    # 0x2e51bf
leaq 0x2bc0bb(%rip), %rcx    # 0x2f14d0
leaq 0x2bc03b(%rip), %r8     # 0x2f1457
pushq $0x50
jmp 0x35448
movq 0x402b41(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2afbe2(%rip), %rsi    # 0x2e5013
leaq 0x2dd565(%rip), %rdx    # 0x31299d
leaq 0x2bc091(%rip), %rcx    # 0x2f14d0
leaq 0x2bc011(%rip), %r8     # 0x2f1457
pushq $0x5e
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390