// File: /workspace/github_c_makefile_star2_O0/dalnefre[P]kernel_abe/reduce.c
// Function: apply_par
BEH_DECL(apply_par)
{
	CONS* msg = WHAT;
	CONS* i = map_get(msg, ATOM("i"));
	CONS* form = map_get(msg, form_symbol);
	CONS* state = MINE;
	CONS* collect = map_get(state, cont_symbol);
	CONS* env = map_get(state, env_symbol);

	DBUG_ENTER("apply_par");
	assert(numberp(i));
	assert(consp(form));
	assert(actorp(collect));
	DBUG_PRINT("", ("i=%d form=%s", MK_INT(i), cons_to_str(form)));
	if (nilp(form)) {
		msg = NIL;
		msg = map_put(msg, ATOM("op"), ATOM("n"));
		msg = map_put(msg, ATOM("i"), i);
		SEND(collect, msg);		
	} else {
		CONS* actor;
		
		state = NIL;
		state = map_put(state, cont_symbol, collect);
		state = map_put(state, ATOM("i"), i);
		actor = ACTOR(eval_par, state);
		msg = NIL;
		msg = map_put(msg, env_symbol, env);
		msg = map_put(msg, cont_symbol, actor);
		msg = map_put(msg, expr_symbol, car(form));
		SEND(a_reduce, msg);
		msg = NIL;
		msg = map_put(msg, form_symbol, cdr(form));
		msg = map_put(msg, ATOM("i"), NUMBER(MK_INT(i) + 1));
		SEND(SELF, msg);		
	}
	DBUG_RETURN;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x16990
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x70(%rbp)
leaq 0x12c55(%rip), %rdi     # 0x1bde4
callq 0x12b60
movq -0x70(%rbp), %rdi
movq %rax, %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x171b0
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq 0x16f9d(%rip), %rsi     # 0x20150
xorl %eax, %eax
movl %eax, %edx
callq 0x171b0
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x16800
movq %rax, %rdi
callq 0xba80
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdi
movq 0x16f5c(%rip), %rsi     # 0x20140
xorl %eax, %eax
movl %eax, %edx
callq 0x171b0
movq %rax, -0x30(%rbp)
movq -0x28(%rbp), %rdi
movq 0x16f5c(%rip), %rsi     # 0x20158
xorl %eax, %eax
movl %eax, %edx
callq 0x171b0
movq %rax, -0x38(%rbp)
leaq 0x1138b(%rip), %rax     # 0x1a59b
movq %rax, -0x60(%rbp)
leaq 0x1716d(%rip), %rax     # 0x20388
movq (%rax), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %eax
movl %eax, -0x58(%rbp)
movl $0x56d, -0x54(%rbp)     # imm = 0x56D
leaq 0x13a7a(%rip), %rax     # 0x1ccb0
movq %rax, -0x50(%rbp)
leaq 0x16eef(%rip), %rax     # 0x20130
movq %rax, -0x48(%rbp)
leaq 0x1713c(%rip), %rax     # 0x20388
movq (%rax), %rax
movq 0x50(%rax), %rax
movq %rax, -0x40(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x19910
movq -0x18(%rbp), %rax
andq $0x3, %rax
cmpq $0x3, %rax
sete %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x927e
jmp 0x929d
leaq 0x1128a(%rip), %rdi     # 0x1a50f
leaq 0x10da1(%rip), %rsi     # 0x1a02d
movl $0x56e, %edx            # imm = 0x56E
leaq 0x1130d(%rip), %rcx     # 0x1a5a5
callq 0x20f0
xorl %eax, %eax
cmpq $0x0, -0x20(%rbp)
movb %al, -0x71(%rbp)
je 0x92bb
movq -0x20(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
sete %al
movb %al, -0x71(%rbp)
movb -0x71(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x92cd
jmp 0x92ec
leaq 0x112ea(%rip), %rdi     # 0x1a5be
leaq 0x10d52(%rip), %rsi     # 0x1a02d
movl $0x56f, %edx            # imm = 0x56F
leaq 0x112be(%rip), %rcx     # 0x1a5a5
callq 0x20f0
movq -0x30(%rbp), %rax
andq $0x3, %rax
cmpq $0x1, %rax
sete %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x930a
jmp 0x9329
leaq 0x1126d(%rip), %rdi     # 0x1a57e
leaq 0x10d15(%rip), %rsi     # 0x1a02d
movl $0x570, %edx            # imm = 0x570
leaq 0x11281(%rip), %rcx     # 0x1a5a5
callq 0x20f0
jmp 0x932b
leaq 0x175fe(%rip), %rax     # 0x20930
cmpl $0x0, (%rax)
je 0x939e
leaq 0x1704a(%rip), %rax     # 0x20388
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x13964(%rip), %rcx     # 0x1ccb0
movq %rcx, 0x10(%rax)
leaq 0x13959(%rip), %rdi     # 0x1ccb0
callq 0x18d20
cmpl $0x0, %eax
je 0x939e
leaq 0x17020(%rip), %rax     # 0x20388
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x571, 0xc(%rax)       # imm = 0x571
movq -0x18(%rbp), %rax
sarq $0x2, %rax
movl %eax, -0x78(%rbp)
movq -0x20(%rbp), %rdi
callq 0xe6d0
movl -0x78(%rbp), %esi
movq %rax, %rdx
leaq 0x11233(%rip), %rdi     # 0x1a5ca
movb $0x0, %al
callq 0x199c0
jmp 0x93a0
leaq 0x16f51(%rip), %rax     # 0x202f8
cmpq %rax, -0x20(%rbp)
sete %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x944c
leaq 0x16f32(%rip), %rax     # 0x202f8
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq 0x10e68(%rip), %rdi     # 0x1a244
callq 0x12b60
movq %rax, -0x88(%rbp)
leaq 0x11a23(%rip), %rdi     # 0x1ae12
callq 0x12b60
movq -0x90(%rbp), %rdi
movq -0x88(%rbp), %rsi
movq %rax, %rdx
callq 0x172a0
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x80(%rbp)
leaq 0x129c7(%rip), %rdi     # 0x1bde4
callq 0x12b60
movq -0x80(%rbp), %rdi
movq %rax, %rsi
movq -0x18(%rbp), %rdx
callq 0x172a0
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x10(%rbp), %rdx
callq 0xcc90
jmp 0x95f2
leaq 0x16ea5(%rip), %rax     # 0x202f8
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdi
movq 0x16cde(%rip), %rsi     # 0x20140
movq -0x30(%rbp), %rdx
callq 0x172a0
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0xc8(%rbp)
leaq 0x12963(%rip), %rdi     # 0x1bde4
callq 0x12b60
movq -0xc8(%rbp), %rdi
movq %rax, %rsi
movq -0x18(%rbp), %rdx
callq 0x172a0
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rdi
movq -0x28(%rbp), %rdx
leaq -0x5dc(%rip), %rsi      # 0x8ed0
callq 0xcb70
movq %rax, -0x68(%rbp)
leaq 0x16e3c(%rip), %rax     # 0x202f8
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq 0x16c8d(%rip), %rsi     # 0x20158
movq -0x38(%rbp), %rdx
callq 0x172a0
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq 0x16c5d(%rip), %rsi     # 0x20140
movq -0x68(%rbp), %rdx
callq 0x172a0
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq 0x16c46(%rip), %rax     # 0x20148
movq %rax, -0xb8(%rbp)
movq -0x20(%rbp), %rdi
callq 0x16800
movq -0xc0(%rbp), %rdi
movq -0xb8(%rbp), %rsi
movq %rax, %rdx
callq 0x172a0
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq 0x16c49(%rip), %rsi     # 0x20180
movq -0x10(%rbp), %rdx
callq 0xcc90
leaq 0x16db1(%rip), %rax     # 0x202f8
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq 0x16bf3(%rip), %rax     # 0x20150
movq %rax, -0xa8(%rbp)
movq -0x20(%rbp), %rdi
callq 0x16990
movq -0xb0(%rbp), %rdi
movq -0xa8(%rbp), %rsi
movq %rax, %rdx
callq 0x172a0
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xa0(%rbp)
leaq 0x1284b(%rip), %rdi     # 0x1bde4
callq 0x12b60
movq -0xa0(%rbp), %rdi
movq %rax, %rsi
movq -0x18(%rbp), %rax
sarq $0x2, %rax
addl $0x1, %eax
movslq %eax, %rdx
shlq $0x2, %rdx
orq $0x3, %rdx
callq 0x172a0
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x16800
movq -0x98(%rbp), %rdi
movq %rax, %rsi
movq -0x10(%rbp), %rdx
callq 0xcc90
movl $0x588, -0x54(%rbp)     # imm = 0x588
leaq -0x60(%rbp), %rdi
callq 0x19ae0
addq $0xd0, %rsp
popq %rbp
retq
nopl (%rax,%rax)