// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/encdesc.c
// Function: encdesc_delete_desc_fields
static void encdesc_delete_desc_fields(DescField *fields,
                                      GtUword numoffields)
{
  GtUword idx,
                j_idx;

  if (!fields)
    return;
  for (idx = 0; idx < numoffields; idx++) {
    gt_huffman_delete(fields[idx].huffman_num);
    gt_huffman_delete(fields[idx].huffman_zero_count);
    gt_free(fields[idx].data);
    if (fields[idx].chars != NULL) {
      for (j_idx = 0; j_idx < fields[idx].max_len; j_idx++)
        gt_hashtable_delete(fields[idx].chars[j_idx]);
      gt_free(fields[idx].chars);
    }
    gt_hashtable_delete(fields[idx].delta_values);
    gt_hashtable_delete(fields[idx].num_values);
    gt_disc_distri_delete(fields[idx].zero_count);

    if (fields[idx].huffman_chars != NULL) {
      for (j_idx = 0; j_idx < fields[idx].max_len; j_idx++) {
        if (j_idx >= fields[idx].len ||
            !gt_bittab_bit_is_set(fields[idx].bittab, j_idx))
          gt_huffman_delete(fields[idx].huffman_chars[j_idx]);
      }
      gt_free(fields[idx].huffman_chars);
    }
    gt_bittab_delete(fields[idx].bittab);
  }
  gt_free(fields);
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
cmpq $0x0, 0x20(%rsp)
jne 0x162d4b
jmp 0x162fc0
movq $0x0, 0x10(%rsp)
movq 0x10(%rsp), %rax
cmpq 0x18(%rsp), %rax
jae 0x162faa
movq 0x20(%rsp), %rax
imulq $0xc8, 0x10(%rsp), %rcx
addq %rcx, %rax
movq 0x8(%rax), %rdi
callq 0x192210
movq 0x20(%rsp), %rax
imulq $0xc8, 0x10(%rsp), %rcx
addq %rcx, %rax
movq 0x10(%rax), %rdi
callq 0x192210
movq 0x20(%rsp), %rax
imulq $0xc8, 0x10(%rsp), %rcx
addq %rcx, %rax
movq 0x40(%rax), %rdi
leaq 0x3eb4b4(%rip), %rsi    # 0x54e268
movl $0x5d2, %edx            # imm = 0x5D2
callq 0xe88c0
movq 0x20(%rsp), %rax
imulq $0xc8, 0x10(%rsp), %rcx
addq %rcx, %rax
cmpq $0x0, 0x30(%rax)
je 0x162e54
movq $0x0, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq 0x20(%rsp), %rcx
imulq $0xc8, 0x10(%rsp), %rdx
addq %rdx, %rcx
cmpq 0x68(%rcx), %rax
jae 0x162e2e
movq 0x20(%rsp), %rax
imulq $0xc8, 0x10(%rsp), %rcx
addq %rcx, %rax
movq 0x30(%rax), %rax
movq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0xe3360
movq 0x8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x8(%rsp)
jmp 0x162ddf
movq 0x20(%rsp), %rax
imulq $0xc8, 0x10(%rsp), %rcx
addq %rcx, %rax
movq 0x30(%rax), %rdi
leaq 0x3eb41e(%rip), %rsi    # 0x54e268
movl $0x5d6, %edx            # imm = 0x5D6
callq 0xe88c0
movq 0x20(%rsp), %rax
imulq $0xc8, 0x10(%rsp), %rcx
addq %rcx, %rax
movq 0x28(%rax), %rdi
callq 0xe3360
movq 0x20(%rsp), %rax
imulq $0xc8, 0x10(%rsp), %rcx
addq %rcx, %rax
movq 0x20(%rax), %rdi
callq 0xe3360
movq 0x20(%rsp), %rax
imulq $0xc8, 0x10(%rsp), %rcx
addq %rcx, %rax
movq 0x38(%rax), %rdi
callq 0xa5bf0
movq 0x20(%rsp), %rax
imulq $0xc8, 0x10(%rsp), %rcx
addq %rcx, %rax
cmpq $0x0, (%rax)
je 0x162f7d
movq $0x0, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq 0x20(%rsp), %rcx
imulq $0xc8, 0x10(%rsp), %rdx
addq %rdx, %rcx
cmpq 0x68(%rcx), %rax
jae 0x162f58
movq 0x8(%rsp), %rax
movq 0x20(%rsp), %rcx
imulq $0xc8, 0x10(%rsp), %rdx
addq %rdx, %rcx
cmpq 0x50(%rcx), %rax
jae 0x162f21
movq 0x20(%rsp), %rax
imulq $0xc8, 0x10(%rsp), %rcx
addq %rcx, %rax
movq 0x18(%rax), %rdi
movq 0x8(%rsp), %rsi
callq 0x8a780
testb $0x1, %al
jne 0x162f43
movq 0x20(%rsp), %rax
imulq $0xc8, 0x10(%rsp), %rcx
addq %rcx, %rax
movq (%rax), %rax
movq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x192210
jmp 0x162f45
movq 0x8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x8(%rsp)
jmp 0x162ec6
movq 0x20(%rsp), %rax
imulq $0xc8, 0x10(%rsp), %rcx
addq %rcx, %rax
movq (%rax), %rdi
leaq 0x3eb2f5(%rip), %rsi    # 0x54e268
movl $0x5e2, %edx            # imm = 0x5E2
callq 0xe88c0
movq 0x20(%rsp), %rax
imulq $0xc8, 0x10(%rsp), %rcx
addq %rcx, %rax
movq 0x18(%rax), %rdi
callq 0x8af40
movq 0x10(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x10(%rsp)
jmp 0x162d54
movq 0x20(%rsp), %rdi
leaq 0x3eb2b2(%rip), %rsi    # 0x54e268
movl $0x5e6, %edx            # imm = 0x5E6
callq 0xe88c0
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)