// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/tools/gt_genomediff.c
// Function: gt_genomediff_arguments_check
static int gt_genomediff_arguments_check(int rest_argc,
                                         void *tool_arguments,
                                         GtError *err)
{
  GtGenomediffArguments *arguments = tool_arguments;
  bool prepared_index;
  int had_err = 0;
  gt_error_check(err);
  gt_assert(arguments);

  if (rest_argc == 0) {
    gt_error_set(err, "give at least one file (base)name!");
    had_err = -1;
  }
  if (!had_err) {
    if (strcmp("esa", gt_str_get(arguments->indextype)) == 0)
      arguments->with_esa = true;
    else if (strcmp("pck", gt_str_get(arguments->indextype)) == 0)
      arguments->with_pck = true;
  }
  prepared_index = (arguments->with_esa || arguments->with_pck);

  if (!had_err && arguments->user_max_depth != -1 && !arguments->with_pck)
    gt_warning("option -maxdepth does only apply to -indextype pck");

  if (!had_err &&
      prepared_index && gt_encseq_options_mirrored_value(arguments->loadopts))
    gt_warning("option -mirrored is ignored with esa and pck index");

  if (!had_err && prepared_index && rest_argc > 1) {
    gt_error_set(err, "there should be only one basename argument with "
                 "-indextype esa|pck");
    had_err = -1;
  }
  if (rest_argc == 1 && gt_str_length(arguments->indexname) != 0) {
    gt_error_set(err, "Option -indexname is only needed with sequence files, "
                 "if one file is given as argument, this should be an index.");
    had_err = -1;
  }
  if (!had_err && rest_argc > 1 && gt_str_length(arguments->indexname) == 0) {
    gt_error_set(err, "more than one input file given, please use -indexname "
                 "for basename of indices created during run.");
    had_err = -1;
  }

  if (!had_err)
    arguments->with_units = gt_option_is_set(arguments->ref_unitfile);

  return had_err;
}

// Assembly:
subq $0x38, %rsp
movl %edi, 0x34(%rsp)
movq %rsi, 0x28(%rsp)
movq %rdx, 0x20(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x18(%rsp)
movl $0x0, 0x10(%rsp)
cmpq $0x0, 0x20(%rsp)
je 0x3a294
movq 0x20(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x3a25c
jmp 0x3a294
movq 0x601d3d(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4dbda6(%rip), %rsi    # 0x516013
leaq 0x4dbf4b(%rip), %rdx    # 0x5161bf
leaq 0x4e4563(%rip), %rcx    # 0x51e7de
leaq 0x4e4384(%rip), %r8     # 0x51e606
movl $0xc6, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x3a296
jmp 0x3a298
cmpq $0x0, 0x18(%rsp)
jne 0x3a2d8
movq 0x601cf9(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4dbd62(%rip), %rsi    # 0x516013
leaq 0x5408a7(%rip), %rdx    # 0x57ab5f
leaq 0x4e451f(%rip), %rcx    # 0x51e7de
leaq 0x4e4340(%rip), %r8     # 0x51e606
movl $0xc7, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x3a2da
cmpl $0x0, 0x34(%rsp)
jne 0x3a2fc
movq 0x20(%rsp), %rdi
leaq 0x4e450f(%rip), %rsi    # 0x51e7fc
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x10(%rsp) # imm = 0xFFFFFFFF
cmpl $0x0, 0x10(%rsp)
jne 0x3a35f
movq 0x18(%rsp), %rax
movq 0x58(%rax), %rdi
callq 0x11dee0
movq %rax, %rsi
leaq 0x4f0a2d(%rip), %rdi    # 0x52ad48
callq 0x19980
cmpl $0x0, %eax
jne 0x3a330
movq 0x18(%rsp), %rax
movb $0x1, 0x2(%rax)
jmp 0x3a35d
movq 0x18(%rsp), %rax
movq 0x58(%rax), %rdi
callq 0x11dee0
movq %rax, %rsi
leaq 0x4e4506(%rip), %rdi    # 0x51e84e
callq 0x19980
cmpl $0x0, %eax
jne 0x3a35b
movq 0x18(%rsp), %rax
movb $0x1, 0x3(%rax)
jmp 0x3a35d
jmp 0x3a35f
movq 0x18(%rsp), %rcx
movb $0x1, %al
testb $0x1, 0x2(%rcx)
movb %al, 0xf(%rsp)
jne 0x3a37c
movq 0x18(%rsp), %rax
movb 0x3(%rax), %al
movb %al, 0xf(%rsp)
movb 0xf(%rsp), %al
andb $0x1, %al
movb %al, 0x17(%rsp)
cmpl $0x0, 0x10(%rsp)
jne 0x3a3b1
movq 0x18(%rsp), %rax
cmpl $-0x1, 0x8(%rax)
je 0x3a3b1
movq 0x18(%rsp), %rax
testb $0x1, 0x3(%rax)
jne 0x3a3b1
leaq 0x4e4475(%rip), %rdi    # 0x51e81f
movb $0x0, %al
callq 0x1267d0
cmpl $0x0, 0x10(%rsp)
jne 0x3a3e1
testb $0x1, 0x17(%rsp)
je 0x3a3e1
movq 0x18(%rsp), %rax
movq 0x38(%rax), %rdi
callq 0xd78c0
testb $0x1, %al
jne 0x3a3d3
jmp 0x3a3e1
leaq 0x4e4478(%rip), %rdi    # 0x51e852
movb $0x0, %al
callq 0x1267d0
cmpl $0x0, 0x10(%rsp)
jne 0x3a411
testb $0x1, 0x17(%rsp)
je 0x3a411
cmpl $0x1, 0x34(%rsp)
jle 0x3a411
movq 0x20(%rsp), %rdi
leaq 0x4e4483(%rip), %rsi    # 0x51e885
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x10(%rsp) # imm = 0xFFFFFFFF
cmpl $0x1, 0x34(%rsp)
jne 0x3a447
movq 0x18(%rsp), %rax
movq 0x50(%rax), %rdi
callq 0x11dfa0
cmpq $0x0, %rax
je 0x3a447
movq 0x20(%rsp), %rdi
leaq 0x4e4490(%rip), %rsi    # 0x51e8c8
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x10(%rsp) # imm = 0xFFFFFFFF
cmpl $0x0, 0x10(%rsp)
jne 0x3a484
cmpl $0x1, 0x34(%rsp)
jle 0x3a484
movq 0x18(%rsp), %rax
movq 0x50(%rax), %rdi
callq 0x11dfa0
cmpq $0x0, %rax
jne 0x3a484
movq 0x20(%rsp), %rdi
leaq 0x4e44c4(%rip), %rsi    # 0x51e939
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x10(%rsp) # imm = 0xFFFFFFFF
cmpl $0x0, 0x10(%rsp)
jne 0x3a4a6
movq 0x18(%rsp), %rax
movq 0x48(%rax), %rdi
callq 0xf74a0
movb %al, %cl
movq 0x18(%rsp), %rax
andb $0x1, %cl
movb %cl, 0x4(%rax)
movl 0x10(%rsp), %eax
addq $0x38, %rsp
retq
nop