// File: /workspace/github_c_makefile_star2_O3/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 0xa6b79
movq %rdi, %r14
leaq 0x29f6c6(%rip), %rdi    # 0x34608f
leaq 0x2a58e4(%rip), %rsi    # 0x34c2b4
callq 0x107bfe
movq %rax, %rbx
movq 0x10(%r14), %rdx
leaq 0x2f0a4c(%rip), %rdi    # 0x39742f
leaq 0x2a5902(%rip), %rsi    # 0x34c2ec
xorl %ecx, %ecx
callq 0x10a770
movq %rax, %r15
movq %rax, %rdi
callq 0x10a87b
movq %rbx, %rdi
movq %r15, %rsi
callq 0x107cc0
leaq 0x331ecb(%rip), %rdi    # 0x3d88d9
leaq 0x2a58f7(%rip), %rsi    # 0x34c30c
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x10a235
movq %rbx, %rdi
movq %rax, %rsi
callq 0x107cc0
leaq 0x1(%r14), %rdx
leaq 0x2f75d3(%rip), %rdi    # 0x39e008
leaq 0x2a590e(%rip), %rsi    # 0x34c34a
xorl %ecx, %ecx
callq 0x10a235
movq %rbx, %rdi
movq %rax, %rsi
callq 0x107cc0
leaq 0x2(%r14), %rdx
leaq 0x2b903e(%rip), %rdi    # 0x35fa97
leaq 0x2a5922(%rip), %rsi    # 0x34c382
xorl %ecx, %ecx
callq 0x10a235
movq %rbx, %rdi
movq %rax, %rsi
callq 0x107cc0
leaq 0x3(%r14), %rdx
leaq 0x2c4c06(%rip), %rdi    # 0x36b683
leaq 0x2a593a(%rip), %rsi    # 0x34c3be
xorl %ecx, %ecx
callq 0x10a235
movq %rbx, %rdi
movq %rax, %rsi
callq 0x107cc0
leaq 0x5(%r14), %rdx
leaq 0x31f4e0(%rip), %rdi    # 0x3c5f81
leaq 0x2a5953(%rip), %rsi    # 0x34c3fb
xorl %ecx, %ecx
callq 0x10a235
movq %rbx, %rdi
movq %rax, %rsi
callq 0x107cc0
leaq 0x6(%r14), %rdx
leaq 0x339936(%rip), %rdi    # 0x3e03fb
leaq 0x2a5968(%rip), %rsi    # 0x34c434
xorl %ecx, %ecx
callq 0x10a235
movq %rbx, %rdi
movq %rax, %rsi
callq 0x107cc0
leaq 0x8(%r14), %rdx
leaq 0x2a5989(%rip), %rdi    # 0x34c472
leaq 0x2a5988(%rip), %rsi    # 0x34c478
movl $0x1, %ecx
movl $0x1, %r8d
callq 0x10a51f
movq %rbx, %rdi
movq %rax, %rsi
callq 0x107cc0
movq 0x18(%r14), %rsi
movq %rbx, %rdi
callq 0x172f86
leaq 0x4(%r14), %rdi
callq 0x10a257
movq %rbx, %rdi
movq %rax, %rsi
callq 0x107cc0
leaq 0x20(%r14), %rdi
callq 0x10a280
movq %rbx, %rdi
movq %rax, %rsi
callq 0x107cc0
movq 0x28(%r14), %rdi
addq $0x30, %r14
movq %rbx, %rsi
movq %r14, %rdx
callq 0x10ad87
leaq 0x163(%rip), %rsi       # 0xa6cbc
movq %rbx, %rdi
xorl %edx, %edx
callq 0x107d3d
movq %rbx, %rdi
movl $0x1, %esi
callq 0x10873c
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
callq 0x1a7f6