// File: /workspace/github_c_makefile_star2_O3/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 0x12519(%rip), %rax     # 0x18295
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x19595(%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 0x14c3a(%rip), %rcx     # 0x1a9e0
movq %rcx, 0x10(%rdi)
leaq 0x1938f(%rip), %rcx     # 0x1f140
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x16ea2
movq 0x30(%rbx), %rdi
callq 0x1518d
testq %rax, %rax
je 0x611c
movq 0x30(%rbx), %rdi
callq 0x1518d
testb $0x3, %al
jne 0x611c
movq 0x30(%rbx), %rdi
callq 0x1518d
cmpq 0x191cf(%rip), %rax     # 0x1efc0
je 0x611c
movq 0x30(%rbx), %rdi
callq 0x1518d
movq %rax, %rdi
callq 0x1518d
testq %rax, %rax
je 0x611c
movq 0x30(%rbx), %rdi
callq 0x1518d
movq %rax, %rdi
callq 0x1518d
testb $0x3, %al
jne 0x611c
movq 0x30(%rbx), %rdi
callq 0x1518d
movq %rax, %rdi
callq 0x1518d
cmpq 0x1917e(%rip), %rax     # 0x1efc0
je 0x611c
movq %rax, %r14
movq 0x30(%rbx), %rdi
callq 0x1518d
movq %rax, %rdi
callq 0x150ee
movq %rax, 0x8(%rsp)
movq %r14, %rdi
callq 0x150ee
movq %rax, %r12
movq %r14, %rdi
callq 0x1518d
movq %rax, %r14
testq %r12, %r12
sete %al
testb $0x3, %r12b
setne %r15b
orb %al, %r15b
leaq 0x19401(%rip), %rbp     # 0x1f290
cmpq %rbp, %r12
sete %al
orb %r15b, %al
jne 0x5ea5
movq %r12, %rdi
callq 0x150ee
movq %rax, %rbp
leaq 0x19a44(%rip), %r13     # 0x1f8f0
cmpl $0x0, (%r13)
je 0x5f03
leaq 0x19466(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x14b18(%rip), %rdi     # 0x1a9e0
movq %rdi, 0x10(%rax)
callq 0x16604
testl %eax, %eax
je 0x5f03
leaq 0x19444(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x3d4, 0xc(%rax)       # imm = 0x3D4
movq %rbp, %rdi
callq 0xf0bc
leaq 0x122eb(%rip), %rdi     # 0x181e4
movq %rax, %rsi
xorl %eax, %eax
callq 0x16f13
movl %ebp, %eax
andl $0x3, %eax
cmpl $0x2, %eax
jne 0x5f54
movl $0x1, %edi
callq 0x3c98
cmpq %rax, %rbp
je 0x5f54
xorl %edi, %edi
callq 0x3c98
cmpq %rax, %rbp
sete %al
cmpq 0x19090(%rip), %r12     # 0x1efc0
je 0x5f54
orb %al, %r15b
jne 0x5f54
movq %r12, %rdi
callq 0x1518d
testq %rax, %rax
je 0x5f54
movq %r12, %rdi
callq 0x1518d
testb $0x3, %al
je 0x603e
cmpl $0x0, (%r13)
je 0x5fa0
leaq 0x193be(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x14a70(%rip), %rdi     # 0x1a9e0
movq %rdi, 0x10(%rax)
callq 0x16604
testl %eax, %eax
je 0x5fa0
leaq 0x1939c(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x3de, 0xc(%rax)       # imm = 0x3DE
leaq 0x12294(%rip), %rdi     # 0x1822d
xorl %eax, %eax
callq 0x16f13
leaq 0x1210f(%rip), %rdi     # 0x180b6
callq 0x1257b
movq %rax, %rdi
movq %r12, %rsi
callq 0x150cc
leaq -0x3546(%rip), %rsi     # 0x2a78
movq %rbx, %rdi
movq %rax, %rdx
callq 0xdd3a
movq %rax, %r15
leaq 0x120b7(%rip), %rdi     # 0x1808a
callq 0x1257b
movq %rax, %r12
callq 0xd160
leaq 0x192a9(%rip), %rsi     # 0x1f290
movq %rax, %rdi
callq 0x150cc
movq %r12, %rdi
movq %rax, %rsi
callq 0x150cc
movq %rax, %rdi
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 $0x3e6, 0xc(%rdi)       # imm = 0x3E6
callq 0x17027
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, %rdi
callq 0x1518d
cmpq 0x18f73(%rip), %rax     # 0x1efc0
je 0x5f54
movq %rbp, %rdi
movq %r14, %rsi
callq 0x150cc
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x150cc
leaq -0x4c6(%rip), %rsi      # 0x5bac
movq %rbx, %rdi
movq %rax, %rdx
callq 0xdd3a
movq %rax, %rbp
cmpl $0x0, (%r13)
je 0x60e7
leaq 0x19292(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x14944(%rip), %rdi     # 0x1a9e0
movq %rdi, 0x10(%rax)
callq 0x16604
testl %eax, %eax
je 0x60e7
leaq 0x19270(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x3d9, 0xc(%rax)       # imm = 0x3D9
movq %r12, %rdi
callq 0x1518d
movq %rax, %rdi
callq 0x150ee
movq %rax, %rdi
callq 0xf0bc
leaq 0x1200f(%rip), %rdi     # 0x180ec
movq %rax, %rsi
xorl %eax, %eax
callq 0x16f13
movq %r12, %rdi
callq 0x1518d
movq %rax, %rdi
callq 0x150ee
movq %rax, %rdi
movq %r14, %rsi
callq 0x150cc
movq %rbp, %rdi
movq %rax, %rsi
callq 0x150cc
movq 0x19264(%rip), %rsi     # 0x1f378
movq %rbx, %rdi
jmp 0x6016
leaq 0x197cd(%rip), %rax     # 0x1f8f0
cmpl $0x0, (%rax)
je 0x6181
leaq 0x191f1(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x148a3(%rip), %rdi     # 0x1a9e0
movq %rdi, 0x10(%rax)
callq 0x16604
testl %eax, %eax
je 0x6181
leaq 0x191cf(%rip), %rax     # 0x1f320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x3e3, 0xc(%rax)       # imm = 0x3E3
movq 0x30(%rbx), %rdi
callq 0x1518d
movq %rax, %rdi
callq 0xf0bc
leaq 0x11ee9(%rip), %rdi     # 0x18060
movq %rax, %rsi
xorl %eax, %eax
callq 0x16f13
callq 0x2050