// File: /workspace/github_c_makefile_star2_O0/dalnefre[P]kernel_abe/reduce.c
// Function: reduce_if
BEH_DECL(reduce_if)
{
	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_if");
	if (consp(expr) && consp(cdr(expr)) && consp(cdr(cdr(expr)))) {
		CONS* state;
		CONS* actor;
		
		state = NIL;
		state = map_put(state, env_symbol, env);
		state = map_put(state, cont_symbol, cont);
		state = map_put(state, form_symbol, cdr(expr));
		actor = ACTOR(apply_if, 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("if: illegal argument"));
		msg = NIL;
		msg = map_put(msg, expr_symbol, undefined_symbol);
		SEND(cont, msg);
	}
	DBUG_RETURN;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x16990
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq 0x1b33d(%rip), %rsi     # 0x20148
xorl %eax, %eax
movl %eax, %edx
callq 0x171b0
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq 0x1b31d(%rip), %rsi     # 0x20140
xorl %eax, %eax
movl %eax, %edx
callq 0x171b0
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq 0x1b31d(%rip), %rsi     # 0x20158
xorl %eax, %eax
movl %eax, %edx
callq 0x171b0
movq %rax, -0x28(%rbp)
leaq 0x15461(%rip), %rax     # 0x1a2b0
movq %rax, -0x50(%rbp)
leaq 0x1b52e(%rip), %rax     # 0x20388
movq (%rax), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %eax
movl %eax, -0x48(%rbp)
movl $0x261, -0x44(%rbp)     # imm = 0x261
leaq 0x17e3b(%rip), %rax     # 0x1ccb0
movq %rax, -0x40(%rbp)
leaq 0x1b2b0(%rip), %rax     # 0x20130
movq %rax, -0x38(%rbp)
leaq 0x1b4fd(%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 0x4ebd
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 0x506f
movq -0x18(%rbp), %rdi
callq 0x16990
movq %rax, %rcx
xorl %eax, %eax
cmpq $0x0, %rcx
movb %al, -0x62(%rbp)
je 0x4eff
movq -0x18(%rbp), %rdi
callq 0x16990
andq $0x3, %rax
cmpq $0x0, %rax
sete %al
movb %al, -0x62(%rbp)
movb -0x62(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x506f
movq -0x18(%rbp), %rdi
callq 0x16990
movq %rax, %rdi
callq 0x16990
movq %rax, %rcx
xorl %eax, %eax
cmpq $0x0, %rcx
movb %al, -0x63(%rbp)
je 0x4f51
movq -0x18(%rbp), %rdi
callq 0x16990
movq %rax, %rdi
callq 0x16990
andq $0x3, %rax
cmpq $0x0, %rax
sete %al
movb %al, -0x63(%rbp)
movb -0x63(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x506f
leaq 0x1b38c(%rip), %rax     # 0x202f8
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rdi
movq 0x1b1dd(%rip), %rsi     # 0x20158
movq -0x28(%rbp), %rdx
callq 0x172a0
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rdi
movq 0x1b1ad(%rip), %rsi     # 0x20140
movq -0x20(%rbp), %rdx
callq 0x172a0
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x88(%rbp)
movq 0x1b19e(%rip), %rax     # 0x20150
movq %rax, -0x80(%rbp)
movq -0x18(%rbp), %rdi
callq 0x16990
movq -0x88(%rbp), %rdi
movq -0x80(%rbp), %rsi
movq %rax, %rdx
callq 0x172a0
movq %rax, -0x58(%rbp)
movq -0x8(%rbp), %rdi
movq -0x58(%rbp), %rdx
leaq -0x4a5(%rip), %rsi      # 0x4b40
callq 0xcb70
movq %rax, -0x60(%rbp)
leaq 0x1b303(%rip), %rax     # 0x202f8
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq 0x1b154(%rip), %rsi     # 0x20158
movq -0x28(%rbp), %rdx
callq 0x172a0
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq 0x1b124(%rip), %rsi     # 0x20140
movq -0x60(%rbp), %rdx
callq 0x172a0
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x78(%rbp)
movq 0x1b110(%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 0x1b11c(%rip), %rsi     # 0x20180
movq -0x10(%rbp), %rdx
callq 0xcc90
jmp 0x50e1
movq -0x8(%rbp), %rax
movq %rax, -0x98(%rbp)
movq 0x1b0df(%rip), %rax     # 0x20160
movq %rax, -0x90(%rbp)
leaq 0x1522b(%rip), %rdi     # 0x1a2ba
callq 0x12b60
movq -0x98(%rbp), %rdi
movq -0x90(%rbp), %rsi
movq %rax, %rdx
callq 0xcc90
leaq 0x1b247(%rip), %rax     # 0x202f8
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq 0x1b088(%rip), %rsi     # 0x20148
movq 0x1b0a1(%rip), %rdx     # 0x20168
callq 0x172a0
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x10(%rbp), %rdx
callq 0xcc90
movl $0x276, -0x44(%rbp)     # imm = 0x276
leaq -0x50(%rbp), %rdi
callq 0x19ae0
addq $0xa0, %rsp
popq %rbp
retq
nopw (%rax,%rax)