// File: /workspace/github_c_makefile_star2_O3/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 0xa17e3
jle 0xa17de
movq 0x10(%rdx), %rdx
movq 0x18(%rdx), %r8
cmpq %r8, %rdi
jl 0xa17d1
cmpq %rdi, %r8
jne 0xa183e
movq (%rcx,%rax), %rdi
cmpb $0x20, (%rdi)
jne 0xa182d
movq 0x10(%rdi), %r12
movq (%r12), %rax
btl $0x18, %eax
jb 0xa182d
movq 0x40(%rsp), %r10
movzbl %al, %r13d
movq %rdi, 0x8(%rbx)
movl $0x4, %ebp
cmpq $0x16, %r13
je 0xa181e
movl $0xa, %ebp
cmpb $0x18, (%r12)
jne 0xa182d
cmpl %esi, %ebp
setne %al
cmpl $0xd, %esi
setne %cl
testb %al, %cl
je 0xa1863
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %eax
cmpb $0x1c, (%rdx)
jne 0xa17e3
movq 0x8(%rdx), %rdi
testq %rdi, %rdi
je 0xa185d
cmpq %rcx, 0x8(%rdi)
je 0xa17e7
movq 0x18(%rdi), %rdi
jmp 0xa184c
movq 0x10(%rdx), %rdx
jmp 0xa1843
testq %r9, %r9
je 0xa18bb
movq 0x18(%r12), %rax
movq 0x20(%rax), %rax
testq %rax, %rax
je 0xa182d
cmpq $0x2, 0x10(%rax)
jne 0xa182d
cmpl $0x16, %r13d
leaq -0x20255(%rip), %rax    # 0x81633
leaq -0x1fe33(%rip), %rcx    # 0x81a5c
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
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xa1b9c
movq 0x18(%r12), %rax
movq 0x20(%rax), %rax
testq %rax, %rax
je 0xa18d4
cmpq $0x1, 0x10(%rax)
jne 0xa182d
movq %r10, (%rsp)
cmpl $0x16, %r13d
leaq -0x20350(%rip), %rax    # 0x81593
leaq -0x1ff97(%rip), %rcx    # 0x81953
cmoveq %rax, %rcx
movq %rcx, 0x18(%rbx)
movq 0x8(%r15), %rsi
movq %r14, %rdi
callq 0x9f8a2
testq %rax, %rax
je 0xa19c5
movslq 0x2258(%r14), %r15
movq %rax, 0x10(%rbx)
testb $0x4, 0x3(%rax)
je 0xa1941
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
cmpq 0x8(%r12), %rax
jg 0xa1941
cmpl $0x16, %r13d
leaq 0x16b(%rip), %rax       # 0xa1a9d
leaq 0x170(%rip), %rcx       # 0xa1aa9
cmoveq %rax, %rcx
movq %rcx, 0x18(%rbx)
movq (%rsp), %rsi
cmpb $0x1, (%rsi)
jne 0xa197e
movq 0x10(%rsi), %rax
cmpq 0x110(%r14), %rax
jne 0xa197e
movq 0x8(%rsi), %rax
cmpb $0xb, (%rax)
jne 0xa197e
movq 0x8(%rax), %rax
movq %rax, 0x20(%rbx)
leaq 0x145(%rip), %rax       # 0xa1ab4
movq %rax, (%rbx)
movabsq $0x200000005, %rax      # imm = 0x200000005
jmp 0xa19b5
movq %r14, %rdi
callq 0x9fbc8
testb %al, %al
je 0xa182d
leaq 0x145(%rip), %rax       # 0xa1ada
movq %rax, (%rbx)
movq 0x2260(%r14,%r15,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 0xa1a07
movq %r14, %rdi
movq %r15, %rsi
callq 0x9fbc8
testb %al, %al
je 0xa182d
movq %r14, %rdi
movq (%rsp), %rsi
callq 0x9fbc8
testb %al, %al
je 0xa182d
leaq 0x137(%rip), %rax       # 0xa1b2a
movq %rax, (%rbx)
movabsq $0x100000004, %rax      # imm = 0x100000004
movq %rax, 0x60(%rbx)
movl %ebp, 0x70(%rbx)
movb $0x1, %al
jmp 0xa182f