// File: gioannides[P]Language_Processors/src/../include/ast/ast_node.hpp
// Function: Enumerator::render_asm(std::basic_ofstream<char, std::char_traits<char>>&, Context&)
void render_asm(std::ofstream& file, Context& contxt){
			if(ConstantExpressionPtr != NULL && !contxt.reading){
				
				
				contxt.enum_constant = true;
				ConstantExpressionPtr->render_asm(file,contxt);
				contxt.enum_constant = false;
				if(contxt.EnumOperands.size())
				{
					contxt.EnumCounter = contxt.EnumOperands[contxt.EnumOperands.size()-1];
					contxt.EnumTemp.value = contxt.EnumOperands[contxt.EnumOperands.size()-1];
					contxt.EnumTemp.IDENTIFIER = *IDENTIFIER;
					contxt.Enum.push_back(contxt.EnumTemp);	
					
					//std::cout << "\n" << contxt.EnumCounter << "\n";
					//std::cout << contxt.EnumTemp.value << " " <<  contxt.EnumTemp.IDENTIFIER   << std::endl;
					for (int i=0; i<=contxt.EnumOperands.size(); i++){
						contxt.EnumOperands[i]=0;
					}
				}				
			}
			else if( ConstantExpressionPtr == NULL && !contxt.reading)
			{	

				contxt.EnumTemp.IDENTIFIER = *IDENTIFIER;
				contxt.EnumTemp.value = contxt.EnumCounter;
				//std::cout << contxt.EnumCounter << std::endl;
				//contxt.EnumCounter++;
				contxt.Enum.push_back(contxt.EnumTemp);	
			}
			//contxt.EnumTemp.EnumList.push_back(contxt.EnumValuesTemp);			
		}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
cmpq $0x0, 0x10(%rax)
je 0x119a3
movq -0x18(%rbp), %rax
testb $0x1, 0x21b(%rax)
jne 0x119a3
movq -0x28(%rbp), %rax
movq -0x18(%rbp), %rcx
movb $0x1, 0x14d(%rcx)
movq 0x10(%rax), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x11a20
movq -0x18(%rbp), %rax
movb $0x0, 0x14d(%rax)
movq -0x18(%rbp), %rdi
addq $0x150, %rdi            # imm = 0x150
callq 0x11a60
cmpq $0x0, %rax
je 0x119a1
movq -0x18(%rbp), %rax
addq $0x150, %rax            # imm = 0x150
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rdi
addq $0x150, %rdi            # imm = 0x150
callq 0x11a60
movq -0x38(%rbp), %rdi
movq %rax, %rsi
subq $0x1, %rsi
callq 0x11a80
movl (%rax), %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x148(%rax)
movq -0x18(%rbp), %rax
addq $0x150, %rax            # imm = 0x150
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rdi
addq $0x150, %rdi            # imm = 0x150
callq 0x11a60
movq -0x30(%rbp), %rdi
movq %rax, %rsi
subq $0x1, %rsi
callq 0x11a80
movq %rax, %rcx
movq -0x28(%rbp), %rax
cvtsi2sdl (%rcx), %xmm0
movq -0x18(%rbp), %rcx
movsd %xmm0, 0x118(%rcx)
movq 0x8(%rax), %rsi
movq -0x18(%rbp), %rdi
addq $0xd8, %rdi
addq $0x20, %rdi
callq 0x8060
movq -0x18(%rbp), %rdi
addq $0xc0, %rdi
movq -0x18(%rbp), %rsi
addq $0xd8, %rsi
callq 0x11aa0
movl $0x0, -0x1c(%rbp)
movslq -0x1c(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rdi
addq $0x150, %rdi            # imm = 0x150
callq 0x11a60
movq %rax, %rcx
movq -0x40(%rbp), %rax
cmpq %rcx, %rax
ja 0x1199f
movq -0x18(%rbp), %rdi
addq $0x150, %rdi            # imm = 0x150
movslq -0x1c(%rbp), %rsi
callq 0x11a80
movl $0x0, (%rax)
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x11956
jmp 0x119a1
jmp 0x11a0c
movq -0x28(%rbp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x11a0a
movq -0x18(%rbp), %rax
testb $0x1, 0x21b(%rax)
jne 0x11a0a
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rsi
movq -0x18(%rbp), %rdi
addq $0xd8, %rdi
addq $0x20, %rdi
callq 0x8060
movq -0x18(%rbp), %rax
cvtsi2sdl 0x148(%rax), %xmm0
movq -0x18(%rbp), %rax
movsd %xmm0, 0x118(%rax)
movq -0x18(%rbp), %rdi
addq $0xc0, %rdi
movq -0x18(%rbp), %rsi
addq $0xd8, %rsi
callq 0x11aa0
jmp 0x11a0c
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)