// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/intset_8.c
// Function: gt_intset_8_add
void gt_intset_8_add(GtIntset *intset, GtUword elem)
{
  GtIntset8 *intset_8 = gt_intset_8_cast(intset);
  GtIntsetMembers *members = intset->members;
  GtUword *sectionstart = members->sectionstart;
  gt_assert(members->nextfree < members->num_of_elems);
  gt_assert(elem <= members->maxelement);
  gt_assert(members->previouselem == ULONG_MAX || members->previouselem < elem);
  while (elem >= GT_SECTIONMINELEM(members->currentsectionnum + 1)) {
    gt_assert(members->currentsectionnum < members->numofsections);
    sectionstart[members->currentsectionnum + 1] = members->nextfree;
    members->currentsectionnum++;
  }
  gt_assert(GT_SECTIONMINELEM(members->currentsectionnum) <= elem &&
            elem < GT_SECTIONMINELEM(members->currentsectionnum+1) &&
            GT_ELEM2SECTION_M(elem) == members->currentsectionnum);
  intset_8->elements[members->nextfree++] = (uint8_t) elem;
  members->previouselem = elem;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
callq 0x496d70
movq %rax, %rdi
movq 0x20(%rsp), %rsi
callq 0x1968d0
movq %rax, 0x10(%rsp)
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq (%rax), %rax
movq %rax, (%rsp)
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rax
movq 0x8(%rsp), %rcx
cmpq 0x28(%rcx), %rax
jb 0x4974cb
movq 0x1a4b06(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x7eb6f(%rip), %rsi     # 0x516013
leaq 0x11c0ba(%rip), %rdx    # 0x5b3565
leaq 0x11cba2(%rip), %rcx    # 0x5b4054
leaq 0x11cb0c(%rip), %r8     # 0x5b3fc5
movl $0xd8, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4974cd
jmp 0x4974cf
movq 0x18(%rsp), %rax
movq 0x8(%rsp), %rcx
cmpq 0x18(%rcx), %rax
jbe 0x497517
movq 0x1a4aba(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x7eb23(%rip), %rsi     # 0x516013
leaq 0x11c0a9(%rip), %rdx    # 0x5b35a0
leaq 0x11cb56(%rip), %rcx    # 0x5b4054
leaq 0x11cac0(%rip), %r8     # 0x5b3fc5
movl $0xd9, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x497519
jmp 0x49751b
movq 0x8(%rsp), %rax
cmpq $-0x1, 0x38(%rax)
je 0x49756f
movq 0x8(%rsp), %rax
movq 0x38(%rax), %rax
cmpq 0x18(%rsp), %rax
jb 0x49756f
movq 0x1a4a62(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x7eacb(%rip), %rsi     # 0x516013
leaq 0x11c06d(%rip), %rdx    # 0x5b35bc
leaq 0x11cafe(%rip), %rcx    # 0x5b4054
leaq 0x11ca68(%rip), %r8     # 0x5b3fc5
movl $0xda, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x497571
jmp 0x497573
movq 0x18(%rsp), %rax
movq 0x8(%rsp), %rcx
movq 0x10(%rcx), %rdx
addq $0x1, %rdx
movq 0x8(%rsp), %rcx
movq 0x8(%rcx), %rcx
shlq %cl, %rdx
movq %rdx, %rcx
cmpq %rcx, %rax
jb 0x49761e
jmp 0x49759f
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rsp), %rcx
cmpq 0x30(%rcx), %rax
jb 0x4975eb
movq 0x1a49e6(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x7ea4f(%rip), %rsi     # 0x516013
leaq 0x11c034(%rip), %rdx    # 0x5b35ff
leaq 0x11ca82(%rip), %rcx    # 0x5b4054
leaq 0x11c9ec(%rip), %r8     # 0x5b3fc5
movl $0xdc, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4975ed
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rdx
movq (%rsp), %rax
movq 0x8(%rsp), %rcx
movq 0x10(%rcx), %rcx
movq %rdx, 0x8(%rax,%rcx,8)
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x10(%rax)
jmp 0x497573
jmp 0x497620
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rsp), %rcx
movq 0x8(%rcx), %rcx
shlq %cl, %rax
cmpq 0x18(%rsp), %rax
ja 0x49767e
movq 0x18(%rsp), %rax
movq 0x8(%rsp), %rcx
movq 0x10(%rcx), %rdx
addq $0x1, %rdx
movq 0x8(%rsp), %rcx
movq 0x8(%rcx), %rcx
shlq %cl, %rdx
movq %rdx, %rcx
cmpq %rcx, %rax
jae 0x49767e
movq 0x18(%rsp), %rax
movq 0x8(%rsp), %rcx
movq 0x8(%rcx), %rcx
shrq %cl, %rax
movq 0x8(%rsp), %rcx
cmpq 0x10(%rcx), %rax
je 0x4976b6
movq 0x1a491b(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x7e984(%rip), %rsi     # 0x516013
leaq 0x11bf9d(%rip), %rdx    # 0x5b3633
leaq 0x11c9b7(%rip), %rcx    # 0x5b4054
leaq 0x11c921(%rip), %r8     # 0x5b3fc5
movl $0xe2, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4976b8
movq 0x18(%rsp), %rax
movb %al, %dl
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rsp), %rsi
movq 0x20(%rsi), %rcx
movq %rcx, %rdi
addq $0x1, %rdi
movq %rdi, 0x20(%rsi)
movb %dl, (%rax,%rcx)
movq 0x18(%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x38(%rax)
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)