// File: /workspace/github_c_makefile_star2_O1/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 0x15479(%rip), %rax     # 0x1806c
leaq 0x8(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x1c71e(%rip), %r15     # 0x1f320
movq (%r15), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0xb4, 0xc(%rdi)
leaq 0x17dc3(%rip), %r14     # 0x1a9e0
movq %r14, 0x10(%rdi)
leaq 0x1c518(%rip), %rcx     # 0x1f140
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x16ef2
movq 0x30(%rbx), %rdi
callq 0x15186
movq %rax, %rdi
callq 0xd2f1
testq %rax, %rax
je 0x2de6
movq 0x30(%rbx), %rdi
callq 0x15186
movq %rax, %rdi
callq 0xd2f1
testb $0x3, %al
jne 0x2de6
movq 0x30(%rbx), %rdi
callq 0x15186
movq %rax, %rdi
callq 0xd2f1
cmpq 0x1c340(%rip), %rax     # 0x1efc0
je 0x2de6
movq 0x30(%rbx), %rdi
callq 0x15186
movq %rax, %rdi
callq 0xd2f1
movq %rax, %rdi
callq 0x15225
testq %rax, %rax
je 0x2de6
movq 0x30(%rbx), %rdi
callq 0x15186
movq %rax, %rdi
callq 0xd2f1
movq %rax, %rdi
callq 0x15225
testb $0x3, %al
jne 0x2de6
movq 0x30(%rbx), %rdi
callq 0x15186
movq %rax, %rdi
callq 0xd2f1
movq %rax, %rdi
callq 0x15225
cmpq 0x1c2d7(%rip), %rax     # 0x1efc0
je 0x2de6
movq %rax, %rdi
callq 0x15225
movq %rax, %r14
movq 0x30(%rbx), %rdi
callq 0x15225
movq %rax, %r15
andl $0x3, %r15d
movq 0x30(%rbx), %rdi
callq 0x15225
movq %rax, %r12
cmpl $0x1, %r15d
jne 0x2d38
movq 0x30(%rbx), %rdi
callq 0x15186
movq %rax, %rdi
callq 0xd2f1
movq %rbx, %rdi
movq %r12, %rsi
jmp 0x2dbf
leaq 0x1c551(%rip), %r15     # 0x1f290
movq %r12, %rdi
movq %r15, %rsi
callq 0x15164
movq %rax, %r12
leaq 0x15322(%rip), %rdi     # 0x18076
callq 0x1265c
movq %rax, %rdi
movq %r12, %rsi
callq 0x15164
leaq -0x293(%rip), %rsi      # 0x2ad8
movq %rbx, %rdi
movq %rax, %rdx
callq 0xde1a
movq %rax, %r12
leaq 0x1530a(%rip), %rdi     # 0x1808a
callq 0x1265c
movq %rax, %r13
callq 0xd26a
movq %rax, %rdi
movq %r15, %rsi
callq 0x15164
movq %r13, %rdi
movq %rax, %rsi
callq 0x15164
movq %rax, %rdi
movq %r14, %rsi
callq 0x15164
movq %r12, %rdi
movq %rax, %rsi
callq 0x15164
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0xdef7
leaq 0x8(%rsp), %rdi
movl $0xc5, 0xc(%rdi)
callq 0x17077
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x1cb03(%rip), %rax     # 0x1f8f0
cmpl $0x0, (%rax)
je 0x2e39
movq (%r15), %rax
movq 0x50(%rax), %rax
movq %r14, 0x10(%rax)
movq %r14, %rdi
callq 0x16664
testl %eax, %eax
je 0x2e39
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0xc2, 0xc(%rax)
movq 0x30(%rbx), %rdi
callq 0x15225
movq %rax, %rdi
callq 0xf17c
leaq 0x15231(%rip), %rdi     # 0x18060
movq %rax, %rsi
xorl %eax, %eax
callq 0x16f63
callq 0x2050