// File: /workspace/github_cpp_makefile_star2_O3/jamesliu516[P]amrdg2d/outputgrid.cpp
// Function: outputcell_new(int)
void outputcell_new(int ij)//output mesh
{
//
	ofstream fpxx;

	string proxfile1(FILE_PROX);
		
	string  str1=str0+proxfile1;
	
	ostringstream omess1;
	
	omess1 << str1<<"mesh_tn" << ij<<".plt";
	
	fpxx.open(omess1.str().c_str());

        fpxx<<"TITLE =\"EULER SOLVER\"\n"
        <<"VARIABLES = \"X\", \"Y\"\n"
        <<"ZONE N=   "<<points4out.size() << ", E=    "<< cellPoints.size()<< ", F=FEPOINT, ET=QUADRILATERAL\n";  
        
	for(vector<pointInCell>::size_type j=0;j!=points4out.size();++j)
	{
	  fpxx<<points4out[j].pt[0]<<"      "<<points4out[j].pt[1]<<"\n";
	}
	for(map<OctCell *, cellPointIndex> ::iterator ik=cellPoints.begin();ik!=cellPoints.end(); ++ik)
	{
		for(int i=0;i<4;i++)
		{
		    fpxx<<ik->second.iPoint[i]<<"   ";

		}
		fpxx<<"\n";
	}
	
/*    fpxx<<"\n\n";	
    fpxx<<"TITLE =\"Wall Points\"\n"
        <<"VARIABLES = \"X\", \"Y\"\n"
        <<"ZONE I=   "<<NPOINTCIRCLE<< ", F=POINT\n";  

    for(int ii=0; ii< NPOINTCIRCLE; ++ii) {
        fpxx<<Circle[ii].x<<"  "<<Circle[ii].y<<endl;
    }	
*/	
	
	fpxx.close();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x3d8, %rsp            # imm = 0x3D8
movl %edi, %ebx
leaq 0x60(%rsp), %rdi
callq 0x3340
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x158f1(%rip), %rsi     # 0x1d1d0
leaq 0x158ec(%rip), %rdx     # 0x1d1d2
movq %rsp, %rdi
callq 0x8b9a
leaq 0x21fab(%rip), %rsi     # 0x298a0
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
callq 0x8aaa
leaq 0x260(%rsp), %rdi
callq 0x3290
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
leaq 0x260(%rsp), %rdi
callq 0x3250
movq %rax, %r14
leaq 0x15913(%rip), %rsi     # 0x1d243
movl $0x7, %edx
movq %rax, %rdi
callq 0x3250
movq %r14, %rdi
movl %ebx, %esi
callq 0x3350
leaq 0x15885(%rip), %rsi     # 0x1d1d3
movl $0x4, %edx
movq %rax, %rdi
callq 0x3250
leaq 0x268(%rsp), %rsi
leaq 0x40(%rsp), %rdi
callq 0x32f0
movq 0x40(%rsp), %rsi
leaq 0x60(%rsp), %rdi
movl $0x10, %edx
callq 0x3050
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x799c
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x3220
leaq 0x15835(%rip), %rsi     # 0x1d1d8
leaq 0x60(%rsp), %rdi
movl $0x16, %edx
callq 0x3250
leaq 0x15836(%rip), %rsi     # 0x1d1ef
leaq 0x60(%rsp), %rdi
movl $0x15, %edx
callq 0x3250
leaq 0x15836(%rip), %rsi     # 0x1d205
leaq 0x60(%rsp), %rdi
movl $0xa, %edx
callq 0x3250
leaq 0x21d13(%rip), %r13     # 0x296f8
movq 0x8(%r13), %rsi
subq (%r13), %rsi
sarq $0x3, %rsi
movabsq $0x6db6db6db6db6db7, %rax # imm = 0x6DB6DB6DB6DB6DB7
imulq %rax, %rsi
leaq 0x60(%rsp), %rdi
callq 0x3160
movq %rax, %rbx
leaq 0x15838(%rip), %rsi     # 0x1d24b
movl $0x8, %edx
movq %rax, %rdi
callq 0x3250
leaq 0x21ca1(%rip), %rbp     # 0x296c8
movq 0x28(%rbp), %rsi
movq %rbx, %rdi
callq 0x3160
leaq 0x157de(%rip), %rsi     # 0x1d218
movl $0x1e, %edx
movq %rax, %rdi
callq 0x3250
movq (%r13), %rdi
cmpq %rdi, 0x8(%r13)
je 0x7aea
xorl %ebx, %ebx
leaq 0x1583c(%rip), %r15     # 0x1d29a
xorl %r14d, %r14d
addq %rbx, %rdi
xorl %esi, %esi
callq 0xd1c0
movsd (%rax), %xmm0
leaq 0x60(%rsp), %rdi
callq 0x3300
movq %rax, %r12
movl $0x6, %edx
movq %rax, %rdi
leaq 0x1636e(%rip), %rsi     # 0x1ddf9
callq 0x3250
movq (%r13), %rdi
addq %rbx, %rdi
movl $0x1, %esi
callq 0xd1c0
movsd (%rax), %xmm0
movq %r12, %rdi
callq 0x3300
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x3250
incq %r14
movq (%r13), %rdi
movq 0x8(%r13), %rax
subq %rdi, %rax
sarq $0x3, %rax
movabsq $0x6db6db6db6db6db7, %rcx # imm = 0x6DB6DB6DB6DB6DB7
imulq %rcx, %rax
addq $0x38, %rbx
cmpq %rax, %r14
jne 0x7a61
movq 0x18(%rbp), %rbx
addq $0x8, %rbp
cmpq %rbp, %rbx
je 0x7b55
leaq 0x60(%rsp), %r14
leaq 0x162f9(%rip), %r15     # 0x1ddfc
leaq 0x15790(%rip), %r12     # 0x1d29a
movl $0xa, %r13d
movl (%rbx,%r13,4), %esi
movq %r14, %rdi
callq 0x3350
movl $0x3, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x3250
incq %r13
cmpq $0xe, %r13
jne 0x7b10
movl $0x1, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x3250
movq %rbx, %rdi
callq 0x3180
movq %rax, %rbx
cmpq %rbp, %rax
jne 0x7b0a
leaq 0x60(%rsp), %rdi
callq 0x32a0
movq 0x1c45a(%rip), %rsi     # 0x23fc0
leaq 0x260(%rsp), %rdi
callq 0x3100
leaq 0x2d0(%rsp), %rdi
callq 0x30b0
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7b9b
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3220
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x7bb6
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3220
movq 0x1c3fb(%rip), %rax     # 0x23fb8
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x68(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x60(%rsp,%rcx)
callq 0x31d0
leaq 0x158(%rsp), %rdi
callq 0x30b0
addq $0x3d8, %rsp            # imm = 0x3D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x50(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7c34
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x3220
jmp 0x7c34
jmp 0x7c31
movq %rax, %rbx
jmp 0x7c55
movq %rax, %rbx
jmp 0x7c70
movq %rax, %rbx
jmp 0x7c8b
jmp 0x7c31
jmp 0x7c31
jmp 0x7c31
movq %rax, %rbx
movq 0x1c385(%rip), %rsi     # 0x23fc0
leaq 0x260(%rsp), %rdi
callq 0x3100
leaq 0x2d0(%rsp), %rdi
callq 0x30b0
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7c70
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x3220
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x7c8b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3220
leaq 0x60(%rsp), %rdi
callq 0x32c0
movq %rbx, %rdi
callq 0x3370