// File: /workspace/github_cpp_makefile_star2_O3/RuiDGPires[P]CrimLang/src/generator.cpp
// Function: gc_Tracker::unary_reg(crl::Node*)
u32 _gc_Tracker::unary_reg(crl::Node *node){
	crl::Token t = get_token(node->get_child(0));
	std::string op;
	switch (node->type){
		case crl::Node::Type::INC:
			op = "INC";
		break;
		case crl::Node::Type::DEC:
			op = "DEC";
		break;
		default:
		break;
	}
	u32 reg = reg_tracker.alloc();
	std::string name = reg_tracker.reg_name(reg);
	
	if (symb_tracker.has_local(t.str)){
		std::pair<u32, bool> p = symb_tracker.get_local(t.str);

		if (p.second){
			u32 reg2 = reg_tracker.alloc();
			std::string name2 = reg_tracker.reg_name(reg2);
			stream_funcs <<
				"LOAD " << name << " m[RF][-" << p.first  << "]\n" <<
				"LOAD " << name2 << " m[" << name  << "]\n" <<
				"PSH " << name2 << "\n" <<
				op << " " << name2 << "\n" <<
				"STORE m[" << name << "] " << name2 << "\n" <<
				"POP " << name << "\n";

			reg_tracker.free(reg2);
		} else
			stream_funcs <<
				"LOAD " << name << " m[RF][-" << p.first  << "]\n" <<
				"PSH " << name << "\n" <<
				op << " " << name << "\n" <<
				"STORE m[RF][-" << p.first << "] " << name << "\n" <<
				"POP " << name << "\n";
	}else{
		u32 reg2 = reg_tracker.alloc();
		std::string name2 = reg_tracker.reg_name(reg2);

		stream_funcs << "MVI " << name << " " << t.str << "\n" <<
			"LOAD " << name2 << " m[" << name << "]\n" <<
			"PSH " << name2 << "\n" <<
			op << " " << name2 << "\n" <<
			"STORE m[" << name << "] " << name2 << "\n" <<
			"POP " << name << "\n";

		reg_tracker.free(reg2);
	}

	return reg;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rsi, %rbx
movq %rdi, %r12
movq (%rsi), %rax
movq %rsi, %rdi
xorl %esi, %esi
callq *0x18(%rax)
movq %rax, %r14
leaq -0xe8(%rbp), %rax
movq %rax, -0x10(%rax)
movq 0x58(%r14), %rsi
movq 0x60(%r14), %rdx
addq %rsi, %rdx
leaq -0xf8(%rbp), %r15
movq %r15, %rdi
callq 0x4d52
movl 0x80(%r14), %eax
movl %eax, 0x28(%r15)
movq 0x78(%r14), %rax
movq %rax, 0x20(%r15)
leaq -0x78(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movl 0x8(%rbx), %eax
cmpl $0x14, %eax
je 0x6d05
cmpl $0x13, %eax
jne 0x6d22
leaq 0x148e6(%rip), %rcx     # 0x1b5e9
jmp 0x6d0c
leaq 0x148e1(%rip), %rcx     # 0x1b5ed
leaq -0x88(%rbp), %rdi
movl $0x3, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x3340
leaq 0x500(%r12), %r14
movq %r14, %rdi
callq 0xdc82
movl %eax, %ebx
leaq -0x48(%rbp), %rdi
movq %r14, %rsi
movl %eax, %edx
callq 0xdda4
leaq -0xb8(%rbp), %r13
movq %r13, -0x10(%r13)
movq -0xf8(%rbp), %rsi
movq -0xf0(%rbp), %rdx
addq %rsi, %rdx
leaq -0xc8(%rbp), %rdi
callq 0x4d52
leaq 0x530(%r12), %rdi
leaq -0xc8(%rbp), %rsi
callq 0xde60
movl %eax, %r15d
movq -0xc8(%rbp), %rdi
cmpq %r13, %rdi
je 0x6d9c
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x3230
testb %r15b, %r15b
je 0x6f9b
leaq -0x98(%rbp), %r15
movq %r15, -0x10(%r15)
movq -0xf8(%rbp), %rsi
movq -0xf0(%rbp), %rdx
addq %rsi, %rdx
leaq -0xa8(%rbp), %rdi
callq 0x4d52
leaq 0x560(%r12), %rdi
leaq -0xa8(%rbp), %rsi
callq 0xe8ec
movq (%rax), %rax
movq 0x10(%rax), %r13
movq -0xa8(%rbp), %rdi
cmpq %r15, %rdi
je 0x6e03
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x3230
btq $0x20, %r13
jb 0x71b0
addq $0x328, %r12            # imm = 0x328
leaq 0x14424(%rip), %rsi     # 0x1b240
movl $0x5, %edx
movq %r12, %rdi
callq 0x3280
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %r12, %rdi
callq 0x3280
movq %rax, %r15
leaq 0x1479d(%rip), %rsi     # 0x1b5e0
movl $0x8, %edx
movq %rax, %rdi
callq 0x3280
movl %r13d, %r14d
movq %r15, %rdi
movq %r14, %rsi
callq 0x3170
movq %rax, %r15
leaq 0x143de(%rip), %rsi     # 0x1b246
movl $0x2, %edx
movq %rax, %rdi
callq 0x3280
leaq 0x14478(%rip), %rsi     # 0x1b2f4
movl $0x4, %edx
movq %r15, %rdi
callq 0x3280
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %r15, %rdi
callq 0x3280
movq %rax, %r15
leaq 0x14640(%rip), %rsi     # 0x1b4e3
movl $0x1, %edx
movq %rax, %rdi
callq 0x3280
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
movq %r15, %rdi
callq 0x3280
movq %rax, %r15
leaq 0x14138(%rip), %rsi     # 0x1b005
movl $0x1, %edx
movq %rax, %rdi
callq 0x3280
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %r15, %rdi
callq 0x3280
movq %rax, %r15
leaq 0x145ef(%rip), %rsi     # 0x1b4e3
movl $0x1, %edx
movq %rax, %rdi
callq 0x3280
leaq 0x146d3(%rip), %rsi     # 0x1b5db
movl $0xd, %edx
movq %r15, %rdi
callq 0x3280
movq %r15, %rdi
movq %r14, %rsi
callq 0x3170
movq %rax, %r14
leaq 0x146ae(%rip), %rsi     # 0x1b5d8
movl $0x2, %edx
movq %rax, %rdi
callq 0x3280
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %r14, %rdi
callq 0x3280
movq %rax, %r14
leaq 0x14592(%rip), %rsi     # 0x1b4e3
movl $0x1, %edx
movq %rax, %rdi
callq 0x3280
leaq 0x14307(%rip), %rsi     # 0x1b26c
movl $0x4, %edx
movq %r14, %rdi
callq 0x3280
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %r14, %rdi
callq 0x3280
leaq 0x1455a(%rip), %rsi     # 0x1b4e3
movl $0x1, %edx
movq %rax, %rdi
callq 0x3280
jmp 0x7414
movq %r14, %rdi
callq 0xdc82
movl %eax, %r15d
leaq -0x68(%rbp), %rdi
movq %r14, %rsi
movl %eax, %edx
callq 0xdda4
addq $0x328, %r12            # imm = 0x328
leaq 0x14287(%rip), %rsi     # 0x1b249
movl $0x4, %edx
movq %r12, %rdi
callq 0x3280
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %r12, %rdi
callq 0x3280
movq %rax, %r12
leaq 0x1401c(%rip), %rsi     # 0x1b005
movl $0x1, %edx
movq %rax, %rdi
callq 0x3280
movq -0xf8(%rbp), %rsi
movq -0xf0(%rbp), %rdx
movq %r12, %rdi
callq 0x3280
movq %rax, %r12
leaq 0x144cd(%rip), %rsi     # 0x1b4e3
movl $0x1, %edx
movq %rax, %rdi
callq 0x3280
leaq 0x14216(%rip), %rsi     # 0x1b240
movl $0x5, %edx
movq %r12, %rdi
callq 0x3280
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
movq %r12, %rdi
callq 0x3280
movq %rax, %r12
leaq 0x14583(%rip), %rsi     # 0x1b5d4
movl $0x3, %edx
movq %rax, %rdi
callq 0x3280
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %r12, %rdi
callq 0x3280
movq %rax, %r12
leaq 0x141ce(%rip), %rsi     # 0x1b246
movl $0x2, %edx
movq %rax, %rdi
callq 0x3280
leaq 0x14268(%rip), %rsi     # 0x1b2f4
movl $0x4, %edx
movq %r12, %rdi
callq 0x3280
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
movq %r12, %rdi
callq 0x3280
movq %rax, %r12
leaq 0x14430(%rip), %rsi     # 0x1b4e3
movl $0x1, %edx
movq %rax, %rdi
callq 0x3280
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
movq %r12, %rdi
callq 0x3280
movq %rax, %r12
leaq 0x13f28(%rip), %rsi     # 0x1b005
movl $0x1, %edx
movq %rax, %rdi
callq 0x3280
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
movq %r12, %rdi
callq 0x3280
movq %rax, %r12
leaq 0x143df(%rip), %rsi     # 0x1b4e3
movl $0x1, %edx
movq %rax, %rdi
callq 0x3280
leaq 0x144b7(%rip), %rsi     # 0x1b5cf
movl $0x8, %edx
movq %r12, %rdi
callq 0x3280
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %r12, %rdi
callq 0x3280
movq %rax, %r12
leaq 0x14499(%rip), %rsi     # 0x1b5d8
movl $0x2, %edx
movq %rax, %rdi
callq 0x3280
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
movq %r12, %rdi
callq 0x3280
movq %rax, %r12
leaq 0x1437d(%rip), %rsi     # 0x1b4e3
movl $0x1, %edx
movq %rax, %rdi
callq 0x3280
leaq 0x140f2(%rip), %rsi     # 0x1b26c
movl $0x4, %edx
movq %r12, %rdi
callq 0x3280
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %r12, %rdi
callq 0x3280
leaq 0x14345(%rip), %rsi     # 0x1b4e3
movl $0x1, %edx
movq %rax, %rdi
callq 0x3280
jmp 0x73b5
movq %r14, %rdi
callq 0xdc82
movl %eax, %r15d
leaq -0x68(%rbp), %rdi
movq %r14, %rsi
movl %eax, %edx
callq 0xdda4
addq $0x328, %r12            # imm = 0x328
leaq 0x14069(%rip), %rsi     # 0x1b240
movl $0x5, %edx
movq %r12, %rdi
callq 0x3280
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %r12, %rdi
callq 0x3280
movq %rax, %r12
leaq 0x143e2(%rip), %rsi     # 0x1b5e0
movl $0x8, %edx
movq %rax, %rdi
callq 0x3280
movl %r13d, %esi
movq %r12, %rdi
callq 0x3170
movq %rax, %r12
leaq 0x14026(%rip), %rsi     # 0x1b246
movl $0x2, %edx
movq %rax, %rdi
callq 0x3280
leaq 0x1400c(%rip), %rsi     # 0x1b240
movl $0x5, %edx
movq %r12, %rdi
callq 0x3280
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
movq %r12, %rdi
callq 0x3280
movq %rax, %r12
leaq 0x14379(%rip), %rsi     # 0x1b5d4
movl $0x3, %edx
movq %rax, %rdi
callq 0x3280
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %r12, %rdi
callq 0x3280
movq %rax, %r12
leaq 0x13fc4(%rip), %rsi     # 0x1b246
movl $0x2, %edx
movq %rax, %rdi
callq 0x3280
leaq 0x1405e(%rip), %rsi     # 0x1b2f4
movl $0x4, %edx
movq %r12, %rdi
callq 0x3280
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
movq %r12, %rdi
callq 0x3280
movq %rax, %r12
leaq 0x14226(%rip), %rsi     # 0x1b4e3
movl $0x1, %edx
movq %rax, %rdi
callq 0x3280
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
movq %r12, %rdi
callq 0x3280
movq %rax, %r12
leaq 0x13d1e(%rip), %rsi     # 0x1b005
movl $0x1, %edx
movq %rax, %rdi
callq 0x3280
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
movq %r12, %rdi
callq 0x3280
movq %rax, %r12
leaq 0x141d5(%rip), %rsi     # 0x1b4e3
movl $0x1, %edx
movq %rax, %rdi
callq 0x3280
leaq 0x142ad(%rip), %rsi     # 0x1b5cf
movl $0x8, %edx
movq %r12, %rdi
callq 0x3280
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %r12, %rdi
callq 0x3280
movq %rax, %r12
leaq 0x1428f(%rip), %rsi     # 0x1b5d8
movl $0x2, %edx
movq %rax, %rdi
callq 0x3280
movq -0x68(%rbp), %rsi
movq -0x60(%rbp), %rdx
movq %r12, %rdi
callq 0x3280
movq %rax, %r12
leaq 0x14173(%rip), %rsi     # 0x1b4e3
movl $0x1, %edx
movq %rax, %rdi
callq 0x3280
leaq 0x13ee8(%rip), %rsi     # 0x1b26c
movl $0x4, %edx
movq %r12, %rdi
callq 0x3280
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
movq %r12, %rdi
callq 0x3280
leaq 0x1413b(%rip), %rsi     # 0x1b4e3
movl $0x1, %edx
movq %rax, %rdi
callq 0x3280
movslq %r15d, %rax
leal 0x3f(%r15), %ecx
testl %r15d, %r15d
cmovnsl %r15d, %ecx
sarl $0x6, %ecx
movslq %ecx, %rdx
shlq $0x3, %rdx
addq (%r14), %rdx
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
leaq 0x3f(%rcx), %rsi
andq %rax, %rsi
xorl %eax, %eax
cmpq %rcx, %rsi
setbe %al
movq $-0x2, %rsi
movl %r15d, %ecx
rolq %cl, %rsi
andq %rsi, -0x8(%rdx,%rax,8)
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7414
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x3230
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x742d
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3230
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x7449
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x3230
leaq -0xf8(%rbp), %rdi
callq 0x191f8
movl %ebx, %eax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x74ac
jmp 0x74ac
jmp 0x74ac
movq %rax, %rbx
movq -0xa8(%rbp), %rdi
cmpq %r15, %rdi
je 0x74cf
movq -0x98(%rbp), %rsi
jmp 0x74c7
jmp 0x74ac
jmp 0x74a7
movq %rax, %rbx
movq -0xc8(%rbp), %rdi
cmpq %r13, %rdi
je 0x74cf
movq -0xb8(%rbp), %rsi
jmp 0x74c7
jmp 0x74ac
jmp 0x74a7
movq %rax, %rbx
jmp 0x74e8
movq %rax, %rbx
jmp 0x74cf
jmp 0x74b3
movq %rax, %rbx
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x74cf
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x3230
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x74e8
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3230
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x7504
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x3230
leaq -0xf8(%rbp), %rdi
callq 0x191f8
movq %rbx, %rdi
callq 0x33f0