// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/tools/gt_tagerator.c
// Function: gt_tagerator_arguments_check
static int gt_tagerator_arguments_check(GT_UNUSED int rest_argc,
                                        void *tool_arguments,
                                        GtError *err)
{
  TageratorOptions *arguments = tool_arguments;
  GtUword idx;

  if (!arguments->nowildcards && arguments->userdefinedmaxdistance <= 0)
  {
    arguments->nowildcards = true;
  }
  if (gt_option_is_set(arguments->refoptionesaindex))
  {
    arguments->withesa = true;
  } else
  {
    gt_assert(gt_option_is_set(arguments->refoptionpckindex));
    arguments->withesa = false;
  }
  if (arguments->userdefinedmaxdistance < 0)
  {
    if (arguments->doonline)
    {
      gt_error_set(err,"option -online requires option -e");
      return -1;
    }
    if (arguments->maxintervalwidth == 0)
    {
      gt_error_set(err,
                   "if option -e is not used then option -maxocc is required");
      return -1;
    }
    if (arguments->best)
    {
      gt_error_set(err,"option -best requires option -e");
      return -1;
    }
  } else
  {
    if (arguments->skpp &&
        (arguments->userdefinedmaxdistance == 0 ||
         arguments->maxintervalwidth == 0))
    {
      gt_error_set(err,"option -skpp only works in pdiff mode");
      return -1;
    }
  }
  for (idx=0; idx<gt_str_array_size(arguments->outputspec); idx++)
  {
    if (gt_optionargaddbitmask(outputmodedesctable,
                            sizeof (outputmodedesctable)/
                            sizeof (outputmodedesctable[0]),
                            &arguments->outputmode,
                            "-output",
                            gt_str_array_get(arguments->outputspec,idx),
                            err) != 0)
    {
      return -1;
    }
  }
  if (arguments->outputmode == 0)
  {
    arguments->outputmode = TAGOUT_TAGNUM | TAGOUT_TAGSEQ |
                            TAGOUT_DBLENGTH | TAGOUT_DBSTARTPOS |
                            TAGOUT_STRAND;
    if (arguments->maxintervalwidth > 0)
    {
      arguments->outputmode |= TAGOUT_TAGLENGTH;
    }
  }
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, (%rsp)
movq %rsi, %r14
cmpb $0x0, 0x3f(%rsi)
jne 0x53167
cmpq $0x0, 0x48(%r14)
jg 0x53167
movb $0x1, 0x3f(%r14)
movq 0x20(%r14), %rdi
callq 0x9b4cb
movb $0x1, %cl
testb %al, %al
jne 0x53189
movq 0x28(%r14), %rdi
callq 0x9b4cb
testb %al, %al
je 0x53278
xorl %ecx, %ecx
movb %cl, 0x39(%r14)
movq 0x48(%r14), %rax
testq %rax, %rax
js 0x531b5
cmpb $0x1, 0x40(%r14)
jne 0x531e3
testq %rax, %rax
je 0x531a9
cmpq $0x0, 0x58(%r14)
jne 0x531e3
leaq 0x2a9457(%rip), %rsi    # 0x2fc607
jmp 0x5325b
cmpb $0x1, 0x3a(%r14)
jne 0x531c8
leaq 0x2a93c9(%rip), %rsi    # 0x2fc58c
jmp 0x5325b
cmpq $0x0, 0x58(%r14)
je 0x53254
cmpb $0x1, 0x41(%r14)
jne 0x531e3
leaq 0x2a9406(%rip), %rsi    # 0x2fc5e7
jmp 0x5325b
leaq 0x54(%r14), %r15
xorl %r12d, %r12d
leaq 0x3df36f(%rip), %r13    # 0x432560
leaq 0x29db0f(%rip), %rbp    # 0x2f0d07
pushq $0xb
popq %rbx
movq 0x8(%r14), %rdi
callq 0xae61c
cmpq %rax, %r12
jae 0x53236
movq 0x8(%r14), %rdi
movq %r12, %rsi
callq 0xae386
movq %r13, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %rbp, %rcx
movq %rax, %r8
movq (%rsp), %r9
callq 0x166988
incq %r12
testl %eax, %eax
je 0x531fb
jmp 0x53266
xorl %eax, %eax
cmpl $0x0, (%r15)
jne 0x53269
xorl %ecx, %ecx
cmpq $0x0, 0x58(%r14)
setne %cl
shll $0x9, %ecx
orl $0x4f, %ecx
movl %ecx, 0x54(%r14)
jmp 0x53269
leaq 0x2a9353(%rip), %rsi    # 0x2fc5ae
movq (%rsp), %rdi
xorl %eax, %eax
callq 0x89dbb
pushq $-0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x3e4ce9(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x291d8a(%rip), %rsi    # 0x2e5013
leaq 0x296b17(%rip), %rdx    # 0x2e9da7
leaq 0x2a92d8(%rip), %rcx    # 0x2fc56f
leaq 0x2a8e53(%rip), %r8     # 0x2fc0f1
movl $0xcb, %r9d
xorl %eax, %eax
callq 0x17a50
callq 0x17390