// File: /workspace/github_c_makefile_star2_O1/dalnefre[P]kernel_abe/reduce.c
// Function: invoke_actor
BEH_DECL(invoke_actor)
{
	CONS* msg = WHAT;
	CONS* state = MINE;
	CONS* beh = map_get(state, beh_symbol);
	CONS* env = map_get(state, env_symbol);
	CONS* expr = NIL;

	DBUG_ENTER("invoke_actor");
	DBUG_PRINT("", ("beh=%s", cons_to_str(beh)));
	DBUG_PRINT("", ("msg=%s", cons_to_str(msg)));
	while (consp(msg) && !nilp(msg)) {			/* quote already-evaluated arguments */
		expr = cons(cons(ATOM("literal"), cons(car(msg), NIL)), expr);
		/* FIXME: consider using CQ macros for faster list construction */
		msg = cdr(msg);
	}
	expr = reverse(expr);
	DBUG_PRINT("", ("env=%s", cons_to_str(env)));
	DBUG_PRINT("", ("expr=%s", cons_to_str(expr)));
	msg = NIL;
	msg = map_put(msg, env_symbol, env);
	msg = map_put(msg, cont_symbol, a_sink);	/* actors do not return a value */
	msg = map_put(msg, expr_symbol, expr);
	SEND(beh, msg);
	DBUG_RETURN;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
callq 0x11655
movq %rax, %r13
movq %rbx, 0x18(%rsp)
movq 0x30(%rbx), %rdi
callq 0x115b6
movq %rax, %rdi
callq 0x9721
movq %rax, %r14
movq 0x14fbf(%rip), %rsi     # 0x1b188
movq %rax, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %rbx
movq 0x14f7b(%rip), %rsi     # 0x1b158
movq %r14, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r14
leaq 0xe24d(%rip), %rax      # 0x1443e
leaq 0x20(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x15188(%rip), %r15     # 0x1b388
movq (%r15), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x423, 0xc(%rdi)       # imm = 0x423
leaq 0x108e9(%rip), %r12     # 0x16b04
movq %r12, 0x10(%rdi)
leaq 0x14f0a(%rip), %rcx     # 0x1b130
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x13322
leaq 0x156f6(%rip), %rbp     # 0x1b930
cmpl $0x0, (%rbp)
je 0x627e
movq (%r15), %rax
movq 0x50(%rax), %rax
movq %r12, 0x10(%rax)
movq %r12, %rdi
callq 0x12a94
testl %eax, %eax
je 0x627e
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x424, 0xc(%rax)       # imm = 0x424
movq %rbx, %rdi
callq 0xb5ac
leaq 0xe1d7(%rip), %rdi      # 0x1444b
movq %rax, %rsi
xorl %eax, %eax
callq 0x13393
cmpl $0x0, (%rbp)
je 0x62c2
movq (%r15), %rax
movq 0x50(%rax), %rax
movq %r12, 0x10(%rax)
movq %r12, %rdi
callq 0x12a94
testl %eax, %eax
je 0x62c2
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x425, 0xc(%rax)       # imm = 0x425
movq %r13, %rdi
callq 0xb5ac
leaq 0xe16a(%rip), %rdi      # 0x14422
movq %rax, %rsi
xorl %eax, %eax
callq 0x13393
leaq 0x1502f(%rip), %rbp     # 0x1b2f8
cmpq %rbp, %r13
movq %rbx, 0x10(%rsp)
movq %r14, 0x8(%rsp)
movq %r15, %r12
je 0x634d
testq %r13, %r13
je 0x634d
movl %r13d, %eax
andl $0x3, %eax
jne 0x634d
leaq 0x15009(%rip), %r14     # 0x1b2f8
leaq 0xde80(%rip), %r15      # 0x14176
movq %r14, %rbp
movq %r15, %rdi
callq 0xea8c
movq %rax, %rbx
movq %r13, %rdi
callq 0x115b6
movq %rax, %rdi
movq %r14, %rsi
callq 0x11594
movq %rbx, %rdi
movq %rax, %rsi
callq 0x11594
movq %rax, %rdi
movq %rbp, %rsi
callq 0x11594
movq %rax, %rbp
movq %r13, %rdi
callq 0x11655
cmpq %r14, %rax
je 0x634d
movq %rax, %r13
testq %rax, %rax
je 0x634d
movl %r13d, %eax
andl $0x3, %eax
je 0x62f9
movq %rbp, %rdi
callq 0x11877
movq %rax, %r13
leaq 0x155d1(%rip), %rbx     # 0x1b930
cmpl $0x0, (%rbx)
movq 0x8(%rsp), %r14
leaq 0x10796(%rip), %r15     # 0x16b04
je 0x63b0
movq (%r12), %rax
movq 0x50(%rax), %rax
movq %r15, 0x10(%rax)
movq %r15, %rdi
callq 0x12a94
testl %eax, %eax
je 0x63b0
movq (%r12), %rax
movq 0x50(%rax), %rax
movl $0x42c, 0xc(%rax)       # imm = 0x42C
movq %r14, %rdi
callq 0xb5ac
leaq 0xdd39(%rip), %rdi      # 0x140df
movq %rax, %rsi
xorl %eax, %eax
callq 0x13393
cmpl $0x0, (%rbx)
movq 0x10(%rsp), %rbx
je 0x63fa
movq (%r12), %rax
movq 0x50(%rax), %rax
movq %r15, 0x10(%rax)
movq %r15, %rdi
callq 0x12a94
testl %eax, %eax
je 0x63fa
movq (%r12), %rax
movq 0x50(%rax), %rax
movl $0x42d, 0xc(%rax)       # imm = 0x42D
movq %r13, %rdi
callq 0xb5ac
leaq 0xe1a5(%rip), %rdi      # 0x14595
movq %rax, %rsi
xorl %eax, %eax
callq 0x13393
movq 0x14d57(%rip), %rsi     # 0x1b158
leaq 0x14ef0(%rip), %rdi     # 0x1b2f8
movq %r14, %rdx
callq 0x11afc
movq 0x14d29(%rip), %rsi     # 0x1b140
movq 0x14d7a(%rip), %rdx     # 0x1b198
movq %rax, %rdi
callq 0x11afc
movq 0x14d1b(%rip), %rsi     # 0x1b148
movq %rax, %rdi
movq %r13, %rdx
callq 0x11afc
movq 0x18(%rsp), %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0xa327
leaq 0x20(%rsp), %rdi
movl $0x433, 0xc(%rdi)       # imm = 0x433
callq 0x134a7
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq