// File: /workspace/github_c_makefile_star2_O3/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 0xaf4d0
movq %rdi, %r14
leaq 0x2a8ac6(%rip), %rdi    # 0x357e62
leaq 0x2a1219(%rip), %rsi    # 0x3505bc
callq 0x107bfe
movq %rax, %rbx
movq (%r14), %rdx
movq 0x40a4fb(%rip), %rcx    # 0x4b98b0
leaq 0x40a4f4(%rip), %r8     # 0x4b98b0
leaq 0x2e806c(%rip), %rdi    # 0x39742f
leaq 0x2a1224(%rip), %rsi    # 0x3505ee
callq 0x10a7ed
movq %rbx, %rdi
movq %rax, %rsi
callq 0x107cc0
movq 0x8(%r14), %rdx
leaq 0x296ec5(%rip), %rdi    # 0x3462aa
leaq 0x2a1324(%rip), %rsi    # 0x350710
callq 0x10a7af
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
callq 0x107cc0
movq 0x18(%r14), %rdx
leaq 0x2c60ef(%rip), %rdi    # 0x3754f9
leaq 0x2a1313(%rip), %rsi    # 0x350724
callq 0x10a7af
movq %rax, %r12
movq %rbx, %rdi
movq %rax, %rsi
callq 0x107cc0
leaq 0x20(%r14), %rdx
leaq 0x2a130c(%rip), %rdi    # 0x35073b
leaq 0x2a130e(%rip), %rsi    # 0x350744
movl $0xa, %ecx
callq 0x10a2ab
movq %rbx, %rdi
movq %rax, %rsi
callq 0x107cc0
leaq 0x28(%r14), %rdx
leaq 0x2a1333(%rip), %rdi    # 0x350789
leaq 0x2a1337(%rip), %rsi    # 0x350794
xorl %ecx, %ecx
callq 0x10a2ab
movq %rbx, %rdi
movq %rax, %rsi
callq 0x107cc0
movq 0x10(%r14), %rdx
leaq 0x2e0359(%rip), %rdi    # 0x38f7d3
leaq 0x2a1354(%rip), %rsi    # 0x3507d5
callq 0x10a7af
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x107cc0
movq %r12, %rdi
movq %r14, %rsi
callq 0x10a9e4
movq %r14, %rdi
movq %r12, %rsi
callq 0x10a9e4
movq %r12, %rdi
movq %r15, %rsi
callq 0x10a88b
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x10874b
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
callq 0x1c502