// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: hash_map_pair
static s7_int hash_map_pair(s7_scheme *sc, s7_pointer table, s7_pointer key)
                {
                    /* len+loc(car) is not horrible, but it means (for example) every list '(set! ...) is hashed to the same location,
                     *   so at least we need to take cadr into account if possible.  Better would combine the list_length
                     *   with stats like symbols/pairs/constants at top level, then use those to spread it out over all the locs.
                     */
                    s7_pointer p1;
                    s7_int loc = 0;

                    if (!is_sequence(car(key)))
                        loc = hash_loc(sc, table, car(key)) + 1;
                    else
                    {
                        if ((is_pair(car(key))) &&
                                (!is_sequence(caar(key))))
                            loc = hash_loc(sc, table, caar(key)) + 1;
                    }
                    p1 = cdr(key);
                    if (is_pair(p1))
                    {
                        if (!is_sequence(car(p1)))
                            loc += hash_loc(sc, table, car(p1)) + 1;
                        else
                        {
                            if ((is_pair(car(p1))) &&
                                    (!is_sequence(caar(p1))))
                                loc += hash_loc(sc, table, caar(p1)) + 1;
                        }
                    }
                    loc = (loc << 3) | len_upto_8(key);
                    return(loc);
                }

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq %rdx, 0x20(%rsp)
movq $0x0, 0x10(%rsp)
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x1ea21f(%rip), %rax    # 0x2226d0
testb $0x1, (%rax,%rcx)
jne 0x3850b
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
andq $0x40000000, %rax       # imm = 0x40000000
cmpq $0x0, %rax
jne 0x3850b
movq 0x28(%rsp), %rax
movq 0x20(%rax), %rax
movq 0x20(%rsp), %rcx
movq 0x8(%rcx), %rcx
movzbl (%rcx), %ecx
movq (%rax,%rcx,8), %rax
movq 0x30(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0x20(%rsp), %rcx
movq 0x8(%rcx), %rdx
callq *%rax
addq $0x1, %rax
movq %rax, 0x10(%rsp)
jmp 0x38598
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x38596
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x1ea19b(%rip), %rax    # 0x2226d0
testb $0x1, (%rax,%rcx)
jne 0x38596
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
andq $0x40000000, %rax       # imm = 0x40000000
cmpq $0x0, %rax
jne 0x38596
movq 0x28(%rsp), %rax
movq 0x20(%rax), %rax
movq 0x20(%rsp), %rcx
movq 0x8(%rcx), %rcx
movq 0x8(%rcx), %rcx
movzbl (%rcx), %ecx
movq (%rax,%rcx,8), %rax
movq 0x30(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0x20(%rsp), %rcx
movq 0x8(%rcx), %rcx
movq 0x8(%rcx), %rdx
callq *%rax
addq $0x1, %rax
movq %rax, 0x10(%rsp)
jmp 0x38598
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x386bf
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x1ea104(%rip), %rax    # 0x2226d0
testb $0x1, (%rax,%rcx)
jne 0x3862b
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
andq $0x40000000, %rax       # imm = 0x40000000
cmpq $0x0, %rax
jne 0x3862b
movq 0x28(%rsp), %rax
movq 0x20(%rax), %rax
movq 0x18(%rsp), %rcx
movq 0x8(%rcx), %rcx
movzbl (%rcx), %ecx
movq (%rax,%rcx,8), %rax
movq 0x30(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0x18(%rsp), %rcx
movq 0x8(%rcx), %rdx
callq *%rax
addq $0x1, %rax
addq 0x10(%rsp), %rax
movq %rax, 0x10(%rsp)
jmp 0x386bd
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x386bb
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x1ea07b(%rip), %rax    # 0x2226d0
testb $0x1, (%rax,%rcx)
jne 0x386bb
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
andq $0x40000000, %rax       # imm = 0x40000000
cmpq $0x0, %rax
jne 0x386bb
movq 0x28(%rsp), %rax
movq 0x20(%rax), %rax
movq 0x18(%rsp), %rcx
movq 0x8(%rcx), %rcx
movq 0x8(%rcx), %rcx
movzbl (%rcx), %ecx
movq (%rax,%rcx,8), %rax
movq 0x30(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0x18(%rsp), %rcx
movq 0x8(%rcx), %rcx
movq 0x8(%rcx), %rdx
callq *%rax
addq $0x1, %rax
addq 0x10(%rsp), %rax
movq %rax, 0x10(%rsp)
jmp 0x386bd
jmp 0x386bf
movq 0x10(%rsp), %rax
shlq $0x3, %rax
movq %rax, 0x8(%rsp)
movq 0x20(%rsp), %rdi
callq 0xd9430
movl %eax, %ecx
movq 0x8(%rsp), %rax
movslq %ecx, %rcx
orq %rcx, %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)