// File: /workspace/github_c_makefile_star2_O3/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 0x11685
movq %rax, %r15
movq 0x1363f(%rip), %rsi     # 0x1b148
movq %rax, %rdi
xorl %edx, %edx
callq 0x11aba
movq %rax, %r14
movq 0x13623(%rip), %rsi     # 0x1b140
movq %r15, %rdi
xorl %edx, %edx
callq 0x11aba
movq %rax, %r12
movq 0x13627(%rip), %rsi     # 0x1b158
movq %r15, %rdi
xorl %edx, %edx
callq 0x11aba
movq %rax, %r15
leaq 0xca94(%rip), %rax      # 0x145d9
movq %rsp, %rdi
movq %rax, (%rdi)
leaq 0x13836(%rip), %rbp     # 0x1b388
movq (%rbp), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x59f, 0xc(%rdi)       # imm = 0x59F
leaq 0xef96(%rip), %r13      # 0x16b04
movq %r13, 0x10(%rdi)
leaq 0x135b7(%rip), %rcx     # 0x1b130
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x1339a
cmpq 0x13433(%rip), %r14     # 0x1afc0
je 0x7ba3
testq %r14, %r14
sete %al
testb $0x3, %r14b
setne %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0x7bc4
movq 0x1359e(%rip), %rsi     # 0x1b148
leaq 0x13747(%rip), %rdi     # 0x1b2f8
movq %r14, %rdx
callq 0x11b2c
movq %rbx, %rdi
movq %r12, %rsi
jmp 0x7ce7
leaq 0x13d65(%rip), %rax     # 0x1b930
cmpl $0x0, (%rax)
je 0x7c10
movq (%rbp), %rax
movq 0x50(%rax), %rax
movq %r13, 0x10(%rax)
movq %r13, %rdi
callq 0x12afc
testl %eax, %eax
je 0x7c10
movq (%rbp), %rax
movq 0x50(%rax), %rax
movl $0x5a8, 0xc(%rax)       # imm = 0x5A8
movq %r14, %rdi
callq 0xb5b4
leaq 0xc9cb(%rip), %rdi      # 0x145d1
movq %rax, %rsi
xorl %eax, %eax
callq 0x1340b
movq 0x13529(%rip), %rsi     # 0x1b140
leaq 0x136da(%rip), %r13     # 0x1b2f8
movq %r13, %rdi
movq %r12, %rdx
callq 0x11b2c
movq %rax, %r12
leaq 0xd1d0(%rip), %rdi      # 0x14e03
callq 0xea73
movl $0x3, %edx
movq %r12, %rdi
movq %rax, %rsi
callq 0x11b2c
movq %rax, %r12
leaq 0xc6e6(%rip), %rdi      # 0x14338
callq 0xea73
movq %r12, %rdi
movq %rax, %rsi
movq %r13, %rdx
callq 0x11b2c
leaq -0xac2(%rip), %rsi      # 0x71aa
movq %rbx, %rdi
movq %rax, %rdx
callq 0xa232
movq %rax, %r12
movq 0x134d7(%rip), %rsi     # 0x1b158
movq %r13, %rdi
movq %r15, %rdx
callq 0x11b2c
movq 0x134ad(%rip), %rsi     # 0x1b140
movq %rax, %rdi
movq %r12, %rdx
callq 0x11b2c
leaq -0x503(%rip), %rsi      # 0x77a2
movq %rbx, %rdi
movq %rax, %rdx
callq 0xa232
movq %rax, %r15
leaq 0xc849(%rip), %rdi      # 0x14503
callq 0xea73
movl $0x3, %edx
movq %r13, %rdi
movq %rax, %rsi
callq 0x11b2c
movq 0x1347a(%rip), %rsi     # 0x1b150
movq %rax, %rdi
movq %r14, %rdx
callq 0x11b2c
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0xa30f
movq %rsp, %rdi
movl $0x5b7, 0xc(%rdi)       # imm = 0x5B7
callq 0x1351f
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq