// File: /workspace/github_cpp_makefile_star2_O1/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 0x4d4a
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 0x6d3f
cmpl $0x13, %eax
jne 0x6d5c
leaq 0x148ac(%rip), %rcx     # 0x1b5e9
jmp 0x6d46
leaq 0x148a7(%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 0xdc9a
movl %eax, %ebx
leaq -0x48(%rbp), %rdi
movq %r14, %rsi
movl %eax, %edx
callq 0xdde4
leaq -0xb8(%rbp), %r13
movq %r13, -0x10(%r13)
movq -0xf8(%rbp), %rsi
movq -0xf0(%rbp), %rdx
addq %rsi, %rdx
leaq -0xc8(%rbp), %rdi
callq 0x4d4a
leaq 0x530(%r12), %rdi
leaq -0xc8(%rbp), %rsi
callq 0xdea0
movl %eax, %r15d
movq -0xc8(%rbp), %rdi
cmpq %r13, %rdi
je 0x6dd6
movq -0xb8(%rbp), %rsi
incq %rsi
callq 0x3230
testb %r15b, %r15b
je 0x6fd5
leaq -0x98(%rbp), %r15
movq %r15, -0x10(%r15)
movq -0xf8(%rbp), %rsi
movq -0xf0(%rbp), %rdx
addq %rsi, %rdx
leaq -0xa8(%rbp), %rdi
callq 0x4d4a
leaq 0x560(%r12), %rdi
leaq -0xa8(%rbp), %rsi
callq 0xe94c
movq (%rax), %rax
movq 0x10(%rax), %r13
movq -0xa8(%rbp), %rdi
cmpq %r15, %rdi
je 0x6e3d
movq -0x98(%rbp), %rsi
incq %rsi
callq 0x3230
btq $0x20, %r13
jb 0x71ea
addq $0x328, %r12            # imm = 0x328
leaq 0x143ea(%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 0x14763(%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 0x143a4(%rip), %rsi     # 0x1b246
movl $0x2, %edx
movq %rax, %rdi
callq 0x3280
leaq 0x1443e(%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 0x14606(%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 0x140fe(%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 0x145b5(%rip), %rsi     # 0x1b4e3
movl $0x1, %edx
movq %rax, %rdi
callq 0x3280
leaq 0x14699(%rip), %rsi     # 0x1b5db
movl $0xd, %edx
movq %r15, %rdi
callq 0x3280
movq %r15, %rdi
movq %r14, %rsi
callq 0x3170
movq %rax, %r14
leaq 0x14674(%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 0x14558(%rip), %rsi     # 0x1b4e3
movl $0x1, %edx
movq %rax, %rdi
callq 0x3280
leaq 0x142cd(%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 0x14520(%rip), %rsi     # 0x1b4e3
movl $0x1, %edx
movq %rax, %rdi
callq 0x3280
jmp 0x744c
movq %r14, %rdi
callq 0xdc9a
movl %eax, %r15d
leaq -0x68(%rbp), %rdi
movq %r14, %rsi
movl %eax, %edx
callq 0xdde4
addq $0x328, %r12            # imm = 0x328
leaq 0x1424d(%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 0x13fe2(%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 0x14493(%rip), %rsi     # 0x1b4e3
movl $0x1, %edx
movq %rax, %rdi
callq 0x3280
leaq 0x141dc(%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 0x14549(%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 0x14194(%rip), %rsi     # 0x1b246
movl $0x2, %edx
movq %rax, %rdi
callq 0x3280
leaq 0x1422e(%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 0x143f6(%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 0x13eee(%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 0x143a5(%rip), %rsi     # 0x1b4e3
movl $0x1, %edx
movq %rax, %rdi
callq 0x3280
leaq 0x1447d(%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 0x1445f(%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 0x14343(%rip), %rsi     # 0x1b4e3
movl $0x1, %edx
movq %rax, %rdi
callq 0x3280
leaq 0x140b8(%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 0x1430b(%rip), %rsi     # 0x1b4e3
movl $0x1, %edx
movq %rax, %rdi
callq 0x3280
jmp 0x73ef
movq %r14, %rdi
callq 0xdc9a
movl %eax, %r15d
leaq -0x68(%rbp), %rdi
movq %r14, %rsi
movl %eax, %edx
callq 0xdde4
addq $0x328, %r12            # imm = 0x328
leaq 0x1402f(%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 0x143a8(%rip), %rsi     # 0x1b5e0
movl $0x8, %edx
movq %rax, %rdi
callq 0x3280
movl %r13d, %esi
movq %r12, %rdi
callq 0x3170
movq %rax, %r12
leaq 0x13fec(%rip), %rsi     # 0x1b246
movl $0x2, %edx
movq %rax, %rdi
callq 0x3280
leaq 0x13fd2(%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 0x1433f(%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 0x13f8a(%rip), %rsi     # 0x1b246
movl $0x2, %edx
movq %rax, %rdi
callq 0x3280
leaq 0x14024(%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 0x141ec(%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 0x13ce4(%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 0x1419b(%rip), %rsi     # 0x1b4e3
movl $0x1, %edx
movq %rax, %rdi
callq 0x3280
leaq 0x14273(%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 0x14255(%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 0x14139(%rip), %rsi     # 0x1b4e3
movl $0x1, %edx
movq %rax, %rdi
callq 0x3280
leaq 0x13eae(%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 0x14101(%rip), %rsi     # 0x1b4e3
movl $0x1, %edx
movq %rax, %rdi
callq 0x3280
movslq %r15d, %rax
leaq 0x3f(%rax), %rdx
testq %rax, %rax
cmovnsq %rax, %rdx
sarq $0x6, %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 0x744c
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x3230
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7465
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3230
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x7481
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x3230
leaq -0xf8(%rbp), %rdi
callq 0x192b0
movl %ebx, %eax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x74e4
jmp 0x74e4
jmp 0x74e4
movq %rax, %rbx
movq -0xa8(%rbp), %rdi
cmpq %r15, %rdi
je 0x7507
movq -0x98(%rbp), %rsi
jmp 0x74ff
jmp 0x74e4
jmp 0x74df
movq %rax, %rbx
movq -0xc8(%rbp), %rdi
cmpq %r13, %rdi
je 0x7507
movq -0xb8(%rbp), %rsi
jmp 0x74ff
jmp 0x74e4
jmp 0x74df
movq %rax, %rbx
jmp 0x7520
movq %rax, %rbx
jmp 0x7507
jmp 0x74eb
movq %rax, %rbx
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7507
movq -0x58(%rbp), %rsi
incq %rsi
callq 0x3230
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7520
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3230
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x753c
movq -0x78(%rbp), %rsi
incq %rsi
callq 0x3230
leaq -0xf8(%rbp), %rdi
callq 0x192b0
movq %rbx, %rdi
callq 0x33f0