// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: s7_vector_copy
s7_pointer s7_vector_copy(s7_scheme *sc, s7_pointer old_vect)
#endif
                    {
                        s7_int i, len;
                        s7_pointer new_vect;

                        len = vector_length(old_vect);
                        if (is_normal_vector(old_vect))
                        {
                            s7_pointer *src, *dst;
                            if ((is_typed_vector(old_vect)) && (len > 0)) /* preserve the type info as well */
                            {
                                if (vector_rank(old_vect) > 1)
                                    new_vect = g_make_vector(sc, set_plist_3(sc, g_vector_dimensions(sc, list_1(sc, old_vect)), vector_element(old_vect, 0), typed_vector_typer(old_vect)));
                                else new_vect = g_make_vector(sc, set_plist_3(sc, make_integer(sc, len), vector_element(old_vect, 0), typed_vector_typer(old_vect)));
                            }
                            else
                            {
                                if (vector_rank(old_vect) > 1)
                                    new_vect = g_make_vector(sc, set_plist_1(sc, g_vector_dimensions(sc, list_1(sc, old_vect))));
                                else new_vect = make_simple_vector(sc, len);
                            }
                            /* here and in vector-fill! we have a problem with bignums -- should new bignums be allocated? (copy_list also) */
                            src = (s7_pointer *)vector_elements(old_vect);
                            dst = (s7_pointer *)vector_elements(new_vect);
                            for (i = len; i > 0; i--) *dst++ = *src++;
                            return(new_vect);
                        }

                        if (is_float_vector(old_vect))
                        {
                            s7_double *src, *dst;
                            if (vector_rank(old_vect) > 1)
                                new_vect = g_make_vector_1(sc, set_plist_2(sc, g_vector_dimensions(sc, set_plist_1(sc, old_vect)), real_zero), sc->make_float_vector_symbol);
                            else new_vect = make_simple_float_vector(sc, len);
                            src = (s7_double *)float_vector_floats(old_vect);
                            dst = (s7_double *)float_vector_floats(new_vect);
                            for (i = len; i > 0; i--) *dst++ = *src++;  /* same speed as memcpy(dst, src, len * sizeof(s7_double)); */
                            return(new_vect);
                        }

                        if (is_int_vector(old_vect))
                        {
                            s7_int *src, *dst;
                            if (vector_rank(old_vect) > 1)
                                new_vect = g_make_vector_1(sc, set_plist_2(sc, g_vector_dimensions(sc, set_plist_1(sc, old_vect)), small_int(0)), sc->make_int_vector_symbol);
                            else new_vect = make_simple_int_vector(sc, len);
                            src = (s7_int *)int_vector_ints(old_vect);
                            dst = (s7_int *)int_vector_ints(new_vect);
                            for (i = len; i > 0; i--) *dst++ = *src++;
                            return(new_vect);
                        }

                        if (is_byte_vector(old_vect))
                        {
                            uint8_t *src, *dst;
                            if (vector_rank(old_vect) > 1)
                                new_vect = g_make_vector_1(sc, set_plist_2(sc, g_vector_dimensions(sc, set_plist_1(sc, old_vect)), small_int(0)), sc->make_byte_vector_symbol);
                            else new_vect = make_simple_byte_vector(sc, len);
                            src = (uint8_t *)byte_vector_bytes(old_vect);
                            dst = (uint8_t *)byte_vector_bytes(new_vect);
                            for (i = len; i > 0; i--) *dst++ = *src++;
                            return(new_vect);
                        }
                        return(NULL);
                    }

// Assembly:
subq $0x188, %rsp            # imm = 0x188
movq %rdi, 0x178(%rsp)
movq %rsi, 0x170(%rsp)
movq 0x170(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x160(%rsp)
movq 0x170(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x15, %eax
jne 0x35470
movq 0x170(%rsp), %rax
movzwl 0x6(%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x35245
cmpq $0x0, 0x160(%rsp)
jle 0x35245
movq 0x170(%rsp), %rax
movq 0x18(%rax), %rax
cmpq $0x0, 0x20(%rax)
je 0x34f77
movq 0x170(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
movq 0x10(%rax), %rax
movq %rax, 0xb0(%rsp)
jmp 0x34f86
movl $0x1, %eax
movq %rax, 0xb0(%rsp)
jmp 0x34f86
movq 0xb0(%rsp), %rax
cmpq $0x1, %rax
jle 0x350e9
movq 0x178(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x178(%rsp), %rax
movq %rax, 0xa0(%rsp)
movq 0x178(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq 0x170(%rsp), %rax
movq %rax, 0x138(%rsp)
movq 0x178(%rsp), %rax
movq 0x110(%rax), %rax
movq %rax, 0x130(%rsp)
movq 0x178(%rsp), %rax
movq 0x90(%rax), %rax
movq 0x178(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x3501c
movq 0x178(%rsp), %rdi
callq 0xc670
movq 0x178(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0x140(%rsp)
movq 0x140(%rsp), %rax
movq $0x200001, (%rax)       # imm = 0x200001
movq 0xa8(%rsp), %rdi
movq 0x138(%rsp), %rcx
movq 0x140(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x130(%rsp), %rcx
movq 0x140(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x140(%rsp), %rax
movq %rax, 0x128(%rsp)
movq 0x128(%rsp), %rsi
callq 0x359e0
movq 0xa0(%rsp), %rdi
movq %rax, %rsi
movq 0x170(%rsp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rdx
movq 0x170(%rsp), %rax
movq 0x28(%rax), %rcx
callq 0x359a0
movq 0x98(%rsp), %rdi
movq %rax, %rsi
callq 0x35970
movq %rax, 0x158(%rsp)
jmp 0x35240
movq 0x178(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0x178(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0x160(%rsp), %rax
movq %rax, 0x120(%rsp)
movq 0x120(%rsp), %rax
andq $-0x800, %rax           # imm = 0xF800
cmpq $0x0, %rax
jne 0x3514d
movq 0x120(%rsp), %rcx
leaq 0x1e1344(%rip), %rax    # 0x216480
movq (%rax,%rcx,8), %rax
movq %rax, 0x80(%rsp)
jmp 0x351e8
jmp 0x3514f
movq 0x178(%rsp), %rax
movq 0x90(%rax), %rax
movq 0x178(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x3517c
movq 0x178(%rsp), %rdi
callq 0xc670
movq 0x178(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0x110(%rsp)
movq 0x110(%rsp), %rax
movq $0xb, (%rax)
movq 0x120(%rsp), %rcx
movq 0x110(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x110(%rsp), %rax
movq %rax, 0x108(%rsp)
movq 0x108(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0x90(%rsp), %rdi
movq 0x80(%rsp), %rax
movq %rax, 0x118(%rsp)
movq 0x118(%rsp), %rsi
movq 0x170(%rsp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rdx
movq 0x170(%rsp), %rax
movq 0x28(%rax), %rcx
callq 0x359a0
movq 0x88(%rsp), %rdi
movq %rax, %rsi
callq 0x35970
movq %rax, 0x158(%rsp)
jmp 0x353ce
movq 0x170(%rsp), %rax
movq 0x18(%rax), %rax
cmpq $0x0, 0x20(%rax)
je 0x35273
movq 0x170(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
movq 0x10(%rax), %rax
movq %rax, 0x78(%rsp)
jmp 0x3527f
movl $0x1, %eax
movq %rax, 0x78(%rsp)
jmp 0x3527f
movq 0x78(%rsp), %rax
cmpq $0x1, %rax
jle 0x353af
movq 0x178(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x178(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x178(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x170(%rsp), %rax
movq %rax, 0xf8(%rsp)
movq 0x178(%rsp), %rax
movq 0x110(%rax), %rax
movq %rax, 0xf0(%rsp)
movq 0x178(%rsp), %rax
movq 0x90(%rax), %rax
movq 0x178(%rsp), %rcx
cmpq 0x98(%rcx), %rax
ja 0x35309
movq 0x178(%rsp), %rdi
callq 0xc670
movq 0x178(%rsp), %rcx
movq 0x90(%rcx), %rax
movq %rax, %rdx
addq $-0x8, %rdx
movq %rdx, 0x90(%rcx)
movq -0x8(%rax), %rax
movq %rax, 0x100(%rsp)
movq 0x100(%rsp), %rax
movq $0x200001, (%rax)       # imm = 0x200001
movq 0x70(%rsp), %rdi
movq 0xf8(%rsp), %rcx
movq 0x100(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0xf0(%rsp), %rcx
movq 0x100(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x100(%rsp), %rax
movq %rax, 0xe8(%rsp)
movq 0xe8(%rsp), %rsi
callq 0x359e0
movq 0x68(%rsp), %rdi
movq %rax, %rsi
callq 0x35ea0
movq 0x60(%rsp), %rdi
movq %rax, %rsi
callq 0x35970
movq %rax, 0x158(%rsp)
jmp 0x353cc
movq 0x178(%rsp), %rdi
movq 0x160(%rsp), %rsi
callq 0x34da0
movq %rax, 0x158(%rsp)
jmp 0x353ce
movq 0x170(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x150(%rsp)
movq 0x158(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x148(%rsp)
movq 0x160(%rsp), %rax
movq %rax, 0x168(%rsp)
cmpq $0x0, 0x168(%rsp)
jle 0x3545b
movq 0x150(%rsp), %rax
movq %rax, %rcx
addq $0x8, %rcx
movq %rcx, 0x150(%rsp)
movq (%rax), %rcx
movq 0x148(%rsp), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0x148(%rsp)
movq %rcx, (%rax)
movq 0x168(%rsp), %rax
addq $-0x1, %rax
movq %rax, 0x168(%rsp)
jmp 0x35406
movq 0x158(%rsp), %rax
movq %rax, 0x180(%rsp)
jmp 0x35954
movq 0x170(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x17, %eax
jne 0x35611
movq 0x170(%rsp), %rax
movq 0x18(%rax), %rax
cmpq $0x0, 0x20(%rax)
je 0x354b2
movq 0x170(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
movq 0x10(%rax), %rax
movq %rax, 0x58(%rsp)
jmp 0x354be
movl $0x1, %eax
movq %rax, 0x58(%rsp)
jmp 0x354be
movq 0x58(%rsp), %rax
cmpq $0x1, %rax
jle 0x35550
movq 0x178(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x178(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x178(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x178(%rsp), %rdi
movq 0x170(%rsp), %rsi
callq 0x35ea0
movq 0x40(%rsp), %rdi
movq %rax, %rsi
callq 0x359e0
movq 0x48(%rsp), %rdi
movq %rax, %rsi
movq 0x1e5263(%rip), %rdx    # 0x21a788
callq 0x36f70
movq 0x50(%rsp), %rdi
movq %rax, %rsi
movq 0x178(%rsp), %rax
movq 0x12d8(%rax), %rdx
callq 0x35ed0
movq %rax, 0x158(%rsp)
jmp 0x3556d
movq 0x178(%rsp), %rdi
movq 0x160(%rsp), %rsi
callq 0x36fc0
movq %rax, 0x158(%rsp)
movq 0x170(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0xe0(%rsp)
movq 0x158(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0xd8(%rsp)
movq 0x160(%rsp), %rax
movq %rax, 0x168(%rsp)
cmpq $0x0, 0x168(%rsp)
jle 0x355fc
movq 0xe0(%rsp), %rax
movq %rax, %rcx
addq $0x8, %rcx
movq %rcx, 0xe0(%rsp)
movsd (%rax), %xmm0
movq 0xd8(%rsp), %rax
movq %rax, %rcx
addq $0x8, %rcx
movq %rcx, 0xd8(%rsp)
movsd %xmm0, (%rax)
movq 0x168(%rsp), %rax
addq $-0x1, %rax
movq %rax, 0x168(%rsp)
jmp 0x355a5
movq 0x158(%rsp), %rax
movq %rax, 0x180(%rsp)
jmp 0x35954
movq 0x170(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x16, %eax
jne 0x357b0
movq 0x170(%rsp), %rax
movq 0x18(%rax), %rax
cmpq $0x0, 0x20(%rax)
je 0x35653
movq 0x170(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
movq 0x10(%rax), %rax
movq %rax, 0x38(%rsp)
jmp 0x3565f
movl $0x1, %eax
movq %rax, 0x38(%rsp)
jmp 0x3565f
movq 0x38(%rsp), %rax
cmpq $0x1, %rax
jle 0x356f1
movq 0x178(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x178(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x178(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x178(%rsp), %rdi
movq 0x170(%rsp), %rsi
callq 0x35ea0
movq 0x20(%rsp), %rdi
movq %rax, %rsi
callq 0x359e0
movq 0x28(%rsp), %rdi
movq %rax, %rsi
movq 0x1e0dba(%rip), %rdx    # 0x216480
callq 0x36f70
movq 0x30(%rsp), %rdi
movq %rax, %rsi
movq 0x178(%rsp), %rax
movq 0x12f0(%rax), %rdx
callq 0x35ed0
movq %rax, 0x158(%rsp)
jmp 0x3570e
movq 0x178(%rsp), %rdi
movq 0x160(%rsp), %rsi
callq 0x370c0
movq %rax, 0x158(%rsp)
movq 0x170(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0xd0(%rsp)
movq 0x158(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0xc8(%rsp)
movq 0x160(%rsp), %rax
movq %rax, 0x168(%rsp)
cmpq $0x0, 0x168(%rsp)
jle 0x3579b
movq 0xd0(%rsp), %rax
movq %rax, %rcx
addq $0x8, %rcx
movq %rcx, 0xd0(%rsp)
movq (%rax), %rcx
movq 0xc8(%rsp), %rax
movq %rax, %rdx
addq $0x8, %rdx
movq %rdx, 0xc8(%rsp)
movq %rcx, (%rax)
movq 0x168(%rsp), %rax
addq $-0x1, %rax
movq %rax, 0x168(%rsp)
jmp 0x35746
movq 0x158(%rsp), %rax
movq %rax, 0x180(%rsp)
jmp 0x35954
movq 0x170(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x18, %eax
jne 0x35948
movq 0x170(%rsp), %rax
movq 0x18(%rax), %rax
cmpq $0x0, 0x20(%rax)
je 0x357f2
movq 0x170(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
movq 0x10(%rax), %rax
movq %rax, 0x18(%rsp)
jmp 0x357fe
movl $0x1, %eax
movq %rax, 0x18(%rsp)
jmp 0x357fe
movq 0x18(%rsp), %rax
cmpq $0x1, %rax
jle 0x3588e
movq 0x178(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x178(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x178(%rsp), %rax
movq %rax, (%rsp)
movq 0x178(%rsp), %rdi
movq 0x170(%rsp), %rsi
callq 0x35ea0
movq (%rsp), %rdi
movq %rax, %rsi
callq 0x359e0
movq 0x8(%rsp), %rdi
movq %rax, %rsi
movq 0x1e0c1d(%rip), %rdx    # 0x216480
callq 0x36f70
movq 0x10(%rsp), %rdi
movq %rax, %rsi
movq 0x178(%rsp), %rax
movq 0x12d0(%rax), %rdx
callq 0x35ed0
movq %rax, 0x158(%rsp)
jmp 0x358ab
movq 0x178(%rsp), %rdi
movq 0x160(%rsp), %rsi
callq 0x371c0
movq %rax, 0x158(%rsp)
movq 0x170(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0xc0(%rsp)
movq 0x158(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0xb8(%rsp)
movq 0x160(%rsp), %rax
movq %rax, 0x168(%rsp)
cmpq $0x0, 0x168(%rsp)
jle 0x35936
movq 0xc0(%rsp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, 0xc0(%rsp)
movb (%rax), %cl
movq 0xb8(%rsp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, 0xb8(%rsp)
movb %cl, (%rax)
movq 0x168(%rsp), %rax
addq $-0x1, %rax
movq %rax, 0x168(%rsp)
jmp 0x358e3
movq 0x158(%rsp), %rax
movq %rax, 0x180(%rsp)
jmp 0x35954
movq $0x0, 0x180(%rsp)
movq 0x180(%rsp), %rax
addq $0x188, %rsp            # imm = 0x188
retq
nopw %cs:(%rax,%rax)