// File: /workspace/github_c_makefile_star2_O0/dalnefre[P]kernel_abe/schemer.c
// Function: eval_and_beh
BEH_DECL(eval_and_beh)
{
	CONS* p;
	CONS* state;
	CONS* msg;
	CONS* a;

	DBUG_ENTER("eval_and_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);

		DBUG_PRINT("", ("expr = %s", cons_to_str(expr)));
		if (is_empty(expr)) {
			SEND(to, TRUE_SYMBOL);
		} else if (is_pair(expr)) {
			CONS* next = lst_rest(expr);

			expr = lst_first(expr);
			msg = mk_pair(expr, env);
			if (is_empty(next)) {		/* tail-call optimization */
				msg = mk_pair(to, msg);
			} else {
				state = mk_pair(next, env);
				state = mk_pair(to, state);
				state = mk_pair(SELF, state);
				a = ACTOR(next_and_beh, state);
				msg = mk_pair(a, msg);
			}
			SEND(eval__actor, msg);
		} else {
			DBUG_PRINT("", ("error"));
			msg = mk_list(ATOM("and"), expr);
			FAIL(env, msg);
		}
	} else {
		DBUG_PRINT("", ("Ignored! %s", cons_to_str(WHAT)));
		abort();
	}
	DBUG_RETURN;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x8(%rbp)
leaq 0x16d94(%rip), %rax     # 0x2032a
movq %rax, -0x50(%rbp)
leaq 0x1cd6f(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %eax
movl %eax, -0x48(%rbp)
movl $0x54a, -0x44(%rbp)     # imm = 0x54A
leaq 0x195d0(%rip), %rax     # 0x22b8c
movq %rax, -0x40(%rbp)
leaq 0x1cb69(%rip), %rax     # 0x26130
movq %rax, -0x38(%rbp)
leaq 0x1cd3e(%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, -0x71(%rbp)
je 0x961c
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x1c340
andq $0x3, %rax
cmpq $0x0, %rax
sete %al
movb %al, -0x71(%rbp)
movb -0x71(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x9a27
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x1c340
leaq 0x1cc3c(%rip), %rcx     # 0x26280
cmpq %rcx, %rax
sete %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
jne 0x9a27
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, -0x72(%rbp)
je 0x96a9
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, -0x72(%rbp)
movb -0x72(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x9a27
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x1c340
movq %rax, %rdi
callq 0x1c340
movq %rax, -0x10(%rbp)
leaq 0x1cba3(%rip), %rcx     # 0x26280
cmpq %rcx, %rax
sete %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
jne 0x9a27
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)
leaq 0x1d1b2(%rip), %rax     # 0x268e0
cmpl $0x0, (%rax)
je 0x978c
leaq 0x1cbd6(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x19444(%rip), %rcx     # 0x22b8c
movq %rcx, 0x10(%rax)
leaq 0x19439(%rip), %rdi     # 0x22b8c
callq 0x1e6d0
cmpl $0x0, %eax
je 0x978c
leaq 0x1cbac(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x550, 0xc(%rax)       # imm = 0x550
movq -0x60(%rbp), %rdi
callq 0x14080
movq %rax, %rsi
leaq 0x16967(%rip), %rdi     # 0x200ec
movb $0x0, %al
callq 0x1f370
jmp 0x978e
leaq 0x1caeb(%rip), %rax     # 0x26280
cmpq %rax, -0x60(%rbp)
sete %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x97de
movq -0x8(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x80(%rbp)
movl $0x1, %edi
callq 0x4350
movq -0x88(%rbp), %rdi
movq -0x80(%rbp), %rsi
movq %rax, %rdx
callq 0x12640
jmp 0x9a25
xorl %eax, %eax
cmpq $0x0, -0x60(%rbp)
movb %al, -0x89(%rbp)
je 0x9802
movq -0x60(%rbp), %rax
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 0x9912
leaq 0x1ca60(%rip), %rax     # 0x26280
cmpq %rax, -0x60(%rbp)
sete %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
jne 0x9912
movq -0x60(%rbp), %rdi
callq 0x1c340
movq %rax, -0x70(%rbp)
movq -0x60(%rbp), %rdi
callq 0x1c1b0
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rdi
movq -0x68(%rbp), %rsi
callq 0x1c0c0
movq %rax, -0x20(%rbp)
leaq 0x1ca16(%rip), %rax     # 0x26280
cmpq %rax, -0x70(%rbp)
sete %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x9891
movq -0x58(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x1c0c0
movq %rax, -0x20(%rbp)
jmp 0x98f9
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), %rax
movq 0x30(%rax), %rdi
callq 0x1c1b0
movq %rax, %rdi
movq -0x18(%rbp), %rsi
callq 0x1c0c0
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq -0x4ef(%rip), %rsi      # 0x93f0
callq 0x12520
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x1c0c0
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movq 0x1ca64(%rip), %rsi     # 0x26368
movq -0x20(%rbp), %rdx
callq 0x12640
jmp 0x9a23
jmp 0x9914
leaq 0x1cfc5(%rip), %rax     # 0x268e0
cmpl $0x0, (%rax)
je 0x996d
leaq 0x1c9e9(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x19257(%rip), %rcx     # 0x22b8c
movq %rcx, 0x10(%rax)
leaq 0x1924c(%rip), %rdi     # 0x22b8c
callq 0x1e6d0
cmpl $0x0, %eax
je 0x996d
leaq 0x1c9bf(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x563, 0xc(%rax)       # imm = 0x563
leaq 0x168c7(%rip), %rdi     # 0x2022d
movb $0x0, %al
callq 0x1f370
jmp 0x996f
leaq 0x169c1(%rip), %rdi     # 0x20337
callq 0x18510
movq %rax, %rdi
movq -0x60(%rbp), %rsi
callq 0x1c0c0
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x68(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rdx
leaq -0x7220(%rip), %rsi     # 0x2790
callq 0x12520
movq %rax, -0xa8(%rbp)
leaq 0x166c7(%rip), %rdi     # 0x2008a
callq 0x18510
movq %rax, -0xb0(%rbp)
callq 0x11360
movq %rax, %rdi
leaq 0x1c8a2(%rip), %rsi     # 0x26280
callq 0x1c0c0
movq -0xb0(%rbp), %rdi
movq %rax, %rsi
callq 0x1c0c0
movq %rax, %rdi
movq -0x68(%rbp), %rsi
callq 0x1c0c0
movq -0xa8(%rbp), %rdi
movq %rax, %rsi
callq 0x1c0c0
movq -0xa0(%rbp), %rdi
movq -0x98(%rbp), %rsi
movq %rax, %rdx
callq 0x12640
jmp 0x9a25
jmp 0x9aa1
jmp 0x9a29
leaq 0x1ceb0(%rip), %rax     # 0x268e0
cmpl $0x0, (%rax)
je 0x9a9a
leaq 0x1c8d4(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x19142(%rip), %rcx     # 0x22b8c
movq %rcx, 0x10(%rax)
leaq 0x19137(%rip), %rdi     # 0x22b8c
callq 0x1e6d0
cmpl $0x0, %eax
je 0x9a9a
leaq 0x1c8aa(%rip), %rax     # 0x26310
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x568, 0xc(%rax)       # imm = 0x568
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x1c340
movq %rax, %rdi
callq 0x14080
movq %rax, %rsi
leaq 0x165cd(%rip), %rdi     # 0x20060
movb $0x0, %al
callq 0x1f370
jmp 0x9a9c
callq 0x2050
movl $0x56b, -0x44(%rbp)     # imm = 0x56B
leaq -0x50(%rbp), %rdi
callq 0x1f490
addq $0xb0, %rsp
popq %rbp
retq
nopw (%rax,%rax)