// File: /workspace/github_c_makefile_star2_O0/dalnefre[P]kernel_abe/reduce.c
// Function: reduce_par
BEH_DECL(reduce_par)
{
	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* state = NIL;

	DBUG_ENTER("reduce_par");
	if (nilp(expr) || !consp(expr)) {
		msg = NIL;
		msg = map_put(msg, expr_symbol, expr);
		SEND(cont, msg);
	} else {
		CONS* collect;
		CONS* apply;
		
		DBUG_PRINT("", ("form=%s", cons_to_str(expr)));
		state = NIL;
		state = map_put(state, cont_symbol, cont);
		state = map_put(state, ATOM("n"), NUMBER(0));
		state = map_put(state, ATOM("acc"), NIL);
		collect = ACTOR(collect_par, state);
		state = NIL;
		state = map_put(state, env_symbol, env);
		state = map_put(state, cont_symbol, collect);
		apply = ACTOR(apply_par, state);
		msg = NIL;
		msg = map_put(msg, ATOM("i"), NUMBER(0));
		msg = map_put(msg, form_symbol, expr);
		SEND(apply, 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 0x16b0d(%rip), %rsi     # 0x20148
xorl %eax, %eax
movl %eax, %edx
callq 0x171b0
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq 0x16aed(%rip), %rsi     # 0x20140
xorl %eax, %eax
movl %eax, %edx
callq 0x171b0
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq 0x16aed(%rip), %rsi     # 0x20158
xorl %eax, %eax
movl %eax, %edx
callq 0x171b0
movq %rax, -0x28(%rbp)
leaq 0x16c79(%rip), %rax     # 0x202f8
movq %rax, -0x30(%rbp)
leaq 0x10f4d(%rip), %rax     # 0x1a5d7
movq %rax, -0x58(%rbp)
leaq 0x16cf3(%rip), %rax     # 0x20388
movq (%rax), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %eax
movl %eax, -0x50(%rbp)
movl $0x59f, -0x4c(%rbp)     # imm = 0x59F
leaq 0x13600(%rip), %rax     # 0x1ccb0
movq %rax, -0x48(%rbp)
leaq 0x16a75(%rip), %rax     # 0x20130
movq %rax, -0x40(%rbp)
leaq 0x16cc2(%rip), %rax     # 0x20388
movq (%rax), %rax
movq 0x50(%rax), %rax
movq %rax, -0x38(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x19910
leaq 0x16c17(%rip), %rax     # 0x202f8
cmpq %rax, -0x18(%rbp)
sete %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
jne 0x9723
xorl %eax, %eax
cmpq $0x0, -0x18(%rbp)
movb %al, -0x69(%rbp)
je 0x9713
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
jne 0x975c
leaq 0x16bce(%rip), %rax     # 0x202f8
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq 0x16a0f(%rip), %rsi     # 0x20148
movq -0x18(%rbp), %rdx
callq 0x172a0
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x10(%rbp), %rdx
callq 0xcc90
jmp 0x990a
jmp 0x975e
leaq 0x171cb(%rip), %rax     # 0x20930
cmpl $0x0, (%rax)
je 0x97c3
leaq 0x16c17(%rip), %rax     # 0x20388
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x13531(%rip), %rcx     # 0x1ccb0
movq %rcx, 0x10(%rax)
leaq 0x13526(%rip), %rdi     # 0x1ccb0
callq 0x18d20
cmpl $0x0, %eax
je 0x97c3
leaq 0x16bed(%rip), %rax     # 0x20388
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x5a8, 0xc(%rax)       # imm = 0x5A8
movq -0x18(%rbp), %rdi
callq 0xe6d0
movq %rax, %rsi
leaq 0x10e13(%rip), %rdi     # 0x1a5cf
movb $0x0, %al
callq 0x199c0
jmp 0x97c5
leaq 0x16b2c(%rip), %rax     # 0x202f8
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
movq 0x16965(%rip), %rsi     # 0x20140
movq -0x20(%rbp), %rdx
callq 0x172a0
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x88(%rbp)
leaq 0x11618(%rip), %rdi     # 0x1ae12
callq 0x12b60
movq -0x88(%rbp), %rdi
movq %rax, %rsi
movl $0x3, %edx
callq 0x172a0
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x80(%rbp)
leaq 0x10b12(%rip), %rdi     # 0x1a338
callq 0x12b60
movq -0x80(%rbp), %rdi
movq %rax, %rsi
leaq 0x16abf(%rip), %rdx     # 0x202f8
callq 0x172a0
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rdx
leaq -0xf11(%rip), %rsi      # 0x8940
callq 0xcb70
movq %rax, -0x60(%rbp)
leaq 0x16a97(%rip), %rax     # 0x202f8
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
movq 0x168e8(%rip), %rsi     # 0x20158
movq -0x28(%rbp), %rdx
callq 0x172a0
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
movq 0x168b8(%rip), %rsi     # 0x20140
movq -0x60(%rbp), %rdx
callq 0x172a0
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rdx
leaq -0x744(%rip), %rsi      # 0x9160
callq 0xcb70
movq %rax, -0x68(%rbp)
leaq 0x16a44(%rip), %rax     # 0x202f8
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x78(%rbp)
leaq 0x1251d(%rip), %rdi     # 0x1bde4
callq 0x12b60
movq -0x78(%rbp), %rdi
movq %rax, %rsi
movl $0x3, %edx
callq 0x172a0
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq 0x16864(%rip), %rsi     # 0x20150
movq -0x18(%rbp), %rdx
callq 0x172a0
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq -0x68(%rbp), %rsi
movq -0x10(%rbp), %rdx
callq 0xcc90
movl $0x5b7, -0x4c(%rbp)     # imm = 0x5B7
leaq -0x58(%rbp), %rdi
callq 0x19ae0
addq $0x90, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)