LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/range.c
// Function: gt_ranges_show
void gt_ranges_show(GtArray *ranges, GtFile *outfp)
{
  GtRange *range;
  GtUword i;
  gt_assert(ranges);
  for (i = 0; i < gt_array_size(ranges); i++) {
    range = gt_array_get(ranges, i);
    gt_file_xprintf(outfp, "("GT_WU","GT_WU")", range->start, range->end);
  }
  gt_file_xfputc('\n', outfp);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x7efd6
movq %rsi, %rbx
movq %rdi, %r14
callq 0x6ecda
testq %rax, %rax
je 0x7efbe
leaq 0x73b2b(%rip), %r15     # 0xf2ab7
xorl %r12d, %r12d
movq %r14, %rdi
movq %r12, %rsi
callq 0x6e9fa
movq (%rax), %rdx
movq 0x8(%rax), %rcx
movq %rbx, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x757a1
incq %r12
movq %r14, %rdi
callq 0x6ecda
cmpq %rax, %r12
jb 0x7ef8f
movl $0xa, %edi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x759ff
callq 0x1d9b9
nop
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/safearith.c
// Function: gt_safe_mult_u32_check_func
uint32_t gt_safe_mult_u32_check_func(uint32_t a, uint32_t b,
                                     const char *src_file, int src_line,
                                     GtOverflowHandlerFunc handler_func,
                                     void *data)
{
  GtUint64 x = (GtUint64) a * b;
  if (x > 0xffffffff) { /* overflow */
    handler_func(src_file, src_line, data);
  }
  return x;
}

// Assembly:
pushq %rbx
movq %rdx, %r10
movl %edi, %eax
mull %esi
movl %eax, %ebx
jno 0x7f039
movq %r10, %rdi
movl %ecx, %esi
movq %r9, %rdx
callq *%r8
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/safearith.c
// Function: gt_safe_mult_u64_check_func
uint64_t gt_safe_mult_u64_check_func(uint64_t a, uint64_t b,
                                     const char *src_file, int src_line,
                                     GtOverflowHandlerFunc handler_func,
                                     void *data)
{
  uint32_t a_hi = a >> 32,
           a_lo = a & 0xffffffff,
           b_hi = b >> 32,
           b_lo = b & 0xffffffff;
  /*
     x = 0xffffffff
     a = a_hi*x + a_lo
     b = b_hi*x + b_lo
     a * b = (a_hi*x + a_lo) * (b_hi*x + b_lo)
           = a_hi*x*b_hi*x + a_hi*x*b_lo + a_lo*b_hi*x + a_lo*b_lo
  */
  if (a_hi && b_hi) {    /* overflow */
    handler_func(src_file, src_line, data);
  }
  a = (uint64_t)(a_hi) * b_lo + (uint64_t)(a_lo) * b_hi;
  if (a > 0xffffffff) {  /* overflow */
    handler_func(src_file, src_line, data);
  }
  return (a << 32) + (uint64_t)(a_lo) * b_lo;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %r13
movq %r8, %rbp
movq %rdx, %r10
movq %rsi, %r15
movq %rdi, %r12
movq %rdi, %r14
shrq $0x20, %r14
movq %rsi, %rbx
shrq $0x20, %rbx
testq %r14, %r14
sete %al
testq %rbx, %rbx
sete %dl
orb %al, %dl
jne 0x7f094
movq %r10, %rdi
movl %ecx, %esi
movq %r13, %rdx
movl %ecx, 0xc(%rsp)
movq %r10, 0x10(%rsp)
callq *%rbp
movq 0x10(%rsp), %r10
movl 0xc(%rsp), %ecx
movl %r15d, %eax
imulq %r14, %rax
movl %r12d, %edx
imulq %rdx, %rbx
addq %rax, %rbx
shrq $0x20, %rbx
je 0x7f0b5
movq %r10, %rdi
movl %ecx, %esi
movq %r13, %rdx
callq *%rbp
imulq %r12, %r15
movq %r15, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/sequence_buffer.c
// Function: gt_sequence_buffer_create
GtSequenceBuffer*
gt_sequence_buffer_create(const GtSequenceBufferClass *sic)
{
  GtSequenceBuffer *si;
  gt_assert(sic && sic->size);
  si = gt_calloc(1, sic->size);
  si->c_class = sic;
  si->pvt = gt_calloc(1, sizeof (GtSequenceBufferMembers));
  return si;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x7f18c
movq %rdi, %rbx
movq (%rdi), %rsi
testq %rsi, %rsi
je 0x7f18c
leaq 0x73c35(%rip), %r14     # 0xf2d85
movl $0x1, %edi
movq %r14, %rdx
movl $0x25, %ecx
callq 0x3601f
movq %rax, %r15
movq %rbx, (%rax)
movl $0x1, %edi
movl $0x6088, %esi           # imm = 0x6088
movq %r14, %rdx
movl $0x27, %ecx
callq 0x3601f
movq %rax, 0x8(%r15)
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
callq 0x1da64
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/sequence_buffer.c
// Function: gt_sequence_buffer_delete
void gt_sequence_buffer_delete(GtSequenceBuffer *si)
{
  if (!si) return;
  if (si->pvt->reference_count) {
    si->pvt->reference_count--;
    return;
  }
  gt_assert(si->c_class && si->c_class->free);
  si->c_class->free(si);
  gt_free(si->pvt);
  gt_free(si);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x7f1b1
movq %rdi, %rbx
movq 0x8(%rdi), %rax
movq 0x30(%rax), %rcx
testq %rcx, %rcx
je 0x7f1b9
decq %rcx
movq %rcx, 0x30(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq (%rbx), %rax
testq %rax, %rax
je 0x7f1fe
movq 0x18(%rax), %rax
testq %rax, %rax
je 0x7f1fe
movq %rbx, %rdi
callq *%rax
movq 0x8(%rbx), %rdi
leaq 0x73bab(%rip), %r14     # 0xf2d85
movq %r14, %rsi
movl $0x34, %edx
callq 0x362a0
movq %rbx, %rdi
movq %r14, %rsi
movl $0x35, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x362a0
callq 0x1da9b
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/sequence_buffer.c
// Function: gt_sequence_buffer_next
int gt_sequence_buffer_next(GtSequenceBuffer *sb, GtUchar *val,
                            GtError *err)
{
  GtSequenceBufferMembers *pvt;
  pvt = sb->pvt;
  if (pvt->nextread >= pvt->nextfree) {
    if (pvt->complete) {
      return 0;
    }
    if (pvt->descptr && pvt->nextread > 0)
      gt_desc_buffer_reset(pvt->descptr);
    if (gt_sequence_buffer_advance(sb, err) != 0) {
      return -1;
    }
    pvt->nextread = 0;
    if (pvt->nextfree == 0) {
      return 0;
    }
  }
  *val = pvt->outbuf[pvt->nextread++];
  return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq 0x8(%rdi), %r12
movq 0x50(%r12), %rcx
cmpq 0x58(%r12), %rcx
jae 0x7f48c
movq 0x50(%r12), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x50(%r12)
movb 0x2079(%r12,%rax), %al
movb %al, (%rbx)
movl $0x1, %eax
jmp 0x7f4cc
xorl %eax, %eax
cmpb $0x0, 0x18(%r12)
jne 0x7f4cc
movq %rdx, %r14
movq %rdi, %r15
movq 0x20(%r12), %rdi
testq %rdi, %rdi
sete %al
testq %rcx, %rcx
sete %cl
orb %al, %cl
jne 0x7f4b6
callq 0xa4528
movq %r15, %rdi
movq %r14, %rsi
callq 0x7f434
movl %eax, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %ecx, %ecx
je 0x7f4d8
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq $0x0, 0x50(%r12)
cmpq $0x0, 0x58(%r12)
movl $0x0, %eax
jne 0x7f46d
jmp 0x7f4cc
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/sequence_buffer.c
// Function: gt_sequence_buffer_next_with_original_raw
int gt_sequence_buffer_next_with_original_raw(GtSequenceBuffer *sb,
                                              GtUchar *val, char *orig,
                                              GtError *err)
{
  GtSequenceBufferMembers *pvt;
  pvt = sb->pvt;
  if (pvt->nextread >= pvt->nextfree) {
    if (pvt->complete) {
      return 0;
    }
    if (pvt->descptr && pvt->nextread > 0)
      gt_desc_buffer_reset(pvt->descptr);
    if (gt_sequence_buffer_advance(sb, err) != 0) {
      return -1;
    }
    pvt->nextread = 0;
    if (pvt->nextfree == 0) {
      return 0;
    }
  }
  *val = pvt->outbuf[pvt->nextread];
  *orig = pvt->outbuforig[pvt->nextread];
  pvt->nextread++;
  return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %r15
movq %rdx, %rbx
movq %rsi, %r14
movq 0x8(%rdi), %r13
movq 0x50(%r13), %rcx
cmpq 0x58(%r13), %rcx
jae 0x7f53c
movq 0x50(%r13), %rax
movb 0x2079(%r13,%rax), %al
movb %al, (%r14)
movq 0x50(%r13), %rax
movb 0x4079(%r13,%rax), %al
movb %al, (%rbx)
incq 0x50(%r13)
movl $0x1, %eax
jmp 0x7f577
xorl %eax, %eax
cmpb $0x0, 0x18(%r13)
jne 0x7f577
movq %rdi, %r12
movq 0x20(%r13), %rdi
testq %rdi, %rdi
sete %al
testq %rcx, %rcx
sete %cl
orb %al, %cl
jne 0x7f561
callq 0xa4528
movq %r12, %rdi
movq %r15, %rsi
callq 0x7f434
movl %eax, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %ecx, %ecx
je 0x7f581
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq $0x0, 0x50(%r13)
cmpq $0x0, 0x58(%r13)
movl $0x0, %eax
jne 0x7f514
jmp 0x7f577
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/sequence_buffer_dust.c
// Function: gt_dust_masker_new
GtDustMasker* gt_dust_masker_new(bool echo, GtUword windowsize,
                                 double threshold,
                                 GtUword linker)
{
  GtDustMasker *dust_masker = gt_calloc(1, sizeof *dust_masker);
  dust_masker->echo = echo;
  dust_masker->windowsize = windowsize;
  dust_masker->threshold = threshold;
  dust_masker->linker = linker;

  dust_masker->buf_size = windowsize + linker;
  dust_masker->buf = gt_calloc(dust_masker->buf_size,
                               sizeof *(dust_masker->buf));
  dust_masker->buf_initialized = false;
  dust_masker->buf_readpos = 0;
  dust_masker->buf_insertpos = 0;
  dust_masker->buf_remaining = 0;

  dust_masker->nuc_val1 = 0;
  dust_masker->nuc_val2 = 0;

  dust_masker->rv = 0;
  dust_masker->rw = 0;
  dust_masker->L_param = 0;
  dust_masker->w_queue = gt_inl_queue_new(windowsize);

  dust_masker->total_length = 0;
  dust_masker->current_length = 0;
  dust_masker->current_pos_total = 0;
  dust_masker->current_pos_local = 0;

  dust_masker->last_seq_start = 0;

  GT_INITARRAY(&dust_masker->masked_regions,GtDustRange);
  dust_masker->mask_length = 0;
  dust_masker->next_mask = 0;
  dust_masker->current_is_masked = false;
  dust_masker->current_region_index = 0;

  dust_masker->masking_done = false;

  return dust_masker;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %r15
movsd %xmm0, 0x8(%rsp)
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x73845(%rip), %r12     # 0xf30da
movl $0x1, %edi
movl $0x3d8, %esi            # imm = 0x3D8
movq %r12, %rdx
movl $0x5f, %ecx
callq 0x3601f
movq %rax, %r14
movb %bpl, 0x3b8(%rax)
movq %rbx, 0x3c0(%rax)
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x3d0(%rax)
movq %r15, 0x3c8(%rax)
addq %rbx, %r15
movq %r15, 0x28(%rax)
movl $0x20, %esi
movq %r15, %rdi
movq %r12, %rdx
movl $0x67, %ecx
callq 0x3601f
movq %rax, (%r14)
movb $0x0, 0x8(%r14)
movw $0x0, 0x30(%r14)
xorl %eax, %eax
movq %rax, 0x34(%r14)
movq %rax, 0x340(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r14)
movq %rax, 0x20(%r14)
leaq 0x73838(%rip), %rsi     # 0xf3155
movl $0x28, %edi
movl $0x33, %edx
callq 0x35ee2
testq %rbx, %rbx
je 0x7f9b0
movq %rax, %r15
leaq 0x7381a(%rip), %rsi     # 0xf3155
movq %rbx, %rdi
movl $0x35, %edx
callq 0x35ee2
movq %rax, (%r15)
xorl %eax, %eax
movq %rax, 0x20(%r15)
movq %rbx, 0x18(%r15)
decq %rbx
movq %rbx, 0x8(%r15)
movq %rbx, 0x10(%r15)
movq %r15, 0x348(%r14)
movq %rax, 0x3b0(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x37a(%r14)
movups %xmm0, 0x370(%r14)
movups %xmm0, 0x360(%r14)
movups %xmm0, 0x350(%r14)
movq %rax, 0x3a0(%r14)
movups %xmm0, 0x390(%r14)
movq %r14, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x1dd70
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/sequence_buffer_dust.c
// Function: gt_dust_masker_delete
void gt_dust_masker_delete(GtDustMasker *dust_masker)
{
  if (dust_masker) {
    gt_free(dust_masker->buf);
    gt_inl_queue_delete(dust_masker->w_queue);
    GT_FREEARRAY(&dust_masker->masked_regions,GtDustRange);
    gt_free(dust_masker);
  }
}

// Assembly:
testq %rdi, %rdi
je 0x7fa59
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
leaq 0x7370a(%rip), %rsi     # 0xf30da
movl $0x8a, %edx
callq 0x362a0
movq 0x348(%rbx), %r14
testq %r14, %r14
je 0x7fa0d
movq (%r14), %rdi
leaq 0x73765(%rip), %r15     # 0xf3155
movq %r15, %rsi
movl $0x44, %edx
callq 0x362a0
movq %r14, %rdi
movq %r15, %rsi
movl $0x45, %edx
callq 0x362a0
movq 0x390(%rbx), %rdi
testq %rdi, %rdi
je 0x7fa40
leaq 0x390(%rbx), %r14
leaq 0x736b3(%rip), %rsi     # 0xf30da
movl $0x8c, %edx
callq 0x362a0
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movq $0x0, 0x10(%r14)
leaq 0x73693(%rip), %rsi     # 0xf30da
movq %rbx, %rdi
movl $0x8d, %edx
popq %rbx
popq %r14
popq %r15
jmp 0x362a0
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/sequence_buffer_embl.c
// Function: gt_sequence_buffer_embl_free
static void gt_sequence_buffer_embl_free(GtSequenceBuffer *sb)
{
  GtSequenceBufferEMBL *sbe = gt_sequence_buffer_embl_cast(sb);
  if (sb->pvt->inputstream)
    gt_file_delete(sb->pvt->inputstream);
  gt_str_delete(sbe->headerbuffer);
  gt_str_delete(sbe->overflowbuffer);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0xce85e(%rip), %rdi     # 0x14f7e8
movq %r14, %rsi
callq 0x7f396
movq %rax, %rbx
movq 0x8(%r14), %rax
movq 0x28(%rax), %rdi
testq %rdi, %rdi
je 0x80fa7
callq 0x75b7c
movq 0x10(%rbx), %rdi
callq 0x3d1eb
movq 0x18(%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x3d1eb
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/sequence_buffer_embl.c
// Function: gt_sequence_buffer_embl_new
GtSequenceBuffer* gt_sequence_buffer_embl_new(const GtStrArray *sequences)
{
  GtSequenceBuffer *sb;
  GtSequenceBufferEMBL *sbe;
  sb = gt_sequence_buffer_create(gt_sequence_buffer_embl_class());
  sbe = gt_sequence_buffer_embl_cast(sb);
  sb->pvt->filenametab = sequences;
  sbe->headerbuffer = gt_str_new();
  sbe->overflowbuffer = gt_str_new();
  sb->pvt->filenum = 0;
  sb->pvt->linenum = 0;
  sbe->firstoverallentry = true;
  sbe->firstentryinfile = true;
  sbe->desc_spacer_was_set = false;
  sbe->nextfile = true;
  sb->pvt->nextread = sb->pvt->nextfree = 0;
  sb->pvt->lastspeciallength = 0;
  return sb;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0xce800(%rip), %r14     # 0x14f7e8
movq %r14, %rdi
callq 0x7f134
movq %rax, %r15
movq %r14, %rdi
movq %rax, %rsi
callq 0x7f396
movq %rax, %r14
movq 0x8(%r15), %rax
movq %rbx, 0x70(%rax)
callq 0x3bfe0
movq %rax, 0x10(%r14)
callq 0x3bfe0
movq %rax, 0x18(%r14)
movq 0x8(%r15), %rax
movl $0x0, (%rax)
xorl %ecx, %ecx
movq %rcx, 0x8(%rax)
movw $0x101, 0x21(%r14)      # imm = 0x101
movb $0x1, 0x20(%r14)
movb $0x0, 0x24(%r14)
movq %rcx, 0x60(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x50(%rax)
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/sequence_buffer_fasta.c
// Function: gt_sequence_buffer_fasta_new
GtSequenceBuffer* gt_sequence_buffer_fasta_new(const GtStrArray *sequences)
{
  GtSequenceBuffer *sb;
  GtSequenceBufferFasta *sbf;
  sb = gt_sequence_buffer_create(gt_sequence_buffer_fasta_class());
  sbf = gt_sequence_buffer_fasta_cast(sb);
  sb->pvt->filenametab = sequences;
  sbf->headerbuffer = gt_str_new();
  sb->pvt->filenum = 0;
  sbf->firstoverallseq = true;
  sbf->firstseqinfile = true;
  sbf->nextfile = true;
  sb->pvt->nextread = sb->pvt->nextfree = 0;
  sb->pvt->complete = false;
  sb->pvt->lastspeciallength = 0;
  return sb;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0xce3e2(%rip), %r14     # 0x14f808
movq %r14, %rdi
callq 0x7f134
movq %rax, %r15
movq %r14, %rdi
movq %rax, %rsi
callq 0x7f396
movq %rax, %r14
movq 0x8(%r15), %rax
movq %rbx, 0x70(%rax)
callq 0x3bfe0
movq %rax, 0x10(%r14)
movq 0x8(%r15), %rax
movl $0x0, (%rax)
movw $0x101, 0x19(%r14)      # imm = 0x101
movb $0x1, 0x1b(%r14)
movb $0x0, 0x18(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x50(%rax)
movq $0x0, 0x60(%rax)
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/sequence_buffer_fastq.c
// Function: gt_sequence_buffer_fastq_get_file_index
static GtUword
gt_sequence_buffer_fastq_get_file_index(GtSequenceBuffer *sb)
{
  GtSequenceBufferFastQ *sbfq;
  gt_assert(sb);
  sbfq = gt_sequence_buffer_fastq_cast(sb);
  return gt_seq_iterator_fastq_get_file_index((GtSeqIteratorFastQ*)
                                              sbfq->seqit);
}

// Assembly:
pushq %rax
testq %rdi, %rdi
je 0x8196e
movq %rdi, %rsi
leaq 0xcdec9(%rip), %rdi     # 0x14f828
callq 0x7f396
movq 0x10(%rax), %rdi
popq %rax
jmp 0xa5b48
callq 0x1e160
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/sequence_buffer_fastq.c
// Function: gt_sequence_buffer_fastq_new
GtSequenceBuffer* gt_sequence_buffer_fastq_new(const GtStrArray *sequences)
{
  GtSequenceBuffer *sb;
  GtSequenceBufferFastQ *sbfq;
  sb = gt_sequence_buffer_create(gt_sequence_buffer_fastq_class());
  sbfq = gt_sequence_buffer_fastq_cast(sb);
  sbfq->seqit = NULL;
  sbfq->sequences = sequences;
  sb->pvt->filenametab = sequences;
  sbfq->overflowbuffer = gt_str_new();
  sb->pvt->filenum = 0;
  sb->pvt->nextread = sb->pvt->nextfree = 0;
  sb->pvt->lastspeciallength = 0;
  return sb;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0xcde76(%rip), %r14     # 0x14f828
movq %r14, %rdi
callq 0x7f134
movq %rax, %r15
movq %r14, %rdi
movq %rax, %rsi
callq 0x7f396
movq %rax, %r14
xorl %r12d, %r12d
movq %r12, 0x10(%rax)
movq %rbx, 0x18(%rax)
movq 0x8(%r15), %rax
movq %rbx, 0x70(%rax)
callq 0x3bfe0
movq %rax, 0x28(%r14)
movq 0x8(%r15), %rax
movl $0x0, (%rax)
movq %r12, 0x60(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x50(%rax)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/sequence_buffer_gb.c
// Function: gt_sequence_buffer_gb_free
static void gt_sequence_buffer_gb_free(GtSequenceBuffer *sb)
{
  GtSequenceBufferGB *sbe = gt_sequence_buffer_gb_cast(sb);
  if (sb->pvt->inputstream)
    gt_file_delete(sb->pvt->inputstream);
  gt_str_delete(sbe->headerbuffer);
  gt_str_delete(sbe->overflowbuffer);
  gt_str_delete(sbe->keywordbuffer);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0xcca8f(%rip), %rdi     # 0x14f848
movq %r14, %rsi
callq 0x7f396
movq %rax, %rbx
movq 0x8(%r14), %rax
movq 0x28(%rax), %rdi
testq %rdi, %rdi
je 0x82dd6
callq 0x75b7c
movq 0x10(%rbx), %rdi
callq 0x3d1eb
movq 0x18(%rbx), %rdi
callq 0x3d1eb
movq 0x20(%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x3d1eb
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/sequence_buffer_gb.c
// Function: gt_sequence_buffer_gb_new
GtSequenceBuffer* gt_sequence_buffer_gb_new(const GtStrArray *sequences)
{
  GtSequenceBuffer *sb;
  GtSequenceBufferGB *sbe;
  sb = gt_sequence_buffer_create(gt_sequence_buffer_gb_class());
  sb->pvt->filenametab = sequences;
  sb->pvt->filenum = 0;
  sb->pvt->linenum = 0;
  sb->pvt->nextread = sb->pvt->nextfree = 0;
  sb->pvt->lastspeciallength = 0;
  sbe = gt_sequence_buffer_gb_cast(sb);
  sbe->headerbuffer = gt_str_new();
  sbe->overflowbuffer = gt_str_new();
  sbe->keywordbuffer = gt_str_new();
  return sb;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
leaq 0xcca16(%rip), %r15     # 0x14f848
movq %r15, %rdi
callq 0x7f134
movq %rax, %rbx
movq 0x8(%rax), %rax
movq %r14, 0x70(%rax)
movl $0x0, (%rax)
xorl %ecx, %ecx
movq %rcx, 0x8(%rax)
movq %rcx, 0x60(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x50(%rax)
movq %r15, %rdi
movq %rbx, %rsi
callq 0x7f396
movq %rax, %r14
callq 0x3bfe0
movq %rax, 0x10(%r14)
callq 0x3bfe0
movq %rax, 0x18(%r14)
callq 0x3bfe0
movq %rax, 0x20(%r14)
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/sequence_buffer_gb.c
// Function: get_keyword
static inline int get_keyword(GtSequenceBuffer *sb, GtStr *kwbuf,
                              GtUword *currentfileread)
{
  int currentchar;
  currentchar = inlinebuf_getchar(sb, sb->pvt->inputstream);
  if (currentchar == EOF)
      return EOF;
  (*currentfileread)++;
  while (currentchar != NEWLINESYMBOL && !isspace(currentchar)) {
    gt_str_append_char(kwbuf, currentchar);
    currentchar = inlinebuf_getchar(sb, sb->pvt->inputstream);
    if (currentchar == EOF)
      return EOF;
    (*currentfileread)++;
  }
  inlinebuf_ungetchar(sb);
  (*currentfileread)--;
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq 0x8(%rdi), %r13
cmpb $0x1, 0x19(%r13)
jne 0x82eb9
movb $0x0, 0x19(%r13)
movzbl 0x78(%r13), %r12d
jmp 0x82f01
movq 0x48(%r13), %rax
cmpq 0x40(%r13), %rax
jb 0x82eeb
movq 0x28(%r13), %rdi
leaq 0x79(%r13), %rsi
movl $0x2000, %edx           # imm = 0x2000
callq 0x75a89
cltq
movq %rax, 0x40(%r13)
testl %eax, %eax
je 0x82fd1
movq $0x0, 0x48(%r13)
movq 0x48(%r13), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x48(%r13)
movzbl 0x79(%r13,%rax), %r12d
movb %r12b, 0x78(%r13)
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
cmpl $-0x1, %r12d
je 0x82fc0
movq (%rbx), %r13
leaq 0x1(%r13), %rax
movq %rax, (%rbx)
cmpl $0xa, %r12d
je 0x82fad
callq 0xb6e0
movq (%rax), %rax
movslq %r12d, %rcx
testb $0x20, 0x1(%rax,%rcx,2)
jne 0x82fad
movsbl %r12b, %esi
movq %r15, %rdi
callq 0x3c28d
movq 0x8(%r14), %r13
cmpb $0x1, 0x19(%r13)
jne 0x82f59
movb $0x0, 0x19(%r13)
movzbl 0x78(%r13), %r12d
jmp 0x82f06
movq 0x48(%r13), %rax
cmpq 0x40(%r13), %rax
jb 0x82f87
movq 0x28(%r13), %rdi
leaq 0x79(%r13), %rsi
movl $0x2000, %edx           # imm = 0x2000
callq 0x75a89
cltq
movq %rax, 0x40(%r13)
testl %eax, %eax
je 0x82fa2
movq $0x0, 0x48(%r13)
movq 0x48(%r13), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x48(%r13)
movzbl 0x79(%r13,%rax), %r12d
movb %r12b, 0x78(%r13)
jmp 0x82f06
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
jmp 0x82f06
movq 0x8(%r14), %rax
cmpb $0x1, 0x19(%rax)
je 0x82fdc
movb $0x1, 0x19(%rax)
movq %r13, (%rbx)
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
jmp 0x82f01
callq 0x1e57d
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/sequence_buffer_gb.c
// Function: get_description
static inline int get_description(GtSequenceBuffer *sb,
                                  GtUword *currentfileread)
{
  int currentchar;
  currentchar = inlinebuf_getchar(sb, sb->pvt->inputstream);
  if (currentchar == EOF)
      return EOF;
  (*currentfileread)++;
  while (currentchar != NEWLINESYMBOL) {
    if (sb->pvt->descptr)
      gt_desc_buffer_append_char(sb->pvt->descptr, currentchar);
    currentchar = inlinebuf_getchar(sb, sb->pvt->inputstream);
    if (currentchar == EOF)
      return EOF;
    (*currentfileread)++;
  }
  inlinebuf_ungetchar(sb);
  (*currentfileread)--;
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %r15
cmpb $0x1, 0x19(%r15)
jne 0x83005
movb $0x0, 0x19(%r15)
movzbl 0x78(%r15), %eax
jmp 0x8304d
movq 0x48(%r15), %rax
cmpq 0x40(%r15), %rax
jb 0x83037
movq 0x28(%r15), %rdi
leaq 0x79(%r15), %rsi
movl $0x2000, %edx           # imm = 0x2000
callq 0x75a89
cltq
movq %rax, 0x40(%r15)
testl %eax, %eax
je 0x83105
movq $0x0, 0x48(%r15)
movq 0x48(%r15), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x48(%r15)
movzbl 0x79(%r15,%rax), %eax
movb %al, 0x78(%r15)
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
cmpl $-0x1, %eax
je 0x830f8
movq (%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, (%rbx)
movq 0x8(%r14), %rdx
cmpl $0xa, %eax
je 0x830e9
movq 0x20(%rdx), %rdi
testq %rdi, %rdi
je 0x8307f
movsbl %al, %esi
callq 0xa4434
movq 0x8(%r14), %r15
cmpb $0x1, 0x19(%r15)
jne 0x83096
movb $0x0, 0x19(%r15)
movzbl 0x78(%r15), %eax
jmp 0x83052
movq 0x48(%r15), %rax
cmpq 0x40(%r15), %rax
jb 0x830c4
movq 0x28(%r15), %rdi
leaq 0x79(%r15), %rsi
movl $0x2000, %edx           # imm = 0x2000
callq 0x75a89
cltq
movq %rax, 0x40(%r15)
testl %eax, %eax
je 0x830df
movq $0x0, 0x48(%r15)
movq 0x48(%r15), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x48(%r15)
movzbl 0x79(%r15,%rax), %eax
movb %al, 0x78(%r15)
jmp 0x83052
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x83052
cmpb $0x1, 0x19(%rdx)
je 0x8310f
movb $0x1, 0x19(%rdx)
movq %rcx, (%rbx)
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x8304d
callq 0x1e5b4
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/string_distri.c
// Function: gt_string_distri_add
void gt_string_distri_add(GtStringDistri *sd, const char *key)
{
  GtUword *valueptr;
  gt_assert(sd && key);
  valueptr = cstr_ul_gt_hashmap_get(sd->hashdist, key);
  if (!valueptr) {
    cstr_ul_gt_hashmap_add(sd->hashdist, gt_cstr_dup(key), 1);
  }
  else
    (*valueptr)++;
  sd->num_of_occurrences++;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
testq %rdi, %rdi
je 0x83221
movq %rsi, %r14
testq %rsi, %rsi
je 0x83221
movq %rdi, %rbx
movq (%rdi), %rdi
leaq 0x10(%rsp), %rsi
movq %r14, (%rsi)
callq 0x77906
testq %rax, %rax
je 0x831da
incq 0x8(%rax)
jmp 0x83213
movq (%rbx), %r15
movq %r14, %rdi
callq 0x722dc
leaq 0x10(%rsp), %rsi
movq %rax, (%rsi)
movq $0x1, 0x8(%rsi)
leaq 0x8(%rsp), %rdx
movq %r15, %rdi
callq 0x77c2e
testl %eax, %eax
jne 0x83213
movq 0x8(%rsp), %rax
movq $0x1, 0x8(%rax)
incq 0x8(%rbx)
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
callq 0x1e659
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/string_distri.c
// Function: gt_string_distri_sub
void gt_string_distri_sub(GtStringDistri *sd, const char *key)
{
  GtUword *valueptr;
  gt_assert(sd && key && gt_string_distri_get(sd, key) &&
            sd->num_of_occurrences);
  valueptr = cstr_ul_gt_hashmap_get(sd->hashdist, key);
  (*valueptr)--;
  if (!(*valueptr))
    cstr_ul_gt_hashmap_remove(sd->hashdist, key);
  sd->num_of_occurrences--;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x83293
movq %rsi, %r14
testq %rsi, %rsi
je 0x83293
movq %rdi, %rbx
movq (%rdi), %rdi
movq %rsp, %rsi
movq %r14, (%rsi)
callq 0x77906
testq %rax, %rax
je 0x83293
cmpq $0x0, 0x8(%rax)
je 0x83293
cmpq $0x0, 0x8(%rbx)
je 0x83293
movq (%rbx), %rdi
movq %rsp, %rsi
movq %r14, (%rsi)
callq 0x77906
leaq 0x8(%rax), %rcx
testq %rax, %rax
cmoveq %rax, %rcx
decq (%rcx)
jne 0x83287
movq (%rbx), %rdi
movq %rsp, %rsi
movq %r14, (%rsi)
callq 0x77c96
decq 0x8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
callq 0x1e690
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/string_distri.c
// Function: gt_string_distri_get
GtUword gt_string_distri_get(const GtStringDistri *sd, const char *key)
{
  GtUword *valueptr;
  gt_assert(sd && key);
  if ((valueptr = cstr_ul_gt_hashmap_get(sd->hashdist, key)))
    return *valueptr;
  else
    return 0;
}

// Assembly:
pushq %rax
testq %rdi, %rdi
je 0x832c3
testq %rsi, %rsi
je 0x832c3
movq (%rdi), %rdi
movq %rsp, %rax
movq %rsi, (%rax)
movq %rax, %rsi
callq 0x77906
testq %rax, %rax
je 0x832bf
movq 0x8(%rax), %rax
jmp 0x832c1
xorl %eax, %eax
popq %rcx
retq
callq 0x1e6c7
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/string_distri.c
// Function: gt_string_distri_get_prob
double gt_string_distri_get_prob(const GtStringDistri *sd, const char *key)
{
  GtUword occ;
  gt_assert(sd && key);
  if ((occ = gt_string_distri_get(sd, key)))
    return (double) occ / sd->num_of_occurrences;
  return 0.0;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
testq %rdi, %rdi
je 0x83351
testq %rsi, %rsi
je 0x83351
movq %rdi, %rbx
movq (%rdi), %rdi
leaq 0x8(%rsp), %rax
movq %rsi, (%rax)
movq %rax, %rsi
callq 0x77906
testq %rax, %rax
je 0x832f8
movq 0x8(%rax), %rax
jmp 0x832fa
xorl %eax, %eax
testq %rax, %rax
je 0x83347
movq %rax, %xmm1
movq 0x5e174(%rip), %xmm2    # 0xe1480
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x5e178(%rip), %xmm3    # 0xe1490
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movq 0x8(%rbx), %xmm1
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
subpd %xmm3, %xmm1
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
jmp 0x8334b
xorpd %xmm0, %xmm0
addq $0x10, %rsp
popq %rbx
retq
callq 0x1e6fe
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/string_distri.c
// Function: gt_string_distri_foreach
void gt_string_distri_foreach(const GtStringDistri *sd,
                              GtStringDistriIterFunc func, void *data)
{
  StringDistriForeachInfo info;
  GT_UNUSED int rval;
  gt_assert(sd);
  if (sd->hashdist) {
    info.func = func;
    info.data = data;
    info.num_of_occurrences = sd->num_of_occurrences;
    rval = cstr_ul_gt_hashmap_foreach_in_default_order(
      sd->hashdist, string_distri_foreach_iterfunc, &info, NULL);
    gt_assert(!rval); /* string_distri_foreach_iterfunc() is sane */
  }
}

// Assembly:
subq $0x38, %rsp
testq %rdi, %rdi
je 0x833b0
movq %rdi, %rax
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x833ab
leaq 0x8(%rsp), %rcx
movq %rsi, (%rcx)
movq %rdx, 0x8(%rcx)
movq 0x8(%rax), %rax
movq %rax, 0x10(%rcx)
leaq 0x20(%rsp), %rdx
movq %rcx, (%rdx)
leaq 0x2d(%rip), %rax        # 0x833ba
movq %rax, 0x8(%rdx)
movq $0x0, 0x10(%rdx)
leaq 0xe2(%rip), %rsi        # 0x83482
xorl %ecx, %ecx
callq 0x77e36
testl %eax, %eax
jne 0x833b5
addq $0x38, %rsp
retq
callq 0x1e76c
callq 0x1e735
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/string_distri.c
// Function: string_distri_foreach_iterfunc
static enum iterator_op
string_distri_foreach_iterfunc(char *key, GtUword occurrences, void *data,
                               GT_UNUSED GtError *err)
{
  StringDistriForeachInfo *info;
  gt_error_check(err);
  gt_assert(key && data);
  info = (StringDistriForeachInfo*) data;
  info->func(key, occurrences, (double) occurrences / info->num_of_occurrences,
             info->data);
  return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
testq %rcx, %rcx
je 0x833d9
movq %rcx, %rdi
callq 0x3566a
testb %al, %al
jne 0x83442
testq %r15, %r15
je 0x8343d
testq %rbx, %rbx
je 0x8343d
movq %r14, %xmm1
movq 0x5e090(%rip), %xmm2    # 0xe1480
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x5e094(%rip), %xmm3    # 0xe1490
subpd %xmm3, %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
movq 0x10(%rbx), %xmm1
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
subpd %xmm3, %xmm1
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
movq 0x8(%rbx), %rdx
movq %r15, %rdi
movq %r14, %rsi
callq *(%rbx)
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
callq 0x1e7da
callq 0x1e7a3
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/xbsd.c
// Function: gt_xflock_with_op
static void gt_xflock_with_op(int fd, short l_type)
{
  struct flock f;
  if (!getenv("GT_NO_FLOCK")) {
    memset(&f, 0, sizeof (f));
    f.l_type = l_type;
    if (fcntl(fd, F_SETLKW, &f)) {
      perror("cannot flock");
      exit(EXIT_FAILURE);
    }
  }
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0x28, %rsp
movl %esi, %ebp
movl %edi, %ebx
leaq 0x70490(%rip), %rdi     # 0xf3941
callq 0xb7c0
testq %rax, %rax
jne 0x834dd
xorps %xmm0, %xmm0
movq %rsp, %rdx
movaps %xmm0, (%rdx)
movaps %xmm0, 0x10(%rdx)
movw %bp, (%rdx)
movl %ebx, %edi
movl $0x7, %esi
xorl %eax, %eax
callq 0xba30
testl %eax, %eax
jne 0x834e4
addq $0x28, %rsp
popq %rbx
popq %rbp
retq
callq 0x1e811
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/xbzlib.c
// Function: gt_xbzwrite
void gt_xbzwrite(BZFILE *file, void *buf, unsigned len)
{
  gt_assert(buf);
  if (BZ2_bzwrite(file, buf, len) != len) {
    fprintf(stderr, "cannot write it compressed file\n");
    exit(EXIT_FAILURE);
  }
}

// Assembly:
pushq %rbx
testq %rsi, %rsi
je 0x835c0
movl %edx, %ebx
callq 0x9a0e6
cmpl %ebx, %eax
jne 0x835c5
popq %rbx
retq
callq 0x1e8f6
callq 0x1e8d1
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/xposix.c
// Function: gt_xwrite
void gt_xwrite(int d, const void *buf, size_t nbytes)
{
  size_t pos = 0;
  ssize_t rval;
  int error = 0;
  while (nbytes > pos) {
    rval = write(d, (char*) buf + pos, nbytes - pos);
    switch (rval) {
      case -1:
        if (errno == EINTR || errno == EAGAIN)
          continue;
        error = 1;
        break;
      case 0:
        errno = EPIPE;
        error = 1;
        break;
      default:
        pos += rval;
    }
    if (error)
      break;
  }
  if (error) {
    perror("cannot write to file descriptor");
    exit(EXIT_FAILURE);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movl %edi, %ebp
xorl %r13d, %r13d
movq %rbx, %r15
subq %r13, %r15
jbe 0x837c1
leaq (%r14,%r13), %r12
movl %ebp, %edi
movq %r12, %rsi
movq %r15, %rdx
callq 0xb200
cmpq $-0x1, %rax
jne 0x8379f
callq 0xb060
movl (%rax), %eax
cmpl $0xb, %eax
je 0x83798
cmpl $0x4, %eax
jne 0x837af
cmpq %r13, %rbx
ja 0x83774
jmp 0x837c1
testq %rax, %rax
jne 0x837b3
callq 0xb060
movl $0x20, (%rax)
xorl %eax, %eax
jmp 0x837b8
addq %rax, %r13
movb $0x1, %al
testb %al, %al
jne 0x83768
callq 0x1eb80
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/xzlib.c
// Function: gt_xgzwrite
void gt_xgzwrite(gzFile file, void *buf, unsigned len)
{
  int errnum;
  gt_assert(buf);
  if (gzwrite(file, buf, len) != len) {
    fprintf(stderr, "cannot write to compressed file: %s\n",
            gzerror(file, &errnum));
    exit(EXIT_FAILURE);
  }
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x838aa
movl %edx, %ebp
movq %rdi, %rbx
callq 0x9b4d0
cmpl %ebp, %eax
jne 0x838af
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
callq 0x1ec81
leaq 0x4(%rsp), %rsi
movq %rbx, %rdi
callq 0x1ec55
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/core/xzlib.c
// Function: gt_xgzclose
void gt_xgzclose(gzFile file)
{
  const char *msg;
  int errnum;
  if (gzclose(file)) {
    msg = gzerror(file, &errnum);
    if (errnum == Z_ERRNO) { /* error in file system */
      perror("cannot close compressed file");
      exit(EXIT_FAILURE);
    }
    else { /* error in zlib */
      fprintf(stderr, "cannot close compressed file: %s\n", msg);
      exit(EXIT_FAILURE);
    }
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x9a2ec
testl %eax, %eax
jne 0x838e6
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x4(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x9aa1d
cmpl $-0x1, (%r14)
jne 0x83901
callq 0x1ed01
movq %rax, %rdi
callq 0x1ecdd
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/add_ids_stream.c
// Function: gt_add_ids_stream_class
const GtNodeStreamClass* gt_add_ids_stream_class(void)
{
  static const GtNodeStreamClass *nsc = NULL;
  gt_class_alloc_lock_enter();
  if (!nsc) {
    nsc = gt_node_stream_class_new(sizeof (GtAddIDsStream),
                                   add_ids_stream_free,
                                   add_ids_stream_next);
  }
  gt_class_alloc_lock_leave();
  return nsc;
}

// Assembly:
pushq %rax
callq 0x71d9b
cmpq $0x0, 0xcf306(%rip)     # 0x152c20
jne 0x8393b
leaq 0x26(%rip), %rsi        # 0x83949
leaq 0x49(%rip), %rdx        # 0x83973
movl $0x28, %edi
callq 0x498b0
movq %rax, 0xcf2e5(%rip)     # 0x152c20
callq 0x71db1
movq 0xcf2d9(%rip), %rax     # 0x152c20
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/add_ids_stream.c
// Function: add_ids_stream_next
static int add_ids_stream_next(GtNodeStream *ns, GtGenomeNode **gn,
                               GtError *err)
{
  GtAddIDsStream *ais;
  int had_err;
  gt_error_check(err);
  ais = gt_add_ids_stream_cast(ns);

  /* we still have nodes in the buffer */
  if (gt_add_ids_visitor_node_buffer_size(ais->add_ids_visitor)) {
    /* return one of them */
    *gn = gt_add_ids_visitor_get_node(ais->add_ids_visitor);
    return 0;
  }

  /* handle disabled stream */
  if (!ais->add_ids)
    return gt_node_stream_next(ais->in_stream, gn, err);

  /* no nodes in the buffer -> get new nodes */
  for (;;) {
    had_err = gt_node_stream_next(ais->in_stream, gn, err);
    /* end of the stream */
    if (!*gn)
      break;
    if (had_err)
      break;
    else {
      had_err = gt_genome_node_accept(*gn, ais->add_ids_visitor, err);
      if (had_err) {
        /* we own the node -> delete it */
        gt_genome_node_delete(*gn);
        *gn = NULL;
        break;
      }
      else {
        /* the node is now in the buffer -> reset to avoid double free */
        *gn = NULL;
      }
      if (gt_add_ids_visitor_node_buffer_size(ais->add_ids_visitor)) {
        *gn = gt_add_ids_visitor_get_node(ais->add_ids_visitor);
        return 0;
      }
    }
  }

  if (!had_err) {
    gt_add_ids_visitor_finalize(ais->add_ids_visitor);
    if (gt_add_ids_visitor_node_buffer_size(ais->add_ids_visitor)) {
      *gn = gt_add_ids_visitor_get_node(ais->add_ids_visitor);
      return 0;
    }
  }

  /* either we have an error or no new node */
  gt_assert(had_err || !*gn);
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
testq %rdx, %rdx
je 0x83998
movq %r15, %rdi
callq 0x3566a
testb %al, %al
jne 0x83a7b
callq 0x8390c
movq %rax, %rdi
movq %r14, %rsi
callq 0x49b60
movq %rax, %r14
movq 0x18(%rax), %rdi
callq 0x840f6
testq %rax, %rax
je 0x839d4
movq 0x18(%r14), %rdi
callq 0x84114
movq %rax, (%rbx)
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
cmpb $0x1, 0x20(%r14)
jne 0x83a1f
movq 0x10(%r14), %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x499e4
movl %eax, %ebp
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x83a49
testl %ebp, %ebp
jne 0x83a49
movq 0x18(%r14), %rsi
movq %r15, %rdx
callq 0x42036
testl %eax, %eax
jne 0x83a38
movq $0x0, (%rbx)
movq 0x18(%r14), %rdi
callq 0x840f6
testq %rax, %rax
je 0x839db
jmp 0x839b9
movq 0x10(%r14), %rdi
movq %rbx, %rsi
movq %r15, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x499e4
movl %eax, %ebp
movq (%rbx), %rdi
callq 0x42ade
movq $0x0, (%rbx)
testl %ebp, %ebp
jne 0x839c7
movq 0x18(%r14), %rdi
callq 0x84132
movq 0x18(%r14), %rdi
callq 0x840f6
testq %rax, %rax
jne 0x839b9
cmpq $0x0, (%rbx)
je 0x839c7
callq 0x1ed4d
callq 0x1ed16
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/add_ids_stream.c
// Function: gt_add_ids_stream_new
GtNodeStream* gt_add_ids_stream_new(GtNodeStream *in_stream)
{
  GtAddIDsStream *add_ids_stream;
  GtNodeStream *ns;
  gt_assert(in_stream);
  ns = gt_node_stream_create(gt_add_ids_stream_class(), false);
  add_ids_stream = gt_add_ids_stream_cast(ns);
  add_ids_stream->in_stream = gt_node_stream_ref(in_stream);
  add_ids_stream->add_ids_visitor =
    gt_add_ids_visitor_new(gt_node_stream_is_sorted(in_stream));
  add_ids_stream->add_ids = true;
  return ns;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x83ae0
movq %rdi, %rbx
callq 0x8390c
movq %rax, %rdi
xorl %esi, %esi
callq 0x498e8
movq %rax, %r14
callq 0x8390c
movq %rax, %rdi
movq %r14, %rsi
callq 0x49b60
movq %rax, %r15
movq %rbx, %rdi
callq 0x49954
movq %rax, 0x10(%r15)
movq %rbx, %rdi
callq 0x49b4d
movzbl %al, %edi
callq 0x84027
movq %rax, 0x18(%r15)
movb $0x1, 0x20(%r15)
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
callq 0x1ed84
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/add_ids_visitor.c
// Function: gt_add_ids_visitor_class
const GtNodeVisitorClass* gt_add_ids_visitor_class()
{
  static GtNodeVisitorClass *nvc = NULL;
  if (!nvc) {
    nvc = gt_node_visitor_class_new(sizeof (GtAddIDsVisitor),
                                    add_ids_visitor_free,
                                    add_ids_visitor_comment_node,
                                    add_ids_visitor_feature_node,
                                    add_ids_visitor_region_node,
                                    add_ids_visitor_sequence_node,
                                    add_ids_visitor_eof_node);
    gt_node_visitor_class_set_meta_node_func(nvc, add_ids_visitor_meta_node);
  }
  return nvc;
}

// Assembly:
cmpq $0x0, 0xcf120(%rip)     # 0x152c28
jne 0x83b5d
pushq %rax
leaq 0x47f(%rip), %rax       # 0x83f91
movq %rax, (%rsp)
leaq 0x48(%rip), %rsi        # 0x83b65
leaq 0x74(%rip), %rdx        # 0x83b98
leaq 0xb3(%rip), %rcx        # 0x83bde
leaq 0x32c(%rip), %r8        # 0x83e5e
leaq 0x408(%rip), %r9        # 0x83f41
movl $0x30, %edi
callq 0x49b7c
movq %rax, 0xcf0de(%rip)     # 0x152c28
leaq 0x490(%rip), %rsi       # 0x83fe1
movq %rax, %rdi
callq 0x49bdc
addq $0x8, %rsp
movq 0xcf0c4(%rip), %rax     # 0x152c28
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/add_ids_visitor.c
// Function: add_ids_visitor_free
static void add_ids_visitor_free(GtNodeVisitor *nv)
{
  GtAddIDsVisitor *add_ids_visitor = add_ids_visitor_cast(nv);
  gt_hashmap_delete(add_ids_visitor->undefined_sequence_regions);
  gt_cstr_table_delete(add_ids_visitor->defined_seqids);
  gt_queue_delete(add_ids_visitor->node_buffer);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x83b00
movq %rax, %rdi
movq %rbx, %rsi
callq 0x49c1d
movq %rax, %rbx
movq 0x20(%rax), %rdi
callq 0x77675
movq 0x18(%rbx), %rdi
callq 0x72c9c
movq 0x10(%rbx), %rdi
popq %rbx
jmp 0x7c623
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/add_ids_visitor.c
// Function: add_ids_visitor_comment_node
static int add_ids_visitor_comment_node(GtNodeVisitor *nv, GtCommentNode *c,
                                        GT_UNUSED GtError *err)
{
  GtAddIDsVisitor *add_ids_visitor;
  gt_error_check(err);
  add_ids_visitor = add_ids_visitor_cast(nv);
  gt_queue_add(add_ids_visitor->node_buffer, c);
  return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
testq %rdx, %rdx
je 0x83bb3
movq %rdx, %rdi
callq 0x3566a
testb %al, %al
jne 0x83bd9
callq 0x83b00
movq %rax, %rdi
movq %r14, %rsi
callq 0x49c1d
movq 0x10(%rax), %rdi
movq %rbx, %rsi
callq 0x7c043
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
callq 0x1edbb
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/add_ids_visitor.c
// Function: add_ids_visitor_region_node
static int add_ids_visitor_region_node(GtNodeVisitor *nv, GtRegionNode *rn,
                                       GT_UNUSED GtError *err)
{
  GtAddIDsVisitor *aiv;
  const char *seqid;
  int had_err = 0;
  gt_error_check(err);
  aiv = add_ids_visitor_cast(nv);
  seqid = gt_str_get(gt_genome_node_get_seqid((GtGenomeNode*) rn));
  if (gt_hashmap_get(aiv->undefined_sequence_regions, seqid)) {
    gt_error_set(err, "genome feature with id \"%s\" has been defined before "
                 "the corresponding \"%s\" definition on line %u in file "
                 "\"%s\"", seqid, GT_GFF_SEQUENCE_REGION,
                 gt_genome_node_get_line_number((GtGenomeNode*) rn),
                 gt_genome_node_get_filename((GtGenomeNode*) rn));
    had_err = -1;
  }
  if (!had_err) {
    if (!gt_cstr_table_get(aiv->defined_seqids, seqid))
      gt_cstr_table_add(aiv->defined_seqids, seqid);
    gt_queue_add(aiv->node_buffer, rn);
  }
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r14
testq %rdx, %rdx
je 0x83e87
movq %r12, %rdi
callq 0x3566a
testb %al, %al
jne 0x83f3c
callq 0x83b00
movq %rax, %rdi
movq %r14, %rsi
callq 0x49c1d
movq %rax, %r14
movq %rbx, %rdi
callq 0x41f3f
movq %rax, %rdi
callq 0x3c40b
movq %rax, %r15
movq 0x20(%r14), %rdi
movq %rax, %rsi
callq 0x77109
movq %rax, %r13
testq %rax, %rax
je 0x83efb
movq %rbx, %rdi
callq 0x41f30
movl %eax, %ebp
movq %rbx, %rdi
callq 0x41f10
leaq 0x6ffd7(%rip), %rsi     # 0xf3eb1
leaq 0x62d15(%rip), %rcx     # 0xe6bf6
movq %r12, %rdi
movq %r15, %rdx
movl %ebp, %r8d
movq %rax, %r9
xorl %eax, %eax
callq 0x3559f
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x83efd
xorl %ebp, %ebp
testq %r13, %r13
jne 0x83f2b
movq 0x18(%r14), %rdi
movq %r15, %rsi
callq 0x729dd
testq %rax, %rax
jne 0x83f1f
movq 0x18(%r14), %rdi
movq %r15, %rsi
callq 0x7297e
movq 0x10(%r14), %rdi
movq %rbx, %rsi
callq 0x7c043
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1ee2b
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/add_ids_visitor.c
// Function: add_ids_visitor_sequence_node
static int add_ids_visitor_sequence_node(GtNodeVisitor *nv, GtSequenceNode *sn,
                                         GT_UNUSED GtError *err)
{
  GtAddIDsVisitor *add_ids_visitor;
  gt_error_check(err);
  add_ids_visitor = add_ids_visitor_cast(nv);
  /* sequence nodes have to be at the end of a stream -> finalize first */
  gt_add_ids_visitor_finalize(nv);
  /* then add sequence node to buffer */
  gt_queue_add(add_ids_visitor->node_buffer, sn);
  return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
testq %rdx, %rdx
je 0x83f5d
movq %rdx, %rdi
callq 0x3566a
testb %al, %al
jne 0x83f8c
callq 0x83b00
movq %rax, %rdi
movq %r14, %rsi
callq 0x49c1d
movq %rax, %r15
movq %r14, %rdi
callq 0x84132
movq 0x10(%r15), %rdi
movq %rbx, %rsi
callq 0x7c043
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
callq 0x1ee64
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/add_ids_visitor.c
// Function: add_ids_visitor_eof_node
static int add_ids_visitor_eof_node(GtNodeVisitor *nv, GtEOFNode *eofn,
                                    GT_UNUSED GtError *err)
{
  GtAddIDsVisitor *add_ids_visitor;
  gt_error_check(err);
  add_ids_visitor = add_ids_visitor_cast(nv);
  gt_add_ids_visitor_finalize(nv);
  gt_queue_add(add_ids_visitor->node_buffer, eofn);
  return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
testq %rdx, %rdx
je 0x83fad
movq %rdx, %rdi
callq 0x3566a
testb %al, %al
jne 0x83fdc
callq 0x83b00
movq %rax, %rdi
movq %r14, %rsi
callq 0x49c1d
movq %rax, %r15
movq %r14, %rdi
callq 0x84132
movq 0x10(%r15), %rdi
movq %rbx, %rsi
callq 0x7c043
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
callq 0x1ee9d
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/add_ids_visitor.c
// Function: add_ids_visitor_meta_node
static int add_ids_visitor_meta_node(GtNodeVisitor *nv, GtMetaNode *mn,
                                     GT_UNUSED GtError *err)
{
  GtAddIDsVisitor *add_ids_visitor;
  gt_error_check(err);
  add_ids_visitor = add_ids_visitor_cast(nv);
  gt_queue_add(add_ids_visitor->node_buffer, mn);
  return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
testq %rdx, %rdx
je 0x83ffc
movq %rdx, %rdi
callq 0x3566a
testb %al, %al
jne 0x84022
callq 0x83b00
movq %rax, %rdi
movq %r14, %rsi
callq 0x49c1d
movq 0x10(%rax), %rdi
movq %rbx, %rsi
callq 0x7c043
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
callq 0x1eed6
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/extended/add_ids_visitor.c
// Function: gt_add_ids_visitor_new
GtNodeVisitor* gt_add_ids_visitor_new(bool ensure_sorting)
{
  GtNodeVisitor *nv = gt_node_visitor_create(gt_add_ids_visitor_class());
  GtAddIDsVisitor *add_ids_visitor = add_ids_visitor_cast(nv);
  add_ids_visitor->node_buffer = gt_queue_new();
  add_ids_visitor->defined_seqids = gt_cstr_table_new();
  add_ids_visitor->undefined_sequence_regions =
    gt_hashmap_new(GT_HASH_STRING, NULL,
                   (GtFree) automatic_sequence_region_delete);
  add_ids_visitor->ensure_sorting = ensure_sorting;
  return nv;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edi, %ebx
callq 0x83b00
movq %rax, %rdi
callq 0x49bec
movq %rax, %r14
callq 0x83b00
movq %rax, %rdi
movq %r14, %rsi
callq 0x49c1d
movq %rax, %r15
callq 0x7c028
movq %rax, 0x10(%r15)
callq 0x72918
movq %rax, 0x18(%r15)
leaq 0x1d(%rip), %rdx        # 0x84087
movl $0x1, %edi
xorl %esi, %esi
callq 0x76f28
movq %rax, 0x20(%r15)
movb %bl, 0x28(%r15)
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq