// File: /workspace/github_c_makefile_star2_O1/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 0x15225
movq %rax, %r13
movq 0x30(%rbx), %rdi
callq 0x15186
movq %rax, %rdi
callq 0xd2f1
movq %rax, %rdi
callq 0x15186
movq %rax, %r15
movq 0x30(%rbx), %rdi
callq 0x15186
movq %rax, %rdi
callq 0xd2f1
movq %rax, %rdi
callq 0x15225
movq %rax, %rbp
leaq 0xe689(%rip), %rax      # 0x184a6
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x154f4(%rip), %r14     # 0x1f320
movq (%r14), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x7dc, 0xc(%rdi)       # imm = 0x7DC
leaq 0x10b99(%rip), %r12     # 0x1a9e0
movq %r12, 0x10(%rdi)
leaq 0x152ee(%rip), %rcx     # 0x1f140
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0x16ef2
leaq 0x15a8a(%rip), %rax     # 0x1f8f0
cmpl $0x0, (%rax)
je 0x9ea9
movq (%r14), %rax
movq 0x50(%rax), %rax
movq %r12, 0x10(%rax)
movq %r12, %rdi
callq 0x16664
testl %eax, %eax
je 0x9ea9
movq (%r14), %rax
movq 0x50(%rax), %rax
movl $0x7dd, 0xc(%rax)       # imm = 0x7DD
movq %r13, %rdi
callq 0xf17c
leaq 0xe27f(%rip), %rdi      # 0x1811e
movq %rax, %rsi
xorl %eax, %eax
callq 0x16f63
cmpq 0x15110(%rip), %r13     # 0x1efc0
je 0x9f5e
testq %r13, %r13
je 0x9f5e
movl %r13d, %eax
andl $0x3, %eax
jne 0x9f5e
movq %r13, %rdi
callq 0x15186
notl %eax
testb $0x3, %al
jne 0x9f5e
movq %r15, 0x8(%rsp)
movq %rbp, (%rsp)
movq %r13, %rdi
callq 0x15186
movq %rax, %rbp
shrq $0x2, %rbp
movq %r13, %rdi
callq 0x15225
cmpq 0x150bc(%rip), %rax     # 0x1efc0
je 0xa12b
movq %rax, %r13
leaq 0x1537c(%rip), %r15     # 0x1f290
testq %r13, %r13
je 0xa043
movl %r13d, %eax
andl $0x3, %eax
jne 0xa043
movq %r13, %rdi
callq 0x15186
notl %eax
testb $0x3, %al
jne 0xa043
movq %r13, %rdi
callq 0x15186
shrq $0x2, %rax
subl %eax, %ebp
movq %r13, %rdi
callq 0x15225
movq %rax, %r13
cmpq %r15, %rax
jne 0x9f14
jmp 0xa12d
leaq 0x1598b(%rip), %rax     # 0x1f8f0
cmpl $0x0, (%rax)
leaq 0x153b1(%rip), %r14     # 0x1f320
je 0x9fa4
movq (%r14), %rax
movq 0x50(%rax), %rax
movq %r12, 0x10(%rax)
movq %r12, %rdi
callq 0x16664
testl %eax, %eax
je 0x9fa4
movq (%r14), %rax
movq 0x50(%rax), %rax
movl $0x7df, 0xc(%rax)       # imm = 0x7DF
leaq 0xe290(%rip), %rdi      # 0x1822d
xorl %eax, %eax
callq 0x16f63
leaq 0x10479(%rip), %rdi     # 0x1a424
callq 0x1265c
movq %rax, %rdi
movq %r13, %rsi
callq 0x15164
leaq -0x74ea(%rip), %rsi     # 0x2ad8
movq %rbx, %rdi
movq %rax, %rdx
callq 0xde1a
movq %rax, %r15
leaq 0xe0b3(%rip), %rdi      # 0x1808a
callq 0x1265c
movq %rax, %r12
callq 0xd26a
leaq 0x152a5(%rip), %rsi     # 0x1f290
movq %rax, %rdi
callq 0x15164
movq %r12, %rdi
movq %rax, %rsi
callq 0x15164
movq %rax, %rdi
movq %rbp, %rsi
callq 0x15164
movq %r15, %rdi
movq %rax, %rsi
callq 0x15164
movq %rbx, %rdi
movq %rbp, %rsi
movq %rax, %rdx
callq 0xdef7
movl $0x7e1, %eax            # imm = 0x7E1
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
leaq 0x158a6(%rip), %rax     # 0x1f8f0
cmpl $0x0, (%rax)
leaq 0x152cc(%rip), %r14     # 0x1f320
je 0xa089
movq (%r14), %rax
movq 0x50(%rax), %rax
movq %r12, 0x10(%rax)
movq %r12, %rdi
callq 0x16664
testl %eax, %eax
je 0xa089
movq (%r14), %rax
movq 0x50(%rax), %rax
movl $0x7ee, 0xc(%rax)       # imm = 0x7EE
leaq 0xe1ab(%rip), %rdi      # 0x1822d
xorl %eax, %eax
callq 0x16f63
leaq 0x10394(%rip), %rdi     # 0x1a424
callq 0x1265c
movq %rax, %r15
movslq %ebp, %rax
leaq 0x3(,%rax,4), %rdi
movq %r13, %rsi
callq 0x15164
movq %r15, %rdi
movq %rax, %rsi
callq 0x15164
leaq -0x75e5(%rip), %rsi     # 0x2ad8
movq %rbx, %rdi
movq %rax, %rdx
callq 0xde1a
movq %rax, %r15
leaq 0xdfb8(%rip), %rdi      # 0x1808a
callq 0x1265c
movq %rax, %r12
callq 0xd26a
leaq 0x151aa(%rip), %rsi     # 0x1f290
movq %rax, %rdi
callq 0x15164
movq %r12, %rdi
movq %rax, %rsi
callq 0x15164
movq %rax, %rdi
movq (%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 $0x7f0, %eax            # imm = 0x7F0
jmp 0xa027
negl %ebp
movslq %ebp, %rax
leaq 0x3(,%rax,4), %r13
leaq 0x157b1(%rip), %rax     # 0x1f8f0
cmpl $0x0, (%rax)
leaq 0x151d7(%rip), %r14     # 0x1f320
je 0xa189
movq (%r14), %rax
movq 0x50(%rax), %rax
movq %r12, 0x10(%rax)
movq %r12, %rdi
callq 0x16664
testl %eax, %eax
je 0xa189
movq (%r14), %rax
movq 0x50(%rax), %rax
movl $0x7f6, 0xc(%rax)       # imm = 0x7F6
movq %r13, %rdi
callq 0xf17c
leaq 0xdf25(%rip), %rdi      # 0x180a4
movq %rax, %rsi
xorl %eax, %eax
callq 0x16f63
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
movq %r13, %rdx
callq 0xdef7
movl $0x7f8, %eax            # imm = 0x7F8
jmp 0xa027