// File: /workspace/github_c_makefile_star2_O0/dalnefre[P]kernel_abe/reduce.c
// Function: reduce_and_apply
BEH_DECL(reduce_and_apply)
{
	CONS* msg = WHAT;
	CONS* expr = map_get(msg, expr_symbol);
	CONS* cont = map_get(msg, cont_symbol);
	CONS* env = map_get(msg, env_symbol);
	CONS* state = MINE;
	CONS* beh = map_get(state, beh_symbol);
	CONS* apply;

	DBUG_ENTER("reduce_and_apply");
	assert(funcp(beh));
	state = NIL;
	state = map_put(state, env_symbol, env);
	state = map_put(state, cont_symbol, cont);
	apply = ACTOR(MK_BEH(beh), state);
	msg = NIL;
	msg = map_put(msg, env_symbol, env);
	msg = map_put(msg, cont_symbol, apply);
	msg = map_put(msg, expr_symbol, expr);
	SEND(a_reduce_args, msg);
	DBUG_RETURN;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x16990
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq 0x1cb20(%rip), %rsi     # 0x20148
xorl %eax, %eax
movl %eax, %edx
callq 0x171b0
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq 0x1cb00(%rip), %rsi     # 0x20140
xorl %eax, %eax
movl %eax, %edx
callq 0x171b0
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movq 0x1cb00(%rip), %rsi     # 0x20158
xorl %eax, %eax
movl %eax, %edx
callq 0x171b0
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0x16800
movq %rax, %rdi
callq 0xba80
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
movq 0x1caff(%rip), %rsi     # 0x20188
xorl %eax, %eax
movl %eax, %edx
callq 0x171b0
movq %rax, -0x38(%rbp)
leaq 0x16ae1(%rip), %rax     # 0x1a17e
movq %rax, -0x68(%rbp)
leaq 0x1cce0(%rip), %rax     # 0x20388
movq (%rax), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %eax
movl %eax, -0x60(%rbp)
movl $0x129, -0x5c(%rbp)     # imm = 0x129
leaq 0x195ed(%rip), %rax     # 0x1ccb0
movq %rax, -0x58(%rbp)
leaq 0x1ca62(%rip), %rax     # 0x20130
movq %rax, -0x50(%rbp)
leaq 0x1ccaf(%rip), %rax     # 0x20388
movq (%rax), %rax
movq 0x50(%rax), %rax
movq %rax, -0x48(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x19910
xorl %eax, %eax
movl $0x1, %ecx
cmpq %rcx, -0x38(%rbp)
movb %al, -0x69(%rbp)
je 0x370f
movq -0x38(%rbp), %rax
andq $0x3, %rax
cmpq $0x3, %rax
sete %al
movb %al, -0x69(%rbp)
movb -0x69(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x3721
jmp 0x3740
leaq 0x16a67(%rip), %rdi     # 0x1a18f
leaq 0x168fe(%rip), %rsi     # 0x1a02d
movl $0x12a, %edx            # imm = 0x12A
leaq 0x16a5f(%rip), %rcx     # 0x1a19a
callq 0x20f0
leaq 0x1cbb1(%rip), %rax     # 0x202f8
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
movq 0x1ca02(%rip), %rsi     # 0x20158
movq -0x28(%rbp), %rdx
callq 0x172a0
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
movq 0x1c9d2(%rip), %rsi     # 0x20140
movq -0x20(%rbp), %rdx
callq 0x172a0
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rdi
movq -0x38(%rbp), %rsi
sarq $0x2, %rsi
movq -0x30(%rbp), %rdx
callq 0xcb70
movq %rax, -0x40(%rbp)
leaq 0x1cb5d(%rip), %rax     # 0x202f8
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq 0x1c9ae(%rip), %rsi     # 0x20158
movq -0x28(%rbp), %rdx
callq 0x172a0
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq 0x1c97e(%rip), %rsi     # 0x20140
movq -0x40(%rbp), %rdx
callq 0x172a0
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq 0x1c96e(%rip), %rsi     # 0x20148
movq -0x18(%rbp), %rdx
callq 0x172a0
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq 0x1c99e(%rip), %rsi     # 0x20190
movq -0x10(%rbp), %rdx
callq 0xcc90
movl $0x134, -0x5c(%rbp)     # imm = 0x134
leaq -0x68(%rbp), %rdi
callq 0x19ae0
addq $0x70, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)