// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x48, %rsp
movq %rdi, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
movl %edx, 0x2c(%rsp)
movl %ecx, 0x28(%rsp)
movq 0x38(%rsp), %rdi
callq 0xe15e0
movq %rax, 0x20(%rsp)
cmpl $0x3, 0x2c(%rsp)
jne 0xfa3b5
movq 0x38(%rsp), %rax
movq 0x38(%rsp), %rcx
movslq 0x2258(%rcx), %rcx
movq 0x2260(%rax,%rcx,8), %rax
movq %rax, 0x10(%rsp)
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rsi
callq 0xf8720
testb $0x1, %al
jne 0xfa1ca
jmp 0xfa3ab
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rsi
callq 0xf8720
testb $0x1, %al
jne 0xfa1ea
jmp 0xfa3ab
movq 0x10(%rsp), %rax
leaq 0x29a(%rip), %rcx       # 0xfa490
cmpq %rcx, (%rax)
je 0xfa28b
movq 0x10(%rsp), %rax
leaq 0x2c5(%rip), %rcx       # 0xfa4d0
cmpq %rcx, (%rax)
je 0xfa28b
movq 0x10(%rsp), %rax
leaq 0x2f4(%rip), %rcx       # 0xfa510
cmpq %rcx, (%rax)
je 0xfa28b
movq 0x10(%rsp), %rax
leaq 0x313(%rip), %rcx       # 0xfa540
cmpq %rcx, (%rax)
je 0xfa28b
movq 0x10(%rsp), %rax
leaq 0x332(%rip), %rcx       # 0xfa570
cmpq %rcx, (%rax)
je 0xfa28b
movq 0x10(%rsp), %rax
leaq 0x351(%rip), %rcx       # 0xfa5a0
cmpq %rcx, (%rax)
je 0xfa28b
movq 0x10(%rsp), %rax
leaq 0x370(%rip), %rcx       # 0xfa5d0
cmpq %rcx, (%rax)
je 0xfa28b
movq 0x10(%rsp), %rax
leaq 0x38f(%rip), %rcx       # 0xfa600
cmpq %rcx, (%rax)
je 0xfa28b
movq 0x10(%rsp), %rax
leaq 0x3be(%rip), %rcx       # 0xfa640
cmpq %rcx, (%rax)
jne 0xfa34a
movq 0x38(%rsp), %rax
movl 0x2258(%rax), %eax
subl $0x1, %eax
movslq %eax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x20(%rax)
movq 0x10(%rsp), %rax
movq (%rax), %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x38(%rax)
movl 0x28(%rsp), %edx
leaq 0x44f(%rip), %rcx       # 0xfa710
leaq 0x3a8(%rip), %rax       # 0xfa670
cmpl $0x0, %edx
cmovneq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, (%rax)
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0x20(%rsp), %rdi
movl $0x8, %esi
movl $0x1, %edx
movl $0x2, %ecx
xorl %r9d, %r9d
leaq 0xf501a(%rip), %rax     # 0x1ef345
movl %r9d, %r8d
movq %rax, (%rsp)
movl $0xeb7e, 0x8(%rsp)      # imm = 0xEB7E
callq 0xe54b0
andb $0x1, %al
movb %al, 0x47(%rsp)
jmp 0xfa480
movl 0x28(%rsp), %edx
leaq 0x51b(%rip), %rcx       # 0xfa870
leaq 0x454(%rip), %rax       # 0xfa7b0
cmpl $0x0, %edx
cmovneq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, (%rax)
movq 0x38(%rsp), %rax
movl 0x2258(%rax), %eax
subl $0x1, %eax
movslq %eax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x20(%rsp), %rdi
movl $0x2, %esi
leaq 0xf4faf(%rip), %rdx     # 0x1ef345
movl $0xeb82, %ecx           # imm = 0xEB82
callq 0xe4820
andb $0x1, %al
movb %al, 0x47(%rsp)
jmp 0xfa480
movb $0x0, 0x47(%rsp)
jmp 0xfa480
movl 0x2c(%rsp), %eax
subl $0x1, %eax
movslq %eax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0xfa40a
movq 0x38(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0xf8720
testb $0x1, %al
jne 0xfa3f8
jmp 0xfa40a
jmp 0xfa3fa
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x18(%rsp)
jmp 0xfa3d6
movq 0x18(%rsp), %rax
movq 0x38(%rsp), %rcx
cmpq 0x110(%rcx), %rax
jne 0xfa47b
movl 0x28(%rsp), %edx
leaq 0x5b8(%rip), %rcx       # 0xfa9e0
leaq 0x501(%rip), %rax       # 0xfa930
cmpl $0x0, %edx
cmovneq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, (%rax)
movq 0x38(%rsp), %rax
movl 0x2258(%rax), %eax
subl $0x1, %eax
movslq %eax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x20(%rsp), %rdi
movl $0x3, %esi
leaq 0xf4edc(%rip), %rdx     # 0x1ef345
movl $0xeb8e, %ecx           # imm = 0xEB8E
callq 0xe4820
andb $0x1, %al
movb %al, 0x47(%rsp)
jmp 0xfa480
movb $0x0, 0x47(%rsp)
movb 0x47(%rsp), %al
andb $0x1, %al
addq $0x48, %rsp
retq
nopl (%rax,%rax)