// File: /workspace/github_c_makefile_star2_O2/dalnefre[P]kernel_abe/kernel.c
// Function: fork_beh
static
BEH_DECL(fork_beh)
{
	CONS* state = MINE;
	CONS* cust;
	CONS* head;
	CONS* tail;
	CONS* msg = WHAT;
	CONS* h_req;
	CONS* t_req;
	CONS* k_head;
	CONS* k_tail;

	DBUG_ENTER("fork_beh");
	assert(is_pr(state));
	cust = hd(state);
	assert(actorp(cust));
	assert(is_pr(tl(state)));
	head = hd(tl(state));
	assert(actorp(head));
	tail = tl(tl(state));
	assert(actorp(tail));
	assert(is_pr(msg));
	h_req = hd(msg);
	t_req = tl(msg);

	k_head = ACTOR(tag_beh, SELF);
	k_tail = ACTOR(tag_beh, SELF);
	SEND(head, pr(k_head, h_req));
	SEND(tail, pr(k_tail, t_req));
	BECOME(join_beh, pr(cust, pr(k_head, k_tail)));
	DBUG_RETURN;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
callq 0x191fb
movq %rax, %rdi
callq 0x1175b
movq %rax, %r12
movq 0x30(%rbx), %rdi
callq 0x19306
movq %rax, %r15
leaq 0x15e5a(%rip), %rax     # 0x1c621
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x1db5a(%rip), %rax     # 0x24330
movq (%rax), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x1bc, 0xc(%rdi)       # imm = 0x1BC
leaq 0x15b59(%rip), %rcx     # 0x1c34a
movq %rcx, 0x10(%rdi)
leaq 0x1d954(%rip), %rcx     # 0x24150
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x1b079
cmpq 0x1d7b0(%rip), %r12     # 0x23fc0
je 0x69ee
testq %r12, %r12
je 0x69ee
movl %r12d, %eax
andl $0x3, %eax
jne 0x69ee
movq %r12, %rdi
callq 0x191fb
movq %rax, %r14
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x6a0d
movq %r12, %rdi
callq 0x19306
testq %rax, %rax
je 0x69cf
movq %r12, %rdi
callq 0x19306
testb $0x3, %al
jne 0x69cf
movq %r12, %rdi
callq 0x19306
cmpq 0x1d74e(%rip), %rax     # 0x23fc0
je 0x69cf
movq %r12, %rdi
callq 0x19306
andl $0x3, %eax
cmpl $0x1, %eax
je 0x69cf
movq %r12, %rdi
callq 0x19306
movq %rax, %rdi
callq 0x191fb
movq %rax, %r13
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x6a2c
movq %r12, %rdi
callq 0x19306
movq %rax, %rdi
callq 0x19306
movq %rax, %r12
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x6a4b
movq %r13, (%rsp)
movq %r14, 0x8(%rsp)
cmpq 0x1d6e6(%rip), %r15     # 0x23fc0
je 0x6a6a
testq %r15, %r15
je 0x6a6a
movl %r15d, %eax
andl $0x3, %eax
jne 0x6a6a
movq %r15, %rdi
callq 0x191fb
movq %rax, %r14
movq %r15, %rdi
callq 0x19306
movq %rax, %rbp
movq 0x30(%rbx), %rdi
callq 0x191fb
leaq 0xb64(%rip), %r13       # 0x747f
movq %rbx, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x123b7
movq %rax, %r15
movq 0x30(%rbx), %rdi
callq 0x191fb
movq %rbx, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x123b7
movq %rax, %r13
movq %r15, %rdi
movq %r14, %rsi
callq 0x19164
movq %rbx, %rdi
movq (%rsp), %rsi
movq %rax, %rdx
callq 0x12494
movq %r13, %rdi
movq %rbp, %rsi
callq 0x19164
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x12494
movq 0x30(%rbx), %rdi
callq 0x191fb
movq %rax, %rbx
movq %r15, %rdi
movq %r13, %rsi
callq 0x19164
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x19164
leaq 0xbb7(%rip), %rsi       # 0x755b
movq %rbx, %rdi
movq %rax, %rdx
callq 0x11b16
leaq 0x10(%rsp), %rdi
movl $0x1ce, 0xc(%rdi)       # imm = 0x1CE
callq 0x1b1f2
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x15c86(%rip), %rdi     # 0x1c65c
leaq 0x1563f(%rip), %rsi     # 0x1c01c
leaq 0x15c53(%rip), %rcx     # 0x1c637
movl $0x1c0, %edx            # imm = 0x1C0
callq 0x2100
leaq 0x15c35(%rip), %rdi     # 0x1c62a
leaq 0x15620(%rip), %rsi     # 0x1c01c
leaq 0x15c34(%rip), %rcx     # 0x1c637
movl $0x1bd, %edx            # imm = 0x1BD
callq 0x2100
leaq 0x15c3b(%rip), %rdi     # 0x1c64f
leaq 0x15601(%rip), %rsi     # 0x1c01c
leaq 0x15c15(%rip), %rcx     # 0x1c637
movl $0x1bf, %edx            # imm = 0x1BF
callq 0x2100
leaq 0x15c3a(%rip), %rdi     # 0x1c66d
leaq 0x155e2(%rip), %rsi     # 0x1c01c
leaq 0x15bf6(%rip), %rcx     # 0x1c637
movl $0x1c2, %edx            # imm = 0x1C2
callq 0x2100
leaq 0x15c28(%rip), %rdi     # 0x1c67a
leaq 0x155c3(%rip), %rsi     # 0x1c01c
leaq 0x15bd7(%rip), %rcx     # 0x1c637
movl $0x1c4, %edx            # imm = 0x1C4
callq 0x2100
leaq 0x15c16(%rip), %rdi     # 0x1c687
leaq 0x155a4(%rip), %rsi     # 0x1c01c
leaq 0x15bb8(%rip), %rcx     # 0x1c637
movl $0x1c5, %edx            # imm = 0x1C5
callq 0x2100