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

  if (rest_argc != 1) {
    had_err = -1;
    gt_error_set(err, "archive parameter is mandatory, use -help for usage");
  }
  if (!had_err &&
      arguments->range.start != GT_UNDEF_UWORD) {
    if (arguments->range.start > arguments->range.end) {
      had_err = -1;
      gt_error_set(err, "give range of positions in the form 'a b' with a "
                   "<= b");
    }
    if (!had_err &&
        strcmp(gt_str_get(arguments->mode), "fasta") == 0) {
      had_err = -1;
      gt_error_set(err, "-range is incompatible to fasta output");
    }
  }
  if (!had_err &&
      arguments->seqrange.start != GT_UNDEF_UWORD) {
    if (arguments->seqrange.start > arguments->seqrange.end) {
      had_err = -1;
      gt_error_set(err, "give range of positions in the form 'a b' with a "
                   "<= b");
    }
  }

  if (!had_err &&
      gt_option_is_set(arguments->sepchar_opt)) {
    if (strcmp(gt_str_get(arguments->mode), "fasta") == 0) {
      had_err = -1;
      gt_error_set(err, "-sepchar is incompatible with -output fasta");
    }
    if (!had_err &&
        gt_str_length(arguments->sepchar) != (GtUword) 1) {
      had_err = -1;
      gt_error_set(err, "sepchar (\"%s\" given) has to be a single character",
                   gt_str_get(arguments->sepchar));
    }
  }

  return had_err;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movl %edi, %ebp
testq %rdx, %rdx
je 0x20596
movq %rbx, %rdi
callq 0x89eb7
testb %al, %al
jne 0x206a1
testq %r14, %r14
je 0x20673
cmpl $0x1, %ebp
jne 0x205ed
movq 0x28(%r14), %rax
cmpq $-0x1, %rax
je 0x205d4
cmpq 0x30(%r14), %rax
ja 0x205e4
movq 0x10(%r14), %rdi
callq 0xad1fa
leaq 0x2f989a(%rip), %rsi    # 0x319e5e
movq %rax, %rdi
callq 0x179e0
testl %eax, %eax
je 0x20661
movq 0x38(%r14), %rax
cmpq $-0x1, %rax
je 0x20608
cmpq 0x40(%r14), %rax
jbe 0x20608
leaq 0x2c8afd(%rip), %rsi    # 0x2e90e8
jmp 0x205f4
leaq 0x2c8ac0(%rip), %rsi    # 0x2e90b4
movq %rbx, %rdi
xorl %eax, %eax
callq 0x89dbb
pushq $-0x1
popq %rbp
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
movq 0x20(%r14), %rdi
callq 0x9b4cb
xorl %ebp, %ebp
testb %al, %al
je 0x20601
movq 0x10(%r14), %rdi
callq 0xad1fa
leaq 0x2f9837(%rip), %rsi    # 0x319e5e
movq %rax, %rdi
callq 0x179e0
testl %eax, %eax
je 0x2066a
movq 0x18(%r14), %rdi
callq 0xad289
cmpq $0x1, %rax
je 0x20601
movq 0x18(%r14), %rdi
callq 0xad1fa
leaq 0x2c8b1f(%rip), %rsi    # 0x2e9171
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x89dbb
jmp 0x205fe
leaq 0x2c8ab6(%rip), %rsi    # 0x2e911e
jmp 0x205f4
leaq 0x2c8ad4(%rip), %rsi    # 0x2e9145
jmp 0x205f4
movq 0x4178ee(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2c498f(%rip), %rsi    # 0x2e5013
leaq 0x327fc8(%rip), %rdx    # 0x348653
leaq 0x2c89fd(%rip), %rcx    # 0x2e908f
leaq 0x2c87ea(%rip), %r8     # 0x2e8e83
movl $0x9e, %r9d
jmp 0x206cd
movq 0x4178c0(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2c4961(%rip), %rsi    # 0x2e5013
leaq 0x2c4b06(%rip), %rdx    # 0x2e51bf
leaq 0x2c89cf(%rip), %rcx    # 0x2e908f
leaq 0x2c87bc(%rip), %r8     # 0x2e8e83
movl $0x9d, %r9d
xorl %eax, %eax
callq 0x17a50
callq 0x17390