// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x38(%rsp)
cmpq $0x0, 0x38(%rsp)
jne 0x437d3
movq 0x5f87fe(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4d2867(%rip), %rsi    # 0x516013
leaq 0x5373ac(%rip), %rdx    # 0x57ab5f
leaq 0x4dde21(%rip), %rcx    # 0x5215db
leaq 0x4dde01(%rip), %r8     # 0x5215c2
movl $0x47, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x437d5
leaq 0x4e5781(%rip), %rdi    # 0x528f5d
leaq 0x4dde4c(%rip), %rsi    # 0x52162f
callq 0xf1420
movq %rax, 0x30(%rsp)
movq 0x38(%rsp), %rax
movq (%rax), %rdx
movq 0x5f9054(%rip), %rcx    # 0x63c850
leaq 0x52661f(%rip), %rdi    # 0x569e22
leaq 0x4dde57(%rip), %rsi    # 0x521661
leaq 0x5f903f(%rip), %r8     # 0x63c850
callq 0xf6b30
movq %rax, 0x28(%rsp)
movq 0x30(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0xf1600
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rdx
leaq 0x4d3a88(%rip), %rdi    # 0x5172c2
leaq 0x4ddf42(%rip), %rsi    # 0x521783
callq 0xf6aa0
movq %rax, 0x20(%rsp)
movq 0x30(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0xf1600
movq 0x38(%rsp), %rax
movq 0x18(%rax), %rdx
leaq 0x503ed7(%rip), %rdi    # 0x547741
leaq 0x4ddf26(%rip), %rsi    # 0x521797
callq 0xf6aa0
movq %rax, 0x18(%rsp)
movq 0x30(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0xf1600
movq 0x38(%rsp), %rdx
addq $0x20, %rdx
leaq 0x4ddf14(%rip), %rdi    # 0x5217ae
leaq 0x4ddf16(%rip), %rsi    # 0x5217b7
movl $0xa, %ecx
callq 0xf5fe0
movq %rax, 0x8(%rsp)
movq 0x30(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0xf1600
movq 0x38(%rsp), %rdx
addq $0x28, %rdx
leaq 0x4ddf2d(%rip), %rdi    # 0x5217fc
leaq 0x4ddf31(%rip), %rsi    # 0x521807
xorl %eax, %eax
movl %eax, %ecx
callq 0xf5fe0
movq %rax, (%rsp)
movq 0x30(%rsp), %rdi
movq (%rsp), %rsi
callq 0xf1600
movq 0x38(%rsp), %rax
movq 0x10(%rax), %rdx
leaq 0x51e6c3(%rip), %rdi    # 0x561fc4
leaq 0x4ddf40(%rip), %rsi    # 0x521848
callq 0xf6aa0
movq %rax, 0x10(%rsp)
movq 0x30(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0xf1600
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0xf7090
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0xf7090
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0xf6cf0
movq 0x30(%rsp), %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0xf2a40
movq 0x30(%rsp), %rax
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)