// File: /workspace/github_c_makefile_star2_O1/dalnefre[P]kernel_abe/schemer.c
// Function: eval_cond_beh
BEH_DECL(eval_cond_beh)
{
	CONS* p;
	CONS* state;
	CONS* msg;
	CONS* a;

	DBUG_ENTER("eval_cond_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_pair(expr) && is_pair(pr_head(expr))) {
			CONS* phrase = lst_first(expr);
			CONS* pred = lst_first(phrase);

			DBUG_PRINT("", ("phrase = %s", cons_to_str(phrase)));
			DBUG_PRINT("", ("pred = %s", cons_to_str(pred)));
			msg = mk_pair(lst_rest(phrase), env);
			msg = mk_pair(to, msg);
			state = mk_pair(lst_rest(expr), env);
			state = mk_pair(to, state);
			state = mk_pair(SELF, state);
			a = ACTOR(apply_cond_beh, mk_pair(state, msg));
			if (pred == ATOM("else")) {
				SEND(a, TRUE_SYMBOL);
			} else {
				msg = mk_pair(pred, env);
				msg = mk_pair(a, msg);
				SEND(eval__actor, msg);
			}
		} else {
			DBUG_PRINT("", ("error"));
			msg = mk_list(ATOM("cond"), 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 $0x48, %rsp
movq %rdi, %rbx
leaq 0x102e1(%rip), %rax     # 0x1836d
leaq 0x20(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x17285(%rip), %rbp     # 0x1f320
movq (%rbp), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x605, 0xc(%rdi)       # imm = 0x605
leaq 0x12929(%rip), %r15     # 0x1a9e0
movq %r15, 0x10(%rdi)
leaq 0x1707e(%rip), %rcx     # 0x1f140
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x16ef2
movq 0x30(%rbx), %rdi
callq 0x15225
testq %rax, %rax
je 0x846e
movq 0x30(%rbx), %rdi
callq 0x15225
testb $0x3, %al
jne 0x846e
movq 0x30(%rbx), %rdi
callq 0x15225
cmpq 0x16ebe(%rip), %rax     # 0x1efc0
je 0x846e
movq 0x30(%rbx), %rdi
callq 0x15225
movq %rax, %rdi
callq 0x15225
testq %rax, %rax
je 0x846e
movq 0x30(%rbx), %rdi
callq 0x15225
movq %rax, %rdi
callq 0x15225
testb $0x3, %al
jne 0x846e
movq 0x30(%rbx), %rdi
callq 0x15225
movq %rax, %rdi
callq 0x15225
cmpq 0x16e6d(%rip), %rax     # 0x1efc0
je 0x846e
movq %rax, %r14
movq 0x30(%rbx), %rdi
callq 0x15225
movq %rax, %rdi
callq 0x15186
movq %rax, 0x18(%rsp)
movq %r14, %rdi
callq 0x15186
movq %rax, %r12
movq %r14, %rdi
callq 0x15225
movq %rax, %r14
leaq 0x17761(%rip), %r13     # 0x1f8f0
cmpl $0x0, (%r13)
je 0x81d6
movq (%rbp), %rax
movq 0x50(%rax), %rax
movq %r15, 0x10(%rax)
movq %r15, %rdi
callq 0x16664
testl %eax, %eax
je 0x81d6
movq (%rbp), %rax
movq 0x50(%rax), %rax
movl $0x60b, 0xc(%rax)       # imm = 0x60B
movq %r12, %rdi
callq 0xf17c
leaq 0xff20(%rip), %rdi      # 0x180ec
movq %rax, %rsi
xorl %eax, %eax
callq 0x16f63
cmpq 0x16de3(%rip), %r12     # 0x1efc0
je 0x8209
testq %r12, %r12
je 0x8209
movl %r12d, %eax
andl $0x3, %eax
jne 0x8209
movq %r12, %rdi
callq 0x15186
testq %rax, %rax
je 0x8209
movq %r12, %rdi
callq 0x15186
testb $0x3, %al
je 0x82e3
cmpl $0x0, (%r13)
je 0x8245
movq (%rbp), %rax
movq 0x50(%rax), %rax
movq %r15, 0x10(%rax)
movq %r15, %rdi
callq 0x16664
testl %eax, %eax
je 0x8245
movq (%rbp), %rax
movq 0x50(%rax), %rax
movl $0x620, 0xc(%rax)       # imm = 0x620
leaq 0xffef(%rip), %rdi      # 0x1822d
xorl %eax, %eax
callq 0x16f63
leaq 0x1014a(%rip), %rdi     # 0x18396
callq 0x1265c
movq %rax, %rdi
movq %r12, %rsi
callq 0x15164
leaq -0x578b(%rip), %rsi     # 0x2ad8
movq %rbx, %rdi
movq %rax, %rdx
callq 0xde1a
movq %rax, %r15
leaq 0xfe12(%rip), %rdi      # 0x1808a
callq 0x1265c
movq %rax, %r12
callq 0xd26a
leaq 0x17004(%rip), %rsi     # 0x1f290
movq %rax, %rdi
callq 0x15164
movq %r12, %rdi
movq %rax, %rsi
callq 0x15164
movq %rax, %rdi
movq %r14, %rsi
callq 0x15164
movq %r15, %rdi
movq %rax, %rsi
callq 0x15164
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0xdef7
leaq 0x20(%rsp), %rdi
movl $0x628, 0xc(%rdi)       # imm = 0x628
callq 0x17077
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, %rdi
callq 0x15186
cmpq 0x16cce(%rip), %rax     # 0x1efc0
je 0x8209
movq %r12, %rdi
callq 0x15186
movq %rax, 0x8(%rsp)
movq %rax, %rdi
callq 0x15186
movq %rax, 0x10(%rsp)
cmpl $0x0, (%r13)
je 0x835b
movq (%rbp), %rax
movq 0x50(%rax), %rax
movq %r15, 0x10(%rax)
movq %r15, %rdi
callq 0x16664
testl %eax, %eax
je 0x835b
movq (%rbp), %rax
movq 0x50(%rax), %rax
movl $0x610, 0xc(%rax)       # imm = 0x610
movq 0x8(%rsp), %rdi
callq 0xf17c
leaq 0x1002a(%rip), %rdi     # 0x1837b
movq %rax, %rsi
xorl %eax, %eax
callq 0x16f63
cmpl $0x0, (%r13)
je 0x83a4
movq (%rbp), %rax
movq 0x50(%rax), %rax
movq %r15, 0x10(%rax)
movq %r15, %rdi
callq 0x16664
testl %eax, %eax
je 0x83a4
movq (%rbp), %rax
movq 0x50(%rax), %rax
movl $0x611, 0xc(%rax)       # imm = 0x611
movq 0x10(%rsp), %rdi
callq 0xf17c
leaq 0xffed(%rip), %rdi      # 0x18387
movq %rax, %rsi
xorl %eax, %eax
callq 0x16f63
movq 0x8(%rsp), %rdi
callq 0x15225
movq %rax, %rdi
movq %r14, %rsi
callq 0x15164
movq 0x18(%rsp), %r13
movq %r13, %rdi
movq %rax, %rsi
callq 0x15164
movq %rax, %r15
movq %r12, %rdi
callq 0x15225
movq %rax, %rdi
movq %r14, %rsi
callq 0x15164
movq %r13, %rdi
movq %rax, %rsi
callq 0x15164
movq %rax, %r12
movq 0x30(%rbx), %rdi
callq 0x15186
movq %rax, %rdi
movq %r12, %rsi
callq 0x15164
movq %rax, %rdi
movq %r15, %rsi
callq 0x15164
leaq -0x511(%rip), %rsi      # 0x7f02
movq %rbx, %rdi
movq %rax, %rdx
callq 0xde1a
movq %rax, %r15
leaq 0xff69(%rip), %rdi      # 0x18391
callq 0x1265c
movq 0x10(%rsp), %rdi
cmpq %rax, %rdi
je 0x8459
movq %r14, %rsi
callq 0x15164
movq %r15, %rdi
movq %rax, %rsi
callq 0x15164
movq 0x16f27(%rip), %rsi     # 0x1f378
movq %rbx, %rdi
jmp 0x82bb
movl $0x1, %edi
callq 0x3d66
movq %rbx, %rdi
movq %r15, %rsi
jmp 0x82bb
leaq 0x1747b(%rip), %rax     # 0x1f8f0
cmpl $0x0, (%rax)
je 0x84c3
movq (%rbp), %rax
movq 0x50(%rax), %rax
movq %r15, 0x10(%rax)
movq %r15, %rdi
callq 0x16664
testl %eax, %eax
je 0x84c3
movq (%rbp), %rax
movq 0x50(%rax), %rax
movl $0x625, 0xc(%rax)       # imm = 0x625
movq 0x30(%rbx), %rdi
callq 0x15225
movq %rax, %rdi
callq 0xf17c
leaq 0xfba7(%rip), %rdi      # 0x18060
movq %rax, %rsi
xorl %eax, %eax
callq 0x16f63
callq 0x2050