// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x88, %rsp
movq 0x90(%rsp), %rax
movq %rdi, 0x78(%rsp)
movl %esi, 0x74(%rsp)
movq %rdx, 0x68(%rsp)
movq %rcx, 0x60(%rsp)
movq %r8, 0x58(%rsp)
movq %r9, 0x50(%rsp)
movq 0x78(%rsp), %rdi
movq 0x60(%rsp), %rsi
callq 0xfc80
movq %rax, 0x48(%rsp)
movq 0x48(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x20, %eax
jne 0xe90a0
movq 0x48(%rsp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
andq $0x1000000, %rax        # imm = 0x1000000
cmpq $0x0, %rax
jne 0xe90a0
movq 0x48(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x16, %eax
sete %al
andb $0x1, %al
movb %al, 0x47(%rsp)
movq 0x48(%rsp), %rcx
movq 0x68(%rsp), %rax
movq %rcx, 0x8(%rax)
testb $0x1, 0x47(%rsp)
jne 0xe8ce5
movq 0x38(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x18, %eax
jne 0xe909e
movb 0x47(%rsp), %dl
movl $0xa, %eax
movl $0x4, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movl %eax, 0x2c(%rsp)
movl 0x2c(%rsp), %eax
cmpl 0x74(%rsp), %eax
je 0xe8d1b
cmpl $0xd, 0x74(%rsp)
je 0xe8d1b
movb $0x0, 0x87(%rsp)
jmp 0xe90a8
cmpq $0x0, 0x50(%rsp)
jne 0xe8fff
movq 0x38(%rsp), %rax
movq 0x18(%rax), %rax
cmpq $0x0, 0x20(%rax)
je 0xe8d4f
movq 0x38(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
movq 0x10(%rax), %rax
movq %rax, 0x20(%rsp)
jmp 0xe8d5b
movl $0x1, %eax
movq %rax, 0x20(%rsp)
jmp 0xe8d5b
movq 0x20(%rsp), %rax
cmpq $0x1, %rax
jne 0xe8fff
movb 0x47(%rsp), %dl
leaq -0x40635(%rip), %rcx    # 0xa8740
leaq -0x40b6c(%rip), %rax    # 0xa8210
testb $0x1, %dl
cmovneq %rax, %rcx
movq 0x68(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0x78(%rsp), %rdi
movq 0x58(%rsp), %rax
movq 0x8(%rax), %rsi
callq 0xe5260
movq %rax, 0x30(%rsp)
cmpq $0x0, 0x30(%rsp)
je 0xe8f83
movq 0x78(%rsp), %rax
movl 0x2258(%rax), %eax
movl %eax, 0x28(%rsp)
movq 0x30(%rsp), %rcx
movq 0x68(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x68(%rsp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
andq $0x4000000, %rax        # imm = 0x4000000
cmpq $0x0, %rax
je 0xe8e23
movq 0x68(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq 0x38(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jg 0xe8e23
movb 0x47(%rsp), %dl
leaq 0x424(%rip), %rcx       # 0xe9230
leaq 0x3dd(%rip), %rax       # 0xe91f0
testb $0x1, %dl
cmovneq %rax, %rcx
movq 0x68(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0x90(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0xe8ed0
movq 0x90(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x78(%rsp), %rcx
cmpq 0x110(%rcx), %rax
jne 0xe8ed0
movq 0x90(%rsp), %rax
movq 0x8(%rax), %rax
movzbl (%rax), %eax
cmpl $0xb, %eax
jne 0xe8ed0
movq 0x90(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rcx
movq 0x68(%rsp), %rax
movq %rcx, 0x20(%rax)
movq 0x68(%rsp), %rax
leaq 0x3e6(%rip), %rcx       # 0xe9270
movq %rcx, (%rax)
movq 0x68(%rsp), %rdi
movl 0x2c(%rsp), %r8d
movl $0x5, %esi
movl $0x1, %r9d
movl $0x2, %ecx
leaq 0x1063be(%rip), %rax    # 0x1ef26c
movl %r9d, %edx
movq %rax, (%rsp)
movl $0xdc47, 0x8(%rsp)      # imm = 0xDC47
callq 0xe54b0
andb $0x1, %al
movb %al, 0x87(%rsp)
jmp 0xe90a8
movq 0x78(%rsp), %rdi
movq 0x90(%rsp), %rsi
callq 0xe59c0
testb $0x1, %al
jne 0xe8eeb
jmp 0xe8f76
movq 0x68(%rsp), %rax
leaq 0x3b9(%rip), %rcx       # 0xe92b0
movq %rcx, (%rax)
movq 0x78(%rsp), %rax
movslq 0x28(%rsp), %rcx
movq 0x2260(%rax,%rcx,8), %rcx
movq 0x68(%rsp), %rax
movq %rcx, 0x20(%rax)
movq 0x78(%rsp), %rax
movslq 0x28(%rsp), %rcx
movq 0x2260(%rax,%rcx,8), %rax
movq (%rax), %rcx
movq 0x68(%rsp), %rax
movq %rcx, 0x28(%rax)
movq 0x68(%rsp), %rdi
movl 0x2c(%rsp), %r8d
movl $0x6, %esi
movl $0x1, %r9d
movl $0x2, %ecx
leaq 0x106318(%rip), %rax    # 0x1ef26c
movl %r9d, %edx
movq %rax, (%rsp)
movl $0xdc4e, 0x8(%rsp)      # imm = 0xDC4E
callq 0xe54b0
andb $0x1, %al
movb %al, 0x87(%rsp)
jmp 0xe90a8
movb $0x0, 0x87(%rsp)
jmp 0xe90a8
movq 0x78(%rsp), %rdi
movq 0x58(%rsp), %rsi
callq 0xe59c0
testb $0x1, %al
jne 0xe8f98
jmp 0xe8ff2
movq 0x78(%rsp), %rdi
movq 0x90(%rsp), %rsi
callq 0xe59c0
testb $0x1, %al
jne 0xe8fb0
jmp 0xe8ff2
movq 0x68(%rsp), %rax
leaq 0x394(%rip), %rcx       # 0xe9350
movq %rcx, (%rax)
movq 0x68(%rsp), %rdi
movl 0x2c(%rsp), %ecx
movl $0x4, %esi
movl $0x1, %edx
leaq 0x106293(%rip), %r8     # 0x1ef26c
movl $0xdc56, %r9d           # imm = 0xDC56
callq 0xe4950
andb $0x1, %al
movb %al, 0x87(%rsp)
jmp 0xe90a8
movb $0x0, 0x87(%rsp)
jmp 0xe90a8
cmpq $0x0, 0x50(%rsp)
je 0xe909c
movq 0x38(%rsp), %rax
movq 0x18(%rax), %rax
cmpq $0x0, 0x20(%rax)
je 0xe9033
movq 0x38(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
movq 0x10(%rax), %rax
movq %rax, 0x18(%rsp)
jmp 0xe903f
movl $0x1, %eax
movq %rax, 0x18(%rsp)
jmp 0xe903f
movq 0x18(%rsp), %rax
cmpq $0x2, %rax
jne 0xe909c
movb 0x47(%rsp), %dl
leaq -0x407a5(%rip), %rcx    # 0xa88b0
leaq -0x40d7c(%rip), %rax    # 0xa82e0
testb $0x1, %dl
cmovneq %rax, %rcx
movq 0x68(%rsp), %rax
movq %rcx, 0x28(%rax)
movq 0x78(%rsp), %rdi
movq 0x68(%rsp), %rsi
movl 0x2c(%rsp), %edx
movq 0x58(%rsp), %rcx
movq 0x50(%rsp), %r8
movq 0x90(%rsp), %r9
callq 0xe9430
andb $0x1, %al
movb %al, 0x87(%rsp)
jmp 0xe90a8
jmp 0xe909e
jmp 0xe90a0
movb $0x0, 0x87(%rsp)
movb 0x87(%rsp), %al
andb $0x1, %al
addq $0x88, %rsp
retq
nopl (%rax)