// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/tools/gt_select.c
// Function: gt_select_option_parser_new
static GtOptionParser* gt_select_option_parser_new(void *tool_arguments)
{
  SelectArguments *arguments = tool_arguments;
  GtOptionParser *op;
  GtOption *option, *contain_option, *overlap_option, *minaveragessp_option,
           *singleintron_option, *optiondroppedfile;
  gt_assert(arguments);

  static const char *filter_logic[] = {
    "AND",
    "OR",
    NULL
  };

  /* init */
  op = gt_option_parser_new("[option ...] [GFF3_file ...]",
                            "Select certain features (specified by the used "
                            "options) from given GFF3 file(s).");

  /* -retainids */
  option = gt_option_new_bool("retainids",
                              "when available, use the original IDs provided "
                              "in the source file\n"
                              "(memory consumption is proportional to the "
                              "input file size(s))", &arguments->retainids,
                              false);
  gt_option_parser_add_option(op, option);

  /* -seqid */
  option = gt_option_new_string("seqid", "select feature with the given "
                                "sequence ID (all comments are selected). ",
                                arguments->seqid, NULL);
  gt_option_parser_add_option(op, option);

  /* -source */
  option = gt_option_new_string("source", "select feature with the given "
                                "source (the source is column 2 in regular "
                                "GFF3 lines)" , arguments->source, NULL);
  gt_option_parser_add_option(op, option);

  /* -contain */
  contain_option = gt_option_new_range("contain", "select all features which "
                                       "are contained in the given range",
                                       &arguments->contain_range, NULL);
  gt_option_parser_add_option(op, contain_option);

  /* -overlap */
  overlap_option = gt_option_new_range("overlap", "select all features which "
                                       "do overlap with the given range",
                                       &arguments->overlap_range, NULL);
  gt_option_parser_add_option(op, overlap_option);

  /* -strand */
  option = gt_option_new_string(GT_STRAND_OPT, "select all top-level features"
                                "(i.e., features without parents) whose strand "
                                "equals the given one (must be one of '"
                                GT_STRAND_CHARS"')", arguments->gt_strand_char,
                                NULL);
  gt_option_parser_add_option(op, option);

  /* -targetstrand */
  option = gt_option_new_string(TARGETGT_STRAND_OPT, "select all top-level "
                                "features (i.e., features without parents) "
                                "which have exactly one target attribute whose "
                                "strand equals the given one (must be one of '"
                                GT_STRAND_CHARS"')",
                                arguments->targetgt_strand_char, NULL);
  gt_option_parser_add_option(op, option);

  /* -targetbest */
  option = gt_option_new_bool("targetbest", "if multiple top-level features "
                             "(i.e., features without parents) with exactly "
                             "one target attribute have the same target_id, "
                             "keep only the feature with the best score. If "
                             "-"TARGETGT_STRAND_OPT" is used at the same time, "
                             "this option is applied after "
                             "-"TARGETGT_STRAND_OPT".\n"
                             "Memory consumption is proportional to the input "
                             "file size(s).", &arguments->targetbest, false);
  gt_option_parser_add_option(op, option);

  /* -hascds */
  option = gt_option_new_bool("hascds", "select all top-level features which "
                              "do have a CDS child", &arguments->has_CDS,
                              false);
  gt_option_parser_add_option(op, option);

  /* -maxgenelength */
  option = gt_option_new_uword_min("maxgenelength", "select genes up to the "
                                   "given maximum length",
                                   &arguments->max_gene_length, GT_UNDEF_UWORD,
                                   1);
  gt_option_parser_add_option(op, option);

  /* -maxgenenum */
  option = gt_option_new_uword("maxgenenum", "select the first genes up to the "
                               "given maximum number", &arguments->max_gene_num,
                               GT_UNDEF_UWORD);
  gt_option_parser_add_option(op, option);

  /* -mingenescore */
  option = gt_option_new_double("mingenescore", "select genes with the given "
                                "minimum score", &arguments->min_gene_score,
                                GT_UNDEF_DOUBLE);
  gt_option_parser_add_option(op, option);

  /* -maxgenescore */
  option = gt_option_new_double("maxgenescore", "select genes with the given "
                                "maximum score", &arguments->max_gene_score,
                                GT_UNDEF_DOUBLE);
  gt_option_parser_add_option(op, option);

  /* -minaveragessp */
  minaveragessp_option =
    gt_option_new_probability("minaveragessp",
                              "set the minimum average splice site probability",
                              &arguments->min_average_splice_site_prob,
                              GT_UNDEF_DOUBLE);
  gt_option_parser_add_option(op, minaveragessp_option);

  /* -singleintronfactor */
  singleintron_option =
    gt_option_new_double_min("singleintronfactor",
                             "factor to multiplicate the average splice site "
                             "probability with for single introns before "
                             "comparing it to the minimum average splice site "
                             "probability", &arguments->single_intron_factor,
                             1.0, 1.0);
  gt_option_is_development_option(singleintron_option);
  gt_option_parser_add_option(op, singleintron_option);

  /* -featurenum */
  option = gt_option_new_uword_min("featurenum",
                                   "select feature tree occurring "
                                   "at given position in input",
                                   &arguments->feature_num, GT_UNDEF_UWORD, 1);
  gt_option_is_development_option(option);
  gt_option_parser_add_option(op, option);

  /* -filter_files */
  option = gt_option_new_filename_array("rule_files",
                                        "specify Lua filter rule files "
                                        "to be used for selection "
                                        "(terminate list with '--') ",
                                        arguments->filter_files);
  gt_option_parser_add_option(op, option);

  /* -filter_logic */
  option = gt_option_new_choice("rule_logic", "select how multiple Lua "
                                "files should be combined\nchoose from AND|OR",
                                arguments->filter_logic, filter_logic[0],
                                filter_logic);
  gt_option_parser_add_option(op, option);

  /* -nh_file */
  optiondroppedfile = gt_option_new_filename("dropped_file",
                                             "save non-selected features to "
                                             "file",
                                             arguments->dropped_file);
  gt_option_parser_add_option(op, optiondroppedfile);

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

  /* option exclusions */
  gt_option_exclude(contain_option, overlap_option);

  /* option implications */
  gt_option_imply(singleintron_option, minaveragessp_option);

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

  gt_option_parser_set_comment_func(op, gt_gtdata_show_help, NULL);

  return op;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0xc1026
movq %rdi, %rbx
leaq 0x28985e(%rip), %rdi    # 0x34a4f9
leaq 0x2964ee(%rip), %rsi    # 0x357190
callq 0x107bfe
movq %rax, %r14
leaq 0x3(%rbx), %rdx
leaq 0x31f746(%rip), %rdi    # 0x3e03fb
leaq 0x28ce7e(%rip), %rsi    # 0x34db3a
xorl %ecx, %ecx
callq 0x10a235
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
movq 0x8(%rbx), %rdx
leaq 0x29edbe(%rip), %rdi    # 0x35fa97
leaq 0x296501(%rip), %rsi    # 0x3571e1
xorl %ecx, %ecx
callq 0x10a770
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
movq 0x10(%rbx), %rdx
leaq 0x2bcdf9(%rip), %rdi    # 0x37daf6
leaq 0x296525(%rip), %rsi    # 0x357229
xorl %ecx, %ecx
callq 0x10a770
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
leaq 0x28(%rbx), %rdx
leaq 0x29655c(%rip), %rdi    # 0x35727d
leaq 0x29655d(%rip), %rsi    # 0x357285
xorl %ecx, %ecx
callq 0x10a6f7
movq %rax, (%rsp)
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
leaq 0x38(%rbx), %rdx
leaq 0x2ae351(%rip), %rdi    # 0x36f09a
leaq 0x296570(%rip), %rsi    # 0x3572c0
xorl %ecx, %ecx
callq 0x10a6f7
movq %rax, %r12
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
movq 0x18(%rbx), %rdx
leaq 0x295a66(%rip), %rdi    # 0x3567d6
leaq 0x296583(%rip), %rsi    # 0x3572fa
xorl %ecx, %ecx
callq 0x10a770
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
movq 0x20(%rbx), %rdx
leaq 0x2d17f6(%rip), %rdi    # 0x39258a
leaq 0x2965d7(%rip), %rsi    # 0x357372
xorl %ecx, %ecx
callq 0x10a770
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
leaq 0x2(%rbx), %rdx
leaq 0x2d58a0(%rip), %rdi    # 0x396658
leaq 0x296654(%rip), %rsi    # 0x357413
xorl %ecx, %ecx
callq 0x10a235
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
leaq 0x1(%rbx), %rdx
leaq 0x296772(%rip), %rdi    # 0x35754e
leaq 0x296772(%rip), %rsi    # 0x357555
xorl %ecx, %ecx
callq 0x10a235
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
leaq 0x50(%rbx), %rdx
leaq 0x29678d(%rip), %rdi    # 0x35758d
leaq 0x296794(%rip), %rsi    # 0x35759b
movl $0x1, %r8d
movq $-0x1, %rcx
callq 0x10a5d1
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
leaq 0x58(%rbx), %rdx
leaq 0x296798(%rip), %rdi    # 0x3575c7
leaq 0x29679c(%rip), %rsi    # 0x3575d2
movq $-0x1, %rcx
callq 0x10a2ab
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
leaq 0x68(%rbx), %rdx
leaq 0x2967b0(%rip), %rdi    # 0x357608
leaq 0x2967b6(%rip), %rsi    # 0x357615
movsd 0x286ea9(%rip), %xmm0   # 0x347d10
callq 0x10a346
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
leaq 0x70(%rbx), %rdx
leaq 0x2967bd(%rip), %rdi    # 0x35763f
leaq 0x2967c3(%rip), %rsi    # 0x35764c
movsd 0x286e7f(%rip), %xmm0   # 0x347d10
callq 0x10a346
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
leaq 0x78(%rbx), %rdx
leaq 0x2967ca(%rip), %rdi    # 0x357676
leaq 0x2967d1(%rip), %rsi    # 0x357684
movsd 0x286e55(%rip), %xmm0   # 0x347d10
callq 0x10a40b
movq %rax, %r13
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
leaq 0x80(%rbx), %rdx
leaq 0x2967d8(%rip), %rdi    # 0x3576b4
leaq 0x2967e4(%rip), %rsi    # 0x3576c7
movsd 0x28533d(%rip), %xmm0   # 0x346228
movaps %xmm0, %xmm1
callq 0x10a374
movq %rax, %rbp
movq %rax, %rdi
callq 0x10a9d4
movq %r14, %rdi
movq %rbp, %rsi
callq 0x107cc0
leaq 0x60(%rbx), %rdx
leaq 0x296849(%rip), %rdi    # 0x35775d
leaq 0x29684d(%rip), %rsi    # 0x357768
movl $0x1, %r8d
movq $-0x1, %rcx
callq 0x10a5d1
movq %rax, %r15
movq %rax, %rdi
callq 0x10a9d4
movq %r14, %rdi
movq %r15, %rsi
callq 0x107cc0
movq 0x98(%rbx), %rdx
leaq 0x296850(%rip), %rdi    # 0x3577a1
leaq 0x296854(%rip), %rsi    # 0x3577ac
callq 0x10a7df
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
movq 0xa0(%rbx), %rdx
movq 0x3f89fa(%rip), %rcx    # 0x4b9970
leaq 0x3f89f3(%rip), %r8     # 0x4b9970
leaq 0x29687b(%rip), %rdi    # 0x3577ff
leaq 0x29687f(%rip), %rsi    # 0x35780a
callq 0x10a7ed
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
movq 0xa8(%rbx), %rdx
leaq 0x2968a5(%rip), %rdi    # 0x35784e
leaq 0x2968ab(%rip), %rsi    # 0x35785b
callq 0x10a7af
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
movq %rbx, %rdi
callq 0x10a257
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
movq (%rsp), %rdi
movq %r12, %rsi
callq 0x10ab96
movq %rbp, %rdi
movq %r13, %rsi
callq 0x10a9e4
movq 0x88(%rbx), %rdi
addq $0x90, %rbx
movq %r14, %rsi
movq %rbx, %rdx
callq 0x10ad87
leaq 0x8b8ba(%rip), %rsi     # 0x14c8c4
movq %r14, %rdi
xorl %edx, %edx
callq 0x107d3d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1e8f7