// File: /workspace/github_c_makefile_star2_O1/dalnefre[P]kernel_abe/schemer.c
// Function: eval_or_beh
BEH_DECL(eval_or_beh)
{
	CONS* p;
	CONS* state;
	CONS* msg;
	CONS* a;

	DBUG_ENTER("eval_or_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, FALSE_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_or_beh, state);
				msg = mk_pair(a, msg);
			}
			SEND(eval__actor, msg);
		} else {
			DBUG_PRINT("", ("error"));
			msg = mk_list(ATOM("or"), 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 0x10798(%rip), %rax     # 0x18347
movq %rsp, %rdi
movq %rax, (%rdi)
leaq 0x17764(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x5a6, 0xc(%rdi)       # imm = 0x5A6
leaq 0x12e09(%rip), %r14     # 0x1a9e0
movq %r14, 0x10(%rdi)
leaq 0x1755e(%rip), %rcx     # 0x1f140
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x16ef2
movq 0x30(%rbx), %rdi
callq 0x15225
testq %rax, %rax
je 0x7e9c
movq 0x30(%rbx), %rdi
callq 0x15225
testb $0x3, %al
jne 0x7e9c
movq 0x30(%rbx), %rdi
callq 0x15225
cmpq 0x1739e(%rip), %rax     # 0x1efc0
je 0x7e9c
movq 0x30(%rbx), %rdi
callq 0x15225
movq %rax, %rdi
callq 0x15225
testq %rax, %rax
je 0x7e9c
movq 0x30(%rbx), %rdi
callq 0x15225
movq %rax, %rdi
callq 0x15225
testb $0x3, %al
jne 0x7e9c
movq 0x30(%rbx), %rdi
callq 0x15225
movq %rax, %rdi
callq 0x15225
cmpq 0x1734d(%rip), %rax     # 0x1efc0
je 0x7e9c
movq %rax, %r15
movq 0x30(%rbx), %rdi
callq 0x15225
movq %rax, %rdi
callq 0x15186
movq %rax, %r12
movq %r15, %rdi
callq 0x15186
movq %rax, %r13
movq %r15, %rdi
callq 0x15225
movq %rax, %r15
leaq 0x17c43(%rip), %rbp     # 0x1f8f0
cmpl $0x0, (%rbp)
je 0x7cff
leaq 0x17666(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movq %r14, 0x10(%rax)
movq %r14, %rdi
callq 0x16664
testl %eax, %eax
je 0x7cff
leaq 0x17648(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x5ac, 0xc(%rax)       # imm = 0x5AC
movq %r13, %rdi
callq 0xf17c
leaq 0x103f7(%rip), %rdi     # 0x180ec
movq %rax, %rsi
xorl %eax, %eax
callq 0x16f63
cmpq 0x172ba(%rip), %r13     # 0x1efc0
je 0x7de3
testq %r13, %r13
sete %al
testb $0x3, %r13b
setne %cl
orb %al, %cl
je 0x7df5
cmpl $0x0, (%rbp)
je 0x7d68
leaq 0x175f2(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movq %r14, 0x10(%rax)
movq %r14, %rdi
callq 0x16664
testl %eax, %eax
je 0x7d68
leaq 0x175d4(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x5bf, 0xc(%rax)       # imm = 0x5BF
leaq 0x104cc(%rip), %rdi     # 0x1822d
xorl %eax, %eax
callq 0x16f63
leaq 0x11da0(%rip), %rdi     # 0x19b0f
callq 0x1265c
movq %rax, %rdi
movq %r13, %rsi
callq 0x15164
leaq -0x52ae(%rip), %rsi     # 0x2ad8
movq %rbx, %rdi
movq %rax, %rdx
callq 0xde1a
movq %rax, %r14
leaq 0x102ef(%rip), %rdi     # 0x1808a
callq 0x1265c
movq %rax, %r12
callq 0xd26a
leaq 0x174e1(%rip), %rsi     # 0x1f290
movq %rax, %rdi
callq 0x15164
movq %r12, %rdi
movq %rax, %rsi
callq 0x15164
movq %rax, %rdi
movq %r15, %rsi
callq 0x15164
movq %r14, %rdi
movq %rax, %rsi
callq 0x15164
movq %rbx, %rdi
movq %r15, %rsi
jmp 0x7e76
xorl %edi, %edi
callq 0x3d66
movq %rbx, %rdi
movq %r12, %rsi
jmp 0x7e76
movq %r13, %rdi
callq 0x15225
movq %rax, %rbp
movq %r13, %rdi
callq 0x15186
movq %rax, %rdi
movq %r15, %rsi
callq 0x15164
movq %rax, %r14
cmpq 0x171a3(%rip), %rbp     # 0x1efc0
je 0x7e61
movq %rbp, %rdi
movq %r15, %rsi
callq 0x15164
movq %r12, %rdi
movq %rax, %rsi
callq 0x15164
movq %rax, %r15
movq 0x30(%rbx), %rdi
callq 0x15186
movq %rax, %rdi
movq %r15, %rsi
callq 0x15164
leaq -0x3f0(%rip), %rsi      # 0x7a63
movq %rbx, %rdi
movq %rax, %rdx
callq 0xde1a
movq %rax, %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x15164
movq 0x17505(%rip), %rsi     # 0x1f378
movq %rbx, %rdi
movq %rax, %rdx
callq 0xdef7
movq %rsp, %rdi
movl $0x5c7, 0xc(%rdi)       # imm = 0x5C7
callq 0x17077
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x17a4d(%rip), %rax     # 0x1f8f0
cmpl $0x0, (%rax)
je 0x7efd
leaq 0x17471(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movq %r14, 0x10(%rax)
movq %r14, %rdi
callq 0x16664
testl %eax, %eax
je 0x7efd
leaq 0x17453(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x5c4, 0xc(%rax)       # imm = 0x5C4
movq 0x30(%rbx), %rdi
callq 0x15225
movq %rax, %rdi
callq 0xf17c
leaq 0x1016d(%rip), %rdi     # 0x18060
movq %rax, %rsi
xorl %eax, %eax
callq 0x16f63
callq 0x2050