// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/fmi-mkindex.c
// Function: parsemkfmindex
static GtOPrval parsemkfmindex(Mkfmcallinfo *mkfmcallinfo,
                               int argc,
                               const char **argv,
                               GtError *err)
{
  GtOptionParser *op;
  GtOption *option, *optionfmout;
  GtOPrval oprval;
  int parsed_args;

  gt_error_check(err);
  mkfmcallinfo->indexnametab = gt_str_array_new();
  mkfmcallinfo->outfmindex = gt_str_new();
  mkfmcallinfo->leveldesc = gt_str_new();
  op = gt_option_parser_new("[option ...] -ii indexfile [...]",
                         "Compute FM-index.");
  gt_option_parser_set_mail_address(op, "<kurtz@zbh.uni-hamburg.de>");
  optionfmout = gt_option_new_string("fmout",
                             "specify name of FM-index to be generated\n"
                             "(mandatory if more than one input index "
                             "is specified)",
                             mkfmcallinfo->outfmindex, NULL);
  gt_option_parser_add_option(op, optionfmout);

  option = gt_option_new_filename_array("ii", "specify indices to be used",
                                        mkfmcallinfo->indexnametab);
  gt_option_is_mandatory(option);
  gt_option_parser_add_option(op, option);

  option = gt_option_new_string("size",
                             "specify size (tiny, small, medium, big)",
                             mkfmcallinfo->leveldesc, "medium");
  gt_option_parser_add_option(op, option);

  option = gt_option_new_bool("noindexpos",
                           "store no index positions (hence the positions of\n"
                           "matches in the index cannot be retrieved)",
                           &mkfmcallinfo->noindexpos,false);
  gt_option_parser_add_option(op, option);

  oprval = gt_option_parser_parse(op, &parsed_args, argc, argv, gt_versionfunc,
                                  err);
  if (oprval == GT_OPTION_PARSER_OK)
  {
    if (!gt_option_is_set(optionfmout))
    {
      if (gt_str_array_size(mkfmcallinfo->indexnametab) > 1UL)
      {
        gt_error_set(err,"if more than one index is given, then "
                          "option -fmout is mandatory");
        oprval = GT_OPTION_PARSER_ERROR;
      } else
      {
        char *basenameptr;

        basenameptr = gt_basename(gt_str_array_get(mkfmcallinfo->indexnametab,
                                  0));
        gt_str_set(mkfmcallinfo->outfmindex,basenameptr);
        gt_free(basenameptr);
      }
    }
  }
  gt_option_parser_delete(op);
  if (oprval == GT_OPTION_PARSER_OK && parsed_args != argc)
  {
    gt_error_set(err,"superfluous program parameters");
    oprval = GT_OPTION_PARSER_ERROR;
  }
  return oprval;
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movl %esi, 0x3c(%rsp)
movq %rdx, 0x30(%rsp)
movq %rcx, 0x28(%rsp)
cmpq $0x0, 0x28(%rsp)
je 0x24d607
movq 0x28(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x24d5cf
jmp 0x24d607
movq 0x3ee9ca(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2c8a33(%rip), %rsi    # 0x516013
leaq 0x2c8bd8(%rip), %rdx    # 0x5161bf
leaq 0x32b8ef(%rip), %rcx    # 0x578edd
leaq 0x32b8d0(%rip), %r8     # 0x578ec5
movl $0x3f, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x24d609
callq 0x11f5c0
movq %rax, %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x8(%rax)
callq 0x11d4a0
movq %rax, %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x18(%rax)
callq 0x11d4a0
movq %rax, %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x10(%rax)
leaq 0x32b8a9(%rip), %rdi    # 0x578eec
leaq 0x32b8c3(%rip), %rsi    # 0x578f0d
callq 0xf1420
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rdi
leaq 0x2c9c84(%rip), %rsi    # 0x5172e4
callq 0xf1a10
movq 0x40(%rsp), %rax
movq 0x18(%rax), %rdx
leaq 0x32b8aa(%rip), %rdi    # 0x578f1f
leaq 0x32b8a9(%rip), %rsi    # 0x578f25
xorl %eax, %eax
movl %eax, %ecx
callq 0xf69f0
movq %rax, 0x10(%rsp)
movq 0x20(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0xf1600
movq 0x40(%rsp), %rax
movq 0x8(%rax), %rdx
leaq 0x338c24(%rip), %rdi    # 0x5862cd
leaq 0x32b8d4(%rip), %rsi    # 0x578f84
callq 0xf6b00
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rdi
callq 0xf6ca0
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0xf1600
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rdx
leaq 0x2e740d(%rip), %rdi    # 0x534af0
leaq 0x32b8b5(%rip), %rsi    # 0x578f9f
leaq 0x32b8d6(%rip), %rcx    # 0x578fc7
callq 0xf69f0
movq %rax, 0x18(%rsp)
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0xf1600
movq 0x40(%rsp), %rdx
leaq 0x32b8b8(%rip), %rdi    # 0x578fce
leaq 0x32b8bc(%rip), %rsi    # 0x578fd9
xorl %ecx, %ecx
callq 0xf5f20
movq %rax, 0x18(%rsp)
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0xf1600
movq 0x20(%rsp), %rdi
movl 0x3c(%rsp), %edx
movq 0x30(%rsp), %rcx
movq 0x28(%rsp), %r9
leaq 0x8(%rsp), %rsi
leaq -0x127027(%rip), %r8    # 0x126730
callq 0xf2ab0
movl %eax, 0xc(%rsp)
cmpl $0x0, 0xc(%rsp)
jne 0x24d7f3
movq 0x10(%rsp), %rdi
callq 0xf74a0
testb $0x1, %al
jne 0x24d7f1
movq 0x40(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x11fcc0
cmpq $0x1, %rax
jbe 0x24d7aa
movq 0x28(%rsp), %rdi
leaq 0x32b89b(%rip), %rsi    # 0x579034
movb $0x0, %al
callq 0xd88c0
movl $0x1, 0xc(%rsp)
jmp 0x24d7ef
movq 0x40(%rsp), %rax
movq 0x8(%rax), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x11f8c0
movq %rax, %rdi
callq 0x83ee0
movq %rax, (%rsp)
movq 0x40(%rsp), %rax
movq 0x18(%rax), %rdi
movq (%rsp), %rsi
callq 0x11d650
movq (%rsp), %rdi
leaq 0x32b6e0(%rip), %rsi    # 0x578ec5
movl $0x6f, %edx
callq 0xe88c0
jmp 0x24d7f1
jmp 0x24d7f3
movq 0x20(%rsp), %rdi
callq 0xf5cf0
cmpl $0x0, 0xc(%rsp)
jne 0x24d829
movl 0x8(%rsp), %eax
cmpl 0x3c(%rsp), %eax
je 0x24d829
movq 0x28(%rsp), %rdi
leaq 0x2d5988(%rip), %rsi    # 0x5231a2
movb $0x0, %al
callq 0xd88c0
movl $0x1, 0xc(%rsp)
movl 0xc(%rsp), %eax
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)