// File: /workspace/github_c_makefile_star2_O0/dalnefre[P]kernel_abe/reduce.c
// Function: eval_function
BEH_DECL(eval_function)
{
	CONS* msg = WHAT;
	CONS* expr = map_get(msg, expr_symbol);
	CONS* state = MINE;
	CONS* vars = map_get(state, ATOM("vars"));
	CONS* body = map_get(state, ATOM("body"));
	CONS* cont = map_get(state, cont_symbol);
	CONS* env = map_get(state, env_symbol);

	DBUG_ENTER("eval_function");
	DBUG_PRINT("", ("vars=%s", cons_to_str(vars)));
	DBUG_PRINT("", ("expr=%s", cons_to_str(expr)));
	if (consp(vars)) {
		/* bind vars to values */
		env = map_def(env, vars, expr);
	} else if (atomp(vars)) {
		/* bind single var to list of values */
		env = map_put(env, vars, expr);
	}
	DBUG_PRINT("", ("body=%s", cons_to_str(body)));
	msg = NIL;
	msg = map_put(msg, env_symbol, env);
	msg = map_put(msg, cont_symbol, cont);
	msg = map_put(msg, expr_symbol, body);
	SEND(a_reduce, msg);
	DBUG_RETURN;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x16990
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq 0x1982d(%rip), %rsi     # 0x20148
xorl %eax, %eax
movl %eax, %edx
callq 0x171b0
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x16800
movq %rax, %rdi
callq 0xba80
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x78(%rbp)
leaq 0x13a77(%rip), %rdi     # 0x1a3c7
callq 0x12b60
movq -0x78(%rbp), %rdi
movq %rax, %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x171b0
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x70(%rbp)
leaq 0x13a54(%rip), %rdi     # 0x1a3cc
callq 0x12b60
movq -0x70(%rbp), %rdi
movq %rax, %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x171b0
movq %rax, -0x30(%rbp)
movq -0x20(%rbp), %rdi
movq 0x197a4(%rip), %rsi     # 0x20140
xorl %eax, %eax
movl %eax, %edx
callq 0x171b0
movq %rax, -0x38(%rbp)
movq -0x20(%rbp), %rdi
movq 0x197a4(%rip), %rsi     # 0x20158
xorl %eax, %eax
movl %eax, %edx
callq 0x171b0
movq %rax, -0x40(%rbp)
leaq 0x13a19(%rip), %rax     # 0x1a3e1
movq %rax, -0x68(%rbp)
leaq 0x199b5(%rip), %rax     # 0x20388
movq (%rax), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %eax
movl %eax, -0x60(%rbp)
movl $0x3a1, -0x5c(%rbp)     # imm = 0x3A1
leaq 0x162c2(%rip), %rax     # 0x1ccb0
movq %rax, -0x58(%rbp)
leaq 0x19737(%rip), %rax     # 0x20130
movq %rax, -0x50(%rbp)
leaq 0x19984(%rip), %rax     # 0x20388
movq (%rax), %rax
movq 0x50(%rax), %rax
movq %rax, -0x48(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x19910
leaq 0x19f11(%rip), %rax     # 0x20930
cmpl $0x0, (%rax)
je 0x6a7d
leaq 0x1995d(%rip), %rax     # 0x20388
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x16277(%rip), %rcx     # 0x1ccb0
movq %rcx, 0x10(%rax)
leaq 0x1626c(%rip), %rdi     # 0x1ccb0
callq 0x18d20
cmpl $0x0, %eax
je 0x6a7d
leaq 0x19933(%rip), %rax     # 0x20388
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x3a2, 0xc(%rax)       # imm = 0x3A2
movq -0x28(%rbp), %rdi
callq 0xe6d0
movq %rax, %rsi
leaq 0x13979(%rip), %rdi     # 0x1a3ef
movb $0x0, %al
callq 0x199c0
jmp 0x6a7f
jmp 0x6a81
leaq 0x19ea8(%rip), %rax     # 0x20930
cmpl $0x0, (%rax)
je 0x6ae6
leaq 0x198f4(%rip), %rax     # 0x20388
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x1620e(%rip), %rcx     # 0x1ccb0
movq %rcx, 0x10(%rax)
leaq 0x16203(%rip), %rdi     # 0x1ccb0
callq 0x18d20
cmpl $0x0, %eax
je 0x6ae6
leaq 0x198ca(%rip), %rax     # 0x20388
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x3a3, 0xc(%rax)       # imm = 0x3A3
movq -0x18(%rbp), %rdi
callq 0xe6d0
movq %rax, %rsi
leaq 0x13ab4(%rip), %rdi     # 0x1a593
movb $0x0, %al
callq 0x199c0
jmp 0x6ae8
xorl %eax, %eax
cmpq $0x0, -0x28(%rbp)
movb %al, -0x79(%rbp)
je 0x6b06
movq -0x28(%rbp), %rax
andq $0x3, %rax
cmpq $0x0, %rax
sete %al
movb %al, -0x79(%rbp)
movb -0x79(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x6b2d
movq -0x40(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x17490
movq %rax, -0x40(%rbp)
jmp 0x6b60
movq -0x28(%rbp), %rax
andq $0x3, %rax
cmpq $0x2, %rax
sete %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x6b5e
movq -0x40(%rbp), %rdi
movq -0x28(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x172a0
movq %rax, -0x40(%rbp)
jmp 0x6b60
jmp 0x6b62
leaq 0x19dc7(%rip), %rax     # 0x20930
cmpl $0x0, (%rax)
je 0x6bc7
leaq 0x19813(%rip), %rax     # 0x20388
movq (%rax), %rax
movq 0x50(%rax), %rax
leaq 0x1612d(%rip), %rcx     # 0x1ccb0
movq %rcx, 0x10(%rax)
leaq 0x16122(%rip), %rdi     # 0x1ccb0
callq 0x18d20
cmpl $0x0, %eax
je 0x6bc7
leaq 0x197e9(%rip), %rax     # 0x20388
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x3ab, 0xc(%rax)       # imm = 0x3AB
movq -0x30(%rbp), %rdi
callq 0xe6d0
movq %rax, %rsi
leaq 0x13837(%rip), %rdi     # 0x1a3f7
movb $0x0, %al
callq 0x199c0
jmp 0x6bc9
leaq 0x19728(%rip), %rax     # 0x202f8
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq 0x19579(%rip), %rsi     # 0x20158
movq -0x40(%rbp), %rdx
callq 0x172a0
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq 0x19549(%rip), %rsi     # 0x20140
movq -0x38(%rbp), %rdx
callq 0x172a0
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq 0x19539(%rip), %rsi     # 0x20148
movq -0x30(%rbp), %rdx
callq 0x172a0
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq 0x19559(%rip), %rsi     # 0x20180
movq -0x10(%rbp), %rdx
callq 0xcc90
movl $0x3b1, -0x5c(%rbp)     # imm = 0x3B1
leaq -0x68(%rbp), %rdi
callq 0x19ae0
addq $0x80, %rsp
popq %rbp
retq
nopl (%rax)