// File: /workspace/github_c_makefile_star2_O3/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 $0x38, %rsp
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
callq 0x11685
movq %rax, %r13
movq %rbx, 0x8(%rsp)
movq 0x30(%rbx), %rdi
callq 0x115e6
movq %rax, %rdi
callq 0x96d9
movq %rax, %r14
movq 0x1500f(%rip), %rsi     # 0x1b188
movq %rax, %rdi
xorl %edx, %edx
callq 0x11aba
movq %rax, %rbx
movq 0x14fcb(%rip), %rsi     # 0x1b158
movq %r14, %rdi
xorl %edx, %edx
callq 0x11aba
movq %rax, %r14
leaq 0xe29d(%rip), %rax      # 0x1443e
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x151d8(%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 0x10939(%rip), %r12     # 0x16b04
movq %r12, 0x10(%rdi)
leaq 0x14f5a(%rip), %rcx     # 0x1b130
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x1339a
leaq 0x15746(%rip), %rbp     # 0x1b930
cmpl $0x0, (%rbp)
je 0x6276
movq (%r15), %rax
movq 0x50(%rax), %rax
movq %r12, 0x10(%rax)
movq %r12, %rdi
callq 0x12afc
testl %eax, %eax
je 0x6232
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x424, 0xc(%rax)       # imm = 0x424
movq %rbx, %rdi
callq 0xb5b4
leaq 0xe223(%rip), %rdi      # 0x1444b
movq %rax, %rsi
xorl %eax, %eax
callq 0x1340b
cmpl $0x0, (%rbp)
je 0x6276
movq (%r15), %rax
movq 0x50(%rax), %rax
movq %r12, 0x10(%rax)
movq %r12, %rdi
callq 0x12afc
testl %eax, %eax
je 0x6276
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x425, 0xc(%rax)       # imm = 0x425
movq %r13, %rdi
callq 0xb5b4
leaq 0xe1b6(%rip), %rdi      # 0x14422
movq %rax, %rsi
xorl %eax, %eax
callq 0x1340b
leaq 0x1507b(%rip), %rbp     # 0x1b2f8
cmpq %rbp, %r13
movq %r14, (%rsp)
movq %rbx, %r12
je 0x62fb
testq %r13, %r13
je 0x62fb
movl %r13d, %eax
andl $0x3, %eax
jne 0x62fb
leaq 0x1505b(%rip), %r14     # 0x1b2f8
leaq 0xded2(%rip), %r15      # 0x14176
movq %r14, %rbp
movq %r15, %rdi
callq 0xea73
movq %rax, %rbx
movq %r13, %rdi
callq 0x115e6
movq %rax, %rdi
movq %r14, %rsi
callq 0x115c4
movq %rbx, %rdi
movq %rax, %rsi
callq 0x115c4
movq %rax, %rdi
movq %rbp, %rsi
callq 0x115c4
movq %rax, %rbp
movq %r13, %rdi
callq 0x11685
cmpq %r14, %rax
je 0x62fb
movq %rax, %r13
testq %rax, %rax
je 0x62fb
movl %r13d, %eax
andl $0x3, %eax
je 0x62a7
movq %rbp, %rdi
callq 0x118a7
movq %rax, %r13
leaq 0x15623(%rip), %rbp     # 0x1b930
cmpl $0x0, (%rbp)
movq %r12, %rbx
movq (%rsp), %r14
leaq 0x15069(%rip), %r15     # 0x1b388
leaq 0x107de(%rip), %r12     # 0x16b04
je 0x63ae
movq (%r15), %rax
movq 0x50(%rax), %rax
movq %r12, 0x10(%rax)
movq %r12, %rdi
callq 0x12afc
testl %eax, %eax
je 0x636a
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x42c, 0xc(%rax)       # imm = 0x42C
movq %r14, %rdi
callq 0xb5b4
leaq 0xdd7f(%rip), %rdi      # 0x140df
movq %rax, %rsi
xorl %eax, %eax
callq 0x1340b
cmpl $0x0, (%rbp)
je 0x63ae
movq (%r15), %rax
movq 0x50(%rax), %rax
movq %r12, 0x10(%rax)
movq %r12, %rdi
callq 0x12afc
testl %eax, %eax
je 0x63ae
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x42d, 0xc(%rax)       # imm = 0x42D
movq %r13, %rdi
callq 0xb5b4
leaq 0xe1f1(%rip), %rdi      # 0x14595
movq %rax, %rsi
xorl %eax, %eax
callq 0x1340b
movq 0x14da3(%rip), %rsi     # 0x1b158
leaq 0x14f3c(%rip), %rdi     # 0x1b2f8
movq %r14, %rdx
callq 0x11b2c
movq 0x14d75(%rip), %rsi     # 0x1b140
movq 0x14dc6(%rip), %rdx     # 0x1b198
movq %rax, %rdi
callq 0x11b2c
movq 0x14d67(%rip), %rsi     # 0x1b148
movq %rax, %rdi
movq %r13, %rdx
callq 0x11b2c
movq 0x8(%rsp), %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0xa30f
leaq 0x10(%rsp), %rdi
movl $0x433, 0xc(%rdi)       # imm = 0x433
callq 0x1351f
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq