// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/tools/gt_seed_extend.c
// Function: gt_seed_extend_arguments_check
static int gt_seed_extend_arguments_check(int rest_argc, void *tool_arguments,
                                          GtError *err)
{
  GtSeedExtendArguments *arguments = tool_arguments;
  int had_err = 0;
  gt_error_check(err);
  gt_assert(arguments != NULL);

  /* -t parameter as alias for maxfreq := t - 1 */
  if (arguments->dbs_suppress < GT_UWORD_MAX) {
    arguments->dbs_maxfreq = arguments->dbs_suppress - 1;
  }

  /* parse memlimit argument */
  arguments->dbs_memlimit = GT_UWORD_MAX;
  if (arguments->histogram == true) {
    arguments->dbs_memlimit -= 1;
  }
  if (strcmp(gt_str_get(arguments->dbs_memlimit_str), "") != 0) {
    had_err = gt_option_parse_spacespec(&arguments->dbs_memlimit,
                                        "memlimit",
                                        arguments->dbs_memlimit_str,
                                        err);
    if (!had_err && arguments->dbs_memlimit == 0) {
      gt_error_set(err,
                   "argument to option \"-memlimit\" must be at least 1MB");
      had_err = -1;
    }
  }
#ifdef GT_THREADS_ENABLED
  if (!had_err && arguments->compute_ani && gt_jobs > 1)
  {
    gt_error_set(err,"option -ani does not work with multiple threads");
    had_err = -1;
  }
#endif

  /* minimum maxfreq value for 1 input file */
  if (!had_err && arguments->dbs_maxfreq == 1 &&
      strcmp(gt_str_get(arguments->dbs_queryname), "") == 0) {
    if (arguments->dbs_suppress == GT_UWORD_MAX) {
      gt_error_set(err, "argument to option \"-maxfreq\" must be >= 2 to "
                   "find matching k-mers");
    } else {
      gt_error_set(err, "argument to option \"-t\" must be >= 3 to find "
                   "matching k-mers");
    }
    had_err = -1;
  }

  if (!gt_option_is_set(arguments->se_ref_op_evalue))
  {
    arguments->se_evalue_threshold = DBL_MAX;
  }
  if (!gt_option_is_set(arguments->se_ref_op_maxmat))
  {
    arguments->maxmat = 0;
  }
  if (!gt_option_is_set(arguments->ref_diagband_statistics))
  {
    gt_str_set(arguments->diagband_statistics_arg,"");
  }
  /* no extra arguments */
  if (!had_err && rest_argc > 0) {
    gt_error_set(err, "too many arguments (-help shows correct usage)");
    had_err = -1;
  }
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movl %edi, %ebp
testq %rdx, %rdx
je 0x43721
movq %rbx, %rdi
callq 0x89eb7
testb %al, %al
jne 0x4389c
testq %r14, %r14
je 0x4386e
movq 0x30(%r14), %rax
cmpq $-0x1, %rax
je 0x4373b
decq %rax
movq %rax, 0x28(%r14)
movzbl 0xf4(%r14), %eax
notq %rax
movq %rax, 0x38(%r14)
movq 0x70(%r14), %rdi
callq 0xad1fa
cmpb $0x0, (%rax)
je 0x43780
leaq 0x38(%r14), %r12
movq 0x70(%r14), %rdx
leaq 0x3417c1(%rip), %rsi    # 0x384f28
movq %r12, %rdi
movq %rbx, %rcx
callq 0x9b50d
movl %eax, %r15d
testl %eax, %eax
jne 0x437e5
cmpq $0x0, (%r12)
je 0x437d0
cmpb $0x1, 0xf9(%r14)
jne 0x4379f
leaq 0x3f5637(%rip), %rax    # 0x438dc8
cmpl $0x1, (%rax)
jbe 0x4379f
leaq 0x2b3374(%rip), %rsi    # 0x2f6b11
jmp 0x437d7
xorl %r15d, %r15d
cmpq $0x1, 0x28(%r14)
jne 0x437e5
movq 0x8(%r14), %rdi
callq 0xad1fa
cmpb $0x0, (%rax)
jne 0x437e5
cmpq $-0x1, 0x30(%r14)
leaq 0x2b337e(%rip), %rax    # 0x2f6b41
leaq 0x2b33ba(%rip), %rsi    # 0x2f6b84
cmoveq %rax, %rsi
jmp 0x437d7
leaq 0x2b3306(%rip), %rsi    # 0x2f6add
movq %rbx, %rdi
xorl %eax, %eax
callq 0x89dbb
pushq $-0x1
popq %r15
movq 0x108(%r14), %rdi
callq 0x9b4cb
testb %al, %al
jne 0x43806
movabsq $0x7fefffffffffffff, %rax # imm = 0x7FEFFFFFFFFFFFFF
movq %rax, 0xe0(%r14)
movq 0x118(%r14), %rdi
callq 0x9b4cb
testb %al, %al
jne 0x4381e
andq $0x0, 0x100(%r14)
movq 0x120(%r14), %rdi
callq 0x9b4cb
testb %al, %al
jne 0x4383e
movq 0x60(%r14), %rdi
leaq 0x326d37(%rip), %rsi    # 0x36a570
callq 0xacc8b
testl %r15d, %r15d
setne %al
testl %ebp, %ebp
setle %cl
orb %al, %cl
jne 0x43862
pushq $-0x1
popq %r15
leaq 0x2b3369(%rip), %rsi    # 0x2f6bc1
movq %rbx, %rdi
xorl %eax, %eax
callq 0x89dbb
movl %r15d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x3f46f3(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2a1794(%rip), %rsi    # 0x2e5013
leaq 0x2a29e6(%rip), %rdx    # 0x2e626c
leaq 0x2b3231(%rip), %rcx    # 0x2f6abe
leaq 0x2b25d4(%rip), %r8     # 0x2f5e68
movl $0x2a6, %r9d            # imm = 0x2A6
jmp 0x438c8
movq 0x3f46c5(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2a1766(%rip), %rsi    # 0x2e5013
leaq 0x2a190b(%rip), %rdx    # 0x2e51bf
leaq 0x2b3203(%rip), %rcx    # 0x2f6abe
leaq 0x2b25a6(%rip), %r8     # 0x2f5e68
movl $0x2a5, %r9d            # imm = 0x2A5
xorl %eax, %eax
callq 0x17a50
callq 0x17390