// File: /workspace/github_c_makefile_star2_O0/dalnefre[P]kernel_abe/kernel.c
// Function: join_rest_beh
static
BEH_DECL(join_rest_beh)
{
	CONS* state = MINE;
	CONS* cust;
	CONS* k_rest;
	CONS* first;
	CONS* msg = WHAT;

	DBUG_ENTER("join_rest_beh");
	assert(is_pr(state));
	cust = hd(state);
	assert(actorp(cust));
	assert(is_pr(tl(state)));
	k_rest = hd(tl(state));
	first = tl(tl(state));

	if (is_pr(msg)
	&& (hd(msg) == k_rest)) {
		CONS* rest = tl(msg);

		DBUG_PRINT("first", ("%s", cons_to_str(first)));
		DBUG_PRINT("rest", ("%s", cons_to_str(rest)));
		SEND(cust, pr(first, rest));
	}
	DBUG_RETURN;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x25380
movq %rax, %rdi
callq 0x1a600
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x25510
movq %rax, -0x30(%rbp)
leaq 0x20117(%rip), %rax     # 0x296f7
movq %rax, -0x58(%rbp)
leaq 0x25d35(%rip), %rax     # 0x2f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %eax
movl %eax, -0x50(%rbp)
movl $0x140, -0x4c(%rbp)     # imm = 0x140
leaq 0x1fd69(%rip), %rax     # 0x2936f
movq %rax, -0x48(%rbp)
leaq 0x25b2f(%rip), %rax     # 0x2f140
movq %rax, -0x40(%rbp)
leaq 0x25d04(%rip), %rax     # 0x2f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movq %rax, -0x38(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x28490
xorl %eax, %eax
cmpq $0x0, -0x10(%rbp)
movb %al, -0x61(%rbp)
je 0x964e
movq -0x10(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
sete %al
movb %al, -0x61(%rbp)
movb -0x61(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x9697
leaq 0x25c2b(%rip), %rax     # 0x2f290
cmpq %rax, -0x10(%rbp)
sete %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
jne 0x9697
movq -0x10(%rbp), %rax
andq $0x3, %rax
cmpq $0x1, %rax
sete %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
jne 0x9697
jmp 0x96b6
leaq 0x1ffb1(%rip), %rdi     # 0x2964f
leaq 0x1f977(%rip), %rsi     # 0x2901c
movl $0x141, %edx            # imm = 0x141
leaq 0x20054(%rip), %rcx     # 0x29705
callq 0x2100
movq -0x10(%rbp), %rdi
callq 0x25380
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
andq $0x3, %rax
cmpq $0x1, %rax
sete %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x96e1
jmp 0x9700
leaq 0x1ff8c(%rip), %rdi     # 0x29674
leaq 0x1f92d(%rip), %rsi     # 0x2901c
movl $0x143, %edx            # imm = 0x143
leaq 0x2000a(%rip), %rcx     # 0x29705
callq 0x2100
movq -0x10(%rbp), %rdi
callq 0x25510
movq %rax, %rcx
xorl %eax, %eax
cmpq $0x0, %rcx
movb %al, -0x62(%rbp)
je 0x972e
movq -0x10(%rbp), %rdi
callq 0x25510
andq $0x3, %rax
cmpq $0x0, %rax
sete %al
movb %al, -0x62(%rbp)
movb -0x62(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x9784
movq -0x10(%rbp), %rdi
callq 0x25510
leaq 0x25b42(%rip), %rcx     # 0x2f290
cmpq %rcx, %rax
sete %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
jne 0x9784
movq -0x10(%rbp), %rdi
callq 0x25510
andq $0x3, %rax
cmpq $0x1, %rax
sete %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
jne 0x9784
jmp 0x97a3
leaq 0x1fef6(%rip), %rdi     # 0x29681
leaq 0x1f88a(%rip), %rsi     # 0x2901c
movl $0x144, %edx            # imm = 0x144
leaq 0x1ff67(%rip), %rcx     # 0x29705
callq 0x2100
movq -0x10(%rbp), %rdi
callq 0x25510
movq %rax, %rdi
callq 0x25380
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
callq 0x25510
movq %rax, %rdi
callq 0x25510
movq %rax, -0x28(%rbp)
xorl %eax, %eax
cmpq $0x0, -0x30(%rbp)
movb %al, -0x63(%rbp)
je 0x97eb
movq -0x30(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
sete %al
movb %al, -0x63(%rbp)
movb -0x63(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x995b
leaq 0x25a8a(%rip), %rax     # 0x2f290
cmpq %rax, -0x30(%rbp)
sete %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
jne 0x995b
movq -0x30(%rbp), %rax
andq $0x3, %rax
cmpq $0x1, %rax
sete %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
jne 0x995b
movq -0x30(%rbp), %rdi
callq 0x25380
cmpq -0x20(%rbp), %rax
jne 0x995b
movq -0x30(%rbp), %rdi
callq 0x25510
movq %rax, -0x60(%rbp)
leaq 0x260bb(%rip), %rax     # 0x2f920
cmpl $0x0, (%rax)
je 0x98c3
leaq 0x25aaf(%rip), %rax     # 0x2f320
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x1fea3(%rip), %rcx     # 0x29722
movq %rcx, 0x10(%rax)
leaq 0x1fe98(%rip), %rdi     # 0x29722
callq 0x278a0
cmpl $0x0, %eax
je 0x98c3
leaq 0x25a85(%rip), %rax     # 0x2f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x14c, 0xc(%rax)       # imm = 0x14C
movq -0x28(%rbp), %rdi
callq 0x1d250
movq %rax, %rsi
leaq 0x20ca9(%rip), %rdi     # 0x2a565
movb $0x0, %al
callq 0x28540
jmp 0x98c5
jmp 0x98c7
leaq 0x26052(%rip), %rax     # 0x2f920
cmpl $0x0, (%rax)
je 0x992c
leaq 0x25a46(%rip), %rax     # 0x2f320
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x1fe40(%rip), %rcx     # 0x29728
movq %rcx, 0x10(%rax)
leaq 0x1fe35(%rip), %rdi     # 0x29728
callq 0x278a0
cmpl $0x0, %eax
je 0x992c
leaq 0x25a1c(%rip), %rax     # 0x2f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x14d, 0xc(%rax)       # imm = 0x14D
movq -0x60(%rbp), %rdi
callq 0x1d250
movq %rax, %rsi
leaq 0x20c40(%rip), %rdi     # 0x2a565
movb $0x0, %al
callq 0x28540
jmp 0x992e
movq -0x8(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x28(%rbp), %rdi
movq -0x60(%rbp), %rsi
callq 0x25290
movq -0x78(%rbp), %rdi
movq -0x70(%rbp), %rsi
movq %rax, %rdx
callq 0x1b810
movl $0x150, -0x4c(%rbp)     # imm = 0x150
leaq -0x58(%rbp), %rdi
callq 0x28660
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)