// File: /workspace/github_c_makefile_star2_O2/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 0x32752
movq %rdi, %r14
leaq 0x2c5852(%rip), %rdi    # 0x2f7e72
leaq 0x2bdf9d(%rip), %rsi    # 0x2f05c4
callq 0x97df5
movq %rax, %rbx
movq (%r14), %rdx
movq 0x406227(%rip), %rcx    # 0x438860
leaq 0x406220(%rip), %r8     # 0x438860
leaq 0x305141(%rip), %rdi    # 0x337788
leaq 0x2bdfa8(%rip), %rsi    # 0x2f05f6
callq 0x9ad83
movq %rbx, %rdi
movq %rax, %rsi
callq 0x97f31
movq 0x8(%r14), %rdx
leaq 0x2b3c41(%rip), %rdi    # 0x2e62aa
leaq 0x2be0a8(%rip), %rsi    # 0x2f0718
callq 0x9ad51
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
callq 0x97f31
movq 0x18(%r14), %rdx
leaq 0x2e317b(%rip), %rdi    # 0x315809
leaq 0x2be097(%rip), %rsi    # 0x2f072c
callq 0x9ad51
movq %rax, %r12
movq %rbx, %rdi
movq %rax, %rsi
callq 0x97f31
leaq 0x20(%r14), %rdx
leaq 0x2be090(%rip), %rdi    # 0x2f0743
leaq 0x2be092(%rip), %rsi    # 0x2f074c
pushq $0xa
popq %rcx
callq 0x9a9e6
movq %rbx, %rdi
movq %rax, %rsi
callq 0x97f31
leaq 0x28(%r14), %rdx
leaq 0x2be0b9(%rip), %rdi    # 0x2f0791
leaq 0x2be0bd(%rip), %rsi    # 0x2f079c
xorl %ecx, %ecx
callq 0x9a9e6
movq %rbx, %rdi
movq %rax, %rsi
callq 0x97f31
movq 0x10(%r14), %rdx
leaq 0x2fd415(%rip), %rdi    # 0x32fb11
leaq 0x2be0da(%rip), %rsi    # 0x2f07dd
callq 0x9ad51
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x97f31
movq %r12, %rdi
movq %r14, %rsi
callq 0x9b14d
movq %r14, %rdi
movq %r12, %rsi
callq 0x9b14d
movq %r12, %rdi
movq %r15, %rsi
callq 0x9ae7a
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x98c6b
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x40580f(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2b28b0(%rip), %rsi    # 0x2e5013
leaq 0x315ee9(%rip), %rdx    # 0x348653
leaq 0x2bddfa(%rip), %rcx    # 0x2f056b
leaq 0x2bddda(%rip), %r8     # 0x2f0552
pushq $0x47
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390