// File: /workspace/github_c_makefile_star2_O2/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movl %edi, %ebp
testq %rdx, %rdx
je 0x2c45e
movq %rbx, %rdi
callq 0x89eb7
testb %al, %al
jne 0x2c5c1
testq %r14, %r14
je 0x2c593
testl %ebp, %ebp
je 0x2c4aa
movq 0x58(%r14), %rdi
callq 0xad1fa
leaq 0x2cd782(%rip), %rdi    # 0x2f9bfd
movq %rax, %rsi
callq 0x179e0
testl %eax, %eax
je 0x2c4bd
movq 0x58(%r14), %rdi
callq 0xad1fa
leaq 0x2c1317(%rip), %rdi    # 0x2ed7ae
movq %rax, %rsi
callq 0x179e0
testl %eax, %eax
jne 0x2c4c2
movb $0x1, 0x3(%r14)
jmp 0x2c4c2
leaq 0x2c12ab(%rip), %rsi    # 0x2ed75c
movq %rbx, %rdi
xorl %eax, %eax
callq 0x89dbb
jmp 0x2c4c2
movb $0x1, 0x2(%r14)
movb $0x1, %r12b
cmpb $0x0, 0x2(%r14)
jne 0x2c4d0
movb 0x3(%r14), %r12b
pushq $-0x1
popq %r15
testl %ebp, %ebp
je 0x2c587
cmpl $-0x1, 0x8(%r14)
je 0x2c4f8
cmpb $0x0, 0x3(%r14)
jne 0x2c4f8
leaq 0x2c128e(%rip), %rdi    # 0x2ed77f
xorl %eax, %eax
callq 0xb2cd0
testb %r12b, %r12b
je 0x2c530
movq 0x38(%r14), %rdi
callq 0x893b0
testb %al, %al
je 0x2c518
leaq 0x2c12a1(%rip), %rdi    # 0x2ed7b2
xorl %eax, %eax
callq 0xb2cd0
cmpl $0x2, %ebp
setge %al
andb %al, %r12b
cmpb $0x1, %r12b
jne 0x2c536
leaq 0x2c12b7(%rip), %rsi    # 0x2ed7e5
jmp 0x2c57d
cmpl $0x2, %ebp
setge %al
cmpl $0x1, %ebp
jne 0x2c552
movq 0x50(%r14), %rdi
callq 0xad289
testq %rax, %rax
je 0x2c564
leaq 0x2c12d8(%rip), %rsi    # 0x2ed828
jmp 0x2c57d
testb %al, %al
je 0x2c564
movq 0x50(%r14), %rdi
callq 0xad289
testq %rax, %rax
je 0x2c576
movq 0x48(%r14), %rdi
callq 0x9b4cb
movb %al, 0x4(%r14)
xorl %r15d, %r15d
jmp 0x2c587
leaq 0x2c131c(%rip), %rsi    # 0x2ed899
movq %rbx, %rdi
xorl %eax, %eax
callq 0x89dbb
movl %r15d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x40b9ce(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2b8a6f(%rip), %rsi    # 0x2e5013
leaq 0x31c0a8(%rip), %rdx    # 0x348653
leaq 0x2c118c(%rip), %rcx    # 0x2ed73e
leaq 0x2c0fad(%rip), %r8     # 0x2ed566
movl $0xc7, %r9d
jmp 0x2c5ed
movq 0x40b9a0(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2b8a41(%rip), %rsi    # 0x2e5013
leaq 0x2b8be6(%rip), %rdx    # 0x2e51bf
leaq 0x2c115e(%rip), %rcx    # 0x2ed73e
leaq 0x2c0f7f(%rip), %r8     # 0x2ed566
movl $0xc6, %r9d
xorl %eax, %eax
callq 0x17a50
callq 0x17390