// File: /workspace/github_c_makefile_star2_O3/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
subq $0x18, %rsp
movb $0x1, %bl
cmpq %rdx, %rsi
je 0xf791a
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbp
cmpb $0x1, (%rdx)
jne 0xf7531
movq %rcx, %r14
testq %rcx, %rcx
je 0xf75f6
xorl %edx, %edx
testb $0x2, 0x2(%r15)
je 0xf76eb
movslq 0xc(%r14), %rax
testq %rax, %rax
jle 0xf76eb
movq (%r14), %rdx
xorl %ecx, %ecx
cmpq %r15, (%rdx,%rcx,8)
je 0xf76e4
incq %rcx
cmpq %rcx, %rax
jne 0xf7518
xorl %edx, %edx
jmp 0xf76eb
testb $0x40, 0x3(%r15)
je 0xf7918
cmpb $0x1, 0x24c(%rbp)
jne 0xf7918
movq %rbp, %rdi
movq %r15, %rsi
callq 0x8a63
movq 0x1100(%rbp), %rdx
movq %rbp, %rdi
movq %rax, %rsi
callq 0x89ff
cmpq 0x128(%rbp), %rax
je 0xf7918
movq %rax, %r14
movq 0x90(%rbp), %rax
movq 0x110(%rbp), %rbx
cmpq 0x98(%rbp), %rax
ja 0xf759c
movq %rbp, %rdi
callq 0xa550
movq 0x90(%rbp), %rax
leaq -0x8(%rax), %rcx
movq %rcx, 0x90(%rbp)
movq -0x8(%rax), %rax
movl $0x200001, %ecx         # imm = 0x200001
movq %rcx, (%rax)
movq %r12, 0x8(%rax)
movq %rbx, 0x10(%rax)
movq 0x90(%rbp), %rdx
leaq -0x8(%rdx), %rsi
movq %rsi, 0x90(%rbp)
movq -0x8(%rdx), %rdx
movq %rcx, (%rdx)
movq %r15, 0x8(%rdx)
movq %rax, 0x10(%rdx)
movq %rbp, %rdi
movq %r14, %rsi
callq 0xaee6
cmpq %rax, 0x120(%rbp)
setne %bl
jmp 0xf791a
movq 0x6c0(%rbp), %r14
movslq 0xc(%r14), %r13
testq %r13, %r13
jle 0xf76d2
movq %rbp, 0x10(%rsp)
movq 0x20(%r14), %rdi
movq %r13, %rbp
shlq $0x2, %rbp
cmpl $0x1, %r13d
je 0xf764c
movabsq $0x1fffffff8, %rdx      # imm = 0x1FFFFFFF8
andq %rbp, %rdx
movq %rdi, 0x8(%rsp)
xorl %esi, %esi
movq %rdx, (%rsp)
callq 0x8270
andq $0x4, %rbp
je 0xf765a
movq 0x8(%rsp), %rdi
addq (%rsp), %rdi
xorl %esi, %esi
movq %rbp, %rdx
callq 0x8270
movl 0xc(%r14), %r13d
movq 0x48(%r14), %rdi
movslq %r13d, %rbp
cmpl $0x8, %ebp
jb 0xf768b
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 0xf769e
xorl %esi, %esi
movq %rbp, %rdx
callq 0x8270
movl 0xc(%r14), %r13d
testl %r13d, %r13d
jle 0xf76c5
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 0xf76af
movl $0x0, 0xc(%r14)
movq 0x10(%rsp), %rbp
movl $0x0, 0x10(%r14)
movb $0x0, 0x18(%r14)
jmp 0xf77b1
movq 0x20(%r14), %rax
movl (%rax,%rcx,4), %edx
movq (%r12), %rax
btl $0x11, %eax
jb 0xf7704
testl %edx, %edx
je 0xf7724
movq %r14, %rdi
movq %r12, %rsi
jmp 0xf77ac
movslq 0xc(%r14), %rax
testq %rax, %rax
jle 0xf7720
movq (%r14), %rsi
xorl %ecx, %ecx
cmpq %r12, (%rsi,%rcx,8)
je 0xf778b
incq %rcx
cmpq %rcx, %rax
jne 0xf7712
xorl %eax, %eax
jmp 0xf7792
movl 0xc(%r14), %ecx
cmpl 0x14(%r14), %ecx
jl 0xf773a
movq %r14, %rdi
callq 0x967fa
movq (%r12), %rax
orq $0x20000, %rax          # imm = 0x20000
movq %rax, (%r12)
orb $0x2, 0x2(%r15)
movq (%r14), %rax
movslq 0xc(%r14), %rcx
movq %r12, (%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 %r15, (%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 0xf77b1
movq 0x20(%r14), %rax
movl (%rax,%rcx,4), %eax
testl %edx, %edx
je 0xf77a0
cmpl %edx, %eax
sete %bl
jmp 0xf791a
testl %eax, %eax
je 0xf77b1
movq %r14, %rdi
movq %r15, %rsi
movl %eax, %edx
callq 0xf80b5
movq 0x8(%r12), %rsi
movq 0x8(%r15), %rdx
movzbl (%rsi), %eax
leaq 0x5b6fc(%rip), %r13     # 0x152ec0
movq %rbp, %rdi
movq %r14, %rcx
callq *(%r13,%rax,8)
testb %al, %al
je 0xf7918
movq 0x10(%r12), %r12
movq 0x10(%r15), %r15
movb (%r12), %al
cmpb $0x1, %al
jne 0xf792d
cmpb $0x1, (%r15)
jne 0xf792b
movq 0x8(%r12), %rsi
movq 0x8(%r15), %rdx
movzbl (%rsi), %eax
movq %rbp, %rdi
movq %r14, %rcx
callq *(%r13,%rax,8)
xorl %edx, %edx
testb %al, %al
je 0xf7918
testb $0x2, 0x2(%r15)
je 0xf7843
movslq 0xc(%r14), %rax
testq %rax, %rax
jle 0xf7843
movq (%r14), %rsi
xorl %ecx, %ecx
cmpq %r15, (%rsi,%rcx,8)
je 0xf783c
incq %rcx
cmpq %rcx, %rax
jne 0xf782c
jmp 0xf7843
movq 0x20(%r14), %rax
movl (%rax,%rcx,4), %edx
movq (%r12), %rax
btl $0x11, %eax
jb 0xf7861
testl %edx, %edx
je 0xf7885
movq %r14, %rdi
movq %r12, %rsi
callq 0xf80b5
jmp 0xf77d7
movslq 0xc(%r14), %rcx
xorl %eax, %eax
testq %rcx, %rcx
jle 0xf78f6
movq (%r14), %rdi
xorl %esi, %esi
cmpq %r12, (%rdi,%rsi,8)
je 0xf78ef
incq %rsi
cmpq %rsi, %rcx
jne 0xf7875
jmp 0xf78f6
movl 0xc(%r14), %ecx
cmpl 0x14(%r14), %ecx
jl 0xf789b
movq %r14, %rdi
callq 0x967fa
movq (%r12), %rax
orq $0x20000, %rax          # imm = 0x20000
movq %rax, (%r12)
orb $0x2, 0x2(%r15)
movq (%r14), %rax
movslq 0xc(%r14), %rcx
movq %r12, (%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 %r15, (%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 0xf77d7
movq 0x20(%r14), %rax
movl (%rax,%rsi,4), %eax
testl %edx, %edx
jne 0xf7796
testl %eax, %eax
je 0xf77d7
movq %r14, %rdi
movq %r15, %rsi
movl %eax, %edx
callq 0xf80b5
jmp 0xf77d7
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 %r15, %r12
je 0xf791a
movzbl %al, %eax
movq (%r13,%rax,8), %rax
movq %rbp, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r14, %rcx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmpq *%rax