// File: /workspace/github_c_makefile_star2_O3/dalnefre[P]kernel_abe/schemer.c
// Function: form_beh
BEH_DECL(form_beh)
{
	CONS* form = pr_head(MINE);
	CONS* lex = pr_tail(MINE);
	CONS* p;
	CONS* state;
	CONS* a;
	CONS* env;

	DBUG_ENTER("form_beh");
	DBUG_PRINT("", ("form = %s", cons_to_str(form)));
	if (is_pair(WHAT) && is_pair(p = pr_tail(WHAT))) {
		CONS* to = pr_head(WHAT);
		CONS* expr = pr_head(p);
		CONS* dyn = pr_tail(p);

		DBUG_PRINT("", ("expr = %s", cons_to_str(expr)));
		env = ACTOR(frame_beh, lex);
		state =  mk_pair(to, dyn);
		a = ACTOR(apply_form_beh, state);
		state = mk_pair(form, env);
		state = mk_pair(a, state);
		a = ACTOR(apply_lambda_beh, state);
		SEND(a, expr);
	} 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, %rdi
callq 0x150ee
movq %rax, %r14
movq 0x30(%rbx), %rdi
callq 0x150ee
movq %rax, %rdi
callq 0xd1e1
movq %rax, %rdi
callq 0x1518d
movq %rax, 0x8(%rsp)
leaq 0x13e90(%rip), %rax     # 0x181f3
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x1afae(%rip), %r15     # 0x1f320
movq (%r15), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x23d, 0xc(%rdi)       # imm = 0x23D
leaq 0x16653(%rip), %r12     # 0x1a9e0
movq %r12, 0x10(%rdi)
leaq 0x1ada8(%rip), %rcx     # 0x1f140
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x16ea2
leaq 0x1b544(%rip), %rax     # 0x1f8f0
cmpl $0x0, (%rax)
je 0x43ef
movq (%r15), %rax
movq 0x50(%rax), %rax
movq %r12, 0x10(%rax)
movq %r12, %rdi
callq 0x16604
testl %eax, %eax
je 0x43ef
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x23e, 0xc(%rax)       # imm = 0x23E
movq %r14, %rdi
callq 0xf0bc
leaq 0x13dff(%rip), %rdi     # 0x181e4
movq %rax, %rsi
xorl %eax, %eax
callq 0x16f13
movq 0x30(%rbx), %rdi
callq 0x1518d
testq %rax, %rax
je 0x458b
movq 0x30(%rbx), %rdi
callq 0x1518d
testb $0x3, %al
jne 0x458b
movq 0x30(%rbx), %rdi
callq 0x1518d
cmpq 0x1ab9e(%rip), %rax     # 0x1efc0
je 0x458b
movq 0x30(%rbx), %rdi
callq 0x1518d
movq %rax, %rdi
callq 0x1518d
testq %rax, %rax
je 0x458b
movq 0x30(%rbx), %rdi
callq 0x1518d
movq %rax, %rdi
callq 0x1518d
testb $0x3, %al
jne 0x458b
movq 0x30(%rbx), %rdi
callq 0x1518d
movq %rax, %rdi
callq 0x1518d
cmpq 0x1ab4d(%rip), %rax     # 0x1efc0
je 0x458b
movq %rax, %r15
movq 0x30(%rbx), %rdi
callq 0x1518d
movq %rax, %rdi
callq 0x150ee
movq %rax, %rbp
movq %r15, %rdi
callq 0x150ee
movq %rax, %r13
movq %r15, %rdi
callq 0x1518d
movq %rax, %r15
leaq 0x1b443(%rip), %rax     # 0x1f8f0
cmpl $0x0, (%rax)
je 0x44fe
leaq 0x1ae67(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movq %r12, 0x10(%rax)
movq %r12, %rdi
callq 0x16604
testl %eax, %eax
je 0x44fe
leaq 0x1ae49(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x244, 0xc(%rax)       # imm = 0x244
movq %r13, %rdi
callq 0xf0bc
leaq 0x13bf8(%rip), %rdi     # 0x180ec
movq %rax, %rsi
xorl %eax, %eax
callq 0x16f13
leaq -0x1279(%rip), %rsi     # 0x328c
movq %rbx, %rdi
movq 0x8(%rsp), %rdx
callq 0xdd3a
movq %rax, %r12
movq %rbp, %rdi
movq %r15, %rsi
callq 0x150cc
leaq -0x345(%rip), %rsi      # 0x41e2
movq %rbx, %rdi
movq %rax, %rdx
callq 0xdd3a
movq %rax, %r15
movq %r14, %rdi
movq %r12, %rsi
callq 0x150cc
movq %r15, %rdi
movq %rax, %rsi
callq 0x150cc
leaq -0xe61(%rip), %rsi      # 0x36f1
movq %rbx, %rdi
movq %rax, %rdx
callq 0xdd3a
movq %rbx, %rdi
movq %rax, %rsi
movq %r13, %rdx
callq 0xde17
leaq 0x10(%rsp), %rdi
movl $0x250, 0xc(%rdi)       # imm = 0x250
callq 0x17027
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1b35e(%rip), %rax     # 0x1f8f0
cmpl $0x0, (%rax)
je 0x45ec
leaq 0x1ad82(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movq %r12, 0x10(%rax)
movq %r12, %rdi
callq 0x16604
testl %eax, %eax
je 0x45ec
leaq 0x1ad64(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x24d, 0xc(%rax)       # imm = 0x24D
movq 0x30(%rbx), %rdi
callq 0x1518d
movq %rax, %rdi
callq 0xf0bc
leaq 0x13a7e(%rip), %rdi     # 0x18060
movq %rax, %rsi
xorl %eax, %eax
callq 0x16f13
callq 0x2050