// File: /workspace/github_c_makefile_star2_O3/dalnefre[P]kernel_abe/kernel.c
// Function: lambda_type
static
BEH_DECL(lambda_type)
{
	CONS* state = MINE;
	CONS* ptree;
	CONS* body;
	CONS* env;
	CONS* msg = WHAT;
	CONS* cust;
	CONS* req;

	DBUG_ENTER("lambda_type");
	ENSURE(is_pr(state));
	ptree = hd(state);
	ENSURE(is_pr(tl(state)));
	body = hd(tl(state));
	env = tl(tl(state));
	ENSURE(is_pr(msg));
	cust = hd(msg);
	ENSURE(actorp(cust));
	req = tl(msg);

	DBUG_PRINT("ptree", ("%s", cons_to_str(ptree)));
	DBUG_PRINT("body", ("%s", cons_to_str(body)));
	DBUG_PRINT("env", ("%s", cons_to_str(env)));
	DBUG_PRINT("cust", ("%s", cons_to_str(cust)));
	DBUG_PRINT("req", ("%s", cons_to_str(req)));
	if (is_pr(req) && is_pr(tl(req))
	&& (hd(req) == ATOM("comb"))) {
		CONS* opnds = hd(tl(req));
		/* CONS* env = tl(tl(req)); -- dynamic environment ignored */
		CONS* local = ACTOR(env_type, pr(env, NIL));
		CONS* k_eval = ACTOR(eval_sequence_beh, pr(cust, pr(body, local)));

		DBUG_PRINT("opnds", ("%s", cons_to_str(opnds)));
		SEND(ptree, pr(k_eval, pr(ATOM("match"), pr(opnds, local))));
	} else {
		oper_type(CFG);  /* DELEGATE BEHAVIOR */
	}
	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, %rbp
leaq 0xc614(%rip), %rax      # 0x1caa4
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x12e91(%rip), %r15     # 0x23330
movq (%r15), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x83a, 0xc(%rdi)       # imm = 0x83A
leaq 0xbe90(%rip), %rcx      # 0x1c34a
movq %rcx, 0x10(%rdi)
leaq 0x12c8b(%rip), %rcx     # 0x23150
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x1ba26
cmpq 0x12ae7(%rip), %r12     # 0x22fc0
je 0x1057d
testq %r12, %r12
je 0x1057d
movl %r12d, %eax
andl $0x3, %eax
jne 0x1057d
movq %r12, %rdi
callq 0x19c72
movq %rax, %r14
movq %r12, %rdi
callq 0x19d11
testq %rax, %rax
je 0x1051c
movq %r12, %rdi
callq 0x19d11
testb $0x3, %al
je 0x105f8
leaq -0xa97b(%rip), %rsi     # 0x5ba8
leaq 0x12d76(%rip), %rdx     # 0x232a0
movq %rbx, %rdi
callq 0x128be
movq %rax, %r14
leaq 0xbff7(%rip), %rdi      # 0x1c533
callq 0x170ff
movq %rax, %r15
leaq 0xbad1(%rip), %rdi      # 0x1c01c
callq 0x170ff
movl $0x20f7, %esi           # imm = 0x20F7
movq %rax, %rdi
callq 0x19c50
movq %r15, %rdi
movq %rax, %rsi
callq 0x19c50
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x1299b
movl $0x83d, %eax            # imm = 0x83D
jmp 0x105dc
leaq -0xa9dc(%rip), %rsi     # 0x5ba8
leaq 0x12d15(%rip), %rdx     # 0x232a0
movq %rbx, %rdi
callq 0x128be
movq %rax, %r14
leaq 0xbf96(%rip), %rdi      # 0x1c533
callq 0x170ff
movq %rax, %r15
leaq 0xba70(%rip), %rdi      # 0x1c01c
callq 0x170ff
movl $0x20ef, %esi           # imm = 0x20EF
movq %rax, %rdi
callq 0x19c50
movq %r15, %rdi
movq %rax, %rsi
callq 0x19c50
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x1299b
movl $0x83b, %eax            # imm = 0x83B
leaq 0x10(%rsp), %rdi
movl %eax, 0xc(%rdi)
callq 0x1bbab
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, %rdi
callq 0x19d11
cmpq 0x129b9(%rip), %rax     # 0x22fc0
je 0x1051c
movq %r12, %rdi
callq 0x19d11
andl $0x3, %eax
cmpl $0x1, %eax
je 0x1051c
movq %r12, %rdi
callq 0x19d11
movq %rax, %rdi
callq 0x19c72
movq %rax, 0x8(%rsp)
movq %r12, %rdi
callq 0x19d11
movq %rax, %rdi
callq 0x19d11
cmpq 0x12973(%rip), %rbp     # 0x22fc0
je 0x10868
testq %rbp, %rbp
je 0x10868
movq %rax, %r13
movl %ebp, %eax
andl $0x3, %eax
jne 0x10868
movq %rbp, %rdi
callq 0x19c72
movq %rax, %r12
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x108cc
movq %rbp, %rdi
callq 0x19d11
movq %rax, %rbp
leaq 0x1329d(%rip), %rax     # 0x23930
cmpl $0x0, (%rax)
je 0x10824
movq (%r15), %rax
movq 0x50(%rax), %rax
leaq 0xc406(%rip), %rdi      # 0x1cab0
movq %rdi, 0x10(%rax)
callq 0x1b188
testl %eax, %eax
je 0x106de
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x845, 0xc(%rax)       # imm = 0x845
movq %r14, %rdi
callq 0x13c40
leaq 0xce80(%rip), %rdi      # 0x1d554
movq %rax, %rsi
xorl %eax, %eax
callq 0x1ba97
leaq 0x1324b(%rip), %rax     # 0x23930
cmpl $0x0, (%rax)
je 0x10824
movq (%r15), %rax
movq 0x50(%rax), %rax
leaq 0xc3ba(%rip), %rdi      # 0x1cab6
movq %rdi, 0x10(%rax)
callq 0x1b188
testl %eax, %eax
je 0x10732
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x846, 0xc(%rax)       # imm = 0x846
movq 0x8(%rsp), %rdi
callq 0x13c40
leaq 0xce2c(%rip), %rdi      # 0x1d554
movq %rax, %rsi
xorl %eax, %eax
callq 0x1ba97
leaq 0x131f7(%rip), %rax     # 0x23930
cmpl $0x0, (%rax)
je 0x10824
movq (%r15), %rax
movq 0x50(%rax), %rax
leaq 0xc3d3(%rip), %rdi      # 0x1cb23
movq %rdi, 0x10(%rax)
callq 0x1b188
testl %eax, %eax
je 0x10784
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x847, 0xc(%rax)       # imm = 0x847
movq %r13, %rdi
callq 0x13c40
leaq 0xcdda(%rip), %rdi      # 0x1d554
movq %rax, %rsi
xorl %eax, %eax
callq 0x1ba97
leaq 0x131a5(%rip), %rax     # 0x23930
cmpl $0x0, (%rax)
je 0x10824
movq (%r15), %rax
movq 0x50(%rax), %rax
leaq 0xbd94(%rip), %rdi      # 0x1c536
movq %rdi, 0x10(%rax)
callq 0x1b188
testl %eax, %eax
je 0x107d6
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x848, 0xc(%rax)       # imm = 0x848
movq %r12, %rdi
callq 0x13c40
leaq 0xcd88(%rip), %rdi      # 0x1d554
movq %rax, %rsi
xorl %eax, %eax
callq 0x1ba97
leaq 0x13153(%rip), %rax     # 0x23930
cmpl $0x0, (%rax)
je 0x10824
movq (%r15), %rax
movq 0x50(%rax), %rax
leaq 0xbd4b(%rip), %rdi      # 0x1c53b
movq %rdi, 0x10(%rax)
callq 0x1b188
testl %eax, %eax
je 0x10824
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x849, 0xc(%rax)       # imm = 0x849
movq %rbp, %rdi
callq 0x13c40
leaq 0xcd3a(%rip), %rdi      # 0x1d554
movq %rax, %rsi
xorl %eax, %eax
callq 0x1ba97
cmpq 0x12795(%rip), %rbp     # 0x22fc0
je 0x10856
testq %rbp, %rbp
je 0x10856
movl %ebp, %eax
andl $0x3, %eax
jne 0x10856
movq %rbp, %rdi
callq 0x19d11
testq %rax, %rax
je 0x10856
movq %rbp, %rdi
callq 0x19d11
testb $0x3, %al
je 0x10930
movq %rbx, %rdi
callq 0xf748
movl $0x856, %eax            # imm = 0x856
jmp 0x105dc
leaq -0xacc7(%rip), %rsi     # 0x5ba8
leaq 0x12a2a(%rip), %rdx     # 0x232a0
movq %rbx, %rdi
callq 0x128be
movq %rax, %r14
leaq 0xbcab(%rip), %rdi      # 0x1c533
callq 0x170ff
movq %rax, %r15
leaq 0xb785(%rip), %rdi      # 0x1c01c
callq 0x170ff
movl $0x2103, %esi           # imm = 0x2103
movq %rax, %rdi
callq 0x19c50
movq %r15, %rdi
movq %rax, %rsi
callq 0x19c50
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x1299b
movl $0x840, %eax            # imm = 0x840
jmp 0x105dc
leaq -0xad2b(%rip), %rsi     # 0x5ba8
leaq 0x129c6(%rip), %rdx     # 0x232a0
movq %rbx, %rdi
callq 0x128be
movq %rax, %r14
leaq 0xbc47(%rip), %rdi      # 0x1c533
callq 0x170ff
movq %rax, %r15
leaq 0xb721(%rip), %rdi      # 0x1c01c
callq 0x170ff
movl $0x210b, %esi           # imm = 0x210B
movq %rax, %rdi
callq 0x19c50
movq %r15, %rdi
movq %rax, %rsi
callq 0x19c50
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x1299b
movl $0x842, %eax            # imm = 0x842
jmp 0x105dc
movq %rbp, %rdi
callq 0x19d11
cmpq 0x12681(%rip), %rax     # 0x22fc0
je 0x10856
movq %rbp, %rdi
callq 0x19d11
andl $0x3, %eax
cmpl $0x1, %eax
je 0x10856
movq %rbp, %rdi
callq 0x19c72
movq %rax, (%rsp)
leaq 0xbc92(%rip), %rdi      # 0x1c5fe
callq 0x170ff
cmpq %rax, (%rsp)
jne 0x10856
movq %rbp, %rdi
callq 0x19d11
movq %rax, %rdi
callq 0x19c72
movq %rax, (%rsp)
leaq 0x1290a(%rip), %rsi     # 0x232a0
movq %r13, %rdi
callq 0x19c50
leaq -0x1a00(%rip), %rsi     # 0xefa5
movq %rbx, %rdi
movq %rax, %rdx
callq 0x128be
movq %rax, %r13
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x19c50
movq %r12, %rdi
movq %rax, %rsi
callq 0x19c50
leaq 0xa1(%rip), %rsi        # 0x10a73
movq %rbx, %rdi
movq %rax, %rdx
callq 0x128be
movq %rax, %rbp
leaq 0x12f49(%rip), %rax     # 0x23930
cmpl $0x0, (%rax)
je 0x10a2f
movq (%r15), %rax
movq 0x50(%rax), %rax
leaq 0xc0c1(%rip), %rdi      # 0x1cabb
movq %rdi, 0x10(%rax)
callq 0x1b188
testl %eax, %eax
je 0x10a2f
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x851, 0xc(%rax)       # imm = 0x851
movq (%rsp), %rdi
callq 0x13c40
leaq 0xcb2f(%rip), %rdi      # 0x1d554
movq %rax, %rsi
xorl %eax, %eax
callq 0x1ba97
leaq 0xbb7e(%rip), %rdi      # 0x1c5b4
callq 0x170ff
movq %rax, %r12
movq (%rsp), %rdi
movq %r13, %rsi
callq 0x19c50
movq %r12, %rdi
movq %rax, %rsi
callq 0x19c50
movq %rbp, %rdi
movq %rax, %rsi
callq 0x19c50
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x1299b
jmp 0x1085e