// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/gtr.c
// Function: create_manpage
static int create_manpage(const char *outdir, const char *toolname,
                          GtOptionParser *option_parser, GtError *err)
{
  GtFile *outfile = NULL;
  GtStr *man, *pathbuf;
  char *utoolname;
  int had_err = 0;
  gt_error_check(err);
  gt_assert(outdir && toolname && option_parser);
  man = gt_str_new();
  pathbuf = gt_str_new_cstr(outdir);
  utoolname = gt_cstr_dup(toolname);
  gt_cstr_rep(utoolname, ' ', '_');
  if (!gt_file_exists(gt_str_get(pathbuf)))
    gt_xmkdir(gt_str_get(pathbuf));
  gt_str_append_char(pathbuf, GT_PATH_SEPARATOR);
  gt_str_append_cstr(pathbuf, utoolname);
  gt_str_append_cstr(pathbuf, ".mansrc");
  gt_free(utoolname);
  if (!(outfile = gt_file_new(gt_str_get(pathbuf), "w+", err)))
    had_err = -1;
  if (!had_err)
    had_err = gt_option_parser_manpage(option_parser, toolname, man, err);
  if (!had_err)
    gt_file_xprintf(outfile, "%s", gt_str_get(man));
  gt_file_delete(outfile);
  gt_str_delete(pathbuf);
  gt_str_delete(man);
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r15
movq %rdx, %r13
movq %rsi, %r12
movq %rdi, %r14
testq %rcx, %rcx
je 0x1922e
movq %r15, %rdi
callq 0x89eb7
testb %al, %al
jne 0x19389
testq %r14, %r14
je 0x1935b
testq %r12, %r12
je 0x1935b
testq %r13, %r13
je 0x1935b
callq 0xacb84
movq %rax, %rbx
movq %r14, %rdi
callq 0xacbd1
movq %rax, %r14
movq %r12, %rdi
callq 0x6c2be
movq %rax, %rbp
pushq $0x20
popq %rsi
pushq $0x5f
popq %rdx
movq %rax, %rdi
callq 0x6c3a8
movq %r14, %rdi
callq 0xad1fa
movq %rax, %rdi
callq 0x8da98
testb %al, %al
jne 0x19299
movq %r14, %rdi
callq 0xad1fa
movq %rax, %rdi
callq 0xb359e
pushq $0x2f
popq %rsi
movq %r14, %rdi
callq 0xaced9
movq %r14, %rdi
movq %rbp, %rsi
callq 0xacbfb
leaq 0x2cc3ab(%rip), %rsi    # 0x2e5661
movq %r14, %rdi
callq 0xacbfb
leaq 0x2cbe80(%rip), %rsi    # 0x2e5145
movq %rbp, %rdi
movl $0x138, %edx            # imm = 0x138
callq 0x936f9
movq %r14, %rdi
callq 0xad1fa
leaq 0x2cc388(%rip), %rsi    # 0x2e5669
movq %rax, %rdi
movq %r15, %rdx
callq 0x8ce05
movq %rax, %rbp
testq %rax, %rax
je 0x1932d
movq %r13, %rdi
movq %r12, %rsi
movq %rbx, %rdx
movq %r15, %rcx
callq 0x982d0
movl %eax, %r15d
testl %eax, %eax
jne 0x19331
movq %rbx, %rdi
callq 0xad1fa
leaq 0x34fb8e(%rip), %rsi    # 0x368ea9
xorl %r15d, %r15d
movq %rbp, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x8d432
jmp 0x19331
pushq $-0x1
popq %r15
movq %rbp, %rdi
callq 0x8da06
movq %r14, %rdi
callq 0xae103
movq %rbx, %rdi
callq 0xae103
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x41ec06(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2cbca7(%rip), %rsi    # 0x2e5013
leaq 0x2cc2ca(%rip), %rdx    # 0x2e563d
leaq 0x2cc2b4(%rip), %rcx    # 0x2e562e
leaq 0x2cbdc4(%rip), %r8     # 0x2e5145
movl $0x12e, %r9d            # imm = 0x12E
jmp 0x193b5
movq 0x41ebd8(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2cbc79(%rip), %rsi    # 0x2e5013
leaq 0x2cbe1e(%rip), %rdx    # 0x2e51bf
leaq 0x2cc286(%rip), %rcx    # 0x2e562e
leaq 0x2cbd96(%rip), %r8     # 0x2e5145
movl $0x12d, %r9d            # imm = 0x12D
xorl %eax, %eax
callq 0x17a50
callq 0x17390
nopl (%rax)