// File: /workspace/github_c_makefile_star2_O1/dalnefre[P]kernel_abe/schemer.c
// Function: eval_set_beh
BEH_DECL(eval_set_beh)
{
	CONS* p;
	CONS* state;
	CONS* msg;
	CONS* a;

	DBUG_ENTER("eval_set_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* form = is_pair(expr) ? lst_first(expr) : NIL;

		DBUG_PRINT("", ("form = %s", cons_to_str(form)));
		if (is_symbol(form) && is_pair(expr) && is_pair(pr_tail(expr))) {
			state = mk_pair(form, env);
			state = mk_pair(to, state);
			a = ACTOR(apply_set_beh, state);
			DBUG_PRINT("", ("expr = %s", cons_to_str(lst_second(expr))));
			msg = mk_pair(lst_second(expr), env);
			msg = mk_pair(a, msg);
			SEND(eval__actor, msg);
		} else {
			DBUG_PRINT("", ("error"));
			msg = mk_list(ATOM("set!"), expr);
			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
leaq 0x1242c(%rip), %rax     # 0x18295
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x194a8(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x3cd, 0xc(%rdi)       # imm = 0x3CD
leaq 0x14b4d(%rip), %rcx     # 0x1a9e0
movq %rcx, 0x10(%rdi)
leaq 0x192a2(%rip), %rcx     # 0x1f140
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x16ef2
movq 0x30(%rbx), %rdi
callq 0x15225
testq %rax, %rax
je 0x6209
movq 0x30(%rbx), %rdi
callq 0x15225
testb $0x3, %al
jne 0x6209
movq 0x30(%rbx), %rdi
callq 0x15225
cmpq 0x190e2(%rip), %rax     # 0x1efc0
je 0x6209
movq 0x30(%rbx), %rdi
callq 0x15225
movq %rax, %rdi
callq 0x15225
testq %rax, %rax
je 0x6209
movq 0x30(%rbx), %rdi
callq 0x15225
movq %rax, %rdi
callq 0x15225
testb $0x3, %al
jne 0x6209
movq 0x30(%rbx), %rdi
callq 0x15225
movq %rax, %rdi
callq 0x15225
cmpq 0x19091(%rip), %rax     # 0x1efc0
je 0x6209
movq %rax, %r14
movq 0x30(%rbx), %rdi
callq 0x15225
movq %rax, %rdi
callq 0x15186
movq %rax, 0x8(%rsp)
movq %r14, %rdi
callq 0x15186
movq %rax, %r12
movq %r14, %rdi
callq 0x15225
movq %rax, %r14
testq %r12, %r12
sete %al
testb $0x3, %r12b
setne %r15b
orb %al, %r15b
leaq 0x19314(%rip), %rbp     # 0x1f290
cmpq %rbp, %r12
sete %al
orb %r15b, %al
jne 0x5f92
movq %r12, %rdi
callq 0x15186
movq %rax, %rbp
leaq 0x19957(%rip), %r13     # 0x1f8f0
cmpl $0x0, (%r13)
je 0x5ff0
leaq 0x19379(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x14a2b(%rip), %rdi     # 0x1a9e0
movq %rdi, 0x10(%rax)
callq 0x16664
testl %eax, %eax
je 0x5ff0
leaq 0x19357(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x3d4, 0xc(%rax)       # imm = 0x3D4
movq %rbp, %rdi
callq 0xf17c
leaq 0x121fe(%rip), %rdi     # 0x181e4
movq %rax, %rsi
xorl %eax, %eax
callq 0x16f63
movl %ebp, %eax
andl $0x3, %eax
cmpl $0x2, %eax
jne 0x6041
movl $0x1, %edi
callq 0x3d66
cmpq %rax, %rbp
je 0x6041
xorl %edi, %edi
callq 0x3d66
cmpq %rax, %rbp
sete %al
cmpq 0x18fa3(%rip), %r12     # 0x1efc0
je 0x6041
orb %al, %r15b
jne 0x6041
movq %r12, %rdi
callq 0x15225
testq %rax, %rax
je 0x6041
movq %r12, %rdi
callq 0x15225
testb $0x3, %al
je 0x612b
cmpl $0x0, (%r13)
je 0x608d
leaq 0x192d1(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x14983(%rip), %rdi     # 0x1a9e0
movq %rdi, 0x10(%rax)
callq 0x16664
testl %eax, %eax
je 0x608d
leaq 0x192af(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x3de, 0xc(%rax)       # imm = 0x3DE
leaq 0x121a7(%rip), %rdi     # 0x1822d
xorl %eax, %eax
callq 0x16f63
leaq 0x12022(%rip), %rdi     # 0x180b6
callq 0x1265c
movq %rax, %rdi
movq %r12, %rsi
callq 0x15164
leaq -0x35d3(%rip), %rsi     # 0x2ad8
movq %rbx, %rdi
movq %rax, %rdx
callq 0xde1a
movq %rax, %r15
leaq 0x11fca(%rip), %rdi     # 0x1808a
callq 0x1265c
movq %rax, %r12
callq 0xd26a
leaq 0x191bc(%rip), %rsi     # 0x1f290
movq %rax, %rdi
callq 0x15164
movq %r12, %rdi
movq %rax, %rsi
callq 0x15164
movq %rax, %rdi
movq %r14, %rsi
callq 0x15164
movq %r15, %rdi
movq %rax, %rsi
callq 0x15164
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0xdef7
leaq 0x10(%rsp), %rdi
movl $0x3e6, 0xc(%rdi)       # imm = 0x3E6
callq 0x17077
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, %rdi
callq 0x15225
cmpq 0x18e86(%rip), %rax     # 0x1efc0
je 0x6041
movq %rbp, %rdi
movq %r14, %rsi
callq 0x15164
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x15164
leaq -0x4c4(%rip), %rsi      # 0x5c9b
movq %rbx, %rdi
movq %rax, %rdx
callq 0xde1a
movq %rax, %rbp
cmpl $0x0, (%r13)
je 0x61d4
leaq 0x191a5(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x14857(%rip), %rdi     # 0x1a9e0
movq %rdi, 0x10(%rax)
callq 0x16664
testl %eax, %eax
je 0x61d4
leaq 0x19183(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x3d9, 0xc(%rax)       # imm = 0x3D9
movq %r12, %rdi
callq 0x15225
movq %rax, %rdi
callq 0x15186
movq %rax, %rdi
callq 0xf17c
leaq 0x11f22(%rip), %rdi     # 0x180ec
movq %rax, %rsi
xorl %eax, %eax
callq 0x16f63
movq %r12, %rdi
callq 0x15225
movq %rax, %rdi
callq 0x15186
movq %rax, %rdi
movq %r14, %rsi
callq 0x15164
movq %rbp, %rdi
movq %rax, %rsi
callq 0x15164
movq 0x19177(%rip), %rsi     # 0x1f378
movq %rbx, %rdi
jmp 0x6103
leaq 0x196e0(%rip), %rax     # 0x1f8f0
cmpl $0x0, (%rax)
je 0x626e
leaq 0x19104(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x147b6(%rip), %rdi     # 0x1a9e0
movq %rdi, 0x10(%rax)
callq 0x16664
testl %eax, %eax
je 0x626e
leaq 0x190e2(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x3e3, 0xc(%rax)       # imm = 0x3E3
movq 0x30(%rbx), %rdi
callq 0x15225
movq %rax, %rdi
callq 0xf17c
leaq 0x11dfc(%rip), %rdi     # 0x18060
movq %rax, %rsi
xorl %eax, %eax
callq 0x16f63
callq 0x2050