// File: /workspace/github_cpp_makefile_star2_O1/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 0xb118
movq %rdi, %rbx
leaq 0x1025c(%rip), %rdi     # 0x1b1e4
movslq (%rdi,%rcx,4), %rcx
addq %rdi, %rcx
jmpq *%rcx
movq %rbx, %rdi
callq 0x6cb6
movslq %eax, %rcx
leaq 0x3f(%rcx), %rax
testq %rcx, %rcx
cmovnsq %rcx, %rax
sarq $0x6, %rax
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 0x8c94
movq %rbx, %rdi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x9538
movq %rbx, %rdi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x7550
movq %rbx, %rdi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x6662
movq %rbx, %rdi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xaee2
movq %rbx, %rdi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xae38
movq %rbx, %rdi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xadb6
movq %rbx, %rdi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x8d92
movq %rbx, %rdi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xd8c6
movq %rbx, %rdi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xba5c
movq %rbx, %rdi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xa1c6
movq %rbx, %rdi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xd572
movq %rbx, %rdi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xb1d0
movq %rbx, %rdi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0xd20a
movq 0x17eb9(%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 0x17be5(%rip), %rsi     # 0x22d78
leaq -0x5bb4(%rip), %rdx     # 0x55e6
movq %rbx, %rdi
callq 0x33d0
movq %rax, %r14
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0xb1ba
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x3230
testb %r15b, %r15b
je 0xb1c7
movq %rbx, %rdi
callq 0x31a0
movq %r14, %rdi
callq 0x33f0
nop