// File: /workspace/github_c_makefile_star2_O0/dalnefre[P]kernel_abe/schemer.c
// Function: binding_beh
BEH_DECL(binding_beh)
{
	CONS* next = pr_head(MINE);
	CONS* name;
	CONS* value;
	CONS* p;
	CONS* state;

	DBUG_ENTER("binding_beh");
	XDBUG_PRINT("", ("next = %s", cons_to_str(next)));
	p = pr_tail(MINE);
	name = pr_head(p);
	XDBUG_PRINT("", ("name = %s", cons_to_str(name)));
	value = pr_tail(p);
	XDBUG_PRINT("", ("value = %s", cons_to_str(value)));
	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;

		XDBUG_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 (n == name) {
			if (verb == ATOM("get")) {
				DBUG_PRINT("", ("name = %s", cons_to_str(name)));
				DBUG_PRINT("", ("value = %s", cons_to_str(value)));
				SEND(to, value);
			} else if ((verb == ATOM("define")) || (verb == ATOM("set!"))) {
				CONS* v = lst_first(p);

				DBUG_PRINT("", ("n = %s", cons_to_str(n)));
				DBUG_PRINT("", ("v = %s", cons_to_str(v)));
				state = mk_pair(n, v);
				state = mk_pair(next, state);
				BECOME(THIS, state);
				SEND(to, ATOM((verb == ATOM("define")) ? "redefined" : "ok"));
			} else {
				DBUG_PRINT("", ("Unknown! %s", cons_to_str(expr)));
				abort();
			}
		} else {
			SEND(next, WHAT);
		}
	} else {
		DBUG_PRINT("", ("Ignored! %s", cons_to_str(WHAT)));
		abort();
	}
	DBUG_RETURN;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x1c1b0
movq %rax, %rdi
callq 0x11430
movq %rax, %rdi
callq 0x1c1b0
movq %rax, -0x10(%rbp)
leaq 0x1d3f7(%rip), %rax     # 0x2008e
movq %rax, -0x58(%rbp)
leaq 0x2366e(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %eax
movl %eax, -0x50(%rbp)
movl $0xec, -0x4c(%rbp)
leaq 0x1fecf(%rip), %rax     # 0x22b8c
movq %rax, -0x48(%rbp)
leaq 0x23468(%rip), %rax     # 0x26130
movq %rax, -0x40(%rbp)
leaq 0x2363d(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
movq %rax, -0x38(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x1f2c0
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x1c1b0
movq %rax, %rdi
callq 0x11430
movq %rax, %rdi
callq 0x1c340
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdi
callq 0x1c1b0
movq %rax, -0x18(%rbp)
movq -0x28(%rbp), %rdi
callq 0x1c340
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x1c340
movq %rax, %rcx
xorl %eax, %eax
cmpq $0x0, %rcx
movb %al, -0x81(%rbp)
je 0x2d5e
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x1c340
andq $0x3, %rax
cmpq $0x0, %rax
sete %al
movb %al, -0x81(%rbp)
movb -0x81(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x3265
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x1c340
leaq 0x234f7(%rip), %rcx     # 0x26280
cmpq %rcx, %rax
sete %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
jne 0x3265
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x1c340
movq %rax, %rdi
callq 0x1c340
movq %rax, %rcx
movq %rcx, -0x28(%rbp)
xorl %eax, %eax
cmpq $0x0, %rcx
movb %al, -0x82(%rbp)
je 0x2df4
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x1c340
movq %rax, %rdi
callq 0x1c340
movq %rax, -0x28(%rbp)
andq $0x3, %rax
cmpq $0x0, %rax
sete %al
movb %al, -0x82(%rbp)
movb -0x82(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x3265
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x1c340
movq %rax, %rdi
callq 0x1c340
movq %rax, -0x28(%rbp)
leaq 0x23455(%rip), %rcx     # 0x26280
cmpq %rcx, %rax
sete %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
jne 0x3265
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x1c340
movq %rax, %rdi
callq 0x1c1b0
movq %rax, -0x60(%rbp)
movq -0x28(%rbp), %rdi
callq 0x1c1b0
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdi
callq 0x1c1b0
movq %rax, -0x70(%rbp)
movq -0x28(%rbp), %rdi
callq 0x1c340
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdi
callq 0x1c1b0
movq %rax, -0x78(%rbp)
movq -0x28(%rbp), %rdi
callq 0x1c340
movq %rax, -0x28(%rbp)
movq -0x78(%rbp), %rax
cmpq -0x18(%rbp), %rax
jne 0x322a
movq -0x70(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq 0x1d1c6(%rip), %rdi     # 0x2008a
callq 0x18510
movq %rax, %rcx
movq -0x90(%rbp), %rax
cmpq %rcx, %rax
jne 0x2fc4
jmp 0x2ede
leaq 0x239fb(%rip), %rax     # 0x268e0
cmpl $0x0, (%rax)
je 0x2f43
leaq 0x2341f(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x1fc8d(%rip), %rcx     # 0x22b8c
movq %rcx, 0x10(%rax)
leaq 0x1fc82(%rip), %rdi     # 0x22b8c
callq 0x1e6d0
cmpl $0x0, %eax
je 0x2f43
leaq 0x233f5(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x102, 0xc(%rax)       # imm = 0x102
movq -0x18(%rbp), %rdi
callq 0x14080
movq %rax, %rsi
leaq 0x1d15e(%rip), %rdi     # 0x2009a
movb $0x0, %al
callq 0x1f370
jmp 0x2f45
jmp 0x2f47
leaq 0x23992(%rip), %rax     # 0x268e0
cmpl $0x0, (%rax)
je 0x2fac
leaq 0x233b6(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x1fc24(%rip), %rcx     # 0x22b8c
movq %rcx, 0x10(%rax)
leaq 0x1fc19(%rip), %rdi     # 0x22b8c
callq 0x1e6d0
cmpl $0x0, %eax
je 0x2fac
leaq 0x2338c(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x103, 0xc(%rax)       # imm = 0x103
movq -0x20(%rbp), %rdi
callq 0x14080
movq %rax, %rsi
leaq 0x1d0ff(%rip), %rdi     # 0x200a4
movb $0x0, %al
callq 0x1f370
jmp 0x2fae
movq -0x8(%rbp), %rdi
movq -0x60(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x12640
jmp 0x3228
movq -0x70(%rbp), %rax
movq %rax, -0x98(%rbp)
leaq 0x1d0d9(%rip), %rdi     # 0x200af
callq 0x18510
movq %rax, %rcx
movq -0x98(%rbp), %rax
cmpq %rcx, %rax
je 0x3014
movq -0x70(%rbp), %rax
movq %rax, -0xa0(%rbp)
leaq 0x1d0ba(%rip), %rdi     # 0x200b6
callq 0x18510
movq %rax, %rcx
movq -0xa0(%rbp), %rax
cmpq %rcx, %rax
jne 0x31b8
movq -0x28(%rbp), %rdi
callq 0x1c1b0
movq %rax, -0x80(%rbp)
leaq 0x238b8(%rip), %rax     # 0x268e0
cmpl $0x0, (%rax)
je 0x3086
leaq 0x232dc(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x1fb4a(%rip), %rcx     # 0x22b8c
movq %rcx, 0x10(%rax)
leaq 0x1fb3f(%rip), %rdi     # 0x22b8c
callq 0x1e6d0
cmpl $0x0, %eax
je 0x3086
leaq 0x232b2(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x108, 0xc(%rax)       # imm = 0x108
movq -0x78(%rbp), %rdi
callq 0x14080
movq %rax, %rsi
leaq 0x1d03c(%rip), %rdi     # 0x200bb
movb $0x0, %al
callq 0x1f370
jmp 0x3088
jmp 0x308a
leaq 0x2384f(%rip), %rax     # 0x268e0
cmpl $0x0, (%rax)
je 0x30ef
leaq 0x23273(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x1fae1(%rip), %rcx     # 0x22b8c
movq %rcx, 0x10(%rax)
leaq 0x1fad6(%rip), %rdi     # 0x22b8c
callq 0x1e6d0
cmpl $0x0, %eax
je 0x30ef
leaq 0x23249(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x109, 0xc(%rax)       # imm = 0x109
movq -0x80(%rbp), %rdi
callq 0x14080
movq %rax, %rsi
leaq 0x1cfda(%rip), %rdi     # 0x200c2
movb $0x0, %al
callq 0x1f370
jmp 0x30f1
movq -0x78(%rbp), %rdi
movq -0x80(%rbp), %rsi
callq 0x1c0c0
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rsi
callq 0x1c0c0
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x1c1b0
movq %rax, -0xc0(%rbp)
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x1c1b0
movq %rax, %rdi
callq 0x113c0
movq -0xc0(%rbp), %rdi
movq %rax, %rsi
movq -0x30(%rbp), %rdx
callq 0x11910
movq -0x8(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0xb8(%rbp)
leaq 0x1cf38(%rip), %rdi     # 0x200af
callq 0x18510
movq -0xb8(%rbp), %rcx
movq %rax, %rdx
leaq 0x1cf46(%rip), %rdi     # 0x200d3
leaq 0x1cf35(%rip), %rax     # 0x200c9
cmpq %rdx, %rcx
cmoveq %rax, %rdi
callq 0x18510
movq -0xb0(%rbp), %rdi
movq -0xa8(%rbp), %rsi
movq %rax, %rdx
callq 0x12640
jmp 0x3226
jmp 0x31ba
leaq 0x2371f(%rip), %rax     # 0x268e0
cmpl $0x0, (%rax)
je 0x321f
leaq 0x23143(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x1f9b1(%rip), %rcx     # 0x22b8c
movq %rcx, 0x10(%rax)
leaq 0x1f9a6(%rip), %rdi     # 0x22b8c
callq 0x1e6d0
cmpl $0x0, %eax
je 0x321f
leaq 0x23119(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x10f, 0xc(%rax)       # imm = 0x10F
movq -0x68(%rbp), %rdi
callq 0x14080
movq %rax, %rsi
leaq 0x1cebe(%rip), %rdi     # 0x200d6
movb $0x0, %al
callq 0x1f370
jmp 0x3221
callq 0x2050
jmp 0x3228
jmp 0x3263
movq -0x8(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x1c340
movq -0xd0(%rbp), %rdi
movq -0xc8(%rbp), %rsi
movq %rax, %rdx
callq 0x12640
jmp 0x32df
jmp 0x3267
leaq 0x23672(%rip), %rax     # 0x268e0
cmpl $0x0, (%rax)
je 0x32d8
leaq 0x23096(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x1f904(%rip), %rcx     # 0x22b8c
movq %rcx, 0x10(%rax)
leaq 0x1f8f9(%rip), %rdi     # 0x22b8c
callq 0x1e6d0
cmpl $0x0, %eax
je 0x32d8
leaq 0x2306c(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x116, 0xc(%rax)       # imm = 0x116
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x1c340
movq %rax, %rdi
callq 0x14080
movq %rax, %rsi
leaq 0x1cd8f(%rip), %rdi     # 0x20060
movb $0x0, %al
callq 0x1f370
jmp 0x32da
callq 0x2050
movl $0x119, -0x4c(%rbp)     # imm = 0x119
leaq -0x58(%rbp), %rdi
callq 0x1f490
addq $0xd0, %rsp
popq %rbp
retq
nopl (%rax,%rax)