// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/tools/gt_featureindex.c
// Function: gt_featureindex_option_parser_new
static GtOptionParser* gt_featureindex_option_parser_new(void *tool_arguments)
{
  GtFeatureindexArguments *arguments = tool_arguments;
  GtOptionParser *op;
  GtOption *option, *backend_option, *filenameoption;
  static const char *backends[] = {
#ifdef HAVE_SQLITE
    GT_SQLITE_BACKEND_STRING,
#endif
#ifdef HAVE_MYSQL
    GT_MYSQL_BACKEND_STRING,
#endif
    NULL
  };
  gt_assert(arguments);

  /* init */
  op = gt_option_parser_new("[option ...] indexfilename",
                            "Retrieve annotations from a persistent "
                            "feature index as GFF3 output.");

  arguments->rngopt = gt_option_new_range("range",
                                          "range constraint for index query",
                                          &arguments->qry_rng, NULL);
  gt_option_parser_add_option(op, gt_option_ref(arguments->rngopt));

  option = gt_option_new_string("seqid", "sequence region",
                                arguments->seqid, NULL);
  gt_option_parser_add_option(op, option);

  option = gt_option_new_bool("retain", "retain attributes",
                              &arguments->retain, true);
  gt_option_parser_add_option(op, option);

  /* -backend */
  backend_option = gt_option_new_choice("backend", "database backend to use\n"
                                        "choose from ["
#ifdef HAVE_SQLITE
                                         GT_SQLITE_BACKEND_STRING
#endif
#ifdef HAVE_MYSQL
                                        "|" GT_MYSQL_BACKEND_STRING
#endif
                                        "]",
                                        arguments->backend, backends[0],
                                        backends);
  gt_option_parser_add_option(op, backend_option);

  /* -filename */
  filenameoption = gt_option_new_string("filename",
                                        "filename for feature database "
                                        "(sqlite backend only)",
                                        arguments->filename, NULL);
  gt_option_parser_add_option(op, filenameoption);

#ifdef HAVE_MYSQL
  /* -host */
  option = gt_option_new_string("host", "hostname for database connection",
                                arguments->host, NULL);
  gt_option_parser_add_option(op, option);
  gt_option_is_mandatory_either(option, filenameoption);

  /* -user */
  option = gt_option_new_string("user", "username for database connection",
                                arguments->user, NULL);
  gt_option_parser_add_option(op, option);

  /* -database */
  option = gt_option_new_string("database",
                                "database name for database connection",
                                arguments->database, NULL);
  gt_option_parser_add_option(op, option);

  /* -port */
  option = gt_option_new_int_max("port", "port for database connection",
                                 &arguments->port, 3333, 65534);
  gt_option_parser_add_option(op, option);
#else
  gt_option_is_mandatory(filenameoption);
#endif

  option = gt_option_new_bool("child_check", "test callbacks for "
                                             "child node addition",
                              &arguments->child_callback_check, false);
  gt_option_parser_add_option(op, option);
  gt_option_is_development_option(option);

  option = gt_option_new_bool("attributes_check", "test callbacks for "
                                                  "attribute modification",
                              &arguments->attributes_callback_check, false);
  gt_option_parser_add_option(op, option);
  gt_option_is_development_option(option);

  option = gt_option_new_verbose(&arguments->verbose);
  gt_option_parser_add_option(op, option);

  return op;
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x28(%rsp)
cmpq $0x0, 0x28(%rsp)
jne 0x37223
movq 0x604dae(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4dee17(%rip), %rsi    # 0x516013
leaq 0x54395c(%rip), %rdx    # 0x57ab5f
leaq 0x4e6a1a(%rip), %rcx    # 0x51dc24
leaq 0x4e69f7(%rip), %r8     # 0x51dc08
movl $0x64, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x37225
leaq 0x4e6a1a(%rip), %rdi    # 0x51dc46
leaq 0x4e6a2e(%rip), %rsi    # 0x51dc61
callq 0xf1420
movq %rax, 0x20(%rsp)
movq 0x28(%rsp), %rdx
leaq 0x5187ab(%rip), %rdi    # 0x54f9f4
leaq 0x4e6a56(%rip), %rsi    # 0x51dca6
xorl %eax, %eax
movl %eax, %ecx
callq 0xf68a0
movq %rax, %rcx
movq 0x28(%rsp), %rax
movq %rcx, 0x50(%rax)
movq 0x20(%rsp), %rax
movq %rax, (%rsp)
movq 0x28(%rsp), %rax
movq 0x50(%rax), %rdi
callq 0xf13c0
movq (%rsp), %rdi
movq %rax, %rsi
callq 0xf1600
movq 0x28(%rsp), %rax
movq 0x10(%rax), %rdx
leaq 0x4f996c(%rip), %rdi    # 0x530c04
leaq 0x538dd5(%rip), %rsi    # 0x570074
xorl %eax, %eax
movl %eax, %ecx
callq 0xf69f0
movq %rax, 0x18(%rsp)
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0xf1600
movq 0x28(%rsp), %rdx
addq $0x4d, %rdx
leaq 0x4e69fb(%rip), %rdi    # 0x51dcc7
leaq 0x4e69fb(%rip), %rsi    # 0x51dcce
movl $0x1, %ecx
callq 0xf5f20
movq %rax, 0x18(%rsp)
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0xf1600
movq 0x28(%rsp), %rax
movq 0x18(%rax), %rdx
movq 0x60551f(%rip), %rcx    # 0x63c820
leaq 0x4e69d8(%rip), %rdi    # 0x51dce0
leaq 0x4e69d9(%rip), %rsi    # 0x51dce8
leaq 0x60550a(%rip), %r8     # 0x63c820
callq 0xf6b30
movq %rax, 0x10(%rsp)
movq 0x20(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0xf1600
movq 0x28(%rsp), %rax
movq 0x20(%rax), %rdx
leaq 0x562181(%rip), %rdi    # 0x5994c0
leaq 0x4e69cf(%rip), %rsi    # 0x51dd15
xorl %eax, %eax
movl %eax, %ecx
callq 0xf69f0
movq %rax, 0x8(%rsp)
movq 0x20(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0xf1600
movq 0x8(%rsp), %rdi
callq 0xf6ca0
movq 0x28(%rsp), %rdx
addq $0x4e, %rdx
leaq 0x4e69cc(%rip), %rdi    # 0x51dd49
leaq 0x4e69d1(%rip), %rsi    # 0x51dd55
xorl %ecx, %ecx
callq 0xf5f20
movq %rax, 0x18(%rsp)
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0xf1600
movq 0x18(%rsp), %rdi
callq 0xf7040
movq 0x28(%rsp), %rdx
addq $0x4f, %rdx
leaq 0x4e69c3(%rip), %rdi    # 0x51dd7c
leaq 0x4e69cd(%rip), %rsi    # 0x51dd8d
xorl %ecx, %ecx
callq 0xf5f20
movq %rax, 0x18(%rsp)
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0xf1600
movq 0x18(%rsp), %rdi
callq 0xf7040
movq 0x28(%rsp), %rdi
addq $0x4c, %rdi
callq 0xf5f90
movq %rax, 0x18(%rsp)
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0xf1600
movq 0x20(%rsp), %rax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)