// File: /workspace/github_c_makefile_star2_O0/dalnefre[P]kernel_abe/kernel.c
// Function: join_first_beh
static
BEH_DECL(join_first_beh)
{
	CONS* state = MINE;
	CONS* cust;
	CONS* k_first;
	CONS* rest;
	CONS* msg = WHAT;

	DBUG_ENTER("join_first_beh");
	assert(is_pr(state));
	cust = hd(state);
	assert(actorp(cust));
	assert(is_pr(tl(state)));
	k_first = hd(tl(state));
	rest = tl(tl(state));

	if (is_pr(msg)
	&& (hd(msg) == k_first)) {
		CONS* first = 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 0x1fd6d(%rip), %rax     # 0x2972d
movq %rax, -0x58(%rbp)
leaq 0x25955(%rip), %rax     # 0x2f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %eax
movl %eax, -0x50(%rbp)
movl $0x160, -0x4c(%rbp)     # imm = 0x160
leaq 0x1f989(%rip), %rax     # 0x2936f
movq %rax, -0x48(%rbp)
leaq 0x2574f(%rip), %rax     # 0x2f140
movq %rax, -0x40(%rbp)
leaq 0x25924(%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 0x9a2e
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 0x9a77
leaq 0x2584b(%rip), %rax     # 0x2f290
cmpq %rax, -0x10(%rbp)
sete %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
jne 0x9a77
movq -0x10(%rbp), %rax
andq $0x3, %rax
cmpq $0x1, %rax
sete %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
jne 0x9a77
jmp 0x9a96
leaq 0x1fbd1(%rip), %rdi     # 0x2964f
leaq 0x1f597(%rip), %rsi     # 0x2901c
movl $0x161, %edx            # imm = 0x161
leaq 0x1fcab(%rip), %rcx     # 0x2973c
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 0x9ac1
jmp 0x9ae0
leaq 0x1fbac(%rip), %rdi     # 0x29674
leaq 0x1f54d(%rip), %rsi     # 0x2901c
movl $0x163, %edx            # imm = 0x163
leaq 0x1fc61(%rip), %rcx     # 0x2973c
callq 0x2100
movq -0x10(%rbp), %rdi
callq 0x25510
movq %rax, %rcx
xorl %eax, %eax
cmpq $0x0, %rcx
movb %al, -0x62(%rbp)
je 0x9b0e
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 0x9b64
movq -0x10(%rbp), %rdi
callq 0x25510
leaq 0x25762(%rip), %rcx     # 0x2f290
cmpq %rcx, %rax
sete %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
jne 0x9b64
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 0x9b64
jmp 0x9b83
leaq 0x1fb16(%rip), %rdi     # 0x29681
leaq 0x1f4aa(%rip), %rsi     # 0x2901c
movl $0x164, %edx            # imm = 0x164
leaq 0x1fbbe(%rip), %rcx     # 0x2973c
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 0x9bcb
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 0x9d3b
leaq 0x256aa(%rip), %rax     # 0x2f290
cmpq %rax, -0x30(%rbp)
sete %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
jne 0x9d3b
movq -0x30(%rbp), %rax
andq $0x3, %rax
cmpq $0x1, %rax
sete %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
jne 0x9d3b
movq -0x30(%rbp), %rdi
callq 0x25380
cmpq -0x20(%rbp), %rax
jne 0x9d3b
movq -0x30(%rbp), %rdi
callq 0x25510
movq %rax, -0x60(%rbp)
leaq 0x25cdb(%rip), %rax     # 0x2f920
cmpl $0x0, (%rax)
je 0x9ca3
leaq 0x256cf(%rip), %rax     # 0x2f320
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x1fac3(%rip), %rcx     # 0x29722
movq %rcx, 0x10(%rax)
leaq 0x1fab8(%rip), %rdi     # 0x29722
callq 0x278a0
cmpl $0x0, %eax
je 0x9ca3
leaq 0x256a5(%rip), %rax     # 0x2f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x16c, 0xc(%rax)       # imm = 0x16C
movq -0x60(%rbp), %rdi
callq 0x1d250
movq %rax, %rsi
leaq 0x208c9(%rip), %rdi     # 0x2a565
movb $0x0, %al
callq 0x28540
jmp 0x9ca5
jmp 0x9ca7
leaq 0x25c72(%rip), %rax     # 0x2f920
cmpl $0x0, (%rax)
je 0x9d0c
leaq 0x25666(%rip), %rax     # 0x2f320
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x1fa60(%rip), %rcx     # 0x29728
movq %rcx, 0x10(%rax)
leaq 0x1fa55(%rip), %rdi     # 0x29728
callq 0x278a0
cmpl $0x0, %eax
je 0x9d0c
leaq 0x2563c(%rip), %rax     # 0x2f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x16d, 0xc(%rax)       # imm = 0x16D
movq -0x28(%rbp), %rdi
callq 0x1d250
movq %rax, %rsi
leaq 0x20860(%rip), %rdi     # 0x2a565
movb $0x0, %al
callq 0x28540
jmp 0x9d0e
movq -0x8(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x60(%rbp), %rdi
movq -0x28(%rbp), %rsi
callq 0x25290
movq -0x78(%rbp), %rdi
movq -0x70(%rbp), %rsi
movq %rax, %rdx
callq 0x1b810
movl $0x170, -0x4c(%rbp)     # imm = 0x170
leaq -0x58(%rbp), %rdi
callq 0x28660
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)