// File: /workspace/github_cpp_makefile_star2_O2/suhasjains[P]AMR-Solver/src/octreegrid.cpp
// Function: myOctree::print_neighbour_information(std::__cxx11::list<myOctree::Octree*, std::allocator<myOctree::Octree*>>&)
void print_neighbour_information(std::list<Octree*>& nodes) {

	for (std::list<Octree*>::iterator i = nodes.begin(), end = nodes.end(); i != end; ++i) {
	
		printf("I am at %g %g %g\n",(*i)->x_centre,(*i)->y_centre,(*i)->z_centre);
	//	if((*i)->east!=NULL)	printf("East neighbour at %g %g %g\n",(*i)->east->x_centre,(*i)->east->y_centre,(*i)->east->z_centre);		
	//	if((*i)->west!=NULL)	printf("West neighbour at %g %g %g\n",(*i)->west->x_centre,(*i)->west->y_centre,(*i)->west->z_centre);		
	//	if((*i)->north!=NULL)	printf("North neighbour at %g %g %g\n",(*i)->north->x_centre,(*i)->north->y_centre,(*i)->north->z_centre);		
	//	if((*i)->south!=NULL)	printf("South neighbour at %g %g %g\n",(*i)->south->x_centre,(*i)->south->y_centre,(*i)->south->z_centre);		
	//	if((*i)->top!=NULL)	printf("Top neighbour at %g %g %g\n",(*i)->top->x_centre,(*i)->top->y_centre,(*i)->top->z_centre);		
	//	if((*i)->bottom!=NULL)	printf("Bottom neighbour at %g %g %g\n",(*i)->bottom->x_centre,(*i)->bottom->y_centre,(*i)->bottom->z_centre);		
		if((*i)->neighbour[XDIR][RIGHT]!=NULL)	printf("East neighbour at %g %g %g\n",(*i)->neighbour[XDIR][RIGHT]->x_centre,(*i)->neighbour[XDIR][RIGHT]->y_centre,(*i)->neighbour[XDIR][RIGHT]->z_centre);		
		if((*i)->neighbour[XDIR][LEFT]!=NULL)	printf("West neighbour at %g %g %g\n",(*i)->neighbour[XDIR][LEFT]->x_centre,(*i)->neighbour[XDIR][LEFT]->y_centre,(*i)->neighbour[XDIR][LEFT]->z_centre);		
		if((*i)->neighbour[YDIR][RIGHT]!=NULL)	printf("North neighbour at %g %g %g\n",(*i)->neighbour[YDIR][RIGHT]->x_centre,(*i)->neighbour[YDIR][RIGHT]->y_centre,(*i)->neighbour[YDIR][RIGHT]->z_centre);		
		if((*i)->neighbour[YDIR][LEFT]!=NULL)	printf("South neighbour at %g %g %g\n",(*i)->neighbour[YDIR][LEFT]->x_centre,(*i)->neighbour[YDIR][LEFT]->y_centre,(*i)->neighbour[YDIR][LEFT]->z_centre);		
		if((*i)->neighbour[ZDIR][RIGHT]!=NULL)	printf("Top neighbour at %g %g %g\n",(*i)->neighbour[ZDIR][RIGHT]->x_centre,(*i)->neighbour[ZDIR][RIGHT]->y_centre,(*i)->neighbour[ZDIR][RIGHT]->z_centre);		
		if((*i)->neighbour[ZDIR][LEFT]!=NULL)	printf("Bottom neighbour at %g %g %g\n",(*i)->neighbour[ZDIR][LEFT]->x_centre,(*i)->neighbour[ZDIR][LEFT]->y_centre,(*i)->neighbour[ZDIR][LEFT]->z_centre);		

	}

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r15
leaq 0xbc8f(%rip), %r14      # 0xf09a
leaq 0xbcb6(%rip), %r12      # 0xf0c8
leaq 0xbc93(%rip), %r13      # 0xf0ac
movq %rdi, %rbx
movq (%rbx), %rbx
cmpq %r15, %rbx
je 0x3542
movq 0x10(%rbx), %rax
movsd 0x50(%rax), %xmm0
movsd 0x58(%rax), %xmm1
movsd 0x60(%rax), %xmm2
movq %r14, %rdi
movb $0x3, %al
callq 0x2040
movq 0x10(%rbx), %rax
movq 0x8(%rax), %rcx
testq %rcx, %rcx
je 0x346f
movsd 0x50(%rcx), %xmm0
movsd 0x58(%rcx), %xmm1
movsd 0x60(%rcx), %xmm2
movq %r13, %rdi
movb $0x3, %al
callq 0x2040
movq 0x10(%rbx), %rax
movq 0x10(%rax), %rcx
testq %rcx, %rcx
je 0x3495
movsd 0x50(%rcx), %xmm0
movsd 0x58(%rcx), %xmm1
movsd 0x60(%rcx), %xmm2
movq %r12, %rdi
movb $0x3, %al
callq 0x2040
movq 0x10(%rbx), %rax
movq 0x18(%rax), %rcx
testq %rcx, %rcx
je 0x34bf
movsd 0x50(%rcx), %xmm0
movsd 0x58(%rcx), %xmm1
movsd 0x60(%rcx), %xmm2
leaq 0xbc30(%rip), %rdi      # 0xf0e4
movb $0x3, %al
callq 0x2040
movq 0x10(%rbx), %rax
movq 0x20(%rax), %rcx
testq %rcx, %rcx
je 0x34e9
movsd 0x50(%rcx), %xmm0
movsd 0x58(%rcx), %xmm1
movsd 0x60(%rcx), %xmm2
leaq 0xbc23(%rip), %rdi      # 0xf101
movb $0x3, %al
callq 0x2040
movq 0x10(%rbx), %rax
movq 0x28(%rax), %rcx
testq %rcx, %rcx
je 0x3513
movsd 0x50(%rcx), %xmm0
movsd 0x58(%rcx), %xmm1
movsd 0x60(%rcx), %xmm2
leaq 0xbc16(%rip), %rdi      # 0xf11e
movb $0x3, %al
callq 0x2040
movq 0x10(%rbx), %rax
movq 0x30(%rax), %rax
testq %rax, %rax
je 0x341c
movsd 0x50(%rax), %xmm0
movsd 0x58(%rax), %xmm1
movsd 0x60(%rax), %xmm2
leaq 0xbc03(%rip), %rdi      # 0xf139
movb $0x3, %al
callq 0x2040
jmp 0x341c
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq