// File: /workspace/github_c_makefile_star2_O3/dalnefre[P]kernel_abe/schemer.c
// Function: apply_beh
BEH_DECL(apply_beh)
{
	CONS* p;

	DBUG_ENTER("apply_beh");
	if (is_pair(MINE) && is_pair(p = pr_tail(MINE))) {
/*		CONS* to = pr_head(MINE); */
/*		CONS* expr = pr_head(p); */
		CONS* env = pr_tail(p);

		if (actorp(WHAT)) {
			SEND(WHAT, MINE);
		} else {
			p = mk_list(WHAT, mk_empty());
			p = mk_list(ATOM("invalid-application"), p);
			FAIL(env, p);
		}
	} else {
		DBUG_PRINT("", ("Ignored! %s", cons_to_str(WHAT)));
		abort();
	}
	DBUG_RETURN;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
leaq 0x154d9(%rip), %rax     # 0x1806c
leaq 0x8(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x1c77e(%rip), %r15     # 0x1f320
movq (%r15), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0xb4, 0xc(%rdi)
leaq 0x17e23(%rip), %r14     # 0x1a9e0
movq %r14, 0x10(%rdi)
leaq 0x1c578(%rip), %rcx     # 0x1f140
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x16ea2
movq 0x30(%rbx), %rdi
callq 0x150ee
movq %rax, %rdi
callq 0xd1e1
testq %rax, %rax
je 0x2d86
movq 0x30(%rbx), %rdi
callq 0x150ee
movq %rax, %rdi
callq 0xd1e1
testb $0x3, %al
jne 0x2d86
movq 0x30(%rbx), %rdi
callq 0x150ee
movq %rax, %rdi
callq 0xd1e1
cmpq 0x1c3a0(%rip), %rax     # 0x1efc0
je 0x2d86
movq 0x30(%rbx), %rdi
callq 0x150ee
movq %rax, %rdi
callq 0xd1e1
movq %rax, %rdi
callq 0x1518d
testq %rax, %rax
je 0x2d86
movq 0x30(%rbx), %rdi
callq 0x150ee
movq %rax, %rdi
callq 0xd1e1
movq %rax, %rdi
callq 0x1518d
testb $0x3, %al
jne 0x2d86
movq 0x30(%rbx), %rdi
callq 0x150ee
movq %rax, %rdi
callq 0xd1e1
movq %rax, %rdi
callq 0x1518d
cmpq 0x1c337(%rip), %rax     # 0x1efc0
je 0x2d86
movq %rax, %rdi
callq 0x1518d
movq %rax, %r14
movq 0x30(%rbx), %rdi
callq 0x1518d
movq %rax, %r15
andl $0x3, %r15d
movq 0x30(%rbx), %rdi
callq 0x1518d
movq %rax, %r12
cmpl $0x1, %r15d
jne 0x2cd8
movq 0x30(%rbx), %rdi
callq 0x150ee
movq %rax, %rdi
callq 0xd1e1
movq %rbx, %rdi
movq %r12, %rsi
jmp 0x2d5f
leaq 0x1c5b1(%rip), %r15     # 0x1f290
movq %r12, %rdi
movq %r15, %rsi
callq 0x150cc
movq %rax, %r12
leaq 0x15382(%rip), %rdi     # 0x18076
callq 0x1257b
movq %rax, %rdi
movq %r12, %rsi
callq 0x150cc
leaq -0x293(%rip), %rsi      # 0x2a78
movq %rbx, %rdi
movq %rax, %rdx
callq 0xdd3a
movq %rax, %r12
leaq 0x1536a(%rip), %rdi     # 0x1808a
callq 0x1257b
movq %rax, %r13
callq 0xd160
movq %rax, %rdi
movq %r15, %rsi
callq 0x150cc
movq %r13, %rdi
movq %rax, %rsi
callq 0x150cc
movq %rax, %rdi
movq %r14, %rsi
callq 0x150cc
movq %r12, %rdi
movq %rax, %rsi
callq 0x150cc
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0xde17
leaq 0x8(%rsp), %rdi
movl $0xc5, 0xc(%rdi)
callq 0x17027
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x1cb63(%rip), %rax     # 0x1f8f0
cmpl $0x0, (%rax)
je 0x2dd9
movq (%r15), %rax
movq 0x50(%rax), %rax
movq %r14, 0x10(%rax)
movq %r14, %rdi
callq 0x16604
testl %eax, %eax
je 0x2dd9
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0xc2, 0xc(%rax)
movq 0x30(%rbx), %rdi
callq 0x1518d
movq %rax, %rdi
callq 0xf0bc
leaq 0x15291(%rip), %rdi     # 0x18060
movq %rax, %rsi
xorl %eax, %eax
callq 0x16f13
callq 0x2050