// File: /workspace/github_c_makefile_star2_O2/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 0x191fb
movq %rax, %rdi
callq 0x1175b
movq %rax, %r12
movq 0x30(%rbx), %rdi
callq 0x19306
movq %rax, %rbp
leaq 0xcc1a(%rip), %rax      # 0x1caa4
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x14497(%rip), %r15     # 0x24330
movq (%r15), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x83a, 0xc(%rdi)       # imm = 0x83A
leaq 0xc496(%rip), %rcx      # 0x1c34a
movq %rcx, 0x10(%rdi)
leaq 0x14291(%rip), %rcx     # 0x24150
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x1b079
cmpq 0x140ed(%rip), %r12     # 0x23fc0
je 0xff77
testq %r12, %r12
je 0xff77
movl %r12d, %eax
andl $0x3, %eax
jne 0xff77
movq %r12, %rdi
callq 0x191fb
movq %rax, %r14
movq %r12, %rdi
callq 0x19306
testq %rax, %rax
je 0xff16
movq %r12, %rdi
callq 0x19306
testb $0x3, %al
je 0xfff2
leaq -0xa951(%rip), %rsi     # 0x55cc
leaq 0x1437c(%rip), %rdx     # 0x242a0
movq %rbx, %rdi
callq 0x123b7
movq %rax, %r14
leaq 0xc5fd(%rip), %rdi      # 0x1c533
callq 0x1691f
movq %rax, %r15
leaq 0xc0d7(%rip), %rdi      # 0x1c01c
callq 0x1691f
movl $0x20f7, %esi           # imm = 0x20F7
movq %rax, %rdi
callq 0x19164
movq %r15, %rdi
movq %rax, %rsi
callq 0x19164
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x12494
movl $0x83d, %eax            # imm = 0x83D
jmp 0xffd6
leaq -0xa9b2(%rip), %rsi     # 0x55cc
leaq 0x1431b(%rip), %rdx     # 0x242a0
movq %rbx, %rdi
callq 0x123b7
movq %rax, %r14
leaq 0xc59c(%rip), %rdi      # 0x1c533
callq 0x1691f
movq %rax, %r15
leaq 0xc076(%rip), %rdi      # 0x1c01c
callq 0x1691f
movl $0x20ef, %esi           # imm = 0x20EF
movq %rax, %rdi
callq 0x19164
movq %r15, %rdi
movq %rax, %rsi
callq 0x19164
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x12494
movl $0x83b, %eax            # imm = 0x83B
leaq 0x10(%rsp), %rdi
movl %eax, 0xc(%rdi)
callq 0x1b1f2
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, %rdi
callq 0x19306
cmpq 0x13fbf(%rip), %rax     # 0x23fc0
je 0xff16
movq %r12, %rdi
callq 0x19306
andl $0x3, %eax
cmpl $0x1, %eax
je 0xff16
movq %r12, %rdi
callq 0x19306
movq %rax, %rdi
callq 0x191fb
movq %rax, 0x8(%rsp)
movq %r12, %rdi
callq 0x19306
movq %rax, %rdi
callq 0x19306
cmpq 0x13f79(%rip), %rbp     # 0x23fc0
je 0x10262
testq %rbp, %rbp
je 0x10262
movq %rax, %r13
movl %ebp, %eax
andl $0x3, %eax
jne 0x10262
movq %rbp, %rdi
callq 0x191fb
movq %rax, %r12
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x102c6
movq %rbp, %rdi
callq 0x19306
movq %rax, %rbp
leaq 0x148a3(%rip), %rax     # 0x24930
cmpl $0x0, (%rax)
je 0x1021e
movq (%r15), %rax
movq 0x50(%rax), %rax
leaq 0xca0c(%rip), %rdi      # 0x1cab0
movq %rdi, 0x10(%rax)
callq 0x1a7f4
testl %eax, %eax
je 0x100d8
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x845, 0xc(%rax)       # imm = 0x845
movq %r14, %rdi
callq 0x13708
leaq 0xd466(%rip), %rdi      # 0x1d534
movq %rax, %rsi
xorl %eax, %eax
callq 0x1b0f0
leaq 0x14851(%rip), %rax     # 0x24930
cmpl $0x0, (%rax)
je 0x1021e
movq (%r15), %rax
movq 0x50(%rax), %rax
leaq 0xc9c0(%rip), %rdi      # 0x1cab6
movq %rdi, 0x10(%rax)
callq 0x1a7f4
testl %eax, %eax
je 0x1012c
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x846, 0xc(%rax)       # imm = 0x846
movq 0x8(%rsp), %rdi
callq 0x13708
leaq 0xd412(%rip), %rdi      # 0x1d534
movq %rax, %rsi
xorl %eax, %eax
callq 0x1b0f0
leaq 0x147fd(%rip), %rax     # 0x24930
cmpl $0x0, (%rax)
je 0x1021e
movq (%r15), %rax
movq 0x50(%rax), %rax
leaq 0xc9d9(%rip), %rdi      # 0x1cb23
movq %rdi, 0x10(%rax)
callq 0x1a7f4
testl %eax, %eax
je 0x1017e
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x847, 0xc(%rax)       # imm = 0x847
movq %r13, %rdi
callq 0x13708
leaq 0xd3c0(%rip), %rdi      # 0x1d534
movq %rax, %rsi
xorl %eax, %eax
callq 0x1b0f0
leaq 0x147ab(%rip), %rax     # 0x24930
cmpl $0x0, (%rax)
je 0x1021e
movq (%r15), %rax
movq 0x50(%rax), %rax
leaq 0xc39a(%rip), %rdi      # 0x1c536
movq %rdi, 0x10(%rax)
callq 0x1a7f4
testl %eax, %eax
je 0x101d0
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x848, 0xc(%rax)       # imm = 0x848
movq %r12, %rdi
callq 0x13708
leaq 0xd36e(%rip), %rdi      # 0x1d534
movq %rax, %rsi
xorl %eax, %eax
callq 0x1b0f0
leaq 0x14759(%rip), %rax     # 0x24930
cmpl $0x0, (%rax)
je 0x1021e
movq (%r15), %rax
movq 0x50(%rax), %rax
leaq 0xc351(%rip), %rdi      # 0x1c53b
movq %rdi, 0x10(%rax)
callq 0x1a7f4
testl %eax, %eax
je 0x1021e
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x849, 0xc(%rax)       # imm = 0x849
movq %rbp, %rdi
callq 0x13708
leaq 0xd320(%rip), %rdi      # 0x1d534
movq %rax, %rsi
xorl %eax, %eax
callq 0x1b0f0
cmpq 0x13d9b(%rip), %rbp     # 0x23fc0
je 0x10250
testq %rbp, %rbp
je 0x10250
movl %ebp, %eax
andl $0x3, %eax
jne 0x10250
movq %rbp, %rdi
callq 0x19306
testq %rax, %rax
je 0x10250
movq %rbp, %rdi
callq 0x19306
testb $0x3, %al
je 0x1032a
movq %rbx, %rdi
callq 0xf142
movl $0x856, %eax            # imm = 0x856
jmp 0xffd6
leaq -0xac9d(%rip), %rsi     # 0x55cc
leaq 0x14030(%rip), %rdx     # 0x242a0
movq %rbx, %rdi
callq 0x123b7
movq %rax, %r14
leaq 0xc2b1(%rip), %rdi      # 0x1c533
callq 0x1691f
movq %rax, %r15
leaq 0xbd8b(%rip), %rdi      # 0x1c01c
callq 0x1691f
movl $0x2103, %esi           # imm = 0x2103
movq %rax, %rdi
callq 0x19164
movq %r15, %rdi
movq %rax, %rsi
callq 0x19164
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x12494
movl $0x840, %eax            # imm = 0x840
jmp 0xffd6
leaq -0xad01(%rip), %rsi     # 0x55cc
leaq 0x13fcc(%rip), %rdx     # 0x242a0
movq %rbx, %rdi
callq 0x123b7
movq %rax, %r14
leaq 0xc24d(%rip), %rdi      # 0x1c533
callq 0x1691f
movq %rax, %r15
leaq 0xbd27(%rip), %rdi      # 0x1c01c
callq 0x1691f
movl $0x210b, %esi           # imm = 0x210B
movq %rax, %rdi
callq 0x19164
movq %r15, %rdi
movq %rax, %rsi
callq 0x19164
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x12494
movl $0x842, %eax            # imm = 0x842
jmp 0xffd6
movq %rbp, %rdi
callq 0x19306
cmpq 0x13c87(%rip), %rax     # 0x23fc0
je 0x10250
movq %rbp, %rdi
callq 0x19306
andl $0x3, %eax
cmpl $0x1, %eax
je 0x10250
movq %rbp, %rdi
callq 0x191fb
movq %rax, (%rsp)
leaq 0xc298(%rip), %rdi      # 0x1c5fe
callq 0x1691f
cmpq %rax, (%rsp)
jne 0x10250
movq %rbp, %rdi
callq 0x19306
movq %rax, %rdi
callq 0x191fb
movq %rax, (%rsp)
leaq 0x13f10(%rip), %rsi     # 0x242a0
movq %r13, %rdi
callq 0x19164
leaq -0x1a00(%rip), %rsi     # 0xe99f
movq %rbx, %rdi
movq %rax, %rdx
callq 0x123b7
movq %rax, %r13
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x19164
movq %r12, %rdi
movq %rax, %rsi
callq 0x19164
leaq 0xa1(%rip), %rsi        # 0x1046d
movq %rbx, %rdi
movq %rax, %rdx
callq 0x123b7
movq %rax, %rbp
leaq 0x1454f(%rip), %rax     # 0x24930
cmpl $0x0, (%rax)
je 0x10429
movq (%r15), %rax
movq 0x50(%rax), %rax
leaq 0xc6c7(%rip), %rdi      # 0x1cabb
movq %rdi, 0x10(%rax)
callq 0x1a7f4
testl %eax, %eax
je 0x10429
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x851, 0xc(%rax)       # imm = 0x851
movq (%rsp), %rdi
callq 0x13708
leaq 0xd115(%rip), %rdi      # 0x1d534
movq %rax, %rsi
xorl %eax, %eax
callq 0x1b0f0
leaq 0xc184(%rip), %rdi      # 0x1c5b4
callq 0x1691f
movq %rax, %r12
movq (%rsp), %rdi
movq %r13, %rsi
callq 0x19164
movq %r12, %rdi
movq %rax, %rsi
callq 0x19164
movq %rbp, %rdi
movq %rax, %rsi
callq 0x19164
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x12494
jmp 0x10258