LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/editscript.c
// Function: gt_editscript_get_sequence
GtUword gt_editscript_get_sequence(const GtEditscript *editscript,
                                   const GtEncseq *encseq,
                                   GtUword start,
                                   GtReadmode dir,
                                   GtUchar **buffer,
                                   GtUword *bufsize)
{
  GtUword length = gt_editscript_get_target_len(editscript),
          written;
  if (*buffer == NULL || length > *bufsize) {
    *bufsize = length;
    gt_log_log("bufsize: " GT_WU, *bufsize);
    *buffer = gt_realloc(*buffer, sizeof (**buffer) * *bufsize);
  }
  written = gt_editscript_get_sub_sequence_v(editscript,
                                             encseq, start, dir,
                                             0, length -1,
                                             *buffer);
  gt_assert(written == length);
  return written;
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movq %rdx, 0x30(%rsp)
movl %ecx, 0x2c(%rsp)
movq %r8, 0x20(%rsp)
movq %r9, 0x18(%rsp)
movq 0x40(%rsp), %rdi
callq 0x15b1f0
movq %rax, 0x10(%rsp)
movq 0x20(%rsp), %rax
cmpq $0x0, (%rax)
je 0x15c25a
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
cmpq (%rcx), %rax
jbe 0x15c2ad
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %rax
movq %rcx, (%rax)
movq 0x18(%rsp), %rax
movq (%rax), %rsi
leaq 0x3f1ae3(%rip), %rdi    # 0x54dd59
movb $0x0, %al
callq 0xe7740
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movq 0x18(%rsp), %rax
movq (%rax), %rsi
shlq $0x0, %rsi
leaq 0x3f1780(%rip), %rdx    # 0x54da18
movl $0x2b6, %ecx            # imm = 0x2B6
callq 0xe8540
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, (%rax)
movq 0x40(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x30(%rsp), %rdx
movl 0x2c(%rsp), %ecx
movq 0x10(%rsp), %r9
subq $0x1, %r9
movq 0x20(%rsp), %rax
movq (%rax), %rax
xorl %r8d, %r8d
movq %rax, (%rsp)
callq 0x15bd80
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
cmpq 0x10(%rsp), %rax
je 0x15c326
movq 0x4dfcab(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3b9d14(%rip), %rsi    # 0x516013
leaq 0x3f1a60(%rip), %rdx    # 0x54dd66
leaq 0x3f1a6b(%rip), %rcx    # 0x54dd78
leaq 0x3f1704(%rip), %r8     # 0x54da18
movl $0x2bc, %r9d            # imm = 0x2BC
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x15c328
movq 0x8(%rsp), %rax
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/editscript.c
// Function: gt_editscript_io
GtEditscript *gt_editscript_io(GtEditscript *editscript, FILE *fp, GtError *err)
{
  if (editscript == NULL) {
    editscript = gt_calloc((size_t) 1, sizeof (GtEditscript));
    editscript = editscript_io_fp(editscript, fp, err, gt_io_error_fread);
  }
  else {
    editscript = editscript_io_fp(editscript, fp, err, gt_io_error_fwrite);
  }
  return editscript;
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
movq %rdx, (%rsp)
cmpq $0x0, 0x10(%rsp)
jne 0x15c3fb
movl $0x1, %edi
movl $0x18, %esi
leaq 0x3f164d(%rip), %rdx    # 0x54da18
movl $0x2f1, %ecx            # imm = 0x2F1
callq 0xe83c0
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq (%rsp), %rdx
leaq 0x3b4f1(%rip), %rcx     # 0x1978e0
callq 0x15c430
movq %rax, 0x10(%rsp)
jmp 0x15c41a
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq (%rsp), %rdx
leaq 0x3b440(%rip), %rcx     # 0x197850
callq 0x15c430
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/editscript.c
// Function: gt_editscript_builder_new
GtEditscriptBuilder *gt_editscript_builder_new(GtEditscript *editscript)
{
  GtEditscriptBuilder *es_b = gt_malloc(sizeof (*es_b));
  editscript_pos_reset(&es_b->fillpos);
  es_b->es = editscript;
  es_b->last_op = 0;
  return es_b;
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movl $0x18, %edi
leaq 0x3f1073(%rip), %rsi    # 0x54da18
movl $0x344, %edx            # imm = 0x344
callq 0xe80f0
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rdi
addq $0x8, %rdi
callq 0x15ad60
movq 0x10(%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, (%rax)
movq 0x8(%rsp), %rax
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rax
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/editscript.c
// Function: gt_editscript_builder_start_group
static inline void gt_editscript_builder_start_group(GtEditscriptBuilder *es_b,
                                                     uint8_t type)
{
  GtEditscript *es = es_b->es;
  es_b->last_op = type;
  editscript_space_add_next(es, &es_b->fillpos, type);
  editscript_space_add_length(es, &es_b->fillpos,
                              (GtBitsequence) es->trailing_matches);
  es->trailing_matches = 0;
}

// Assembly:
subq $0x18, %rsp
movb %sil, %al
movq %rdi, 0x10(%rsp)
movb %al, 0xf(%rsp)
movq 0x10(%rsp), %rax
movq (%rax), %rax
movq %rax, (%rsp)
movb 0xf(%rsp), %cl
movq 0x10(%rsp), %rax
movb %cl, 0x10(%rax)
movq (%rsp), %rdi
movq 0x10(%rsp), %rsi
addq $0x8, %rsi
movzbl 0xf(%rsp), %eax
movl %eax, %edx
callq 0x15ca60
movq (%rsp), %rdi
movq 0x10(%rsp), %rsi
addq $0x8, %rsi
movq (%rsp), %rax
movl 0x10(%rax), %eax
movl %eax, %edx
callq 0x15e7c0
movq (%rsp), %rax
movl $0x0, 0x10(%rax)
addq $0x18, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/elias_gamma.c
// Function: gt_elias_gamma_encode
GtBittab* gt_elias_gamma_encode(GtUword x)
{
  GtBittab* code = NULL;
  GtUword length_in_bits, idx;

  gt_assert(x > 0);
  length_in_bits = (GtUword) gt_determinebitspervalue(x);
  code = gt_bittab_new(length_in_bits + length_in_bits - 1UL);
  for (idx = 0; idx < length_in_bits; idx++)
    if (((x >> idx) & 1))
      gt_bittab_set_bit(code, idx);
  return code;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq $0x0, 0x18(%rsp)
cmpq $0x0, 0x20(%rsp)
ja 0x15e9e2
movq 0x4dd5ef(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3b7658(%rip), %rsi    # 0x516013
leaq 0x426802(%rip), %rdx    # 0x5851c4
leaq 0x3ef80f(%rip), %rcx    # 0x54e1d8
leaq 0x3ef81e(%rip), %r8     # 0x54e1ee
movl $0x28, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x15e9e4
movq 0x20(%rsp), %rdi
callq 0xec660
movl %eax, %eax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rdi
addq 0x10(%rsp), %rdi
subq $0x1, %rdi
callq 0x89a20
movq %rax, 0x18(%rsp)
movq $0x0, 0x8(%rsp)
movq 0x8(%rsp), %rax
cmpq 0x10(%rsp), %rax
jae 0x15ea5a
movq 0x20(%rsp), %rax
movq 0x8(%rsp), %rcx
shrq %cl, %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x15ea48
movq 0x18(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x89b00
jmp 0x15ea4a
movq 0x8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x8(%rsp)
jmp 0x15ea16
movq 0x18(%rsp), %rax
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/elias_gamma.c
// Function: gt_elias_gamma_bitwise_decoder_new
GtEliasGammaBitwiseDecoder* gt_elias_gamma_bitwise_decoder_new(void)
{
  GtEliasGammaBitwiseDecoder *egbd = gt_malloc(sizeof (*egbd));
  egbd->status = LEADING_ZEROS;
  egbd->cur_bit = 0;
  egbd->length_in_bits = 0;
  egbd->x = 1UL;
  return egbd;
}

// Assembly:
pushq %rax
movl $0x20, %edi
leaq 0x3ef771(%rip), %rsi    # 0x54e1ee
movl $0x33, %edx
callq 0xe80f0
movq %rax, (%rsp)
movq (%rsp), %rax
movl $0x0, (%rax)
movq (%rsp), %rax
movq $0x0, 0x8(%rax)
movq (%rsp), %rax
movq $0x0, 0x10(%rax)
movq (%rsp), %rax
movq $0x1, 0x18(%rax)
movq (%rsp), %rax
popq %rcx
retq
nop
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/elias_gamma.c
// Function: reset_decoder
void reset_decoder(GtEliasGammaBitwiseDecoder *egbd)
{
  egbd->status = LEADING_ZEROS;
  egbd->cur_bit = 0;
  egbd->x = 1UL;
  egbd->length_in_bits = 0;
}

// Assembly:
movq %rdi, -0x8(%rsp)
movq -0x8(%rsp), %rax
movl $0x0, (%rax)
movq -0x8(%rsp), %rax
movq $0x0, 0x8(%rax)
movq -0x8(%rsp), %rax
movq $0x1, 0x18(%rax)
movq -0x8(%rsp), %rax
movq $0x0, 0x10(%rax)
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/elias_gamma.c
// Function: gt_elias_gamma_bitwise_decoder_next
int gt_elias_gamma_bitwise_decoder_next(GtEliasGammaBitwiseDecoder *egbd,
                                        bool bit, GtUword *x)
{
  gt_assert(egbd);
  if (egbd->status == LEADING_ZEROS) {
    if (bit == false)
      egbd->length_in_bits += 1;
    else {
      if (egbd->length_in_bits == 0) {
        *x = 1UL;
        reset_decoder(egbd);
        return 0;
      }
      else
        egbd->status = REST;
    }
  }
  else {
    egbd->x = egbd->x << 1;
    if (bit)
      egbd->x = egbd->x | 1;
    egbd->cur_bit++;
    if (egbd->cur_bit == egbd->length_in_bits) {
      *x = egbd->x;
      reset_decoder(egbd);
      return 0;
    }
  }
  return 1;
}

// Assembly:
subq $0x28, %rsp
movb %sil, %al
movq %rdi, 0x18(%rsp)
andb $0x1, %al
movb %al, 0x17(%rsp)
movq %rdx, 0x8(%rsp)
cmpq $0x0, 0x18(%rsp)
jne 0x15eb57
movq 0x4dd47a(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3b74e3(%rip), %rsi    # 0x516013
leaq 0x3ef6d2(%rip), %rdx    # 0x54e209
leaq 0x3ef6d0(%rip), %rcx    # 0x54e20e
leaq 0x3ef6a9(%rip), %r8     # 0x54e1ee
movl $0x46, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x15eb59
movq 0x18(%rsp), %rax
cmpl $0x0, (%rax)
jne 0x15ebc2
movb 0x17(%rsp), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
jne 0x15eb84
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x10(%rax)
jmp 0x15ebc0
movq 0x18(%rsp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x15ebb3
movq 0x8(%rsp), %rax
movq $0x1, (%rax)
movq 0x18(%rsp), %rdi
callq 0x15eac0
movl $0x0, 0x24(%rsp)
jmp 0x15ec48
movq 0x18(%rsp), %rax
movl $0x1, (%rax)
jmp 0x15ebc0
jmp 0x15ec40
movq 0x18(%rsp), %rax
movq 0x18(%rax), %rcx
shlq %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x18(%rax)
testb $0x1, 0x17(%rsp)
je 0x15ebf4
movq 0x18(%rsp), %rax
movq 0x18(%rax), %rcx
orq $0x1, %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x8(%rax)
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x18(%rsp), %rcx
cmpq 0x10(%rcx), %rax
jne 0x15ec3e
movq 0x18(%rsp), %rax
movq 0x18(%rax), %rcx
movq 0x8(%rsp), %rax
movq %rcx, (%rax)
movq 0x18(%rsp), %rdi
callq 0x15eac0
movl $0x0, 0x24(%rsp)
jmp 0x15ec48
jmp 0x15ec40
movl $0x1, 0x24(%rsp)
movl 0x24(%rsp), %eax
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/encdesc.c
// Function: gt_encdesc_encoder_new
GtEncdescEncoder* gt_encdesc_encoder_new(void)
{
  GtEncdescEncoder *ee;

  ee = gt_calloc((size_t) 1, sizeof (GtEncdescEncoder));
  ee->timer = NULL;
  ee->page_sampling = false;
  ee->regular_sampling = false;
  ee->sampling_rate = 0;

  ee->encdesc = encdesc_new();
  return ee;
}

// Assembly:
pushq %rax
movl $0x1, %edi
movl $0x20, %esi
leaq 0x3ef396(%rip), %rdx    # 0x54e268
movl $0x345, %ecx            # imm = 0x345
callq 0xe83c0
movq %rax, (%rsp)
movq (%rsp), %rax
movq $0x0, (%rax)
movq (%rsp), %rax
movb $0x0, 0x19(%rax)
movq (%rsp), %rax
movb $0x0, 0x18(%rax)
movq (%rsp), %rax
movq $0x0, 0x10(%rax)
callq 0x15ef20
movq %rax, %rcx
movq (%rsp), %rax
movq %rcx, 0x8(%rax)
movq (%rsp), %rax
popq %rcx
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/encdesc.c
// Function: gt_encdesc_delete
void gt_encdesc_delete(GtEncdesc *encdesc)
{
  if (!encdesc) return;
  gt_bitinstream_delete(encdesc->bitinstream);
  GT_FREEARRAY(&encdesc->num_of_fields_tab, GtUword);
  encdesc_delete_desc_fields(encdesc->fields, encdesc->num_of_fields);
  gt_sampling_delete(encdesc->sampling);
  gt_free(encdesc);
}

// Assembly:
pushq %rax
movq %rdi, (%rsp)
cmpq $0x0, (%rsp)
jne 0x161bc1
jmp 0x161c4c
movq (%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x489e80
movq (%rsp), %rax
cmpq $0x0, (%rax)
je 0x161c13
movq (%rsp), %rax
movq (%rax), %rdi
leaq 0x3ec682(%rip), %rsi    # 0x54e268
movl $0x5ed, %edx            # imm = 0x5ED
callq 0xe88c0
movq (%rsp), %rax
movq $0x0, 0x8(%rax)
movq (%rsp), %rax
movq $0x0, 0x10(%rax)
movq (%rsp), %rax
movq $0x0, (%rax)
jmp 0x161c15
movq (%rsp), %rax
movq 0x18(%rax), %rdi
movq (%rsp), %rax
movq 0x40(%rax), %rsi
callq 0x162d30
movq (%rsp), %rax
movq 0x28(%rax), %rdi
callq 0x1d0e10
movq (%rsp), %rdi
leaq 0x3ec626(%rip), %rsi    # 0x54e268
movl $0x5f0, %edx            # imm = 0x5F0
callq 0xe88c0
popq %rax
retq
nop
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/encdesc.c
// Function: count_leading_zeros
static inline unsigned count_leading_zeros(const char *number)
{
  int idx;
  unsigned char count = 0;
  for (idx = 0; number[idx] == '0'; idx++) {
    count++;
  }
  /* all zero field, do not count last 0 */
  if (count != 0 && number[idx] == '\0')
    count--;
  return count;
}

// Assembly:
movq %rdi, -0x8(%rsp)
movb $0x0, -0xd(%rsp)
movl $0x0, -0xc(%rsp)
movq -0x8(%rsp), %rax
movslq -0xc(%rsp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x30, %eax
jne 0x16344c
movb -0xd(%rsp), %al
addb $0x1, %al
movb %al, -0xd(%rsp)
movl -0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rsp)
jmp 0x163422
movzbl -0xd(%rsp), %eax
cmpl $0x0, %eax
je 0x163473
movq -0x8(%rsp), %rax
movslq -0xc(%rsp), %rcx
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
jne 0x163473
movb -0xd(%rsp), %al
addb $-0x1, %al
movb %al, -0xd(%rsp)
movzbl -0xd(%rsp), %eax
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/encdesc.c
// Function: encdesc_hashmap_distr_add
static int encdesc_hashmap_distr_add(GtHashtable *hm_distri, GtWord key)
{
  GtUint64 *valueptr;
  gt_assert(hm_distri != NULL);
  valueptr = li_ull_gt_hashmap_get(hm_distri, key);
  if (!valueptr) {
    li_ull_gt_hashmap_add(hm_distri, key, (GtUint64) 1);
    return 1;
  }
  else {
    (*valueptr) += 1;
    return 0;
  }
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
cmpq $0x0, 0x18(%rsp)
jne 0x16358e
movq 0x4d8a43(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3b2aac(%rip), %rsi    # 0x516013
leaq 0x3eb3a1(%rip), %rdx    # 0x54e90f
leaq 0x3eb3ac(%rip), %rcx    # 0x54e921
leaq 0x3eacec(%rip), %r8     # 0x54e268
movl $0x134, %r9d            # imm = 0x134
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x163590
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x1636c0
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
jne 0x1635ca
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rsi
movl $0x1, %edx
callq 0x163710
movl $0x1, 0x24(%rsp)
jmp 0x1635e1
movq 0x8(%rsp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
movl $0x0, 0x24(%rsp)
movl 0x24(%rsp), %eax
addq $0x28, %rsp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/encdesc.c
// Function: encdesc_digits_per_value
static unsigned encdesc_digits_per_value(GtUword value,
                                         GtUword base)
{
  if (value > 0) {
    double log_val, log_base;
    log_val = log((double) value);
    log_base = log((double) base);
    return (unsigned) (floor(log_val / log_base )) + 1U;
  }
  else
    return 1U;
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
cmpq $0x0, 0x38(%rsp)
jbe 0x163696
movq 0x38(%rsp), %xmm0
movaps 0x3b5319(%rip), %xmm1   # 0x518930
movaps %xmm1, (%rsp)
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x3b5319(%rip), %xmm1   # 0x518940
movaps %xmm1, 0x10(%rsp)
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
callq 0x195c0
movaps (%rsp), %xmm2
movaps 0x10(%rsp), %xmm1
movsd %xmm0, 0x28(%rsp)
movq 0x30(%rsp), %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
callq 0x195c0
movsd %xmm0, 0x20(%rsp)
movsd 0x28(%rsp), %xmm0
movsd 0x20(%rsp), %xmm1
divsd %xmm1, %xmm0
callq 0x19c60
cvttsd2si %xmm0, %rax
addl $0x1, %eax
movl %eax, 0x44(%rsp)
jmp 0x16369e
movl $0x1, 0x44(%rsp)
movl 0x44(%rsp), %eax
addq $0x48, %rsp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/encdesc.c
// Function: encdesc_hashmap_distr_get_corrected
static GtUint64 encdesc_hashmap_distr_get_corrected(const void *data,
                                                    GtUword key)
{
  EncdescHuffDist *dist = (EncdescHuffDist*) data;
  GtUint64 *valueptr;
  /* function will be called with 0-based keys, we have to correct this, so a
     0-key maps to the smalles key within the distribution */
  GtWord corrected_key = (GtWord) key + dist->correction_base;
  gt_assert(dist->li_ull_hashmap);
  if (!(valueptr = li_ull_gt_hashmap_get(dist->li_ull_hashmap,
                                         corrected_key)))
    return 0;
  return *valueptr;
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movq %rsi, 0x20(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x20(%rsp), %rax
movq 0x18(%rsp), %rcx
addq 0x8(%rcx), %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rax
cmpq $0x0, (%rax)
jne 0x1637de
movq 0x4d87f3(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3b285c(%rip), %rsi    # 0x516013
leaq 0x3eb1c8(%rip), %rdx    # 0x54e986
leaq 0x3eb1d6(%rip), %rcx    # 0x54e99b
leaq 0x3eaa9c(%rip), %r8     # 0x54e268
movl $0x38a, %r9d            # imm = 0x38A
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1637e0
movq 0x18(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rsp), %rsi
callq 0x1636c0
movq %rax, 0x10(%rsp)
cmpq $0x0, %rax
jne 0x163808
movq $0x0, 0x30(%rsp)
jmp 0x163815
movq 0x10(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
addq $0x38, %rsp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/encdesc.c
// Function: encdesc_hashmap_distr_get
static GtUint64 encdesc_hashmap_distr_get(const void *hm_distri,
                                          GtUword key)
{
  GtHashtable *hashmap = (GtHashtable*) hm_distri;
  GtUint64 *valueptr;
  gt_assert(hashmap != NULL);
  if (!(valueptr = li_ull_gt_hashmap_get(hashmap, (GtWord) key)))
    return 0;
  return *valueptr;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
jne 0x1638a8
movq 0x4d8729(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3b2792(%rip), %rsi    # 0x516013
leaq 0x3eb137(%rip), %rdx    # 0x54e9bf
leaq 0x3eb140(%rip), %rcx    # 0x54e9cf
leaq 0x3ea9d2(%rip), %r8     # 0x54e268
movl $0x39d, %r9d            # imm = 0x39D
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1638aa
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x1636c0
movq %rax, (%rsp)
cmpq $0x0, %rax
jne 0x1638ce
movq $0x0, 0x20(%rsp)
jmp 0x1638da
movq (%rsp), %rax
movq (%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/encdesc.c
// Function: append_data_to_bitstream_and_reset_info
static inline void
append_data_to_bitstream_and_reset_info(EncdescWriteInfo *info,
                                        GtBitOutStream *bitstream)
{
  EncdescCode *codes =      info->codes->spaceEncdescCode;
  GtUword number_of_codes = info->codes->nextfreeEncdescCode,
          idx;

  for (idx = 0; idx < number_of_codes; idx++)
  {
    gt_bitoutstream_append(bitstream, codes[idx].code, codes[idx].length);
  }
  info->codes->nextfreeEncdescCode = 0;
  info->total_bits_prepared = 0;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq 0x20(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x20(%rsp), %rax
movq (%rax), %rax
movq 0x10(%rax), %rax
movq %rax, 0x8(%rsp)
movq $0x0, (%rsp)
movq (%rsp), %rax
cmpq 0x8(%rsp), %rax
jae 0x163bc0
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rax
movq (%rsp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rsi
movq 0x10(%rsp), %rax
movq (%rsp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl 0x8(%rax), %edx
callq 0x489fa0
movq (%rsp), %rax
addq $0x1, %rax
movq %rax, (%rsp)
jmp 0x163b77
movq 0x20(%rsp), %rax
movq (%rax), %rax
movq $0x0, 0x10(%rax)
movq 0x20(%rsp), %rax
movq $0x0, 0x10(%rax)
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/encdesc.c
// Function: encdesc_prepare_num_of_fields
static inline void encdesc_prepare_num_of_fields(GtEncdesc *encdesc,
                                                 EncdescWriteInfo *info)
{
  GtBitsequence code;
  code =
    (GtBitsequence) encdesc->num_of_fields_tab.spaceGtUword[info->cur_desc];
  gt_assert(code <= (GtBitsequence) encdesc->num_of_fields);
  if (code < (GtBitsequence) encdesc->num_of_fields)
    gt_log_log(GT_WU " has less fields than max: " GT_WU, info->cur_desc,
               (GtUword) code);
  prepare_generic(info,
                  (unsigned) encdesc->bits_per_field,
                  code);

}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
movq 0x10(%rsp), %rax
movq (%rax), %rax
movq 0x8(%rsp), %rcx
movq 0x30(%rcx), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, (%rsp)
movq (%rsp), %rax
movq 0x10(%rsp), %rcx
cmpq 0x40(%rcx), %rax
jbe 0x163c5e
movq 0x4d8373(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3b23dc(%rip), %rsi    # 0x516013
leaq 0x3eae26(%rip), %rdx    # 0x54ea64
leaq 0x3eae4e(%rip), %rcx    # 0x54ea93
leaq 0x3ea61c(%rip), %r8     # 0x54e268
movl $0x4b, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x163c60
movq (%rsp), %rax
movq 0x10(%rsp), %rcx
cmpq 0x40(%rcx), %rax
jae 0x163c8a
movq 0x8(%rsp), %rax
movq 0x30(%rax), %rsi
movq (%rsp), %rdx
leaq 0x3eae2e(%rip), %rdi    # 0x54eab1
movb $0x0, %al
callq 0xe7740
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rax
movl 0x68(%rax), %esi
movq (%rsp), %rdx
callq 0x164180
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/encdesc.c
// Function: regular_field_prepare_length
static void inline regular_field_prepare_length(GtEncdesc *encdesc,
                                                EncdescWriteInfo *info,
                                                GtUword endpos)
{
  DescField *field = &encdesc->fields[info->cur_field_num];
  GtBitsequence code = (GtBitsequence)
                       (endpos - info->cur_field_start_pos - field->min_len);
  prepare_generic(info, field->bits_per_len, code);
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movq 0x20(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x18(%rsp), %rcx
imulq $0xc8, 0x28(%rcx), %rcx
addq %rcx, %rax
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
subq 0x20(%rcx), %rax
movq 0x8(%rsp), %rcx
subq 0x58(%rcx), %rax
movq %rax, (%rsp)
movq 0x18(%rsp), %rdi
movq 0x8(%rsp), %rax
movl 0xa8(%rax), %esi
movq (%rsp), %rdx
callq 0x164180
addq $0x28, %rsp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/encdesc.c
// Function: regular_field_prepare_char
static void inline regular_field_prepare_char(GtEncdesc *encdesc,
                                              EncdescWriteInfo *info,
                                              GtUword char_pos)
{
  DescField *field = &encdesc->fields[info->cur_field_num];
  GtBitsequence code;
  unsigned length;
  GtHuffman *huffman = field->huffman_chars[char_pos];
  char cur_char = info->descbuffer[info->cur_field_start_pos + char_pos];

  gt_assert(huffman != NULL);
  gt_huffman_encode(huffman,
                    (GtUword) cur_char,
                    &code,
                    &length);
  prepare_generic(info, length, code);
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movq %rdx, 0x30(%rsp)
movq 0x40(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x38(%rsp), %rcx
imulq $0xc8, 0x28(%rcx), %rcx
addq %rcx, %rax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
movq (%rax), %rax
movq 0x30(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x10(%rsp)
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x38(%rsp), %rcx
movq 0x20(%rcx), %rcx
addq 0x30(%rsp), %rcx
movb (%rax,%rcx), %al
movb %al, 0xf(%rsp)
cmpq $0x0, 0x10(%rsp)
jne 0x164145
movq 0x4d7e8c(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3b1ef5(%rip), %rsi    # 0x516013
leaq 0x3eaaf8(%rip), %rdx    # 0x54ec1d
leaq 0x3eab48(%rip), %rcx    # 0x54ec74
leaq 0x3ea135(%rip), %r8     # 0x54e268
movl $0xca, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x164147
movq 0x10(%rsp), %rdi
movsbq 0xf(%rsp), %rsi
leaq 0x20(%rsp), %rdx
leaq 0x1c(%rsp), %rcx
callq 0x192440
movq 0x38(%rsp), %rdi
movl 0x1c(%rsp), %esi
movq 0x20(%rsp), %rdx
callq 0x164180
addq $0x48, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/encdesc.c
// Function: prepare_generic
static inline void prepare_generic(EncdescWriteInfo *info,
                                   unsigned length,
                                   GtBitsequence code)
{
  EncdescCode *this_code;

  GT_GETNEXTFREEINARRAY(this_code, info->codes, EncdescCode,
                        GT_ENCDESC_ARRAY_RESIZE);

  this_code->length = length;
  this_code->code = code;

  info->total_bits_prepared += this_code->length;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movl %esi, 0x1c(%rsp)
movq %rdx, 0x10(%rsp)
jmp 0x164194
movq 0x20(%rsp), %rax
movq (%rax), %rax
movq 0x10(%rax), %rax
addq $0x0, %rax
movq 0x20(%rsp), %rcx
movq (%rcx), %rcx
cmpq 0x8(%rcx), %rax
jb 0x16424e
movq $0x32, (%rsp)
xorl %eax, %eax
cmpq (%rsp), %rax
jbe 0x1641fe
movq 0x4d7dd3(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3b1e3c(%rip), %rsi    # 0x516013
leaq 0x3b4fc9(%rip), %rdx    # 0x5191a7
leaq 0x3ea8ee(%rip), %rcx    # 0x54ead3
leaq 0x3ea07c(%rip), %r8     # 0x54e268
movl $0x3d, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x164200
movq (%rsp), %rcx
movq 0x20(%rsp), %rax
movq (%rax), %rax
addq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movq 0x20(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rdi
movq 0x20(%rsp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rsi
shlq $0x4, %rsi
leaq 0x3ea032(%rip), %rdx    # 0x54e268
movl $0x3d, %ecx
callq 0xe8540
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq (%rax), %rax
movq %rcx, (%rax)
jmp 0x164250
movq 0x20(%rsp), %rax
movq (%rax), %rax
cmpq $0x0, (%rax)
jne 0x164296
movq 0x4d7d3b(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3b1da4(%rip), %rsi    # 0x516013
leaq 0x3ea86d(%rip), %rdx    # 0x54eae3
leaq 0x3ea856(%rip), %rcx    # 0x54ead3
leaq 0x3e9fe4(%rip), %r8     # 0x54e268
movl $0x3d, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x164298
jmp 0x16429a
movq 0x20(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rax
movq 0x20(%rsp), %rcx
movq (%rcx), %rdx
movq 0x10(%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x10(%rdx)
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, 0x8(%rsp)
movl 0x1c(%rsp), %ecx
movq 0x8(%rsp), %rax
movl %ecx, 0x8(%rax)
movq 0x10(%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, (%rax)
movq 0x8(%rsp), %rax
movl 0x8(%rax), %eax
movl %eax, %ecx
movq 0x20(%rsp), %rax
addq 0x10(%rax), %rcx
movq %rcx, 0x10(%rax)
addq $0x28, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/encdesc.c
// Function: numeric_field_prepare_zero_padding
static void numeric_field_prepare_zero_padding(GtEncdesc *encdesc,
                                               EncdescWriteInfo *info)
{
  GtBitsequence code;
  unsigned length,
           zero_count;
  GtHuffman *huffman;
  DescField *cur_field = &encdesc->fields[info->cur_field_num];

  zero_count = count_leading_zeros(info->descbuffer +
                                     info->cur_field_start_pos);

  huffman = cur_field->huffman_zero_count;
  gt_assert(huffman != NULL);
  gt_huffman_encode(huffman,
                    (GtUword) zero_count,
                    &code,
                    &length);
  prepare_generic(info, length, code);

}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq 0x30(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x28(%rsp), %rcx
imulq $0xc8, 0x28(%rcx), %rcx
addq %rcx, %rax
movq %rax, 0x8(%rsp)
movq 0x28(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x28(%rsp), %rax
addq 0x20(%rax), %rdi
callq 0x163410
movl %eax, 0x18(%rsp)
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
cmpq $0x0, 0x10(%rsp)
jne 0x164395
movq 0x4d7c3c(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3b1ca5(%rip), %rsi    # 0x516013
leaq 0x3ea8a8(%rip), %rdx    # 0x54ec1d
leaq 0x3ea8b1(%rip), %rcx    # 0x54ec2d
leaq 0x3e9ee5(%rip), %r8     # 0x54e268
movl $0x330, %r9d            # imm = 0x330
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x164397
movq 0x10(%rsp), %rdi
movl 0x18(%rsp), %eax
movl %eax, %esi
leaq 0x20(%rsp), %rdx
leaq 0x1c(%rsp), %rcx
callq 0x192440
movq 0x28(%rsp), %rdi
movl 0x1c(%rsp), %esi
movq 0x20(%rsp), %rdx
callq 0x164180
addq $0x38, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/encdesc.c
// Function: numeric_field_sample_prepare_verbose_value
static void numeric_field_sample_prepare_verbose_value(GtEncdesc *encdesc,
                                                       EncdescWriteInfo *info,
                                                       GtUword value)
{
  DescField *cur_field = &encdesc->fields[info->cur_field_num];

  prepare_generic(info,
                  cur_field->bits_per_value,
                  (GtBitsequence) value);
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movq 0x20(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x18(%rsp), %rcx
imulq $0xc8, 0x28(%rcx), %rcx
addq %rcx, %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rdi
movq 0x8(%rsp), %rax
movl 0xb0(%rax), %esi
movq 0x10(%rsp), %rdx
callq 0x164180
addq $0x28, %rsp
retq
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/encdesc.c
// Function: numeric_field_prepare_huffman_value
static void numeric_field_prepare_huffman_value(GtEncdesc *encdesc,
                                                EncdescWriteInfo *info,
                                                GtUword value)
{
  GtBitsequence code;
  unsigned length;
  DescField *cur_field = &encdesc->fields[info->cur_field_num];
  GtHuffman *huffman;

  huffman = cur_field->huffman_num;
  gt_assert(huffman != NULL);
  gt_huffman_encode(huffman,
                    value,
                    &code,
                    &length);

  prepare_generic(info, length, code);
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq %rdx, 0x20(%rsp)
movq 0x30(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x28(%rsp), %rcx
imulq $0xc8, 0x28(%rcx), %rcx
addq %rcx, %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, (%rsp)
cmpq $0x0, (%rsp)
jne 0x16449d
movq 0x4d7b34(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3b1b9d(%rip), %rsi    # 0x516013
leaq 0x3ea7a0(%rip), %rdx    # 0x54ec1d
leaq 0x3ea7cc(%rip), %rcx    # 0x54ec50
leaq 0x3e9ddd(%rip), %r8     # 0x54e268
movl $0x75, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x16449f
movq (%rsp), %rdi
movq 0x20(%rsp), %rsi
leaq 0x18(%rsp), %rdx
leaq 0x14(%rsp), %rcx
callq 0x192440
movq 0x28(%rsp), %rdi
movl 0x14(%rsp), %esi
movq 0x18(%rsp), %rdx
callq 0x164180
addq $0x38, %rsp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/encdesc.c
// Function: encdesc_read_bits
static inline int encdesc_read_bits(GtBitInStream *instream,
                                    unsigned bits_to_read,
                                    GtBitsequence *bitseq,
                                    GtError *err) {
  int had_err = 0;
  unsigned readbits;
  bool bit;

  for (readbits = 0, *bitseq = 0;
       !had_err && readbits < bits_to_read;
       readbits++) {
    *bitseq = *bitseq << 1;
    if (gt_bitinstream_get_next_bit(instream,
                                    &bit) != 1) {
      gt_error_set(err, "could not get next bit");
      had_err = -1;
    }
    else if (bit)
      *bitseq = *bitseq | (GtBitsequence) 1;
  }
  return had_err;
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movl %esi, 0x2c(%rsp)
movq %rdx, 0x20(%rsp)
movq %rcx, 0x18(%rsp)
movl $0x0, 0x14(%rsp)
movl $0x0, 0x10(%rsp)
movq 0x20(%rsp), %rax
movq $0x0, (%rax)
xorl %eax, %eax
cmpl $0x0, 0x14(%rsp)
movb %al, 0xe(%rsp)
jne 0x16456f
movl 0x10(%rsp), %eax
cmpl 0x2c(%rsp), %eax
setb %al
movb %al, 0xe(%rsp)
movb 0xe(%rsp), %al
testb $0x1, %al
jne 0x164579
jmp 0x1645ec
movq 0x20(%rsp), %rax
movq (%rax), %rcx
shlq %rcx
movq 0x20(%rsp), %rax
movq %rcx, (%rax)
movq 0x30(%rsp), %rdi
leaq 0xf(%rsp), %rsi
callq 0x489d10
cmpl $0x1, %eax
je 0x1645bd
movq 0x18(%rsp), %rdi
leaq 0x3ea794(%rip), %rsi    # 0x54ed40
movb $0x0, %al
callq 0xd88c0
movl $0xffffffff, 0x14(%rsp) # imm = 0xFFFFFFFF
jmp 0x1645da
testb $0x1, 0xf(%rsp)
je 0x1645d8
movq 0x20(%rsp), %rax
movq (%rax), %rcx
orq $0x1, %rcx
movq 0x20(%rsp), %rax
movq %rcx, (%rax)
jmp 0x1645da
jmp 0x1645dc
movl 0x10(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x10(%rsp)
jmp 0x164553
movl 0x14(%rsp), %eax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)
nop
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/encdesc_header_io.c
// Function: encdesc_header_io_basics
static inline int encdesc_header_io_basics(GtEncdesc *encdesc,
                                           FILE *fp,
                                           GtIOFunc io_func,
                                           GtError *err)
{
  int had_err = 0;
  had_err = GT_ENCDESC_IO_ONE((encdesc->num_of_descs));
  gt_log_log("num of descs: " GT_WU, encdesc->num_of_descs);
  if (!had_err)
    had_err = GT_ENCDESC_IO_ONE((encdesc->num_of_fields));
  gt_log_log("num of fields: " GT_WU, encdesc->num_of_fields);
  if (!had_err)
    had_err = GT_ENCDESC_IO_ONE((encdesc->num_of_fields_is_const));
  if (encdesc->num_of_fields_is_const)
    gt_log_log("num of fields is a constant");
  else
    gt_log_log("num of fields is variable");
  if (!had_err)
    had_err = GT_ENCDESC_IO_ONE((encdesc->bits_per_field));
  gt_log_log("num of bits per field: %u", encdesc->bits_per_field);
  return had_err;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movq %rcx, 0x8(%rsp)
movl $0x0, 0x4(%rsp)
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rdi
addq $0x38, %rdi
movq 0x18(%rsp), %rcx
movq 0x8(%rsp), %r8
movl $0x8, %esi
movl $0x1, %edx
callq *%rax
movl %eax, 0x4(%rsp)
movq 0x20(%rsp), %rax
movq 0x38(%rax), %rsi
leaq 0x3ea5b5(%rip), %rdi    # 0x54ee1d
movb $0x0, %al
callq 0xe7740
cmpl $0x0, 0x4(%rsp)
jne 0x16489e
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rdi
addq $0x40, %rdi
movq 0x18(%rsp), %rcx
movq 0x8(%rsp), %r8
movl $0x8, %esi
movl $0x1, %edx
callq *%rax
movl %eax, 0x4(%rsp)
movq 0x20(%rsp), %rax
movq 0x40(%rax), %rsi
leaq 0x3ea581(%rip), %rdi    # 0x54ee2f
movb $0x0, %al
callq 0xe7740
cmpl $0x0, 0x4(%rsp)
jne 0x1648e2
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rdi
addq $0x6c, %rdi
movq 0x18(%rsp), %rcx
movq 0x8(%rsp), %r8
movl $0x1, %edx
movq %rdx, %rsi
callq *%rax
movl %eax, 0x4(%rsp)
movq 0x20(%rsp), %rax
testb $0x1, 0x6c(%rax)
je 0x1648fd
leaq 0x3ea54e(%rip), %rdi    # 0x54ee42
movb $0x0, %al
callq 0xe7740
jmp 0x16490b
leaq 0x3ea55a(%rip), %rdi    # 0x54ee5e
movb $0x0, %al
callq 0xe7740
cmpl $0x0, 0x4(%rsp)
jne 0x16493a
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rdi
addq $0x68, %rdi
movq 0x18(%rsp), %rcx
movq 0x8(%rsp), %r8
movl $0x4, %esi
movl $0x1, %edx
callq *%rax
movl %eax, 0x4(%rsp)
movq 0x20(%rsp), %rax
movl 0x68(%rax), %esi
leaq 0x3ea52f(%rip), %rdi    # 0x54ee78
movb $0x0, %al
callq 0xe7740
movl 0x4(%rsp), %eax
addq $0x28, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/encdesc_header_io.c
// Function: io_field_sep_and_is_const
static int io_field_sep_and_is_const(DescField *field,
                                    FILE *fp,
                                    GtIOFunc io_func,
                                    GtError *err)
{
  int had_err = 0;
  had_err = GT_ENCDESC_IO_ONE(field->sep);
  if (!had_err)
    had_err = GT_ENCDESC_IO_ONE(field->is_const);
  return had_err;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movq %rcx, 0x8(%rsp)
movl $0x0, 0x4(%rsp)
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rdi
addq $0xb8, %rdi
movq 0x18(%rsp), %rcx
movq 0x8(%rsp), %r8
movl $0x1, %edx
movq %rdx, %rsi
callq *%rax
movl %eax, 0x4(%rsp)
cmpl $0x0, 0x4(%rsp)
jne 0x1649d9
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rdi
addq $0xbb, %rdi
movq 0x18(%rsp), %rcx
movq 0x8(%rsp), %r8
movl $0x1, %edx
movq %rdx, %rsi
callq *%rax
movl %eax, 0x4(%rsp)
movl 0x4(%rsp), %eax
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/encdesc_header_io.c
// Function: io_cons_field_header
static int io_cons_field_header(DescField *field,
                                FILE *fp,
                                GtIOFunc io_func,
                                GtError *err)
{
  int had_err = 0;
  had_err = GT_ENCDESC_IO_ONE(field->len);

  if (!had_err) {
    field->data = gt_realloc(field->data,
                             (size_t) (field->len + 1) * sizeof (char));
    field->data[field->len] = '\0';
    had_err = io_func(field->data, sizeof (char), (size_t) field->len, fp, err);
  }
  return had_err;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movq %rcx, 0x8(%rsp)
movl $0x0, 0x4(%rsp)
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rdi
addq $0x50, %rdi
movq 0x18(%rsp), %rcx
movq 0x8(%rsp), %r8
movl $0x8, %esi
movl $0x1, %edx
callq *%rax
movl %eax, 0x4(%rsp)
cmpl $0x0, 0x4(%rsp)
jne 0x164ab8
movq 0x20(%rsp), %rax
movq 0x40(%rax), %rdi
movq 0x20(%rsp), %rax
movq 0x50(%rax), %rsi
addq $0x1, %rsi
shlq $0x0, %rsi
leaq 0x3ea374(%rip), %rdx    # 0x54edd4
movl $0x4c, %ecx
callq 0xe8540
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x40(%rax)
movq 0x20(%rsp), %rax
movq 0x40(%rax), %rax
movq 0x20(%rsp), %rcx
movq 0x50(%rcx), %rcx
movb $0x0, (%rax,%rcx)
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
movq 0x40(%rcx), %rdi
movq 0x20(%rsp), %rcx
movq 0x50(%rcx), %rdx
movq 0x18(%rsp), %rcx
movq 0x8(%rsp), %r8
movl $0x1, %esi
callq *%rax
movl %eax, 0x4(%rsp)
movl 0x4(%rsp), %eax
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/encdesc_header_io.c
// Function: io_field_len_header
static int io_field_len_header(DescField *field,
                               FILE *fp,
                               GtIOFunc io_func,
                               GtError *err)
{
  int had_err = 0;
  had_err = GT_ENCDESC_IO_ONE(field->fieldlen_is_const);
  if (!had_err)
    had_err = GT_ENCDESC_IO_ONE(field->len);
  if (!had_err)
    had_err = GT_ENCDESC_IO_ONE(field->max_len);
  if (!had_err)
    had_err = GT_ENCDESC_IO_ONE(field->min_len);
  if (!had_err)
    had_err = GT_ENCDESC_IO_ONE(field->bits_per_len);
  return had_err;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movq %rcx, 0x8(%rsp)
movl $0x0, 0x4(%rsp)
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rdi
addq $0xb9, %rdi
movq 0x18(%rsp), %rcx
movq 0x8(%rsp), %r8
movl $0x1, %edx
movq %rdx, %rsi
callq *%rax
movl %eax, 0x4(%rsp)
cmpl $0x0, 0x4(%rsp)
jne 0x164da8
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rdi
addq $0x50, %rdi
movq 0x18(%rsp), %rcx
movq 0x8(%rsp), %r8
movl $0x8, %esi
movl $0x1, %edx
callq *%rax
movl %eax, 0x4(%rsp)
cmpl $0x0, 0x4(%rsp)
jne 0x164dd7
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rdi
addq $0x68, %rdi
movq 0x18(%rsp), %rcx
movq 0x8(%rsp), %r8
movl $0x8, %esi
movl $0x1, %edx
callq *%rax
movl %eax, 0x4(%rsp)
cmpl $0x0, 0x4(%rsp)
jne 0x164e06
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rdi
addq $0x58, %rdi
movq 0x18(%rsp), %rcx
movq 0x8(%rsp), %r8
movl $0x8, %esi
movl $0x1, %edx
callq *%rax
movl %eax, 0x4(%rsp)
cmpl $0x0, 0x4(%rsp)
jne 0x164e38
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rdi
addq $0xa8, %rdi
movq 0x18(%rsp), %rcx
movq 0x8(%rsp), %r8
movl $0x4, %esi
movl $0x1, %edx
callq *%rax
movl %eax, 0x4(%rsp)
movl 0x4(%rsp), %eax
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/encdesc_header_io.c
// Function: write_field_header_bittab
static int write_field_header_bittab(DescField *field, FILE *fp, GtError *err)
{
  int had_err = 0;
  GtUword char_idx,
          num_of_chars = field->len / sizeof (char);
  char cc = 0;
  size_t bit_idx;

  if (field->len % sizeof (char) != 0)
    num_of_chars++;

  for (char_idx = 0; !had_err && char_idx < num_of_chars; char_idx++) {
    for (bit_idx = 0; !had_err && bit_idx < sizeof (char); bit_idx++) {
      if (gt_bittab_bit_is_set(field->bittab,
                               (GtUword) ((sizeof (char) * char_idx) +
                                          bit_idx)))
        cc |= 1 << bit_idx;
    }
    had_err = gt_io_error_fwrite_one(cc, fp, err);
    cc = 0;
  }
  return had_err;
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movq %rdx, 0x30(%rsp)
movl $0x0, 0x2c(%rsp)
movq 0x40(%rsp), %rax
movq 0x50(%rax), %rax
shrq $0x0, %rax
movq %rax, 0x18(%rsp)
movb $0x0, 0x17(%rsp)
movq 0x40(%rsp), %rax
movq 0x50(%rax), %rax
andq $0x0, %rax
cmpq $0x0, %rax
je 0x164ea3
movq 0x18(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x18(%rsp)
movq $0x0, 0x20(%rsp)
xorl %eax, %eax
cmpl $0x0, 0x2c(%rsp)
movb %al, 0x7(%rsp)
jne 0x164eca
movq 0x20(%rsp), %rax
cmpq 0x18(%rsp), %rax
setb %al
movb %al, 0x7(%rsp)
movb 0x7(%rsp), %al
testb $0x1, %al
jne 0x164ed7
jmp 0x164f8b
movq $0x0, 0x8(%rsp)
xorl %eax, %eax
cmpl $0x0, 0x2c(%rsp)
movb %al, 0x6(%rsp)
jne 0x164efa
cmpq $0x1, 0x8(%rsp)
setb %al
movb %al, 0x6(%rsp)
movb 0x6(%rsp), %al
testb $0x1, %al
jne 0x164f04
jmp 0x164f53
movq 0x40(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x20(%rsp), %rsi
shlq $0x0, %rsi
addq 0x8(%rsp), %rsi
callq 0x8a780
testb $0x1, %al
jne 0x164f26
jmp 0x164f41
movq 0x8(%rsp), %rax
movl %eax, %ecx
movl $0x1, %eax
shll %cl, %eax
movl %eax, %ecx
movsbl 0x17(%rsp), %eax
orl %ecx, %eax
movb %al, 0x17(%rsp)
jmp 0x164f43
movq 0x8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x8(%rsp)
jmp 0x164ee0
movq 0x38(%rsp), %rcx
movq 0x30(%rsp), %r8
leaq 0x17(%rsp), %rdi
movl $0x1, %edx
movq %rdx, %rsi
callq 0x197850
movl %eax, 0x2c(%rsp)
movb $0x0, 0x17(%rsp)
movq 0x20(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x20(%rsp)
jmp 0x164eac
movl 0x2c(%rsp), %eax
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/encdesc_header_io.c
// Function: write_field_char_dists
static int write_field_char_dists(DescField *field,
                                  FILE *fp, GtError *err)
{
  int had_err = 0;
  GtUword char_idx,
          distr_len;
  EncsecDistriData data;
  data.fp = fp;
  data.minimum_element = 0;
  data.written_elems = 0;
  data.had_err = 0;
  data.err = err;

  for (char_idx = 0; !had_err && char_idx < field->max_len; char_idx++) {
    if (char_idx >= field->len ||
        !gt_bittab_bit_is_set(field->bittab, char_idx)) {

      distr_len = get_hashmap_distri_size(field->chars[char_idx]);
      had_err = gt_io_error_fwrite_one(distr_len, fp, err);
      if (!had_err)
        field->chars[char_idx] = io_hashmap_distri(field->chars[char_idx],
                                                   distr_len,
                                                   &data, err);
      if (field->chars[char_idx] == NULL)
        had_err = 1;
    }
  }
  return had_err;
}

// Assembly:
subq $0x68, %rsp
movq %rdi, 0x60(%rsp)
movq %rsi, 0x58(%rsp)
movq %rdx, 0x50(%rsp)
movl $0x0, 0x4c(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq $0x0, 0x18(%rsp)
movl $0x0, 0x30(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0x28(%rsp)
movq $0x0, 0x40(%rsp)
xorl %eax, %eax
cmpl $0x0, 0x4c(%rsp)
movb %al, 0xf(%rsp)
jne 0x165014
movq 0x40(%rsp), %rax
movq 0x60(%rsp), %rcx
cmpq 0x68(%rcx), %rax
setb %al
movb %al, 0xf(%rsp)
movb 0xf(%rsp), %al
testb $0x1, %al
jne 0x165021
jmp 0x165100
movq 0x40(%rsp), %rax
movq 0x60(%rsp), %rcx
cmpq 0x50(%rcx), %rax
jae 0x16504c
movq 0x60(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x40(%rsp), %rsi
callq 0x8a780
testb $0x1, %al
jne 0x1650eb
movq 0x60(%rsp), %rax
movq 0x30(%rax), %rax
movq 0x40(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x166680
movq %rax, 0x38(%rsp)
movq 0x58(%rsp), %rcx
movq 0x50(%rsp), %r8
leaq 0x38(%rsp), %rdi
movl $0x8, %esi
movl $0x1, %edx
callq 0x197850
movl %eax, 0x4c(%rsp)
cmpl $0x0, 0x4c(%rsp)
jne 0x1650cc
movq 0x60(%rsp), %rax
movq 0x30(%rax), %rax
movq 0x40(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
movq 0x38(%rsp), %rsi
movq 0x50(%rsp), %rcx
leaq 0x10(%rsp), %rdx
callq 0x165da0
movq %rax, %rdx
movq 0x60(%rsp), %rax
movq 0x30(%rax), %rax
movq 0x40(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x60(%rsp), %rax
movq 0x30(%rax), %rax
movq 0x40(%rsp), %rcx
cmpq $0x0, (%rax,%rcx,8)
jne 0x1650e9
movl $0x1, 0x4c(%rsp)
jmp 0x1650eb
jmp 0x1650ed
movq 0x40(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x40(%rsp)
jmp 0x164ff2
movl 0x4c(%rsp), %eax
addq $0x68, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/encdesc_header_io.c
// Function: read_field_header_bittab
static int read_field_header_bittab(DescField *field,
                                    FILE *fp, GtError *err)
{
  int had_err = 0;
  char cc;
  GtUword char_idx,
          num_of_chars = field->len / sizeof (char);
  size_t bit_idx;

  if (field->len % sizeof (char) != 0)
    num_of_chars++;

  for (char_idx = 0; char_idx < num_of_chars; char_idx++) {
    had_err = gt_io_error_fread_one(cc, fp, err);
    for (bit_idx = 0; !had_err && bit_idx < sizeof (char); bit_idx++) {
      if (cc & (1 << bit_idx))
        gt_bittab_set_bit(field->bittab,
                          (GtUword) ((sizeof (char) * char_idx) +
                                     bit_idx));
    }
  }
  return had_err;
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movq %rdx, 0x30(%rsp)
movl $0x0, 0x2c(%rsp)
movq 0x40(%rsp), %rax
movq 0x50(%rax), %rax
shrq $0x0, %rax
movq %rax, 0x18(%rsp)
movq 0x40(%rsp), %rax
movq 0x50(%rax), %rax
andq $0x0, %rax
cmpq $0x0, %rax
je 0x16549e
movq 0x18(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x18(%rsp)
movq $0x0, 0x20(%rsp)
movq 0x20(%rsp), %rax
cmpq 0x18(%rsp), %rax
jae 0x165561
movq 0x38(%rsp), %rcx
movq 0x30(%rsp), %r8
leaq 0x2b(%rsp), %rdi
movl $0x1, %edx
movq %rdx, %rsi
callq 0x1978e0
movl %eax, 0x2c(%rsp)
movq $0x0, 0x10(%rsp)
xorl %eax, %eax
cmpl $0x0, 0x2c(%rsp)
movb %al, 0xf(%rsp)
jne 0x1654fa
cmpq $0x1, 0x10(%rsp)
setb %al
movb %al, 0xf(%rsp)
movb 0xf(%rsp), %al
testb $0x1, %al
jne 0x165504
jmp 0x16554c
movsbl 0x2b(%rsp), %eax
movq 0x10(%rsp), %rcx
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
andl %ecx, %eax
cmpl $0x0, %eax
je 0x16553a
movq 0x40(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x20(%rsp), %rsi
shlq $0x0, %rsi
addq 0x10(%rsp), %rsi
callq 0x89b00
jmp 0x16553c
movq 0x10(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x10(%rsp)
jmp 0x1654e0
jmp 0x16554e
movq 0x20(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x20(%rsp)
jmp 0x1654a7
movl 0x2c(%rsp), %eax
addq $0x48, %rsp
retq
nopw (%rax,%rax)