// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/tools/gt_tir.c
// Function: gt_tir_option_parser_new
static GtOptionParser* gt_tir_option_parser_new(void *tool_arguments)
{
  GtTirArguments *arguments = tool_arguments;
  GtOptionParser *op;
  GtOption *optionindex,      /* index */
           *optionseed,       /* minseedlength */
           *optionminlentir,  /* minimal length of TIR */
           *optionmaxlentir,  /* maximal length of TIR */
           *optionmindisttir, /* minimal distance of TIRs */
           *optionmaxdisttir, /* maximal distance of TIRs */
           *optionmat,        /* arbitrary scores */
           *optionmis,
           *optionins,
           *optiondel,
           *optionxdrop,      /* xdropbelowscore for extension alignment */
           *optionsimilar,    /* similarity threshold */
           *optionoverlaps,   /* for overlaps */
           *optionmintsd,     /* minimal length for Target Site Duplication */
           *optionmaxtsd,     /* maximal length for Target Site Duplication */
           *optionvicinity,   /* vicinity around TIRs to be searched for TSDs */
           *optionhmms,
           *optionrefseqfile,
           *optionevalcutoff,
           *optionpdomcutoff,
           *optionmaxgap,
           *optionseqids,
           *optionmd5;
  static const char *overlaps[] = {
    "best", /* default */
    "longest",
    "no",
    "all",
    NULL
  };
  static const char *cutoffs[] = {
    "NONE",
    "GA",
    "TC",
    NULL
  };
  gt_assert(arguments);

  /* init */
  op = gt_option_parser_new("[option ...] -index INDEXNAME",
                            "Identify Terminal Inverted Repeat (TIR) elements,"
                            "such as DNA transposons.");

  /* -index */
  optionindex = gt_option_new_string("index",
                                     "specify the name of the enhanced suffix "
                                     "array index (mandatory)",
                                     arguments->str_indexname, NULL);
  gt_option_is_mandatory(optionindex);
  gt_option_parser_add_option(op, optionindex);

   /* -seed */
  optionseed = gt_option_new_uword_min("seed",
                                       "specify minimum seed length for "
                                       "exact repeats",
                                       &arguments->min_seed_length, 20UL, 5UL);
  gt_option_parser_add_option(op, optionseed);

  /* -minlentir */
  optionminlentir = gt_option_new_uword_min_max("mintirlen",
                                                "specify minimum length for "
                                                "each TIR",
                                                &arguments->min_TIR_length,
                                                100UL, 1UL, GT_UNDEF_UWORD);
  gt_option_parser_add_option(op, optionminlentir);

  /* -maxlentir */
  optionmaxlentir = gt_option_new_uword_min_max("maxtirlen",
                                                "specify maximum length for "
                                                "each TIR",
                                                &arguments->max_TIR_length,
                                                1000UL, 1UL, GT_UNDEF_UWORD);
  gt_option_parser_add_option(op, optionmaxlentir);

  /* -mindisttir */
  optionmindisttir = gt_option_new_uword_min_max("mintirdist",
                                                 "specify minimum distance of "
                                                 "TIRs",
                                                 &arguments->min_TIR_distance,
                                                 500UL, 1UL, GT_UNDEF_UWORD);
  gt_option_parser_add_option(op, optionmindisttir);

  /* -maxdisttir */
  optionmaxdisttir = gt_option_new_uword_min_max("maxtirdist",
                                                 "specify maximum distance of "
                                                 "TIRs",
                                                 &arguments->max_TIR_distance,
                                                 10000UL, 1UL, GT_UNDEF_UWORD);
  gt_option_parser_add_option(op, optionmaxdisttir);

  optionmat = gt_option_new_int_min("mat",
                                    "specify matchscore for "
                                    "extension-alignment",
                                    &arguments->arbit_scores.mat, 2, 1);
  gt_option_parser_add_option(op, optionmat);

  /* -mis */
  optionmis = gt_option_new_int_max("mis",
                                    "specify mismatchscore for "
                                    "extension-alignment",
                                    &arguments->arbit_scores.mis, -2, -1);
  gt_option_parser_add_option(op, optionmis);

  /* -ins */
  optionins = gt_option_new_int_max("ins",
                                    "specify insertionscore for "
                                    "extension-alignment",
                                    &arguments->arbit_scores.ins, -3, -1);
  gt_option_parser_add_option(op, optionins);

  /* -del */
  optiondel = gt_option_new_int_max("del",
                                    "specify deletionscore for "
                                    "extension-alignment",
                                    &arguments->arbit_scores.del, -3, -1);
  gt_option_parser_add_option(op, optiondel);

  /* -xdrop */
  optionxdrop = gt_option_new_int_min("xdrop",
                                      "specify xdropbelowscore for "
                                      "extension-alignment",
                                      &arguments->xdrop_belowscore, (int) 5,
                                      (int) 0);
  gt_option_parser_add_option(op, optionxdrop);

  /* -similar */
  optionsimilar = gt_option_new_double_min_max("similar",
                                               "specify TIR similarity "
                                               "threshold in the"
                                               "range [1..100%]",
                                               &arguments->similarity_threshold,
                                               (double) 85.0, (double) 0.0,
                                               100.0);
  gt_option_parser_add_option(op, optionsimilar);

  /* -overlaps */
  optionoverlaps = gt_option_new_choice("overlaps",
                                        "specify no|best|longest|all",
                                        arguments->str_overlaps,
                                        overlaps[0], overlaps);
  gt_option_parser_add_option(op, optionoverlaps);
  arguments->optionoverlaps = gt_option_ref(optionoverlaps);

  /* -mintsd */
  optionmintsd = gt_option_new_uword_min_max("mintsd",
                                             "specify minimum length for each "
                                             "TSD",
                                             &arguments->min_TSD_length,
                                             2U, 0, GT_UNDEF_UINT);
  gt_option_parser_add_option(op, optionmintsd);

  /* -maxtsd */
  optionmaxtsd = gt_option_new_uword_min_max("maxtsd",
                                             "specify maximum length for each "
                                             "TSD",
                                             &arguments->max_TSD_length,
                                             11U, 0, GT_UNDEF_UINT);
  gt_option_parser_add_option(op, optionmaxtsd);
  gt_option_imply(optionmaxtsd, optionmintsd);

  /* -vicinity */
  optionvicinity = gt_option_new_uword_min_max("vic",
                                               "specify the number of "
                                               "nucleotides (to the left and "
                                               "to the right) that will be "
                                               "searched for TSDs around 5' "
                                               "and 3' boundary of predicted "
                                               "TIRs",
                                               &arguments->vicinity,
                                               60U, 1U, 500U);
  gt_option_parser_add_option(op, optionvicinity);

  optionhmms = gt_option_new_filename_array("hmms",
                                    "profile HMM models for domain detection "
                                    "(separate by spaces, finish with --) in "
                                    "HMMER3 format\n"
                                    "Omit this option to disable pHMM search.",
                                    arguments->hmm_files);
  gt_option_parser_add_option(op, optionhmms);

  optionevalcutoff = gt_option_new_probability("pdomevalcutoff",
                                    "global E-value cutoff for pHMM search\n"
                                    "default 1E-6",
                                    &arguments->evalue_cutoff,
                                    0.000001);
  gt_option_parser_add_option(op, optionevalcutoff);
  gt_option_hide_default(optionevalcutoff);
  gt_option_imply(optionevalcutoff, optionhmms);

  optionpdomcutoff = gt_option_new_choice("pdomcutoff",
                                       "model-specific score cutoff\n"
                                       "choose from TC (trusted cutoff) | "
                                       "GA (gathering cutoff) | "
                                       "NONE (no cutoffs)",
                             arguments->cutoffs, cutoffs[1], cutoffs);
  gt_option_parser_add_option(op, optionpdomcutoff);
  gt_option_imply(optionpdomcutoff, optionhmms);

  /* XXX: make -pdomcutoff and -pdomevalcutoff mutually exclusive */

  optionmaxgap = gt_option_new_uint("maxgaplen",
                         "maximal allowed gap size between fragments (in amino "
                         "acids) when chaining pHMM hits for a protein domain",
                         &arguments->chain_max_gap_length,
                         50U);
  gt_option_parser_add_option(op, optionmaxgap);
  gt_option_is_extended_option(optionmaxgap);
  gt_option_imply(optionmaxgap, optionhmms);

  optionrefseqfile = gt_option_new_string("refseqs",
                                     "specify the name of the gene sequences "
                                     "to scan for inside candidates",
                                     arguments->refseq_file, NULL);
  gt_option_parser_add_option(op, optionrefseqfile);

  optionseqids = gt_option_new_bool("seqids",
                                    "use sequence descriptions instead of "
                                    "sequence numbers in GFF3 output",
                                    &arguments->seqids,
                                    true);
  gt_option_parser_add_option(op, optionseqids);

  optionmd5 = gt_option_new_bool("md5",
                                 "add MD5 hashes to seqids in GFF3 output",
                                 &arguments->md5,
                                 false);
  gt_option_parser_add_option(op, optionmd5);

  return op;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0xcfa3b
movq %rdi, %rbx
leaq 0x28e02c(%rip), %rdi    # 0x35d5c4
leaq 0x28e043(%rip), %rsi    # 0x35d5e2
callq 0x107bfe
movq %rax, %r14
movq (%rbx), %rdx
leaq 0x2bd73d(%rip), %rdi    # 0x38ccee
leaq 0x28e074(%rip), %rsi    # 0x35d62c
xorl %ecx, %ecx
callq 0x10a770
movq %rax, %r15
movq %rax, %rdi
callq 0x10a87b
movq %r14, %rdi
movq %r15, %rsi
callq 0x107cc0
leaq 0x20(%rbx), %rdx
leaq 0x286060(%rip), %rdi    # 0x355640
leaq 0x28e085(%rip), %rsi    # 0x35d66c
movl $0x14, %ecx
movl $0x5, %r8d
callq 0x10a5d1
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
leaq 0x28(%rbx), %rdx
leaq 0x28e08d(%rip), %rdi    # 0x35d69a
leaq 0x28e090(%rip), %rsi    # 0x35d6a4
movl $0x64, %ecx
movl $0x1, %r8d
movq $-0x1, %r9
callq 0x10a5ff
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
leaq 0x30(%rbx), %rdx
leaq 0x28e087(%rip), %rdi    # 0x35d6c8
leaq 0x28e08a(%rip), %rsi    # 0x35d6d2
movl $0x3e8, %ecx            # imm = 0x3E8
movl $0x1, %r8d
movq $-0x1, %r9
callq 0x10a5ff
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
leaq 0x38(%rbx), %rdx
leaq 0x28e081(%rip), %rdi    # 0x35d6f6
leaq 0x28e085(%rip), %rsi    # 0x35d701
movl $0x1f4, %ecx            # imm = 0x1F4
movl $0x1, %r8d
movq $-0x1, %r9
callq 0x10a5ff
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
leaq 0x40(%rbx), %rdx
leaq 0x28e079(%rip), %rdi    # 0x35d722
leaq 0x28e07d(%rip), %rsi    # 0x35d72d
movl $0x2710, %ecx           # imm = 0x2710
movl $0x1, %r8d
movq $-0x1, %r9
callq 0x10a5ff
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
leaq 0x60(%rbx), %rdx
leaq 0x28c4da(%rip), %rdi    # 0x35bbb7
leaq 0x28e06a(%rip), %rsi    # 0x35d74e
movl $0x2, %ecx
movl $0x1, %r8d
callq 0x10a46f
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
leaq 0x64(%rbx), %rdx
leaq 0x2ef6fa(%rip), %rdi    # 0x3bee04
leaq 0x28e068(%rip), %rsi    # 0x35d779
movl $0xfffffffe, %ecx       # imm = 0xFFFFFFFE
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
callq 0x10a498
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
leaq 0x68(%rbx), %rdx
leaq 0x2cf46f(%rip), %rdi    # 0x39eba6
leaq 0x28e069(%rip), %rsi    # 0x35d7a7
movl $0xfffffffd, %ecx       # imm = 0xFFFFFFFD
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
callq 0x10a498
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
leaq 0x6c(%rbx), %rdx
leaq 0x2ed9af(%rip), %rdi    # 0x3bd113
leaq 0x28e06b(%rip), %rsi    # 0x35d7d6
movl $0xfffffffd, %ecx       # imm = 0xFFFFFFFD
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
callq 0x10a498
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
leaq 0x70(%rbx), %rdx
leaq 0x2aa5a8(%rip), %rdi    # 0x379d39
leaq 0x28e06c(%rip), %rsi    # 0x35d804
movl $0x5, %ecx
xorl %r8d, %r8d
callq 0x10a46f
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
leaq 0x78(%rbx), %rdx
leaq 0x2aea9e(%rip), %rdi    # 0x37e259
leaq 0x28e072(%rip), %rsi    # 0x35d834
movsd 0x28ddae(%rip), %xmm0   # 0x35d578
movsd 0x27a00e(%rip), %xmm2   # 0x3497e0
xorps %xmm1, %xmm1
callq 0x10a3b5
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
movq 0x10(%rbx), %rdx
movq 0x3ea200(%rip), %rcx    # 0x4b99f0
leaq 0x3ea1f9(%rip), %r8     # 0x4b99f0
leaq 0x2c7370(%rip), %rdi    # 0x396b6e
leaq 0x28e066(%rip), %rsi    # 0x35d86b
callq 0x10a7ed
movq %rax, %r15
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
movq %r15, %rdi
callq 0x107bec
movq %rax, 0x98(%rbx)
leaq 0x48(%rbx), %rdx
leaq 0x28e055(%rip), %rdi    # 0x35d887
leaq 0x28e055(%rip), %rsi    # 0x35d88e
movl $0x2, %ecx
movl $0xffffffff, %r9d       # imm = 0xFFFFFFFF
xorl %r8d, %r8d
callq 0x10a5ff
movq %rax, %r15
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
leaq 0x50(%rbx), %rdx
leaq 0x28e04d(%rip), %rdi    # 0x35d8b2
leaq 0x28e04d(%rip), %rsi    # 0x35d8b9
movl $0xb, %ecx
movl $0xffffffff, %r9d       # imm = 0xFFFFFFFF
xorl %r8d, %r8d
callq 0x10a5ff
movq %rax, %r12
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
movq %r12, %rdi
movq %r15, %rsi
callq 0x10a9e4
leaq 0x58(%rbx), %rdx
leaq 0x28e03a(%rip), %rdi    # 0x35d8dd
leaq 0x28e037(%rip), %rsi    # 0x35d8e1
movl $0x3c, %ecx
movl $0x1, %r8d
movl $0x1f4, %r9d            # imm = 0x1F4
callq 0x10a5ff
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
movq 0xa0(%rbx), %rdx
leaq 0x28e094(%rip), %rdi    # 0x35d96d
leaq 0x28e092(%rip), %rsi    # 0x35d972
callq 0x10a7df
movq %rax, %r15
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
leaq 0x80(%rbx), %rdx
leaq 0x28e0f8(%rip), %rdi    # 0x35d9f9
leaq 0x28e100(%rip), %rsi    # 0x35da08
movsd 0x28dc70(%rip), %xmm0   # 0x35d580
callq 0x10a40b
movq %rax, %r12
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
movq %r12, %rdi
callq 0x10ac1f
movq %r12, %rdi
movq %r15, %rsi
callq 0x10a9e4
movq 0x8(%rbx), %rdx
movq 0x3ea0e7(%rip), %rcx    # 0x4b9a28
leaq 0x3ea0d8(%rip), %r8     # 0x4b9a20
leaq 0x28e0ec(%rip), %rdi    # 0x35da3b
leaq 0x28e0f0(%rip), %rsi    # 0x35da46
callq 0x10a7ed
movq %rax, %r12
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
movq %r12, %rdi
movq %r15, %rsi
callq 0x10a9e4
leaq 0x90(%rbx), %rdx
leaq 0x28e12c(%rip), %rdi    # 0x35daae
leaq 0x28e12f(%rip), %rsi    # 0x35dab8
movl $0x32, %ecx
callq 0x10a4fd
movq %rax, %r12
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
movq %r12, %rdi
callq 0x10a9c4
movq %r12, %rdi
movq %r15, %rsi
callq 0x10a9e4
movq 0x18(%rbx), %rdx
leaq 0x28e162(%rip), %rdi    # 0x35db21
leaq 0x28e163(%rip), %rsi    # 0x35db29
xorl %ecx, %ecx
callq 0x10a770
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
leaq 0x8b(%rbx), %rdx
leaq 0x2c3514(%rip), %rdi    # 0x392efa
leaq 0x28e181(%rip), %rsi    # 0x35db6e
movl $0x1, %ecx
callq 0x10a235
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
addq $0x8c, %rbx
leaq 0x29ca44(%rip), %rdi    # 0x36c454
leaq 0x28e19c(%rip), %rsi    # 0x35dbb3
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x10a235
movq %r14, %rdi
movq %rax, %rsi
callq 0x107cc0
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
callq 0x217a3