// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: pair_equal
static bool pair_equal(s7_scheme *sc, s7_pointer x, s7_pointer y, shared_info *ci)
                {
                    shared_info *nci;
                    s7_pointer px, py;

                    if (x == y)
                        return(true);
                    if (!is_pair(y))
                        return(false);
                    if (ci)
                    {
                        nci = ci;
                        equal_ref(sc, x, y, ci);
                    }
                    else nci = new_shared_info(sc);

                    if (!s7_is_equal_1(sc, car(x), car(y), nci)) return(false);
                    for (px = cdr(x), py = cdr(y); (is_pair(px)) && (is_pair(py)); px = cdr(px), py = cdr(py))
                    {
                        if (!s7_is_equal_1(sc, car(px), car(py), nci)) return(false);
                        equal_ref(sc, px, py, nci);
                    }
                    if (px == py) /* normally nil? */
                        return(true);
                    return(s7_is_equal_1(sc, px, py, nci));
                }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movb $0x1, %bpl
cmpq %rdx, %rsi
je 0xff769
movq %rdx, %r14
cmpb $0x1, (%rdx)
jne 0xff767
movq %rcx, %rbx
movq %rsi, %r15
movq %rdi, %r12
testq %rcx, %rcx
je 0xff473
xorl %edx, %edx
testb $0x2, 0x2(%r14)
je 0xff558
movslq 0xc(%rbx), %rax
testq %rax, %rax
jle 0xff558
movq (%rbx), %rdx
xorl %ecx, %ecx
cmpq %r14, (%rdx,%rcx,8)
je 0xff551
incq %rcx
cmpq %rcx, %rax
jne 0xff45a
xorl %edx, %edx
jmp 0xff558
movq 0x6c0(%r12), %rbx
movslq 0xc(%rbx), %r13
testq %r13, %r13
jle 0xff541
movl %r13d, %eax
movq 0x20(%rbx), %rdi
shlq $0x2, %r13
cmpl $0x1, %eax
je 0xff4c2
movabsq $0x1fffffff8, %rbp      # imm = 0x1FFFFFFF8
andq %r13, %rbp
movq %rdi, (%rsp)
movq (%rsp), %rdi
xorl %esi, %esi
movq %rbp, %rdx
callq 0x9270
movq (%rsp), %rdi
addq %rbp, %rdi
andl $0x4, %r13d
testq %r13, %r13
je 0xff4d1
xorl %esi, %esi
movq %r13, %rdx
callq 0x9270
movq 0x48(%rbx), %rdi
movslq 0xc(%rbx), %r13
cmpq $0x8, %r13
jb 0xff503
movq %r13, %rbp
andq $-0x8, %rbp
movq %rdi, (%rsp)
movq (%rsp), %rdi
xorl %esi, %esi
movq %rbp, %rdx
callq 0x9270
movq (%rsp), %rdi
addq %rbp, %rdi
andl $0x7, %r13d
testq %r13, %r13
je 0xff512
xorl %esi, %esi
movq %r13, %rdx
callq 0x9270
cmpl $0x0, 0xc(%rbx)
jle 0xff53a
xorl %eax, %eax
movabsq $-0x600000000a0001, %rcx # imm = 0xFF9FFFFFFFF5FFFF
movq (%rbx), %rdx
movq (%rdx,%rax,8), %rdx
andq %rcx, (%rdx)
incq %rax
movslq 0xc(%rbx), %rdx
cmpq %rdx, %rax
jl 0xff524
movl $0x0, 0xc(%rbx)
movl $0x0, 0x10(%rbx)
movb $0x0, 0x18(%rbx)
jmp 0xff60c
movq 0x20(%rbx), %rax
movl (%rax,%rcx,4), %edx
testb $0x2, 0x2(%r15)
jne 0xff570
testl %edx, %edx
je 0xff590
movq %rbx, %rdi
movq %r15, %rsi
callq 0x100fa2
jmp 0xff5e5
movslq 0xc(%rbx), %rax
testq %rax, %rax
jle 0xff58c
movq (%rbx), %rsi
xorl %ecx, %ecx
cmpq %r15, (%rsi,%rcx,8)
je 0xff5ea
incq %rcx
cmpq %rcx, %rax
jne 0xff57e
xorl %eax, %eax
jmp 0xff5f1
movl 0xc(%rbx), %eax
cmpl 0x14(%rbx), %eax
jl 0xff5a0
movq %rbx, %rdi
callq 0x9cf49
orb $0x2, 0x2(%r15)
orb $0x2, 0x2(%r14)
movq (%rbx), %rax
movslq 0xc(%rbx), %rcx
movq %r15, (%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 %r14, (%rax,%rcx,8)
movl 0x10(%rbx), %eax
movq 0x20(%rbx), %rdx
leal 0x1(%rcx), %esi
movl %esi, 0xc(%rbx)
movl %eax, (%rdx,%rcx,4)
movb $0x1, %r13b
jmp 0xff603
movq 0x20(%rbx), %rax
movl (%rax,%rcx,4), %eax
testl %edx, %edx
sete %r13b
je 0xff7ad
cmpl %edx, %eax
sete %bpl
testb %r13b, %r13b
je 0xff769
movq 0x8(%r15), %rsi
movq 0x8(%r14), %rdx
movzbl (%rsi), %eax
leaq 0x5b702(%rip), %r8      # 0x15ad20
movq %r12, %rdi
movq %rbx, %rcx
callq *(%r8,%rax,8)
testb %al, %al
je 0xff767
movq 0x10(%r15), %r15
movq 0x10(%r14), %r14
movzbl (%r15), %eax
cmpq $0x1, %rax
jne 0xff77e
cmpb $0x1, (%r14)
jne 0xff77e
movq 0x8(%r15), %rsi
movq 0x8(%r14), %rdx
movzbl (%rsi), %eax
movq %r12, %rdi
movq %rbx, %rcx
leaq 0x5b6b8(%rip), %r8      # 0x15ad20
callq *(%r8,%rax,8)
xorl %edx, %edx
testb %al, %al
je 0xff767
testb $0x2, 0x2(%r14)
je 0xff6a2
movslq 0xc(%rbx), %rax
testq %rax, %rax
jle 0xff6a2
movq (%rbx), %rsi
xorl %ecx, %ecx
cmpq %r14, (%rsi,%rcx,8)
je 0xff69b
incq %rcx
cmpq %rcx, %rax
jne 0xff68b
jmp 0xff6a2
movq 0x20(%rbx), %rax
movl (%rax,%rcx,4), %edx
testb $0x2, 0x2(%r15)
jne 0xff6ba
testl %edx, %edx
je 0xff6da
movq %rbx, %rdi
movq %r15, %rsi
callq 0x100fa2
jmp 0xff72f
movslq 0xc(%rbx), %rcx
xorl %eax, %eax
testq %rcx, %rcx
jle 0xff73b
movq (%rbx), %rdi
xorl %esi, %esi
cmpq %r15, (%rdi,%rsi,8)
je 0xff734
incq %rsi
cmpq %rsi, %rcx
jne 0xff6ca
jmp 0xff73b
movl 0xc(%rbx), %eax
cmpl 0x14(%rbx), %eax
jl 0xff6ea
movq %rbx, %rdi
callq 0x9cf49
orb $0x2, 0x2(%r15)
orb $0x2, 0x2(%r14)
movq (%rbx), %rax
movslq 0xc(%rbx), %rcx
movq %r15, (%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 %r14, (%rax,%rcx,8)
movl 0x10(%rbx), %eax
movq 0x20(%rbx), %rdx
leal 0x1(%rcx), %esi
movl %esi, 0xc(%rbx)
movl %eax, (%rdx,%rcx,4)
movb $0x1, %r13b
jmp 0xff75c
movq 0x20(%rbx), %rax
movl (%rax,%rsi,4), %eax
testl %edx, %edx
sete %r13b
je 0xff74b
cmpl %edx, %eax
sete %bpl
jmp 0xff75c
testl %eax, %eax
je 0xff75c
movq %rbx, %rdi
movq %r14, %rsi
movl %eax, %edx
callq 0x100fa2
testb %r13b, %r13b
jne 0xff630
jmp 0xff769
xorl %ebp, %ebp
andb $0x1, %bpl
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb $0x1, %bpl
cmpq %r14, %r15
je 0xff769
leaq 0x5b593(%rip), %rcx     # 0x15ad20
movq (%rcx,%rax,8), %rax
movq %r12, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmpq *%rax
testl %eax, %eax
je 0xff5e8
movq %rbx, %rdi
movq %r14, %rsi
movl %eax, %edx
callq 0x100fa2
jmp 0xff5e8