// File: /workspace/github_c_makefile_star2_O2/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 0x100b4(%rip), %rax     # 0x1732a
movq %rsp, %rdi
movq %rax, (%rdi)
leaq 0x1709d(%rip), %rax     # 0x1e320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x54a, 0xc(%rdi)       # imm = 0x54A
leaq 0x1271e(%rip), %r14     # 0x199bc
movq %r14, 0x10(%rdi)
leaq 0x16e97(%rip), %rcx     # 0x1e140
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x16679
movq 0x30(%rbx), %rdi
callq 0x14906
testq %rax, %rax
je 0x7564
movq 0x30(%rbx), %rdi
callq 0x14906
testb $0x3, %al
jne 0x7564
movq 0x30(%rbx), %rdi
callq 0x14906
cmpq 0x16cd7(%rip), %rax     # 0x1dfc0
je 0x7564
movq 0x30(%rbx), %rdi
callq 0x14906
movq %rax, %rdi
callq 0x14906
testq %rax, %rax
je 0x7564
movq 0x30(%rbx), %rdi
callq 0x14906
movq %rax, %rdi
callq 0x14906
testb $0x3, %al
jne 0x7564
movq 0x30(%rbx), %rdi
callq 0x14906
movq %rax, %rdi
callq 0x14906
cmpq 0x16c86(%rip), %rax     # 0x1dfc0
je 0x7564
movq %rax, %r15
movq 0x30(%rbx), %rdi
callq 0x14906
movq %rax, %rdi
callq 0x147fb
movq %rax, %r12
movq %r15, %rdi
callq 0x147fb
movq %rax, %r13
movq %r15, %rdi
callq 0x14906
movq %rax, %r15
leaq 0x1757c(%rip), %rbp     # 0x1e8f0
cmpl $0x0, (%rbp)
je 0x73c6
leaq 0x16f9f(%rip), %rax     # 0x1e320
movq (%rax), %rax
movq 0x50(%rax), %rax
movq %r14, 0x10(%rax)
movq %r14, %rdi
callq 0x15df4
testl %eax, %eax
je 0x73c6
leaq 0x16f81(%rip), %rax     # 0x1e320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x550, 0xc(%rax)       # imm = 0x550
movq %r13, %rdi
callq 0xed08
leaq 0xfd30(%rip), %rdi      # 0x170ec
movq %rax, %rsi
xorl %eax, %eax
callq 0x166f0
cmpq 0x16bf3(%rip), %r13     # 0x1dfc0
je 0x74aa
testq %r13, %r13
sete %al
testb $0x3, %r13b
setne %cl
orb %al, %cl
je 0x74bd
cmpl $0x0, (%rbp)
je 0x742f
leaq 0x16f2b(%rip), %rax     # 0x1e320
movq (%rax), %rax
movq 0x50(%rax), %rax
movq %r14, 0x10(%rax)
movq %r14, %rdi
callq 0x15df4
testl %eax, %eax
je 0x742f
leaq 0x16f0d(%rip), %rax     # 0x1e320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x563, 0xc(%rax)       # imm = 0x563
leaq 0xfe05(%rip), %rdi      # 0x1722d
xorl %eax, %eax
callq 0x166f0
leaq 0xff01(%rip), %rdi      # 0x17337
callq 0x11f1f
movq %rax, %rdi
movq %r13, %rsi
callq 0x14764
leaq -0x4d75(%rip), %rsi     # 0x26d8
movq %rbx, %rdi
movq %rax, %rdx
callq 0xd9b7
movq %rax, %r14
leaq 0xfc28(%rip), %rdi      # 0x1708a
callq 0x11f1f
movq %rax, %r12
callq 0xccde
leaq 0x16e1a(%rip), %rsi     # 0x1e290
movq %rax, %rdi
callq 0x14764
movq %r12, %rdi
movq %rax, %rsi
callq 0x14764
movq %rax, %rdi
movq %r15, %rsi
callq 0x14764
movq %r14, %rdi
movq %rax, %rsi
callq 0x14764
movq %rbx, %rdi
movq %r15, %rsi
jmp 0x753e
pushq $0x1
popq %rdi
callq 0x38f6
movq %rbx, %rdi
movq %r12, %rsi
jmp 0x753e
movq %r13, %rdi
callq 0x14906
movq %rax, %rbp
movq %r13, %rdi
callq 0x147fb
movq %rax, %rdi
movq %r15, %rsi
callq 0x14764
movq %rax, %r14
cmpq 0x16adb(%rip), %rbp     # 0x1dfc0
je 0x7529
movq %rbp, %rdi
movq %r15, %rsi
callq 0x14764
movq %r12, %rdi
movq %rax, %rsi
callq 0x14764
movq %rax, %r15
movq 0x30(%rbx), %rdi
callq 0x147fb
movq %rax, %rdi
movq %r15, %rsi
callq 0x14764
leaq -0x3f1(%rip), %rsi      # 0x712a
movq %rbx, %rdi
movq %rax, %rdx
callq 0xd9b7
movq %rax, %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x14764
movq 0x16e3d(%rip), %rsi     # 0x1e378
movq %rbx, %rdi
movq %rax, %rdx
callq 0xda94
movq %rsp, %rdi
movl $0x56b, 0xc(%rdi)       # imm = 0x56B
callq 0x167f2
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x17385(%rip), %rax     # 0x1e8f0
cmpl $0x0, (%rax)
je 0x75c5
leaq 0x16da9(%rip), %rax     # 0x1e320
movq (%rax), %rax
movq 0x50(%rax), %rax
movq %r14, 0x10(%rax)
movq %r14, %rdi
callq 0x15df4
testl %eax, %eax
je 0x75c5
leaq 0x16d8b(%rip), %rax     # 0x1e320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x568, 0xc(%rax)       # imm = 0x568
movq 0x30(%rbx), %rdi
callq 0x14906
movq %rax, %rdi
callq 0xed08
leaq 0xfaa5(%rip), %rdi      # 0x17060
movq %rax, %rsi
xorl %eax, %eax
callq 0x166f0
callq 0x2050