// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/intset_32.c
// Function: gt_intset_32_add
void gt_intset_32_add(GtIntset *intset, GtUword elem)
{
  GtIntset32 *intset_32 = gt_intset_32_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_32->elements[members->nextfree++] = (uint32_t) elem;
  members->previouselem = elem;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
callq 0x494cb0
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 0x49540b
movq 0x1a6bc6(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x80c2f(%rip), %rsi     # 0x516013
leaq 0x11e17a(%rip), %rdx    # 0x5b3565
leaq 0x11e7e4(%rip), %rcx    # 0x5b3bd6
leaq 0x11e749(%rip), %r8     # 0x5b3b42
movl $0xd8, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x49540d
jmp 0x49540f
movq 0x18(%rsp), %rax
movq 0x8(%rsp), %rcx
cmpq 0x18(%rcx), %rax
jbe 0x495457
movq 0x1a6b7a(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x80be3(%rip), %rsi     # 0x516013
leaq 0x11e169(%rip), %rdx    # 0x5b35a0
leaq 0x11e798(%rip), %rcx    # 0x5b3bd6
leaq 0x11e6fd(%rip), %r8     # 0x5b3b42
movl $0xd9, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x495459
jmp 0x49545b
movq 0x8(%rsp), %rax
cmpq $-0x1, 0x38(%rax)
je 0x4954af
movq 0x8(%rsp), %rax
movq 0x38(%rax), %rax
cmpq 0x18(%rsp), %rax
jb 0x4954af
movq 0x1a6b22(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x80b8b(%rip), %rsi     # 0x516013
leaq 0x11e12d(%rip), %rdx    # 0x5b35bc
leaq 0x11e740(%rip), %rcx    # 0x5b3bd6
leaq 0x11e6a5(%rip), %r8     # 0x5b3b42
movl $0xda, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4954b1
jmp 0x4954b3
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 0x49555e
jmp 0x4954df
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rsp), %rcx
cmpq 0x30(%rcx), %rax
jb 0x49552b
movq 0x1a6aa6(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x80b0f(%rip), %rsi     # 0x516013
leaq 0x11e0f4(%rip), %rdx    # 0x5b35ff
leaq 0x11e6c4(%rip), %rcx    # 0x5b3bd6
leaq 0x11e629(%rip), %r8     # 0x5b3b42
movl $0xdc, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x49552d
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 0x4954b3
jmp 0x495560
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rsp), %rcx
movq 0x8(%rcx), %rcx
shlq %cl, %rax
cmpq 0x18(%rsp), %rax
ja 0x4955be
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 0x4955be
movq 0x18(%rsp), %rax
movq 0x8(%rsp), %rcx
movq 0x8(%rcx), %rcx
shrq %cl, %rax
movq 0x8(%rsp), %rcx
cmpq 0x10(%rcx), %rax
je 0x4955f6
movq 0x1a69db(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x80a44(%rip), %rsi     # 0x516013
leaq 0x11e05d(%rip), %rdx    # 0x5b3633
leaq 0x11e5f9(%rip), %rcx    # 0x5b3bd6
leaq 0x11e55e(%rip), %r8     # 0x5b3b42
movl $0xe2, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4955f8
movq 0x18(%rsp), %rax
movl %eax, %edx
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)
movl %edx, (%rax,%rcx,4)
movq 0x18(%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x38(%rax)
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)