// File: /workspace/github_c_makefile_star2_O3/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
subq $0x18, %rsp
movb $0x1, %bl
cmpq %rdx, %rsi
je 0xf69e5
movq %rdx, %r12
cmpb $0x1, (%rdx)
jne 0xf69e3
movq %rcx, %r14
movq %rsi, %r13
movq %rdi, %rbp
testq %rcx, %rcx
je 0xf66bf
xorl %edx, %edx
testb $0x2, 0x2(%r12)
je 0xf67b4
movslq 0xc(%r14), %rax
testq %rax, %rax
jle 0xf67b4
movq (%r14), %rdx
xorl %ecx, %ecx
cmpq %r12, (%rdx,%rcx,8)
je 0xf67ad
incq %rcx
cmpq %rcx, %rax
jne 0xf66a6
xorl %edx, %edx
jmp 0xf67b4
movq 0x6c0(%rbp), %r14
movslq 0xc(%r14), %r15
testq %r15, %r15
jle 0xf679b
movq %rbp, 0x10(%rsp)
movq 0x20(%r14), %rdi
movq %r15, %rbp
shlq $0x2, %rbp
cmpl $0x1, %r15d
je 0xf6715
movabsq $0x1fffffff8, %rdx      # imm = 0x1FFFFFFF8
andq %rbp, %rdx
movq %rdi, 0x8(%rsp)
xorl %esi, %esi
movq %rdx, (%rsp)
callq 0x8270
andq $0x4, %rbp
je 0xf6723
movq 0x8(%rsp), %rdi
addq (%rsp), %rdi
xorl %esi, %esi
movq %rbp, %rdx
callq 0x8270
movl 0xc(%r14), %r15d
movq 0x48(%r14), %rdi
movslq %r15d, %rbp
cmpl $0x8, %ebp
jb 0xf6754
movq %rbp, %rbx
andq $-0x8, %rbx
movq %rdi, (%rsp)
movq (%rsp), %rdi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x8270
movq (%rsp), %rdi
addq %rbx, %rdi
movb $0x1, %bl
andl $0x7, %ebp
testq %rbp, %rbp
je 0xf6767
xorl %esi, %esi
movq %rbp, %rdx
callq 0x8270
movl 0xc(%r14), %r15d
testl %r15d, %r15d
jle 0xf678e
xorl %eax, %eax
movabsq $-0x600000000a0001, %rcx # imm = 0xFF9FFFFFFFF5FFFF
movq (%r14), %rdx
movq (%rdx,%rax,8), %rdx
andq %rcx, (%rdx)
incq %rax
movslq 0xc(%r14), %rdx
cmpq %rdx, %rax
jl 0xf6778
movl $0x0, 0xc(%r14)
movq 0x10(%rsp), %rbp
movl $0x0, 0x10(%r14)
movb $0x0, 0x18(%r14)
jmp 0xf687b
movq 0x20(%r14), %rax
movl (%rax,%rcx,4), %edx
movq (%r13), %rax
btl $0x11, %eax
jb 0xf67cd
testl %edx, %edx
je 0xf67ed
movq %r14, %rdi
movq %r13, %rsi
jmp 0xf6876
movslq 0xc(%r14), %rax
testq %rax, %rax
jle 0xf67e9
movq (%r14), %rsi
xorl %ecx, %ecx
cmpq %r13, (%rsi,%rcx,8)
je 0xf6855
incq %rcx
cmpq %rcx, %rax
jne 0xf67db
xorl %eax, %eax
jmp 0xf685c
movl 0xc(%r14), %ecx
cmpl 0x14(%r14), %ecx
jl 0xf6803
movq %r14, %rdi
callq 0x967fa
movq (%r13), %rax
orq $0x20000, %rax          # imm = 0x20000
movq %rax, (%r13)
orb $0x2, 0x2(%r12)
movq (%r14), %rax
movslq 0xc(%r14), %rcx
movq %r13, (%rax,%rcx,8)
movl 0x10(%r14), %eax
incl %eax
movl %eax, 0x10(%r14)
movq 0x20(%r14), %rdx
leal 0x1(%rcx), %esi
movl %esi, 0xc(%r14)
movl %eax, (%rdx,%rcx,4)
movq (%r14), %rax
movslq 0xc(%r14), %rcx
movq %r12, (%rax,%rcx,8)
movl 0x10(%r14), %eax
movq 0x20(%r14), %rdx
leal 0x1(%rcx), %esi
movl %esi, 0xc(%r14)
movl %eax, (%rdx,%rcx,4)
jmp 0xf687b
movq 0x20(%r14), %rax
movl (%rax,%rcx,4), %eax
testl %edx, %edx
je 0xf686a
cmpl %edx, %eax
sete %bl
jmp 0xf69e5
testl %eax, %eax
je 0xf687b
movq %r14, %rdi
movq %r12, %rsi
movl %eax, %edx
callq 0xf80b5
movq 0x8(%r13), %rsi
movq 0x8(%r12), %rdx
movzbl (%rsi), %eax
leaq 0x5c492(%rip), %r15     # 0x152d20
movq %rbp, %rdi
movq %r14, %rcx
callq *(%r15,%rax,8)
testb %al, %al
je 0xf69e3
movq 0x10(%r13), %r13
movq 0x10(%r12), %r12
movb (%r13), %al
cmpb $0x1, %al
jne 0xf69f8
cmpb $0x1, (%r12)
jne 0xf69f6
movq 0x8(%r13), %rsi
movq 0x8(%r12), %rdx
movzbl (%rsi), %eax
movq %rbp, %rdi
movq %r14, %rcx
callq *(%r15,%rax,8)
xorl %edx, %edx
testb %al, %al
je 0xf69e3
testb $0x2, 0x2(%r12)
je 0xf690d
movslq 0xc(%r14), %rax
testq %rax, %rax
jle 0xf690d
movq (%r14), %rsi
xorl %ecx, %ecx
cmpq %r12, (%rsi,%rcx,8)
je 0xf6906
incq %rcx
cmpq %rcx, %rax
jne 0xf68f6
jmp 0xf690d
movq 0x20(%r14), %rax
movl (%rax,%rcx,4), %edx
movq (%r13), %rax
btl $0x11, %eax
jb 0xf692b
testl %edx, %edx
je 0xf694f
movq %r14, %rdi
movq %r13, %rsi
callq 0xf80b5
jmp 0xf68a0
movslq 0xc(%r14), %rcx
xorl %eax, %eax
testq %rcx, %rcx
jle 0xf69c1
movq (%r14), %rdi
xorl %esi, %esi
cmpq %r13, (%rdi,%rsi,8)
je 0xf69ba
incq %rsi
cmpq %rsi, %rcx
jne 0xf693f
jmp 0xf69c1
movl 0xc(%r14), %ecx
cmpl 0x14(%r14), %ecx
jl 0xf6965
movq %r14, %rdi
callq 0x967fa
movq (%r13), %rax
orq $0x20000, %rax          # imm = 0x20000
movq %rax, (%r13)
orb $0x2, 0x2(%r12)
movq (%r14), %rax
movslq 0xc(%r14), %rcx
movq %r13, (%rax,%rcx,8)
movl 0x10(%r14), %eax
incl %eax
movl %eax, 0x10(%r14)
movq 0x20(%r14), %rdx
leal 0x1(%rcx), %esi
movl %esi, 0xc(%r14)
movl %eax, (%rdx,%rcx,4)
movq (%r14), %rax
movslq 0xc(%r14), %rcx
movq %r12, (%rax,%rcx,8)
movl 0x10(%r14), %eax
movq 0x20(%r14), %rdx
leal 0x1(%rcx), %esi
movl %esi, 0xc(%r14)
movl %eax, (%rdx,%rcx,4)
jmp 0xf68a0
movq 0x20(%r14), %rax
movl (%rax,%rsi,4), %eax
testl %edx, %edx
jne 0xf6860
testl %eax, %eax
je 0xf68a0
movq %r14, %rdi
movq %r12, %rsi
movl %eax, %edx
callq 0xf80b5
jmp 0xf68a0
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb $0x1, %al
cmpq %r12, %r13
je 0xf69e5
movzbl %al, %eax
movq (%r15,%rax,8), %rax
movq %rbp, %rdi
movq %r13, %rsi
movq %r12, %rdx
movq %r14, %rcx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmpq *%rax