// File: /workspace/github_c_makefile_star2_O2/dalnefre[P]kernel_abe/schemer.c
// Function: apply_minus_beh
BEH_DECL(apply_minus_beh)
{
	CONS* args = WHAT;
	CONS* to = pr_head(MINE);
	CONS* env = pr_tail(MINE);
	int n = 0;
	CONS* value;

	DBUG_ENTER("apply_minus_beh");
	DBUG_PRINT("", ("args = %s", cons_to_str(args)));
	if (!is_pair(args) || !is_number(lst_first(args))) {
		DBUG_PRINT("", ("error"));
		FAIL(env, mk_list(ATOM("-"), args));
		DBUG_RETURN;
	}
	n = MK_INT(lst_first(args));
	args = lst_rest(args);
	if (is_empty(args)) {
		n = -n;
	} else {
		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, %r13
movq 0x30(%rbx), %rdi
callq 0x147fb
movq %rax, %rdi
callq 0xcd5b
movq %rax, %rdi
callq 0x147fb
movq %rax, %r14
movq 0x30(%rbx), %rdi
callq 0x147fb
movq %rax, %rdi
callq 0xcd5b
movq %rax, %rdi
callq 0x14906
movq %rax, %rbp
leaq 0xdb64(%rip), %rax      # 0x174a6
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x149cf(%rip), %r15     # 0x1e320
movq (%r15), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x7dc, 0xc(%rdi)       # imm = 0x7DC
leaq 0x10050(%rip), %r12     # 0x199bc
movq %r12, 0x10(%rdi)
leaq 0x147c9(%rip), %rcx     # 0x1e140
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x16679
leaq 0x14f65(%rip), %rax     # 0x1e8f0
cmpl $0x0, (%rax)
je 0x99ce
movq (%r15), %rax
movq 0x50(%rax), %rax
movq %r12, 0x10(%rax)
movq %r12, %rdi
callq 0x15df4
testl %eax, %eax
je 0x99ce
movq (%r15), %rax
movq 0x50(%rax), %rax
movl $0x7dd, 0xc(%rax)       # imm = 0x7DD
movq %r13, %rdi
callq 0xed08
leaq 0xd75a(%rip), %rdi      # 0x1711e
movq %rax, %rsi
xorl %eax, %eax
callq 0x166f0
cmpq 0x145eb(%rip), %r13     # 0x1dfc0
je 0x9a84
testq %r13, %r13
je 0x9a84
movl %r13d, %eax
andl $0x3, %eax
jne 0x9a84
movq %r13, %rdi
callq 0x147fb
notl %eax
testb $0x3, %al
jne 0x9a84
movq %rbp, 0x8(%rsp)
movq %r13, %rdi
callq 0x147fb
movq %rax, %rbp
shrq $0x2, %rbp
movq %r13, %rdi
callq 0x14906
cmpq 0x1459b(%rip), %rax     # 0x1dfc0
je 0x9c52
movq %rax, %r13
movq %r14, (%rsp)
leaq 0x14857(%rip), %r15     # 0x1e290
cmpq %r15, %r13
je 0x9c59
testq %r13, %r13
je 0x9b69
movl %r13d, %eax
andl $0x3, %eax
jne 0x9b69
movq %r13, %rdi
callq 0x147fb
notl %eax
testb $0x3, %al
jne 0x9b69
movq %r13, %rdi
callq 0x147fb
shrq $0x2, %rax
subl %eax, %ebp
movq %r13, %rdi
callq 0x14906
movq %rax, %r13
jmp 0x9a39
leaq 0x14e65(%rip), %rax     # 0x1e8f0
cmpl $0x0, (%rax)
leaq 0x1488b(%rip), %r14     # 0x1e320
je 0x9aca
movq (%r14), %rax
movq 0x50(%rax), %rax
movq %r12, 0x10(%rax)
movq %r12, %rdi
callq 0x15df4
testl %eax, %eax
je 0x9aca
movq (%r14), %rax
movq 0x50(%rax), %rax
movl $0x7df, 0xc(%rax)       # imm = 0x7DF
leaq 0xd76a(%rip), %rdi      # 0x1722d
xorl %eax, %eax
callq 0x166f0
leaq 0xf92f(%rip), %rdi      # 0x19400
callq 0x11f1f
movq %rax, %rdi
movq %r13, %rsi
callq 0x14764
leaq -0x7410(%rip), %rsi     # 0x26d8
movq %rbx, %rdi
movq %rax, %rdx
callq 0xd9b7
movq %rax, %r15
leaq 0xd58d(%rip), %rdi      # 0x1708a
callq 0x11f1f
movq %rax, %r12
callq 0xccde
leaq 0x1477f(%rip), %rsi     # 0x1e290
movq %rax, %rdi
callq 0x14764
movq %r12, %rdi
movq %rax, %rsi
callq 0x14764
movq %rax, %rdi
movq %rbp, %rsi
callq 0x14764
movq %r15, %rdi
movq %rax, %rsi
callq 0x14764
movq %rbx, %rdi
movq %rbp, %rsi
movq %rax, %rdx
callq 0xda94
movl $0x7e1, %eax            # imm = 0x7E1
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
leaq 0x14d80(%rip), %rax     # 0x1e8f0
cmpl $0x0, (%rax)
leaq 0x147a6(%rip), %r14     # 0x1e320
je 0x9baf
movq (%r14), %rax
movq 0x50(%rax), %rax
movq %r12, 0x10(%rax)
movq %r12, %rdi
callq 0x15df4
testl %eax, %eax
je 0x9baf
movq (%r14), %rax
movq 0x50(%rax), %rax
movl $0x7ee, 0xc(%rax)       # imm = 0x7EE
leaq 0xd685(%rip), %rdi      # 0x1722d
xorl %eax, %eax
callq 0x166f0
leaq 0xf84a(%rip), %rdi      # 0x19400
callq 0x11f1f
movq %rax, %r15
movslq %ebp, %rax
leaq 0x3(,%rax,4), %rdi
movq %r13, %rsi
callq 0x14764
movq %r15, %rdi
movq %rax, %rsi
callq 0x14764
leaq -0x750b(%rip), %rsi     # 0x26d8
movq %rbx, %rdi
movq %rax, %rdx
callq 0xd9b7
movq %rax, %r15
leaq 0xd492(%rip), %rdi      # 0x1708a
callq 0x11f1f
movq %rax, %r12
callq 0xccde
leaq 0x14684(%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 $0x7f0, %eax            # imm = 0x7F0
jmp 0x9b4d
negl %ebp
movq %r14, %r15
jmp 0x9c5d
movq (%rsp), %r15
movslq %ebp, %rax
leaq 0x3(,%rax,4), %r13
leaq 0x14c81(%rip), %rax     # 0x1e8f0
cmpl $0x0, (%rax)
leaq 0x146a7(%rip), %r14     # 0x1e320
je 0x9cb9
movq (%r14), %rax
movq 0x50(%rax), %rax
movq %r12, 0x10(%rax)
movq %r12, %rdi
callq 0x15df4
testl %eax, %eax
je 0x9cb9
movq (%r14), %rax
movq 0x50(%rax), %rax
movl $0x7f6, 0xc(%rax)       # imm = 0x7F6
movq %r13, %rdi
callq 0xed08
leaq 0xd3f5(%rip), %rdi      # 0x170a4
movq %rax, %rsi
xorl %eax, %eax
callq 0x166f0
movq %rbx, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0xda94
movl $0x7f8, %eax            # imm = 0x7F8
jmp 0x9b4d