// File: /workspace/github_c_makefile_star2_O2/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 0x14879(%rip), %rax     # 0x1706c
leaq 0x8(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x1bb1e(%rip), %r15     # 0x1e320
movq (%r15), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0xb4, 0xc(%rdi)
leaq 0x1719f(%rip), %r14     # 0x199bc
movq %r14, 0x10(%rdi)
leaq 0x1b918(%rip), %rcx     # 0x1e140
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x16679
movq 0x30(%rbx), %rdi
callq 0x147fb
movq %rax, %rdi
callq 0xcd5b
testq %rax, %rax
je 0x29e6
movq 0x30(%rbx), %rdi
callq 0x147fb
movq %rax, %rdi
callq 0xcd5b
testb $0x3, %al
jne 0x29e6
movq 0x30(%rbx), %rdi
callq 0x147fb
movq %rax, %rdi
callq 0xcd5b
cmpq 0x1b740(%rip), %rax     # 0x1dfc0
je 0x29e6
movq 0x30(%rbx), %rdi
callq 0x147fb
movq %rax, %rdi
callq 0xcd5b
movq %rax, %rdi
callq 0x14906
testq %rax, %rax
je 0x29e6
movq 0x30(%rbx), %rdi
callq 0x147fb
movq %rax, %rdi
callq 0xcd5b
movq %rax, %rdi
callq 0x14906
testb $0x3, %al
jne 0x29e6
movq 0x30(%rbx), %rdi
callq 0x147fb
movq %rax, %rdi
callq 0xcd5b
movq %rax, %rdi
callq 0x14906
cmpq 0x1b6d7(%rip), %rax     # 0x1dfc0
je 0x29e6
movq %rax, %rdi
callq 0x14906
movq %rax, %r14
movq 0x30(%rbx), %rdi
callq 0x14906
movq %rax, %r15
andl $0x3, %r15d
movq 0x30(%rbx), %rdi
callq 0x14906
movq %rax, %r12
cmpl $0x1, %r15d
jne 0x2938
movq 0x30(%rbx), %rdi
callq 0x147fb
movq %rax, %rdi
callq 0xcd5b
movq %rbx, %rdi
movq %r12, %rsi
jmp 0x29bf
leaq 0x1b951(%rip), %r15     # 0x1e290
movq %r12, %rdi
movq %r15, %rsi
callq 0x14764
movq %rax, %r12
leaq 0x14722(%rip), %rdi     # 0x17076
callq 0x11f1f
movq %rax, %rdi
movq %r12, %rsi
callq 0x14764
leaq -0x293(%rip), %rsi      # 0x26d8
movq %rbx, %rdi
movq %rax, %rdx
callq 0xd9b7
movq %rax, %r12
leaq 0x1470a(%rip), %rdi     # 0x1708a
callq 0x11f1f
movq %rax, %r13
callq 0xccde
movq %rax, %rdi
movq %r15, %rsi
callq 0x14764
movq %r13, %rdi
movq %rax, %rsi
callq 0x14764
movq %rax, %rdi
movq %r14, %rsi
callq 0x14764
movq %r12, %rdi
movq %rax, %rsi
callq 0x14764
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0xda94
leaq 0x8(%rsp), %rdi
movl $0xc5, 0xc(%rdi)
callq 0x167f2
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x1bf03(%rip), %rax     # 0x1e8f0
cmpl $0x0, (%rax)
je 0x2a39
movq (%r15), %rax
movq 0x50(%rax), %rax
movq %r14, 0x10(%rax)
movq %r14, %rdi
callq 0x15df4
testl %eax, %eax
je 0x2a39
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0xc2, 0xc(%rax)
movq 0x30(%rbx), %rdi
callq 0x14906
movq %rax, %rdi
callq 0xed08
leaq 0x14631(%rip), %rdi     # 0x17060
movq %rax, %rsi
xorl %eax, %eax
callq 0x166f0
callq 0x2050