// File: RuiDGPires[P]CrimLang/src/semantic_analiser.cpp
// Function: sc_Tracker::unary(crl::Node*)
void _sc_Tracker::unary(crl::Node *node){
	crl::Node *ident = node->get_child(0);
	ASSERT(ident->type == crl::Node::Type::LEAF, "Node must be leaf");
	
	crl::Token t = get_token(ident);

	Context::Item item = this->context->seek(t.str);
	ASSERT(item.type == Context::Item::Type::VAR, "Identifier has not been defined: " + item.name);
	ASSERT(item._mutable, "Variable must be mutable");
	ASSERT(item.subtype == "i32" || item.subtype == "u32" || item.subtype == "char" || item.subtype == "i64" || item.subtype == "u64" || item.subtype == "f32" || item.subtype == "f64", "Must have numeric type");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1e0, %rsp            # imm = 0x1E0
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x190(%rbp)
movq -0x10(%rbp), %rdi
movq (%rdi), %rax
xorl %esi, %esi
callq *0x18(%rax)
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x10, 0x8(%rax)
je 0x2487b
movb $0x1, -0x4d(%rbp)
movl $0x50, %edi
callq 0x4190
movq %rax, -0x1a0(%rbp)
leaq -0x39(%rbp), %rdi
movq %rdi, -0x198(%rbp)
callq 0x4590
movq -0x198(%rbp), %rdx
leaq 0x74f9(%rip), %rsi      # 0x2bce8
leaq -0x38(%rbp), %rdi
callq 0x52e0
jmp 0x247fa
movq -0x1a0(%rbp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
leaq -0x38(%rbp), %rcx
movl %edx, %esi
callq 0x9140
jmp 0x24813
movq -0x1a0(%rbp), %rdi
movb $0x0, -0x4d(%rbp)
leaq 0x1555b(%rip), %rsi     # 0x39d80
leaq -0x1b51c(%rip), %rdx    # 0x9310
callq 0x4550
jmp 0x24d00
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x24859
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x41e0
leaq -0x39(%rbp), %rdi
callq 0x4360
testb $0x1, -0x4d(%rbp)
jne 0x2486a
jmp 0x24876
movq -0x1a0(%rbp), %rdi
callq 0x4230
jmp 0x24cf7
movq -0x18(%rbp), %rsi
leaq -0x80(%rbp), %rdi
movq %rdi, -0x1b0(%rbp)
callq 0x24750
movq -0x190(%rbp), %rax
movq -0x1b0(%rbp), %rsi
movq 0x8(%rax), %rax
movq %rax, -0x1a8(%rbp)
leaq -0x110(%rbp), %rdi
callq 0x4150
jmp 0x248b6
movq -0x1a8(%rbp), %rsi
leaq -0xf0(%rbp), %rdi
leaq -0x110(%rbp), %rdx
callq 0x6830
jmp 0x248d2
leaq -0x110(%rbp), %rdi
callq 0x41e0
cmpl $0x3, -0xf0(%rbp)
je 0x249d1
movb $0x1, -0x131(%rbp)
movl $0x50, %edi
callq 0x4190
movq %rax, -0x1b8(%rbp)
leaq -0xe8(%rbp), %rdx
leaq 0x730d(%rip), %rsi      # 0x2bc1e
leaq -0x130(%rbp), %rdi
callq 0x5410
jmp 0x2491f
movq -0x1b8(%rbp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
leaq -0x130(%rbp), %rcx
movl %edx, %esi
callq 0x9140
jmp 0x2493b
movq -0x1b8(%rbp), %rdi
movb $0x0, -0x131(%rbp)
leaq 0x15430(%rip), %rsi     # 0x39d80
leaq -0x1b647(%rip), %rdx    # 0x9310
callq 0x4550
jmp 0x24d00
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x24cee
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x110(%rbp), %rdi
callq 0x41e0
jmp 0x24cee
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x249b5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x130(%rbp), %rdi
callq 0x41e0
testb $0x1, -0x131(%rbp)
jne 0x249c0
jmp 0x249cc
movq -0x1b8(%rbp), %rdi
callq 0x4230
jmp 0x24ce2
testb $0x1, -0xa0(%rbp)
jne 0x24ab5
movb $0x1, -0x15a(%rbp)
movl $0x50, %edi
callq 0x4190
movq %rax, -0x1c8(%rbp)
leaq -0x159(%rbp), %rdi
movq %rdi, -0x1c0(%rbp)
callq 0x4590
movq -0x1c0(%rbp), %rdx
leaq 0x7229(%rip), %rsi      # 0x2bc40
leaq -0x158(%rbp), %rdi
callq 0x52e0
jmp 0x24a25
movq -0x1c8(%rbp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
leaq -0x158(%rbp), %rcx
movl %edx, %esi
callq 0x9140
jmp 0x24a41
movq -0x1c8(%rbp), %rdi
movb $0x0, -0x15a(%rbp)
leaq 0x1532a(%rip), %rsi     # 0x39d80
leaq -0x1b74d(%rip), %rdx    # 0x9310
callq 0x4550
jmp 0x24d00
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x24a8d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x158(%rbp), %rdi
callq 0x41e0
leaq -0x159(%rbp), %rdi
callq 0x4360
testb $0x1, -0x15a(%rbp)
jne 0x24aa4
jmp 0x24ab0
movq -0x1c8(%rbp), %rdi
callq 0x4230
jmp 0x24ce2
leaq -0xc8(%rbp), %rdi
leaq 0x680b(%rip), %rsi      # 0x2b2ce
callq 0x66e0
movb %al, -0x1c9(%rbp)
jmp 0x24ad0
movb -0x1c9(%rbp), %al
testb $0x1, %al
jne 0x24cc4
jmp 0x24ae0
leaq -0xc8(%rbp), %rdi
leaq 0x6ba5(%rip), %rsi      # 0x2b693
callq 0x66e0
movb %al, -0x1ca(%rbp)
jmp 0x24afb
movb -0x1ca(%rbp), %al
testb $0x1, %al
jne 0x24cc4
jmp 0x24b0b
leaq -0xc8(%rbp), %rdi
leaq 0x6b82(%rip), %rsi      # 0x2b69b
callq 0x66e0
movb %al, -0x1cb(%rbp)
jmp 0x24b26
movb -0x1cb(%rbp), %al
testb $0x1, %al
jne 0x24cc4
jmp 0x24b36
leaq -0xc8(%rbp), %rdi
leaq 0x6b5c(%rip), %rsi      # 0x2b6a0
callq 0x66e0
movb %al, -0x1cc(%rbp)
jmp 0x24b51
movb -0x1cc(%rbp), %al
testb $0x1, %al
jne 0x24cc4
jmp 0x24b61
leaq -0xc8(%rbp), %rdi
leaq 0x6b35(%rip), %rsi      # 0x2b6a4
callq 0x66e0
movb %al, -0x1cd(%rbp)
jmp 0x24b7c
movb -0x1cd(%rbp), %al
testb $0x1, %al
jne 0x24cc4
jmp 0x24b8c
leaq -0xc8(%rbp), %rdi
leaq 0x6afd(%rip), %rsi      # 0x2b697
callq 0x66e0
movb %al, -0x1ce(%rbp)
jmp 0x24ba7
movb -0x1ce(%rbp), %al
testb $0x1, %al
jne 0x24cc4
jmp 0x24bb7
leaq -0xc8(%rbp), %rdi
leaq 0x6ae3(%rip), %rsi      # 0x2b6a8
callq 0x66e0
movb %al, -0x1cf(%rbp)
jmp 0x24bd2
movb -0x1cf(%rbp), %al
testb $0x1, %al
jne 0x24cc4
jmp 0x24be2
movb $0x1, -0x182(%rbp)
movl $0x50, %edi
callq 0x4190
movq %rax, -0x1e0(%rbp)
leaq -0x181(%rbp), %rdi
movq %rdi, -0x1d8(%rbp)
callq 0x4590
movq -0x1d8(%rbp), %rdx
leaq 0x70df(%rip), %rsi      # 0x2bcfa
leaq -0x180(%rbp), %rdi
callq 0x52e0
jmp 0x24c29
movq -0x1e0(%rbp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
leaq -0x180(%rbp), %rcx
movl %edx, %esi
callq 0x9140
jmp 0x24c45
movq -0x1e0(%rbp), %rdi
movb $0x0, -0x182(%rbp)
leaq 0x15126(%rip), %rsi     # 0x39d80
leaq -0x1b951(%rip), %rdx    # 0x9310
callq 0x4550
jmp 0x24d00
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x24ce2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x24c9f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x180(%rbp), %rdi
callq 0x41e0
leaq -0x181(%rbp), %rdi
callq 0x4360
testb $0x1, -0x182(%rbp)
jne 0x24cb6
jmp 0x24cc2
movq -0x1e0(%rbp), %rdi
callq 0x4230
jmp 0x24ce2
leaq -0xf0(%rbp), %rdi
callq 0x6df0
leaq -0x80(%rbp), %rdi
callq 0x285a0
addq $0x1e0, %rsp            # imm = 0x1E0
popq %rbp
retq
leaq -0xf0(%rbp), %rdi
callq 0x6df0
leaq -0x80(%rbp), %rdi
callq 0x285a0
movq -0x48(%rbp), %rdi
callq 0x4580