// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/core/hashtable.c
// Function: gt_hashtable_foreach_g
static int gt_hashtable_foreach_g(GtHashtable *ht, Elemvisitfunc visitor,
                                  void *data, GtError *err, bool lock)
{
  htsize_t i, table_size = ht->table_mask + 1, deletion_count = 0;
  jmp_buf env;
  if (lock) {
    gt_rwlock_wrlock(ht->lock);
  }
  while (setjmp(env))
    ;
  for (i = 0; i < table_size; ++i)
  {
    htsize_t idx = i, link = HT_GET_LINK(ht, i);
    /* if i is occupied and forms a chain start */
    if (link != free_mark
        && gt_ht_elem_hash_idx(ht, gt_ht_elem_ptr(ht, i)) == i)
      while (1)
      {
        void *elem;
        elem = gt_ht_elem_ptr(ht, idx);
        switch (visitor(elem, data, err))
        {
        case CONTINUE_ITERATION:
          break;
        case STOP_ITERATION:
          if (lock) {
           gt_rwlock_unlock(ht->lock);
          }
          return -1;
        case DELETED_ELEM:
          {
            htsize_t remove_pos = gt_ht_remove(ht, elem);
            ht->table_info.free_op.free_elem_with_data(
              gt_ht_elem_ptr(ht, remove_pos), ht->table_info.table_data);
            ++deletion_count;
          }
          break;
        case MODIFIED_KEY:
          if (gt_ht_elem_hash_idx(ht, elem) != i)
          {
            /* elem now belongs to new chain */
            /* FIXME: handle deferred move */
            fprintf(stderr, "Feature MODIFIED_KEY not implemented yet"
                    " (%s:%d).\n", __FILE__, __LINE__);
            /* push idx */
            abort();
          }
          break;
        case REDO_ITERATION:
          longjmp(env, 1);
          break;
        }
        idx = link;
        if (idx == end_mark)
          break;
        link = HT_GET_LINK(ht, link);
      }
  }
  /* FIXME: re-insert pushed indices and rectify affected chains */
  /* if hashtable shrunk below low_mark, resize */
  if (deletion_count &&
      ht->current_fill < ht->low_fill)
    gt_ht_shrink(ht);
  if (lock) {
    gt_rwlock_unlock(ht->lock);
  }
  return 0;
}

// Assembly:
subq $0x138, %rsp            # imm = 0x138
movb %r8b, %al
movq %rdi, 0x128(%rsp)
movq %rsi, 0x120(%rsp)
movq %rdx, 0x118(%rsp)
movq %rcx, 0x110(%rsp)
andb $0x1, %al
movb %al, 0x10f(%rsp)
movq 0x128(%rsp), %rax
movl 0x48(%rax), %eax
addl $0x1, %eax
movl %eax, 0x104(%rsp)
movl $0x0, 0x100(%rsp)
testb $0x1, 0x10f(%rsp)
je 0x8807e
movq 0x128(%rsp), %rax
movq 0x68(%rax), %rdi
callq 0x1c100
jmp 0x88080
leaq 0x30(%rsp), %rdi
callq 0xb8b0
cmpl $0x0, %eax
je 0x88091
jmp 0x88080
movl $0x0, 0x108(%rsp)
movl 0x108(%rsp), %eax
cmpl 0x104(%rsp), %eax
jae 0x8829e
movl 0x108(%rsp), %eax
movl %eax, 0x2c(%rsp)
movq 0x128(%rsp), %rdi
movl 0x108(%rsp), %esi
callq 0x87280
movl %eax, 0x28(%rsp)
cmpl $-0x1, 0x28(%rsp)
je 0x88286
movq 0x128(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x128(%rsp), %rdi
movl 0x108(%rsp), %esi
callq 0x872a0
movq 0x10(%rsp), %rdi
movq %rax, %rsi
callq 0x87250
cmpl 0x108(%rsp), %eax
jne 0x88286
jmp 0x8811b
movq 0x128(%rsp), %rdi
movl 0x2c(%rsp), %esi
callq 0x872a0
movq %rax, 0x20(%rsp)
movq 0x120(%rsp), %rax
movq 0x20(%rsp), %rdi
movq 0x118(%rsp), %rsi
movq 0x110(%rsp), %rdx
callq *%rax
movl %eax, %ecx
movq %rcx, 0x8(%rsp)
subl $0x4, %eax
ja 0x88259
movq 0x8(%rsp), %rax
leaq 0xe6780(%rip), %rcx     # 0x16e8ec
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
jmp 0x88259
testb $0x1, 0x10f(%rsp)
je 0x88195
movq 0x128(%rsp), %rax
movq 0x68(%rax), %rdi
callq 0x1c1a0
movl $0xffffffff, 0x134(%rsp) # imm = 0xFFFFFFFF
jmp 0x882f3
movq 0x128(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x87a30
movl %eax, 0x1c(%rsp)
movq 0x128(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, (%rsp)
movq 0x128(%rsp), %rdi
movl 0x1c(%rsp), %esi
callq 0x872a0
movq %rax, %rdi
movq (%rsp), %rax
movq 0x128(%rsp), %rcx
movq 0x20(%rcx), %rsi
callq *%rax
movl 0x100(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x100(%rsp)
jmp 0x88259
movq 0x128(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x87250
cmpl 0x108(%rsp), %eax
je 0x88248
movq 0x12bdb2(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0xe68e8(%rip), %rsi     # 0x16eb18
leaq 0xe670e(%rip), %rdx     # 0x16e945
movl $0x218, %ecx            # imm = 0x218
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x88259
leaq 0x30(%rsp), %rdi
movl $0x1, %esi
callq 0xb200
movl 0x28(%rsp), %eax
movl %eax, 0x2c(%rsp)
cmpl $-0x2, 0x2c(%rsp)
jne 0x8826a
jmp 0x88284
movq 0x128(%rsp), %rdi
movl 0x28(%rsp), %esi
callq 0x87280
movl %eax, 0x28(%rsp)
jmp 0x8811b
jmp 0x88286
jmp 0x88288
movl 0x108(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x108(%rsp)
jmp 0x8809c
cmpl $0x0, 0x100(%rsp)
je 0x882cd
movq 0x128(%rsp), %rax
movl 0x54(%rax), %eax
movq 0x128(%rsp), %rcx
cmpl 0x50(%rcx), %eax
jae 0x882cd
movq 0x128(%rsp), %rdi
callq 0x87c90
testb $0x1, 0x10f(%rsp)
je 0x882e8
movq 0x128(%rsp), %rax
movq 0x68(%rax), %rdi
callq 0x1c1a0
movl $0x0, 0x134(%rsp)
movl 0x134(%rsp), %eax
addq $0x138, %rsp            # imm = 0x138
retq
nopw %cs:(%rax,%rax)