// File: /workspace/github_c_makefile_star2_O0/BernardTatin[P]s7sh/s7.c
// Function: check_and
static bool check_and(s7_scheme *sc)
                {
                    /* this and check_or and check_if may not be called -- optimize_syntax can short-circuit it to return fx* choices */
                    s7_pointer p, form;
                    int32_t any_nils = 0, len;

                    form = sc->code;
                    sc->code = cdr(sc->code);

                    if (is_null(sc->code))
                    {
                        sc->value = sc->T;
                        return(true);
                    }
                    for (len = 0, p = sc->code; is_pair(p); p = cdr(p), len++)
                    {
                        s7_function callee;
                        callee = fx_choose(sc, p, sc->envir, let_symbol_is_safe);  /* c_callee can be nil! */
                        if (!callee)
                            any_nils++;
                        set_c_call_checked(p, callee);
                    }

                    if (is_not_null(p))                                    /* (and . 1) (and #t . 1) */
                        eval_error_no_return(sc, sc->syntax_error_symbol, "and: stray dot?: ~A", 19, form);

                    if ((c_callee(sc->code)) &&
                            (is_proper_list_1(sc, cdr(sc->code))))
                    {
                        if ((c_callee(sc->code) == fx_is_pair_s) || (c_callee(sc->code) == fx_is_pair_t))
                        {
                            pair_set_syntax_op(form, OP_AND_PAIR_P);
                            set_opt3_sym(form, cadar(sc->code));
                            set_opt2_con(form, cadr(sc->code));
                        }
                        else pair_set_syntax_op(form, (any_nils > 0) ? OP_AND_AP : OP_AND_SAFE_AA);
                    }
                    else
                    {
                        pair_set_syntax_op(form, (any_nils > 0) ? OP_AND_P : OP_AND_N);
                        if ((any_nils == 1) && (len > 2))
                        {
                            if (!has_fx(sc->code))
                                pair_set_syntax_op(form, OP_AND_SAFE_P1);
                            else
                            {
                                if (!has_fx(cdr(sc->code)))
                                    pair_set_syntax_op(form, OP_AND_SAFE_P2);
                                else
                                {
                                    if ((!has_fx(cddr(sc->code))) && (len == 3))
                                        pair_set_syntax_op(form, OP_AND_SAFE_P3);
                                }}}}
                    sc->code = form;
                    return(false);
                }

// Assembly:
subq $0x58, %rsp
movq %rdi, 0x48(%rsp)
movl $0x0, 0x34(%rsp)
movq 0x48(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x38(%rsp)
movq 0x48(%rsp), %rax
movq (%rax), %rax
movq 0x10(%rax), %rcx
movq 0x48(%rsp), %rax
movq %rcx, (%rax)
movq 0x48(%rsp), %rax
movq (%rax), %rax
movq 0x48(%rsp), %rcx
cmpq 0x110(%rcx), %rax
jne 0x153867
movq 0x48(%rsp), %rax
movq 0x118(%rax), %rcx
movq 0x48(%rsp), %rax
movq %rcx, 0x20(%rax)
movb $0x1, 0x57(%rsp)
jmp 0x153bff
movl $0x0, 0x30(%rsp)
movq 0x48(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x1, %eax
jne 0x15392a
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rax
movq 0x8(%rax), %rdx
leaq -0x4dca7(%rip), %rcx    # 0x105c00
callq 0x103260
movq %rax, 0x28(%rsp)
cmpq $0x0, 0x28(%rsp)
jne 0x1538c4
movl 0x34(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x34(%rsp)
jmp 0x1538c6
movq 0x28(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x20(%rax)
cmpq $0x0, 0x20(%rsp)
je 0x1538f8
movq 0x40(%rsp), %rax
movzwl 0x6(%rax), %ecx
orl $0x4, %ecx
movw %cx, 0x6(%rax)
jmp 0x153908
movq 0x40(%rsp), %rax
movzwl 0x6(%rax), %ecx
andl $-0x5, %ecx
movw %cx, 0x6(%rax)
jmp 0x15390a
jmp 0x15390c
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x40(%rsp)
movl 0x30(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x30(%rsp)
jmp 0x15387c
movq 0x40(%rsp), %rax
movq 0x48(%rsp), %rcx
cmpq 0x110(%rcx), %rax
je 0x15399c
movq 0x48(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x48(%rsp), %rax
movq 0x1918(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x48(%rsp), %rdi
leaq 0x9d752(%rip), %rsi     # 0x1f10c0
movl $0x13, %edx
callq 0xb880
movq 0x8(%rsp), %rdi
movq %rax, %rsi
movq 0x38(%rsp), %rdx
callq 0xb830
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq %rax, %rdx
callq 0x2f940
movq 0x48(%rsp), %rax
movq (%rax), %rax
cmpq $0x0, 0x20(%rax)
je 0x153ab6
movq 0x48(%rsp), %rdi
movq 0x48(%rsp), %rax
movq (%rax), %rax
movq 0x10(%rax), %rsi
callq 0xfd500
testb $0x1, %al
jne 0x1539ce
jmp 0x153ab6
movq 0x48(%rsp), %rax
movq (%rax), %rax
leaq -0x4d2bd(%rip), %rcx    # 0x106720
cmpq %rcx, 0x20(%rax)
je 0x1539f8
movq 0x48(%rsp), %rax
movq (%rax), %rax
leaq 0xcd1e(%rip), %rcx      # 0x160710
cmpq %rcx, 0x20(%rax)
jne 0x153a6f
jmp 0x1539fa
movq 0x38(%rsp), %rax
movw $0x289, 0x4(%rax)       # imm = 0x289
movq 0x38(%rsp), %rax
movq (%rax), %rcx
andq $-0x10000, %rcx         # imm = 0xFFFF0000
orq $0x201, %rcx            # imm = 0x201
movq 0x38(%rsp), %rax
movq %rcx, (%rax)
jmp 0x153a25
movq 0x48(%rsp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rcx
movq 0x38(%rsp), %rax
movq %rcx, 0x28(%rax)
movq 0x38(%rsp), %rax
movq (%rax), %rcx
andq $-0x40001, %rcx         # imm = 0xFFFBFFFF
movq %rcx, (%rax)
movq 0x48(%rsp), %rax
movq (%rax), %rax
movq 0x10(%rax), %rax
movq 0x8(%rax), %rcx
movq 0x38(%rsp), %rax
movq %rcx, 0x20(%rax)
jmp 0x153ab1
jmp 0x153a71
movl 0x34(%rsp), %edx
movl $0x288, %eax            # imm = 0x288
movl $0x287, %ecx            # imm = 0x287
cmpl $0x0, %edx
cmovgl %ecx, %eax
movw %ax, %cx
movq 0x38(%rsp), %rax
movw %cx, 0x4(%rax)
movq 0x38(%rsp), %rax
movq (%rax), %rcx
andq $-0x10000, %rcx         # imm = 0xFFFF0000
orq $0x201, %rcx            # imm = 0x201
movq 0x38(%rsp), %rax
movq %rcx, (%rax)
jmp 0x153ab1
jmp 0x153bed
jmp 0x153ab8
movl 0x34(%rsp), %edx
movl $0x290, %eax            # imm = 0x290
movl $0x285, %ecx            # imm = 0x285
cmpl $0x0, %edx
cmovgl %ecx, %eax
movw %ax, %cx
movq 0x38(%rsp), %rax
movw %cx, 0x4(%rax)
movq 0x38(%rsp), %rax
movq (%rax), %rcx
andq $-0x10000, %rcx         # imm = 0xFFFF0000
orq $0x201, %rcx            # imm = 0x201
movq 0x38(%rsp), %rax
movq %rcx, (%rax)
cmpl $0x1, 0x34(%rsp)
jne 0x153beb
cmpl $0x2, 0x30(%rsp)
jle 0x153beb
movq 0x48(%rsp), %rax
movq (%rax), %rax
movzwl 0x6(%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
jne 0x153b50
jmp 0x153b22
movq 0x38(%rsp), %rax
movw $0x28a, 0x4(%rax)       # imm = 0x28A
movq 0x38(%rsp), %rax
movq (%rax), %rcx
andq $-0x10000, %rcx         # imm = 0xFFFF0000
orq $0x201, %rcx            # imm = 0x201
movq 0x38(%rsp), %rax
movq %rcx, (%rax)
jmp 0x153be9
movq 0x48(%rsp), %rax
movq (%rax), %rax
movq 0x10(%rax), %rax
movzwl 0x6(%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
jne 0x153b95
jmp 0x153b6a
movq 0x38(%rsp), %rax
movw $0x28b, 0x4(%rax)       # imm = 0x28B
movq 0x38(%rsp), %rax
movq (%rax), %rcx
andq $-0x10000, %rcx         # imm = 0xFFFF0000
orq $0x201, %rcx            # imm = 0x201
movq 0x38(%rsp), %rax
movq %rcx, (%rax)
jmp 0x153be7
movq 0x48(%rsp), %rax
movq (%rax), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rax
movzwl 0x6(%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
jne 0x153be5
cmpl $0x3, 0x30(%rsp)
jne 0x153be5
jmp 0x153bba
movq 0x38(%rsp), %rax
movw $0x28c, 0x4(%rax)       # imm = 0x28C
movq 0x38(%rsp), %rax
movq (%rax), %rcx
andq $-0x10000, %rcx         # imm = 0xFFFF0000
orq $0x201, %rcx            # imm = 0x201
movq 0x38(%rsp), %rax
movq %rcx, (%rax)
jmp 0x153be5
jmp 0x153be7
jmp 0x153be9
jmp 0x153beb
jmp 0x153bed
movq 0x38(%rsp), %rcx
movq 0x48(%rsp), %rax
movq %rcx, (%rax)
movb $0x0, 0x57(%rsp)
movb 0x57(%rsp), %al
andb $0x1, %al
addq $0x58, %rsp
retq
nopw (%rax,%rax)