// File: /workspace/github_c_makefile_star2_O3/dalnefre[P]kernel_abe/schemer.c
// Function: eval_and_beh
BEH_DECL(eval_and_beh)
{
	CONS* p;
	CONS* state;
	CONS* msg;
	CONS* a;

	DBUG_ENTER("eval_and_beh");
	if (is_pair(WHAT) && is_pair(p = pr_tail(WHAT))) {
		CONS* to = pr_head(WHAT);
		CONS* expr = pr_head(p);
		CONS* env = pr_tail(p);

		DBUG_PRINT("", ("expr = %s", cons_to_str(expr)));
		if (is_empty(expr)) {
			SEND(to, TRUE_SYMBOL);
		} else if (is_pair(expr)) {
			CONS* next = lst_rest(expr);

			expr = lst_first(expr);
			msg = mk_pair(expr, env);
			if (is_empty(next)) {		/* tail-call optimization */
				msg = mk_pair(to, msg);
			} else {
				state = mk_pair(next, env);
				state = mk_pair(to, state);
				state = mk_pair(SELF, state);
				a = ACTOR(next_and_beh, state);
				msg = mk_pair(a, msg);
			}
			SEND(eval__actor, msg);
		} else {
			DBUG_PRINT("", ("error"));
			msg = mk_list(ATOM("and"), expr);
			FAIL(env, msg);
		}
	} else {
		DBUG_PRINT("", ("Ignored! %s", cons_to_str(WHAT)));
		abort();
	}
	DBUG_RETURN;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x10d01(%rip), %rax     # 0x1832a
movq %rsp, %rdi
movq %rax, (%rdi)
leaq 0x17cea(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x54a, 0xc(%rdi)       # imm = 0x54A
leaq 0x1338f(%rip), %r14     # 0x1a9e0
movq %r14, 0x10(%rdi)
leaq 0x17ae4(%rip), %rcx     # 0x1f140
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x16ea2
movq 0x30(%rbx), %rdi
callq 0x1518d
testq %rax, %rax
je 0x7919
movq 0x30(%rbx), %rdi
callq 0x1518d
testb $0x3, %al
jne 0x7919
movq 0x30(%rbx), %rdi
callq 0x1518d
cmpq 0x17924(%rip), %rax     # 0x1efc0
je 0x7919
movq 0x30(%rbx), %rdi
callq 0x1518d
movq %rax, %rdi
callq 0x1518d
testq %rax, %rax
je 0x7919
movq 0x30(%rbx), %rdi
callq 0x1518d
movq %rax, %rdi
callq 0x1518d
testb $0x3, %al
jne 0x7919
movq 0x30(%rbx), %rdi
callq 0x1518d
movq %rax, %rdi
callq 0x1518d
cmpq 0x178d3(%rip), %rax     # 0x1efc0
je 0x7919
movq %rax, %r15
movq 0x30(%rbx), %rdi
callq 0x1518d
movq %rax, %rdi
callq 0x150ee
movq %rax, %r12
movq %r15, %rdi
callq 0x150ee
movq %rax, %r13
movq %r15, %rdi
callq 0x1518d
movq %rax, %r15
leaq 0x181c9(%rip), %rbp     # 0x1f8f0
cmpl $0x0, (%rbp)
je 0x7779
leaq 0x17bec(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movq %r14, 0x10(%rax)
movq %r14, %rdi
callq 0x16604
testl %eax, %eax
je 0x7779
leaq 0x17bce(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x550, 0xc(%rax)       # imm = 0x550
movq %r13, %rdi
callq 0xf0bc
leaq 0x1097d(%rip), %rdi     # 0x180ec
movq %rax, %rsi
xorl %eax, %eax
callq 0x16f13
cmpq 0x17840(%rip), %r13     # 0x1efc0
je 0x785d
testq %r13, %r13
sete %al
testb $0x3, %r13b
setne %cl
orb %al, %cl
je 0x7872
cmpl $0x0, (%rbp)
je 0x77e2
leaq 0x17b78(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movq %r14, 0x10(%rax)
movq %r14, %rdi
callq 0x16604
testl %eax, %eax
je 0x77e2
leaq 0x17b5a(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x563, 0xc(%rax)       # imm = 0x563
leaq 0x10a52(%rip), %rdi     # 0x1822d
xorl %eax, %eax
callq 0x16f13
leaq 0x10b4e(%rip), %rdi     # 0x18337
callq 0x1257b
movq %rax, %rdi
movq %r13, %rsi
callq 0x150cc
leaq -0x4d88(%rip), %rsi     # 0x2a78
movq %rbx, %rdi
movq %rax, %rdx
callq 0xdd3a
movq %rax, %r14
leaq 0x10875(%rip), %rdi     # 0x1808a
callq 0x1257b
movq %rax, %r12
callq 0xd160
leaq 0x17a67(%rip), %rsi     # 0x1f290
movq %rax, %rdi
callq 0x150cc
movq %r12, %rdi
movq %rax, %rsi
callq 0x150cc
movq %rax, %rdi
movq %r15, %rsi
callq 0x150cc
movq %r14, %rdi
movq %rax, %rsi
callq 0x150cc
movq %rbx, %rdi
movq %r15, %rsi
jmp 0x78f3
movl $0x1, %edi
callq 0x3c98
movq %rbx, %rdi
movq %r12, %rsi
jmp 0x78f3
movq %r13, %rdi
callq 0x1518d
movq %rax, %rbp
movq %r13, %rdi
callq 0x150ee
movq %rax, %rdi
movq %r15, %rsi
callq 0x150cc
movq %rax, %r14
cmpq 0x17726(%rip), %rbp     # 0x1efc0
je 0x78de
movq %rbp, %rdi
movq %r15, %rsi
callq 0x150cc
movq %r12, %rdi
movq %rax, %rsi
callq 0x150cc
movq %rax, %r15
movq 0x30(%rbx), %rdi
callq 0x150ee
movq %rax, %rdi
movq %r15, %rsi
callq 0x150cc
leaq -0x3f3(%rip), %rsi      # 0x74dd
movq %rbx, %rdi
movq %rax, %rdx
callq 0xdd3a
movq %rax, %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x150cc
movq 0x17a88(%rip), %rsi     # 0x1f378
movq %rbx, %rdi
movq %rax, %rdx
callq 0xde17
movq %rsp, %rdi
movl $0x56b, 0xc(%rdi)       # imm = 0x56B
callq 0x17027
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x17fd0(%rip), %rax     # 0x1f8f0
cmpl $0x0, (%rax)
je 0x797a
leaq 0x179f4(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movq %r14, 0x10(%rax)
movq %r14, %rdi
callq 0x16604
testl %eax, %eax
je 0x797a
leaq 0x179d6(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x568, 0xc(%rax)       # imm = 0x568
movq 0x30(%rbx), %rdi
callq 0x1518d
movq %rax, %rdi
callq 0xf0bc
leaq 0x106f0(%rip), %rdi     # 0x18060
movq %rax, %rsi
xorl %eax, %eax
callq 0x16f13
callq 0x2050