// File: /workspace/github_c_makefile_star2_O2/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 %r9, %r13
movq %r8, %r12
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
movq 0x40(%rsp), %r15
movq %rcx, %rsi
callq 0xb00b
cmpb $0x20, (%rax)
jne 0x8029e
movq %r15, (%rsp)
movq 0x10(%rax), %r15
movq (%r15), %rcx
btl $0x18, %ecx
jb 0x8029e
movzbl %cl, %esi
movq %rax, 0x8(%rbx)
cmpq $0x16, %rsi
jne 0x80286
pushq $0x4
jmp 0x8028e
cmpb $0x18, (%r15)
jne 0x8029e
pushq $0xa
popq %rdx
cmpl %ebp, %edx
setne %al
cmpl $0xd, %ebp
setne %cl
testb %al, %cl
je 0x802af
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testq %r13, %r13
je 0x80304
movq 0x18(%r15), %rax
movq 0x20(%rax), %rax
testq %rax, %rax
je 0x8029e
cmpq $0x2, 0x10(%rax)
jne 0x8029e
cmpl $0x16, %esi
leaq -0x182a2(%rip), %rax    # 0x68030
leaq -0x17fbe(%rip), %rcx    # 0x6831b
cmoveq %rax, %rcx
movq %rcx, 0x28(%rbx)
movq %r14, %rdi
movq %rbx, %rsi
movq %r12, %rcx
movq %r13, %r8
movq (%rsp), %r9
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x805e0
movq 0x18(%r15), %rax
movq 0x20(%rax), %rax
testq %rax, %rax
je 0x80318
cmpq $0x1, 0x10(%rax)
jne 0x8029e
movl %edx, %ebp
movq %rsi, %r13
cmpl $0x16, %esi
leaq -0x18362(%rip), %rax    # 0x67fc5
leaq -0x180ef(%rip), %rcx    # 0x6823f
cmoveq %rax, %rcx
movq %rcx, 0x18(%rbx)
movq 0x8(%r12), %rsi
movq %r14, %rdi
callq 0x7e6b7
testq %rax, %rax
je 0x80409
movslq 0x2258(%r14), %r12
movq %rax, 0x10(%rbx)
testb $0x4, 0x3(%rax)
je 0x80385
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
cmpq 0x8(%r15), %rax
jg 0x80385
cmpl $0x16, %r13d
leaq 0x16b(%rip), %rax       # 0x804e1
leaq 0x170(%rip), %rcx       # 0x804ed
cmoveq %rax, %rcx
movq %rcx, 0x18(%rbx)
movq (%rsp), %rsi
cmpb $0x1, (%rsi)
jne 0x803c2
movq 0x10(%rsi), %rax
cmpq 0x110(%r14), %rax
jne 0x803c2
movq 0x8(%rsi), %rax
cmpb $0xb, (%rax)
jne 0x803c2
movq 0x8(%rax), %rax
movq %rax, 0x20(%rbx)
leaq 0x145(%rip), %rax       # 0x804f8
movq %rax, (%rbx)
movabsq $0x200000005, %rax      # imm = 0x200000005
jmp 0x803f9
movq %r14, %rdi
callq 0x7e94f
testb %al, %al
je 0x8029e
leaq 0x145(%rip), %rax       # 0x8051e
movq %rax, (%rbx)
movq 0x2260(%r14,%r12,8), %rax
movq %rax, 0x20(%rbx)
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 0x8044b
movq %r14, %rdi
movq %r12, %rsi
callq 0x7e94f
testb %al, %al
je 0x8029e
movq %r14, %rdi
movq (%rsp), %rsi
callq 0x7e94f
testb %al, %al
je 0x8029e
leaq 0x137(%rip), %rax       # 0x8056e
movq %rax, (%rbx)
movabsq $0x100000004, %rax      # imm = 0x100000004
movq %rax, 0x60(%rbx)
movl %ebp, 0x70(%rbx)
movb $0x1, %al
jmp 0x802a0