// File: 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
subq $0x90, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
callq 0x4490
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rdi
callq 0x44c0
movq %rax, -0x18(%rbp)
leaq -0x10(%rbp), %rdi
leaq -0x18(%rbp), %rsi
callq 0x44f0
testb $0x1, %al
jne 0x554f
jmp 0x5872
leaq -0x10(%rbp), %rdi
callq 0x4520
movq (%rax), %rax
movsd 0x50(%rax), %xmm0
movsd %xmm0, -0x28(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x4520
movq (%rax), %rax
movsd 0x58(%rax), %xmm0
movsd %xmm0, -0x20(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x4520
movsd -0x28(%rbp), %xmm0
movsd -0x20(%rbp), %xmm1
movq (%rax), %rax
movsd 0x60(%rax), %xmm2
leaq 0x1baf5(%rip), %rdi     # 0x21092
movb $0x3, %al
callq 0x3060
leaq -0x10(%rbp), %rdi
callq 0x4520
movq (%rax), %rax
cmpq $0x0, 0x8(%rax)
je 0x5618
leaq -0x10(%rbp), %rdi
callq 0x4520
movq (%rax), %rax
movq 0x8(%rax), %rax
movsd 0x50(%rax), %xmm0
movsd %xmm0, -0x38(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x4520
movq (%rax), %rax
movq 0x8(%rax), %rax
movsd 0x58(%rax), %xmm0
movsd %xmm0, -0x30(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x4520
movsd -0x38(%rbp), %xmm0
movsd -0x30(%rbp), %xmm1
movq (%rax), %rax
movq 0x8(%rax), %rax
movsd 0x60(%rax), %xmm2
leaq 0x1ba93(%rip), %rdi     # 0x210a4
movb $0x3, %al
callq 0x3060
leaq -0x10(%rbp), %rdi
callq 0x4520
movq (%rax), %rax
cmpq $0x0, 0x10(%rax)
je 0x568c
leaq -0x10(%rbp), %rdi
callq 0x4520
movq (%rax), %rax
movq 0x10(%rax), %rax
movsd 0x50(%rax), %xmm0
movsd %xmm0, -0x48(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x4520
movq (%rax), %rax
movq 0x10(%rax), %rax
movsd 0x58(%rax), %xmm0
movsd %xmm0, -0x40(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x4520
movsd -0x48(%rbp), %xmm0
movsd -0x40(%rbp), %xmm1
movq (%rax), %rax
movq 0x10(%rax), %rax
movsd 0x60(%rax), %xmm2
leaq 0x1ba3b(%rip), %rdi     # 0x210c0
movb $0x3, %al
callq 0x3060
leaq -0x10(%rbp), %rdi
callq 0x4520
movq (%rax), %rax
cmpq $0x0, 0x18(%rax)
je 0x5700
leaq -0x10(%rbp), %rdi
callq 0x4520
movq (%rax), %rax
movq 0x18(%rax), %rax
movsd 0x50(%rax), %xmm0
movsd %xmm0, -0x58(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x4520
movq (%rax), %rax
movq 0x18(%rax), %rax
movsd 0x58(%rax), %xmm0
movsd %xmm0, -0x50(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x4520
movsd -0x58(%rbp), %xmm0
movsd -0x50(%rbp), %xmm1
movq (%rax), %rax
movq 0x18(%rax), %rax
movsd 0x60(%rax), %xmm2
leaq 0x1b9e3(%rip), %rdi     # 0x210dc
movb $0x3, %al
callq 0x3060
leaq -0x10(%rbp), %rdi
callq 0x4520
movq (%rax), %rax
cmpq $0x0, 0x20(%rax)
je 0x5774
leaq -0x10(%rbp), %rdi
callq 0x4520
movq (%rax), %rax
movq 0x20(%rax), %rax
movsd 0x50(%rax), %xmm0
movsd %xmm0, -0x68(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x4520
movq (%rax), %rax
movq 0x20(%rax), %rax
movsd 0x58(%rax), %xmm0
movsd %xmm0, -0x60(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x4520
movsd -0x68(%rbp), %xmm0
movsd -0x60(%rbp), %xmm1
movq (%rax), %rax
movq 0x20(%rax), %rax
movsd 0x60(%rax), %xmm2
leaq 0x1b98c(%rip), %rdi     # 0x210f9
movb $0x3, %al
callq 0x3060
leaq -0x10(%rbp), %rdi
callq 0x4520
movq (%rax), %rax
cmpq $0x0, 0x28(%rax)
je 0x57e8
leaq -0x10(%rbp), %rdi
callq 0x4520
movq (%rax), %rax
movq 0x28(%rax), %rax
movsd 0x50(%rax), %xmm0
movsd %xmm0, -0x78(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x4520
movq (%rax), %rax
movq 0x28(%rax), %rax
movsd 0x58(%rax), %xmm0
movsd %xmm0, -0x70(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x4520
movsd -0x78(%rbp), %xmm0
movsd -0x70(%rbp), %xmm1
movq (%rax), %rax
movq 0x28(%rax), %rax
movsd 0x60(%rax), %xmm2
leaq 0x1b935(%rip), %rdi     # 0x21116
movb $0x3, %al
callq 0x3060
leaq -0x10(%rbp), %rdi
callq 0x4520
movq (%rax), %rax
cmpq $0x0, 0x30(%rax)
je 0x5862
leaq -0x10(%rbp), %rdi
callq 0x4520
movq (%rax), %rax
movq 0x30(%rax), %rax
movsd 0x50(%rax), %xmm0
movsd %xmm0, -0x88(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x4520
movq (%rax), %rax
movq 0x30(%rax), %rax
movsd 0x58(%rax), %xmm0
movsd %xmm0, -0x80(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x4520
movsd -0x88(%rbp), %xmm0
movsd -0x80(%rbp), %xmm1
movq (%rax), %rax
movq 0x30(%rax), %rax
movsd 0x60(%rax), %xmm2
leaq 0x1b8d6(%rip), %rdi     # 0x21131
movb $0x3, %al
callq 0x3060
jmp 0x5864
leaq -0x10(%rbp), %rdi
callq 0x4550
jmp 0x5539
addq $0x90, %rsp
popq %rbp
retq
nopl (%rax,%rax)