// File: /workspace/github_c_makefile_star2_O3/dalnefre[P]kernel_abe/schemer.c
// Function: frame_beh
BEH_DECL(frame_beh)
{
	CONS* parent = MINE;
	CONS* p;
	CONS* state;
	CONS* msg;
	CONS* a;

	DBUG_ENTER("frame_beh");
	if (is_pair(WHAT) && is_pair(p = pr_tail(WHAT))) {
		CONS* to = pr_head(WHAT);
		CONS* expr = pr_head(p);
		CONS* env = pr_tail(p);
		CONS* verb;
		CONS* n;

		DBUG_PRINT("", ("expr = %s", cons_to_str(expr)));
		p = expr;
		verb = lst_first(p);
		p = lst_rest(p);
		n = lst_first(p);
		p = lst_rest(p);
		if (verb == ATOM("define")) {
			CONS* v = lst_first(p);

			DBUG_PRINT("", ("n = %s", cons_to_str(n)));
			DBUG_PRINT("", ("v = %s", cons_to_str(v)));
			a = ACTOR(THIS, parent);
			state = mk_pair(n, v);
			state = mk_pair(a, state);
			BECOME(binding_beh, state);
			SEND(to, ATOM("ok"));
		} else if (is_actor(parent)) {
			SEND(parent, WHAT);
		} else {
			DBUG_PRINT("", ("unknown"));
			msg = mk_list(n, mk_empty());
			msg = mk_list(ATOM("unknown-symbol"), msg);
			FAIL(env, msg);
		}
	} else {
		DBUG_PRINT("", ("Ignored! %s", cons_to_str(WHAT)));
		abort();
	}
	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 0x150ee
movq %rax, %rdi
callq 0xd1e1
movq %rax, %r15
leaq 0x14e2a(%rip), %rax     # 0x180e2
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x1c059(%rip), %r12     # 0x1f320
movq (%r12), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x13c, 0xc(%rdi)       # imm = 0x13C
leaq 0x176fd(%rip), %rcx     # 0x1a9e0
movq %rcx, 0x10(%rdi)
leaq 0x1be52(%rip), %rcx     # 0x1f140
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x16ea2
movq 0x30(%rbx), %rdi
callq 0x1518d
testq %rax, %rax
je 0x3687
movq 0x30(%rbx), %rdi
callq 0x1518d
testb $0x3, %al
jne 0x3687
movq 0x30(%rbx), %rdi
callq 0x1518d
cmpq 0x1bc92(%rip), %rax     # 0x1efc0
je 0x3687
movq 0x30(%rbx), %rdi
callq 0x1518d
movq %rax, %rdi
callq 0x1518d
testq %rax, %rax
je 0x3687
movq 0x30(%rbx), %rdi
callq 0x1518d
movq %rax, %rdi
callq 0x1518d
testb $0x3, %al
jne 0x3687
movq 0x30(%rbx), %rdi
callq 0x1518d
movq %rax, %rdi
callq 0x1518d
cmpq 0x1bc41(%rip), %rax     # 0x1efc0
je 0x3687
movq %rax, %r13
movq 0x30(%rbx), %rdi
callq 0x1518d
movq %rax, %rdi
callq 0x150ee
movq %rax, 0x8(%rsp)
movq %r13, %rdi
callq 0x150ee
movq %rax, %rbp
movq %r13, %rdi
callq 0x1518d
movq %rax, (%rsp)
leaq 0x1c534(%rip), %r13     # 0x1f8f0
cmpl $0x0, (%r13)
je 0x3407
movq (%r12), %rax
movq 0x50(%rax), %rax
leaq 0x1760e(%rip), %rdi     # 0x1a9e0
movq %rdi, 0x10(%rax)
callq 0x16604
testl %eax, %eax
je 0x3407
movq (%r12), %rax
movq 0x50(%rax), %rax
movl $0x144, 0xc(%rax)       # imm = 0x144
movq %rbp, %rdi
callq 0xf0bc
leaq 0x14cef(%rip), %rdi     # 0x180ec
movq %rax, %rsi
xorl %eax, %eax
callq 0x16f13
movq %rbp, %rdi
callq 0x150ee
movq %rax, %r14
movq %rbp, %rdi
callq 0x1518d
movq %rax, %r12
movq %rax, %rdi
callq 0x150ee
movq %rax, %rbp
movq %r12, %rdi
callq 0x1518d
movq %rax, %r12
leaq 0x14c75(%rip), %rdi     # 0x180af
callq 0x1257b
cmpq %rax, %r14
je 0x3467
movl %r15d, %eax
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x358f
movq 0x30(%rbx), %rdi
callq 0x1518d
movq %rbx, %rdi
movq %r15, %rsi
jmp 0x365f
movq %r12, %rdi
callq 0x150ee
movq %rax, %r12
cmpl $0x0, (%r13)
movq %r15, %r14
je 0x3520
leaq 0x1be99(%rip), %r15     # 0x1f320
movq (%r15), %rax
movq 0x50(%rax), %rax
leaq 0x1754b(%rip), %rdi     # 0x1a9e0
movq %rdi, 0x10(%rax)
callq 0x16604
testl %eax, %eax
je 0x34c9
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x14d, 0xc(%rax)       # imm = 0x14D
movq %rbp, %rdi
callq 0xf0bc
leaq 0x14bfc(%rip), %rdi     # 0x180bb
movq %rax, %rsi
xorl %eax, %eax
callq 0x16f13
cmpl $0x0, (%r13)
je 0x3520
leaq 0x1be49(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x174fb(%rip), %rdi     # 0x1a9e0
movq %rdi, 0x10(%rax)
callq 0x16604
testl %eax, %eax
je 0x3520
leaq 0x1be27(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x14e, 0xc(%rax)       # imm = 0x14E
movq %r12, %rdi
callq 0xf0bc
leaq 0x14bac(%rip), %rdi     # 0x180c2
movq %rax, %rsi
xorl %eax, %eax
callq 0x16f13
movq 0x30(%rbx), %rdi
callq 0x150ee
movq %rax, %rdi
callq 0xd1a8
movq %rbx, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0xdd3a
movq %rax, %r14
movq %rbp, %rdi
movq %r12, %rsi
callq 0x150cc
movq %r14, %rdi
movq %rax, %rsi
callq 0x150cc
movq %rax, %r14
movq 0x30(%rbx), %rdi
callq 0x150ee
leaq -0x78d(%rip), %rsi      # 0x2dde
movq %rax, %rdi
movq %r14, %rdx
callq 0xd43a
leaq 0x14b56(%rip), %rdi     # 0x180d3
callq 0x1257b
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
jmp 0x365f
cmpl $0x0, (%r13)
leaq 0x1bd85(%rip), %r14     # 0x1f320
je 0x35d4
movq (%r14), %rax
movq 0x50(%rax), %rax
leaq 0x17435(%rip), %rdi     # 0x1a9e0
movq %rdi, 0x10(%rax)
callq 0x16604
testl %eax, %eax
je 0x35d4
movq (%r14), %rax
movq 0x50(%rax), %rax
movl $0x157, 0xc(%rax)       # imm = 0x157
leaq 0x14b29(%rip), %rdi     # 0x180f6
xorl %eax, %eax
callq 0x16f13
leaq 0x1bcb5(%rip), %r14     # 0x1f290
movq %rbp, %rdi
movq %r14, %rsi
callq 0x150cc
movq %rax, %r15
leaq 0x14b0e(%rip), %rdi     # 0x180fe
callq 0x1257b
movq %rax, %rdi
movq %r15, %rsi
callq 0x150cc
leaq -0xb8f(%rip), %rsi      # 0x2a78
movq %rbx, %rdi
movq %rax, %rdx
callq 0xdd3a
movq %rax, %r15
leaq 0x14a6e(%rip), %rdi     # 0x1808a
callq 0x1257b
movq %rax, %r12
callq 0xd160
movq %rax, %rdi
movq %r14, %rsi
callq 0x150cc
movq %r12, %rdi
movq %rax, %rsi
callq 0x150cc
movq %rax, %rdi
movq (%rsp), %r14
movq %r14, %rsi
callq 0x150cc
movq %r15, %rdi
movq %rax, %rsi
callq 0x150cc
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0xde17
leaq 0x10(%rsp), %rdi
movl $0x160, 0xc(%rdi)       # imm = 0x160
callq 0x17027
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1c262(%rip), %rax     # 0x1f8f0
cmpl $0x0, (%rax)
je 0x36ec
leaq 0x1bc86(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x17338(%rip), %rdi     # 0x1a9e0
movq %rdi, 0x10(%rax)
callq 0x16604
testl %eax, %eax
je 0x36ec
leaq 0x1bc64(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x15d, 0xc(%rax)       # imm = 0x15D
movq 0x30(%rbx), %rdi
callq 0x1518d
movq %rax, %rdi
callq 0xf0bc
leaq 0x1497e(%rip), %rdi     # 0x18060
movq %rax, %rsi
xorl %eax, %eax
callq 0x16f13
callq 0x2050