// File: /workspace/github_c_makefile_star2_O3/BernardTatin[P]s7sh/s7.c
// Function: c_objects_are_equal
bool c_objects_are_equal(s7_scheme *sc, s7_pointer a, s7_pointer b, shared_info *ci)
                {
                    s7_pointer (*to_list)(s7_scheme *sc, s7_pointer args);
                    shared_info *nci = ci;
                    s7_pointer pa, pb;

                    if (a == b)
                        return(true);
                    if (!is_c_object(b))
                        return(false);
                    if (c_object_type(a) != c_object_type(b))
                        return(false);
                    if (c_object_eql(sc, a))
                        return((*(c_object_eql(sc, a)))(c_object_value(a), c_object_value(b)));

                    to_list = c_object_to_list(sc, a);
                    if (!to_list)
                        return(false);
                    if (ci)
                        equal_ref(sc, a, b, ci); /* and nci == ci above */
                    else nci = new_shared_info(sc);

                    for (pa = to_list(sc, set_plist_1(sc, a)), pb = to_list(sc, set_plist_1(sc, b)); is_pair(pa) && (is_pair(pb)); pa = cdr(pa), pb = cdr(pb))
                        if (!(s7_is_equal_1(sc, car(pa), car(pb), nci)))
                            return(false);

                    return(pa == pb); /* presumably both are nil if successful */
                }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
cmpq %rdx, %rsi
je 0xf636d
movq %rdx, %r15
cmpb $0x14, (%rdx)
jne 0xf6503
movq %rsi, %r12
movq 0x8(%rsi), %rax
cmpq 0x8(%r15), %rax
jne 0xf6503
movq %rcx, %rbx
movq %rdi, %r14
movq 0x8d8(%rdi), %rcx
movq (%rcx,%rax,8), %rcx
movq 0x38(%rcx), %rax
testq %rax, %rax
je 0xf6374
movq 0x10(%r12), %rdi
movq 0x10(%r15), %rsi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmpq *%rax
movb $0x1, %al
jmp 0xf6505
movq 0x78(%rcx), %r13
testq %r13, %r13
je 0xf6503
testq %rbx, %rbx
je 0xf63af
xorl %edx, %edx
testb $0x2, 0x2(%r15)
je 0xf63ca
movslq 0xc(%rbx), %rax
testq %rax, %rax
jle 0xf63ca
movq (%rbx), %rdx
xorl %ecx, %ecx
cmpq %r15, (%rdx,%rcx,8)
je 0xf63c3
incq %rcx
cmpq %rcx, %rax
jne 0xf639d
xorl %edx, %edx
jmp 0xf63ca
movq 0x6c0(%r14), %rbx
movq %rbx, %rdi
callq 0x95f8c
jmp 0xf6486
movq 0x20(%rbx), %rax
movl (%rax,%rcx,4), %edx
movq (%r12), %rax
btl $0x11, %eax
jb 0xf63e3
testl %edx, %edx
je 0xf6403
movq %rbx, %rdi
movq %r12, %rsi
jmp 0xf6481
movslq 0xc(%rbx), %rax
testq %rax, %rax
jle 0xf63ff
movq (%rbx), %rsi
xorl %ecx, %ecx
cmpq %r12, (%rsi,%rcx,8)
je 0xf6463
incq %rcx
cmpq %rcx, %rax
jne 0xf63f1
xorl %eax, %eax
jmp 0xf646a
movl 0xc(%rbx), %ecx
cmpl 0x14(%rbx), %ecx
jl 0xf6417
movq %rbx, %rdi
callq 0x967fa
movq (%r12), %rax
orq $0x20000, %rax          # imm = 0x20000
movq %rax, (%r12)
orb $0x2, 0x2(%r15)
movq (%rbx), %rax
movslq 0xc(%rbx), %rcx
movq %r12, (%rax,%rcx,8)
movl 0x10(%rbx), %eax
incl %eax
movl %eax, 0x10(%rbx)
movq 0x20(%rbx), %rdx
leal 0x1(%rcx), %esi
movl %esi, 0xc(%rbx)
movl %eax, (%rdx,%rcx,4)
movq (%rbx), %rax
movslq 0xc(%rbx), %rcx
movq %r15, (%rax,%rcx,8)
movl 0x10(%rbx), %eax
movq 0x20(%rbx), %rdx
leal 0x1(%rcx), %esi
movl %esi, 0xc(%rbx)
movl %eax, (%rdx,%rcx,4)
jmp 0xf6486
movq 0x20(%rbx), %rax
movl (%rax,%rcx,4), %eax
testl %edx, %edx
je 0xf6475
cmpl %edx, %eax
jmp 0xf64fe
testl %eax, %eax
je 0xf6486
movq %rbx, %rdi
movq %r15, %rsi
movl %eax, %edx
callq 0xf80b5
movq 0x700(%r14), %rax
movq %r12, 0x8(%rax)
movq 0x700(%r14), %rsi
movq %r14, %rdi
callq *%r13
movq %rax, %r12
movq 0x700(%r14), %rax
movq %r15, 0x8(%rax)
movq 0x700(%r14), %rsi
movq %r14, %rdi
callq *%r13
movq %rax, %r15
cmpb $0x1, (%r12)
jne 0xf64fb
leaq 0x5c856(%rip), %r13     # 0x152d20
cmpb $0x1, (%r15)
jne 0xf64fb
movq 0x8(%r12), %rsi
movq 0x8(%r15), %rdx
movzbl (%rsi), %eax
movq %r14, %rdi
movq %rbx, %rcx
callq *(%r13,%rax,8)
testb %al, %al
je 0xf6503
movq 0x10(%r12), %r12
movq 0x10(%r15), %r15
cmpb $0x1, (%r12)
je 0xf64ca
cmpq %r15, %r12
sete %al
jmp 0xf6505
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq