// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: vector_set_p_ppp
static s7_pointer vector_set_p_ppp(s7_scheme *sc, s7_pointer vec, s7_pointer ind, s7_pointer val)
                {
                    s7_int index;

                    if ((!is_any_vector(vec)) || (vector_rank(vec) > 1))
                        return(g_vector_set(sc, set_plist_3(sc, vec, ind, val)));
                    if (is_immutable_vector(vec))
                        return(immutable_object_error(sc, set_elist_3(sc, immutable_error_string, sc->vector_set_symbol, vec)));
                    if (!s7_is_integer(ind))
                        return(g_vector_set(sc, set_plist_3(sc, vec, ind, val)));
                    index = s7_integer(ind);
                    if ((index < 0) ||
                            (index >= vector_length(vec)))
                        return(out_of_range(sc, sc->vector_set_symbol, small_int(2), wrap_integer1(sc, index), (index < 0) ? its_negative_string : its_too_large_string));

                    if (is_typed_vector(vec))
                        return(typed_vector_setter(sc, vec, index, val));
                    vector_setter(vec)(sc, vec, index, val);
                    return(val);
                }

// Assembly:
subq $0x78, %rsp
movq %rdi, 0x68(%rsp)
movq %rsi, 0x60(%rsp)
movq %rdx, 0x58(%rsp)
movq %rcx, 0x50(%rsp)
movq 0x60(%rsp), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x170cf7(%rip), %rax    # 0x21a750
testb $0x1, (%rax,%rcx)
je 0xa9a9e
movq 0x60(%rsp), %rax
movq 0x18(%rax), %rax
cmpq $0x0, 0x20(%rax)
je 0xa9a87
movq 0x60(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
movq 0x10(%rax), %rax
movq %rax, 0x40(%rsp)
jmp 0xa9a93
movl $0x1, %eax
movq %rax, 0x40(%rsp)
jmp 0xa9a93
movq 0x40(%rsp), %rax
cmpq $0x1, %rax
jle 0xa9ad8
movq 0x68(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x68(%rsp), %rdi
movq 0x60(%rsp), %rsi
movq 0x58(%rsp), %rdx
movq 0x50(%rsp), %rcx
callq 0x359a0
movq 0x38(%rsp), %rdi
movq %rax, %rsi
callq 0x99950
movq %rax, 0x70(%rsp)
jmp 0xa9c7f
movq 0x60(%rsp), %rax
movq (%rax), %rax
andq $0x1000000, %rax        # imm = 0x1000000
cmpq $0x0, %rax
je 0xa9b2f
movq 0x68(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x68(%rsp), %rdi
movq 0x170996(%rip), %rsi    # 0x21a498
movq 0x68(%rsp), %rax
movq 0x1668(%rax), %rdx
movq 0x60(%rsp), %rcx
callq 0xf240
movq 0x30(%rsp), %rdi
movq %rax, %rsi
callq 0xb800
movq %rax, 0x70(%rsp)
jmp 0xa9c7f
movq 0x58(%rsp), %rdi
callq 0x11340
testb $0x1, %al
jne 0xa9b77
movq 0x68(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x68(%rsp), %rdi
movq 0x60(%rsp), %rsi
movq 0x58(%rsp), %rdx
movq 0x50(%rsp), %rcx
callq 0x359a0
movq 0x28(%rsp), %rdi
movq %rax, %rsi
callq 0x99950
movq %rax, 0x70(%rsp)
jmp 0xa9c7f
movq 0x58(%rsp), %rdi
callq 0x10790
movq %rax, 0x48(%rsp)
cmpq $0x0, 0x48(%rsp)
jl 0xa9ba2
movq 0x48(%rsp), %rax
movq 0x60(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jl 0xa9c25
movq 0x68(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x68(%rsp), %rax
movq 0x1668(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x16c8c8(%rip), %rax    # 0x216490
movq %rax, 0x18(%rsp)
movq 0x68(%rsp), %rdi
movq 0x48(%rsp), %rsi
callq 0x12430
movq %rax, 0x20(%rsp)
cmpq $0x0, 0x48(%rsp)
jge 0xa9bf6
movq 0x170988(%rip), %rax    # 0x21a578
movq %rax, (%rsp)
jmp 0xa9c01
movq 0x170973(%rip), %rax    # 0x21a570
movq %rax, (%rsp)
movq 0x20(%rsp), %rcx
movq 0x18(%rsp), %rdx
movq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rdi
movq (%rsp), %r8
callq 0x13880
movq %rax, 0x70(%rsp)
jmp 0xa9c7f
movq 0x60(%rsp), %rax
movzwl 0x6(%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0xa9c56
movq 0x68(%rsp), %rdi
movq 0x60(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq 0x50(%rsp), %rcx
callq 0x34290
movq %rax, 0x70(%rsp)
jmp 0xa9c7f
movq 0x60(%rsp), %rax
movq 0x28(%rax), %rax
movq 0x68(%rsp), %rdi
movq 0x60(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq 0x50(%rsp), %rcx
callq *%rax
movq 0x50(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x70(%rsp), %rax
addq $0x78, %rsp
retq
nopl (%rax)