// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/tools/gt_extractfeat.c
// Function: gt_extractfeat_option_parser_new
static GtOptionParser* gt_extractfeat_option_parser_new(void *tool_arguments)
{
  GtExtractFeatArguments *arguments = tool_arguments;
  GtOptionParser *op;
  GtOption *option;
  gt_assert(arguments);

  op = gt_option_parser_new("[option ...] [GFF3_file]",
                            "Extract features given in GFF3 file from "
                            "sequence file.");

  /* -type */
  option = gt_option_new_string("type", "set type of features to extract",
                                arguments->type, NULL);
  gt_option_is_mandatory(option);
  gt_option_parser_add_option(op, option);

  /* -join */
  option = gt_option_new_bool("join", "join feature sequences in the same "
                              "subgraph into a single one", &arguments->join,
                              false);
  gt_option_parser_add_option(op, option);

  /* -translate */
  option = gt_option_new_bool("translate", "translate the features (of a DNA "
                              "sequence) into protein", &arguments->translate,
                              false);
  gt_option_parser_add_option(op, option);

  /* -seqid */
  option = gt_option_new_bool("seqid", "add sequence ID of extracted features "
                              "to FASTA descriptions", &arguments->seqid,
                              false);
  gt_option_parser_add_option(op, option);

  /* -target */
  option = gt_option_new_bool("target", "add target ID(s) of extracted "
                              "features to FASTA descriptions",
                              &arguments->target, false);
  gt_option_parser_add_option(op, option);

  /* -coords */
  option = gt_option_new_bool("coords", "add location of extracted features "
                              "to FASTA descriptions", &arguments->showcoords,
                              false);
  gt_option_parser_add_option(op, option);

  /* -retainids */
  option = gt_option_new_bool("retainids", "use ID attributes of extracted "
                              "features as FASTA descriptions",
                              &arguments->retainids, false);
  gt_option_parser_add_option(op, option);

  /* -gcode */
  option = gt_option_new_uint_min("gcode", "specify genetic code to use",
                                  &arguments->gcode,
                                  GT_STANDARD_TRANSLATION_SCHEME, 1U);
  gt_option_parser_add_option(op, option);

  /* -seqfile, -matchdesc, -usedesc and -regionmapping */
  gt_seqid2file_register_options(op, arguments->s2fi);

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

  /* -width */
  option = gt_option_new_width(&arguments->width);
  gt_option_parser_add_option(op, option);

  /* output file options */
  gt_output_file_info_register_options(arguments->ofi, op, &arguments->outfp);

  gt_option_parser_set_comment_func(op, gt_extractfeat_comment_func, NULL);
  gt_option_parser_set_max_args(op, 1);

  return op;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0xa8ef9
movq %rdi, %r14
leaq 0x2a6346(%rip), %rdi    # 0x34f08f
leaq 0x2ac593(%rip), %rsi    # 0x3552e3
callq 0x10cc4e
movq %rax, %rbx
movq 0x10(%r14), %rdx
leaq 0x2f7b92(%rip), %rdi    # 0x3a08f5
leaq 0x2ac5b1(%rip), %rsi    # 0x35531b
xorl %ecx, %ecx
callq 0x10f987
movq %rax, %r15
movq %rax, %rdi
callq 0x10fa96
movq %rbx, %rdi
movq %r15, %rsi
callq 0x10cd10
leaq 0x3392a0(%rip), %rdi    # 0x3e202e
leaq 0x2ac5a6(%rip), %rsi    # 0x35533b
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x10f451
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
leaq 0x1(%r14), %rdx
leaq 0x2fe72e(%rip), %rdi    # 0x3a74e3
leaq 0x2ac5bd(%rip), %rsi    # 0x355379
xorl %ecx, %ecx
callq 0x10f451
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
leaq 0x2(%r14), %rdx
leaq 0x2bfdbe(%rip), %rdi    # 0x368b97
leaq 0x2ac5d1(%rip), %rsi    # 0x3553b1
xorl %ecx, %ecx
callq 0x10f451
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
leaq 0x3(%r14), %rdx
leaq 0x2cbad6(%rip), %rdi    # 0x3748d3
leaq 0x2ac5e9(%rip), %rsi    # 0x3553ed
xorl %ecx, %ecx
callq 0x10f451
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
leaq 0x5(%r14), %rdx
leaq 0x326888(%rip), %rdi    # 0x3cf6a9
leaq 0x2ac602(%rip), %rsi    # 0x35542a
xorl %ecx, %ecx
callq 0x10f451
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
leaq 0x6(%r14), %rdx
leaq 0x340ca6(%rip), %rdi    # 0x3e9aeb
leaq 0x2ac617(%rip), %rsi    # 0x355463
xorl %ecx, %ecx
callq 0x10f451
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
leaq 0x8(%r14), %rdx
leaq 0x2ac638(%rip), %rdi    # 0x3554a1
leaq 0x2ac637(%rip), %rsi    # 0x3554a7
movl $0x1, %ecx
movl $0x1, %r8d
callq 0x10f73b
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
movq 0x18(%r14), %rsi
movq %rbx, %rdi
callq 0x17b366
leaq 0x4(%r14), %rdi
callq 0x10f473
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
leaq 0x20(%r14), %rdi
callq 0x10f49c
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
movq 0x28(%r14), %rdi
addq $0x30, %r14
movq %rbx, %rsi
movq %r14, %rdx
callq 0x10ffa3
leaq 0x173(%rip), %rsi       # 0xa904c
movq %rbx, %rdi
xorl %edx, %edx
callq 0x10cd8d
movq %rbx, %rdi
movl $0x1, %esi
callq 0x10d775
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
callq 0x1a8b9