// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: g_iv_set_3
static s7_pointer g_iv_set_3(s7_scheme *sc, s7_pointer args)
                {
                    s7_pointer v, index, value;
                    s7_int ind;
                    v = car(args);
                    if (!is_int_vector(v))
                        return(method_or_bust(sc, v, sc->int_vector_set_symbol, args, T_INT_VECTOR, 1));
                    if (vector_rank(v) != 1)
                        return(univect_set(sc, args, sc->int_vector_set_symbol, T_INT_VECTOR));
                    index = cadr(args);
                    if (!s7_is_integer(index))
                        return(method_or_bust(sc, index, sc->int_vector_set_symbol, args, T_INTEGER, 2));
                    ind = s7_integer(index);
                    if ((ind < 0) || (ind >= vector_length(v)))
                        return(simple_out_of_range(sc, sc->int_vector_set_symbol, index, (ind < 0) ? its_negative_string : its_too_large_string));
                    value = caddr(args);
                    if (!s7_is_integer(value))
                        return(method_or_bust(sc, value, sc->int_vector_set_symbol, args, T_INTEGER, 3));
                    if (is_immutable_vector(v))
                        return(immutable_object_error(sc, set_elist_3(sc, immutable_error_string, sc->int_vector_set_symbol, v)));
                    int_vector(v, ind) = s7_integer(value);
                    return(value);
                }

// Assembly:
subq $0x68, %rsp
movq %rdi, 0x58(%rsp)
movq %rsi, 0x50(%rsp)
movq 0x50(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x48(%rsp)
movq 0x48(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x16, %eax
je 0x1d595f
movq 0x58(%rsp), %rdi
movq 0x48(%rsp), %rsi
movq 0x58(%rsp), %rax
movq 0xfb0(%rax), %rdx
movq 0x50(%rsp), %rcx
movl $0x16, %r8d
movl $0x1, %r9d
callq 0x13c50
movq %rax, 0x60(%rsp)
jmp 0x1d5b85
movq 0x48(%rsp), %rax
movq 0x18(%rax), %rax
cmpq $0x0, 0x20(%rax)
je 0x1d5987
movq 0x48(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
movq 0x10(%rax), %rax
movq %rax, 0x28(%rsp)
jmp 0x1d5993
movl $0x1, %eax
movq %rax, 0x28(%rsp)
jmp 0x1d5993
movq 0x28(%rsp), %rax
cmpq $0x1, %rax
je 0x1d59c8
movq 0x58(%rsp), %rdi
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rax
movq 0xfb0(%rax), %rdx
movl $0x16, %ecx
callq 0x1cca10
movq %rax, 0x60(%rsp)
jmp 0x1d5b85
movq 0x50(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rdi
callq 0x11340
testb $0x1, %al
jne 0x1d5a1e
movq 0x58(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x58(%rsp), %rax
movq 0xfb0(%rax), %rdx
movq 0x50(%rsp), %rcx
movl $0xb, %r8d
movl $0x2, %r9d
callq 0x13c50
movq %rax, 0x60(%rsp)
jmp 0x1d5b85
movq 0x40(%rsp), %rdi
callq 0x10790
movq %rax, 0x30(%rsp)
cmpq $0x0, 0x30(%rsp)
jl 0x1d5a45
movq 0x30(%rsp), %rax
movq 0x48(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jl 0x1d5ab3
movq 0x58(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x58(%rsp), %rax
movq 0xfb0(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x20(%rsp)
cmpq $0x0, 0x30(%rsp)
jge 0x1d5a84
movq 0x44afb(%rip), %rax     # 0x21a578
movq %rax, 0x8(%rsp)
jmp 0x1d5a90
movq 0x44ae5(%rip), %rax     # 0x21a570
movq %rax, 0x8(%rsp)
movq 0x20(%rsp), %rdx
movq 0x18(%rsp), %rsi
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rcx
callq 0x45240
movq %rax, 0x60(%rsp)
jmp 0x1d5b85
movq 0x50(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rdi
callq 0x11340
testb $0x1, %al
jne 0x1d5b0a
movq 0x58(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x58(%rsp), %rax
movq 0xfb0(%rax), %rdx
movq 0x50(%rsp), %rcx
movl $0xb, %r8d
movl $0x3, %r9d
callq 0x13c50
movq %rax, 0x60(%rsp)
jmp 0x1d5b85
movq 0x48(%rsp), %rax
movq (%rax), %rax
andq $0x1000000, %rax        # imm = 0x1000000
cmpq $0x0, %rax
je 0x1d5b5c
movq 0x58(%rsp), %rax
movq %rax, (%rsp)
movq 0x58(%rsp), %rdi
movq 0x44965(%rip), %rsi     # 0x21a498
movq 0x58(%rsp), %rax
movq 0xfb0(%rax), %rdx
movq 0x48(%rsp), %rcx
callq 0xf240
movq (%rsp), %rdi
movq %rax, %rsi
callq 0xb800
movq %rax, 0x60(%rsp)
jmp 0x1d5b85
movq 0x38(%rsp), %rdi
callq 0x10790
movq %rax, %rdx
movq 0x48(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x30(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x38(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x60(%rsp), %rax
addq $0x68, %rsp
retq
nop