// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/intset_16.c
// Function: gt_intset_16_io
GtIntset *gt_intset_16_io(GtIntset *intset, FILE *fp, GtError *err)
{
  GtIntset16 *intset_16;
  if (intset == NULL) {
    intset = gt_intset_create(gt_intset_16_class());
    intset->members->sectionstart = NULL;
    intset->members->refcount = 0;
    intset_16 = gt_intset_16_cast(intset);
    intset_16->elements = NULL;
    intset = gt_intset_16_io_fp(intset, fp, err, gt_io_error_fread);
  }
  else {
    intset = gt_intset_16_io_fp(intset, fp, err, gt_io_error_fwrite);
  }
  return intset;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %r14
movq %rsi, %r15
testq %rdi, %rdi
je 0x2ff870
movq %rdi, %rbx
movq $0x10, 0x8(%rsp)
testq %r14, %r14
je 0x2ff6e4
movq %r14, %rdi
callq 0xfcc32
testb %al, %al
jne 0x2ffa8a
callq 0x2ff40a
movq %rax, %rdi
movq %rbx, %rsi
callq 0x1566fc
movq %rax, %r12
leaq 0x8(%rsp), %rdi
movl $0x8, %esi
movl $0x1, %edx
movq %r15, %rcx
movq %r14, %r8
callq 0x156cc4
testl %eax, %eax
jne 0x2ff721
cmpq $0x10, 0x8(%rsp)
jne 0x2ff8f9
testl %eax, %eax
jne 0x2ff90a
movq 0x8(%rbx), %r13
leaq 0x10(%r13), %rdi
movl $0x8, %esi
movl $0x1, %edx
movq %r15, %rcx
movq %r14, %r8
callq 0x156cc4
testl %eax, %eax
jne 0x2ff7ff
leaq 0x18(%r13), %rdi
movl $0x8, %esi
movl $0x1, %edx
movq %r15, %rcx
movq %r14, %r8
callq 0x156cc4
testl %eax, %eax
jne 0x2ff7ff
leaq 0x20(%r13), %rdi
movl $0x8, %esi
movl $0x1, %edx
movq %r15, %rcx
movq %r14, %r8
callq 0x156cc4
testl %eax, %eax
jne 0x2ff7ff
leaq 0x28(%r13), %rdi
movl $0x8, %esi
movl $0x1, %edx
movq %r15, %rcx
movq %r14, %r8
callq 0x156cc4
testl %eax, %eax
jne 0x2ff7ff
leaq 0x38(%r13), %rdi
movl $0x8, %esi
movl $0x1, %edx
movq %r15, %rcx
movq %r14, %r8
callq 0x156cc4
testl %eax, %eax
jne 0x2ff7ff
movq $0x10, 0x8(%r13)
movq (%r13), %rdi
movq 0x18(%r13), %rax
shrq $0x10, %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x30(%r13)
leaq 0x10(,%rax,8), %rsi
leaq 0xde89f(%rip), %rdx     # 0x3de090
movl $0x9a, %ecx
callq 0x104461
movq %rax, (%r13)
movq (%r13), %rdi
movq 0x30(%r13), %rdx
incq %rdx
movl $0x8, %esi
movq %r15, %rcx
movq %r14, %r8
callq 0x156cc4
testl %eax, %eax
jne 0x2ff90a
movq (%r13), %rax
movq (%rax), %rdx
testq %rdx, %rdx
jne 0x2ffa2e
movq 0x10(%r12), %rdi
movq 0x28(%r13), %rsi
addq %rsi, %rsi
leaq 0xde84b(%rip), %rdx     # 0x3de090
movl $0xa6, %ecx
callq 0x104461
movq %rax, 0x10(%r12)
movq 0x28(%r13), %rdx
movl $0x2, %esi
movq %rax, %rdi
movq %r15, %rcx
movq %r14, %r8
callq 0x156cc4
jmp 0x2ffa7d
callq 0x2ff40a
movq %rax, %rdi
callq 0x156688
movq %rax, %rbx
movq 0x8(%rax), %rax
xorl %r12d, %r12d
movq %r12, (%rax)
movq %r12, 0x40(%rax)
callq 0x2ff40a
movq %rax, %rdi
movq %rbx, %rsi
callq 0x1566fc
movq %r12, 0x10(%rax)
movq $0x10, 0x8(%rsp)
testq %r14, %r14
je 0x2ff8c0
movq %r14, %rdi
callq 0xfcc32
testb %al, %al
jne 0x2ffa8f
callq 0x2ff40a
movq %rax, %rdi
movq %rbx, %rsi
callq 0x1566fc
movq %rax, %r12
leaq 0x8(%rsp), %rdi
movl $0x8, %esi
movl $0x1, %edx
movq %r15, %rcx
movq %r14, %r8
callq 0x156d03
testl %eax, %eax
jne 0x2ff925
cmpq $0x10, 0x8(%rsp)
je 0x2ff925
leaq 0xde7bc(%rip), %rsi     # 0x3de0bc
movq %r14, %rdi
xorl %eax, %eax
callq 0xfcb67
movq %rbx, %rdi
callq 0x2ff676
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
testl %eax, %eax
jne 0x2ff90a
movq 0x8(%rbx), %r13
leaq 0x10(%r13), %rdi
movl $0x8, %esi
movl $0x1, %edx
movq %r15, %rcx
movq %r14, %r8
callq 0x156d03
testl %eax, %eax
jne 0x2ff9ff
leaq 0x18(%r13), %rdi
movl $0x8, %esi
movl $0x1, %edx
movq %r15, %rcx
movq %r14, %r8
callq 0x156d03
testl %eax, %eax
jne 0x2ff9ff
leaq 0x20(%r13), %rdi
movl $0x8, %esi
movl $0x1, %edx
movq %r15, %rcx
movq %r14, %r8
callq 0x156d03
testl %eax, %eax
jne 0x2ff9ff
leaq 0x28(%r13), %rdi
movl $0x8, %esi
movl $0x1, %edx
movq %r15, %rcx
movq %r14, %r8
callq 0x156d03
testl %eax, %eax
jne 0x2ff9ff
leaq 0x38(%r13), %rdi
movl $0x8, %esi
movl $0x1, %edx
movq %r15, %rcx
movq %r14, %r8
callq 0x156d03
testl %eax, %eax
jne 0x2ff9ff
movq $0x10, 0x8(%r13)
movq (%r13), %rdi
movq 0x18(%r13), %rax
shrq $0x10, %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x30(%r13)
leaq 0x10(,%rax,8), %rsi
leaq 0xde69f(%rip), %rdx     # 0x3de090
movl $0x9a, %ecx
callq 0x104461
movq %rax, (%r13)
movq (%r13), %rdi
movq 0x30(%r13), %rdx
incq %rdx
movl $0x8, %esi
movq %r15, %rcx
movq %r14, %r8
callq 0x156d03
testl %eax, %eax
jne 0x2ff90a
movq (%r13), %rax
movq (%rax), %rdx
testq %rdx, %rdx
je 0x2ffa44
leaq 0xde6c1(%rip), %rsi     # 0x3de0f6
movq %r14, %rdi
xorl %eax, %eax
callq 0xfcb67
jmp 0x2ff90a
movq 0x10(%r12), %rdi
movq 0x28(%r13), %rsi
addq %rsi, %rsi
leaq 0xde639(%rip), %rdx     # 0x3de090
movl $0xa6, %ecx
callq 0x104461
movq %rax, 0x10(%r12)
movq 0x28(%r13), %rdx
movl $0x2, %esi
movq %rax, %rdi
movq %r15, %rcx
movq %r14, %r8
callq 0x156d03
testl %eax, %eax
jne 0x2ff90a
jmp 0x2ff914
callq 0x8bfc3
callq 0x8bffc