// File: /workspace/github_c_makefile_star2_O2/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 0x10e46
movq %rax, %r12
movq 0x15b24(%rip), %rsi     # 0x1a158
movq %rax, %rdi
xorl %edx, %edx
callq 0x112c7
movq %rax, %r14
movq 0x15b08(%rip), %rsi     # 0x1a150
movq %r12, %rdi
xorl %edx, %edx
callq 0x112c7
movq %rax, %r15
movq 0x15b0c(%rip), %rsi     # 0x1a168
movq %r12, %rdi
xorl %edx, %edx
callq 0x112c7
movq %rax, %rbp
leaq 0xeca4(%rip), %rax      # 0x13314
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x15d19(%rip), %r13     # 0x1a398
movq (%r13), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x2b5, 0xc(%rdi)       # imm = 0x2B5
leaq 0x11449(%rip), %r12     # 0x15ae4
movq %r12, 0x10(%rdi)
leaq 0x15a9a(%rip), %rcx     # 0x1a140
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x12bb9
leaq 0x16286(%rip), %rax     # 0x1a940
cmpl $0x0, (%rax)
je 0x46ff
movq (%r13), %rax
movq 0x50(%rax), %rax
movq %r12, 0x10(%rax)
movq %r12, %rdi
callq 0x12334
testl %eax, %eax
je 0x46ff
movq (%r13), %rax
movq 0x50(%rax), %rax
movl $0x2b6, 0xc(%rax)       # imm = 0x2B6
movq %r14, %rdi
callq 0xb248
leaq 0xeea0(%rip), %rdi      # 0x13595
movq %rax, %rsi
xorl %eax, %eax
callq 0x12c30
testq %r14, %r14
sete %al
testb $0x3, %r14b
setne %cl
orb %al, %cl
jne 0x479a
movq %r14, %rdi
callq 0x10d3b
andl $0x3, %eax
cmpl $0x2, %eax
jne 0x479a
movq %rbp, (%rsp)
movq %r14, %rdi
callq 0x10d3b
movq %rax, %rbp
andl $0x3, %eax
cmpl $0x2, %eax
jne 0x4924
movq 0x15a32(%rip), %rax     # 0x1a178
movq %rax, 0x8(%rsp)
leaq 0x15bb6(%rip), %r12     # 0x1a308
movq (%rsp), %r13
cmpq %r12, %r13
je 0x48e6
testq %r13, %r13
je 0x4905
movl %r13d, %eax
andl $0x3, %eax
jne 0x4905
movq %r13, %rdi
callq 0x10d3b
movq %rax, %rdi
callq 0x10d3b
cmpq 0x15a25(%rip), %rax     # 0x1a1b0
je 0x47ed
movq %r13, %rdi
callq 0x10e46
movq %rax, %r13
jmp 0x4756
movq 0x159cf(%rip), %r14     # 0x1a170
leaq 0xeb7a(%rip), %rdi      # 0x13322
callq 0xe45f
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x9fd4
movq 0x15996(%rip), %rsi     # 0x1a158
movq 0x159af(%rip), %rdx     # 0x1a178
leaq 0x15b38(%rip), %rdi     # 0x1a308
callq 0x11339
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x9fd4
movl $0x2ba, %eax            # imm = 0x2BA
jmp 0x48ca
movq %rbp, %rdi
movq 0x8(%rsp), %rsi
callq 0x10ca4
movq %rax, %r12
movq %r13, %rdi
callq 0x10e46
movq %r12, %rdi
movq %rax, %rsi
callq 0x10ca4
movq %r13, %rdi
movq %rax, %rsi
callq 0x10f5f
movq 0x1592e(%rip), %rsi     # 0x1a150
leaq 0x15adf(%rip), %r13     # 0x1a308
movq %r13, %rdi
movq %r15, %rdx
callq 0x11339
movq %rax, %r15
leaq 0xea91(%rip), %rdi      # 0x132cf
callq 0xe45f
movq %r15, %rdi
movq %rax, %rsi
movq %r12, %rdx
callq 0x11339
leaq -0x3d9(%rip), %rsi      # 0x447f
movq %rbx, %rdi
movq %rax, %rdx
callq 0x9ef7
movq %rax, %r15
movq 0x158fb(%rip), %rsi     # 0x1a168
movq %r13, %rdi
movq (%rsp), %rdx
callq 0x11339
movq 0x158d0(%rip), %rsi     # 0x1a150
movq %rax, %rdi
movq %r15, %rdx
callq 0x11339
movq %rax, %r15
movq 0x158c3(%rip), %r12     # 0x1a158
movq %r14, %rdi
callq 0x10e46
movq %rax, %rdi
callq 0x10d3b
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x11339
movq 0x158d6(%rip), %rsi     # 0x1a190
movq %rbx, %rdi
movq %rax, %rdx
callq 0x9fd4
movl $0x2c6, %eax            # imm = 0x2C6
leaq 0x10(%rsp), %rdi
movl %eax, 0xc(%rdi)
callq 0x12d32
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xf57c(%rip), %rdi      # 0x13e69
leaq 0xe739(%rip), %rsi      # 0x1302d
leaq 0xf53a(%rip), %rcx      # 0x13e35
movl $0x29b, %edx            # imm = 0x29B
callq 0x2100
leaq 0xf552(%rip), %rdi      # 0x13e5e
leaq 0xe71a(%rip), %rsi      # 0x1302d
leaq 0xf51b(%rip), %rcx      # 0x13e35
movl $0x295, %edx            # imm = 0x295
callq 0x2100
leaq 0xf4fe(%rip), %rdi      # 0x13e29
leaq 0xe6fb(%rip), %rsi      # 0x1302d
leaq 0xf4fc(%rip), %rcx      # 0x13e35
movl $0x292, %edx            # imm = 0x292
callq 0x2100