// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/tools/gt_genomediff.c
// Function: gt_genomediff_option_parser_new
static GtOptionParser* gt_genomediff_option_parser_new(void *tool_arguments)
{
  GtGenomediffArguments *arguments = tool_arguments;
  GtOptionParser *op;
  GtOption *option, *option_unitfile;
  static const char *indextypes[] = { "esa", "pck", "encseq", NULL };

  gt_assert(arguments);

  /* init */
  op = gt_option_parser_new("[option ...] "
                          "(INDEX | -indexname NAME SEQFILE SEQFILE [...]) ",
                          "Calculates Kr: pairwise distances between genomes.");

  /* options */
  option = gt_option_new_choice("indextype", "specify type of index, one of: "
                                "esa|pck|encseq. Where encseq is an encoded "
                                "sequence and an enhanced suffix array will be "
                                "constructed only in memory.",
                                arguments->indextype, indextypes[2],
                                indextypes);
  gt_option_parser_add_option(op, option);

  option = gt_option_new_string("indexname", "Basename of encseq to construct.",
                                arguments->indexname, NULL);
  gt_option_parser_add_option(op, option);

  /*-unitfile*/
  option_unitfile =
    gt_option_new_filename("unitfile",
                           "specifies genomic units, "
                           "see below for description.",
                           arguments->unitfile);
  gt_option_parser_add_option(op, option_unitfile);
  arguments->ref_unitfile = gt_option_ref(option_unitfile);

  /* encseq options */
  arguments->loadopts =
    gt_encseq_options_register_loading(op, arguments->indexname);

  gt_option_is_development_option(
                        gt_encseq_options_lossless_option(arguments->loadopts));
  /* esa options */
  arguments->idxopts =
    gt_index_options_register_esa_noout(op);
  gt_option_is_development_option(
                            gt_index_options_spmopt_option(arguments->idxopts));

  /* scan */
  option = gt_option_new_bool("scan", "do not load esa index but scan "
                              "it sequentially.", &arguments->scanfile, true);
  gt_option_is_extended_option(option);
  gt_option_parser_add_option(op, option);

  /* dev options */
  /* -max_n */
  option = gt_option_new_uword("max_n", "Number of precalculated values "
                               "for ln(n!) and pmax(x).",
                               &arguments->max_ln_n_fac, 1000UL);
  gt_option_is_development_option(option);
  gt_option_parser_add_option(op, option);

  /* -maxdepth */
  option =  gt_option_new_int("maxdepth", "max depth of .pbi-file, use with "
                              "-indextype pck.",
                              &arguments->user_max_depth, -1);
  gt_option_is_development_option(option);
  gt_option_parser_add_option(op, option);

  /* thresholds */
  /* divergence error */
  option = gt_option_new_double("thr",
                                "Threshold for difference (du, dl) in "
                                "divergence calculation.\n"
                                "default: 1e-9",
                                &arguments->divergence_threshold,
                                1e-9);
  gt_option_is_extended_option(option);
  gt_option_hide_default(option);
  gt_option_parser_add_option(op, option);

  /* expected shulen error */
  option = gt_option_new_double("abs_err",
                                "absolute error for expected shulen "
                                "calculation.\n"
                                "default: 1e-5",
                                &arguments->divergence_abs_err,
                                1e-5);
  gt_option_is_extended_option(option);
  gt_option_hide_default(option);
  gt_option_parser_add_option(op, option);

  /* relative expected shulen error */
  option = gt_option_new_double("rel_err",
                                "relative error for expected shulen "
                                "calculation.\n"
                                "default: 1e-3",
                                &arguments->divergence_rel_err,
                                1e-3);
  gt_option_is_extended_option(option);
  gt_option_hide_default(option);
  gt_option_parser_add_option(op, option);

  /* M */
  option = gt_option_new_double("M",
                                "threshold for minimum logarithm.\n"
                                "default: DBL_MIN",
                                &arguments->divergence_m,
                                DBL_MIN);
  gt_option_is_extended_option(option);
  gt_option_hide_default(option);
  gt_option_parser_add_option(op, option);

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

  /* mail */
  gt_option_parser_set_mail_address(op, "<willrodt@zbh.uni-hamburg.de>");
  /* doc */
  gt_option_parser_set_comment_func(op, gt_gtdata_show_help, NULL);
  return op;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0xabfa0
movq %rdi, %r14
leaq 0x2aa8c8(%rip), %rdi    # 0x3565d0
leaq 0x2aa54a(%rip), %rsi    # 0x356259
callq 0x10cc4e
movq %rax, %rbx
movq 0x58(%r14), %rdx
movq 0x418b7e(%rip), %rcx    # 0x4c48a0
leaq 0x418b67(%rip), %r8     # 0x4c4890
leaq 0x2ae037(%rip), %rdi    # 0x359d67
leaq 0x2aa8d7(%rip), %rsi    # 0x35660e
callq 0x10fa04
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
movq 0x50(%r14), %rdx
leaq 0x2c2fc0(%rip), %rdi    # 0x36ed12
leaq 0x2aa533(%rip), %rsi    # 0x35628c
xorl %ecx, %ecx
callq 0x10f987
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
movq 0x60(%r14), %rdx
leaq 0x2aa537(%rip), %rdi    # 0x3562ad
leaq 0x2aa925(%rip), %rsi    # 0x3566a2
callq 0x10f9c6
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
movq %r15, %rdi
callq 0x10cc3c
movq %rax, 0x48(%r14)
movq 0x50(%r14), %rsi
movq %rbx, %rdi
callq 0x1014a2
movq %rax, 0x38(%r14)
movq %rax, %rdi
callq 0x10157e
movq %rax, %rdi
callq 0x10fbef
movq %rbx, %rdi
callq 0x1be88b
movq %rax, 0x40(%r14)
movq %rax, %rdi
callq 0x1be9f1
movq %rax, %rdi
callq 0x10fbef
leaq 0x2aa707(%rip), %rdi    # 0x3564e6
leaq 0x2aa8f0(%rip), %rsi    # 0x3566d6
movq %r14, %rdx
movl $0x1, %ecx
callq 0x10f451
movq %rax, %r15
movq %rax, %rdi
callq 0x10fbdf
movq %rbx, %rdi
movq %r15, %rsi
callq 0x10cd10
leaq 0x10(%r14), %rdx
leaq 0x2aa4d5(%rip), %rdi    # 0x3562e9
leaq 0x2aa8eb(%rip), %rsi    # 0x356706
movl $0x3e8, %ecx            # imm = 0x3E8
callq 0x10f4c7
movq %rax, %r15
movq %rax, %rdi
callq 0x10fbef
movq %rbx, %rdi
movq %r15, %rsi
callq 0x10cd10
leaq 0x8(%r14), %rdx
leaq 0x2c4eed(%rip), %rdi    # 0x370d33
leaq 0x2aa8f0(%rip), %rsi    # 0x35673d
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
callq 0x10f669
movq %rax, %r15
movq %rax, %rdi
callq 0x10fbef
movq %rbx, %rdi
movq %r15, %rsi
callq 0x10cd10
leaq 0x30(%r14), %rdx
leaq 0x2aa4ad(%rip), %rdi    # 0x356325
leaq 0x2aa4aa(%rip), %rsi    # 0x356329
movsd 0x2aa351(%rip), %xmm0   # 0x3561d8
callq 0x10f562
movq %rax, %r15
movq %rax, %rdi
callq 0x10fbdf
movq %r15, %rdi
callq 0x10fe32
movq %rbx, %rdi
movq %r15, %rsi
callq 0x10cd10
leaq 0x18(%r14), %rdx
leaq 0x2aa4bf(%rip), %rdi    # 0x356374
leaq 0x2aa4c0(%rip), %rsi    # 0x35637c
movsd 0x2aa31c(%rip), %xmm0   # 0x3561e0
callq 0x10f562
movq %rax, %r15
movq %rax, %rdi
callq 0x10fbdf
movq %r15, %rdi
callq 0x10fe32
movq %rbx, %rdi
movq %r15, %rsi
callq 0x10cd10
leaq 0x28(%r14), %rdx
leaq 0x2aa4c8(%rip), %rdi    # 0x3563ba
leaq 0x2aa4c9(%rip), %rsi    # 0x3563c2
movsd 0x2aa2e7(%rip), %xmm0   # 0x3561e8
callq 0x10f562
movq %rax, %r15
movq %rax, %rdi
callq 0x10fbdf
movq %r15, %rdi
callq 0x10fe32
movq %rbx, %rdi
movq %r15, %rsi
callq 0x10cd10
leaq 0x20(%r14), %rdx
leaq 0x2bb0cb(%rip), %rdi    # 0x366ffa
leaq 0x2aa4ca(%rip), %rsi    # 0x356400
movsd 0x2aa2b2(%rip), %xmm0   # 0x3561f0
callq 0x10f562
movq %rax, %r15
movq %rax, %rdi
callq 0x10fbdf
movq %r15, %rdi
callq 0x10fe32
movq %rbx, %rdi
movq %r15, %rsi
callq 0x10cd10
incq %r14
movq %r14, %rdi
callq 0x10f473
movq %rbx, %rdi
movq %rax, %rsi
callq 0x10cd10
leaq 0x2aa4b4(%rip), %rsi    # 0x356432
movq %rbx, %rdi
callq 0x10ceab
leaq 0xa7f0f(%rip), %rsi     # 0x153e9c
movq %rbx, %rdi
xorl %edx, %edx
callq 0x10cd8d
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
callq 0x1b5c6