// File: /workspace/github_cpp_makefile_star2_O3/RuiDGPires[P]CrimLang/src/generator.cpp
// Function: gc_Tracker::parse_node(crl::Node*, std::__cxx11::basic_stringstream<char, std::char_traits<char>, std::allocator<char>>&)
void _gc_Tracker::parse_node(crl::Node * node, std::stringstream &stream){
	switch (node->type){
		case crl::Node::Type::CAS:
			this->declaration_cas(node);
			break;
		case crl::Node::Type::VAR_DECLARATION:
			this->declaration_var(node);
			break;
		case crl::Node::Type::FUNC_DECLARATION:
			this->declaration_func(node);
			break;
		case crl::Node::Type::INIT:
			this->init(node);
			break;
		case crl::Node::Type::PROGRAM:
			this->program(node);
			break;
		case crl::Node::Type::CALL:
			this->func_call(node, stream);
			break;
		case crl::Node::Type::EXPRESSION:
			this->expression(node, stream);
			break;
		case crl::Node::Type::TERM:
			this->term(node, stream);
			break;
		case crl::Node::Type::FACTOR:
			this->factor(node, stream);
			break;
		case crl::Node::Type::RETURN:
			this->return_(node);
			break;
		case crl::Node::Type::BREAK:
			this->break_(node);
			break;
		case crl::Node::Type::ASSIGN:
			this->assign(node);
			break;
		case crl::Node::Type::IF:
			this->if_(node);
			break;
		case crl::Node::Type::WHILE:
			this->while_(node);
			break;
		case crl::Node::Type::BLOCK:
			this->block(node);
			break;
		case crl::Node::Type::INC:
		case crl::Node::Type::DEC:
			this->unary(node);
			break;
		default:
			std::cout << node->type << std::endl;
			ASSERT(false, "Not implemented");
			break;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movl 0x8(%rsi), %eax
leal -0x1(%rax), %ecx
cmpl $0x16, %ecx
ja 0xb0b2
movq %rdi, %rbx
leaq 0x102c0(%rip), %rdi     # 0x1b1e4
movslq (%rdi,%rcx,4), %rcx
addq %rdi, %rcx
jmpq *%rcx
movq %rbx, %rdi
callq 0x6c7c
movslq %eax, %rcx
leal 0x3f(%rcx), %eax
testl %ecx, %ecx
cmovnsl %ecx, %eax
sarl $0x6, %eax
cltq
shlq $0x3, %rax
addq 0x500(%rbx), %rax
movabsq $-0x8000000000000000, %rdx # imm = 0x8000000000000000
leaq 0x3f(%rdx), %rsi
andq %rcx, %rsi
xorl %edi, %edi
cmpq %rdx, %rsi
setbe %dil
movq $-0x2, %rdx
rolq %cl, %rdx
andq %rdx, -0x8(%rax,%rdi,8)
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x5698
movq %rbx, %rdi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x8c5c
movq %rbx, %rdi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x94f4
movq %rbx, %rdi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x7518
movq %rbx, %rdi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x662c
movq %rbx, %rdi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xae7e
movq %rbx, %rdi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xadd4
movq %rbx, %rdi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xad52
movq %rbx, %rdi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x8d5a
movq %rbx, %rdi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xd8b4
movq %rbx, %rdi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xb9e4
movq %rbx, %rdi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xa162
movq %rbx, %rdi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xd55e
movq %rbx, %rdi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xb16a
movq %rbx, %rdi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xd1ec
movq 0x17f1f(%rip), %rdi     # 0x22fd8
movl %eax, %esi
callq 0x33e0
movq %rax, %rdi
callq 0x3110
movl $0x50, %edi
callq 0x3120
movq %rax, %rbx
leaq -0x30(%rbp), %r12
movq %r12, -0x10(%r12)
movabsq $0x6c706d6920746f4e, %rax # imm = 0x6C706D6920746F4E
movq %rax, (%r12)
movabsq $0x6465746e656d656c, %rax # imm = 0x6465746E656D656C
movq %rax, 0x7(%r12)
movq $0xf, -0x8(%r12)
movb $0x0, 0xf(%r12)
movb $0x1, %r15b
leaq -0x40(%rbp), %rcx
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x5470
xorl %r15d, %r15d
leaq 0x17c4b(%rip), %rsi     # 0x22d78
leaq -0x5b4e(%rip), %rdx     # 0x55e6
movq %rbx, %rdi
callq 0x33d0
movq %rax, %r14
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0xb154
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x3230
testb %r15b, %r15b
je 0xb161
movq %rbx, %rdi
callq 0x31a0
movq %r14, %rdi
callq 0x33f0
nop