// File: /workspace/github_c_makefile_star2_O2/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 0x24499
movq %rbx, %rdi
callq 0x89eb7
testb %al, %al
jne 0x24586
testl %ebp, %ebp
je 0x244bc
leaq 0x2c659c(%rip), %rsi    # 0x2eaa40
movq %rbx, %rdi
xorl %eax, %eax
callq 0x89dbb
pushq $-0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x38(%r14), %rdi
callq 0xad289
testq %rax, %rax
je 0x2451e
movq 0x38(%r14), %rdi
callq 0xad1fa
movq %rax, %r15
leaq 0x32c4ba(%rip), %rsi    # 0x350997
movq %rax, %rdi
callq 0x179e0
testl %eax, %eax
je 0x24512
leaq 0x33400a(%rip), %rsi    # 0x3584fa
movq %r15, %rdi
callq 0x179e0
testl %eax, %eax
je 0x24516
leaq 0x2c6553(%rip), %rsi    # 0x2eaa56
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x89dbb
jmp 0x244ae
pushq $0x3
jmp 0x24518
pushq $0x7
popq %rax
movb $0x1, (%r14,%rax)
movq 0x50(%r14), %rdi
callq 0x9b4cb
testb %al, %al
je 0x2454a
leaq 0x20(%r14), %rdi
movq 0x40(%r14), %rdx
leaq 0x3609ee(%rip), %rsi    # 0x384f28
movq %rbx, %rcx
callq 0x9b50d
testl %eax, %eax
jne 0x244ae
movq 0x58(%r14), %rdi
callq 0x9b4cb
movl %eax, %ecx
xorl %eax, %eax
testb %cl, %cl
je 0x244b1
movq 0x48(%r14), %rdx
addq $0x28, %r14
leaq 0x2c6316(%rip), %rsi    # 0x2ea884
movq %r14, %rdi
movq %rbx, %rcx
callq 0x9b50d
movl %eax, %ecx
xorl %eax, %eax
negl %ecx
sbbl %eax, %eax
jmp 0x244b1
movq 0x4139db(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2c0a7c(%rip), %rsi    # 0x2e5013
leaq 0x2c0c21(%rip), %rdx    # 0x2e51bf
leaq 0x2c647d(%rip), %rcx    # 0x2eaa22
leaq 0x2c60bb(%rip), %r8     # 0x2ea667
movl $0xfa, %r9d
xorl %eax, %eax
callq 0x17a50
callq 0x17390