// File: /workspace/github_c_makefile_star2_O2/BernardTatin[P]s7sh/s7.c
// Function: vector_equivalent
static bool vector_equivalent(s7_scheme *sc, s7_pointer x, s7_pointer y, shared_info *ci)
                {
                    s7_int i, len;
                    shared_info *nci = ci;

                    if (x == y)
                        return(true);
                    if (!is_any_vector(y))
                    {
                        check_equivalent_method(sc, y, x);
                        return(false);
                    }
                    len = vector_length(x);
                    if (len != vector_length(y)) return(false);
                    if (len == 0) return(true);
                    if (!vector_rank_match(sc, x, y)) return(false);

                    if (type(x) != type(y))
                    {
                        /* (equivalent? (make-int-vector 3 0) (make-vector 3 0)) -> #t
                         * (equivalent? (make-float-vector 3 1.0) (vector 1 1 1)) -> #t
                         */
                        if ((is_int_vector(x)) && (is_byte_vector(y)))
                            return(biv_meq(sc, y, x, NULL));
                        if ((is_byte_vector(x)) && (is_int_vector(y)))
                            return(biv_meq(sc, x, y, NULL));
                        for (i = 0; i < len; i++)
                            if (!s7_is_equivalent_1(sc, vector_getter(x)(sc, x, i), vector_getter(y)(sc, y, i), NULL)) /* this could be greatly optimized */
                                return(false);
                        return(true);
                    }

                    if (is_float_vector(x))
                    {
                        s7_double *arr1, *arr2;
                        s7_double fudge;
                        arr1 = float_vector_floats(x);
                        arr2 = float_vector_floats(y);
                        fudge = sc->equivalent_float_epsilon;
                        if (fudge == 0.0)
                        {
                            for (i = 0; i < len; i++)
                                if ((arr1[i] != arr2[i]) &&
                                        ((!is_NaN(arr1[i])) || (!is_NaN(arr2[i]))))
                                    return(false);
                        }
                        else
                        {
                            for (i = 0; i < len; i++)
                                if (!floats_are_equivalent(sc, arr1[i], arr2[i]))
                                    return(false);
                        }
                        return(true);
                    }
                    if (is_int_vector(x))
                        return(iv_meq(int_vector_ints(x), int_vector_ints(y), len));
                    if (is_byte_vector(x))
                        return(byte_vector_equal(sc, x, y, NULL));

                    if (!has_simple_elements(x))
                    {
                        if (ci)
                            equal_ref(sc, x, y, ci);
                        else nci = new_shared_info(sc);
                    }
                    for (i = 0; i < len; i++)
                        if (!(s7_is_equivalent_1(sc, vector_element(x, i), vector_element(y, i), nci)))
                            return(false);
                    return(true);
                }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movb $0x1, %bpl
cmpq %rdx, %rsi
je 0xc52bc
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movzbl (%rdx), %r12d
leaq 0x54afd(%rip), %rax     # 0x119c20
cmpb $0x0, (%r12,%rax)
je 0xc51f7
movq 0x8(%r15), %rax
cmpq 0x8(%r14), %rax
jne 0xc52ba
testq %rax, %rax
je 0xc52bc
movq %rcx, %rbp
movq %rax, (%rsp)
movq %r15, %rdi
movq %r14, %rsi
callq 0xc6181
testb %al, %al
je 0xc52ba
movb (%r15), %al
cmpb %r12b, %al
jne 0xc52cd
cmpl $0x16, %r12d
je 0xc5321
cmpl $0x18, %r12d
je 0xc5308
cmpl $0x17, %r12d
jne 0xc53a7
movq 0x10(%r15), %r15
movq 0x10(%r14), %r14
xorl %r12d, %r12d
movq (%rsp), %rbp
testq %rbp, %rbp
cmovgq %rbp, %r12
movsd 0x260(%rbx), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0xc53f5
jp 0xc53f5
xorl %eax, %eax
cmpq %rax, %r12
sete %bpl
je 0xc52bc
movsd (%r15,%rax,8), %xmm1
movsd (%r14,%rax,8), %xmm0
ucomisd %xmm0, %xmm1
jne 0xc51de
jnp 0xc51f2
ucomisd %xmm1, %xmm1
jnp 0xc52bc
ucomisd %xmm0, %xmm0
jnp 0xc52bc
incq %rax
jmp 0xc51bd
testb $0x40, 0x3(%r14)
je 0xc52ba
cmpb $0x1, 0x24c(%rbx)
jne 0xc52ba
movq %rbx, %rdi
movq %r14, %rsi
callq 0x88f3
movq 0x1100(%rbx), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x888f
cmpq 0x128(%rbx), %rax
je 0xc52ba
movq %rax, %r12
movq 0x90(%rbx), %rax
movq 0x110(%rbx), %r13
cmpq 0x98(%rbx), %rax
ja 0xc5262
movq %rbx, %rdi
callq 0x9c27
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 %r13, 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 0xa34c
cmpq %rax, 0x120(%rbx)
setne %bpl
jmp 0xc52bc
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %eax, %ecx
xorb $0x16, %cl
movl %r12d, %edx
xorb $0x18, %dl
orb %cl, %dl
jne 0xc52e4
movq %r14, %rdi
movq %r15, %rsi
jmp 0xc52f5
xorb $0x18, %al
xorb $0x16, %r12b
orb %al, %r12b
jne 0xc5340
movq %r15, %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xc61f0
movq %r15, %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xc62b5
movq 0x10(%r15), %rdi
movq 0x10(%r14), %rsi
movq (%rsp), %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xc6229
xorl %r13d, %r13d
movq (%rsp), %rcx
testq %rcx, %rcx
cmovleq %r13, %rcx
movq %rcx, (%rsp)
cmpq %r13, %rcx
sete %bpl
je 0xc52bc
movq %rbx, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq *0x20(%r15)
movq %rax, %r12
movq %rbx, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq *0x20(%r14)
movzbl (%r12), %r8d
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
xorl %ecx, %ecx
leaq 0x5cb2d(%rip), %rax     # 0x121ec0
callq *(%rax,%r8,8)
movq (%rsp), %rcx
incq %r13
testb %al, %al
jne 0xc5352
jmp 0xc52bc
testb $0x1, 0x7(%r15)
movq (%rsp), %r13
jne 0xc54d4
testq %rbp, %rbp
je 0xc5425
movq %rbp, %rcx
xorl %r12d, %r12d
testb $0x2, 0x2(%r14)
je 0xc53d9
movq %rcx, %rdi
movq %r14, %rsi
callq 0x785fb
movq %rbp, %rcx
movl %eax, %r12d
movq (%r15), %rax
btl $0x11, %eax
jb 0xc5439
testl %r12d, %r12d
je 0xc5455
movq %rcx, %rdi
movq %r15, %rsi
movl %r12d, %edx
jmp 0xc54c2
xorl %r13d, %r13d
cmpq %r13, %r12
sete %bpl
je 0xc52bc
movsd (%r15,%r13,8), %xmm0
movsd (%r14,%r13,8), %xmm1
movq %rbx, %rdi
callq 0xc62fb
incq %r13
testb %al, %al
jne 0xc53f8
jmp 0xc52bc
movq %rbx, %rdi
callq 0x77cff
movq (%rsp), %r13
movq %rax, %rcx
jmp 0xc54d7
movq %rcx, %rdi
movq %r15, %rsi
callq 0x785fb
testl %r12d, %r12d
je 0xc54b6
cmpl %r12d, %eax
sete %bpl
jmp 0xc52bc
movl 0xc(%rcx), %edx
cmpl 0x14(%rcx), %edx
jl 0xc546b
movq %rcx, %rdi
callq 0x78405
movq %rbp, %rcx
movq (%r15), %rax
orq $0x20000, %rax          # imm = 0x20000
movq %rax, (%r15)
orb $0x2, 0x2(%r14)
movq (%rcx), %rax
movslq 0xc(%rcx), %rdi
movq %r15, (%rax,%rdi,8)
movl 0x10(%rcx), %eax
incl %eax
movl %eax, 0x10(%rcx)
movq 0x20(%rcx), %rdx
leal 0x1(%rdi), %esi
movl %esi, 0xc(%rcx)
movl %eax, (%rdx,%rdi,4)
movq (%rcx), %rax
movslq 0xc(%rcx), %rdi
movq %r14, (%rax,%rdi,8)
movl 0x10(%rcx), %eax
movq 0x20(%rcx), %rdx
leal 0x1(%rdi), %esi
movl %esi, 0xc(%rcx)
movl %eax, (%rdx,%rdi,4)
jmp 0xc54ca
testl %eax, %eax
je 0xc54d0
movq %rbp, %rdi
movq %r14, %rsi
movl %eax, %edx
callq 0xc57c1
movq %rbp, %rcx
movq (%rsp), %r13
jmp 0xc54d7
movq (%rsp), %r13
movq %rbp, %rcx
xorl %r12d, %r12d
testq %r13, %r13
cmovleq %r12, %r13
movq %r13, (%rsp)
cmpq %r12, %r13
sete %bpl
je 0xc52bc
movq 0x10(%r15), %rax
movq (%rax,%r12,8), %rsi
movq 0x10(%r14), %rax
movq (%rax,%r12,8), %rdx
movzbl (%rsi), %eax
movq %rbx, %rdi
movq %rbx, %r13
movq %rcx, %rbx
leaq 0x5c9ab(%rip), %r8      # 0x121ec0
callq *(%r8,%rax,8)
movq %rbx, %rcx
movq %r13, %rbx
movq (%rsp), %r13
incq %r12
testb %al, %al
jne 0xc54e5
jmp 0xc52bc