// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: pair_equivalent
static bool pair_equivalent(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))
                    {
                        check_equivalent_method(sc, y, x);
                        return(false);
                    }

                    if (ci)
                    {
                        nci = ci;
                        equal_ref(sc, x, y, ci);
                    }
                    else nci = new_shared_info(sc);

                    if (!s7_is_equivalent_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_equivalent_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_equivalent_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 0x1007f3
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
cmpb $0x1, (%rdx)
jne 0x10039d
movq %rcx, %r12
testq %rcx, %rcx
je 0x100466
xorl %edx, %edx
testb $0x2, 0x2(%r14)
je 0x100559
movslq 0xc(%r12), %rax
testq %rax, %rax
jle 0x100559
movq (%r12), %rdx
xorl %ecx, %ecx
cmpq %r14, (%rdx,%rcx,8)
je 0x100551
incq %rcx
cmpq %rcx, %rax
jne 0x100384
xorl %edx, %edx
jmp 0x100559
testb $0x40, 0x3(%r14)
je 0x1007f1
cmpb $0x1, 0x24c(%rbx)
jne 0x1007f1
movq %rbx, %rdi
movq %r14, %rsi
callq 0x9a55
movq 0x1100(%rbx), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x99ef
movq %rax, %r12
movq 0x128(%rbx), %r13
cmpq %r13, %rax
je 0x1007ec
movq 0x90(%rbx), %rax
movq 0x110(%rbx), %rbp
cmpq 0x98(%rbx), %rax
ja 0x100404
movq %rbx, %rdi
callq 0xb389
movq 0x90(%rbx), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbx)
movq -0x8(%rax), %rax
movl $0x200001, %ecx         # imm = 0x200001
movq %rcx, (%rax)
movq %r15, 0x8(%rax)
movq %rbp, 0x10(%rax)
movq 0x90(%rbx), %rdx
leaq -0x8(%rdx), %rsi
movq %rsi, 0x90(%rbx)
movq -0x8(%rdx), %rdx
movq %rcx, (%rdx)
movq %r14, 0x8(%rdx)
movq %rax, 0x10(%rdx)
movq %rbx, %rdi
movq %r12, %rsi
callq 0xbd41
cmpq %rax, 0x120(%rbx)
setne %bpl
jmp 0x1007ec
movq 0x6c0(%rbx), %r12
movslq 0xc(%r12), %r13
testq %r13, %r13
jle 0x10053d
movl %r13d, %eax
movq 0x20(%r12), %rdi
shlq $0x2, %r13
cmpl $0x1, %eax
je 0x1004b6
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 0x1004c5
xorl %esi, %esi
movq %r13, %rdx
callq 0x9270
movq 0x48(%r12), %rdi
movslq 0xc(%r12), %r13
cmpq $0x8, %r13
jb 0x1004f9
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 0x100508
xorl %esi, %esi
movq %r13, %rdx
callq 0x9270
cmpl $0x0, 0xc(%r12)
jle 0x100534
xorl %eax, %eax
movabsq $-0x600000000a0001, %rcx # imm = 0xFF9FFFFFFFF5FFFF
movq (%r12), %rdx
movq (%rdx,%rax,8), %rdx
andq %rcx, (%rdx)
incq %rax
movslq 0xc(%r12), %rdx
cmpq %rdx, %rax
jl 0x10051c
movl $0x0, 0xc(%r12)
movl $0x0, 0x10(%r12)
movb $0x0, 0x18(%r12)
jmp 0x100627
movq 0x20(%r12), %rax
movl (%rax,%rcx,4), %edx
testb $0x2, 0x2(%r15)
jne 0x100574
testl %edx, %edx
je 0x100596
movq %r12, %rdi
movq %r15, %rsi
callq 0x100fa2
jmp 0x1005ff
movslq 0xc(%r12), %rax
testq %rax, %rax
jle 0x100592
movq (%r12), %rsi
xorl %ecx, %ecx
cmpq %r15, (%rsi,%rcx,8)
je 0x100604
incq %rcx
cmpq %rcx, %rax
jne 0x100584
xorl %eax, %eax
jmp 0x10060c
movl 0xc(%r12), %eax
cmpl 0x14(%r12), %eax
jl 0x1005aa
movq %r12, %rdi
callq 0x9cf49
orb $0x2, 0x2(%r15)
orb $0x2, 0x2(%r14)
movq (%r12), %rax
movslq 0xc(%r12), %rcx
movq %r15, (%rax,%rcx,8)
movl 0x10(%r12), %eax
incl %eax
movl %eax, 0x10(%r12)
movq 0x20(%r12), %rdx
leal 0x1(%rcx), %esi
movl %esi, 0xc(%r12)
movl %eax, (%rdx,%rcx,4)
movq (%r12), %rax
movslq 0xc(%r12), %rcx
movq %r14, (%rax,%rcx,8)
movl 0x10(%r12), %eax
movq 0x20(%r12), %rdx
leal 0x1(%rcx), %esi
movl %esi, 0xc(%r12)
movl %eax, (%rdx,%rcx,4)
movb $0x1, %r13b
jmp 0x10061e
movq 0x20(%r12), %rax
movl (%rax,%rcx,4), %eax
testl %edx, %edx
sete %r13b
je 0x1007d2
cmpl %edx, %eax
sete %bpl
testb %r13b, %r13b
je 0x1007f3
movq 0x8(%r15), %rsi
movq 0x8(%r14), %rdx
movzbl (%rsi), %eax
leaq 0x5a887(%rip), %r8      # 0x15aec0
movq %rbx, %rdi
movq %r12, %rcx
callq *(%r8,%rax,8)
testb %al, %al
je 0x1007f1
movq 0x10(%r15), %r15
movq 0x10(%r14), %r14
movzbl (%r15), %eax
cmpq $0x1, %rax
jne 0x1007a3
cmpb $0x1, (%r14)
jne 0x1007a3
movq 0x8(%r15), %rsi
movq 0x8(%r14), %rdx
movzbl (%rsi), %eax
movq %rbx, %rdi
movq %r12, %rcx
leaq 0x5a83d(%rip), %r8      # 0x15aec0
callq *(%r8,%rax,8)
xorl %edx, %edx
testb %al, %al
je 0x1007f1
testb $0x2, 0x2(%r14)
je 0x1006c0
movslq 0xc(%r12), %rax
testq %rax, %rax
jle 0x1006c0
movq (%r12), %rsi
xorl %ecx, %ecx
cmpq %r14, (%rsi,%rcx,8)
je 0x1006b8
incq %rcx
cmpq %rcx, %rax
jne 0x1006a8
jmp 0x1006c0
movq 0x20(%r12), %rax
movl (%rax,%rcx,4), %edx
testb $0x2, 0x2(%r15)
jne 0x1006db
testl %edx, %edx
je 0x100701
movq %r12, %rdi
movq %r15, %rsi
callq 0x100fa2
jmp 0x10076a
movslq 0xc(%r12), %rcx
xorl %eax, %eax
testq %rcx, %rcx
jle 0x100777
movq (%r12), %rdi
xorl %esi, %esi
cmpq %r15, (%rdi,%rsi,8)
je 0x10076f
incq %rsi
cmpq %rsi, %rcx
jne 0x1006f1
jmp 0x100777
movl 0xc(%r12), %eax
cmpl 0x14(%r12), %eax
jl 0x100715
movq %r12, %rdi
callq 0x9cf49
orb $0x2, 0x2(%r15)
orb $0x2, 0x2(%r14)
movq (%r12), %rax
movslq 0xc(%r12), %rcx
movq %r15, (%rax,%rcx,8)
movl 0x10(%r12), %eax
incl %eax
movl %eax, 0x10(%r12)
movq 0x20(%r12), %rdx
leal 0x1(%rcx), %esi
movl %esi, 0xc(%r12)
movl %eax, (%rdx,%rcx,4)
movq (%r12), %rax
movslq 0xc(%r12), %rcx
movq %r14, (%rax,%rcx,8)
movl 0x10(%r12), %eax
movq 0x20(%r12), %rdx
leal 0x1(%rcx), %esi
movl %esi, 0xc(%r12)
movl %eax, (%rdx,%rcx,4)
movb $0x1, %r13b
jmp 0x100798
movq 0x20(%r12), %rax
movl (%rax,%rsi,4), %eax
testl %edx, %edx
sete %r13b
je 0x100787
cmpl %edx, %eax
sete %bpl
jmp 0x100798
testl %eax, %eax
je 0x100798
movq %r12, %rdi
movq %r14, %rsi
movl %eax, %edx
callq 0x100fa2
testb %r13b, %r13b
jne 0x10064b
jmp 0x1007f3
movb $0x1, %bpl
cmpq %r14, %r15
je 0x1007f3
leaq 0x5a70e(%rip), %rcx     # 0x15aec0
movq (%rcx,%rax,8), %rax
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %r12, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmpq *%rax
testl %eax, %eax
je 0x100602
movq %r12, %rdi
movq %r14, %rsi
movl %eax, %edx
callq 0x100fa2
jmp 0x100602
cmpq %r13, %r12
jne 0x1007f3
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