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

                    vec = car(args);
                    if (type(vec) != typ)
                        return(method_or_bust(sc, vec, caller, args, typ, 1));
                    if (is_immutable_vector(vec))
                        return(immutable_object_error(sc, set_elist_3(sc, immutable_error_string, caller, vec)));

                    if (vector_rank(vec) > 1)
                    {
                        s7_int i;
                        s7_pointer x;
                        ind = 0;
                        for (x = cdr(args), i = 0; (is_not_null(cdr(x))) && (i < vector_ndims(vec)); x = cdr(x), i++)
                        {
                            s7_int n;
                            index = car(x);
                            if (!s7_is_integer(index))
                                return(method_or_bust(sc, index, caller, args, T_INTEGER, i + 2));
                            n = s7_integer(index);
                            if ((n < 0) ||
                                    (n >= vector_dimension(vec, i)))
                                return(out_of_range(sc, caller, wrap_integer1(sc, i + 2), index, (n < 0) ? its_negative_string : its_too_large_string));
                            ind += n * vector_offset(vec, i);
                        }
                        if (is_not_null(cdr(x)))
                            return(s7_wrong_number_of_args_error(sc, "too many args: ~S", args));
                        if (i != vector_ndims(vec))
                            return(s7_wrong_number_of_args_error(sc, "not enough args: ~S", args));
                        val = car(x);
                    }
                    else
                    {
                        s7_pointer p;
                        p = cdr(args);
                        index = car(p);
                        if (!s7_is_integer(index))
                            return(method_or_bust(sc, index, caller, args, T_INTEGER, 2));
                        ind = s7_integer(index);
                        if ((ind < 0) ||
                                (ind >= vector_length(vec)))
                            return(out_of_range(sc, caller, small_int(2), index, (ind < 0) ? its_negative_string : its_too_large_string));
                        if (is_not_null(cddr(p)))
                            return(s7_wrong_number_of_args_error(sc, "too many args: ~S", args));
                        val = cadr(p);
                    }

                    if (typ == T_FLOAT_VECTOR)
                    {
                        if (!s7_is_real(val))
                            return(method_or_bust(sc, val, caller, args, T_REAL, 3));
                        float_vector(vec, ind) = s7_real(val);
                    }
                    else
                    {
                        if (typ == T_INT_VECTOR)
                        {
                            if (!s7_is_integer(val))
                                return(method_or_bust(sc, val, caller, args, T_INTEGER, 3));
                            int_vector(vec, ind) = s7_integer(val);
                        }
                        else
                        {
                            if (!is_byte(val))
                                return(method_or_bust(sc, val, caller, args, T_INTEGER, 3));
                            byte_vector(vec, ind) = (uint8_t)s7_integer(val);
                        }
                    }
                    return(val);
                }

// Assembly:
subq $0xd8, %rsp
movq %rdi, 0xc8(%rsp)
movq %rsi, 0xc0(%rsp)
movq %rdx, 0xb8(%rsp)
movl %ecx, 0xb4(%rsp)
movq 0xc0(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0xa8(%rsp)
movq 0xa8(%rsp), %rax
movzbl (%rax), %eax
cmpl 0xb4(%rsp), %eax
je 0x1ccaa1
movq 0xc8(%rsp), %rdi
movq 0xa8(%rsp), %rsi
movq 0xb8(%rsp), %rdx
movq 0xc0(%rsp), %rcx
movl 0xb4(%rsp), %eax
movl $0x1, %r9d
movzbl %al, %r8d
callq 0x13c50
movq %rax, 0xd0(%rsp)
jmp 0x1cd133
movq 0xa8(%rsp), %rax
movq (%rax), %rax
andq $0x1000000, %rax        # imm = 0x1000000
cmpq $0x0, %rax
je 0x1ccb03
movq 0xc8(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0xc8(%rsp), %rdi
movq 0x4d9c4(%rip), %rsi     # 0x21a498
movq 0xb8(%rsp), %rdx
movq 0xa8(%rsp), %rcx
callq 0xf240
movq 0x68(%rsp), %rdi
movq %rax, %rsi
callq 0xb800
movq %rax, 0xd0(%rsp)
jmp 0x1cd133
movq 0xa8(%rsp), %rax
movq 0x18(%rax), %rax
cmpq $0x0, 0x20(%rax)
je 0x1ccb31
movq 0xa8(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
movq 0x10(%rax), %rax
movq %rax, 0x60(%rsp)
jmp 0x1ccb3d
movl $0x1, %eax
movq %rax, 0x60(%rsp)
jmp 0x1ccb3d
movq 0x60(%rsp), %rax
cmpq $0x1, %rax
jle 0x1cce1a
movq $0x0, 0x90(%rsp)
movq 0xc0(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x80(%rsp)
movq $0x0, 0x88(%rsp)
movq 0x80(%rsp), %rax
movq 0x10(%rax), %rcx
movq 0xc8(%rsp), %rdx
xorl %eax, %eax
cmpq 0x110(%rdx), %rcx
movb %al, 0x5f(%rsp)
je 0x1ccbbe
movq 0x88(%rsp), %rax
movq 0xa8(%rsp), %rcx
movq 0x18(%rcx), %rcx
movq 0x20(%rcx), %rcx
cmpq 0x10(%rcx), %rax
setl %al
movb %al, 0x5f(%rsp)
movb 0x5f(%rsp), %al
testb $0x1, %al
jne 0x1ccbcb
jmp 0x1ccd74
movq 0x80(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x98(%rsp)
movq 0x98(%rsp), %rdi
callq 0x11340
testb $0x1, %al
jne 0x1ccc37
movq 0xc8(%rsp), %rdi
movq 0x98(%rsp), %rsi
movq 0xb8(%rsp), %rdx
movq 0xc0(%rsp), %rcx
movq 0x88(%rsp), %rax
addq $0x2, %rax
movl %eax, %r9d
movl $0xb, %r8d
callq 0x13c50
movq %rax, 0xd0(%rsp)
jmp 0x1cd133
movq 0x98(%rsp), %rdi
callq 0x10790
movq %rax, 0x78(%rsp)
cmpq $0x0, 0x78(%rsp)
jl 0x1ccc7b
movq 0x78(%rsp), %rax
movq 0xa8(%rsp), %rcx
movq 0x18(%rcx), %rcx
movq 0x20(%rcx), %rcx
movq (%rcx), %rcx
movq 0x88(%rsp), %rdx
cmpq (%rcx,%rdx,8), %rax
jl 0x1ccd11
movq 0xc8(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0xb8(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x40(%rsp)
movq 0xc8(%rsp), %rdi
movq 0x88(%rsp), %rsi
addq $0x2, %rsi
callq 0x12430
movq %rax, 0x48(%rsp)
movq 0x98(%rsp), %rax
movq %rax, 0x50(%rsp)
cmpq $0x0, 0x78(%rsp)
jge 0x1cccda
movq 0x4d8a5(%rip), %rax     # 0x21a578
movq %rax, 0x30(%rsp)
jmp 0x1ccce6
movq 0x4d88f(%rip), %rax     # 0x21a570
movq %rax, 0x30(%rsp)
movq 0x50(%rsp), %rcx
movq 0x48(%rsp), %rdx
movq 0x40(%rsp), %rsi
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %r8
callq 0x13880
movq %rax, 0xd0(%rsp)
jmp 0x1cd133
movq 0x78(%rsp), %rax
movq 0xa8(%rsp), %rcx
movq 0x18(%rcx), %rcx
movq 0x20(%rcx), %rcx
movq 0x18(%rcx), %rcx
movq 0x88(%rsp), %rdx
imulq (%rcx,%rdx,8), %rax
addq 0x90(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0x80(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x80(%rsp)
movq 0x88(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x88(%rsp)
jmp 0x1ccb78
movq 0x80(%rsp), %rax
movq 0x10(%rax), %rax
movq 0xc8(%rsp), %rcx
cmpq 0x110(%rcx), %rax
je 0x1ccdba
movq 0xc8(%rsp), %rdi
movq 0xc0(%rsp), %rdx
leaq 0x26c9a(%rip), %rsi     # 0x1f3a42
callq 0x33290
movq %rax, 0xd0(%rsp)
jmp 0x1cd133
movq 0x88(%rsp), %rax
movq 0xa8(%rsp), %rcx
movq 0x18(%rcx), %rcx
movq 0x20(%rcx), %rcx
cmpq 0x10(%rcx), %rax
je 0x1cce01
movq 0xc8(%rsp), %rdi
movq 0xc0(%rsp), %rdx
leaq 0x26c65(%rip), %rsi     # 0x1f3a54
callq 0x33290
movq %rax, 0xd0(%rsp)
jmp 0x1cd133
movq 0x80(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0xa0(%rsp)
jmp 0x1ccfa8
movq 0xc0(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x70(%rsp)
movq 0x70(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x98(%rsp)
movq 0x98(%rsp), %rdi
callq 0x11340
testb $0x1, %al
jne 0x1cce8b
movq 0xc8(%rsp), %rdi
movq 0x98(%rsp), %rsi
movq 0xb8(%rsp), %rdx
movq 0xc0(%rsp), %rcx
movl $0xb, %r8d
movl $0x2, %r9d
callq 0x13c50
movq %rax, 0xd0(%rsp)
jmp 0x1cd133
movq 0x98(%rsp), %rdi
callq 0x10790
movq %rax, 0x90(%rsp)
cmpq $0x0, 0x90(%rsp)
jl 0x1ccec5
movq 0x90(%rsp), %rax
movq 0xa8(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jl 0x1ccf4c
movq 0xc8(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0xb8(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x495a6(%rip), %rax     # 0x216490
movq %rax, 0x20(%rsp)
movq 0x98(%rsp), %rax
movq %rax, 0x28(%rsp)
cmpq $0x0, 0x90(%rsp)
jge 0x1ccf15
movq 0x4d66a(%rip), %rax     # 0x21a578
movq %rax, 0x8(%rsp)
jmp 0x1ccf21
movq 0x4d654(%rip), %rax     # 0x21a570
movq %rax, 0x8(%rsp)
movq 0x28(%rsp), %rcx
movq 0x20(%rsp), %rdx
movq 0x18(%rsp), %rsi
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %r8
callq 0x13880
movq %rax, 0xd0(%rsp)
jmp 0x1cd133
movq 0x70(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq 0xc8(%rsp), %rcx
cmpq 0x110(%rcx), %rax
je 0x1ccf93
movq 0xc8(%rsp), %rdi
movq 0xc0(%rsp), %rdx
leaq 0x26ac1(%rip), %rsi     # 0x1f3a42
callq 0x33290
movq %rax, 0xd0(%rsp)
jmp 0x1cd133
movq 0x70(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0xa0(%rsp)
cmpl $0x17, 0xb4(%rsp)
jne 0x1cd02c
movq 0xa0(%rsp), %rdi
callq 0x11360
testb $0x1, %al
jne 0x1cd001
movq 0xc8(%rsp), %rdi
movq 0xa0(%rsp), %rsi
movq 0xb8(%rsp), %rdx
movq 0xc0(%rsp), %rcx
movl $0xd, %r8d
movl $0x3, %r9d
callq 0x13c50
movq %rax, 0xd0(%rsp)
jmp 0x1cd133
movq 0xa0(%rsp), %rdi
callq 0x128d0
movq 0xa8(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x90(%rsp), %rcx
movsd %xmm0, (%rax,%rcx,8)
jmp 0x1cd123
cmpl $0x16, 0xb4(%rsp)
jne 0x1cd0af
movq 0xa0(%rsp), %rdi
callq 0x11340
testb $0x1, %al
jne 0x1cd085
movq 0xc8(%rsp), %rdi
movq 0xa0(%rsp), %rsi
movq 0xb8(%rsp), %rdx
movq 0xc0(%rsp), %rcx
movl $0xb, %r8d
movl $0x3, %r9d
callq 0x13c50
movq %rax, 0xd0(%rsp)
jmp 0x1cd133
movq 0xa0(%rsp), %rdi
callq 0x10790
movq %rax, %rdx
movq 0xa8(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x90(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
jmp 0x1cd121
movq 0xa0(%rsp), %rdi
callq 0xd8510
testb $0x1, %al
jne 0x1cd0fb
movq 0xc8(%rsp), %rdi
movq 0xa0(%rsp), %rsi
movq 0xb8(%rsp), %rdx
movq 0xc0(%rsp), %rcx
movl $0xb, %r8d
movl $0x3, %r9d
callq 0x13c50
movq %rax, 0xd0(%rsp)
jmp 0x1cd133
movq 0xa0(%rsp), %rdi
callq 0x10790
movb %al, %dl
movq 0xa8(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x90(%rsp), %rcx
movb %dl, (%rax,%rcx)
jmp 0x1cd123
movq 0xa0(%rsp), %rax
movq %rax, 0xd0(%rsp)
movq 0xd0(%rsp), %rax
addq $0xd8, %rsp
retq
nopw %cs:(%rax,%rax)