// File: /workspace/github_c_makefile_star2_O2/dalnefre[P]kernel_abe/schemer.c
// Function: apply_times_beh
BEH_DECL(apply_times_beh)
{
	CONS* args = WHAT;
	CONS* to = pr_head(MINE);
	CONS* env = pr_tail(MINE);
	int n = 1;
	CONS* value;

	DBUG_ENTER("apply_times_beh");
	DBUG_PRINT("", ("args = %s", cons_to_str(args)));
	while (!is_empty(args)) {
		if (is_pair(args) && is_number(lst_first(args))) {
			int m = MK_INT(lst_first(args));

			n *= m;
		} else {
			DBUG_PRINT("", ("error"));
			FAIL(env, mk_list(ATOM("*"), mk_list(NUMBER(n), args)));
			DBUG_RETURN;
		}
		args = lst_rest(args);
	}
	value = NUMBER(n);
	DBUG_PRINT("", ("value = %s", cons_to_str(value)));
	SEND(to, value);
	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 0x14906
movq %rax, %r15
movq 0x30(%rbx), %rdi
callq 0x147fb
movq %rax, %rdi
callq 0xcd5b
movq %rax, %rdi
callq 0x147fb
movq %rax, (%rsp)
movq 0x30(%rbx), %rdi
callq 0x147fb
movq %rax, %rdi
callq 0xcd5b
movq %rax, %rdi
callq 0x14906
movq %rax, 0x8(%rsp)
leaq 0xd786(%rip), %rax      # 0x174b6
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x145e1(%rip), %r14     # 0x1e320
movq (%r14), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x811, 0xc(%rdi)       # imm = 0x811
leaq 0xfc62(%rip), %r13      # 0x199bc
movq %r13, 0x10(%rdi)
leaq 0x143db(%rip), %rcx     # 0x1e140
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x16679
leaq 0x14b77(%rip), %r12     # 0x1e8f0
cmpl $0x0, (%r12)
je 0x9dbe
movq (%r14), %rax
movq 0x50(%rax), %rax
movq %r13, 0x10(%rax)
movq %r13, %rdi
callq 0x15df4
testl %eax, %eax
je 0x9dbe
movq (%r14), %rax
movq 0x50(%rax), %rax
movl $0x812, 0xc(%rax)       # imm = 0x812
movq %r15, %rdi
callq 0xed08
leaq 0xd36a(%rip), %rdi      # 0x1711e
movq %rax, %rsi
xorl %eax, %eax
callq 0x166f0
pushq $0x1
popq %r14
leaq 0x144c7(%rip), %rbp     # 0x1e290
cmpq %rbp, %r15
je 0x9eed
testq %r15, %r15
je 0x9e0a
movl %r15d, %eax
andl $0x3, %eax
jne 0x9e0a
movq %r15, %rdi
callq 0x147fb
notl %eax
testb $0x3, %al
jne 0x9e0a
movq %r15, %rdi
callq 0x147fb
shrq $0x2, %rax
imull %eax, %r14d
movq %r15, %rdi
callq 0x14906
movq %rax, %r15
jmp 0x9dc9
cmpl $0x0, (%r12)
leaq 0x1450a(%rip), %r12     # 0x1e320
je 0x9e4d
movq (%r12), %rax
movq 0x50(%rax), %rax
movq %r13, 0x10(%rax)
movq %r13, %rdi
callq 0x15df4
testl %eax, %eax
je 0x9e4d
movq (%r12), %rax
movq 0x50(%rax), %rax
movl $0x819, 0xc(%rax)       # imm = 0x819
leaq 0xd3e7(%rip), %rdi      # 0x1722d
xorl %eax, %eax
callq 0x166f0
leaq 0xd672(%rip), %rdi      # 0x174c6
callq 0x11f1f
movq %rax, %r12
movslq %r14d, %rax
leaq 0x3(,%rax,4), %rdi
movq %r15, %rsi
callq 0x14764
movq %r12, %rdi
movq %rax, %rsi
callq 0x14764
leaq -0x77a9(%rip), %rsi     # 0x26d8
movq %rbx, %rdi
movq %rax, %rdx
callq 0xd9b7
movq %rax, %r15
leaq 0xd1f4(%rip), %rdi      # 0x1708a
callq 0x11f1f
movq %rax, %r12
callq 0xccde
leaq 0x143e6(%rip), %rsi     # 0x1e290
movq %rax, %rdi
callq 0x14764
movq %r12, %rdi
movq %rax, %rsi
callq 0x14764
movq %rax, %rdi
movq 0x8(%rsp), %r14
movq %r14, %rsi
callq 0x14764
movq %r15, %rdi
movq %rax, %rsi
callq 0x14764
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0xda94
movl $0x81b, %eax            # imm = 0x81B
jmp 0x9f58
movslq %r14d, %rax
leaq 0x3(,%rax,4), %r14
cmpl $0x0, (%r12)
leaq 0x1441c(%rip), %r15     # 0x1e320
je 0x9f44
movq (%r15), %rax
movq 0x50(%rax), %rax
movq %r13, 0x10(%rax)
movq %r13, %rdi
callq 0x15df4
testl %eax, %eax
je 0x9f44
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x820, 0xc(%rax)       # imm = 0x820
movq %r14, %rdi
callq 0xed08
leaq 0xd16a(%rip), %rdi      # 0x170a4
movq %rax, %rsi
xorl %eax, %eax
callq 0x166f0
movq %rbx, %rdi
movq (%rsp), %rsi
movq %r14, %rdx
callq 0xda94
movl $0x822, %eax            # imm = 0x822
leaq 0x10(%rsp), %rdi
movl %eax, 0xc(%rdi)
callq 0x167f2
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq