// File: /workspace/github_c_makefile_star2_O2/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
subq $0x18, %rsp
testq %rdi, %rdi
je 0x44d80
movq %rdi, %rbx
leaq 0x2a5aff(%rip), %rdi    # 0x2ea4f9
leaq 0x2b279f(%rip), %rsi    # 0x2f71a0
callq 0x97df5
movq %rax, %r14
leaq 0x3(%rbx), %rdx
leaq 0x33bd97(%rip), %rdi    # 0x3807ab
leaq 0x2a911f(%rip), %rsi    # 0x2edb3a
xorl %ecx, %ecx
callq 0x9a997
movq %r14, %rdi
movq %rax, %rsi
callq 0x97f31
movq 0x8(%rbx), %rdx
leaq 0x2bafc4(%rip), %rdi    # 0x2ff9fc
leaq 0x2b27b2(%rip), %rsi    # 0x2f71f1
xorl %ecx, %ecx
callq 0x9ad12
movq %r14, %rdi
movq %rax, %rsi
callq 0x97f31
movq 0x10(%rbx), %rdx
leaq 0x2d94a2(%rip), %rdi    # 0x31defe
leaq 0x2b27d6(%rip), %rsi    # 0x2f7239
xorl %ecx, %ecx
callq 0x9ad12
movq %r14, %rdi
movq %rax, %rsi
callq 0x97f31
leaq 0x28(%rbx), %rdx
leaq 0x2b280d(%rip), %rdi    # 0x2f728d
leaq 0x2b280e(%rip), %rsi    # 0x2f7295
xorl %ecx, %ecx
callq 0x9aca4
movq %rax, 0x10(%rsp)
movq %r14, %rdi
movq %rax, %rsi
callq 0x97f31
leaq 0x38(%rbx), %rdx
leaq 0x2ca909(%rip), %rdi    # 0x30f3b2
leaq 0x2b2820(%rip), %rsi    # 0x2f72d0
xorl %ecx, %ecx
callq 0x9aca4
movq %rax, 0x8(%rsp)
movq %r14, %rdi
movq %rax, %rsi
callq 0x97f31
movq 0x18(%rbx), %rdx
leaq 0x2b1d14(%rip), %rdi    # 0x2f67e6
leaq 0x2b2831(%rip), %rsi    # 0x2f730a
xorl %ecx, %ecx
callq 0x9ad12
movq %r14, %rdi
movq %rax, %rsi
callq 0x97f31
movq 0x20(%rbx), %rdx
leaq 0x2eddd4(%rip), %rdi    # 0x3328ca
leaq 0x2b2885(%rip), %rsi    # 0x2f7382
xorl %ecx, %ecx
callq 0x9ad12
movq %r14, %rdi
movq %rax, %rsi
callq 0x97f31
leaq 0x2(%rbx), %rdx
leaq 0x2f1e97(%rip), %rdi    # 0x3369b1
leaq 0x2b2902(%rip), %rsi    # 0x2f7423
xorl %ecx, %ecx
callq 0x9a997
movq %r14, %rdi
movq %rax, %rsi
callq 0x97f31
leaq 0x1(%rbx), %rdx
leaq 0x2b2a20(%rip), %rdi    # 0x2f755e
leaq 0x2b2a20(%rip), %rsi    # 0x2f7565
xorl %ecx, %ecx
callq 0x9a997
movq %r14, %rdi
movq %rax, %rsi
callq 0x97f31
leaq 0x50(%rbx), %rdx
leaq 0x2b2a3b(%rip), %rdi    # 0x2f759d
leaq 0x2b2a42(%rip), %rsi    # 0x2f75ab
pushq $-0x1
popq %rbp
pushq $0x1
popq %r15
movq %rbp, %rcx
movq %r15, %r8
callq 0x9ac58
movq %r14, %rdi
movq %rax, %rsi
callq 0x97f31
leaq 0x58(%rbx), %rdx
leaq 0x2b2a46(%rip), %rdi    # 0x2f75d7
leaq 0x2b2a4a(%rip), %rsi    # 0x2f75e2
movq %rbp, %rcx
callq 0x9a9e6
movq %r14, %rdi
movq %rax, %rsi
callq 0x97f31
leaq 0x68(%rbx), %rdx
leaq 0x2b2a62(%rip), %rdi    # 0x2f7618
leaq 0x2b2a68(%rip), %rsi    # 0x2f7625
movsd 0x2a314b(%rip), %xmm0   # 0x2e7d10
callq 0x9aad7
movq %r14, %rdi
movq %rax, %rsi
callq 0x97f31
leaq 0x70(%rbx), %rdx
leaq 0x2b2a6f(%rip), %rdi    # 0x2f764f
leaq 0x2b2a75(%rip), %rsi    # 0x2f765c
movsd 0x2a3121(%rip), %xmm0   # 0x2e7d10
callq 0x9aad7
movq %r14, %rdi
movq %rax, %rsi
callq 0x97f31
leaq 0x78(%rbx), %rdx
leaq 0x2b2a7c(%rip), %rdi    # 0x2f7686
leaq 0x2b2a83(%rip), %rsi    # 0x2f7694
movsd 0x2a30f7(%rip), %xmm0   # 0x2e7d10
callq 0x9ab56
movq %rax, %r13
movq %r14, %rdi
movq %rax, %rsi
callq 0x97f31
leaq 0x80(%rbx), %rdx
leaq 0x2b2a8a(%rip), %rdi    # 0x2f76c4
leaq 0x2b2a96(%rip), %rsi    # 0x2f76d7
movsd 0x2a15df(%rip), %xmm0   # 0x2e6228
movaps %xmm0, %xmm1
callq 0x9ab05
movq %rax, %r12
movq %rax, %rdi
callq 0x9b10a
movq %r14, %rdi
movq %r12, %rsi
callq 0x97f31
leaq 0x60(%rbx), %rdx
leaq 0x2b2afb(%rip), %rdi    # 0x2f776d
leaq 0x2b2aff(%rip), %rsi    # 0x2f7778
movq %rbp, %rcx
movq %r15, %r8
callq 0x9ac58
movq %rax, %r15
movq %rax, %rdi
callq 0x9b10a
movq %r14, %rdi
movq %r15, %rsi
callq 0x97f31
movq 0x98(%rbx), %rdx
leaq 0x2b2b09(%rip), %rdi    # 0x2f77b1
leaq 0x2b2b0d(%rip), %rsi    # 0x2f77bc
callq 0x9ad7e
movq %r14, %rdi
movq %rax, %rsi
callq 0x97f31
movq 0xa0(%rbx), %rdx
movq 0x3f3c53(%rip), %rcx    # 0x438920
leaq 0x3f3c4c(%rip), %r8     # 0x438920
leaq 0x2b2b34(%rip), %rdi    # 0x2f780f
leaq 0x2b2b38(%rip), %rsi    # 0x2f781a
callq 0x9ad83
movq %r14, %rdi
movq %rax, %rsi
callq 0x97f31
movq 0xa8(%rbx), %rdx
leaq 0x2b2b5e(%rip), %rdi    # 0x2f785e
leaq 0x2b2b64(%rip), %rsi    # 0x2f786b
callq 0x9ad51
movq %r14, %rdi
movq %rax, %rsi
callq 0x97f31
movq %rbx, %rdi
callq 0x9a9b6
movq %r14, %rdi
movq %rax, %rsi
callq 0x97f31
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x9b38d
movq %r12, %rdi
movq %r13, %rsi
callq 0x9b14d
movq 0x88(%rbx), %rdi
addq $0x90, %rbx
movq %r14, %rsi
movq %rbx, %rdx
callq 0x9b6d7
leaq 0xa2788(%rip), %rsi     # 0xe74ec
movq %r14, %rdi
xorl %edx, %edx
callq 0x98045
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x3f31e1(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2a0282(%rip), %rsi    # 0x2e5013
leaq 0x3038bb(%rip), %rdx    # 0x348653
leaq 0x2b23e1(%rip), %rcx    # 0x2f7180
leaq 0x2b23c4(%rip), %r8     # 0x2f716a
pushq $0x68
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390