// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/core/encseq.c
// Function: gt_encseq_builder_build
GtEncseq* gt_encseq_builder_build(GtEncseqBuilder *eb, GT_UNUSED GtError *err)
{
  GtEncseq *encseq = NULL;
  const GtEncseqAccessType sat = GT_ACCESS_TYPE_DIRECTACCESS;
  Gtssptaboutinfo *ssptaboutinfo;
  GtUword i, lastnonspecialrangelength = 0;
  GtSpecialcharinfo samplespecialcharinfo =
    {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};

  gt_assert(eb->plainseq);
  sequence2specialcharinfo(&samplespecialcharinfo, eb->plainseq,
                           eb->seqlen, eb->alpha, eb->logger);
  encseq = determineencseqkeyvalues(sat,
                                    eb->seqlen,
                                    eb->nof_seqs,
                                    0,
                                    0,
                                    samplespecialcharinfo.wildcardranges,
                                    0,
                                    eb->minseqlen,
                                    eb->maxseqlen,
                                    false,
                                    false,
                                    NULL,
                                    gt_alphabet_ref(eb->alpha),
                                    true,
                                    eb->logger);
  encseq->specialcharinfo = samplespecialcharinfo;
  encseq->plainseq = eb->plainseq;
  encseq->headerptr.characterdistribution
    = initcharacterdistribution(eb->alpha);
  encseq->filenametab = gt_str_array_new();
  gt_str_array_add_cstr(encseq->filenametab, "generated");
  encseq->numofdbfiles = 1UL;
  encseq->hasplainseqptr = !(eb->own);
  if (eb->wdestab) {
    encseq->hasallocateddestab = true;
    encseq->destab =
                  gt_malloc((size_t) gt_str_length(eb->destab) * sizeof (char));
    memcpy(encseq->destab,
           gt_str_get_mem(eb->destab),
           (size_t)  gt_str_length(eb->destab) * sizeof (char));
    encseq->destablength = gt_str_length(eb->destab);
  }
  /* create `new style' SSP tab */
  if (eb->nof_seqs > 1UL && eb->wssptab) {
    encseq->hasallocatedssptab = true;
    encseq->satsep = determineoptimalsssptablerep(eb->seqlen, eb->nof_seqs-1);
    ssptaboutinfo = ssptaboutinfo_new(eb->seqlen,eb->nof_seqs, &encseq->ssptab);
    gt_assert(ssptaboutinfo != NULL);
    for (i = 0; i < eb->seqlen; i++) {
      if (eb->plainseq[i] == (GtUchar) GT_SEPARATOR)
        ssptaboutinfo_processseppos(ssptaboutinfo, i);
      ssptaboutinfo_processanyposition(ssptaboutinfo, i);
    }
    GT_FREEARRAY(&eb->ssptab, GtUword);
    ssptaboutinfo_finalize(ssptaboutinfo);
    ssptaboutinfo_delete(ssptaboutinfo);
  }
  for (i = 0; i < eb->seqlen; i++) {
    if (!GT_ISSPECIAL(eb->plainseq[i])) {
      encseq->headerptr.characterdistribution[eb->plainseq[i]]++;
      lastnonspecialrangelength++;
    } else {
      if (lastnonspecialrangelength > 0) {
        if (lastnonspecialrangelength
              > encseq->specialcharinfo.lengthoflongestnonspecial) {
          encseq->specialcharinfo.lengthoflongestnonspecial =
                                                  lastnonspecialrangelength;
        }
        lastnonspecialrangelength = 0;
      }
    }
  }
  if (lastnonspecialrangelength > 0) {
    if (lastnonspecialrangelength
          > encseq->specialcharinfo.lengthoflongestnonspecial) {
      encseq->specialcharinfo.lengthoflongestnonspecial =
                                              lastnonspecialrangelength;
    }
  }
  if (eb->wsdstab) {
    encseq->hasallocatedsdstab = true;
    encseq->sdstab = eb->sdstab.spaceGtUword;
  }
  ALLASSIGNAPPENDFUNC(sat, encseq->satsep);
  encseq->mappedptr = NULL;
  encseq->ssptabmappedptr = NULL;
  encseq->accesstype_via_utables = false;
  eb->created_encseq = true;
  gt_encseq_builder_reset(eb);
  return encseq;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x188, %rsp            # imm = 0x188
movq (%rdi), %rax
movq %rax, 0xd8(%rsp)
testq %rax, %rax
je 0xcba7c
movq %rdi, %rbp
movq 0x8(%rdi), %rbx
movq 0x70(%rdi), %rax
movq %rax, 0xb8(%rsp)
movq 0x78(%rdi), %rax
movq %rax, 0xc8(%rsp)
callq 0xbf330
movq %rax, 0xa8(%rsp)
callq 0xbf330
movq %rax, %r13
callq 0xd728c
movq %rax, 0x70(%rsp)
movq %rbx, 0xd0(%rsp)
testq %rbx, %rbx
je 0xcb5ab
movq %r13, 0xb0(%rsp)
movq %rbp, 0xc0(%rsp)
movb $0x1, %al
movl %eax, 0x78(%rsp)
movq $0x0, 0x58(%rsp)
movq $0x0, 0x68(%rsp)
movq $0x0, 0x80(%rsp)
movq $0x0, 0x88(%rsp)
xorl %r14d, %r14d
xorl %r12d, %r12d
xorl %esi, %esi
xorl %ebp, %ebp
xorl %ecx, %ecx
movq $0x0, 0x90(%rsp)
movb $0x1, %r13b
movq %r14, %rbx
movq 0xd8(%rsp), %rax
movb (%rax,%r12), %r15b
cmpb $-0x3, %r15b
ja 0xcb3ba
movl 0x78(%rsp), %eax
testb $0x1, %al
movzbl %al, %eax
movl %eax, %edx
movl $0x0, %eax
cmovnel %eax, %edx
movl %edx, 0x78(%rsp)
testb $0x1, %r13b
movzbl %r13b, %r13d
cmovnel %eax, %r13d
testq %rsi, %rsi
je 0xcb326
movq 0xa8(%rsp), %rdi
movq %rcx, %r14
callq 0xbf34b
movq %r14, %rcx
testq %rcx, %rcx
movq 0x70(%rsp), %r14
je 0xcb340
movq 0xb0(%rsp), %rdi
movq %rcx, %rsi
callq 0xbf34b
incq %rbp
testq %r14, %r14
je 0xcb524
movq %rbp, 0x50(%rsp)
movq 0x90(%rsp), %rbp
cmpq $0x40, %rbp
jne 0xcb376
movl $0x40, %edx
movq %r14, %rdi
leaq 0xe0(%rsp), %rsi
callq 0xd72fb
xorl %ebp, %ebp
callq 0xb0b0
movq (%rax), %r14
movzbl %r15b, %esi
movq 0xb8(%rsp), %rdi
callq 0xbae5f
movsbq %al, %rax
movb (%r14,%rax,4), %al
movb %al, 0xe0(%rsp,%rbp)
incq %rbp
movq %rbp, 0x90(%rsp)
movq %rbx, %r14
xorl %ecx, %ecx
xorl %esi, %esi
movq 0x50(%rsp), %rbp
jmp 0xcb550
cmpq %rbx, %rbp
movq %rbx, %r14
cmovaq %rbp, %r14
testq %rbp, %rbp
cmoveq %rbx, %r14
cmpb $-0x2, %r15b
jne 0xcb492
movl %r13d, %eax
andb $0x1, %al
movzbl %al, %eax
movq 0x88(%rsp), %rbx
addq %rax, %rbx
incq %rcx
movq 0x80(%rsp), %rbp
incq %rbp
cmpq $0x0, 0x70(%rsp)
movq 0x68(%rsp), %r15
movq %rbx, 0x88(%rsp)
movq %rbp, 0x80(%rsp)
je 0xcb52d
movq %rcx, 0x60(%rsp)
movq %rsi, 0x50(%rsp)
movq 0x90(%rsp), %rax
cmpq $0x40, %rax
jne 0xcb448
movl $0x40, %edx
movq 0x70(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
callq 0xd72fb
xorl %eax, %eax
movq %rax, %rbp
callq 0xb0b0
movq (%rax), %rbx
movq 0xb8(%rsp), %rdi
movl $0xfe, %esi
callq 0xbae5f
movsbq %al, %rax
movb (%rbx,%rax,4), %al
movb %al, 0xe0(%rsp,%rbp)
incq %rbp
movq %rbp, 0x90(%rsp)
movq 0x58(%rsp), %rbx
movq 0x50(%rsp), %rsi
movq 0x60(%rsp), %rcx
jmp 0xcb532
movzbl %r13b, %r13d
testb $0x1, %r13b
movl $0x0, %eax
cmovnel %eax, %r13d
testq %rcx, %rcx
movq 0x68(%rsp), %r15
je 0xcb4c3
movq 0xb0(%rsp), %rdi
movq %rsi, %rbx
movq %rcx, %rsi
callq 0xbf34b
movq %rbx, %rsi
movq 0x70(%rsp), %rbp
testq %rbp, %rbp
movq 0x58(%rsp), %rbx
je 0xcb520
movq %rbp, %rdi
movq %rsi, 0x50(%rsp)
leaq 0xe0(%rsp), %rsi
movq 0x90(%rsp), %rdx
callq 0xd72fb
movq %rbp, %rdi
leaq 0x120(%rsp), %rsi
leaq 0x160(%rsp), %rdx
callq 0xd76c5
movq %rbp, %rdi
callq 0xd72ca
movq 0x50(%rsp), %rsi
movq $0x0, 0x90(%rsp)
xorl %ecx, %ecx
jmp 0xcb532
movq %rbx, %r14
xorl %ecx, %ecx
xorl %esi, %esi
jmp 0xcb550
movq 0x58(%rsp), %rbx
movl 0x78(%rsp), %eax
andb $0x1, %al
movzbl %al, %eax
addq %rax, %r15
movq %r15, 0x68(%rsp)
incq %rbx
movq %rbx, 0x58(%rsp)
incq %rsi
xorl %ebp, %ebp
incq %r12
cmpq %r12, 0xd0(%rsp)
jne 0xcb2d2
testq %rsi, %rsi
movq %rsi, %rbx
je 0xcb57f
movq 0xa8(%rsp), %rdi
movq %rbx, %rsi
movq %rcx, %r15
callq 0xbf34b
movq %r15, %rcx
testq %rcx, %rcx
movq 0xc0(%rsp), %rbp
movq 0xb0(%rsp), %r13
movq %rbx, 0x50(%rsp)
je 0xcb5ec
movq %r13, %rdi
movq %rcx, %rsi
movq %rcx, 0x60(%rsp)
callq 0xbf34b
jmp 0xcb5f5
movq $0x0, 0x58(%rsp)
movq $0x0, 0x68(%rsp)
movq $0x0, 0x80(%rsp)
movq $0x0, 0x88(%rsp)
xorl %r14d, %r14d
movq $0x0, 0x60(%rsp)
movq $0x0, 0x50(%rsp)
jmp 0xcb5f5
movq $0x0, 0x60(%rsp)
leaq 0x377a9(%rip), %rax     # 0x102da5
leaq 0x130(%rsp), %rbx
movq %rax, 0x28(%rbx)
xorps %xmm0, %xmm0
movaps %xmm0, (%rbx)
movaps %xmm0, 0x10(%rbx)
xorl %eax, %eax
movq %rax, 0x20(%rbx)
leaq 0x49ab(%rip), %r15      # 0xcffca
movq 0xa8(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0xbf535
movq 0x20(%rbx), %rax
movq %rax, 0x78(%rsp)
leaq 0x3c753(%rip), %rax     # 0x107d98
movq %rax, 0x28(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rbx)
movups %xmm0, 0x18(%rbx)
movq 0xc8(%rsp), %rax
movq %rax, (%rbx)
leaq 0x130(%rsp), %rbx
movq %r13, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0xbf535
movq 0x20(%rbx), %r15
movq %r12, %rdi
callq 0xbf8e3
movq %r13, %rdi
callq 0xbf8e3
movq 0x70(%rsp), %rdi
callq 0xd7876
movq 0x8(%rbp), %rbx
movq 0x10(%rbp), %r12
movups 0x18(%rbp), %xmm0
movaps %xmm0, 0x90(%rsp)
movq 0x70(%rbp), %rdi
callq 0xba023
movq 0x78(%rbp), %rcx
movq %rcx, 0x40(%rsp)
movq %rax, 0x30(%rsp)
xorl %eax, %eax
movq %rax, 0x28(%rsp)
movl %eax, 0x20(%rsp)
movl %eax, 0x18(%rsp)
movdqa 0x90(%rsp), %xmm0
movdqu %xmm0, 0x8(%rsp)
movq %rax, (%rsp)
xorl %r13d, %r13d
movl $0x1, 0x38(%rsp)
xorl %edi, %edi
movq %rbx, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
movq %r15, %r9
callq 0xc1b1a
movq %rax, %rbx
movq 0x58(%rsp), %rax
movq %rax, 0x178(%rbx)
movq 0x78(%rsp), %rax
movq %rax, 0x180(%rbx)
movq %rax, 0x188(%rbx)
movq 0x68(%rsp), %rax
movq %rax, 0x190(%rbx)
movq 0x50(%rsp), %rax
movq %rax, 0x198(%rbx)
movq 0x80(%rsp), %rax
movq %rax, 0x1a0(%rbx)
movq %r15, 0x1a8(%rbx)
movq %r15, 0x1b0(%rbx)
movq 0x88(%rsp), %rax
movq %rax, 0x1b8(%rbx)
movq 0x60(%rsp), %rax
movq %rax, 0x1c0(%rbx)
movq %r14, 0x1c8(%rbx)
pxor %xmm0, %xmm0
movdqu %xmm0, 0x1d0(%rbx)
movq %r13, 0x1e0(%rbx)
movq (%rbp), %rax
movq %rax, 0x290(%rbx)
movq 0x70(%rbp), %rdi
callq 0xcba86
movq %rax, 0xf8(%rbx)
callq 0x3c8cc
movq %rax, 0x1f8(%rbx)
leaq 0x3d890(%rip), %rsi     # 0x10904a
movq %rax, %rdi
callq 0x3c9a5
movq $0x1, 0x50(%rbx)
movb 0x68(%rbp), %al
xorb $0x1, %al
movb %al, 0x298(%rbx)
cmpb $0x1, 0x6a(%rbp)
jne 0xcb83c
movb $0x1, 0x208(%rbx)
movq 0x58(%rbp), %rdi
callq 0x3bb86
leaq 0x37128(%rip), %rsi     # 0x10291a
movq %rax, %rdi
movl $0x23d8, %edx           # imm = 0x23D8
callq 0x35862
movq %rax, %r15
movq %rax, 0x200(%rbx)
movq 0x58(%rbp), %rdi
callq 0x3bb77
movq %rax, %r12
movq 0x58(%rbp), %rdi
callq 0x3bb86
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0xb520
movq 0x58(%rbp), %rdi
callq 0x3bb86
movq %rax, 0x210(%rbx)
movq 0x10(%rbp), %rsi
cmpq $0x2, %rsi
jb 0xcb923
cmpb $0x1, 0x6b(%rbp)
jne 0xcb923
movb $0x1, 0x209(%rbx)
movq 0x8(%rbp), %rdi
decq %rsi
callq 0xc427f
movl %eax, 0x4(%rbx)
movq 0x8(%rbp), %rdi
movq 0x10(%rbp), %rsi
movq %rbx, %rdx
addq $0x240, %rdx            # imm = 0x240
callq 0xc4336
testq %rax, %rax
je 0xcba81
movq %rax, %r15
cmpq $0x0, 0x8(%rbp)
je 0xcb8cc
xorl %r12d, %r12d
movq (%rbp), %rax
cmpb $-0x1, (%rax,%r12)
jne 0xcb8ad
movq %r15, %rdi
movq %r12, %rsi
callq 0xc4427
cmpq 0x10(%r15), %r12
jne 0xcb8c3
movq %r15, %rdi
callq 0xcf47b
movq 0x18(%r15), %rax
addq %rax, 0x10(%r15)
incq %r12
cmpq 0x8(%rbp), %r12
jb 0xcb897
movq 0x40(%rbp), %rdi
testq %rdi, %rdi
je 0xcb905
leaq 0x40(%rbp), %r14
leaq 0x3703a(%rip), %rsi     # 0x10291a
movl $0x23e9, %edx           # imm = 0x23E9
callq 0x35c27
pxor %xmm0, %xmm0
movdqu %xmm0, (%r14)
movq $0x0, 0x10(%r14)
jmp 0xcb905
movq %r15, %rdi
callq 0xcf47b
movq 0x20(%r15), %rax
cmpq 0x30(%r15), %rax
jb 0xcb8fd
leaq 0x37004(%rip), %rsi     # 0x10291a
movq %r15, %rdi
movl $0x72e, %edx            # imm = 0x72E
callq 0x35c27
movq 0x8(%rbp), %rcx
testq %rcx, %rcx
je 0xcb98d
movq (%rbp), %rax
xorl %edx, %edx
xorl %esi, %esi
movzbl (%rax,%rsi), %edi
cmpq $0xfd, %rdi
jbe 0xcb94a
testq %rdx, %rdx
jne 0xcb966
xorl %edx, %edx
jmp 0xcb95c
movq 0xf8(%rbx), %rcx
incq (%rcx,%rdi,8)
incq %rdx
movq 0x8(%rbp), %rcx
incq %rsi
cmpq %rcx, %rsi
jb 0xcb934
jmp 0xcb978
cmpq 0x1c8(%rbx), %rdx
jbe 0xcb946
movq %rdx, 0x1c8(%rbx)
jmp 0xcb946
testq %rdx, %rdx
je 0xcb98d
cmpq 0x1c8(%rbx), %rdx
jbe 0xcb98d
movq %rdx, 0x1c8(%rbx)
cmpb $0x1, 0x6c(%rbp)
jne 0xcb9a5
movb $0x1, 0x20a(%rbx)
movq 0x28(%rbp), %rax
movq %rax, 0x218(%rbx)
leaq 0x4d0c(%rip), %rax      # 0xd06b8
movq %rax, 0x110(%rbx)
leaq 0x3b9eb(%rip), %rax     # 0x1073a5
movq %rax, 0x118(%rbx)
leaq 0x4d02(%rip), %rax      # 0xd06ca
movq %rax, 0x120(%rbx)
leaq 0x3b9ed(%rip), %rax     # 0x1073c3
movq %rax, 0x128(%rbx)
leaq 0x4d83(%rip), %rax      # 0xd0767
movq %rax, 0x140(%rbx)
leaq 0x3b9f0(%rip), %rax     # 0x1073e2
movq %rax, 0x148(%rbx)
xorl %edi, %edi
callq 0xd3975
testb %al, %al
je 0xcba21
movl 0x4(%rbx), %eax
cmpq $0x6, %rax
ja 0xcba3f
imulq $0x70, %rax, %rax
leaq 0x84f08(%rip), %rcx     # 0x150920
pshufd $0x4e, 0x50(%rax,%rcx), %xmm0 # xmm0 = mem[2,3,0,1]
jmp 0xcba43
leaq 0x4d4e(%rip), %rax      # 0xd0776
movq %rax, 0x160(%rbx)
leaq 0x3b9db(%rip), %rax     # 0x107411
movq %rax, 0x168(%rbx)
jmp 0xcba4b
pxor %xmm0, %xmm0
movdqu %xmm0, 0x160(%rbx)
movb $0x0, 0x3a9(%rbx)
pxor %xmm0, %xmm0
movdqu %xmm0, 0x10(%rbx)
movb $0x1, 0x69(%rbp)
movq %rbp, %rdi
callq 0xcb16a
movq %rbx, %rax
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x2e21a
callq 0x2e1e1