// File: /workspace/github_c_makefile_star2_O1/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
movq %rdi, %rbx
movslq 0x2258(%rdi), %rax
cmpq $0x100, %rax            # imm = 0x100
jge 0xb2219
movl %ecx, %ebp
movq %rsi, %r14
leal 0x1(%rax), %ecx
movl %ecx, 0x2258(%rbx)
movq 0x2260(%rbx,%rax,8), %r15
movq $0x0, 0x38(%r15)
cmpl $0x3, %edx
jne 0xb2183
movslq 0x2258(%rbx), %rax
movq 0x2260(%rbx,%rax,8), %r12
movq 0x10(%r14), %rsi
movq %rbx, %rdi
callq 0xb0bfb
testb %al, %al
je 0xb21ae
movq 0x10(%r14), %rax
movq 0x10(%rax), %rsi
movq %rbx, %rdi
callq 0xb0bfb
testb %al, %al
je 0xb21ae
movq (%r12), %rax
movq %rax, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
leaq 0x1f8(%rip), %rcx       # 0xb224d
movq %rcx, %xmm2
leaq 0x1cc(%rip), %rcx       # 0xb222d
movq %rcx, %xmm1
punpcklqdq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0]
leaq 0x216(%rip), %rcx       # 0xb2287
movq %rcx, %xmm3
leaq 0x1ee(%rip), %rcx       # 0xb226b
movq %rcx, %xmm2
punpcklqdq %xmm3, %xmm2    # xmm2 = xmm2[0],xmm3[0]
leaq 0x232(%rip), %rcx       # 0xb22bf
movq %rcx, %xmm3
leaq 0x20a(%rip), %rcx       # 0xb22a3
movq %rcx, %xmm4
punpcklqdq %xmm3, %xmm4    # xmm4 = xmm4[0],xmm3[0]
leaq 0x248(%rip), %rcx       # 0xb22f1
movq %rcx, %xmm3
leaq 0x226(%rip), %rcx       # 0xb22db
movq %rcx, %xmm5
punpcklqdq %xmm3, %xmm5    # xmm5 = xmm5[0],xmm3[0]
leaq 0x249(%rip), %rcx       # 0xb230e
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
testl $0xaaaa, %ecx           # imm = 0xAAAA
sete %cl
testb %al, %cl
jne 0xb21e1
movslq 0x2258(%rbx), %rax
decq %rax
movq %rax, 0x20(%r15)
testl %ebp, %ebp
leaq 0x22f(%rip), %rax       # 0xb2366
leaq 0x1ec(%rip), %rcx       # 0xb232a
cmoveq %rax, %rcx
movq (%r12), %rax
movq %rax, 0x38(%r15)
movq %rcx, (%r15)
movq 0x8(%r12), %rax
movq %rax, 0x8(%r15)
movq 0x10(%r12), %rax
movq %rax, 0x10(%r15)
movq 0x18(%r12), %rax
movq %rax, 0x18(%r15)
movabsq $0x200000008, %rax      # imm = 0x200000008
movq %rax, 0x60(%r15)
movq $0x0, 0x70(%r15)
jmp 0xb220e
decl %edx
movslq %edx, %rax
movq %rax, 0x8(%r15)
movq 0x10(%r14), %r14
cmpb $0x1, (%r14)
jne 0xb21a5
movq %rbx, %rdi
movq %r14, %rsi
callq 0xb0bfb
testb %al, %al
jne 0xb218c
cmpq 0x110(%rbx), %r14
je 0xb21b2
xorl %eax, %eax
jmp 0xb2210
testl %ebp, %ebp
leaq 0x31c(%rip), %rax       # 0xb24d7
leaq 0x299(%rip), %rcx       # 0xb245b
cmoveq %rax, %rcx
movq %rcx, (%r15)
movslq 0x2258(%rbx), %rax
decq %rax
movq %rax, 0x10(%r15)
movq $0x3, 0x60(%r15)
jmp 0xb220e
testl %ebp, %ebp
leaq 0x219(%rip), %rax       # 0xb2403
leaq 0x1b1(%rip), %rcx       # 0xb23a2
cmoveq %rax, %rcx
movq %rcx, (%r15)
movslq 0x2258(%rbx), %rax
decq %rax
movq %rax, 0x8(%r15)
movq $0x2, 0x60(%r15)
movb $0x1, %al
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
addq $0x2190, %rbx           # imm = 0x2190
movq %rbx, %rdi
movl $0x1, %esi
callq 0x9530