// File: /workspace/github_c_makefile_star2_O1/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:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movl $0x2, %r13d
cmpq $0x2, %rsi
jl 0x38b86
movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF
addq %rsi, %rax
testq %rsi, %rax
je 0x38b83
leaq 0x1(%rsi), %rax
testq %rsi, %rax
je 0x38b80
decq %rsi
movq %rsi, %rax
shrq %rax
orq %rsi, %rax
movq %rax, %rcx
shrq $0x2, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x4, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x8, %rcx
orq %rax, %rcx
movq %rcx, %rsi
shrq $0x10, %rsi
orq %rcx, %rsi
cmpb $0x1, 0x11a0ec(%rip)    # 0x152c60
jne 0x38b80
movq %rsi, %rax
shrq $0x20, %rax
orq %rax, %rsi
incq %rsi
movq %rsi, %r13
leaq (,%r13,8), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3f3bd
movq %rax, %r12
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x38bb4
movq %rbx, %rdi
callq 0xb389
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %r14
movq $0x20001b, (%r14)       # imm = 0x20001B
decq %r13
movq %r13, 0x8(%r14)
movq %r12, 0x28(%r14)
movq (%r12), %rax
movq %rax, 0x10(%r14)
testq %rax, %rax
jne 0x38d2b
movabsq $0x652d7972e1dcd7df, %rcx # imm = 0x652D7972E1DCD7DF
movq 0x148(%rbx), %rax
movq 0x10(%rax), %rax
movq 0x25630(%rax), %rax
cmpb $0x1, (%rax)
jne 0x38c62
leaq 0xda546(%rip), %rdx     # 0x11315b
leaq -0x726f7272(%rcx), %rsi
cmpq %rcx, 0x18(%rax)
jne 0x38c59
cmpl $0xc, 0x2c(%rax)
jne 0x38c59
movq 0x20(%rax), %rdi
cmpq %rsi, (%rdi)
jne 0x38c59
xorl %r8d, %r8d
movb 0x8(%r8,%rdx), %r9b
movb 0x8(%rdi,%r8), %r10b
cmpb %r10b, %r9b
jne 0x38c50
leaq 0x1(%r8), %r11
cmpq $0x3, %r8
movq %r11, %r8
jne 0x38c34
cmpb %r10b, %r9b
je 0x38da4
movq 0x10(%rax), %rax
cmpb $0x1, (%rax)
je 0x38c1c
leaq 0xda4f2(%rip), %rsi     # 0x11315b
movl $0xc, %edx
movq %rbx, %rdi
movl $0x4ac6, %r8d           # imm = 0x4AC6
callq 0xa5ef
movq %rax, %r12
movq 0x820(%rbx), %rax
movslq 0x7dc(%rbx), %rcx
movq (%rax,%rcx,8), %r13
leal 0x1(%rcx), %eax
andl $0x7, %eax
movl %eax, 0x7dc(%rbx)
leaq 0xda4c4(%rip), %rax     # 0x113168
movq %rax, 0x10(%r13)
movq $0x28, 0x8(%r13)
cmpq $0x7ff, %r15            # imm = 0x7FF
ja 0x38cc6
leaq 0x115c90(%rip), %rax    # 0x14e950
movq (%rax,%r15,8), %rax
jmp 0x38cff
movq 0x90(%rbx), %rax
cmpq 0x98(%rbx), %rax
ja 0x38cde
movq %rbx, %rdi
callq 0xb389
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movq $0xb, (%rax)
movq %r15, 0x8(%rax)
movq 0x6e0(%rbx), %rcx
movq %r13, 0x8(%rcx)
movq 0x6e0(%rbx), %rcx
movq 0x10(%rcx), %rcx
movq %rax, 0x8(%rcx)
movq 0x6e0(%rbx), %rdx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3b366
leaq 0x6722(%rip), %rax      # 0x3f454
movq %rax, 0x18(%r14)
leaq 0x119f33(%rip), %rax    # 0x152c70
movq %rax, 0x20(%r14)
movq 0x28(%r14), %rax
movq $0x0, 0x18(%rax)
movq 0x110(%rbx), %rax
movq 0x28(%r14), %rcx
movq %rax, 0x20(%rcx)
movq 0x770(%rbx), %rbx
movq 0x8(%rbx), %rsi
cmpq %rsi, 0x10(%rbx)
jne 0x38d84
leaq (%rsi,%rsi), %rax
movq %rax, 0x8(%rbx)
movq (%rbx), %rdi
shlq $0x4, %rsi
callq 0x9510
movq %rax, (%rbx)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x10(%rbx)
movq %r14, (%rax,%rcx,8)
movq %r14, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq 0x8(%rax), %r12
jmp 0x38c7f