// File: /workspace/github_cpp_makefile_star2_O1/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
cmpq %rdi, %r15
je 0x36fc
movq %rdi, %rbx
leaq 0xdac9(%rip), %r14      # 0x1109a
leaq 0xdaf0(%rip), %r12      # 0x110c8
leaq 0xdacd(%rip), %r13      # 0x110ac
movq 0x10(%r15), %rax
movsd 0x50(%rax), %xmm0
movsd 0x58(%rax), %xmm1
movsd 0x60(%rax), %xmm2
movq %r14, %rdi
movb $0x3, %al
callq 0x2050
movq 0x10(%r15), %rax
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x3622
movsd 0x50(%rax), %xmm0
movsd 0x58(%rax), %xmm1
movsd 0x60(%rax), %xmm2
movq %r13, %rdi
movb $0x3, %al
callq 0x2050
movq 0x10(%r15), %rax
movq 0x10(%rax), %rax
testq %rax, %rax
je 0x3648
movsd 0x50(%rax), %xmm0
movsd 0x58(%rax), %xmm1
movsd 0x60(%rax), %xmm2
movq %r12, %rdi
movb $0x3, %al
callq 0x2050
movq 0x10(%r15), %rax
movq 0x18(%rax), %rax
testq %rax, %rax
je 0x3672
movsd 0x50(%rax), %xmm0
movsd 0x58(%rax), %xmm1
movsd 0x60(%rax), %xmm2
leaq 0xda79(%rip), %rdi      # 0x110e4
movb $0x3, %al
callq 0x2050
movq 0x10(%r15), %rax
movq 0x20(%rax), %rax
testq %rax, %rax
je 0x369c
movsd 0x50(%rax), %xmm0
movsd 0x58(%rax), %xmm1
movsd 0x60(%rax), %xmm2
leaq 0xda6c(%rip), %rdi      # 0x11101
movb $0x3, %al
callq 0x2050
movq 0x10(%r15), %rax
movq 0x28(%rax), %rax
testq %rax, %rax
je 0x36c6
movsd 0x50(%rax), %xmm0
movsd 0x58(%rax), %xmm1
movsd 0x60(%rax), %xmm2
leaq 0xda5f(%rip), %rdi      # 0x1111e
movb $0x3, %al
callq 0x2050
movq 0x10(%r15), %rax
movq 0x30(%rax), %rax
testq %rax, %rax
je 0x36f0
movsd 0x50(%rax), %xmm0
movsd 0x58(%rax), %xmm1
movsd 0x60(%rax), %xmm2
leaq 0xda50(%rip), %rdi      # 0x11139
movb $0x3, %al
callq 0x2050
movq (%r15), %r15
cmpq %rbx, %r15
jne 0x35df
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq