// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x28, %rsp
movl %edi, 0x24(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movl $0x0, 0x4(%rsp)
cmpq $0x0, 0x10(%rsp)
je 0x5e2b4
movq 0x10(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x5e27c
jmp 0x5e2b4
movq 0x5ddd1d(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4b7d86(%rip), %rsi    # 0x516013
leaq 0x4b7f2b(%rip), %rdx    # 0x5161bf
leaq 0x4c98eb(%rip), %rcx    # 0x527b86
leaq 0x4c8c8e(%rip), %r8     # 0x526f30
movl $0x2a5, %r9d            # imm = 0x2A5
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x5e2b6
jmp 0x5e2b8
cmpq $0x0, 0x8(%rsp)
jne 0x5e2f8
movq 0x5ddcd9(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4b7d42(%rip), %rsi    # 0x516013
leaq 0x4b8fac(%rip), %rdx    # 0x517284
leaq 0x4c98a7(%rip), %rcx    # 0x527b86
leaq 0x4c8c4a(%rip), %r8     # 0x526f30
movl $0x2a6, %r9d            # imm = 0x2A6
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x5e2fa
movq 0x8(%rsp), %rax
cmpq $-0x1, 0x30(%rax)
jae 0x5e31c
movq 0x8(%rsp), %rax
movq 0x30(%rax), %rcx
subq $0x1, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x28(%rax)
movq 0x8(%rsp), %rax
movq $-0x1, 0x38(%rax)
movq 0x8(%rsp), %rax
movb 0xf4(%rax), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x1, %eax
jne 0x5e34f
movq 0x8(%rsp), %rax
movq 0x38(%rax), %rcx
subq $0x1, %rcx
movq %rcx, 0x38(%rax)
movq 0x8(%rsp), %rax
movq 0x70(%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
leaq 0x53f2c1(%rip), %rsi    # 0x59d628
callq 0x19980
cmpl $0x0, %eax
je 0x5e3c8
movq 0x8(%rsp), %rdi
addq $0x38, %rdi
movq 0x8(%rsp), %rax
movq 0x70(%rax), %rdx
movq 0x10(%rsp), %rcx
leaq 0x55c0f9(%rip), %rsi    # 0x5ba488
callq 0xf7500
movl %eax, 0x4(%rsp)
cmpl $0x0, 0x4(%rsp)
jne 0x5e3c6
movq 0x8(%rsp), %rax
cmpq $0x0, 0x38(%rax)
jne 0x5e3c6
movq 0x10(%rsp), %rdi
leaq 0x4c97ee(%rip), %rsi    # 0x527ba5
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x4(%rsp)  # imm = 0xFFFFFFFF
jmp 0x5e3c8
cmpl $0x0, 0x4(%rsp)
jne 0x5e404
movq 0x8(%rsp), %rax
testb $0x1, 0xf9(%rax)
je 0x5e404
leaq 0x5def94(%rip), %rax    # 0x63d378
cmpl $0x1, (%rax)
jbe 0x5e404
movq 0x10(%rsp), %rdi
leaq 0x4c97e4(%rip), %rsi    # 0x527bd9
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x4(%rsp)  # imm = 0xFFFFFFFF
cmpl $0x0, 0x4(%rsp)
jne 0x5e475
movq 0x8(%rsp), %rax
cmpq $0x1, 0x28(%rax)
jne 0x5e475
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
leaq 0x53f1f9(%rip), %rsi    # 0x59d628
callq 0x19980
cmpl $0x0, %eax
jne 0x5e475
movq 0x8(%rsp), %rax
cmpq $-0x1, 0x30(%rax)
jne 0x5e45a
movq 0x10(%rsp), %rdi
leaq 0x4c97b8(%rip), %rsi    # 0x527c09
movb $0x0, %al
callq 0xd88c0
jmp 0x5e46d
movq 0x10(%rsp), %rdi
leaq 0x4c97e6(%rip), %rsi    # 0x527c4c
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x4(%rsp)  # imm = 0xFFFFFFFF
movq 0x8(%rsp), %rax
movq 0x108(%rax), %rdi
callq 0xf74a0
testb $0x1, %al
jne 0x5e49f
movq 0x8(%rsp), %rax
movsd 0x4ba8b9(%rip), %xmm0   # 0x518d50
movsd %xmm0, 0xe0(%rax)
movq 0x8(%rsp), %rax
movq 0x118(%rax), %rdi
callq 0xf74a0
testb $0x1, %al
jne 0x5e4c4
movq 0x8(%rsp), %rax
movq $0x0, 0x100(%rax)
movq 0x8(%rsp), %rax
movq 0x120(%rax), %rdi
callq 0xf74a0
testb $0x1, %al
jne 0x5e4ee
movq 0x8(%rsp), %rax
movq 0x60(%rax), %rdi
leaq 0x53f13f(%rip), %rsi    # 0x59d628
callq 0x11d650
cmpl $0x0, 0x4(%rsp)
jne 0x5e517
cmpl $0x0, 0x24(%rsp)
jle 0x5e517
movq 0x10(%rsp), %rdi
leaq 0x4c9781(%rip), %rsi    # 0x527c89
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x4(%rsp)  # imm = 0xFFFFFFFF
movl 0x4(%rsp), %eax
addq $0x28, %rsp
retq