// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/condenseq.c
// Function: gt_condenseq_new_from_file
GtCondenseq *gt_condenseq_new_from_file(const char *indexname,
                                        GtLogger *logger, GtError *err)
{
  int had_err = 0;
  FILE* fp;
  GtEncseqLoader *esl;
  GtEncseq *unique_es;
  GtCondenseq *condenseq = NULL;
  /*load unique_es*/
  esl = gt_encseq_loader_new();
  gt_encseq_loader_disable_autosupport(esl);
  gt_encseq_loader_drop_md5_support(esl);
  gt_encseq_loader_require_ssp_tab(esl);
  unique_es = gt_encseq_loader_load(esl, indexname, err);
  if (!unique_es)
    had_err = -1;
  if (!had_err) {
    gt_encseq_loader_delete(esl);
    condenseq = condenseq_new_empty(gt_encseq_alphabet(unique_es));
    condenseq->filename = gt_cstr_dup(indexname);
    condenseq->unique_es = unique_es;
    fp = gt_fa_fopen_with_suffix(indexname, GT_CONDENSEQ_FILE_SUFFIX,
                                 "rb", err);
    if (fp == NULL) {
      had_err = -1;
    }
    else {
      had_err = condenseq_io(condenseq, fp, gt_io_error_fread, err);
      if (!had_err) {
        GtUword i;
        gt_assert(condenseq->uniques);
        gt_assert(condenseq->links);
        gt_fa_fclose(fp);
        /*create link array for each unique entry*/
        for (i = 0; i < condenseq->uds_nelems; i++) {
          GT_INITARRAY(&(condenseq->uniques[i].links),uint32_t);
        }
        /* check for overflows */
        if (condenseq->lds_nelems > (GtUword) ((uint32_t) 0 - (uint32_t) 1)) {
          gt_error_set(err, "Overflow, to many link-elements. Can't be stored");
          had_err = -1;
        }
        /* iterate through link entrys and store ids in corresponding unique
          entry array */
        for (i = 0; !had_err && (GtUword) i < condenseq->lds_nelems; i++) {
          GtUword uid = condenseq->links[i].unique_id;
          gt_assert(uid < condenseq->uds_nelems);
          GT_STOREINARRAY(&(condenseq->uniques[uid].links),
                          uint32_t,
                          10,
                          (uint32_t) i);
        }
      }
    }
  }
  if (!had_err) {
    gt_assert(condenseq != NULL);
    if (condenseq->id_len != GT_UNDEF_UWORD)
      gt_logger_log(logger, "IDs const len: " GT_WU, condenseq->id_len);
    else
      gt_logger_log(logger, "using sdstab to access IDs");
  }
  if (had_err) {
    gt_condenseq_delete(condenseq);
    condenseq = NULL;
  }
  return (condenseq);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r12
callq 0xf36ef
movq %rax, %r14
movq %rax, %rdi
callq 0xf69cc
movq %r14, %rdi
callq 0xf691b
movq %r14, %rdi
callq 0xf6a0a
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0xf374b
testq %rax, %rax
je 0x132beb
movq %rax, %r13
movq %r14, %rdi
callq 0xf424d
movq %r13, %rdi
callq 0xf02da
movq %rbx, (%rsp)
movq %rax, %rbx
leaq 0x24f5bf(%rip), %rbp    # 0x381f44
movl $0xa0, %edi
movq %rbp, %rsi
movl $0xdf, %edx
callq 0x1092b2
movq %rax, %r14
movq %rbx, %rdi
movq (%rsp), %rbx
callq 0xd3007
movq %rax, (%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x68(%r14)
movups %xmm0, 0x78(%r14)
movups %xmm0, 0x88(%r14)
movq $0x0, 0x98(%r14)
movq $-0x1, 0x58(%r14)
movups %xmm0, 0x8(%r14)
movups %xmm0, 0x18(%r14)
movups %xmm0, 0x28(%r14)
movups %xmm0, 0x38(%r14)
movups %xmm0, 0x48(%r14)
movq %r12, %rdi
callq 0xe8760
movq %rax, 0x40(%r14)
movq %r13, 0x18(%r14)
leaq 0x24f89d(%rip), %rsi    # 0x38229e
leaq 0x27c2b7(%rip), %rdx    # 0x3aecbf
movq %r12, %rdi
movq %rbp, %rcx
movl $0x228, %r8d            # imm = 0x228
movq %rbx, %r9
callq 0x101dff
testq %rax, %rax
je 0x132bee
movq %rax, %r12
movl $0x1, 0x14(%rsp)
leaq 0x78(%r14), %rdi
movl $0x8, %esi
movl $0x1, %edx
movq %rax, %rcx
movq %rbx, %r8
callq 0x15e8b7
movl %eax, %ebp
testl %eax, %eax
jne 0x132a6b
leaq 0x14(%rsp), %rdi
movl $0x4, %esi
movl $0x1, %edx
movq %r12, %rcx
movq %rbx, %r8
callq 0x15e8b7
movl %eax, %ebp
testl %ebp, %ebp
sete %al
movl 0x14(%rsp), %edx
cmpl $0x1, %edx
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x132a9c
leaq 0x24fd16(%rip), %rsi    # 0x38279e
movq %rbx, %rdi
movl $0x1, %ecx
xorl %eax, %eax
callq 0x1019cf
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testl %ebp, %ebp
jne 0x132abe
leaq 0x80(%r14), %rdi
movl $0x8, %esi
movl $0x1, %edx
movq %r12, %rcx
movq %rbx, %r8
callq 0x15e8b7
movl %eax, %ebp
testl %ebp, %ebp
jne 0x132add
leaq 0x70(%r14), %rdi
movl $0x8, %esi
movl $0x1, %edx
movq %r12, %rcx
movq %rbx, %r8
callq 0x15e8b7
movl %eax, %ebp
leaq 0x8(%r14), %rax
movq %rax, 0x8(%rsp)
testl %ebp, %ebp
jne 0x132b4e
cmpq $0x0, 0x70(%r14)
jne 0x132aff
leaq 0x24fcee(%rip), %rdi    # 0x3827e6
xorl %eax, %eax
callq 0x125448
movq 0x8(%rsp), %rax
cmpq $0x0, (%rax)
jne 0x132b30
movq 0x70(%r14), %rdi
leaq 0x24f42f(%rip), %rdx    # 0x381f44
movl $0x20, %esi
movl $0x1d9, %ecx            # imm = 0x1D9
callq 0x1093ef
movq %rax, 0x8(%r14)
movq 0x70(%r14), %rax
movq %rax, 0x68(%r14)
leaq 0x98(%r14), %rdi
movl $0x8, %esi
movl $0x1, %edx
movq %r12, %rcx
movq %rbx, %r8
callq 0x15e8b7
movl %eax, %ebp
testl %ebp, %ebp
movq %r15, 0x18(%rsp)
je 0x132bf5
testl %ebp, %ebp
jne 0x132de8
leaq 0x58(%r14), %rax
movq %rax, 0x20(%rsp)
movl $0x20, %ebx
movq $-0x1, %r15
movq (%rsp), %r13
incq %r15
cmpq 0x98(%r14), %r15
jae 0x132d24
movq 0x10(%r14), %rbp
testq %rbp, %rbp
je 0x132f78
leaq (%rbx,%rbp), %rdi
addq $-0x8, %rdi
movl $0x8, %esi
movl $0x1, %edx
movq %r12, %rcx
movq %r13, %r8
callq 0x15e8b7
testl %eax, %eax
je 0x132bbe
xorl %eax, %eax
jmp 0x132bde
addq %rbx, %rbp
movl $0x4, %esi
movl $0x1, %edx
movq %rbp, %rdi
movq %r12, %rcx
movq %r13, %r8
callq 0x15e8b7
testl %eax, %eax
sete %al
addq $0x28, %rbx
testb %al, %al
jne 0x132b7c
jmp 0x132de8
xorl %r14d, %r14d
xorl %ebx, %ebx
jmp 0x132def
movq 0x98(%r14), %rax
testq %rax, %rax
je 0x132f87
cmpq $0x0, 0x10(%r14)
jne 0x132c37
shlq $0x3, %rax
leaq (%rax,%rax,4), %rdi
leaq 0x24f329(%rip), %rsi    # 0x381f44
movl $0x1e5, %edx            # imm = 0x1E5
callq 0x1092b2
movq %rax, 0x10(%r14)
movq 0x98(%r14), %rax
movq %rax, 0x90(%r14)
cmpq $0x0, 0x70(%r14)
je 0x132b5b
movl $0x10, %r13d
xorl %ebx, %ebx
movq 0x8(%rsp), %rax
movq (%rax), %r15
testq %r15, %r15
je 0x132f7d
leaq (%r15,%r13), %rdi
addq $-0x8, %rdi
movl $0x8, %esi
movl $0x1, %edx
movq %r12, %rcx
movq (%rsp), %r8
callq 0x15e8b7
movl %eax, %ebp
testl %eax, %eax
jne 0x132c9b
leaq (%r15,%r13), %rdi
movl $0x4, %esi
movl $0x1, %edx
movq %r12, %rcx
movq (%rsp), %r8
callq 0x15e8b7
movl %eax, %ebp
testl %ebp, %ebp
jne 0x132cbf
leaq (%r15,%r13), %rdi
addq $0x4, %rdi
movl $0x4, %esi
movl $0x1, %edx
movq %r12, %rcx
movq (%rsp), %r8
callq 0x15e8b7
movl %eax, %ebp
testl %ebp, %ebp
jne 0x132ce3
leaq (%r15,%r13), %rdi
addq $0x8, %rdi
movl $0x4, %esi
movl $0x1, %edx
movq %r12, %rcx
movq (%rsp), %r8
callq 0x15e8b7
movl %eax, %ebp
testl %ebp, %ebp
jne 0x132d06
movq -0x10(%r15,%r13), %rdi
movq %r12, %rsi
movq (%rsp), %rdx
callq 0x13f5a2
movq %rax, -0x10(%r15,%r13)
xorl %ebp, %ebp
testq %rax, %rax
sete %bpl
testl %ebp, %ebp
jne 0x132b5b
incq %rbx
addq $0x20, %r13
cmpq 0x70(%r14), %rbx
jb 0x132c4a
jmp 0x132b5b
cmpq $0x2, 0x80(%r14)
jb 0x132d4b
movq 0x28(%r14), %rdi
movq %r12, %rsi
movq (%rsp), %rdx
callq 0x15e70f
movq %rax, 0x28(%r14)
testq %rax, %rax
je 0x132de8
movl $0x8, %esi
movl $0x1, %edx
movq 0x20(%rsp), %rdi
movq %r12, %rcx
movq (%rsp), %r8
callq 0x15e8b7
testl %eax, %eax
jne 0x132de8
movq 0x20(%rsp), %rax
cmpq $-0x1, (%rax)
jne 0x132d8e
movq 0x20(%r14), %rdi
movq %r12, %rsi
movq (%rsp), %rdx
callq 0x15e70f
movq %rax, 0x20(%r14)
testq %rax, %rax
je 0x132de8
movq %r14, %rdi
addq $0x60, %rdi
movl $0x8, %esi
movl $0x1, %edx
movq %r12, %rcx
movq (%rsp), %r8
callq 0x15e8b7
testl %eax, %eax
jne 0x132de8
movq 0x48(%r14), %rdi
movq 0x60(%r14), %rsi
leaq 0x24f186(%rip), %rdx    # 0x381f44
movl $0x204, %ecx            # imm = 0x204
callq 0x1094e6
movq %rax, 0x48(%r14)
movq 0x60(%r14), %rdx
movl $0x1, %esi
movq %rax, %rdi
movq %r12, %rcx
movq (%rsp), %r8
callq 0x15e8b7
testl %eax, %eax
je 0x132e4b
xorl %ebx, %ebx
movq 0x18(%rsp), %r15
testb %bl, %bl
je 0x132e2e
testq %r14, %r14
je 0x132f82
movq 0x58(%r14), %rdx
cmpq $-0x1, %rdx
je 0x132e19
leaq 0x24f55c(%rip), %rsi    # 0x382369
movq %r15, %rdi
xorl %eax, %eax
callq 0x10906e
jmp 0x132e2a
leaq 0x24f55c(%rip), %rsi    # 0x38237c
movq %r15, %rdi
xorl %eax, %eax
callq 0x10906e
testb %bl, %bl
jne 0x132e39
movq %r14, %rdi
callq 0x1323d6
xorl %r14d, %r14d
movq %r14, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpq $0x0, 0x10(%r14)
movq 0x18(%rsp), %r15
je 0x132f96
movq 0x8(%rsp), %rax
cmpq $0x0, (%rax)
je 0x132f9b
movq %r12, %rdi
callq 0x101e80
movq 0x98(%r14), %rax
testq %rax, %rax
je 0x132e99
movq 0x10(%r14), %rcx
xorps %xmm0, %xmm0
movups %xmm0, (%rcx)
movq $0x0, 0x10(%rcx)
addq $0x28, %rcx
decq %rax
jne 0x132e85
movq 0x70(%r14), %rdi
shrq $0x20, %rdi
sete %bl
jne 0x132f5a
movl $0x14, %r13d
xorl %ebp, %ebp
movq %rdi, 0x8(%rsp)
cmpq 0x70(%r14), %rbp
jae 0x132f71
movq 0x8(%r14), %rax
movl (%rax,%r13), %eax
cmpq %rax, 0x98(%r14)
jbe 0x132f91
movq %r15, %r12
movq 0x10(%r14), %rcx
leaq (%rax,%rax,4), %r15
movq 0x8(%rcx,%r15,8), %rax
cmpq %rax, 0x10(%rcx,%r15,8)
jb 0x132f22
leaq (%rcx,%r15,8), %rcx
leaq 0xa(%rax), %rdx
movq %rdx, 0x8(%rcx)
movq (%rcx), %rdi
leaq 0x28(,%rax,4), %rsi
leaq 0x24f039(%rip), %rdx    # 0x381f44
movl $0x244, %ecx            # imm = 0x244
callq 0x1094e6
movq 0x8(%rsp), %rdi
movq 0x10(%r14), %rcx
movq %rax, (%rcx,%r15,8)
movq 0x10(%r14), %rcx
movq (%rcx,%r15,8), %rax
testq %rax, %rax
je 0x132f8c
leaq (%rcx,%r15,8), %rcx
movq 0x10(%rcx), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x10(%rcx)
movl %ebp, (%rax,%rdx,4)
incq %rbp
addq $0x20, %r13
testq %rdi, %rdi
movq %r12, %r15
je 0x132eb7
jmp 0x132def
leaq 0x24f381(%rip), %rsi    # 0x3822e2
movq (%rsp), %rdi
xorl %eax, %eax
callq 0x1019cf
jmp 0x132def
movb $0x1, %bl
jmp 0x132def
callq 0x3dd45
callq 0x3dc28
callq 0x3ddb7
callq 0x3dd7e
callq 0x3dc9a
callq 0x3dc61
callq 0x3dd0c
callq 0x3dcd3