// File: /workspace/github_c_makefile_star2_O1/dalnefre[P]kernel_abe/schemer.c
// Function: apply_plus_beh
BEH_DECL(apply_plus_beh)
{
	CONS* args = WHAT;
	CONS* to = pr_head(MINE);
	CONS* env = pr_tail(MINE);
	int n = 0;
	CONS* value;

	DBUG_ENTER("apply_plus_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 0x15225
movq %rax, %r15
movq 0x30(%rbx), %rdi
callq 0x15186
movq %rax, %rdi
callq 0xd2f1
movq %rax, %rdi
callq 0x15186
movq %rax, %rbp
movq 0x30(%rbx), %rdi
callq 0x15186
movq %rax, %rdi
callq 0xd2f1
movq %rax, %rdi
callq 0x15225
movq %rax, %r14
leaq 0xe93f(%rip), %rax      # 0x18495
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x157bb(%rip), %r12     # 0x1f320
movq (%r12), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x7b2, 0xc(%rdi)       # imm = 0x7B2
leaq 0x10e5f(%rip), %r13     # 0x1a9e0
movq %r13, 0x10(%rdi)
leaq 0x155b4(%rip), %rcx     # 0x1f140
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x16ef2
leaq 0x15d50(%rip), %rax     # 0x1f8f0
cmpl $0x0, (%rax)
je 0x9be5
movq (%r12), %rax
movq 0x50(%rax), %rax
movq %r13, 0x10(%rax)
movq %r13, %rdi
callq 0x16664
testl %eax, %eax
je 0x9be5
movq (%r12), %rax
movq 0x50(%rax), %rax
movl $0x7b3, 0xc(%rax)       # imm = 0x7B3
movq %r15, %rdi
callq 0xf17c
leaq 0xe543(%rip), %rdi      # 0x1811e
movq %rax, %rsi
xorl %eax, %eax
callq 0x16f63
cmpq 0x153d4(%rip), %r15     # 0x1efc0
je 0x9d3b
movq %rbp, (%rsp)
movq %r14, 0x8(%rsp)
xorl %r14d, %r14d
leaq 0x1568b(%rip), %rbp     # 0x1f290
testq %r15, %r15
je 0x9c53
movl %r15d, %eax
andl $0x3, %eax
jne 0x9c53
movq %r15, %rdi
callq 0x15186
notl %eax
testb $0x3, %al
jne 0x9c53
movq %r15, %rdi
callq 0x15186
shrq $0x2, %rax
addl %eax, %r14d
movq %r15, %rdi
callq 0x15225
movq %rax, %r15
cmpq %rbp, %rax
jne 0x9c05
movslq %r14d, %rax
leaq 0x3(,%rax,4), %r14
movq (%rsp), %rbp
jmp 0x9d41
leaq 0x15c96(%rip), %rax     # 0x1f8f0
cmpl $0x0, (%rax)
leaq 0x156bc(%rip), %r12     # 0x1f320
je 0x9c9b
movq (%r12), %rax
movq 0x50(%rax), %rax
movq %r13, 0x10(%rax)
movq %r13, %rdi
callq 0x16664
testl %eax, %eax
je 0x9c9b
movq (%r12), %rax
movq 0x50(%rax), %rax
movl $0x7ba, 0xc(%rax)       # imm = 0x7BA
leaq 0xe599(%rip), %rdi      # 0x1822d
xorl %eax, %eax
callq 0x16f63
leaq 0xe802(%rip), %rdi      # 0x184a4
callq 0x1265c
movq %rax, %r12
movslq %r14d, %rax
leaq 0x3(,%rax,4), %rdi
movq %r15, %rsi
callq 0x15164
movq %r12, %rdi
movq %rax, %rsi
callq 0x15164
leaq -0x71f7(%rip), %rsi     # 0x2ad8
movq %rbx, %rdi
movq %rax, %rdx
callq 0xde1a
movq %rax, %r15
leaq 0xe3a6(%rip), %rdi      # 0x1808a
callq 0x1265c
movq %rax, %r12
callq 0xd26a
leaq 0x15598(%rip), %rsi     # 0x1f290
movq %rax, %rdi
callq 0x15164
movq %r12, %rdi
movq %rax, %rsi
callq 0x15164
movq %rax, %rdi
movq 0x8(%rsp), %r14
movq %r14, %rsi
callq 0x15164
movq %r15, %rdi
movq %rax, %rsi
callq 0x15164
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0xdef7
movl $0x7bc, %eax            # imm = 0x7BC
jmp 0x9da5
movl $0x3, %r14d
leaq 0x15ba8(%rip), %rax     # 0x1f8f0
cmpl $0x0, (%rax)
leaq 0x155ce(%rip), %r15     # 0x1f320
je 0x9d92
movq (%r15), %rax
movq 0x50(%rax), %rax
movq %r13, 0x10(%rax)
movq %r13, %rdi
callq 0x16664
testl %eax, %eax
je 0x9d92
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x7c1, 0xc(%rax)       # imm = 0x7C1
movq %r14, %rdi
callq 0xf17c
leaq 0xe31c(%rip), %rdi      # 0x180a4
movq %rax, %rsi
xorl %eax, %eax
callq 0x16f63
movq %rbx, %rdi
movq %rbp, %rsi
movq %r14, %rdx
callq 0xdef7
movl $0x7c3, %eax            # imm = 0x7C3
leaq 0x10(%rsp), %rdi
movl %eax, 0xc(%rdi)
callq 0x17077
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq