// File: /workspace/github_c_makefile_star2_O1/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
subq $0x18, %rsp
movq %r9, %r15
movq %r8, %r13
movq %rcx, %r12
movq %rsi, %r8
movq %rdi, %r14
movq 0x8(%rdi), %rcx
movq 0x18(%rcx), %rdi
movq 0x20(%rdx), %rsi
movl $0x18, %eax
cmpq %rsi, %rdi
je 0xa5fde
jle 0xa5fa2
movq 0x10(%rcx), %rcx
movq 0x18(%rcx), %rdi
cmpq %rdi, %rsi
jl 0xa5f95
cmpq %rsi, %rdi
je 0xa5fde
movl $0x10, %eax
cmpb $0x1c, (%rcx)
jne 0xa5fde
movq 0x8(%rcx), %rbx
testq %rbx, %rbx
sete %dil
je 0xa5fca
cmpq %rdx, 0x8(%rbx)
je 0xa5fcd
movq 0x18(%rbx), %rbx
jmp 0xa5fb5
movq %rsi, %rbx
testb %dil, %dil
je 0xa5fe2
movq 0x10(%rcx), %rcx
cmpb $0x1c, (%rcx)
movq %rbx, %rsi
je 0xa5fb1
movq (%rdx,%rax), %rbx
cmpb $0x20, (%rbx)
jne 0xa638c
movq 0x10(%rbx), %rax
testb $0x1, 0x3(%rax)
jne 0xa638c
movq %rbx, 0x8(%r8)
movq 0x10(%rbx), %rax
movb $0x1, %bpl
cmpb $0x17, (%rax)
jne 0xa6387
movl 0x2258(%r14), %ecx
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
testq %r13, %r13
je 0xa60d5
testq %rax, %rax
je 0xa6387
cmpq $0x2, 0x10(%rax)
jne 0xa6387
movl %ecx, 0x14(%rsp)
leaq -0x1ed64(%rip), %rax    # 0x872e0
movq %rax, 0x28(%r8)
movq 0x8(%r13), %rsi
movq %r14, %rdi
movq %r8, %rbx
callq 0xa639f
testq %rax, %rax
je 0xa6387
movq %rbx, 0x8(%rsp)
movq %rax, 0x18(%rbx)
movq 0x8(%r12), %rsi
cmpb $0xb, (%rsi)
jne 0xa6184
movq %r14, %rdi
movq %r15, %rsi
callq 0x47b96
testb %al, %al
je 0xa62df
movslq 0x14(%rsp), %rax
leaq 0xe98(%rip), %rcx       # 0xa6f2e
movq 0x8(%rsp), %rbx
movq %rcx, (%rbx)
movq 0x8(%r12), %rcx
movq 0x8(%rcx), %rcx
movq %rcx, 0x10(%rbx)
movq 0x2260(%r14,%rax,8), %rcx
movq %rcx, 0x50(%rbx)
movq 0x2260(%r14,%rax,8), %rax
movq (%rax), %rax
movq %rax, 0x58(%rbx)
movabsq $0x20000000c, %rax      # imm = 0x20000000C
jmp 0xa6276
testq %rax, %rax
je 0xa60e5
cmpq $0x1, 0x10(%rax)
jne 0xa6387
movl %ecx, %ebp
leaq -0x1eeb6(%rip), %rax    # 0x87238
movq %rax, 0x20(%r8)
movq 0x8(%r12), %rsi
movq %r14, %rdi
movq %r8, %r13
callq 0xa639f
testq %rax, %rax
je 0xa629a
movq %rax, 0x10(%r13)
testb $0x4, 0x3(%rax)
movq %r13, %rdx
je 0xa6135
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movq 0x10(%rbx), %rcx
cmpq 0x8(%rcx), %rax
jg 0xa6135
leaq 0x2e9(%rip), %rax       # 0xa641a
movq %rax, 0x20(%rdx)
movq %rdx, %rbx
movq 0x8(%r15), %r13
movq %r14, %rdi
movq %r13, %rsi
callq 0xa6424
testq %rax, %rax
je 0xa61d3
movq %rax, 0x18(%rbx)
leaq 0x344(%rip), %rax       # 0xa649f
movq %rax, (%rbx)
movabsq $0x300000005, %rax      # imm = 0x300000005
movq %rax, 0x60(%rbx)
movabsq $0x100000005, %rax      # imm = 0x100000005
movq %rax, 0x70(%rbx)
movl $0x2, %eax
jmp 0xa6321
movq %r14, %rdi
callq 0xa639f
testq %rax, %rax
je 0xa633a
movq 0x8(%rsp), %rbx
movq %rax, 0x10(%rbx)
movq 0x8(%r15), %rax
movzbl (%rax), %eax
leaq 0xac804(%rip), %rcx     # 0x1529b0
cmpb $0x1, (%rax,%rcx)
jne 0xa6220
leaq 0xdc8(%rip), %rax       # 0xa6f81
movq %rax, (%rbx)
movq 0x8(%r15), %rsi
cmpb $0xd, (%rsi)
jne 0xa62e3
movsd 0x8(%rsi), %xmm0
jmp 0xa62fb
movzbl (%r13), %eax
leaq 0xac7d1(%rip), %rcx     # 0x1529b0
cmpb $0x1, (%rax,%rcx)
jne 0xa61f1
cmpb $0xd, %al
jne 0xa6247
movsd 0x8(%r13), %xmm0
jmp 0xa625d
movq %r14, %rdi
movq %r15, %rsi
callq 0x47b96
testb %al, %al
je 0xa6290
movq %r14, %rdi
movq %rbx, %rsi
callq 0xa64f3
testb %al, %al
jne 0xa6329
leaq 0x477(%rip), %rax       # 0xa6695
jmp 0xa6269
movq %r14, %rdi
movq %r15, %rsi
callq 0x47b96
testb %al, %al
je 0xa632f
leaq 0xd7a(%rip), %rax       # 0xa6fb4
movq 0x8(%rsp), %rbx
movq %rax, (%rbx)
jmp 0xa6300
movq 0xac7e2(%rip), %rdi     # 0x152a30
leaq 0x6cd13(%rip), %rdx     # 0x112f68
movq %r13, %rsi
callq 0xe212
movsd %xmm0, 0x18(%rbx)
leaq 0x264(%rip), %rax       # 0xa64cd
movq %rax, (%rbx)
movabsq $0x200000005, %rax      # imm = 0x200000005
movq %rax, 0x60(%rbx)
movl $0x5, 0x70(%rbx)
movl $0x1, %eax
movl $0x74, %ecx
jmp 0xa6326
movl %ebp, 0x2258(%r14)
movq %rbx, %r13
movq %r13, %rbx
movq %r14, %rdi
movq %r12, %rsi
callq 0xa66f0
testb %al, %al
je 0xa62df
movq %r14, %rdi
movq %r15, %rsi
callq 0x47b96
testb %al, %al
je 0xa62df
leaq 0xbfd(%rip), %rax       # 0xa6ebf
movq %rax, (%rbx)
movabsq $0x100000005, %rax      # imm = 0x100000005
movq %rax, 0x60(%rbx)
movl $0x5, %eax
movl $0x70, %ecx
jmp 0xa6326
xorl %eax, %eax
jmp 0xa632b
movq 0xac746(%rip), %rdi     # 0x152a30
leaq 0x6cc77(%rip), %rdx     # 0x112f68
callq 0xe212
movq 0x8(%rsp), %rbx
movsd %xmm0, 0x20(%rbx)
movabsq $0x300000006, %rax      # imm = 0x300000006
movq %rax, 0x60(%rbx)
movabsq $0x100000005, %rax      # imm = 0x100000005
movq %rax, 0x70(%rbx)
movl $0x1, %eax
movl $0x78, %ecx
movl %eax, (%rbx,%rcx)
movb $0x1, %al
xorl %ebp, %ebp
jmp 0xa6387
movl 0x14(%rsp), %eax
movl %eax, 0x2258(%r14)
movq %r14, %rdi
movq %r12, %rsi
callq 0xa66f0
testb %al, %al
je 0xa6387
movq %r14, %rdi
movq %r13, %rsi
callq 0xa66f0
testb %al, %al
je 0xa6387
movq %r14, %rdi
movq %r15, %rsi
callq 0x47b96
movl %eax, %ecx
testb %cl, %cl
movq 0x8(%rsp), %rbx
je 0xa6387
leaq 0xca8(%rip), %rax       # 0xa701d
movq %rax, (%rbx)
movabsq $0x100000006, %rax      # imm = 0x100000006
jmp 0xa62cf
testb %bpl, %bpl
je 0xa638e
xorl %eax, %eax
andb $0x1, %al
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq