// File: /workspace/github_c_makefile_star2_O1/dalnefre[P]kernel_abe/reduce.c
// Function: reduce_seq
BEH_DECL(reduce_seq)
{
	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;
	CONS* actor;

	DBUG_ENTER("reduce_seq");
	if (nilp(expr) || !consp(expr)) {
		SEND(cont, map_put(NIL, expr_symbol, expr));
	} else {
		DBUG_PRINT("", ("form=%s", cons_to_str(expr)));
		state = NIL;
		state = map_put(state, env_symbol, env);
		state = map_put(state, cont_symbol, cont);
		state = map_put(state, form_symbol, cdr(expr));
		state = map_put(state, ATOM("acc"), NIL);
		actor = ACTOR(apply_seq, state);
		msg = NIL;
		msg = map_put(msg, env_symbol, env);
		msg = map_put(msg, cont_symbol, actor);
		msg = map_put(msg, expr_symbol, car(expr));
		SEND(a_reduce, msg);
	}
	DBUG_RETURN;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
callq 0x11655
movq %rax, %r15
movq 0x1414e(%rip), %rsi     # 0x1b148
movq %rax, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r14
movq 0x14132(%rip), %rsi     # 0x1b140
movq %r15, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r12
movq 0x14136(%rip), %rsi     # 0x1b158
movq %r15, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r15
leaq 0xd4c2(%rip), %rax      # 0x144f8
movq %rsp, %rdi
movq %rax, (%rdi)
leaq 0x14345(%rip), %rbp     # 0x1b388
movq (%rbp), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x4fe, 0xc(%rdi)       # imm = 0x4FE
leaq 0xfaa5(%rip), %r13      # 0x16b04
movq %r13, 0x10(%rdi)
leaq 0x140c6(%rip), %rcx     # 0x1b130
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x13322
cmpq 0x13f42(%rip), %r14     # 0x1afc0
je 0x7094
testq %r14, %r14
sete %al
testb $0x3, %r14b
setne %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0x70b5
movq 0x140ad(%rip), %rsi     # 0x1b148
leaq 0x14256(%rip), %rdi     # 0x1b2f8
movq %r14, %rdx
callq 0x11afc
movq %rbx, %rdi
movq %r12, %rsi
jmp 0x71cc
leaq 0x14874(%rip), %rax     # 0x1b930
cmpl $0x0, (%rax)
je 0x7101
movq (%rbp), %rax
movq 0x50(%rax), %rax
movq %r13, 0x10(%rax)
movq %r13, %rdi
callq 0x12a94
testl %eax, %eax
je 0x7101
movq (%rbp), %rax
movq 0x50(%rax), %rax
movl $0x502, 0xc(%rax)       # imm = 0x502
movq %r14, %rdi
callq 0xb5ac
leaq 0xd4da(%rip), %rdi      # 0x145d1
movq %rax, %rsi
xorl %eax, %eax
callq 0x13393
movq 0x14050(%rip), %rsi     # 0x1b158
leaq 0x141e9(%rip), %r13     # 0x1b2f8
movq %r13, %rdi
movq %r15, %rdx
callq 0x11afc
movq 0x1401f(%rip), %rsi     # 0x1b140
movq %rax, %rdi
movq %r12, %rdx
callq 0x11afc
movq %rax, %r12
movq 0x1401a(%rip), %rbp     # 0x1b150
movq %r14, %rdi
callq 0x11655
movq %r12, %rdi
movq %rbp, %rsi
movq %rax, %rdx
callq 0x11afc
movq %rax, %r12
leaq 0xd1e2(%rip), %rdi      # 0x14338
callq 0xea8c
movq %r12, %rdi
movq %rax, %rsi
movq %r13, %rdx
callq 0x11afc
leaq -0x48e(%rip), %rsi      # 0x6ce2
movq %rbx, %rdi
movq %rax, %rdx
callq 0xa24a
movq %rax, %r12
movq 0x13fd3(%rip), %rsi     # 0x1b158
movq %r13, %rdi
movq %r15, %rdx
callq 0x11afc
movq 0x13fa9(%rip), %rsi     # 0x1b140
movq %rax, %rdi
movq %r12, %rdx
callq 0x11afc
movq %rax, %r15
movq 0x13f9c(%rip), %r12     # 0x1b148
movq %r14, %rdi
callq 0x115b6
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x11afc
movq 0x13fb7(%rip), %rsi     # 0x1b180
movq %rbx, %rdi
movq %rax, %rdx
callq 0xa327
movq %rsp, %rdi
movl $0x50f, 0xc(%rdi)       # imm = 0x50F
callq 0x134a7
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq