// File: /workspace/github_c_makefile_star2_O0/dalnefre[P]kernel_abe/reduce.c
// Function: eval_send
BEH_DECL(eval_send)
{
	CONS* msg = WHAT;
	CONS* expr = map_get(msg, expr_symbol);
	CONS* state = MINE;
	CONS* cont = map_get(state, cont_symbol);
/*	CONS* env = map_get(state, env_symbol); */
	CONS* actor;

	DBUG_ENTER("eval_send");
	actor = car(expr);
	if (actorp(actor)) {
		DBUG_PRINT("", ("actor=%s", cons_to_str(actor)));
		expr = car(cdr(expr));
		DBUG_PRINT("", ("msg=%s", cons_to_str(expr)));
		SEND(actor, expr);
		/* FIXME: should send return NIL, rather than the message sent? */
	} else {	/* error */
		SEND(an_error, ATOM("send: actor required"));
		expr = undefined_symbol;
	}
	SEND(cont, map_put(NIL, expr_symbol, expr));
	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 0x1907d(%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 0x19044(%rip), %rsi     # 0x20140
xorl %eax, %eax
movl %eax, %edx
callq 0x171b0
movq %rax, -0x28(%rbp)
leaq 0x132ff(%rip), %rax     # 0x1a40f
movq %rax, -0x58(%rbp)
leaq 0x1926d(%rip), %rax     # 0x20388
movq (%rax), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %eax
movl %eax, -0x50(%rbp)
movl $0x3fc, -0x4c(%rbp)     # imm = 0x3FC
leaq 0x15b7a(%rip), %rax     # 0x1ccb0
movq %rax, -0x48(%rbp)
leaq 0x18fef(%rip), %rax     # 0x20130
movq %rax, -0x40(%rbp)
leaq 0x1923c(%rip), %rax     # 0x20388
movq (%rax), %rax
movq 0x50(%rax), %rax
movq %rax, -0x38(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x19910
movq -0x18(%rbp), %rdi
callq 0x16800
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
andq $0x3, %rax
cmpq $0x1, %rax
sete %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x7285
jmp 0x718f
leaq 0x1979a(%rip), %rax     # 0x20930
cmpl $0x0, (%rax)
je 0x71f4
leaq 0x191e6(%rip), %rax     # 0x20388
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x15b00(%rip), %rcx     # 0x1ccb0
movq %rcx, 0x10(%rax)
leaq 0x15af5(%rip), %rdi     # 0x1ccb0
callq 0x18d20
cmpl $0x0, %eax
je 0x71f4
leaq 0x191bc(%rip), %rax     # 0x20388
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x3ff, 0xc(%rax)       # imm = 0x3FF
movq -0x30(%rbp), %rdi
callq 0xe6d0
movq %rax, %rsi
leaq 0x1322c(%rip), %rdi     # 0x1a419
movb $0x0, %al
callq 0x199c0
jmp 0x71f6
movq -0x18(%rbp), %rdi
callq 0x16990
movq %rax, %rdi
callq 0x16800
movq %rax, -0x18(%rbp)
leaq 0x1971e(%rip), %rax     # 0x20930
cmpl $0x0, (%rax)
je 0x7270
leaq 0x1916a(%rip), %rax     # 0x20388
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x15a84(%rip), %rcx     # 0x1ccb0
movq %rcx, 0x10(%rax)
leaq 0x15a79(%rip), %rdi     # 0x1ccb0
callq 0x18d20
cmpl $0x0, %eax
je 0x7270
leaq 0x19140(%rip), %rax     # 0x20388
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x401, 0xc(%rax)       # imm = 0x401
movq -0x18(%rbp), %rdi
callq 0xe6d0
movq %rax, %rsi
leaq 0x131b9(%rip), %rdi     # 0x1a422
movb $0x0, %al
callq 0x199c0
jmp 0x7272
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0xcc90
jmp 0x72bf
movq -0x8(%rbp), %rax
movq %rax, -0x68(%rbp)
movq 0x18ecc(%rip), %rax     # 0x20160
movq %rax, -0x60(%rbp)
leaq 0x1318a(%rip), %rdi     # 0x1a429
callq 0x12b60
movq -0x68(%rbp), %rdi
movq -0x60(%rbp), %rsi
movq %rax, %rdx
callq 0xcc90
movq 0x18ead(%rip), %rax     # 0x20168
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x70(%rbp)
movq 0x18e72(%rip), %rsi     # 0x20148
movq -0x18(%rbp), %rdx
leaq 0x19017(%rip), %rdi     # 0x202f8
callq 0x172a0
movq -0x78(%rbp), %rdi
movq -0x70(%rbp), %rsi
movq %rax, %rdx
callq 0xcc90
movl $0x409, -0x4c(%rbp)     # imm = 0x409
leaq -0x58(%rbp), %rdi
callq 0x19ae0
addq $0x80, %rsp
popq %rbp
retq
nop