// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/tools/gt_readjoiner_gfa.c
// Function: gt_readjoiner_gfa_option_parser_new
static GtOptionParser* gt_readjoiner_gfa_option_parser_new(
    void *tool_arguments)
{
  GtReadjoinerGfaArguments *arguments = tool_arguments;
  GtOptionParser *op;
  GtOption *option, *v_option;
  gt_assert(arguments != NULL);

  /* init */
  op = gt_option_parser_new("[option ...]",
      "Output string graph in SGA gfa format.");

  /* -readset */
  option = gt_option_new_string("readset", "specify the readset name",
      arguments->readset, NULL);
  gt_option_parser_add_option(op, option);
  gt_option_is_mandatory(option);

  /* -spmfiles */
  option = gt_option_new_uint_min("spmfiles", "number of SPM files to read\n"
      "this must be equal to the value of -j for the overlap phase",
      &arguments->nspmfiles, 1U, 1U);
  gt_option_is_extended_option(option);
  gt_option_parser_add_option(op, option);

  /* -l */
  option = gt_option_new_uint_min("l", "specify the minimum SPM length",
      &arguments->minmatchlength, 0, 2U);
  gt_option_is_extended_option(option);
  gt_option_parser_add_option(op, option);

  /* -gz */
  option = gt_option_new_bool("gz", "output gzipped file",
      &arguments->gz, false);
  gt_option_parser_add_option(op, option);

  /* -sg */
  option = gt_option_new_bool("sg", "first construct a Readjoiner string "
      "graph, then convert it into GFA format",
      &arguments->sg, false);
  gt_option_is_development_option(option);
  gt_option_parser_add_option(op, option);

  /* -1 */
  option = gt_option_new_bool("1", "output GFA1 "
      "(default: output GFA2)", &arguments->gfa1, false);
  gt_option_hide_default(option);
  gt_option_parser_add_option(op, option);

  /* -v */
  v_option = gt_option_new_verbose(&arguments->verbose);
  gt_option_parser_add_option(op, v_option);

  /* -q */
  option = gt_option_new_bool("q", "suppress standard output messages",
      &arguments->quiet, false);
  gt_option_exclude(option, v_option);
  gt_option_parser_add_option(op, option);

  gt_option_parser_set_version_func(op, gt_readjoiner_show_version);
  gt_option_parser_set_max_args(op, 0);

  return op;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0xb99c5
movq %rdi, %r14
leaq 0x2a7689(%rip), %rdi    # 0x360eb5
leaq 0x2a2f29(%rip), %rsi    # 0x35c75c
callq 0x10cc4e
movq %rax, %rbx
movq 0x8(%r14), %rdx
leaq 0x2a1e26(%rip), %rdi    # 0x35b66c
leaq 0x2a1e27(%rip), %rsi    # 0x35b674
xorl %ecx, %ecx
callq 0x10f987
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
movq %r15, %rdi
callq 0x10fa96
leaq 0x14(%r14), %rdx
leaq 0x2a1e18(%rip), %rdi    # 0x35b68d
leaq 0x2a1e1a(%rip), %rsi    # 0x35b696
movl $0x1, %ecx
movl $0x1, %r8d
callq 0x10f73b
movq %rax, %r15
movq %rax, %rdi
callq 0x10fbdf
movq %rbx, %rdi
movq %r15, %rsi
callq 0x10cd10
leaq 0x4(%r14), %rdx
leaq 0x2d76a9(%rip), %rdi    # 0x390f56
leaq 0x2a1e3a(%rip), %rsi    # 0x35b6ee
xorl %ecx, %ecx
movl $0x2, %r8d
callq 0x10f73b
movq %rax, %r15
movq %rax, %rdi
callq 0x10fbdf
movq %rbx, %rdi
movq %r15, %rsi
callq 0x10cd10
leaq 0x10(%r14), %rdx
leaq 0x2a2f63(%rip), %rdi    # 0x35c845
leaq 0x2a1e24(%rip), %rsi    # 0x35b70d
xorl %ecx, %ecx
callq 0x10f451
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
leaq 0x11(%r14), %rdx
leaq 0x2a258b(%rip), %rdi    # 0x35be91
leaq 0x2a2e76(%rip), %rsi    # 0x35c783
xorl %ecx, %ecx
callq 0x10f451
movq %rax, %r15
movq %rax, %rdi
callq 0x10fbef
movq %rbx, %rdi
movq %r15, %rsi
callq 0x10cd10
leaq 0x18(%r14), %rdx
leaq 0x2be335(%rip), %rdi    # 0x377c6a
leaq 0x2a2e92(%rip), %rsi    # 0x35c7ce
xorl %ecx, %ecx
callq 0x10f451
movq %rax, %r15
movq %rax, %rdi
callq 0x10fe32
movq %rbx, %rdi
movq %r15, %rsi
callq 0x10cd10
movq %r14, %rdi
callq 0x10f473
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
incq %r14
leaq 0x2d60af(%rip), %rdi    # 0x38fa28
leaq 0x2a1dec(%rip), %rsi    # 0x35b76c
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x10f451
movq %rax, %r14
movq %rax, %rdi
movq %r15, %rsi
callq 0x10fd9f
movq %rbx, %rdi
movq %r14, %rsi
callq 0x10cd10
leaq 0x12adce(%rip), %rsi    # 0x1e4778
movq %rbx, %rdi
callq 0x10cda1
movq %rbx, %rdi
xorl %esi, %esi
callq 0x10d775
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
callq 0x1dd1d