// File: /workspace/github_c_makefile_star2_O0/dalnefre[P]kernel_abe/reduce.c
// Function: apply_expr
BEH_DECL(apply_expr)
{
	CONS* msg = WHAT;
	CONS* expr = map_get(msg, expr_symbol);
	CONS* state = MINE;
	CONS* form = map_get(state, form_symbol);
	CONS* cont = map_get(state, cont_symbol);
	CONS* env = map_get(state, env_symbol);
	
	DBUG_ENTER("apply_expr");
	if (actorp(expr)) {
		msg = NIL;
		msg = map_put(msg, env_symbol, env);
		msg = map_put(msg, cont_symbol, cont);
		msg = map_put(msg, expr_symbol, form);
		SEND(expr, msg);
	} else {	/* error */
		/* FIXME: consider the meaning of non-actor applications, such as numbers */
		SEND(an_error, ATOM("apply: actor required"));
		SEND(cont, map_put(NIL, expr_symbol, undefined_symbol));
	}
	DBUG_RETURN;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x16990
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq 0x1da0d(%rip), %rsi     # 0x20148
xorl %eax, %eax
movl %eax, %edx
callq 0x171b0
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x16800
movq %rax, %rdi
callq 0xba80
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
movq 0x1d9e4(%rip), %rsi     # 0x20150
xorl %eax, %eax
movl %eax, %edx
callq 0x171b0
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rdi
movq 0x1d9bc(%rip), %rsi     # 0x20140
xorl %eax, %eax
movl %eax, %edx
callq 0x171b0
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rdi
movq 0x1d9bc(%rip), %rsi     # 0x20158
xorl %eax, %eax
movl %eax, %edx
callq 0x171b0
movq %rax, -0x38(%rbp)
leaq 0x178c6(%rip), %rax     # 0x1a076
movq %rax, -0x60(%rbp)
leaq 0x1dbcd(%rip), %rax     # 0x20388
movq (%rax), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %eax
movl %eax, -0x58(%rbp)
movl $0x78, -0x54(%rbp)
leaq 0x1a4da(%rip), %rax     # 0x1ccb0
movq %rax, -0x50(%rbp)
leaq 0x1d94f(%rip), %rax     # 0x20130
movq %rax, -0x48(%rbp)
leaq 0x1db9c(%rip), %rax     # 0x20388
movq (%rax), %rax
movq 0x50(%rax), %rax
movq %rax, -0x40(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x19910
movq -0x18(%rbp), %rax
andq $0x3, %rax
cmpq $0x1, %rax
sete %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x2882
leaq 0x1dad5(%rip), %rax     # 0x202f8
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq 0x1d926(%rip), %rsi     # 0x20158
movq -0x38(%rbp), %rdx
callq 0x172a0
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq 0x1d8f6(%rip), %rsi     # 0x20140
movq -0x30(%rbp), %rdx
callq 0x172a0
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq 0x1d8e6(%rip), %rsi     # 0x20148
movq -0x28(%rbp), %rdx
callq 0x172a0
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x10(%rbp), %rdx
callq 0xcc90
jmp 0x28eb
movq -0x8(%rbp), %rax
movq %rax, -0x80(%rbp)
movq 0x1d8cf(%rip), %rax     # 0x20160
movq %rax, -0x78(%rbp)
leaq 0x177e5(%rip), %rdi     # 0x1a081
callq 0x12b60
movq -0x80(%rbp), %rdi
movq -0x78(%rbp), %rsi
movq %rax, %rdx
callq 0xcc90
movq -0x8(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x68(%rbp)
movq 0x1d880(%rip), %rsi     # 0x20148
movq 0x1d899(%rip), %rdx     # 0x20168
leaq 0x1da22(%rip), %rdi     # 0x202f8
callq 0x172a0
movq -0x70(%rbp), %rdi
movq -0x68(%rbp), %rsi
movq %rax, %rdx
callq 0xcc90
movl $0x84, -0x54(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x19ae0
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)