// File: /workspace/github_c_makefile_star2_O2/BernardTatin[P]s7sh/s7.c
// Function: opt_b_or_and
static bool opt_b_or_and(s7_scheme *sc, s7_pointer car_x, int32_t len, int32_t is_and)
                {
                    opt_info *opc;
                    s7_pointer p;

                    opc = alloc_opo(sc, car_x);
                    if (len == 3)
                    {
                        opt_info *o1;
                        o1 = sc->opts[sc->pc];
                        if ((bool_optimize_nw(sc, cdr(car_x))) &&
                                (bool_optimize_nw(sc, cddr(car_x))))
                        {
                            if ((o1->v[0].fb == opt_b_dd_ss) ||
                                    (o1->v[0].fb == opt_b_ii_ss) ||
                                    (o1->v[0].fb == opt_b_ii_ss_lt) || (o1->v[0].fb == opt_b_ii_ss_gt) || (o1->v[0].fb == opt_b_ii_ss_leq) || (o1->v[0].fb == opt_b_ii_ss_geq) ||
                                    (o1->v[0].fb == opt_b_pp_ss) ||
                                    (o1->v[0].fb == opt_b_7pp_ss) ||
                                    (o1->v[0].fb == opt_lt_b_7pp_ss))
                            {
                                opc->v[4].i = sc->pc - 1;
                                opc->v[7].fb = o1->v[0].fb;
                                opc->v[0].fb = (is_and) ? opt_and_bb1 : opt_or_bb1;
                                opc->v[1].p = o1->v[1].p;
                                opc->v[2].p = o1->v[2].p;
#if OPT_INFO_DEBUGGING
                                if (o1->v[0].fb == opt_b_dd_ss) opc->v[3].b_dd_f = o1->v[3].b_dd_f; else
                                    if (o1->v[0].fb == opt_b_pp_ss) opc->v[3].b_pp_f = o1->v[3].b_pp_f; else
                                        if ((o1->v[0].fb == opt_b_7pp_ss) || (o1->v[0].fb == opt_lt_b_7pp_ss)) opc->v[3].b_7pp_f = o1->v[3].b_7pp_f; else
                                            opc->v[3].b_ii_f = o1->v[3].b_ii_f;
#else
                                opc->v[3].p = o1->v[3].p; /* this works only in the union vunion case (it's actually supposed to be b_dd_f etc) */
#endif
                                return(oo_set_type_2(opc, 8, 1, 2, OO_P, OO_P));
                            }
                            opc->v[0].fb = (is_and) ? opt_and_bb : opt_or_bb;
                            opc->v[1].i = sc->pc - 1;
                            return(oo_set_type_0(opc, 2));
                        }
                        return(return_false(sc, car_x, __func__, __LINE__));
                    }
                    opc->v[1].i = (len - 1);
                    for (p = cdr(car_x); is_pair(p); p = cdr(p))
                        if (!bool_optimize_nw(sc, p))
                            break;
                    if (is_null(p))
                    {
                        opc->v[0].fb = (is_and) ? opt_and_any_b : opt_or_any_b;
                        opc->v[2].i = sc->pc - 1;
                        return(oo_set_type_0(opc, 3));
                    }
                    return(return_false(sc, car_x, __func__, __LINE__));
                }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %ecx, %ebp
movl %edx, %r12d
movq %rsi, %r15
movq %rdi, %r14
callq 0x7df55
movq %rax, %rbx
cmpl $0x3, %r12d
jne 0x882ad
movslq 0x2258(%r14), %rax
movq 0x2260(%r14,%rax,8), %r12
movq 0x10(%r15), %rsi
movq %r14, %rdi
callq 0x87382
testb %al, %al
je 0x882d9
movq 0x10(%r15), %rax
movq 0x10(%rax), %rsi
movq %r14, %rdi
callq 0x87382
testb %al, %al
je 0x882d9
movq (%r12), %rax
movq %rax, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
leaq 0x1e1(%rip), %rcx       # 0x88364
movq %rcx, %xmm2
leaq 0x1b5(%rip), %rcx       # 0x88344
movq %rcx, %xmm1
punpcklqdq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0]
leaq 0x1ff(%rip), %rcx       # 0x8839e
movq %rcx, %xmm3
leaq 0x1d7(%rip), %rcx       # 0x88382
movq %rcx, %xmm2
punpcklqdq %xmm3, %xmm2    # xmm2 = xmm2[0],xmm3[0]
leaq 0x21b(%rip), %rcx       # 0x883d6
movq %rcx, %xmm3
leaq 0x1f3(%rip), %rcx       # 0x883ba
movq %rcx, %xmm4
punpcklqdq %xmm3, %xmm4    # xmm4 = xmm4[0],xmm3[0]
leaq 0x231(%rip), %rcx       # 0x88408
movq %rcx, %xmm3
leaq 0x20f(%rip), %rcx       # 0x883f2
movq %rcx, %xmm5
punpcklqdq %xmm3, %xmm5    # xmm5 = xmm5[0],xmm3[0]
leaq 0x232(%rip), %rcx       # 0x88425
cmpq %rcx, %rax
setne %al
pcmpeqd %xmm0, %xmm5
pshufd $0xb1, %xmm5, %xmm3     # xmm3 = xmm5[1,0,3,2]
pand %xmm5, %xmm3
pcmpeqd %xmm0, %xmm4
pshufd $0xb1, %xmm4, %xmm5     # xmm5 = xmm4[1,0,3,2]
pand %xmm4, %xmm5
packssdw %xmm3, %xmm5
pcmpeqd %xmm0, %xmm2
pshufd $0xb1, %xmm2, %xmm3     # xmm3 = xmm2[1,0,3,2]
pand %xmm2, %xmm3
pcmpeqd %xmm0, %xmm1
pshufd $0xb1, %xmm1, %xmm0     # xmm0 = xmm1[1,0,3,2]
pand %xmm1, %xmm0
packssdw %xmm3, %xmm0
packssdw %xmm5, %xmm0
pmovmskb %xmm0, %ecx
testw $0xaaaa, %cx            # imm = 0xAAAA
sete %cl
testb %al, %cl
jne 0x8830c
movslq 0x2258(%r14), %rax
decq %rax
movq %rax, 0x20(%rbx)
movq (%r12), %rax
movq %rax, 0x38(%rbx)
testl %ebp, %ebp
leaq 0x211(%rip), %rax       # 0x8847d
leaq 0x1ce(%rip), %rcx       # 0x88441
cmoveq %rax, %rcx
movq %rcx, (%rbx)
movq 0x8(%r12), %rax
movq %rax, 0x8(%rbx)
movq 0x10(%r12), %rax
movq %rax, 0x10(%rbx)
movq 0x18(%r12), %rax
movq %rax, 0x18(%rbx)
movabsq $0x200000008, %rax      # imm = 0x200000008
movq %rax, 0x60(%rbx)
andq $0x0, 0x70(%rbx)
jmp 0x88339
decl %r12d
movslq %r12d, %rax
movq %rax, 0x8(%rbx)
movq 0x10(%r15), %r15
cmpb $0x1, (%r15)
jne 0x882d0
movq %r14, %rdi
movq %r15, %rsi
callq 0x87382
testb %al, %al
jne 0x882b7
cmpq 0x110(%r14), %r15
je 0x882dd
xorl %eax, %eax
jmp 0x8833b
testl %ebp, %ebp
leaq 0x2e0(%rip), %rax       # 0x885c6
leaq 0x285(%rip), %rcx       # 0x88572
cmoveq %rax, %rcx
movq %rcx, (%rbx)
movslq 0x2258(%r14), %rax
decq %rax
movq %rax, 0x10(%rbx)
movq $0x3, 0x60(%rbx)
jmp 0x88339
testl %ebp, %ebp
leaq 0x205(%rip), %rax       # 0x8851a
leaq 0x19d(%rip), %rcx       # 0x884b9
cmoveq %rax, %rcx
movq %rcx, (%rbx)
movslq 0x2258(%r14), %rax
decq %rax
movq %rax, 0x8(%rbx)
movq $0x2, 0x60(%rbx)
movb $0x1, %al
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq