// File: /workspace/github_cpp_makefile_star2_O1/pranavmodx[P]modlang/src/evaluator.cpp
// Function: Evaluator::evalMinusPrefixExpression(Object*)
Object *Evaluator::evalMinusPrefixExpression(Object *right)
{
	if (right->type() == INTEGER_OBJ)
	{
		Integer *intObj = new Integer(-((Integer *)right)->value);
		return intObj;
	}

	Object *error = new Error("error : unknown operator for " + right->type() + " -> -");
	return error;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r14
movq (%rsi), %rax
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq *(%rax)
movq 0x8(%rbx), %rdx
cmpq 0x154ba(%rip), %rdx     # 0x38158
jne 0x22cbd
testq %rdx, %rdx
je 0x22cc1
movq 0x154a4(%rip), %rsi     # 0x38150
movq 0x8(%rsp), %rdi
callq 0x51d0
testl %eax, %eax
sete %bl
jmp 0x22cc3
xorl %ebx, %ebx
jmp 0x22cc3
movb $0x1, %bl
leaq 0x18(%rsp), %r15
movq -0x10(%r15), %rdi
cmpq %r15, %rdi
je 0x22cde
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x51c0
testb %bl, %bl
je 0x22d07
movl $0x10, %edi
callq 0x51b0
xorl %ecx, %ecx
subl 0x8(%r14), %ecx
movq %rax, %rbx
leaq 0x11dd4(%rip), %rax     # 0x34ad0
movq %rax, (%rbx)
movl %ecx, 0x8(%rbx)
jmp 0x22e4a
movl $0x28, %edi
callq 0x51b0
movq %rax, %rbx
movq (%r14), %rax
leaq 0x48(%rsp), %rdi
movq %r14, %rsi
callq *(%rax)
leaq 0x6de5(%rip), %rcx      # 0x29b0d
leaq 0x48(%rsp), %rdi
movl $0x1d, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x51f0
movq %r15, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x22d5f
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x22d66
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x6da2(%rip), %rsi      # 0x29b2b
callq 0x5360
leaq 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x22db6
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x22dbe
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x11cbb(%rip), %rax     # 0x34a98
movq %rax, (%rbx)
leaq 0x8(%rbx), %rdi
movq %rbx, %rax
addq $0x18, %rax
movq %rax, 0x8(%rbx)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
addq %rsi, %rdx
callq 0xbde8
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x22e18
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x51c0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x22e2f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x51c0
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x22e4a
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x51c0
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x22e78
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x51c0
jmp 0x22e78
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x22e94
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x51c0
jmp 0x22e94
movq %rax, %r14
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x22eb4
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x51c0
jmp 0x22eb4
movq %rax, %r14
movl $0x28, %esi
movq %rbx, %rdi
callq 0x51c0
movq %r14, %rdi
callq 0x5330
nop