// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x16990
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq 0x1ae1d(%rip), %rsi     # 0x20148
xorl %eax, %eax
movl %eax, %edx
callq 0x171b0
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq 0x1adfd(%rip), %rsi     # 0x20140
xorl %eax, %eax
movl %eax, %edx
callq 0x171b0
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq 0x1adfd(%rip), %rsi     # 0x20158
xorl %eax, %eax
movl %eax, %edx
callq 0x171b0
movq %rax, -0x28(%rbp)
leaq 0x14fa5(%rip), %rax     # 0x1a314
movq %rax, -0x68(%rbp)
leaq 0x1b00e(%rip), %rax     # 0x20388
movq (%rax), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %eax
movl %eax, -0x60(%rbp)
movl $0x2b5, -0x5c(%rbp)     # imm = 0x2B5
leaq 0x1791b(%rip), %rax     # 0x1ccb0
movq %rax, -0x58(%rbp)
leaq 0x1ad90(%rip), %rax     # 0x20130
movq %rax, -0x50(%rbp)
leaq 0x1afdd(%rip), %rax     # 0x20388
movq (%rax), %rax
movq 0x50(%rax), %rax
movq %rax, -0x48(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x19910
leaq 0x1b56a(%rip), %rax     # 0x20930
cmpl $0x0, (%rax)
je 0x5424
leaq 0x1afb6(%rip), %rax     # 0x20388
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x178d0(%rip), %rcx     # 0x1ccb0
movq %rcx, 0x10(%rax)
leaq 0x178c5(%rip), %rdi     # 0x1ccb0
callq 0x18d20
cmpl $0x0, %eax
je 0x5424
leaq 0x1af8c(%rip), %rax     # 0x20388
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x2b6, 0xc(%rax)       # imm = 0x2B6
movq -0x18(%rbp), %rdi
callq 0xe6d0
movq %rax, %rsi
leaq 0x15176(%rip), %rdi     # 0x1a593
movb $0x0, %al
callq 0x199c0
jmp 0x5426
xorl %eax, %eax
cmpq $0x0, -0x18(%rbp)
movb %al, -0x69(%rbp)
je 0x5444
movq -0x18(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
sete %al
movb %al, -0x69(%rbp)
movb -0x69(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x5479
movq -0x18(%rbp), %rdi
callq 0x16800
andq $0x3, %rax
cmpq $0x2, %rax
sete %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
jne 0x5503
movq -0x8(%rbp), %rax
movq %rax, -0x90(%rbp)
movq 0x1acd5(%rip), %rax     # 0x20160
movq %rax, -0x88(%rbp)
leaq 0x14e89(%rip), %rdi     # 0x1a322
callq 0x12b60
movq -0x90(%rbp), %rdi
movq -0x88(%rbp), %rsi
movq %rax, %rdx
callq 0xcc90
movq -0x8(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x78(%rbp)
movq 0x1ac7d(%rip), %rsi     # 0x20148
movq 0x1ac96(%rip), %rdx     # 0x20168
leaq 0x1ae1f(%rip), %rdi     # 0x202f8
callq 0x172a0
movq -0x80(%rbp), %rdi
movq -0x78(%rbp), %rsi
movq %rax, %rdx
callq 0xcc90
movl $0x2ba, -0x5c(%rbp)     # imm = 0x2BA
leaq -0x68(%rbp), %rdi
callq 0x19ae0
jmp 0x563d
movq -0x28(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x18(%rbp), %rdi
callq 0x16800
movq -0xb0(%rbp), %rdi
movq %rax, %rsi
movq 0x1ac40(%rip), %rdx     # 0x20168
callq 0x5650
movq %rax, -0x30(%rbp)
leaq 0x1adc0(%rip), %rax     # 0x202f8
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
movq 0x1abf9(%rip), %rsi     # 0x20140
movq -0x20(%rbp), %rdx
callq 0x172a0
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0xa8(%rbp)
leaq 0x14d69(%rip), %rdi     # 0x1a2cf
callq 0x12b60
movq -0xa8(%rbp), %rdi
movq %rax, %rsi
movq -0x30(%rbp), %rdx
callq 0x172a0
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rdi
movq -0x38(%rbp), %rdx
leaq -0x491(%rip), %rsi      # 0x5100
callq 0xcb70
movq %rax, -0x40(%rbp)
leaq 0x1ad57(%rip), %rax     # 0x202f8
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq 0x1aba8(%rip), %rsi     # 0x20158
movq -0x28(%rbp), %rdx
callq 0x172a0
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq 0x1ab78(%rip), %rsi     # 0x20140
movq -0x40(%rbp), %rdx
callq 0x172a0
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq 0x1ab61(%rip), %rax     # 0x20148
movq %rax, -0x98(%rbp)
movq -0x18(%rbp), %rdi
callq 0x16990
movq %rax, %rdi
callq 0x16800
movq -0xa0(%rbp), %rdi
movq -0x98(%rbp), %rsi
movq %rax, %rdx
callq 0x172a0
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq 0x1ab5c(%rip), %rsi     # 0x20180
movq -0x10(%rbp), %rdx
callq 0xcc90
movl $0x2c6, -0x5c(%rbp)     # imm = 0x2C6
leaq -0x68(%rbp), %rdi
callq 0x19ae0
addq $0xb0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)