// File: /workspace/github_c_makefile_star2_O2/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 0x1b00b
movq %rdi, %rbx
callq 0xacb84
movq %rax, 0x18(%rbx)
callq 0xae154
movq %rax, 0x20(%rbx)
callq 0xae154
movq %rax, 0x28(%rbx)
leaq 0x2cb40e(%rip), %rdi    # 0x2e629d
leaq 0x2cb41e(%rip), %rsi    # 0x2e62b4
callq 0x97df5
movq %rax, %r14
leaq 0x2cb427(%rip), %rsi    # 0x2e62cc
movq %rax, %rdi
callq 0x98288
movq 0x18(%rbx), %rdx
leaq 0x346f1a(%rip), %rdi    # 0x361dd2
leaq 0x2cb428(%rip), %rsi    # 0x2e62e7
callq 0x9ad51
movq %rax, %r15
movq %r14, %rdi
movq %rax, %rsi
callq 0x97f31
movq %r15, %rdi
callq 0x9ae37
movq 0x20(%rbx), %rdx
leaq 0x2cb437(%rip), %rdi    # 0x2e631c
leaq 0x2cb437(%rip), %rsi    # 0x2e6323
callq 0x9ad43
movq %rax, %r15
movq %rax, %rdi
callq 0x9b488
movq %r15, %rdi
callq 0x97db0
movq %rax, 0x40(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x97f31
movq 0x28(%rbx), %rdx
leaq 0x319b49(%rip), %rdi    # 0x334a67
leaq 0x2cb4ef(%rip), %rsi    # 0x2e6414
callq 0x9ad43
movq %rax, %r12
movq %rax, %rdi
callq 0x9b488
movq %r14, %rdi
movq %r12, %rsi
callq 0x97f31
movq %r12, %rdi
callq 0x97db0
movq %rax, 0x48(%rbx)
movq %r12, %rdi
movq %r15, %rsi
callq 0x9b38d
leaq 0x8(%rbx), %rdx
leaq 0x2cb6da(%rip), %rdi    # 0x2e663c
leaq 0x2cb6d6(%rip), %rsi    # 0x2e663f
movsd 0x2cb2b7(%rip), %xmm0   # 0x2e6228
callq 0x9aad7
movq %rax, %r15
movq %rax, %rdi
callq 0x97db0
movq %rax, 0x38(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x97f31
leaq 0x10(%rbx), %rdx
leaq 0x2cb71d(%rip), %rdi    # 0x2e66b8
leaq 0x2cb71d(%rip), %rsi    # 0x2e66bf
xorl %ecx, %ecx
callq 0x9a9e6
movq %rax, %r15
movq %rax, %rdi
callq 0x97db0
movq %rax, 0x30(%rbx)
movq %r14, %rdi
movq %r15, %rsi
callq 0x97f31
leaq 0x2db908(%rip), %rdi    # 0x2f68d2
leaq 0x2cb714(%rip), %rsi    # 0x2e66e5
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x9a997
movq %r14, %rdi
movq %rax, %rsi
callq 0x97f31
incq %rbx
movq %rbx, %rdi
callq 0x9a9b6
movq %r14, %rdi
movq %rax, %rsi
callq 0x97f31
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x41cf56(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2c9ff7(%rip), %rsi    # 0x2e5013
leaq 0x2cb249(%rip), %rdx    # 0x2e626c
leaq 0x2cb254(%rip), %rcx    # 0x2e627e
leaq 0x2cb222(%rip), %r8     # 0x2e6253
pushq $0x35
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390