// File: /workspace/github_c_makefile_star2_O3/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 0x11685
movq %rax, %r12
movq 0x16770(%rip), %rsi     # 0x1b148
movq %rax, %rdi
xorl %edx, %edx
callq 0x11aba
movq %rax, %r14
movq 0x16754(%rip), %rsi     # 0x1b140
movq %r12, %rdi
xorl %edx, %edx
callq 0x11aba
movq %rax, %r15
movq 0x16758(%rip), %rsi     # 0x1b158
movq %r12, %rdi
xorl %edx, %edx
callq 0x11aba
movq %rax, %rbp
leaq 0xf900(%rip), %rax      # 0x14314
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x16965(%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 0x120c5(%rip), %r13     # 0x16b04
movq %r13, 0x10(%rdi)
leaq 0x166e6(%rip), %rcx     # 0x1b130
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x1339a
leaq 0x16ed2(%rip), %rax     # 0x1b930
cmpl $0x0, (%rax)
je 0x4aa3
movq (%r12), %rax
movq 0x50(%rax), %rax
movq %r13, 0x10(%rax)
movq %r13, %rdi
callq 0x12afc
testl %eax, %eax
je 0x4aa3
movq (%r12), %rax
movq 0x50(%rax), %rax
movl $0x2b6, 0xc(%rax)       # imm = 0x2B6
movq %r14, %rdi
callq 0xb5b4
leaq 0xfafc(%rip), %rdi      # 0x14595
movq %rax, %rsi
xorl %eax, %eax
callq 0x1340b
testq %r14, %r14
sete %al
testb $0x3, %r14b
setne %cl
orb %al, %cl
jne 0x4b67
movq %r14, %rdi
callq 0x115e6
andl $0x3, %eax
cmpl $0x2, %eax
jne 0x4b67
movq %r14, %rdi
callq 0x115e6
movq %rax, %r13
andl $0x3, %eax
cmpl $0x2, %eax
jne 0x4cd2
movq %rbp, (%rsp)
cmpq 0x164d2(%rip), %rbp     # 0x1afc0
je 0x4b48
movq 0x16671(%rip), %rax     # 0x1b168
movq %rax, 0x8(%rsp)
leaq 0x167f5(%rip), %r12     # 0x1b2f8
movq (%rsp), %rbp
testq %rbp, %rbp
je 0x4cb3
movl %ebp, %eax
andl $0x3, %eax
jne 0x4cb3
movq %rbp, %rdi
callq 0x115e6
movq %rax, %rdi
callq 0x115e6
cmpq 0x1666e(%rip), %rax     # 0x1b1a0
je 0x4bba
movq %rbp, %rdi
callq 0x11685
movq %rax, %rbp
cmpq %r12, %rax
jne 0x4b07
leaq 0x1031a(%rip), %rdi     # 0x14e69
leaq 0xf4d7(%rip), %rsi      # 0x1402d
leaq 0x102d8(%rip), %rcx     # 0x14e35
movl $0x29b, %edx            # imm = 0x29B
callq 0x2100
movq 0x165f2(%rip), %r14     # 0x1b160
leaq 0xf7ad(%rip), %rdi      # 0x14322
callq 0xea73
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0xa30f
movq 0x165b9(%rip), %rsi     # 0x1b148
movq 0x165d2(%rip), %rdx     # 0x1b168
leaq 0x1675b(%rip), %rdi     # 0x1b2f8
callq 0x11b2c
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0xa30f
movl $0x2ba, %eax            # imm = 0x2BA
jmp 0x4c97
movq %r13, %rdi
movq 0x8(%rsp), %rsi
callq 0x115c4
movq %rax, %r13
movq %rbp, %rdi
callq 0x11685
movq %r13, %rdi
movq %rax, %rsi
callq 0x115c4
movq %rbp, %rdi
movq %rax, %rsi
callq 0x11732
movq 0x16551(%rip), %rsi     # 0x1b140
leaq 0x16702(%rip), %rbp     # 0x1b2f8
movq %rbp, %rdi
movq %r15, %rdx
callq 0x11b2c
movq %rax, %r15
leaq 0xf6c4(%rip), %rdi      # 0x142cf
callq 0xea73
movq %r15, %rdi
movq %rax, %rsi
movq %r13, %rdx
callq 0x11b2c
leaq -0x402(%rip), %rsi      # 0x4823
movq %rbx, %rdi
movq %rax, %rdx
callq 0xa232
movq %rax, %r15
movq 0x1651e(%rip), %rsi     # 0x1b158
movq %rbp, %rdi
movq (%rsp), %rdx
callq 0x11b2c
movq 0x164f3(%rip), %rsi     # 0x1b140
movq %rax, %rdi
movq %r15, %rdx
callq 0x11b2c
movq %rax, %r15
movq 0x164e6(%rip), %r12     # 0x1b148
movq %r14, %rdi
callq 0x11685
movq %rax, %rdi
callq 0x115e6
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x11b2c
movq 0x164f9(%rip), %rsi     # 0x1b180
movq %rbx, %rdi
movq %rax, %rdx
callq 0xa30f
movl $0x2c6, %eax            # imm = 0x2C6
leaq 0x10(%rsp), %rdi
movl %eax, 0xc(%rdi)
callq 0x1351f
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x101a4(%rip), %rdi     # 0x14e5e
leaq 0xf36c(%rip), %rsi      # 0x1402d
leaq 0x1016d(%rip), %rcx     # 0x14e35
movl $0x295, %edx            # imm = 0x295
callq 0x2100
leaq 0x10150(%rip), %rdi     # 0x14e29
leaq 0xf34d(%rip), %rsi      # 0x1402d
leaq 0x1014e(%rip), %rcx     # 0x14e35
movl $0x292, %edx            # imm = 0x292
callq 0x2100