// File: /workspace/github_c_makefile_star2_O0/dalnefre[P]kernel_abe/schemer.c
// Function: eval_define_beh
BEH_DECL(eval_define_beh)
{
	CONS* p;
	CONS* state;
	CONS* msg;
	CONS* a;

	DBUG_ENTER("eval_define_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)) {
			DBUG_PRINT("", ("symbol"));
			state = mk_pair(form, env);
			state = mk_pair(to, state);
			a = ACTOR(apply_define_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 if (is_pair(form)) {
			CONS* name = lst_first(form);
			CONS* vars = lst_rest(form);
			CONS* body = lst_rest(expr);
			
			DBUG_PRINT("", ("lambda"));
			DBUG_PRINT("", ("name = %s", cons_to_str(name)));
			DBUG_PRINT("", ("vars = %s", cons_to_str(vars)));
			DBUG_PRINT("", ("body = %s", cons_to_str(body)));
			state = mk_pair(vars, body);
			state = mk_pair(state, env);
			a = ACTOR(lambda_beh, state);
			msg = mk_empty();
			msg = mk_list(a, msg);
			msg = mk_list(name, msg);
			msg = mk_list(ATOM("define"), msg);
			msg = mk_pair(msg, env);
			msg = mk_pair(to, msg);
			SEND(env, msg);
		} else {
			DBUG_PRINT("", ("error"));
			msg = mk_list(ATOM("define"), expr);
			FAIL(env, msg);
		}
	} 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)
leaq 0x19ada(%rip), %rax     # 0x20270
movq %rax, -0x50(%rbp)
leaq 0x1fb6f(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %eax
movl %eax, -0x48(%rbp)
movl $0x367, -0x44(%rbp)     # imm = 0x367
leaq 0x1c3d0(%rip), %rax     # 0x22b8c
movq %rax, -0x40(%rbp)
leaq 0x1f969(%rip), %rax     # 0x26130
movq %rax, -0x38(%rbp)
leaq 0x1fb3e(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
movq %rax, -0x30(%rbp)
leaq -0x50(%rbp), %rdi
callq 0x1f2c0
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x1c340
movq %rax, %rcx
xorl %eax, %eax
cmpq $0x0, %rcx
movb %al, -0x89(%rbp)
je 0x6822
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x1c340
andq $0x3, %rax
cmpq $0x0, %rax
sete %al
movb %al, -0x89(%rbp)
movb -0x89(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x6fd7
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x1c340
leaq 0x1fa33(%rip), %rcx     # 0x26280
cmpq %rcx, %rax
sete %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
jne 0x6fd7
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x1c340
movq %rax, %rdi
callq 0x1c340
movq %rax, %rcx
movq %rcx, -0x10(%rbp)
xorl %eax, %eax
cmpq $0x0, %rcx
movb %al, -0x8a(%rbp)
je 0x68b8
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x1c340
movq %rax, %rdi
callq 0x1c340
movq %rax, -0x10(%rbp)
andq $0x3, %rax
cmpq $0x0, %rax
sete %al
movb %al, -0x8a(%rbp)
movb -0x8a(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x6fd7
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x1c340
movq %rax, %rdi
callq 0x1c340
movq %rax, -0x10(%rbp)
leaq 0x1f991(%rip), %rcx     # 0x26280
cmpq %rcx, %rax
sete %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
jne 0x6fd7
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x1c340
movq %rax, %rdi
callq 0x1c1b0
movq %rax, -0x58(%rbp)
movq -0x10(%rbp), %rdi
callq 0x1c1b0
movq %rax, -0x60(%rbp)
movq -0x10(%rbp), %rdi
callq 0x1c340
movq %rax, -0x68(%rbp)
xorl %eax, %eax
cmpq $0x0, -0x60(%rbp)
movb %al, -0x8b(%rbp)
je 0x695d
movq -0x60(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
sete %al
movb %al, -0x8b(%rbp)
movb -0x8b(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x699d
leaq 0x1f909(%rip), %rax     # 0x26280
cmpq %rax, -0x60(%rbp)
sete %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
jne 0x699d
movq -0x60(%rbp), %rdi
callq 0x1c1b0
movq %rax, -0x98(%rbp)
jmp 0x69ad
leaq 0x1f8dc(%rip), %rax     # 0x26280
movq %rax, -0x98(%rbp)
jmp 0x69ad
movq -0x98(%rbp), %rax
movq %rax, -0x70(%rbp)
leaq 0x1ff21(%rip), %rax     # 0x268e0
cmpl $0x0, (%rax)
je 0x6a1d
leaq 0x1f945(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x1c1b3(%rip), %rcx     # 0x22b8c
movq %rcx, 0x10(%rax)
leaq 0x1c1a8(%rip), %rdi     # 0x22b8c
callq 0x1e6d0
cmpl $0x0, %eax
je 0x6a1d
leaq 0x1f91b(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x36e, 0xc(%rax)       # imm = 0x36E
movq -0x70(%rbp), %rdi
callq 0x14080
movq %rax, %rsi
leaq 0x197ce(%rip), %rdi     # 0x201e4
movb $0x0, %al
callq 0x1f370
jmp 0x6a1f
movq -0x70(%rbp), %rax
andq $0x3, %rax
cmpq $0x2, %rax
sete %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x6be7
movq -0x70(%rbp), %rax
movq %rax, -0xa0(%rbp)
movl $0x1, %edi
callq 0x4350
movq %rax, %rcx
movq -0xa0(%rbp), %rax
cmpq %rcx, %rax
je 0x6be7
movq -0x70(%rbp), %rax
movq %rax, -0xa8(%rbp)
xorl %eax, %eax
movl %eax, %edi
callq 0x4350
movq %rax, %rcx
movq -0xa8(%rbp), %rax
cmpq %rcx, %rax
je 0x6be7
jmp 0x6a90
leaq 0x1fe49(%rip), %rax     # 0x268e0
cmpl $0x0, (%rax)
je 0x6ae9
leaq 0x1f86d(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x1c0db(%rip), %rcx     # 0x22b8c
movq %rcx, 0x10(%rax)
leaq 0x1c0d0(%rip), %rdi     # 0x22b8c
callq 0x1e6d0
cmpl $0x0, %eax
je 0x6ae9
leaq 0x1f843(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x370, 0xc(%rax)       # imm = 0x370
leaq 0x19624(%rip), %rdi     # 0x20106
movb $0x0, %al
callq 0x1f370
jmp 0x6aeb
movq -0x70(%rbp), %rdi
movq -0x68(%rbp), %rsi
callq 0x1c0c0
movq %rax, -0x18(%rbp)
movq -0x58(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x1c0c0
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq -0x5cc(%rip), %rsi      # 0x6550
callq 0x12520
movq %rax, -0x28(%rbp)
leaq 0x1fdb4(%rip), %rax     # 0x268e0
cmpl $0x0, (%rax)
je 0x6b9a
leaq 0x1f7d8(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x1c046(%rip), %rcx     # 0x22b8c
movq %rcx, 0x10(%rax)
leaq 0x1c03b(%rip), %rdi     # 0x22b8c
callq 0x1e6d0
cmpl $0x0, %eax
je 0x6b9a
leaq 0x1f7ae(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x374, 0xc(%rax)       # imm = 0x374
movq -0x60(%rbp), %rdi
callq 0x1c340
movq %rax, %rdi
callq 0x1c1b0
movq %rax, %rdi
callq 0x14080
movq %rax, %rsi
leaq 0x19559(%rip), %rdi     # 0x200ec
movb $0x0, %al
callq 0x1f370
jmp 0x6b9c
movq -0x60(%rbp), %rdi
callq 0x1c340
movq %rax, %rdi
callq 0x1c1b0
movq %rax, %rdi
movq -0x68(%rbp), %rsi
callq 0x1c0c0
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x1c0c0
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movq 0x1f78f(%rip), %rsi     # 0x26368
movq -0x20(%rbp), %rdx
callq 0x12640
jmp 0x6fd5
xorl %eax, %eax
cmpq $0x0, -0x70(%rbp)
movb %al, -0xa9(%rbp)
je 0x6c0b
movq -0x70(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
sete %al
movb %al, -0xa9(%rbp)
movb -0xa9(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x6ec2
leaq 0x1f657(%rip), %rax     # 0x26280
cmpq %rax, -0x70(%rbp)
sete %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
jne 0x6ec2
movq -0x70(%rbp), %rdi
callq 0x1c1b0
movq %rax, -0x78(%rbp)
movq -0x70(%rbp), %rdi
callq 0x1c340
movq %rax, -0x80(%rbp)
movq -0x60(%rbp), %rdi
callq 0x1c340
movq %rax, -0x88(%rbp)
leaq 0x1fc6e(%rip), %rax     # 0x268e0
cmpl $0x0, (%rax)
je 0x6cc4
leaq 0x1f692(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x1bf00(%rip), %rcx     # 0x22b8c
movq %rcx, 0x10(%rax)
leaq 0x1bef5(%rip), %rdi     # 0x22b8c
callq 0x1e6d0
cmpl $0x0, %eax
je 0x6cc4
leaq 0x1f668(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x37d, 0xc(%rax)       # imm = 0x37D
leaq 0x195c3(%rip), %rdi     # 0x20280
movb $0x0, %al
callq 0x1f370
jmp 0x6cc6
jmp 0x6cc8
leaq 0x1fc11(%rip), %rax     # 0x268e0
cmpl $0x0, (%rax)
je 0x6d2d
leaq 0x1f635(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x1bea3(%rip), %rcx     # 0x22b8c
movq %rcx, 0x10(%rax)
leaq 0x1be98(%rip), %rdi     # 0x22b8c
callq 0x1e6d0
cmpl $0x0, %eax
je 0x6d2d
leaq 0x1f60b(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x37e, 0xc(%rax)       # imm = 0x37E
movq -0x78(%rbp), %rdi
callq 0x14080
movq %rax, %rsi
leaq 0x19374(%rip), %rdi     # 0x2009a
movb $0x0, %al
callq 0x1f370
jmp 0x6d2f
jmp 0x6d31
leaq 0x1fba8(%rip), %rax     # 0x268e0
cmpl $0x0, (%rax)
je 0x6d96
leaq 0x1f5cc(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x1be3a(%rip), %rcx     # 0x22b8c
movq %rcx, 0x10(%rax)
leaq 0x1be2f(%rip), %rdi     # 0x22b8c
callq 0x1e6d0
cmpl $0x0, %eax
je 0x6d96
leaq 0x1f5a2(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x37f, 0xc(%rax)       # imm = 0x37F
movq -0x80(%rbp), %rdi
callq 0x14080
movq %rax, %rsi
leaq 0x19399(%rip), %rdi     # 0x20128
movb $0x0, %al
callq 0x1f370
jmp 0x6d98
jmp 0x6d9a
leaq 0x1fb3f(%rip), %rax     # 0x268e0
cmpl $0x0, (%rax)
je 0x6e02
leaq 0x1f563(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x1bdd1(%rip), %rcx     # 0x22b8c
movq %rcx, 0x10(%rax)
leaq 0x1bdc6(%rip), %rdi     # 0x22b8c
callq 0x1e6d0
cmpl $0x0, %eax
je 0x6e02
leaq 0x1f539(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x380, 0xc(%rax)       # imm = 0x380
movq -0x88(%rbp), %rdi
callq 0x14080
movq %rax, %rsi
leaq 0x19337(%rip), %rdi     # 0x20132
movb $0x0, %al
callq 0x1f370
jmp 0x6e04
movq -0x80(%rbp), %rdi
movq -0x88(%rbp), %rsi
callq 0x1c0c0
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
movq -0x68(%rbp), %rsi
callq 0x1c0c0
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq -0x2a48(%rip), %rsi     # 0x43f0
callq 0x12520
movq %rax, -0x28(%rbp)
leaq 0x1f438(%rip), %rax     # 0x26280
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x1c0c0
movq %rax, -0x20(%rbp)
movq -0x78(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x1c0c0
movq %rax, -0x20(%rbp)
leaq 0x1923a(%rip), %rdi     # 0x200af
callq 0x18510
movq %rax, %rdi
movq -0x20(%rbp), %rsi
callq 0x1c0c0
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
movq -0x68(%rbp), %rsi
callq 0x1c0c0
movq %rax, -0x20(%rbp)
movq -0x58(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x1c0c0
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movq -0x68(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x12640
jmp 0x6fd3
jmp 0x6ec4
leaq 0x1fa15(%rip), %rax     # 0x268e0
cmpl $0x0, (%rax)
je 0x6f1d
leaq 0x1f439(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x1bca7(%rip), %rcx     # 0x22b8c
movq %rcx, 0x10(%rax)
leaq 0x1bc9c(%rip), %rdi     # 0x22b8c
callq 0x1e6d0
cmpl $0x0, %eax
je 0x6f1d
leaq 0x1f40f(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x38c, 0xc(%rax)       # imm = 0x38C
leaq 0x19317(%rip), %rdi     # 0x2022d
movb $0x0, %al
callq 0x1f370
jmp 0x6f1f
leaq 0x19189(%rip), %rdi     # 0x200af
callq 0x18510
movq %rax, %rdi
movq -0x60(%rbp), %rsi
callq 0x1c0c0
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rdx
leaq -0x47d0(%rip), %rsi     # 0x2790
callq 0x12520
movq %rax, -0xc8(%rbp)
leaq 0x19117(%rip), %rdi     # 0x2008a
callq 0x18510
movq %rax, -0xd0(%rbp)
callq 0x11360
movq %rax, %rdi
leaq 0x1f2f2(%rip), %rsi     # 0x26280
callq 0x1c0c0
movq -0xd0(%rbp), %rdi
movq %rax, %rsi
callq 0x1c0c0
movq %rax, %rdi
movq -0x68(%rbp), %rsi
callq 0x1c0c0
movq -0xc8(%rbp), %rdi
movq %rax, %rsi
callq 0x1c0c0
movq -0xc0(%rbp), %rdi
movq -0xb8(%rbp), %rsi
movq %rax, %rdx
callq 0x12640
jmp 0x6fd5
jmp 0x7051
jmp 0x6fd9
leaq 0x1f900(%rip), %rax     # 0x268e0
cmpl $0x0, (%rax)
je 0x704a
leaq 0x1f324(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x1bb92(%rip), %rcx     # 0x22b8c
movq %rcx, 0x10(%rax)
leaq 0x1bb87(%rip), %rdi     # 0x22b8c
callq 0x1e6d0
cmpl $0x0, %eax
je 0x704a
leaq 0x1f2fa(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x391, 0xc(%rax)       # imm = 0x391
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x1c340
movq %rax, %rdi
callq 0x14080
movq %rax, %rsi
leaq 0x1901d(%rip), %rdi     # 0x20060
movb $0x0, %al
callq 0x1f370
jmp 0x704c
callq 0x2050
movl $0x394, -0x44(%rbp)     # imm = 0x394
leaq -0x50(%rbp), %rdi
callq 0x1f490
addq $0xd0, %rsp
popq %rbp
retq
nopw (%rax,%rax)