// File: /workspace/github_c_makefile_star2_O1/dalnefre[P]kernel_abe/reduce.c
// Function: reduce_define
BEH_DECL(reduce_define)
{
	CONS* msg = WHAT;
	CONS* expr = map_get(msg, expr_symbol);
	CONS* cont = map_get(msg, cont_symbol);
	CONS* env = map_get(msg, env_symbol);
	CONS* binding;
	CONS* state;
	CONS* apply;

	DBUG_ENTER("reduce_define");
	DBUG_PRINT("", ("expr=%s", cons_to_str(expr)));
	if (!consp(expr) || !atomp(car(expr))) {
		SEND(an_error, ATOM("define: atom required"));
		SEND(cont, map_put(NIL, expr_symbol, undefined_symbol));
		DBUG_RETURN;
	}
	binding = extend_env(env, car(expr), undefined_symbol);
	state = NIL;
	state = map_put(state, cont_symbol, cont);
	state = map_put(state, ATOM("binding"), binding);
	apply = ACTOR(apply_define, state);
	msg = NIL;
	msg = map_put(msg, env_symbol, env);
	msg = map_put(msg, cont_symbol, apply);
	msg = map_put(msg, expr_symbol, car(cdr(expr)));
	SEND(a_reduce, 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 0x11655
movq %rax, %r12
movq 0x1671c(%rip), %rsi     # 0x1b148
movq %rax, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r14
movq 0x16700(%rip), %rsi     # 0x1b140
movq %r12, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r15
movq 0x16704(%rip), %rsi     # 0x1b158
movq %r12, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %rbp
leaq 0xf8ac(%rip), %rax      # 0x14314
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x16911(%rip), %r12     # 0x1b388
movq (%r12), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x2b5, 0xc(%rdi)       # imm = 0x2B5
leaq 0x12071(%rip), %r13     # 0x16b04
movq %r13, 0x10(%rdi)
leaq 0x16692(%rip), %rcx     # 0x1b130
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x13322
leaq 0x16e7e(%rip), %rax     # 0x1b930
cmpl $0x0, (%rax)
je 0x4af7
movq (%r12), %rax
movq 0x50(%rax), %rax
movq %r13, 0x10(%rax)
movq %r13, %rdi
callq 0x12a94
testl %eax, %eax
je 0x4af7
movq (%r12), %rax
movq 0x50(%rax), %rax
movl $0x2b6, 0xc(%rax)       # imm = 0x2B6
movq %r14, %rdi
callq 0xb5ac
leaq 0xfaa8(%rip), %rdi      # 0x14595
movq %rax, %rsi
xorl %eax, %eax
callq 0x13393
testq %r14, %r14
sete %al
testb $0x3, %r14b
setne %cl
orb %al, %cl
jne 0x4bbb
movq %r14, %rdi
callq 0x115b6
andl $0x3, %eax
cmpl $0x2, %eax
jne 0x4bbb
movq %r14, %rdi
callq 0x115b6
movq %rax, %r13
andl $0x3, %eax
cmpl $0x2, %eax
jne 0x4d26
movq %rbp, (%rsp)
cmpq 0x1647e(%rip), %rbp     # 0x1afc0
je 0x4b9c
movq 0x1661d(%rip), %rax     # 0x1b168
movq %rax, 0x8(%rsp)
leaq 0x167a1(%rip), %r12     # 0x1b2f8
movq (%rsp), %rbp
testq %rbp, %rbp
je 0x4d07
movl %ebp, %eax
andl $0x3, %eax
jne 0x4d07
movq %rbp, %rdi
callq 0x115b6
movq %rax, %rdi
callq 0x115b6
cmpq 0x1661a(%rip), %rax     # 0x1b1a0
je 0x4c0e
movq %rbp, %rdi
callq 0x11655
movq %rax, %rbp
cmpq %r12, %rax
jne 0x4b5b
leaq 0x102c6(%rip), %rdi     # 0x14e69
leaq 0xf483(%rip), %rsi      # 0x1402d
leaq 0x10284(%rip), %rcx     # 0x14e35
movl $0x29b, %edx            # imm = 0x29B
callq 0x2100
movq 0x1659e(%rip), %r14     # 0x1b160
leaq 0xf759(%rip), %rdi      # 0x14322
callq 0xea8c
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0xa327
movq 0x16565(%rip), %rsi     # 0x1b148
movq 0x1657e(%rip), %rdx     # 0x1b168
leaq 0x16707(%rip), %rdi     # 0x1b2f8
callq 0x11afc
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0xa327
movl $0x2ba, %eax            # imm = 0x2BA
jmp 0x4ceb
movq %r13, %rdi
movq 0x8(%rsp), %rsi
callq 0x11594
movq %rax, %r13
movq %rbp, %rdi
callq 0x11655
movq %r13, %rdi
movq %rax, %rsi
callq 0x11594
movq %rbp, %rdi
movq %rax, %rsi
callq 0x11702
movq 0x164fd(%rip), %rsi     # 0x1b140
leaq 0x166ae(%rip), %rbp     # 0x1b2f8
movq %rbp, %rdi
movq %r15, %rdx
callq 0x11afc
movq %rax, %r15
leaq 0xf670(%rip), %rdi      # 0x142cf
callq 0xea8c
movq %r15, %rdi
movq %rax, %rsi
movq %r13, %rdx
callq 0x11afc
leaq -0x402(%rip), %rsi      # 0x4877
movq %rbx, %rdi
movq %rax, %rdx
callq 0xa24a
movq %rax, %r15
movq 0x164ca(%rip), %rsi     # 0x1b158
movq %rbp, %rdi
movq (%rsp), %rdx
callq 0x11afc
movq 0x1649f(%rip), %rsi     # 0x1b140
movq %rax, %rdi
movq %r15, %rdx
callq 0x11afc
movq %rax, %r15
movq 0x16492(%rip), %r12     # 0x1b148
movq %r14, %rdi
callq 0x11655
movq %rax, %rdi
callq 0x115b6
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x11afc
movq 0x164a5(%rip), %rsi     # 0x1b180
movq %rbx, %rdi
movq %rax, %rdx
callq 0xa327
movl $0x2c6, %eax            # imm = 0x2C6
leaq 0x10(%rsp), %rdi
movl %eax, 0xc(%rdi)
callq 0x134a7
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x10150(%rip), %rdi     # 0x14e5e
leaq 0xf318(%rip), %rsi      # 0x1402d
leaq 0x10119(%rip), %rcx     # 0x14e35
movl $0x295, %edx            # imm = 0x295
callq 0x2100
leaq 0x100fc(%rip), %rdi     # 0x14e29
leaq 0xf2f9(%rip), %rsi      # 0x1402d
leaq 0x100fa(%rip), %rcx     # 0x14e35
movl $0x292, %edx            # imm = 0x292
callq 0x2100