// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/tools/gt_matchtool.c
// Function: gt_matchtool_option_parser_new
static GtOptionParser* gt_matchtool_option_parser_new(void *tool_arguments)
{
  GtMatchtoolArguments *arguments = tool_arguments;
  GtOptionParser *op;
  GtOption *option, *optionfile, *optiondb, *optionquery, *optionminlen,
           *optionmaxedist;
  gt_assert(arguments);

  static const char *type[] = {
    "OPENMATCH",
    "BLASTOUT",
    "BLASTALLP",
    "BLASTALLN",
    "BLASTP",
    "BLASTN",
    "LAST",
    "SW",
    NULL
  };

  /* init */
  op = gt_option_parser_new("[option ...]",
                            "Parse match formats and/or invoke matching "
                            "tools.");

  /* -type */
  option = gt_option_new_choice("type", "choose match file format:\n"
                                        "OPENMATCH: 'open match' format, e.g. "
                                        "vmatch\n"
                                        "BLASTOUT : tabular BLAST output "
                                        "(-m 8)\n"
                                        "BLASTALLP: invoke BLASTALL with "
                                        "blastp\n"
                                        "BLASTALLN: invoke BLASTALL with "
                                        "blastn\n"
                                        "BLASTP   : invoke blastp\n"
                                        "BLASTN   : invoke blastn\n"
                                        "LAST     : invoke LAST\n"
                                        "SW       : use Smith-Waterman",
                                arguments->type, type[0],
                                type);
  gt_option_parser_add_option(op, option);

  /* -matchfile */
  optionfile = gt_option_new_filename("matchfile", "set input file name",
                                      arguments->matchfile);
  gt_option_parser_add_option(op, optionfile);

  /* -db */
  optiondb = gt_option_new_filename("db", "set database file name",
                                    arguments->db);
  gt_option_parser_add_option(op, optiondb);

  /* -swminlen */
  optionminlen = gt_option_new_uword("swminlen",
                                     "set minimum required alignment length "
                                     "(for Smith-Waterman alignment)",
                                     &arguments->minlen,
                                     10);
  gt_option_parser_add_option(op, optionminlen);

  /* -swmaxedist */
  optionmaxedist = gt_option_new_uword("swmaxedist",
                                       "set maximum allowed edit distance "
                                       "(for Smith-Waterman alignment)",
                                       &arguments->maxedist,
                                       0);
  gt_option_parser_add_option(op, optionmaxedist);

  /* -query */
  optionquery = gt_option_new_filename("query", "set query file name",
                                       arguments->query);
  gt_option_parser_add_option(op, optionquery);

  gt_option_imply(optiondb, optionquery);
  gt_option_imply(optionquery, optiondb);

  gt_option_is_mandatory_either(optiondb, optionfile);

  gt_option_parser_set_min_max_args(op, 0, 0);

  return op;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0xb1854
movq %rdi, %r14
leaq 0x2af795(%rip), %rdi    # 0x360eb5
leaq 0x2a7ec5(%rip), %rsi    # 0x3595ec
callq 0x10cc4e
movq %rax, %rbx
movq (%r14), %rdx
movq 0x413177(%rip), %rcx    # 0x4c48b0
leaq 0x413170(%rip), %r8     # 0x4c48b0
leaq 0x2ef1ae(%rip), %rdi    # 0x3a08f5
leaq 0x2a7ed0(%rip), %rsi    # 0x35961e
callq 0x10fa04
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
movq 0x8(%r14), %rdx
leaq 0x29db41(%rip), %rdi    # 0x34f2aa
leaq 0x2a7fd0(%rip), %rsi    # 0x359740
callq 0x10f9c6
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
movq 0x18(%r14), %rdx
leaq 0x2ccfeb(%rip), %rdi    # 0x37e779
leaq 0x2a7fbf(%rip), %rsi    # 0x359754
callq 0x10f9c6
movq %rax, %r12
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
leaq 0x20(%r14), %rdx
leaq 0x2a7fb8(%rip), %rdi    # 0x35976b
leaq 0x2a7fba(%rip), %rsi    # 0x359774
movl $0xa, %ecx
callq 0x10f4c7
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
leaq 0x28(%r14), %rdx
leaq 0x2a7fdf(%rip), %rdi    # 0x3597b9
leaq 0x2a7fe3(%rip), %rsi    # 0x3597c4
xorl %ecx, %ecx
callq 0x10f4c7
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
movq 0x10(%r14), %rdx
leaq 0x2e73fd(%rip), %rdi    # 0x398bfb
leaq 0x2a8000(%rip), %rsi    # 0x359805
callq 0x10f9c6
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
movq %r12, %rdi
movq %r14, %rsi
callq 0x10fbff
movq %r14, %rdi
movq %r12, %rsi
callq 0x10fbff
movq %r12, %rdi
movq %r15, %rsi
callq 0x10faa6
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x10d784
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
callq 0x1c5fe