// File: /workspace/github_c_makefile_star2_O1/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 0x19ba6
movq %rax, %rdi
callq 0x11d11
movq %rax, %r12
movq 0x30(%rbx), %rdi
callq 0x19c45
movq %rax, %r15
leaq 0x1581e(%rip), %rax     # 0x1c621
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x1c51e(%rip), %rax     # 0x23330
movq (%rax), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x1bc, 0xc(%rdi)       # imm = 0x1BC
leaq 0x1551d(%rip), %rcx     # 0x1c34a
movq %rcx, 0x10(%rdi)
leaq 0x1c318(%rip), %rcx     # 0x23150
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x1b912
cmpq 0x1c174(%rip), %r12     # 0x22fc0
je 0x702a
testq %r12, %r12
je 0x702a
movl %r12d, %eax
andl $0x3, %eax
jne 0x702a
movq %r12, %rdi
callq 0x19ba6
movq %rax, %r14
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x7049
movq %r12, %rdi
callq 0x19c45
testq %rax, %rax
je 0x700b
movq %r12, %rdi
callq 0x19c45
testb $0x3, %al
jne 0x700b
movq %r12, %rdi
callq 0x19c45
cmpq 0x1c112(%rip), %rax     # 0x22fc0
je 0x700b
movq %r12, %rdi
callq 0x19c45
andl $0x3, %eax
cmpl $0x1, %eax
je 0x700b
movq %r12, %rdi
callq 0x19c45
movq %rax, %rdi
callq 0x19ba6
movq %rax, %r13
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x7068
movq %r12, %rdi
callq 0x19c45
movq %rax, %rdi
callq 0x19c45
movq %rax, %r12
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x7087
movq %r13, (%rsp)
movq %r14, 0x8(%rsp)
cmpq 0x1c0aa(%rip), %r15     # 0x22fc0
je 0x70a6
testq %r15, %r15
je 0x70a6
movl %r15d, %eax
andl $0x3, %eax
jne 0x70a6
movq %r15, %rdi
callq 0x19ba6
movq %rax, %r14
movq %r15, %rdi
callq 0x19c45
movq %rax, %rbp
movq 0x30(%rbx), %rdi
callq 0x19ba6
leaq 0xb64(%rip), %r13       # 0x7abb
movq %rbx, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x1283a
movq %rax, %r15
movq 0x30(%rbx), %rdi
callq 0x19ba6
movq %rbx, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x1283a
movq %rax, %r13
movq %r15, %rdi
movq %r14, %rsi
callq 0x19b84
movq %rbx, %rdi
movq (%rsp), %rsi
movq %rax, %rdx
callq 0x12917
movq %r13, %rdi
movq %rbp, %rsi
callq 0x19b84
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x12917
movq 0x30(%rbx), %rdi
callq 0x19ba6
movq %rax, %rbx
movq %r15, %rdi
movq %r13, %rsi
callq 0x19b84
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x19b84
leaq 0xbb7(%rip), %rsi       # 0x7b97
movq %rbx, %rdi
movq %rax, %rdx
callq 0x11f20
leaq 0x10(%rsp), %rdi
movl $0x1ce, 0xc(%rdi)       # imm = 0x1CE
callq 0x1ba97
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1564a(%rip), %rdi     # 0x1c65c
leaq 0x15003(%rip), %rsi     # 0x1c01c
leaq 0x15617(%rip), %rcx     # 0x1c637
movl $0x1c0, %edx            # imm = 0x1C0
callq 0x2100
leaq 0x155f9(%rip), %rdi     # 0x1c62a
leaq 0x14fe4(%rip), %rsi     # 0x1c01c
leaq 0x155f8(%rip), %rcx     # 0x1c637
movl $0x1bd, %edx            # imm = 0x1BD
callq 0x2100
leaq 0x155ff(%rip), %rdi     # 0x1c64f
leaq 0x14fc5(%rip), %rsi     # 0x1c01c
leaq 0x155d9(%rip), %rcx     # 0x1c637
movl $0x1bf, %edx            # imm = 0x1BF
callq 0x2100
leaq 0x155fe(%rip), %rdi     # 0x1c66d
leaq 0x14fa6(%rip), %rsi     # 0x1c01c
leaq 0x155ba(%rip), %rcx     # 0x1c637
movl $0x1c2, %edx            # imm = 0x1C2
callq 0x2100
leaq 0x155ec(%rip), %rdi     # 0x1c67a
leaq 0x14f87(%rip), %rsi     # 0x1c01c
leaq 0x1559b(%rip), %rcx     # 0x1c637
movl $0x1c4, %edx            # imm = 0x1C4
callq 0x2100
leaq 0x155da(%rip), %rdi     # 0x1c687
leaq 0x14f68(%rip), %rsi     # 0x1c01c
leaq 0x1557c(%rip), %rcx     # 0x1c637
movl $0x1c5, %edx            # imm = 0x1C5
callq 0x2100