// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/tools/gt_chain2dim.c
// Function: gt_chain2dim_option_parser_new
static GtOptionParser *gt_chain2dim_option_parser_new (void *tool_arguments)
{
  GtChain2dimoptions *arguments = tool_arguments;
  GtOptionParser *op;
  GtOption *option, *optionglobal, *optionlocal;

  gt_assert (arguments != NULL);
  arguments->matchfile = gt_str_new ();
  arguments->globalargs = gt_str_array_new();
  arguments->localargs = gt_str_array_new();

  op = gt_option_parser_new("[options] -m matchfile",
                            "Chain pairwise matches.");

  gt_option_parser_set_mail_address(op, "<kurtz@zbh.uni-hamburg.de>");
  option = gt_option_new_filename("m","Specify file containing the matches\n"
                                  "mandatory option",
                                  arguments->matchfile);
  gt_option_parser_add_option(op, option);
  gt_option_is_mandatory(option);

  optionglobal = gt_option_new_string_array("global",
                   "perform global chaining\n"
                   "- optional parameter gc switches\n"
                   "  on gap costs (according to L1-model)\n"
                   "- optional parameter ov means\n"
                   "  that overlaps between matches are allowed\n"
                   "- optional parameter all means\n"
                   "  that all optimal chains are processed",
                   arguments->globalargs);
  gt_option_argument_is_optional(optionglobal);
  arguments->refoptionglobal = gt_option_ref (optionglobal);
  gt_option_parser_add_option(op, optionglobal);

  optionlocal = gt_option_new_string_array("local",
                   "perform local chaining\n"
                   "compute local chains (according to L1-model).\n"
                   "- If no parameter is given, compute local chains with\n"
                   "  maximums score.\n"
                   "- If parameter is given, this must be a positive number\n"
                   "  optionally followed by the character b or p.\n"
                   "- If only the number, say k, is given, this is the "
                   "minimum\n"
                   "  score of the chains output.\n"
                   "- If a number is followed by character b, then output all\n"
                   "  chains with the largest k scores.\n"
                   "- If a number is followed by character p, then output all\n"
                   "  chains with scores at most k percent away\n"
                   "  from the best score.",
                   arguments->localargs);
  gt_option_argument_is_optional(optionlocal);
  gt_option_parser_add_option(op, optionlocal);
  arguments->refoptionlocal = gt_option_ref(optionlocal);
  gt_option_exclude(optionlocal,optionglobal);
  option = gt_option_new_double("wf","specify weight factor > 0.0 to obtain "
                                     "score of a fragment\nrequires one of "
                                     "the options\n-local const\n-global "
                                     "gc\n-global ov",
                                     &arguments->weightfactor,1.0);
  arguments->refoptionweightfactor = gt_option_ref (option);
  gt_option_parser_add_option(op, option);
  option = gt_option_new_uword("maxgap","specify maximal width of gap in chain",
                                         &arguments->maxgap,0);
  arguments->refoptionmaxgap = gt_option_ref(option);
  gt_option_parser_add_option(op, option);
  option = gt_option_new_bool("silent","do not output the chains but only "
                                       "report their lengths and scores",
                                       &arguments->silent,false);
  gt_option_parser_add_option(op, option);
  option = gt_option_new_verbose(&arguments->verbose);
  gt_option_parser_add_option(op, option);
  return op;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x9c854
movq %rdi, %rbx
callq 0x1208f8
movq %rax, 0x18(%rbx)
callq 0x121b54
movq %rax, 0x20(%rbx)
callq 0x121b54
movq %rax, 0x28(%rbx)
leaq 0x2b2bc5(%rip), %rdi    # 0x34f29d
leaq 0x2b2bd5(%rip), %rsi    # 0x34f2b4
callq 0x10cc4e
movq %rax, %r14
leaq 0x2b2bde(%rip), %rsi    # 0x34f2cc
movq %rax, %rdi
callq 0x10ceab
movq 0x18(%rbx), %rdx
leaq 0x32e9ed(%rip), %rdi    # 0x3cb0ee
leaq 0x2b2bdf(%rip), %rsi    # 0x34f2e7
callq 0x10f9c6
movq %rax, %r15
movq %r14, %rdi
movq %rax, %rsi
callq 0x10cd10
movq %r15, %rdi
callq 0x10fa96
movq 0x20(%rbx), %rdx
leaq 0x2b2bee(%rip), %rdi    # 0x34f31c
leaq 0x2b2bee(%rip), %rsi    # 0x34f323
callq 0x10f9b8
movq %rax, %r15
movq %rax, %rdi
callq 0x10fe42
movq %r15, %rdi
callq 0x10cc3c
movq %rax, 0x40(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x10cd10
movq 0x28(%rbx), %rdx
leaq 0x30142e(%rip), %rdi    # 0x39db95
leaq 0x2b2ca6(%rip), %rsi    # 0x34f414
callq 0x10f9b8
movq %rax, %r12
movq %rax, %rdi
callq 0x10fe42
movq %r14, %rdi
movq %r12, %rsi
callq 0x10cd10
movq %r12, %rdi
callq 0x10cc3c
movq %rax, 0x48(%rbx)
movq %r12, %rdi
movq %r15, %rsi
callq 0x10fd9f
leaq 0x8(%rbx), %rdx
leaq 0x2b2e91(%rip), %rdi    # 0x34f63c
leaq 0x2b2e8d(%rip), %rsi    # 0x34f63f
movsd 0x2b2a6e(%rip), %xmm0   # 0x34f228
callq 0x10f562
movq %rax, %r15
movq %rax, %rdi
callq 0x10cc3c
movq %rax, 0x38(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x10cd10
leaq 0x10(%rbx), %rdx
leaq 0x2b2ed4(%rip), %rdi    # 0x34f6b8
leaq 0x2b2ed4(%rip), %rsi    # 0x34f6bf
xorl %ecx, %ecx
callq 0x10f4c7
movq %rax, %r15
movq %rax, %rdi
callq 0x10cc3c
movq %rax, 0x30(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x10cd10
leaq 0x2c30df(%rip), %rdi    # 0x35f8f2
leaq 0x2b2ecb(%rip), %rsi    # 0x34f6e5
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x10f451
movq %r14, %rdi
movq %rax, %rsi
callq 0x10cd10
incq %rbx
movq %rbx, %rdi
callq 0x10f473
movq %r14, %rdi
movq %rax, %rsi
callq 0x10cd10
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
callq 0x1853b