// File: Nallantli[P]Rossa/main/rossa/node_parser/node_parser.cpp
// Function: node_parser_t::parseUnOpNode(std::vector<node_scope_t, std::allocator<node_scope_t>>*)
ptr_node_t node_parser_t::parseUnOpNode(std::vector<node_scope_t> *scopes)
{
	std::string opStr = currentToken.valueString;
	auto marker = currentToken;
	nextToken();
	if (UNARY_OPERATORS.find(opStr) != UNARY_OPERATORS.end())
	{
		if (auto a = parseUnitNode(scopes))
			return std::make_shared<UnOpNode>(*scopes, opStr, a, marker);
		return logErrorN(_FAILURE_PARSE_CODE_, currentToken);
	}
	else
	{
		return logErrorN(_NOT_UNARY_OP_, marker);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x190, %rsp            # imm = 0x190
movq %rdi, -0x170(%rbp)
movq %rdi, %rax
movq %rax, -0x168(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rsi
movq %rsi, -0x160(%rbp)
movq %rsi, %rax
addq $0x58, %rax
movq %rax, -0x158(%rbp)
addq $0xb0, %rsi
leaq -0x38(%rbp), %rdi
callq 0x11250
movq -0x158(%rbp), %rsi
leaq -0xb8(%rbp), %rdi
callq 0x2ee00
jmp 0x4ac36
movq -0x160(%rbp), %rdi
callq 0x38fd0
jmp 0x4ac44
leaq 0x19b07d(%rip), %rdi    # 0x1e5cc8
leaq -0x38(%rbp), %rsi
callq 0x363c0
movq %rax, -0x178(%rbp)
jmp 0x4ac5d
movq -0x178(%rbp), %rax
movq %rax, -0xd0(%rbp)
leaq 0x19b056(%rip), %rdi    # 0x1e5cc8
callq 0x363f0
movq %rax, -0xd8(%rbp)
leaq -0xd0(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
callq 0x36390
testb $0x1, %al
jne 0x4ac9a
jmp 0x4ae4a
movq -0x160(%rbp), %rsi
movq -0x18(%rbp), %rdx
leaq -0xe8(%rbp), %rdi
callq 0x44bf0
jmp 0x4acb3
leaq -0xe8(%rbp), %rdi
callq 0x57630
testb $0x1, %al
jne 0x4acc8
jmp 0x4ad68
movq -0x18(%rbp), %rsi
leaq -0xf8(%rbp), %rdi
leaq -0x38(%rbp), %rdx
leaq -0xe8(%rbp), %rcx
leaq -0xb8(%rbp), %r8
callq 0x59070
jmp 0x4acec
movq -0x170(%rbp), %rdi
leaq -0xf8(%rbp), %rsi
callq 0x59100
leaq -0xf8(%rbp), %rdi
callq 0x59130
movl $0x1, -0xfc(%rbp)
jmp 0x4ad72
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xc0(%rbp)
movl %eax, -0xc4(%rbp)
jmp 0x4af31
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xc0(%rbp)
movl %eax, -0xc4(%rbp)
jmp 0x4af25
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xc0(%rbp)
movl %eax, -0xc4(%rbp)
leaq -0xe8(%rbp), %rdi
callq 0x24b20
jmp 0x4af25
movl $0x0, -0xfc(%rbp)
leaq -0xe8(%rbp), %rdi
callq 0x24b20
movl -0xfc(%rbp), %eax
testl %eax, %eax
jne 0x4af00
jmp 0x4ad8e
leaq -0x121(%rbp), %rdi
movq %rdi, -0x180(%rbp)
callq 0x119d0
movq -0x180(%rbp), %rdx
leaq 0x106477(%rip), %rsi    # 0x151226
leaq -0x120(%rbp), %rdi
callq 0x24740
jmp 0x4adbd
movq -0x160(%rbp), %rsi
movq -0x170(%rbp), %rdi
movq %rsi, %rcx
addq $0x58, %rcx
leaq -0x120(%rbp), %rdx
callq 0x3f820
jmp 0x4ade0
leaq -0x120(%rbp), %rdi
callq 0x11360
leaq -0x121(%rbp), %rdi
callq 0x11600
movl $0x1, -0xfc(%rbp)
jmp 0x4af00
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xc0(%rbp)
movl %eax, -0xc4(%rbp)
jmp 0x4ae39
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xc0(%rbp)
movl %eax, -0xc4(%rbp)
leaq -0x120(%rbp), %rdi
callq 0x11360
leaq -0x121(%rbp), %rdi
callq 0x11600
jmp 0x4af25
leaq -0x149(%rbp), %rdi
movq %rdi, -0x188(%rbp)
callq 0x119d0
movq -0x188(%rbp), %rdx
leaq 0x10644c(%rip), %rsi    # 0x1512b7
leaq -0x148(%rbp), %rdi
callq 0x24740
jmp 0x4ae79
movq -0x160(%rbp), %rsi
movq -0x170(%rbp), %rdi
leaq -0x148(%rbp), %rdx
leaq -0xb8(%rbp), %rcx
callq 0x3f820
jmp 0x4ae9c
leaq -0x148(%rbp), %rdi
callq 0x11360
leaq -0x149(%rbp), %rdi
callq 0x11600
movl $0x1, -0xfc(%rbp)
jmp 0x4af00
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xc0(%rbp)
movl %eax, -0xc4(%rbp)
jmp 0x4aef2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0xc0(%rbp)
movl %eax, -0xc4(%rbp)
leaq -0x148(%rbp), %rdi
callq 0x11360
leaq -0x149(%rbp), %rdi
callq 0x11600
jmp 0x4af25
leaq -0xb8(%rbp), %rdi
callq 0x2a480
leaq -0x38(%rbp), %rdi
callq 0x11360
movq -0x168(%rbp), %rax
addq $0x190, %rsp            # imm = 0x190
popq %rbp
retq
leaq -0xb8(%rbp), %rdi
callq 0x2a480
leaq -0x38(%rbp), %rdi
callq 0x11360
movq -0xc0(%rbp), %rdi
callq 0x119c0
nopw %cs:(%rax,%rax)