// File: /workspace/github_c_makefile_star2_O0/dalnefre[P]kernel_abe/reduce.c
// Function: reduce_reduce
BEH_DECL(reduce_reduce)
{
	CONS* msg = WHAT;
	CONS* expr = map_get(msg, expr_symbol);
	CONS* cont = map_get(msg, cont_symbol);
	CONS* env = map_get(msg, env_symbol);

	DBUG_ENTER("reduce_reduce");
	if (consp(expr)) {
		CONS* state;
		CONS* actor;

		/* evaluate first argument and send to apply actor */
		state = NIL;
		state = map_put(state, env_symbol, env);
		state = map_put(state, cont_symbol, cont);
		actor = ACTOR(apply_reduce, state);
		msg = NIL;
		msg = map_put(msg, env_symbol, env);
		msg = map_put(msg, cont_symbol, actor);
		msg = map_put(msg, expr_symbol, car(expr));
		SEND(a_reduce, msg);
	} else {	/* error */
		SEND(an_error, ATOM("reduce: illegal argument"));
		msg = NIL;
		msg = map_put(msg, expr_symbol, undefined_symbol);
		SEND(cont, msg);
	}
	DBUG_RETURN;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x16990
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq 0x1cedd(%rip), %rsi     # 0x20148
xorl %eax, %eax
movl %eax, %edx
callq 0x171b0
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq 0x1cebd(%rip), %rsi     # 0x20140
xorl %eax, %eax
movl %eax, %edx
callq 0x171b0
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq 0x1cebd(%rip), %rsi     # 0x20158
xorl %eax, %eax
movl %eax, %edx
callq 0x171b0
movq %rax, -0x28(%rbp)
leaq 0x16e99(%rip), %rax     # 0x1a148
movq %rax, -0x50(%rbp)
leaq 0x1d0ce(%rip), %rax     # 0x20388
movq (%rax), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %eax
movl %eax, -0x48(%rbp)
movl $0xf0, -0x44(%rbp)
leaq 0x199db(%rip), %rax     # 0x1ccb0
movq %rax, -0x40(%rbp)
leaq 0x1ce50(%rip), %rax     # 0x20130
movq %rax, -0x38(%rbp)
leaq 0x1d09d(%rip), %rax     # 0x20388
movq (%rax), %rax
movq 0x50(%rax), %rax
movq %rax, -0x30(%rbp)
leaq -0x50(%rbp), %rdi
callq 0x19910
xorl %eax, %eax
cmpq $0x0, -0x18(%rbp)
movb %al, -0x61(%rbp)
je 0x331d
movq -0x18(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
sete %al
movb %al, -0x61(%rbp)
movb -0x61(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x3405
leaq 0x1cfc0(%rip), %rax     # 0x202f8
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rdi
movq 0x1ce11(%rip), %rsi     # 0x20158
movq -0x28(%rbp), %rdx
callq 0x172a0
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rdi
movq 0x1cde1(%rip), %rsi     # 0x20140
movq -0x20(%rbp), %rdx
callq 0x172a0
movq %rax, -0x58(%rbp)
movq -0x8(%rbp), %rdi
movq -0x58(%rbp), %rdx
leaq -0x2fb(%rip), %rsi      # 0x3080
callq 0xcb70
movq %rax, -0x60(%rbp)
leaq 0x1cf6d(%rip), %rax     # 0x202f8
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq 0x1cdbe(%rip), %rsi     # 0x20158
movq -0x28(%rbp), %rdx
callq 0x172a0
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq 0x1cd8e(%rip), %rsi     # 0x20140
movq -0x60(%rbp), %rdx
callq 0x172a0
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x78(%rbp)
movq 0x1cd7a(%rip), %rax     # 0x20148
movq %rax, -0x70(%rbp)
movq -0x18(%rbp), %rdi
callq 0x16800
movq -0x78(%rbp), %rdi
movq -0x70(%rbp), %rsi
movq %rax, %rdx
callq 0x172a0
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq 0x1cd86(%rip), %rsi     # 0x20180
movq -0x10(%rbp), %rdx
callq 0xcc90
jmp 0x3471
movq -0x8(%rbp), %rax
movq %rax, -0x88(%rbp)
movq 0x1cd49(%rip), %rax     # 0x20160
movq %rax, -0x80(%rbp)
leaq 0x16d34(%rip), %rdi     # 0x1a156
callq 0x12b60
movq -0x88(%rbp), %rdi
movq -0x80(%rbp), %rsi
movq %rax, %rdx
callq 0xcc90
leaq 0x1ceb7(%rip), %rax     # 0x202f8
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq 0x1ccf8(%rip), %rsi     # 0x20148
movq 0x1cd11(%rip), %rdx     # 0x20168
callq 0x172a0
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x10(%rbp), %rdx
callq 0xcc90
movl $0x105, -0x44(%rbp)     # imm = 0x105
leaq -0x50(%rbp), %rdi
callq 0x19ae0
addq $0x90, %rsp
popq %rbp
retq
nopw (%rax,%rax)