// File: /workspace/github_c_makefile_star2_O2/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 0x118ca(%rip), %rax     # 0x17295
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x18946(%rip), %rax     # 0x1e320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x3cd, 0xc(%rdi)       # imm = 0x3CD
leaq 0x13fc7(%rip), %rcx     # 0x199bc
movq %rcx, 0x10(%rdi)
leaq 0x18740(%rip), %rcx     # 0x1e140
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x16679
movq 0x30(%rbx), %rdi
callq 0x14906
testq %rax, %rax
je 0x5d69
movq 0x30(%rbx), %rdi
callq 0x14906
testb $0x3, %al
jne 0x5d69
movq 0x30(%rbx), %rdi
callq 0x14906
cmpq 0x18580(%rip), %rax     # 0x1dfc0
je 0x5d69
movq 0x30(%rbx), %rdi
callq 0x14906
movq %rax, %rdi
callq 0x14906
testq %rax, %rax
je 0x5d69
movq 0x30(%rbx), %rdi
callq 0x14906
movq %rax, %rdi
callq 0x14906
testb $0x3, %al
jne 0x5d69
movq 0x30(%rbx), %rdi
callq 0x14906
movq %rax, %rdi
callq 0x14906
cmpq 0x1852f(%rip), %rax     # 0x1dfc0
je 0x5d69
movq %rax, %r14
movq 0x30(%rbx), %rdi
callq 0x14906
movq %rax, %rdi
callq 0x147fb
movq %rax, 0x8(%rsp)
movq %r14, %rdi
callq 0x147fb
movq %rax, %r12
movq %r14, %rdi
callq 0x14906
movq %rax, %r14
testq %r12, %r12
sete %al
testb $0x3, %r12b
setne %r15b
orb %al, %r15b
leaq 0x187b2(%rip), %rbp     # 0x1e290
cmpq %rbp, %r12
sete %al
orb %r15b, %al
jne 0x5af4
movq %r12, %rdi
callq 0x147fb
movq %rax, %rbp
leaq 0x18df5(%rip), %r13     # 0x1e8f0
cmpl $0x0, (%r13)
je 0x5b52
leaq 0x18817(%rip), %rax     # 0x1e320
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x13ea5(%rip), %rdi     # 0x199bc
movq %rdi, 0x10(%rax)
callq 0x15df4
testl %eax, %eax
je 0x5b52
leaq 0x187f5(%rip), %rax     # 0x1e320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x3d4, 0xc(%rax)       # imm = 0x3D4
movq %rbp, %rdi
callq 0xed08
leaq 0x1169c(%rip), %rdi     # 0x171e4
movq %rax, %rsi
xorl %eax, %eax
callq 0x166f0
movl %ebp, %eax
andl $0x3, %eax
cmpl $0x2, %eax
jne 0x5ba1
pushq $0x1
popq %rdi
callq 0x38f6
cmpq %rax, %rbp
je 0x5ba1
xorl %edi, %edi
callq 0x38f6
cmpq %rax, %rbp
sete %al
cmpq 0x18443(%rip), %r12     # 0x1dfc0
je 0x5ba1
orb %al, %r15b
jne 0x5ba1
movq %r12, %rdi
callq 0x14906
testq %rax, %rax
je 0x5ba1
movq %r12, %rdi
callq 0x14906
testb $0x3, %al
je 0x5c8b
cmpl $0x0, (%r13)
je 0x5bed
leaq 0x18771(%rip), %rax     # 0x1e320
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x13dff(%rip), %rdi     # 0x199bc
movq %rdi, 0x10(%rax)
callq 0x15df4
testl %eax, %eax
je 0x5bed
leaq 0x1874f(%rip), %rax     # 0x1e320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x3de, 0xc(%rax)       # imm = 0x3DE
leaq 0x11647(%rip), %rdi     # 0x1722d
xorl %eax, %eax
callq 0x166f0
leaq 0x114c2(%rip), %rdi     # 0x170b6
callq 0x11f1f
movq %rax, %rdi
movq %r12, %rsi
callq 0x14764
leaq -0x3533(%rip), %rsi     # 0x26d8
movq %rbx, %rdi
movq %rax, %rdx
callq 0xd9b7
movq %rax, %r15
leaq 0x1146a(%rip), %rdi     # 0x1708a
callq 0x11f1f
movq %rax, %r12
callq 0xccde
leaq 0x1865c(%rip), %rsi     # 0x1e290
movq %rax, %rdi
callq 0x14764
movq %r12, %rdi
movq %rax, %rsi
callq 0x14764
movq %rax, %rdi
movq %r14, %rsi
callq 0x14764
movq %r15, %rdi
movq %rax, %rsi
callq 0x14764
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0xda94
leaq 0x10(%rsp), %rdi
movl $0x3e6, 0xc(%rdi)       # imm = 0x3E6
callq 0x167f2
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, %rdi
callq 0x14906
cmpq 0x18326(%rip), %rax     # 0x1dfc0
je 0x5ba1
movq %rbp, %rdi
movq %r14, %rsi
callq 0x14764
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x14764
leaq -0x4c4(%rip), %rsi      # 0x57fb
movq %rbx, %rdi
movq %rax, %rdx
callq 0xd9b7
movq %rax, %rbp
cmpl $0x0, (%r13)
je 0x5d34
leaq 0x18645(%rip), %rax     # 0x1e320
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x13cd3(%rip), %rdi     # 0x199bc
movq %rdi, 0x10(%rax)
callq 0x15df4
testl %eax, %eax
je 0x5d34
leaq 0x18623(%rip), %rax     # 0x1e320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x3d9, 0xc(%rax)       # imm = 0x3D9
movq %r12, %rdi
callq 0x14906
movq %rax, %rdi
callq 0x147fb
movq %rax, %rdi
callq 0xed08
leaq 0x113c2(%rip), %rdi     # 0x170ec
movq %rax, %rsi
xorl %eax, %eax
callq 0x166f0
movq %r12, %rdi
callq 0x14906
movq %rax, %rdi
callq 0x147fb
movq %rax, %rdi
movq %r14, %rsi
callq 0x14764
movq %rbp, %rdi
movq %rax, %rsi
callq 0x14764
movq 0x18617(%rip), %rsi     # 0x1e378
movq %rbx, %rdi
jmp 0x5c63
leaq 0x18b80(%rip), %rax     # 0x1e8f0
cmpl $0x0, (%rax)
je 0x5dce
leaq 0x185a4(%rip), %rax     # 0x1e320
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x13c32(%rip), %rdi     # 0x199bc
movq %rdi, 0x10(%rax)
callq 0x15df4
testl %eax, %eax
je 0x5dce
leaq 0x18582(%rip), %rax     # 0x1e320
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x3e3, 0xc(%rax)       # imm = 0x3E3
movq 0x30(%rbx), %rdi
callq 0x14906
movq %rax, %rdi
callq 0xed08
leaq 0x1129c(%rip), %rdi     # 0x17060
movq %rax, %rsi
xorl %eax, %eax
callq 0x166f0
callq 0x2050