// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: s7_make_hash_table
s7_pointer s7_make_hash_table(s7_scheme *sc, s7_int size)
                {
                    s7_pointer table;
                    block_t *els;
                    /* size is rounded up to the next power of 2 */

                    if (size < 2)
                        size = 2;
                    else
                    {
                        if ((size & (size - 1)) != 0)          /* already 2^n ? */
                        {
                            if ((size & (size + 1)) != 0)      /* already 2^n - 1 ? */
                            {
                                size--;
                                size |= (size >> 1);
                                size |= (size >> 2);
                                size |= (size >> 4);
                                size |= (size >> 8);
                                size |= (size >> 16);
                                if (s7_int_bits > 31)          /* this is either 31 or 63 */
                                    size |= (size >> 32);
                            }
                            size++;
                        }
                    }

                    els = (block_t *)callocate(sc, size * sizeof(hash_entry_t *));
                    new_cell(sc, table, T_HASH_TABLE | T_SAFE_PROCEDURE);
                    hash_table_mask(table) = size - 1;
                    hash_table_set_block(table, els);
                    hash_table_elements(table) = (hash_entry_t **)(block_data(els));
                    if (!hash_table_elements(table))
                        s7_error(sc, make_symbol(sc, "memory-error"),
                                set_elist_2(sc, wrap_string(sc, "hash-table not allocated! size: ~D bytes", 40), make_integer(sc, size * sizeof(hash_entry_t *))));
                    hash_table_checker(table) = hash_empty;
                    hash_table_mapper(table) = default_hash_map;
                    hash_table_entries(table) = 0;
                    hash_table_set_procedures(table, sc->nil);
                    add_hash_table(sc, table);

                    return(table);
                }

// Assembly:
subq $0x68, %rsp
movq %rdi, 0x60(%rsp)
movq %rsi, 0x58(%rsp)
cmpq $0x2, 0x58(%rsp)
jge 0x2a464
movq $0x2, 0x58(%rsp)
jmp 0x2a534
movq 0x58(%rsp), %rax
movq 0x58(%rsp), %rcx
subq $0x1, %rcx
andq %rcx, %rax
cmpq $0x0, %rax
je 0x2a532
movq 0x58(%rsp), %rax
movq 0x58(%rsp), %rcx
addq $0x1, %rcx
andq %rcx, %rax
cmpq $0x0, %rax
je 0x2a524
movq 0x58(%rsp), %rax
addq $-0x1, %rax
movq %rax, 0x58(%rsp)
movq 0x58(%rsp), %rax
sarq %rax
orq 0x58(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x58(%rsp), %rax
sarq $0x2, %rax
orq 0x58(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x58(%rsp), %rax
sarq $0x4, %rax
orq 0x58(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x58(%rsp), %rax
sarq $0x8, %rax
orq 0x58(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x58(%rsp), %rax
sarq $0x10, %rax
orq 0x58(%rsp), %rax
movq %rax, 0x58(%rsp)
cmpl $0x1f, 0x1f0283(%rip)   # 0x21a790
jle 0x2a522
movq 0x58(%rsp), %rax
sarq $0x20, %rax
orq 0x58(%rsp), %rax
movq %rax, 0x58(%rsp)
jmp 0x2a524
movq 0x58(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x58(%rsp)
jmp 0x2a534
movq 0x60(%rsp), %rdi
movq 0x58(%rsp), %rsi
shlq $0x3, %rsi
callq 0x37320
movq %rax, 0x48(%rsp)
movq 0x60(%rsp), %rax
movq 0x90(%rax), %rax
movq 0x60(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x2a570
movq 0x60(%rsp), %rdi
callq 0xc670
movq 0x60(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rax
movq $0x20001b, (%rax)       # imm = 0x20001B
movq 0x58(%rsp), %rcx
subq $0x1, %rcx
movq 0x50(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x48(%rsp), %rcx
movq 0x50(%rsp), %rax
movq %rcx, 0x28(%rax)
movq 0x48(%rsp), %rax
movq (%rax), %rcx
movq 0x50(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x50(%rsp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x2a6ff
movq 0x60(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x60(%rsp), %rdi
leaq 0x1b775d(%rip), %rsi    # 0x1e1d53
callq 0xb400
movq %rax, 0x10(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x60(%rsp), %rdi
leaq 0x1b774a(%rip), %rsi    # 0x1e1d60
movl $0x28, %edx
callq 0xb880
movq %rax, 0x20(%rsp)
movq 0x58(%rsp), %rax
shlq $0x3, %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
andq $-0x800, %rax           # imm = 0xF800
cmpq $0x0, %rax
jne 0x2a65a
movq 0x40(%rsp), %rcx
leaq 0x1ebe30(%rip), %rax    # 0x216480
movq (%rax,%rcx,8), %rax
movq %rax, (%rsp)
jmp 0x2a6d0
jmp 0x2a65c
movq 0x60(%rsp), %rax
movq 0x90(%rax), %rax
movq 0x60(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x2a680
movq 0x60(%rsp), %rdi
callq 0xc670
movq 0x60(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
movq $0xb, (%rax)
movq 0x40(%rsp), %rcx
movq 0x30(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x30(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
movq %rax, (%rsp)
movq 0x20(%rsp), %rsi
movq 0x18(%rsp), %rdi
movq (%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rdx
callq 0xb830
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq %rax, %rdx
callq 0x2f940
movq 0x50(%rsp), %rax
leaq 0xcc85(%rip), %rcx      # 0x37390
movq %rcx, 0x18(%rax)
movq 0x50(%rsp), %rax
leaq 0x1f0085(%rip), %rcx    # 0x21a7a0
movq %rcx, 0x20(%rax)
movq 0x50(%rsp), %rax
movq 0x28(%rax), %rax
movq $0x0, 0x18(%rax)
movq 0x60(%rsp), %rax
movq 0x110(%rax), %rcx
movq 0x50(%rsp), %rax
movq 0x28(%rax), %rax
movq %rcx, 0x20(%rax)
movq 0x60(%rsp), %rax
movq 0x770(%rax), %rdi
movq 0x50(%rsp), %rsi
callq 0x11230
movq 0x50(%rsp), %rax
addq $0x68, %rsp
retq
nopl (%rax)