// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/tools/gt_encseq2spm.c
// Function: gt_encseq2spm_arguments_check
static int gt_encseq2spm_arguments_check(int rest_argc,
                                         void *tool_arguments,
                                         GtError *err)
{
  GtEncseq2spmArguments *arguments = tool_arguments;
  bool haserr = false;

  gt_error_check(err);
  if (rest_argc != 0)
  {
    gt_error_set(err,"unnecessary arguments");
    haserr = true;
  }
  if (!haserr && gt_str_length(arguments->spmspec) > 0)
  {
    const char *spmspecstring = gt_str_get(arguments->spmspec);
    if (strcmp(spmspecstring,"show") == 0)
    {
      arguments->outputspms = true;
    } else
    {
      if (strcmp(spmspecstring,"count") == 0)
      {
        arguments->countspms = true;
      } else
      {
        gt_error_set(err,"illegal argument \"%s\" to option -spm",
                     spmspecstring);
        haserr = true;
      }
    }
  }
  if (!haserr && gt_option_is_set(arguments->refoptionmemlimit))
  {
    if (gt_option_parse_spacespec(&arguments->maximumspace,
                                  "memlimit",
                                  arguments->memlimitarg,
                                  err) != 0)
    {
      haserr = true;
    }
  }
  if (!haserr && gt_option_is_set(arguments->refoptionphase2extra))
  {
    if (gt_option_parse_spacespec(&arguments->phase2extra,
                                  "phase2extra",
                                  arguments->phase2extraarg,
                                  err) != 0)
    {
      haserr = true;
    }
  }
  return haserr ? -1 : 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movl %edi, %ebp
testq %rdx, %rdx
je 0xa4c90
movq %rbx, %rdi
callq 0x101a9a
testb %al, %al
jne 0xa4d98
testl %ebp, %ebp
je 0xa4caa
leaq 0x2aedc6(%rip), %rsi    # 0x353a61
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1019cf
movb $0x1, %bpl
jmp 0xa4cac
xorl %ebp, %ebp
testb %bpl, %bpl
jne 0xa4d16
movq 0x38(%r14), %rdi
callq 0x120d4c
testq %rax, %rax
je 0xa4d16
movq 0x38(%r14), %rdi
callq 0x120d23
movq %rax, %r15
leaq 0x314e7d(%rip), %rsi    # 0x3b9b4f
movq %rax, %rdi
callq 0x17a40
testl %eax, %eax
je 0xa4d0a
leaq 0x31ca35(%rip), %rsi    # 0x3c171a
movq %r15, %rdi
callq 0x17a40
testl %eax, %eax
je 0xa4d11
leaq 0x2aed7f(%rip), %rsi    # 0x353a77
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x1019cf
movb $0x1, %bpl
jmp 0xa4d16
movb $0x1, 0x3(%r14)
jmp 0xa4d16
movb $0x1, 0x7(%r14)
testb %bpl, %bpl
jne 0xa4d4d
movq 0x50(%r14), %rdi
callq 0x10fe52
testb %al, %al
je 0xa4d4d
leaq 0x20(%r14), %rdi
movq 0x40(%r14), %rdx
leaq 0x3495d5(%rip), %rsi    # 0x3ee30c
movq %rbx, %rcx
callq 0x10fe61
testl %eax, %eax
movzbl %bpl, %eax
movl $0x1, %ebp
cmovel %eax, %ebp
testb %bpl, %bpl
jne 0xa4d87
movq 0x58(%r14), %rdi
callq 0x10fe52
testb %al, %al
je 0xa4d87
movq 0x48(%r14), %rdx
addq $0x28, %r14
leaq 0x2aeb37(%rip), %rsi    # 0x3538a5
movq %r14, %rdi
movq %rbx, %rcx
callq 0x10fe61
testl %eax, %eax
movzbl %bpl, %eax
movl $0x1, %ebp
cmovel %eax, %ebp
movzbl %bpl, %eax
negl %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x19e64