// File: /workspace/github_c_makefile_star2_O3/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 0x19c72
movq %rax, %rdi
callq 0x11d65
movq %rax, %r12
movq 0x30(%rbx), %rdi
callq 0x19d11
movq %rax, %r15
leaq 0x15854(%rip), %rax     # 0x1c621
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x1c554(%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 0x15553(%rip), %rcx     # 0x1c34a
movq %rcx, 0x10(%rdi)
leaq 0x1c34e(%rip), %rcx     # 0x23150
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x1ba26
cmpq 0x1c1aa(%rip), %r12     # 0x22fc0
je 0x6ff4
testq %r12, %r12
je 0x6ff4
movl %r12d, %eax
andl $0x3, %eax
jne 0x6ff4
movq %r12, %rdi
callq 0x19c72
movq %rax, %r14
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x7013
movq %r12, %rdi
callq 0x19d11
testq %rax, %rax
je 0x6fd5
movq %r12, %rdi
callq 0x19d11
testb $0x3, %al
jne 0x6fd5
movq %r12, %rdi
callq 0x19d11
cmpq 0x1c148(%rip), %rax     # 0x22fc0
je 0x6fd5
movq %r12, %rdi
callq 0x19d11
andl $0x3, %eax
cmpl $0x1, %eax
je 0x6fd5
movq %r12, %rdi
callq 0x19d11
movq %rax, %rdi
callq 0x19c72
movq %rax, %r13
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x7032
movq %r12, %rdi
callq 0x19d11
movq %rax, %rdi
callq 0x19d11
movq %rax, %r12
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x7051
movq %r13, (%rsp)
movq %r14, 0x8(%rsp)
cmpq 0x1c0e0(%rip), %r15     # 0x22fc0
je 0x7070
testq %r15, %r15
je 0x7070
movl %r15d, %eax
andl $0x3, %eax
jne 0x7070
movq %r15, %rdi
callq 0x19c72
movq %rax, %r14
movq %r15, %rdi
callq 0x19d11
movq %rax, %rbp
movq 0x30(%rbx), %rdi
callq 0x19c72
leaq 0xb64(%rip), %r13       # 0x7a85
movq %rbx, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x128be
movq %rax, %r15
movq 0x30(%rbx), %rdi
callq 0x19c72
movq %rbx, %rdi
movq %r13, %rsi
movq %rax, %rdx
callq 0x128be
movq %rax, %r13
movq %r15, %rdi
movq %r14, %rsi
callq 0x19c50
movq %rbx, %rdi
movq (%rsp), %rsi
movq %rax, %rdx
callq 0x1299b
movq %r13, %rdi
movq %rbp, %rsi
callq 0x19c50
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x1299b
movq 0x30(%rbx), %rdi
callq 0x19c72
movq %rax, %rbx
movq %r15, %rdi
movq %r13, %rsi
callq 0x19c50
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x19c50
leaq 0xbb7(%rip), %rsi       # 0x7b61
movq %rbx, %rdi
movq %rax, %rdx
callq 0x11fbe
leaq 0x10(%rsp), %rdi
movl $0x1ce, 0xc(%rdi)       # imm = 0x1CE
callq 0x1bbab
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x15680(%rip), %rdi     # 0x1c65c
leaq 0x15039(%rip), %rsi     # 0x1c01c
leaq 0x1564d(%rip), %rcx     # 0x1c637
movl $0x1c0, %edx            # imm = 0x1C0
callq 0x2100
leaq 0x1562f(%rip), %rdi     # 0x1c62a
leaq 0x1501a(%rip), %rsi     # 0x1c01c
leaq 0x1562e(%rip), %rcx     # 0x1c637
movl $0x1bd, %edx            # imm = 0x1BD
callq 0x2100
leaq 0x15635(%rip), %rdi     # 0x1c64f
leaq 0x14ffb(%rip), %rsi     # 0x1c01c
leaq 0x1560f(%rip), %rcx     # 0x1c637
movl $0x1bf, %edx            # imm = 0x1BF
callq 0x2100
leaq 0x15634(%rip), %rdi     # 0x1c66d
leaq 0x14fdc(%rip), %rsi     # 0x1c01c
leaq 0x155f0(%rip), %rcx     # 0x1c637
movl $0x1c2, %edx            # imm = 0x1C2
callq 0x2100
leaq 0x15622(%rip), %rdi     # 0x1c67a
leaq 0x14fbd(%rip), %rsi     # 0x1c01c
leaq 0x155d1(%rip), %rcx     # 0x1c637
movl $0x1c4, %edx            # imm = 0x1C4
callq 0x2100
leaq 0x15610(%rip), %rdi     # 0x1c687
leaq 0x14f9e(%rip), %rsi     # 0x1c01c
leaq 0x155b2(%rip), %rcx     # 0x1c637
movl $0x1c5, %edx            # imm = 0x1C5
callq 0x2100