// File: /workspace/github_c_makefile_star2_O2/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
callq 0x10e46
movq %rax, %r15
movq 0x12a18(%rip), %rsi     # 0x1a158
movq %rax, %rdi
xorl %edx, %edx
callq 0x112c7
movq %rax, %r14
movq 0x129fc(%rip), %rsi     # 0x1a150
movq %r15, %rdi
xorl %edx, %edx
callq 0x112c7
movq %rax, %r12
movq 0x12a00(%rip), %rsi     # 0x1a168
movq %r15, %rdi
xorl %edx, %edx
callq 0x112c7
movq %rax, %r15
leaq 0xbe5d(%rip), %rax      # 0x135d9
movq %rsp, %rdi
movq %rax, (%rdi)
leaq 0x12c0f(%rip), %rbp     # 0x1a398
movq (%rbp), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x59f, 0xc(%rdi)       # imm = 0x59F
leaq 0xe33f(%rip), %r13      # 0x15ae4
movq %r13, 0x10(%rdi)
leaq 0x12990(%rip), %rcx     # 0x1a140
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x12bb9
cmpq 0x127fc(%rip), %r14     # 0x19fc0
je 0x77da
testq %r14, %r14
sete %al
testb $0x3, %r14b
setne %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0x77fb
movq 0x12977(%rip), %rsi     # 0x1a158
leaq 0x12b20(%rip), %rdi     # 0x1a308
movq %r14, %rdx
callq 0x11339
movq %rbx, %rdi
movq %r12, %rsi
jmp 0x791e
leaq 0x1313e(%rip), %rax     # 0x1a940
cmpl $0x0, (%rax)
je 0x7847
movq (%rbp), %rax
movq 0x50(%rax), %rax
movq %r13, 0x10(%rax)
movq %r13, %rdi
callq 0x12334
testl %eax, %eax
je 0x7847
movq (%rbp), %rax
movq 0x50(%rax), %rax
movl $0x5a8, 0xc(%rax)       # imm = 0x5A8
movq %r14, %rdi
callq 0xb248
leaq 0xbd94(%rip), %rdi      # 0x135d1
movq %rax, %rsi
xorl %eax, %eax
callq 0x12c30
movq 0x12902(%rip), %rsi     # 0x1a150
leaq 0x12ab3(%rip), %r13     # 0x1a308
movq %r13, %rdi
movq %r12, %rdx
callq 0x11339
movq %rax, %rbp
leaq 0xc599(%rip), %rdi      # 0x13e03
callq 0xe45f
pushq $0x3
popq %r12
movq %rbp, %rdi
movq %rax, %rsi
movq %r12, %rdx
callq 0x11339
movq %rax, %rbp
leaq 0xbaad(%rip), %rdi      # 0x13338
callq 0xe45f
movq %rbp, %rdi
movq %rax, %rsi
movq %r13, %rdx
callq 0x11339
leaq -0xac4(%rip), %rsi      # 0x6de1
movq %rbx, %rdi
movq %rax, %rdx
callq 0x9ef7
movq %rax, %rbp
movq 0x128ae(%rip), %rsi     # 0x1a168
movq %r13, %rdi
movq %r15, %rdx
callq 0x11339
movq 0x12884(%rip), %rsi     # 0x1a150
movq %rax, %rdi
movq %rbp, %rdx
callq 0x11339
leaq -0x505(%rip), %rsi      # 0x73d9
movq %rbx, %rdi
movq %rax, %rdx
callq 0x9ef7
movq %rax, %r15
leaq 0xbc10(%rip), %rdi      # 0x13503
callq 0xe45f
movq %r13, %rdi
movq %rax, %rsi
movq %r12, %rdx
callq 0x11339
movq 0x12853(%rip), %rsi     # 0x1a160
movq %rax, %rdi
movq %r14, %rdx
callq 0x11339
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x9fd4
movq %rsp, %rdi
movl $0x5b7, 0xc(%rdi)       # imm = 0x5B7
callq 0x12d32
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq