// File: /workspace/github_c_makefile_star2_O1/dalnefre[P]kernel_abe/reduce.c
// Function: apply_seq
BEH_DECL(apply_seq)
{
	CONS* msg = WHAT;
	CONS* expr = map_get(msg, expr_symbol);
	CONS* state = MINE;
	CONS* acc = map_get(state, ATOM("acc"));
	CONS* form = map_get(state, form_symbol);
	CONS* cont = map_get(state, cont_symbol);
	CONS* env = map_get(state, env_symbol);

	DBUG_ENTER("apply_seq");
	DBUG_PRINT("", ("value=%s", cons_to_str(expr)));
	acc = cons(expr, acc);
	if (nilp(form) || !consp(form)) {
		msg = NIL;
		expr = reverse(acc);
		DBUG_PRINT("", ("expr=%s", cons_to_str(expr)));
		msg = map_put(msg, expr_symbol, expr);
		SEND(cont, msg);
	} else {
		state = NIL;
		state = map_put(state, env_symbol, env);
		state = map_put(state, cont_symbol, cont);
		state = map_put(state, form_symbol, cdr(form));
		state = map_put(state, ATOM("acc"), acc);
		BECOME(THIS, state);
		msg = NIL;
		msg = map_put(msg, env_symbol, env);
		msg = map_put(msg, cont_symbol, SELF);
		msg = map_put(msg, expr_symbol, car(form));
		SEND(a_reduce, msg);
	}
	DBUG_RETURN;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
callq 0x11655
movq 0x14445(%rip), %rsi     # 0x1b148
movq %rax, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r13
movq 0x30(%rbx), %rdi
callq 0x115b6
movq %rax, %rdi
callq 0x9721
movq %rax, %r12
leaq 0xd60d(%rip), %rdi      # 0x14338
callq 0xea8c
movq %r12, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %rbp
movq 0x14409(%rip), %rsi     # 0x1b150
movq %r12, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, %r14
movq 0x143e5(%rip), %rsi     # 0x1b140
movq %r12, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, (%rsp)
movq 0x143e8(%rip), %rsi     # 0x1b158
movq %r12, %rdi
xorl %edx, %edx
callq 0x11a8a
movq %rax, 0x8(%rsp)
leaq 0xd768(%rip), %rax      # 0x144ee
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x145f3(%rip), %r15     # 0x1b388
movq (%r15), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x4d1, 0xc(%rdi)       # imm = 0x4D1
leaq 0xfd54(%rip), %r12      # 0x16b04
movq %r12, 0x10(%rdi)
leaq 0x14375(%rip), %rcx     # 0x1b130
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x13322
leaq 0x14b61(%rip), %rax     # 0x1b930
cmpl $0x0, (%rax)
je 0x6e12
movq (%r15), %rax
movq 0x50(%rax), %rax
movq %r12, 0x10(%rax)
movq %r12, %rdi
callq 0x12a94
testl %eax, %eax
je 0x6e12
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x4d2, 0xc(%rax)       # imm = 0x4D2
movq %r13, %rdi
callq 0xb5ac
leaq 0xd3bc(%rip), %rdi      # 0x141c4
movq %rax, %rsi
xorl %eax, %eax
callq 0x13393
movq %r13, %rdi
movq %rbp, %rsi
callq 0x11594
movq %rax, %r13
cmpq 0x14199(%rip), %r14     # 0x1afc0
je 0x6e3d
testq %r14, %r14
sete %al
testb $0x3, %r14b
setne %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0x6eb4
movq %r13, %rdi
callq 0x11877
movq %rax, %r14
leaq 0x14ae1(%rip), %rax     # 0x1b930
cmpl $0x0, (%rax)
je 0x6e92
movq (%r15), %rax
movq 0x50(%rax), %rax
movq %r12, 0x10(%rax)
movq %r12, %rdi
callq 0x12a94
testl %eax, %eax
je 0x6e92
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x4d7, 0xc(%rax)       # imm = 0x4D7
movq %r14, %rdi
callq 0xb5ac
leaq 0xd70d(%rip), %rdi      # 0x14595
movq %rax, %rsi
xorl %eax, %eax
callq 0x13393
movq 0x142af(%rip), %rsi     # 0x1b148
leaq 0x14458(%rip), %rdi     # 0x1b2f8
movq %r14, %rdx
callq 0x11afc
movq %rbx, %rdi
movq (%rsp), %rsi
jmp 0x6fae
movq 0x1429d(%rip), %rsi     # 0x1b158
leaq 0x14436(%rip), %rdi     # 0x1b2f8
movq 0x8(%rsp), %r12
movq %r12, %rdx
callq 0x11afc
movq 0x1426a(%rip), %rsi     # 0x1b140
movq %rax, %rdi
movq (%rsp), %rdx
callq 0x11afc
movq %rax, %r15
movq 0x14264(%rip), %rbp     # 0x1b150
movq %r14, %rdi
callq 0x11655
movq %r15, %rdi
movq %rbp, %rsi
movq %rax, %rdx
callq 0x11afc
movq %rax, %r15
leaq 0xd42c(%rip), %rdi      # 0x14338
callq 0xea8c
movq %r15, %rdi
movq %rax, %rsi
movq %r13, %rdx
callq 0x11afc
movq %rax, %r15
movq 0x30(%rbx), %rdi
callq 0x115b6
movq %rax, %r13
movq 0x30(%rbx), %rdi
callq 0x115b6
movq %rax, %rdi
callq 0x96e8
movq %r13, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x9930
movq 0x14204(%rip), %rsi     # 0x1b158
leaq 0x1439d(%rip), %rdi     # 0x1b2f8
movq %r12, %rdx
callq 0x11afc
movq %rax, %r15
movq 0x141d3(%rip), %r12     # 0x1b140
movq 0x30(%rbx), %rdi
callq 0x115b6
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x11afc
movq %rax, %r15
movq 0x141ba(%rip), %r12     # 0x1b148
movq %r14, %rdi
callq 0x115b6
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x11afc
movq 0x141d5(%rip), %rsi     # 0x1b180
movq %rbx, %rdi
movq %rax, %rdx
callq 0xa327
leaq 0x10(%rsp), %rdi
movl $0x4e7, 0xc(%rdi)       # imm = 0x4E7
callq 0x134a7
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq