// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/tools/gt_gdiffcalc.c
// Function: gt_gdiffcalc_option_parser_new
static GtOptionParser* gt_gdiffcalc_option_parser_new(void *tool_arguments)
{
  GtGenomediffArguments *arguments = tool_arguments;
  GtOptionParser *op;
  GtOption *option, *option_unitfile;

  gt_assert(arguments);

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

  /* options */
  option = gt_option_new_string("indexname", "Basename of encseq to construct.",
                                arguments->indexname, NULL);
  gt_option_is_mandatory(option);
  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));

  /* 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);

  /* 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 0xa9334
movq %rdi, %r14
leaq 0x2a40c0(%rip), %rdi    # 0x34d200
leaq 0x2a40e2(%rip), %rsi    # 0x34d229
callq 0x107bfe
movq %rax, %rbx
movq 0x50(%r14), %rdx
leaq 0x2bc9d3(%rip), %rdi    # 0x365b2d
leaq 0x2a40fb(%rip), %rsi    # 0x34d25c
xorl %ecx, %ecx
callq 0x10a770
movq %rax, %r15
movq %rax, %rdi
callq 0x10a87b
movq %rbx, %rdi
movq %r15, %rsi
callq 0x107cc0
movq 0x60(%r14), %rdx
leaq 0x2a40f4(%rip), %rdi    # 0x34d27d
leaq 0x2a40f6(%rip), %rsi    # 0x34d286
callq 0x10a7af
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
callq 0x107cc0
movq %r15, %rdi
callq 0x107bec
movq %rax, 0x48(%r14)
movq 0x50(%r14), %rsi
movq %rbx, %rdi
callq 0xfc63a
movq %rax, 0x38(%r14)
movq %rax, %rdi
callq 0xfc716
movq %rax, %rdi
callq 0x10a9d4
leaq 0x10(%r14), %rdx
leaq 0x2a40df(%rip), %rdi    # 0x34d2b9
leaq 0x2a40de(%rip), %rsi    # 0x34d2bf
movl $0x3e8, %ecx            # imm = 0x3E8
callq 0x10a2ab
movq %rax, %r15
movq %rax, %rdi
callq 0x10a9d4
movq %rbx, %rdi
movq %r15, %rsi
callq 0x107cc0
leaq 0x30(%r14), %rdx
leaq 0x2a40e9(%rip), %rdi    # 0x34d2f5
leaq 0x2a40e6(%rip), %rsi    # 0x34d2f9
movsd 0x2a3f8d(%rip), %xmm0   # 0x34d1a8
callq 0x10a346
movq %rax, %r15
movq %rax, %rdi
callq 0x10a9c4
movq %r15, %rdi
callq 0x10ac1f
movq %rbx, %rdi
movq %r15, %rsi
callq 0x107cc0
leaq 0x18(%r14), %rdx
leaq 0x2a40fb(%rip), %rdi    # 0x34d344
leaq 0x2a40fc(%rip), %rsi    # 0x34d34c
movsd 0x2a3f58(%rip), %xmm0   # 0x34d1b0
callq 0x10a346
movq %rax, %r15
movq %rax, %rdi
callq 0x10a9c4
movq %r15, %rdi
callq 0x10ac1f
movq %rbx, %rdi
movq %r15, %rsi
callq 0x107cc0
leaq 0x28(%r14), %rdx
leaq 0x2a4104(%rip), %rdi    # 0x34d38a
leaq 0x2a4105(%rip), %rsi    # 0x34d392
movsd 0x2a3f23(%rip), %xmm0   # 0x34d1b8
callq 0x10a346
movq %rax, %r15
movq %rax, %rdi
callq 0x10a9c4
movq %r15, %rdi
callq 0x10ac1f
movq %rbx, %rdi
movq %r15, %rsi
callq 0x107cc0
leaq 0x20(%r14), %rdx
leaq 0x2b4c67(%rip), %rdi    # 0x35df2a
leaq 0x2a4106(%rip), %rsi    # 0x34d3d0
movsd 0x2a3eee(%rip), %xmm0   # 0x34d1c0
callq 0x10a346
movq %rax, %r15
movq %rax, %rdi
callq 0x10a9c4
movq %r15, %rdi
callq 0x10ac1f
movq %rbx, %rdi
movq %r15, %rsi
callq 0x107cc0
incq %r14
movq %r14, %rdi
callq 0x10a257
movq %rbx, %rdi
movq %rax, %rsi
callq 0x107cc0
leaq 0x2a40f0(%rip), %rsi    # 0x34d402
movq %rbx, %rdi
callq 0x107e5c
leaq 0xa35a3(%rip), %rsi     # 0x14c8c4
movq %rbx, %rdi
xorl %edx, %edx
callq 0x107d3d
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
callq 0x1b220