// File: /workspace/github_c_makefile_star2_O1/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 0x19ba6
movq %rax, %rdi
callq 0x11d11
movq %rax, %r12
movq 0x30(%rbx), %rdi
callq 0x19c45
movq %rax, %rbp
leaq 0xc644(%rip), %rax      # 0x1caa4
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x12ec1(%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 0xbec0(%rip), %rcx      # 0x1c34a
movq %rcx, 0x10(%rdi)
leaq 0x12cbb(%rip), %rcx     # 0x23150
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x1b912
cmpq 0x12b17(%rip), %r12     # 0x22fc0
je 0x1054d
testq %r12, %r12
je 0x1054d
movl %r12d, %eax
andl $0x3, %eax
jne 0x1054d
movq %r12, %rdi
callq 0x19ba6
movq %rax, %r14
movq %r12, %rdi
callq 0x19c45
testq %rax, %rax
je 0x104ec
movq %r12, %rdi
callq 0x19c45
testb $0x3, %al
je 0x105c8
leaq -0xa8fe(%rip), %rsi     # 0x5bf5
leaq 0x12da6(%rip), %rdx     # 0x232a0
movq %rbx, %rdi
callq 0x1283a
movq %rax, %r14
leaq 0xc027(%rip), %rdi      # 0x1c533
callq 0x1707c
movq %rax, %r15
leaq 0xbb01(%rip), %rdi      # 0x1c01c
callq 0x1707c
movl $0x20f7, %esi           # imm = 0x20F7
movq %rax, %rdi
callq 0x19b84
movq %r15, %rdi
movq %rax, %rsi
callq 0x19b84
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x12917
movl $0x83d, %eax            # imm = 0x83D
jmp 0x105ac
leaq -0xa95f(%rip), %rsi     # 0x5bf5
leaq 0x12d45(%rip), %rdx     # 0x232a0
movq %rbx, %rdi
callq 0x1283a
movq %rax, %r14
leaq 0xbfc6(%rip), %rdi      # 0x1c533
callq 0x1707c
movq %rax, %r15
leaq 0xbaa0(%rip), %rdi      # 0x1c01c
callq 0x1707c
movl $0x20ef, %esi           # imm = 0x20EF
movq %rax, %rdi
callq 0x19b84
movq %r15, %rdi
movq %rax, %rsi
callq 0x19b84
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x12917
movl $0x83b, %eax            # imm = 0x83B
leaq 0x10(%rsp), %rdi
movl %eax, 0xc(%rdi)
callq 0x1ba97
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, %rdi
callq 0x19c45
cmpq 0x129e9(%rip), %rax     # 0x22fc0
je 0x104ec
movq %r12, %rdi
callq 0x19c45
andl $0x3, %eax
cmpl $0x1, %eax
je 0x104ec
movq %r12, %rdi
callq 0x19c45
movq %rax, %rdi
callq 0x19ba6
movq %rax, 0x8(%rsp)
movq %r12, %rdi
callq 0x19c45
movq %rax, %rdi
callq 0x19c45
cmpq 0x129a3(%rip), %rbp     # 0x22fc0
je 0x10828
testq %rbp, %rbp
je 0x10828
movq %rax, %r13
movl %ebp, %eax
andl $0x3, %eax
jne 0x10828
movq %rbp, %rdi
callq 0x19ba6
movq %rax, %r12
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x1088c
movq %rbp, %rdi
callq 0x19c45
movq %rax, %rbp
leaq 0x132cd(%rip), %rax     # 0x23930
cmpl $0x0, (%rax)
je 0x106aa
movq (%r15), %rax
movq 0x50(%rax), %rax
leaq 0xc43a(%rip), %rdi      # 0x1cab0
movq %rdi, 0x10(%rax)
callq 0x1b084
testl %eax, %eax
je 0x106aa
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x845, 0xc(%rax)       # imm = 0x845
movq %r14, %rdi
callq 0x13b9c
leaq 0xceb4(%rip), %rdi      # 0x1d554
movq %rax, %rsi
xorl %eax, %eax
callq 0x1b983
leaq 0x1327f(%rip), %rax     # 0x23930
cmpl $0x0, (%rax)
je 0x106fa
movq (%r15), %rax
movq 0x50(%rax), %rax
leaq 0xc3f2(%rip), %rdi      # 0x1cab6
movq %rdi, 0x10(%rax)
callq 0x1b084
testl %eax, %eax
je 0x106fa
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x846, 0xc(%rax)       # imm = 0x846
movq 0x8(%rsp), %rdi
callq 0x13b9c
leaq 0xce64(%rip), %rdi      # 0x1d554
movq %rax, %rsi
xorl %eax, %eax
callq 0x1b983
leaq 0x1322f(%rip), %rax     # 0x23930
cmpl $0x0, (%rax)
je 0x10748
movq (%r15), %rax
movq 0x50(%rax), %rax
leaq 0xc40f(%rip), %rdi      # 0x1cb23
movq %rdi, 0x10(%rax)
callq 0x1b084
testl %eax, %eax
je 0x10748
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x847, 0xc(%rax)       # imm = 0x847
movq %r13, %rdi
callq 0x13b9c
leaq 0xce16(%rip), %rdi      # 0x1d554
movq %rax, %rsi
xorl %eax, %eax
callq 0x1b983
leaq 0x131e1(%rip), %rax     # 0x23930
cmpl $0x0, (%rax)
je 0x10796
movq (%r15), %rax
movq 0x50(%rax), %rax
leaq 0xbdd4(%rip), %rdi      # 0x1c536
movq %rdi, 0x10(%rax)
callq 0x1b084
testl %eax, %eax
je 0x10796
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x848, 0xc(%rax)       # imm = 0x848
movq %r12, %rdi
callq 0x13b9c
leaq 0xcdc8(%rip), %rdi      # 0x1d554
movq %rax, %rsi
xorl %eax, %eax
callq 0x1b983
leaq 0x13193(%rip), %rax     # 0x23930
cmpl $0x0, (%rax)
je 0x107e4
movq (%r15), %rax
movq 0x50(%rax), %rax
leaq 0xbd8b(%rip), %rdi      # 0x1c53b
movq %rdi, 0x10(%rax)
callq 0x1b084
testl %eax, %eax
je 0x107e4
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x849, 0xc(%rax)       # imm = 0x849
movq %rbp, %rdi
callq 0x13b9c
leaq 0xcd7a(%rip), %rdi      # 0x1d554
movq %rax, %rsi
xorl %eax, %eax
callq 0x1b983
cmpq 0x127d5(%rip), %rbp     # 0x22fc0
je 0x10816
testq %rbp, %rbp
je 0x10816
movl %ebp, %eax
andl $0x3, %eax
jne 0x10816
movq %rbp, %rdi
callq 0x19c45
testq %rax, %rax
je 0x10816
movq %rbp, %rdi
callq 0x19c45
testb $0x3, %al
je 0x108f0
movq %rbx, %rdi
callq 0xf724
movl $0x856, %eax            # imm = 0x856
jmp 0x105ac
leaq -0xac3a(%rip), %rsi     # 0x5bf5
leaq 0x12a6a(%rip), %rdx     # 0x232a0
movq %rbx, %rdi
callq 0x1283a
movq %rax, %r14
leaq 0xbceb(%rip), %rdi      # 0x1c533
callq 0x1707c
movq %rax, %r15
leaq 0xb7c5(%rip), %rdi      # 0x1c01c
callq 0x1707c
movl $0x2103, %esi           # imm = 0x2103
movq %rax, %rdi
callq 0x19b84
movq %r15, %rdi
movq %rax, %rsi
callq 0x19b84
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x12917
movl $0x840, %eax            # imm = 0x840
jmp 0x105ac
leaq -0xac9e(%rip), %rsi     # 0x5bf5
leaq 0x12a06(%rip), %rdx     # 0x232a0
movq %rbx, %rdi
callq 0x1283a
movq %rax, %r14
leaq 0xbc87(%rip), %rdi      # 0x1c533
callq 0x1707c
movq %rax, %r15
leaq 0xb761(%rip), %rdi      # 0x1c01c
callq 0x1707c
movl $0x210b, %esi           # imm = 0x210B
movq %rax, %rdi
callq 0x19b84
movq %r15, %rdi
movq %rax, %rsi
callq 0x19b84
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x12917
movl $0x842, %eax            # imm = 0x842
jmp 0x105ac
movq %rbp, %rdi
callq 0x19c45
cmpq 0x126c1(%rip), %rax     # 0x22fc0
je 0x10816
movq %rbp, %rdi
callq 0x19c45
andl $0x3, %eax
cmpl $0x1, %eax
je 0x10816
movq %rbp, %rdi
callq 0x19ba6
movq %rax, (%rsp)
leaq 0xbcd2(%rip), %rdi      # 0x1c5fe
callq 0x1707c
cmpq %rax, (%rsp)
jne 0x10816
movq %rbp, %rdi
callq 0x19c45
movq %rax, %rdi
callq 0x19ba6
movq %rax, (%rsp)
leaq 0x1294a(%rip), %rsi     # 0x232a0
movq %r13, %rdi
callq 0x19b84
leaq -0x19de(%rip), %rsi     # 0xef87
movq %rbx, %rdi
movq %rax, %rdx
callq 0x1283a
movq %rax, %r13
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x19b84
movq %r12, %rdi
movq %rax, %rsi
callq 0x19b84
leaq 0xa1(%rip), %rsi        # 0x10a33
movq %rbx, %rdi
movq %rax, %rdx
callq 0x1283a
movq %rax, %rbp
leaq 0x12f89(%rip), %rax     # 0x23930
cmpl $0x0, (%rax)
je 0x109ef
movq (%r15), %rax
movq 0x50(%rax), %rax
leaq 0xc101(%rip), %rdi      # 0x1cabb
movq %rdi, 0x10(%rax)
callq 0x1b084
testl %eax, %eax
je 0x109ef
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x851, 0xc(%rax)       # imm = 0x851
movq (%rsp), %rdi
callq 0x13b9c
leaq 0xcb6f(%rip), %rdi      # 0x1d554
movq %rax, %rsi
xorl %eax, %eax
callq 0x1b983
leaq 0xbbbe(%rip), %rdi      # 0x1c5b4
callq 0x1707c
movq %rax, %r12
movq (%rsp), %rdi
movq %r13, %rsi
callq 0x19b84
movq %r12, %rdi
movq %rax, %rsi
callq 0x19b84
movq %rbp, %rdi
movq %rax, %rsi
callq 0x19b84
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x12917
jmp 0x1081e