// File: /workspace/github_c_makefile_star2_O1/BernardTatin[P]s7sh/s7.c
// Function: opt_int_vector_set
static bool opt_int_vector_set(s7_scheme *sc, opt_type_t v_type, opt_info *opc, s7_pointer v, s7_pointer indexp1, s7_pointer indexp2, s7_pointer valp)
                {
                    s7_pointer settee;
                    settee = symbol_to_slot(sc, v);
                    if ((is_slot(settee)) &&
                            (!is_immutable(slot_value(settee))))
                    {
                        bool int_case;
                        s7_pointer vect, slot;
                        vect = slot_value(settee);
                        int_case = (is_int_vector(vect));
                        opc->v[1].p = settee;
                        if ((int_case) || (is_byte_vector(vect)))
                        {
                            opt_type_t otype;
                            otype = (((int_case) ? OO_IV : OO_BV));
                            if ((otype != v_type) && (v_type != OO_AV))  /* (int-vector-set! byte-vect ...) */
                                return(return_false(sc, indexp1, __func__, __LINE__));
                            if ((!indexp2) &&
                                    (vector_rank(vect) == 1))
                            {
                                opc->v[3].i_7pii_f = (int_case) ? int_vector_set_i_7pii : byte_vector_set_i_7pii;
                                slot = opt_integer_symbol(sc, car(indexp1));
                                if (slot)
                                {
                                    int32_t start;
                                    start = sc->pc;
                                    opc->v[2].p = slot;
                                    if ((is_step_end(opc->v[2].p)) &&
                                            (denominator(slot_value(opc->v[2].p)) <= vector_length(vect)))
                                        opc->v[3].i_7pii_f = (int_case) ? int_vector_set_unchecked : byte_vector_set_unchecked;
                                    if ((is_pair(valp)) &&
                                            (is_null(cdr(valp))) &&
                                            (is_t_integer(car(valp))))
                                    {
                                        opc->v[4].i = integer(car(valp));
                                        opc->v[0].fi = opt_i_7pii_ssc;
                                        return(oo_set_type_2(opc, 5, 1, 2, otype, OO_I));
                                    }
                                    if (int_optimize(sc, valp))
                                    {
                                        opc->v[0].fi = opt_i_7pii_ssf;
                                        opc->v[4].o1 = sc->opts[start];
                                        opc->v[5].fi = sc->opts[start]->v[0].fi;
                                        return(oo_set_type_2(opc, 6, 1, 2, otype, OO_I));
                                    }
                                    return(return_false(sc, NULL, __func__, __LINE__));
                                }
                                if ((int_optimize(sc, indexp1)) &&
                                        (int_optimize(sc, valp)))
                                {
                                    opc->v[0].fi = opt_i_7pii_sff;
                                    return(oo_set_type_1(opc, 4, 1, otype));
                                }
                                return(return_false(sc, NULL, __func__, __LINE__));
                            }

                            if ((indexp2) &&
                                    (vector_rank(vect) == 2))
                            {
                                opc->v[5].i_7piii_f = (int_case) ? int_vector_set_i_7piii : byte_vector_set_i_7piii;
                                return(opt_i_7piii_args(sc, opc, otype, indexp1, indexp2, valp));
                            }
                        }
                    }
                    return(return_false(sc, v, __func__, __LINE__));
                }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r15
movq %rdx, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %rdx
movq 0x18(%rdx), %r8
movq 0x20(%rcx), %rdi
movl $0x18, %eax
cmpq %rdi, %r8
je 0xa8364
jle 0xa8328
movq 0x10(%rdx), %rdx
movq 0x18(%rdx), %r8
cmpq %r8, %rdi
jl 0xa831b
cmpq %rdi, %r8
je 0xa8364
movl $0x10, %eax
cmpb $0x1c, (%rdx)
jne 0xa8364
movq 0x8(%rdx), %rdi
testq %rdi, %rdi
sete %r10b
je 0xa8350
cmpq %rcx, 0x8(%rdi)
je 0xa8353
movq 0x18(%rdi), %rdi
jmp 0xa833b
movq %r8, %rdi
testb %r10b, %r10b
je 0xa8368
movq 0x10(%rdx), %rdx
cmpb $0x1c, (%rdx)
movq %rdi, %r8
je 0xa8337
movq (%rcx,%rax), %rdi
cmpb $0x20, (%rdi)
jne 0xa857b
movq 0x10(%rdi), %r12
testb $0x1, 0x3(%r12)
jne 0xa857b
movb (%r12), %r13b
movq %rdi, 0x8(%rbx)
movl $0x4, %ebp
cmpb $0x16, %r13b
je 0xa83a4
movl $0xa, %ebp
cmpb $0x18, (%r12)
jne 0xa84da
cmpl %esi, %ebp
setne %al
cmpl $0xd, %esi
setne %cl
testb %al, %cl
je 0xa83bc
xorl %ecx, %ecx
xorl %eax, %eax
jmp 0xa8577
movq 0x40(%rsp), %r10
testq %r9, %r9
je 0xa841a
movq 0x18(%r12), %rax
movq 0x20(%rax), %rax
movb $0x1, %cl
testq %rax, %rax
je 0xa84dc
cmpq $0x2, 0x10(%rax)
jne 0xa8577
cmpb $0x16, %r13b
leaq -0x208fa(%rip), %rax    # 0x87af6
leaq -0x204d8(%rip), %rcx    # 0x87f1f
cmoveq %rax, %rcx
movq %rcx, 0x28(%rbx)
movq %r14, %rdi
movq %rbx, %rsi
movl %ebp, %edx
movq %r15, %rcx
movq %r9, %r8
movq %r10, %r9
callq 0xa871c
jmp 0xa8575
movq 0x18(%r12), %rax
movq 0x20(%rax), %rax
testq %rax, %rax
je 0xa8433
cmpq $0x1, 0x10(%rax)
jne 0xa84da
cmpb $0x16, %r13b
leaq -0x209e8(%rip), %rax    # 0x87a56
leaq -0x2062f(%rip), %rcx    # 0x87e16
cmoveq %rax, %rcx
movq %rcx, 0x18(%rbx)
movq 0x8(%r15), %rsi
movq %r14, %rdi
callq 0xa639f
testq %rax, %rax
je 0xa8530
movslq 0x2258(%r14), %r15
movq %rax, 0x10(%rbx)
testb $0x4, 0x3(%rax)
je 0xa849c
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
cmpq 0x8(%r12), %rax
jg 0xa849c
cmpb $0x16, %r13b
leaq 0x190(%rip), %rax       # 0xa861d
leaq 0x195(%rip), %rcx       # 0xa8629
cmoveq %rax, %rcx
movq %rcx, 0x18(%rbx)
movq 0x40(%rsp), %rsi
cmpb $0x1, (%rsi)
jne 0xa84e1
movq 0x10(%rsi), %rax
cmpq 0x110(%r14), %rax
jne 0xa84e1
movq 0x8(%rsi), %rax
cmpb $0xb, (%rax)
jne 0xa84e1
movq 0x8(%rax), %rax
movq %rax, 0x20(%rbx)
leaq 0x169(%rip), %rax       # 0xa8634
movq %rax, (%rbx)
movabsq $0x200000005, %rax      # imm = 0x200000005
jmp 0xa8520
movb $0x1, %cl
jmp 0xa8577
movq %r14, %rdi
callq 0xa66f0
testb %al, %al
je 0xa83b3
leaq 0x162(%rip), %rax       # 0xa865a
movq %rax, (%rbx)
movq 0x2260(%r14,%r15,8), %rax
movq %rax, 0x20(%rbx)
movq 0x2260(%r14,%r15,8), %rax
movq (%rax), %rax
movq %rax, 0x28(%rbx)
movabsq $0x200000006, %rax      # imm = 0x200000006
movq %rax, 0x60(%rbx)
movl %ebp, 0x70(%rbx)
movl $0x1, 0x74(%rbx)
jmp 0xa8573
movq %r14, %rdi
movq %r15, %rsi
callq 0xa66f0
testb %al, %al
je 0xa83b3
movq %r14, %rdi
movq 0x40(%rsp), %rsi
callq 0xa66f0
testb %al, %al
je 0xa83b3
leaq 0x14b(%rip), %rax       # 0xa86aa
movq %rax, (%rbx)
movabsq $0x100000004, %rax      # imm = 0x100000004
movq %rax, 0x60(%rbx)
movl %ebp, 0x70(%rbx)
movb $0x1, %al
xorl %ecx, %ecx
testb %cl, %cl
je 0xa857d
xorl %eax, %eax
andb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq