// File: /workspace/github_cpp_makefile_star2_O2/gioannides[P]Language_Processors/src/../include/ast/ast_Expressions.cpp
// Function: ShiftExpression::render_asm(std::basic_ofstream<char, std::char_traits<char>>&, Context&)
inline void ShiftExpression::render_asm(std::ofstream& file,Context& contxt) {

			if(OPERATOR==NULL && AdditiVeExpression != NULL){
				AdditiVeExpression->render_asm(file,contxt);
				//postfix_ops(contxt, file);

			}

			
			if(contxt.LocalArray && contxt.reading && contxt.function){
					if(ShiftExpressionPtr != NULL && AdditiVeExpression != NULL){
						ShiftExpressionPtr->render_asm(file,contxt);				
						AdditiVeExpression->render_asm(file,contxt);
					}
					if(contxt.ArraySize.size()>=2){
						if( OPERATOR != NULL && *OPERATOR == "<<" ){
						
							int result = contxt.ArraySize[contxt.ArraySize.size()-1] <<  contxt.ArraySize[contxt.ArraySize.size()-2];
							contxt.ArraySize.pop_back();
							contxt.ArraySize.pop_back();
							contxt.ArraySize.push_back(result);
						}
					
						else if( OPERATOR != NULL && *OPERATOR== ">>") {
							int result = contxt.ArraySize[contxt.ArraySize.size()-2] >>  contxt.ArraySize[contxt.ArraySize.size()-1];
							contxt.ArraySize.pop_back();
							contxt.ArraySize.pop_back();
							contxt.ArraySize.push_back(result);
						}
					}
			}
			else if(ShiftExpressionPtr != NULL && !contxt.reading && AdditiVeExpression != NULL && OPERATOR != NULL){ 
				ShiftExpressionPtr->render_asm(file,contxt);				
				contxt.Regs++;
				AdditiVeExpression->render_asm(file,contxt);


				if(contxt.enum_constant){
					if( OPERATOR != NULL && *OPERATOR == "<<" ){
						if(contxt.EnumOperands.size()>=2){
							int result =  contxt.EnumOperands[contxt.EnumOperands.size()-1] << contxt.EnumOperands[contxt.EnumOperands.size()-2];
							contxt.EnumOperands.pop_back();
							contxt.EnumOperands.pop_back();
							contxt.EnumOperands.push_back(result);
						}
						
					}
					else if(OPERATOR != NULL && *OPERATOR == ">>"){
						if(contxt.EnumOperands.size()>=2){
							int result =  contxt.EnumOperands[contxt.EnumOperands.size()-2] >> contxt.EnumOperands[contxt.EnumOperands.size()-1];
							contxt.EnumOperands.pop_back();
							contxt.EnumOperands.pop_back();
							contxt.EnumOperands.push_back(result);
						}
					}
				}
								
				if((!contxt.function  && !contxt.sizeof_ && !contxt.enum_constant)){
					//postfix_ops(contxt, file);
					if( OPERATOR != NULL && *OPERATOR == "<<" ){
						contxt.eval[contxt.Regs] = contxt.eval[contxt.Regs] << contxt.eval[contxt.Regs+1];
						contxt.eval[contxt.Regs+1]=0;
					}
					else if(OPERATOR != NULL && *OPERATOR == ">>"){
						contxt.eval[contxt.Regs] = contxt.eval[contxt.Regs] >> contxt.eval[contxt.Regs+1];
						contxt.eval[contxt.Regs+1]=0;
					}
				}
				if (contxt.function  && !contxt.sizeof_ && !contxt.enum_constant){
					
					typePromotion(contxt.Regs,contxt.Regs+1,file,contxt);
					if( OPERATOR != NULL && *OPERATOR == "<<" ){
						file << std::endl << "\tsllv\t$" << contxt.Regs << ", $" << contxt.Regs << ", $" << contxt.Regs+1;
						contxt.regType[contxt.Regs]='i';
						contxt.regType[contxt.Regs+1]='i';
					}
					else if(  OPERATOR != NULL && *OPERATOR == ">>" ){
	
						if(contxt.regType[contxt.Regs] == 'u' || contxt.regType[contxt.Regs+1] == 'u'){
							file << std::endl << "\tsrlv\t$" << contxt.Regs << ", $" << contxt.Regs << ", $" << contxt.Regs+1;
							contxt.regType[contxt.Regs]='u';
							contxt.regType[contxt.Regs+1]='u';
						}
						else{
							file << std::endl << "\tsrav\t$" << contxt.Regs << ", $" << contxt.Regs << ", $" << contxt.Regs+1;
							contxt.regType[contxt.Regs]='i';
							contxt.regType[contxt.Regs+1]='i';
						}
					}
					
				}
				contxt.Regs--;
			}
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
cmpq $0x0, 0x10(%rdi)
jne 0x11d8b
movq 0x8(%r15), %rdi
testq %rdi, %rdi
je 0x11d8b
movq %r14, %rsi
movq %rbx, %rdx
callq 0x12166
cmpb $0x1, 0x74(%rbx)
jne 0x11e23
cmpb $0x1, 0x21b(%rbx)
jne 0x11e23
cmpb $0x1, 0x218(%rbx)
jne 0x11e23
movq 0x18(%r15), %rdi
testq %rdi, %rdi
je 0x11dd5
cmpq $0x0, 0x8(%r15)
je 0x11dd5
movq %r14, %rsi
movq %rbx, %rdx
callq 0x11d60
movq 0x8(%r15), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x12166
movq 0x80(%rbx), %rax
subq 0x78(%rbx), %rax
cmpq $0x5, %rax
jb 0x12132
movq 0x10(%r15), %rdi
testq %rdi, %rdi
je 0x12132
leaq 0x78(%rbx), %r14
leaq 0x1ba18(%rip), %rsi     # 0x2d81a
callq 0x820e
testb %al, %al
je 0x11f85
movq 0x80(%rbx), %rax
movl -0x4(%rax), %edx
movb -0x8(%rax), %cl
shll %cl, %edx
jmp 0x11fb5
movq 0x18(%r15), %rdi
testq %rdi, %rdi
je 0x12132
cmpb $0x0, 0x21b(%rbx)
jne 0x12132
cmpq $0x0, 0x8(%r15)
je 0x12132
cmpq $0x0, 0x10(%r15)
je 0x12132
movq %r14, %rsi
movq %rbx, %rdx
callq 0x11d60
incl 0x310(%rbx)
movq 0x8(%r15), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x12166
cmpb $0x1, 0x14d(%rbx)
jne 0x11f2a
movq 0x10(%r15), %rdi
testq %rdi, %rdi
je 0x11f2a
leaq 0x1b986(%rip), %rsi     # 0x2d81a
callq 0x820e
testb %al, %al
je 0x11ecc
movq 0x150(%rbx), %rcx
movq 0x158(%rbx), %rax
movq %rax, %rdx
subq %rcx, %rdx
cmpq $0x5, %rdx
jb 0x11f2a
leaq 0x150(%rbx), %rdi
movl -0x4(%rcx,%rdx), %r8d
movb -0x8(%rcx,%rdx), %cl
shll %cl, %r8d
jmp 0x11f12
movq 0x10(%r15), %rdi
testq %rdi, %rdi
je 0x11f2a
leaq 0x1b941(%rip), %rsi     # 0x2d81d
callq 0x820e
testb %al, %al
je 0x11f2a
movq 0x150(%rbx), %rcx
movq 0x158(%rbx), %rax
movq %rax, %rdx
subq %rcx, %rdx
cmpq $0x5, %rdx
jb 0x11f2a
leaq 0x150(%rbx), %rdi
movl -0x8(%rcx,%rdx), %r8d
movb -0x4(%rcx,%rdx), %cl
sarl %cl, %r8d
leaq 0x4(%rsp), %rsi
movl %r8d, (%rsi)
addq $-0x8, %rax
movq %rax, 0x158(%rbx)
callq 0xfa9e
cmpb $0x0, 0x218(%rbx)
jne 0x12011
cmpb $0x0, 0x1f8(%rbx)
jne 0x12011
cmpb $0x0, 0x14d(%rbx)
jne 0x12011
movq 0x10(%r15), %rdi
testq %rdi, %rdi
je 0x12011
leaq 0x1b8b5(%rip), %rsi     # 0x2d81a
callq 0x820e
testb %al, %al
je 0x11fd4
movslq 0x310(%rbx), %rax
movb 0x5fc(%rbx,%rax,4), %cl
shll %cl, 0x5f8(%rbx,%rax,4)
jmp 0x12002
movq 0x10(%r15), %rdi
testq %rdi, %rdi
je 0x12132
leaq 0x1b884(%rip), %rsi     # 0x2d81d
callq 0x820e
testb %al, %al
je 0x12132
movq 0x80(%rbx), %rax
movl -0x8(%rax), %edx
movb -0x4(%rax), %cl
sarl %cl, %edx
leaq 0x4(%rsp), %rsi
movl %edx, (%rsi)
addq $-0x8, %rax
movq %rax, 0x80(%rbx)
movq %r14, %rdi
callq 0xfa9e
jmp 0x12132
movq 0x10(%r15), %rdi
testq %rdi, %rdi
je 0x12011
leaq 0x1b839(%rip), %rsi     # 0x2d81d
callq 0x820e
testb %al, %al
je 0x12011
movslq 0x310(%rbx), %rax
movb 0x5fc(%rbx,%rax,4), %cl
sarl %cl, 0x5f8(%rbx,%rax,4)
movslq 0x310(%rbx), %rax
andl $0x0, 0x5fc(%rbx,%rax,4)
cmpb $0x1, 0x218(%rbx)
jne 0x1212c
cmpb $0x0, 0x1f8(%rbx)
jne 0x1212c
cmpb $0x0, 0x14d(%rbx)
jne 0x1212c
movl 0x310(%rbx), %edi
leal 0x1(%rdi), %esi
movq %r14, %rdx
movq %rbx, %rcx
callq 0xfb3c
movq 0x10(%r15), %rdi
testq %rdi, %rdi
je 0x1212c
leaq 0x1b7ba(%rip), %rsi     # 0x2d81a
callq 0x820e
testb %al, %al
je 0x120f3
movb $0x69, %bpl
leaq 0x1b7a9(%rip), %r15     # 0x2d820
movq %r14, %rdi
callq 0x7190
movq %rax, %rdi
movq %r15, %rsi
callq 0x7310
movl 0x310(%rbx), %esi
movq %rax, %rdi
callq 0x7590
leaq 0x1b6fc(%rip), %r14     # 0x2d79b
movq %rax, %rdi
movq %r14, %rsi
callq 0x7310
movl 0x310(%rbx), %esi
movq %rax, %rdi
callq 0x7590
movq %rax, %rdi
movq %r14, %rsi
callq 0x7310
movl 0x310(%rbx), %esi
incl %esi
movq %rax, %rdi
callq 0x7590
movslq 0x310(%rbx), %rax
movb %bpl, 0x341(%rbx,%rax)
movslq 0x310(%rbx), %rax
movb %bpl, 0x342(%rax,%rbx)
jmp 0x1212c
movq 0x10(%r15), %rdi
testq %rdi, %rdi
je 0x1212c
leaq 0x1b71a(%rip), %rsi     # 0x2d81d
callq 0x820e
testb %al, %al
je 0x1212c
movslq 0x310(%rbx), %rax
cmpb $0x75, 0x341(%rbx,%rax)
jne 0x1213d
movb $0x75, %bpl
leaq 0x1b701(%rip), %r15     # 0x2d828
jmp 0x12077
decl 0x310(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
cmpb $0x75, 0x342(%rbx,%rax)
leaq 0x1b6dc(%rip), %rax     # 0x2d828
leaq 0x1b6dd(%rip), %r15     # 0x2d830
cmoveq %rax, %r15
pushq $0x75
popq %rax
pushq $0x69
popq %rbp
cmovel %eax, %ebp
jmp 0x12077
nop