// File: /workspace/github_c_makefile_star2_O2/BernardTatin[P]s7sh/s7.c
// Function: opt_float_vector_set
static bool opt_float_vector_set(s7_scheme *sc, opt_info *opc, s7_pointer v, s7_pointer indexp1, s7_pointer indexp2, s7_pointer valp)
                {
                    s7_pointer settee;
                    /* fprintf(stderr, "%s: %s %s %s %s\n", __func__, DISPLAY(v), DISPLAY(indexp1), (indexp2) ? DISPLAY(indexp1) : "null", DISPLAY(valp)); */
                    settee = symbol_to_slot(sc, v);
                    if ((is_slot(settee)) &&
                            (!is_immutable(slot_value(settee))))
                    {
                        s7_pointer slot;
                        int32_t start;
                        opc->v[1].p = settee;
                        start = sc->pc;
                        if (is_float_vector(slot_value(settee)))
                        {
                            if ((!indexp2) &&
                                    (vector_rank(slot_value(settee)) == 1))
                            {
                                opc->v[4].d_7pid_f = float_vector_set_d_7pid;
                                slot = opt_integer_symbol(sc, car(indexp1));
                                if (slot)
                                {
                                    opc->v[2].p = slot;
                                    if ((is_step_end(opc->v[2].p)) &&
                                            (denominator(slot_value(opc->v[2].p)) <= vector_length(slot_value(settee))))
                                        opc->v[4].d_7pid_f = float_vector_set_unchecked;
                                    slot = opt_float_symbol(sc, car(valp));
                                    if (slot)
                                    {
                                        opc->v[3].p = slot;
                                        opc->v[0].fd = opt_d_7pid_sss;
                                        return(oo_set_type_3(opc, 5, 1, 2, 3, OO_FV, OO_I, OO_D));
                                    }
                                    if (is_real(car(valp)))
                                    {
                                        opc->v[3].x = s7_real(car(valp));
                                        opc->v[0].fd = opt_d_7pid_ssc;
                                        return(oo_set_type_2(opc, 5, 1, 2, OO_FV, OO_I));
                                    }
                                    if (float_optimize(sc, valp))
                                    {
                                        if (d_7pid_ssf_combinable(sc, opc))
                                            return(true);
                                        opc->v[0].fd = opt_d_7pid_ssf;
                                        return(oo_set_type_2(opc, 5, 1, 2, OO_FV, OO_I));
                                    }
                                    pc_fallback(sc, start);
                                }
                                if ((int_optimize(sc, indexp1)) &&
                                        (float_optimize(sc, valp)))
                                {
                                    opc->v[0].fd = opt_d_7pid_sff;
                                    return(oo_set_type_1(opc, 5, 1, OO_FV));
                                }
                                return(return_false(sc, NULL, __func__, __LINE__));
                            }

                            if ((indexp2) &&
                                    (vector_rank(slot_value(settee)) == 2))
                            {
                                opc->v[5].d_7piid_f = float_vector_set_d_7piid;
                                slot = opt_integer_symbol(sc, car(indexp2));
                                if (slot)
                                {
                                    opc->v[3].p = slot;
                                    if (is_t_integer(car(indexp1)))
                                    {
                                        if (float_optimize(sc, valp))
                                        {
                                            opc->v[0].fd = opt_d_7piid_scsf;
                                            opc->v[2].i = integer(car(indexp1));
                                            opc->v[10].o1 = sc->opts[start];      /* can't use v[6 + 7] here -- d_to_p (for example) use v[7].fd for original v[0].fd */
                                            opc->v[11].fd = sc->opts[start]->v[0].fd;
                                            return(oo_set_type_2(opc, 12, 1, 3, OO_FV, OO_I));
                                        }
                                        return(return_false(sc, NULL, __func__, __LINE__));
                                    }
                                    slot = opt_integer_symbol(sc, car(indexp1));
                                    if (slot)
                                    {
                                        opc->v[2].p = slot;
                                        if (is_real(car(valp)))
                                        {
                                            opc->v[0].fd = opt_d_7piid_sssc;
                                            opc->v[4].x = s7_real(car(valp));
                                            return(oo_set_type_3(opc, 6, 1, 2, 3, OO_FV, OO_I, OO_I));
                                        }
                                        if (float_optimize(sc, valp))
                                        {
                                            opc->v[0].fd = opt_d_7piid_sssf;
                                            return(oo_set_type_3(opc, 6, 1, 2, 3, OO_FV, OO_I, OO_I));
                                        }
                                        pc_fallback(sc, start);
                                    }
                                    if ((int_optimize(sc, indexp1)) &&
                                            (int_optimize(sc, indexp2)) &&
                                            (float_optimize(sc, valp)))
                                    {
                                        opc->v[0].fd = opt_d_7piid_sfff;
                                        return(oo_set_type_1(opc, 6, 1, OO_FV));
                                    }}}}
                    }
                    return(return_false(sc, NULL, __func__, __LINE__));
                }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %r15
movq %r8, %r13
movq %rcx, %r12
movq %rsi, %rbx
movq %rdi, %r14
movq %rdx, %rsi
callq 0xb00b
cmpb $0x20, (%rax)
jne 0x7e6a6
movq %rax, %rbp
movq 0x10(%rax), %rax
testb $0x1, 0x3(%rax)
jne 0x7e6a6
movq %rbp, 0x8(%rbx)
movq 0x10(%rbp), %rax
cmpb $0x17, (%rax)
jne 0x7e6a6
movl 0x2258(%r14), %ecx
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
testq %r13, %r13
je 0x7e470
testq %rax, %rax
je 0x7e6a6
cmpq $0x2, 0x10(%rax)
jne 0x7e6a6
movl %ecx, %ebp
leaq -0x169db(%rip), %rax    # 0x67a1b
movq %rax, 0x28(%rbx)
movq 0x8(%r13), %rsi
movq %r14, %rdi
callq 0x7e6b7
testq %rax, %rax
je 0x7e6a6
movq %rax, 0x18(%rbx)
movq 0x8(%r12), %rsi
cmpb $0xb, (%rsi)
jne 0x7e511
movq %r14, %rdi
movq %r15, %rsi
callq 0x36881
testb %al, %al
je 0x7e6a6
movslq %ebp, %rax
leaq 0x16dd(%rip), %rcx      # 0x7fb1b
movq %rcx, (%rbx)
movq 0x8(%r12), %rcx
movq 0x8(%rcx), %rcx
movq %rcx, 0x10(%rbx)
movq 0x2260(%r14,%rax,8), %rax
movq %rax, 0x50(%rbx)
movq (%rax), %rax
movq %rax, 0x58(%rbx)
movabsq $0x20000000c, %rax      # imm = 0x20000000C
jmp 0x7e58e
testq %rax, %rax
je 0x7e480
cmpq $0x1, 0x10(%rax)
jne 0x7e6a6
movl %ecx, 0x4(%rsp)
leaq -0x16adf(%rip), %rax    # 0x679ac
movq %rax, 0x20(%rbx)
movq 0x8(%r12), %rsi
movq %r14, %rdi
callq 0x7e6b7
testq %rax, %rax
je 0x7e61f
movq %rax, 0x10(%rbx)
testb $0x4, 0x3(%rax)
je 0x7e4cc
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq 0x10(%rbp), %rcx
cmpq 0x8(%rcx), %rax
jg 0x7e4cc
leaq 0x212(%rip), %rax       # 0x7e6da
movq %rax, 0x20(%rbx)
movq 0x8(%r15), %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0x7e6e4
testq %rax, %rax
je 0x7e55b
movq %rax, 0x18(%rbx)
leaq 0x21c(%rip), %rax       # 0x7e707
movq %rax, (%rbx)
movabsq $0x100000005, %rax      # imm = 0x100000005
movq %rax, 0x70(%rbx)
movabsq $0x300000005, %rax      # imm = 0x300000005
movq %rax, 0x60(%rbx)
pushq $0x2
jmp 0x7e606
movq %r14, %rdi
callq 0x7e6b7
testq %rax, %rax
je 0x7e663
movq %rax, 0x10(%rbx)
movq 0x8(%r15), %rax
movzbl (%rax), %eax
leaq 0x9b47c(%rip), %rcx     # 0x1199b0
cmpb $0x1, (%rax,%rcx)
jne 0x7e5cf
leaq 0x1629(%rip), %rax      # 0x7fb6e
movq %rax, (%rbx)
movq 0x8(%r15), %rdi
callq 0xc42a
movsd %xmm0, 0x20(%rbx)
jmp 0x7e5e8
movzbl (%r13), %eax
leaq 0x9b449(%rip), %rcx     # 0x1199b0
cmpb $0x1, (%rax,%rcx)
jne 0x7e5a0
movq %r13, %rdi
callq 0xc42a
movsd %xmm0, 0x18(%rbx)
leaq 0x1b4(%rip), %rax       # 0x7e735
movq %rax, (%rbx)
movabsq $0x200000005, %rax      # imm = 0x200000005
movq %rax, 0x60(%rbx)
movl $0x5, 0x70(%rbx)
pushq $0x1
popq %rax
pushq $0x74
jmp 0x7e609
movq %r14, %rdi
movq %r15, %rsi
callq 0x36881
testb %al, %al
je 0x7e614
movq %r14, %rdi
movq %rbx, %rsi
callq 0x7e75b
movl %eax, %ecx
movb $0x1, %al
testb %cl, %cl
jne 0x7e6a8
leaq 0x327(%rip), %rax       # 0x7e8f4
jmp 0x7e581
movq %r14, %rdi
movq %r15, %rsi
callq 0x36881
testb %al, %al
je 0x7e65c
leaq 0x15bc(%rip), %rax      # 0x7fba1
movq %rax, (%rbx)
movabsq $0x100000005, %rax      # imm = 0x100000005
movq %rax, 0x70(%rbx)
movabsq $0x300000006, %rax      # imm = 0x300000006
movq %rax, 0x60(%rbx)
pushq $0x1
popq %rax
pushq $0x78
popq %rcx
movl %eax, (%rbx,%rcx)
movb $0x1, %al
jmp 0x7e6a8
movl 0x4(%rsp), %eax
movl %eax, 0x2258(%r14)
movq %r14, %rdi
movq %r12, %rsi
callq 0x7e94f
testb %al, %al
je 0x7e6a6
movq %r14, %rdi
movq %r15, %rsi
callq 0x36881
testb %al, %al
je 0x7e6a6
leaq 0x1468(%rip), %rax      # 0x7faac
movq %rax, (%rbx)
movabsq $0x100000005, %rax      # imm = 0x100000005
movq %rax, 0x60(%rbx)
pushq $0x5
popq %rax
pushq $0x70
jmp 0x7e609
movl %ebp, 0x2258(%r14)
movq %r14, %rdi
movq %r12, %rsi
callq 0x7e94f
testb %al, %al
je 0x7e6a6
movq %r14, %rdi
movq %r13, %rsi
callq 0x7e94f
testb %al, %al
je 0x7e6a6
movq %r14, %rdi
movq %r15, %rsi
callq 0x36881
testb %al, %al
je 0x7e6a6
leaq 0x1573(%rip), %rax      # 0x7fc0a
movq %rax, (%rbx)
movabsq $0x100000006, %rax      # imm = 0x100000006
jmp 0x7e651
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq