// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/tools/gt_packedindex_chk_integrity.c
// Function: gt_packedindex_chk_integrity
extern int
gt_packedindex_chk_integrity(int argc, const char *argv[], GtError *err)
{
  struct encIdxSeq *seq;
  struct chkIndexOptions params;
  const char *inputProject;
  int parsedArgs;
  int had_err = 0;
  GtLogger *logger = NULL;
  gt_error_check(err);

  switch (parseChkIndexOptions(&parsedArgs, argc, argv, &params, err))
  {
    case GT_OPTION_PARSER_OK:
      break;
    case GT_OPTION_PARSER_ERROR:
      return -1;
    case GT_OPTION_PARSER_REQUESTS_EXIT:
      return 0;
  }

  inputProject = argv[parsedArgs];

  logger = gt_logger_new(params.verboseOutput, GT_LOGGER_DEFLT_PREFIX, stdout);

  seq = gt_loadEncIdxSeq(inputProject, params.encType, params.EISFeatureSet,
                      logger, err);
  if ((had_err = seq == NULL))
  {
    gt_error_set(err, "Failed to load index: %s", inputProject);
  }
  else
  {
    fprintf(stderr, "# Using index over sequence "GT_WU""
            " symbols long.\n", EISLength(seq));
    {
      int corrupt
        = gt_EISVerifyIntegrity(seq, inputProject, params.skipCount,
                             params.progressInterval, stderr,
                             params.checkFlags, logger, err);
      if ((had_err = corrupt != 0))
      {
        fputs(gt_error_get(err), stderr); fputs("\n", stderr);
        gt_error_set(err, "Integrity check failed for index: %s",
                  EISIntegrityCheckResultStrings[corrupt]);
      }
    }
  }
  if (seq) gt_deleteEncIdxSeq(seq);
  if (logger) gt_logger_delete(logger);
  return had_err?-1:0;
}

// Assembly:
subq $0x78, %rsp
movl %edi, 0x70(%rsp)
movq %rsi, 0x68(%rsp)
movq %rdx, 0x60(%rsp)
movl $0x0, 0x28(%rsp)
movq $0x0, 0x20(%rsp)
cmpq $0x0, 0x60(%rsp)
je 0x48263
movq 0x60(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x4822b
jmp 0x48263
movq 0x5f3d6e(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4cddd7(%rip), %rsi    # 0x516013
leaq 0x4cdf7c(%rip), %rdx    # 0x5161bf
leaq 0x4da34b(%rip), %rcx    # 0x522595
leaq 0x4da361(%rip), %r8     # 0x5225b2
movl $0x39, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x48265
movl 0x70(%rsp), %esi
movq 0x68(%rsp), %rdx
movq 0x60(%rsp), %r8
leaq 0x2c(%rsp), %rdi
leaq 0x38(%rsp), %rcx
callq 0x48480
movl %eax, %ecx
movl %ecx, 0x18(%rsp)
testl %eax, %eax
je 0x482a4
jmp 0x4828e
movl 0x18(%rsp), %eax
subl $0x1, %eax
je 0x482a6
jmp 0x48299
movl 0x18(%rsp), %eax
subl $0x2, %eax
je 0x482b3
jmp 0x482c0
jmp 0x482c0
movl $0xffffffff, 0x74(%rsp) # imm = 0xFFFFFFFF
jmp 0x48468
movl $0x0, 0x74(%rsp)
jmp 0x48468
movq 0x68(%rsp), %rax
movslq 0x2c(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x30(%rsp)
movb 0x4c(%rsp), %al
movq 0x5f3c5a(%rip), %rcx    # 0x63bf38
movq (%rcx), %rdx
leaq 0x4cf604(%rip), %rsi    # 0x5178ec
andb $0x1, %al
movzbl %al, %edi
callq 0xe7870
movq %rax, 0x20(%rsp)
movq 0x30(%rsp), %rdi
movl 0x50(%rsp), %esi
movl 0x54(%rsp), %edx
movq 0x20(%rsp), %rcx
movq 0x60(%rsp), %r8
callq 0x229440
movq %rax, 0x58(%rsp)
cmpq $0x0, 0x58(%rsp)
sete %al
movb %al, %cl
andb $0x1, %cl
movzbl %cl, %ecx
movl %ecx, 0x28(%rsp)
testb $0x1, %al
jne 0x48333
jmp 0x48350
movq 0x60(%rsp), %rdi
movq 0x30(%rsp), %rdx
leaq 0x4da297(%rip), %rsi    # 0x5225db
movb $0x0, %al
callq 0xd88c0
jmp 0x4842f
movq 0x5f3c49(%rip), %rax    # 0x63bfa0
movq (%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x58(%rsp), %rdi
callq 0x48650
movq 0x10(%rsp), %rdi
movq %rax, %rdx
leaq 0x4da27c(%rip), %rsi    # 0x5225f4
movb $0x0, %al
callq 0x199f0
movq 0x58(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq 0x40(%rsp), %rcx
movq 0x5f3c06(%rip), %rax    # 0x63bfa0
movq (%rax), %r8
movl 0x48(%rsp), %r9d
movq 0x20(%rsp), %r10
movq 0x60(%rsp), %rax
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x229640
movl %eax, 0x1c(%rsp)
cmpl $0x0, 0x1c(%rsp)
setne %al
movb %al, %cl
andb $0x1, %cl
movzbl %cl, %ecx
movl %ecx, 0x28(%rsp)
testb $0x1, %al
jne 0x483d8
jmp 0x4842d
movq 0x60(%rsp), %rdi
callq 0xd8b20
movq %rax, %rdi
movq 0x5f3bb4(%rip), %rax    # 0x63bfa0
movq (%rax), %rsi
callq 0x19810
movq 0x5f3ba5(%rip), %rax    # 0x63bfa0
movq (%rax), %rsi
leaq 0x54ae6e(%rip), %rdi    # 0x593273
callq 0x19810
movq 0x60(%rsp), %rdi
movslq 0x1c(%rsp), %rcx
leaq 0x5f5e65(%rip), %rax    # 0x63e280
movq (%rax,%rcx,8), %rdx
leaq 0x4da1fd(%rip), %rsi    # 0x522623
movb $0x0, %al
callq 0xd88c0
jmp 0x4842f
cmpq $0x0, 0x58(%rsp)
je 0x48441
movq 0x58(%rsp), %rdi
callq 0x229620
cmpq $0x0, 0x20(%rsp)
je 0x48453
movq 0x20(%rsp), %rdi
callq 0xe7ed0
movl 0x28(%rsp), %edx
xorl %eax, %eax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpl $0x0, %edx
cmovnel %ecx, %eax
movl %eax, 0x74(%rsp)
movl 0x74(%rsp), %eax
addq $0x78, %rsp
retq
nopw %cs:(%rax,%rax)