// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/tools/gt_encseq_decode.c
// Function: gt_encseq_decode_arguments_check
int gt_encseq_decode_arguments_check(GT_UNUSED int rest_argc,
                                     void *tool_arguments,
                                     GtError* err)
{
  GtEncseqDecodeArguments *args = (GtEncseqDecodeArguments*) tool_arguments;
  int had_err = 0;
  int rval;

  if (gt_str_length(args->dir) > 0) {
    rval = gt_readmode_parse(gt_str_get(args->dir), err);
    if (rval < 0)
      had_err = -1;
    else
      args->rm = (GtReadmode) rval;
  }
  if (!had_err && args->seqrng.start != GT_UNDEF_UWORD &&
        args->seqrng.end != GT_UNDEF_UWORD && args->seq != GT_UNDEF_UWORD) {
    gt_error_set(err, "'-seq' and '-seqrange' cannot be used together");
    had_err = -1;
  }
  if (!had_err && (args->seqrng.start != GT_UNDEF_UWORD ||
        args->seqrng.end != GT_UNDEF_UWORD || args->seq != GT_UNDEF_UWORD)
        && strcmp(gt_str_get(args->mode), "fasta") != 0) {
    gt_error_set(err, "'-seq' and '-seqrange' can only be used with the "
                      "'-output fasta' option");
    had_err = -1;
  }
  if (!had_err && (args->rng.start != GT_UNDEF_UWORD ||
        args->rng.end != GT_UNDEF_UWORD)
        && strcmp(gt_str_get(args->mode), "concat") != 0) {
    gt_error_set(err, "'-range' can only be used with the "
                      "'-output concat' option");
    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)
movq 0x8(%rsp), %rax
movq 0x48(%rax), %rdi
callq 0x11dfa0
cmpq $0x0, %rax
jbe 0x2f9e3
movq 0x8(%rsp), %rax
movq 0x48(%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
movq 0x10(%rsp), %rsi
callq 0x1099b0
movl %eax, (%rsp)
cmpl $0x0, (%rsp)
jge 0x2f9d6
movl $0xffffffff, 0x4(%rsp)  # imm = 0xFFFFFFFF
jmp 0x2f9e1
movl (%rsp), %ecx
movq 0x8(%rsp), %rax
movl %ecx, 0x40(%rax)
jmp 0x2f9e3
cmpl $0x0, 0x4(%rsp)
jne 0x2fa29
movq 0x8(%rsp), %rax
cmpq $-0x1, 0x28(%rax)
je 0x2fa29
movq 0x8(%rsp), %rax
cmpq $-0x1, 0x30(%rax)
je 0x2fa29
movq 0x8(%rsp), %rax
cmpq $-0x1, 0x50(%rax)
je 0x2fa29
movq 0x10(%rsp), %rdi
leaq 0x4ec9be(%rip), %rsi    # 0x51c3d8
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x4(%rsp)  # imm = 0xFFFFFFFF
cmpl $0x0, 0x4(%rsp)
jne 0x2fa91
movq 0x8(%rsp), %rax
cmpq $-0x1, 0x28(%rax)
jne 0x2fa54
movq 0x8(%rsp), %rax
cmpq $-0x1, 0x30(%rax)
jne 0x2fa54
movq 0x8(%rsp), %rax
cmpq $-0x1, 0x50(%rax)
je 0x2fa91
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
leaq 0x51c40c(%rip), %rsi    # 0x54be78
callq 0x19980
cmpl $0x0, %eax
je 0x2fa91
movq 0x10(%rsp), %rdi
leaq 0x4ec985(%rip), %rsi    # 0x51c407
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x4(%rsp)  # imm = 0xFFFFFFFF
cmpl $0x0, 0x4(%rsp)
jne 0x2faed
movq 0x8(%rsp), %rax
cmpq $-0x1, 0x18(%rax)
jne 0x2fab0
movq 0x8(%rsp), %rax
cmpq $-0x1, 0x20(%rax)
je 0x2faed
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
leaq 0x4ea5ea(%rip), %rsi    # 0x51a0b2
callq 0x19980
cmpl $0x0, %eax
je 0x2faed
movq 0x10(%rsp), %rdi
leaq 0x4ec971(%rip), %rsi    # 0x51c44f
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x4(%rsp)  # imm = 0xFFFFFFFF
movl 0x4(%rsp), %eax
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)