// File: /workspace/github_c_makefile_star2_O3/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 0xbfb10
movq %rbx, %rdi
callq 0xfcc32
testb %al, %al
jne 0xbfc69
testq %r14, %r14
je 0xbfc64
movq 0x30(%r14), %rax
cmpq $-0x1, %rax
je 0xbfb2a
decq %rax
movq %rax, 0x28(%r14)
movzbl 0xf4(%r14), %eax
notq %rax
movq %rax, 0x38(%r14)
movq 0x70(%r14), %rdi
callq 0x11b0a1
cmpb $0x0, (%rax)
je 0xbfb6f
leaq 0x38(%r14), %r12
movq 0x70(%r14), %rdx
leaq 0x324ff2(%rip), %rsi    # 0x3e4b48
movq %r12, %rdi
movq %rbx, %rcx
callq 0x10ac4e
movl %eax, %r15d
testl %eax, %eax
jne 0xbfbd6
cmpq $0x0, (%r12)
je 0xbfbbf
cmpb $0x1, 0xf9(%r14)
jne 0xbfb8e
leaq 0x3fa298(%rip), %rax    # 0x4b9e18
cmpl $0x1, (%rax)
jbe 0xbfb8e
leaq 0x296f75(%rip), %rsi    # 0x356b01
jmp 0xbfbc6
xorl %r15d, %r15d
cmpq $0x1, 0x28(%r14)
jne 0xbfbd6
movq 0x8(%r14), %rdi
callq 0x11b0a1
cmpb $0x0, (%rax)
jne 0xbfbd6
cmpq $-0x1, 0x30(%r14)
leaq 0x296f7f(%rip), %rax    # 0x356b31
leaq 0x296fbb(%rip), %rsi    # 0x356b74
cmoveq %rax, %rsi
jmp 0xbfbc6
leaq 0x296f07(%rip), %rsi    # 0x356acd
movq %rbx, %rdi
xorl %eax, %eax
callq 0xfcb67
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
movq 0x108(%r14), %rdi
callq 0x10ac3f
testb %al, %al
jne 0xbfbf7
movabsq $0x7fefffffffffffff, %rax # imm = 0x7FEFFFFFFFFFFFFF
movq %rax, 0xe0(%r14)
movq 0x118(%r14), %rdi
callq 0x10ac3f
testb %al, %al
jne 0xbfc12
movq $0x0, 0x100(%r14)
movq 0x120(%r14), %rdi
callq 0x10ac3f
testb %al, %al
jne 0xbfc32
movq 0x60(%r14), %rdi
leaq 0x30a543(%rip), %rsi    # 0x3ca170
callq 0x11ad62
testl %r15d, %r15d
setne %al
testl %ebp, %ebp
setle %cl
orb %al, %cl
jne 0xbfc58
leaq 0x296f69(%rip), %rsi    # 0x356bb1
movq %rbx, %rdi
xorl %eax, %eax
callq 0xfcb67
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
movl %r15d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x1e72f
callq 0x1e6f6