// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/tools/gt_wtree.c
// Function: gt_wtree_runner
static int gt_wtree_runner(int argc, const char **argv, int parsed_args,
                              void *tool_arguments, GT_UNUSED GtError *err)
{
  GtToolbox *wtree_toolbox = tool_arguments;
  GtTool *tool = NULL;
  int had_err = 0;
  char **nargv = NULL;

  gt_error_check(err);
  gt_assert(wtree_toolbox);

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

  /* call wtree tool */
  if (!had_err) {
    gt_assert(tool);
    nargv = gt_cstr_array_prefix_first(argv + parsed_args,
                                       gt_error_get_progname(err));
    gt_error_set_progname(err, nargv[0]);
    had_err = gt_tool_run(tool, argc - parsed_args, (const char**) nargv, err);
  }

  /* free */
  gt_cstr_array_delete(nargv);

  return had_err;
}

// Assembly:
subq $0x58, %rsp
movl %edi, 0x54(%rsp)
movq %rsi, 0x48(%rsp)
movl %edx, 0x44(%rsp)
movq %rcx, 0x38(%rsp)
movq %r8, 0x30(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
movq $0x0, 0x20(%rsp)
movl $0x0, 0x1c(%rsp)
movq $0x0, 0x10(%rsp)
cmpq $0x0, 0x30(%rsp)
je 0x7ce3f
movq 0x30(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x7ce07
jmp 0x7ce3f
movq 0x5bf192(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4991fb(%rip), %rsi    # 0x516013
leaq 0x4993a0(%rip), %rdx    # 0x5161bf
leaq 0x4b212f(%rip), %rcx    # 0x52ef55
leaq 0x4b20d7(%rip), %r8     # 0x52ef04
movl $0x3e, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x7ce41
jmp 0x7ce43
cmpq $0x0, 0x28(%rsp)
jne 0x7ce83
movq 0x5bf14e(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4991b7(%rip), %rsi    # 0x516013
leaq 0x4b2078(%rip), %rdx    # 0x52eedb
leaq 0x4b20eb(%rip), %rcx    # 0x52ef55
leaq 0x4b2093(%rip), %r8     # 0x52ef04
movl $0x3f, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x7ce85
movq 0x28(%rsp), %rdi
movq 0x48(%rsp), %rax
movslq 0x44(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
callq 0x123730
movq %rax, 0x20(%rsp)
cmpq $0x0, 0x20(%rsp)
jne 0x7ced3
movq 0x30(%rsp), %rdi
movq 0x48(%rsp), %rax
movslq 0x44(%rsp), %rcx
movq (%rax,%rcx,8), %rdx
leaq 0x4b20a1(%rip), %rsi    # 0x52ef65
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x1c(%rsp) # imm = 0xFFFFFFFF
cmpl $0x0, 0x1c(%rsp)
jne 0x7cf86
jmp 0x7cee0
cmpq $0x0, 0x20(%rsp)
jne 0x7cf20
movq 0x5bf0b1(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x49911a(%rip), %rsi    # 0x516013
leaq 0x4c7b2f(%rip), %rdx    # 0x544a2f
leaq 0x4b204e(%rip), %rcx    # 0x52ef55
leaq 0x4b1ff6(%rip), %r8     # 0x52ef04
movl $0x4b, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x7cf22
movq 0x48(%rsp), %rax
movslq 0x44(%rsp), %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, 0x8(%rsp)
movq 0x30(%rsp), %rdi
callq 0xd8c20
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0xa3590
movq %rax, 0x10(%rsp)
movq 0x30(%rsp), %rdi
movq 0x10(%rsp), %rax
movq (%rax), %rsi
callq 0xd8b80
movq 0x20(%rsp), %rdi
movl 0x54(%rsp), %esi
subl 0x44(%rsp), %esi
movq 0x10(%rsp), %rdx
movq 0x30(%rsp), %rcx
callq 0x122bc0
movl %eax, 0x1c(%rsp)
movq 0x10(%rsp), %rdi
callq 0xa3950
movl 0x1c(%rsp), %eax
addq $0x58, %rsp
retq
nopl (%rax)