// File: Luthaf[P]zeopp/psd.cc
// Function: printFileCoords_Radii(std::ostream&, std::vector<std::pair<Point, double>, std::allocator<std::pair<Point, double>>>&, std::vector<std::pair<Point, double>, std::allocator<std::pair<Point, double>>>&, std::vector<double, std::allocator<double>>&, std::vector<double, std::allocator<double>>&, bool, double, double)
void printFileCoords_Radii(ostream& outfile, vector<pair <Point, double> > &pt_node_rad, vector<pair <Point, double> > &pt_ghost_rad, vector <double> &distanceBetweenNodeSpheres, vector <double> &distanceBetweenGhostSpheres, bool overlaps, double startRad, double endRad){
 outfile <<(pt_node_rad.size() + pt_ghost_rad.size())<<"\n\n";
  for (int i=0; i<pt_node_rad.size(); i++){
		if (overlaps){
			if (pt_node_rad.at(i).second>=startRad && pt_node_rad.at(i).second <= endRad) outfile <<"3\t";
			if (pt_node_rad.at(i).second<startRad) outfile <<"2\t";
		  if (pt_node_rad.at(i).second>endRad) outfile <<"1\t"; 
		}
		else outfile <<"1\t";
		outfile << pt_node_rad.at(i).first[0]<< "\t"<< pt_node_rad.at(i).first[1]<< "\t" << pt_node_rad.at(i).first[2]<<"\t"<<pt_node_rad.at(i).second;
		if (overlaps) outfile <<"\t"<< distanceBetweenNodeSpheres.at(i);
		outfile<<"\n";
  }
 for (int i=0; i<pt_ghost_rad.size(); i++){
	if (overlaps){
		if (pt_ghost_rad.at(i).second>=startRad && pt_ghost_rad.at(i).second <= endRad) outfile <<"3\t";
		if (pt_ghost_rad.at(i).second<startRad) outfile <<"2\t";
		if (pt_ghost_rad.at(i).second>endRad) outfile <<"1\t";
	}
	else outfile <<"0\t";
	outfile<< pt_ghost_rad.at(i).first[0]<< "\t"<< pt_ghost_rad.at(i).first[1]<< "\t" << pt_ghost_rad.at(i).first[2]<<"\t"<<pt_ghost_rad.at(i).second;
	if (overlaps) outfile <<"\t"<< distanceBetweenGhostSpheres.at(i);
	outfile<<"\n";
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movb %r9b, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
andb $0x1, %al
movb %al, -0x29(%rbp)
movsd %xmm0, -0x38(%rbp)
movsd %xmm1, -0x40(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x10(%rbp), %rdi
callq 0xf7030
movq %rax, -0x58(%rbp)
movq -0x18(%rbp), %rdi
callq 0xf7030
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdi
addq %rax, %rsi
callq 0x5160
movq %rax, %rdi
leaq 0x106e55(%rip), %rsi    # 0x1fbc7e
callq 0x5540
movl $0x0, -0x44(%rbp)
movslq -0x44(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x10(%rbp), %rdi
callq 0xf7030
movq %rax, %rcx
movq -0x60(%rbp), %rax
cmpq %rcx, %rax
jae 0xf5034
testb $0x1, -0x29(%rbp)
je 0xf4efe
movq -0x10(%rbp), %rdi
movslq -0x44(%rbp), %rsi
callq 0xf7050
movsd 0x18(%rax), %xmm0
ucomisd -0x38(%rbp), %xmm0
jb 0xf4ea6
movq -0x10(%rbp), %rdi
movslq -0x44(%rbp), %rsi
callq 0xf7050
movsd 0x18(%rax), %xmm1
movsd -0x40(%rbp), %xmm0
ucomisd %xmm1, %xmm0
jb 0xf4ea6
movq -0x8(%rbp), %rdi
leaq 0x107a62(%rip), %rsi    # 0x1fc903
callq 0x5540
movq -0x10(%rbp), %rdi
movslq -0x44(%rbp), %rsi
callq 0xf7050
movsd 0x18(%rax), %xmm1
movsd -0x38(%rbp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0xf4ed3
movq -0x8(%rbp), %rdi
leaq 0x107a38(%rip), %rsi    # 0x1fc906
callq 0x5540
movq -0x10(%rbp), %rdi
movslq -0x44(%rbp), %rsi
callq 0xf7050
movsd 0x18(%rax), %xmm0
ucomisd -0x40(%rbp), %xmm0
jbe 0xf4efc
movq -0x8(%rbp), %rdi
leaq 0x107a12(%rip), %rsi    # 0x1fc909
callq 0x5540
jmp 0xf4f0e
movq -0x8(%rbp), %rdi
leaq 0x107a00(%rip), %rsi    # 0x1fc909
callq 0x5540
movq -0x8(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x10(%rbp), %rdi
movslq -0x44(%rbp), %rsi
callq 0xf7050
movq %rax, %rdi
xorl %esi, %esi
callq 0xe9d70
movq -0x80(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0xfe687(%rip), %rsi     # 0x1f35cb
callq 0x5540
movq %rax, -0x78(%rbp)
movq -0x10(%rbp), %rdi
movslq -0x44(%rbp), %rsi
callq 0xf7050
movq %rax, %rdi
movl $0x1, %esi
callq 0xe9d70
movq -0x78(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0xfe64d(%rip), %rsi     # 0x1f35cb
callq 0x5540
movq %rax, -0x70(%rbp)
movq -0x10(%rbp), %rdi
movslq -0x44(%rbp), %rsi
callq 0xf7050
movq %rax, %rdi
movl $0x2, %esi
callq 0xe9d70
movq -0x70(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0xfe613(%rip), %rsi     # 0x1f35cb
callq 0x5540
movq %rax, -0x68(%rbp)
movq -0x10(%rbp), %rdi
movslq -0x44(%rbp), %rsi
callq 0xf7050
movq -0x68(%rbp), %rdi
movsd 0x18(%rax), %xmm0
callq 0x5980
testb $0x1, -0x29(%rbp)
je 0xf5016
movq -0x8(%rbp), %rdi
leaq 0xfe5de(%rip), %rsi     # 0x1f35cb
callq 0x5540
movq %rax, -0x88(%rbp)
movq -0x20(%rbp), %rdi
movslq -0x44(%rbp), %rsi
callq 0xfc80
movq -0x88(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x5980
movq -0x8(%rbp), %rdi
leaq 0x104604(%rip), %rsi    # 0x1f9625
callq 0x5540
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0xf4e35
movl $0x0, -0x48(%rbp)
movslq -0x48(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x18(%rbp), %rdi
callq 0xf7030
movq %rax, %rcx
movq -0x90(%rbp), %rax
cmpq %rcx, %rax
jae 0xf5258
testb $0x1, -0x29(%rbp)
je 0xf510a
movq -0x18(%rbp), %rdi
movslq -0x48(%rbp), %rsi
callq 0xf7050
movsd 0x18(%rax), %xmm0
ucomisd -0x38(%rbp), %xmm0
jb 0xf50b2
movq -0x18(%rbp), %rdi
movslq -0x48(%rbp), %rsi
callq 0xf7050
movsd 0x18(%rax), %xmm1
movsd -0x40(%rbp), %xmm0
ucomisd %xmm1, %xmm0
jb 0xf50b2
movq -0x8(%rbp), %rdi
leaq 0x107856(%rip), %rsi    # 0x1fc903
callq 0x5540
movq -0x18(%rbp), %rdi
movslq -0x48(%rbp), %rsi
callq 0xf7050
movsd 0x18(%rax), %xmm1
movsd -0x38(%rbp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0xf50df
movq -0x8(%rbp), %rdi
leaq 0x10782c(%rip), %rsi    # 0x1fc906
callq 0x5540
movq -0x18(%rbp), %rdi
movslq -0x48(%rbp), %rsi
callq 0xf7050
movsd 0x18(%rax), %xmm0
ucomisd -0x40(%rbp), %xmm0
jbe 0xf5108
movq -0x8(%rbp), %rdi
leaq 0x107806(%rip), %rsi    # 0x1fc909
callq 0x5540
jmp 0xf511a
movq -0x8(%rbp), %rdi
leaq 0x1077f7(%rip), %rsi    # 0x1fc90c
callq 0x5540
movq -0x8(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0x18(%rbp), %rdi
movslq -0x48(%rbp), %rsi
callq 0xf7050
movq %rax, %rdi
xorl %esi, %esi
callq 0xe9d70
movq -0xb0(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0xfe475(%rip), %rsi     # 0x1f35cb
callq 0x5540
movq %rax, -0xa8(%rbp)
movq -0x18(%rbp), %rdi
movslq -0x48(%rbp), %rsi
callq 0xf7050
movq %rax, %rdi
movl $0x1, %esi
callq 0xe9d70
movq -0xa8(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0xfe435(%rip), %rsi     # 0x1f35cb
callq 0x5540
movq %rax, -0xa0(%rbp)
movq -0x18(%rbp), %rdi
movslq -0x48(%rbp), %rsi
callq 0xf7050
movq %rax, %rdi
movl $0x2, %esi
callq 0xe9d70
movq -0xa0(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x5980
movq %rax, %rdi
leaq 0xfe3f5(%rip), %rsi     # 0x1f35cb
callq 0x5540
movq %rax, -0x98(%rbp)
movq -0x18(%rbp), %rdi
movslq -0x48(%rbp), %rsi
callq 0xf7050
movq -0x98(%rbp), %rdi
movsd 0x18(%rax), %xmm0
callq 0x5980
testb $0x1, -0x29(%rbp)
je 0xf523a
movq -0x8(%rbp), %rdi
leaq 0xfe3ba(%rip), %rsi     # 0x1f35cb
callq 0x5540
movq %rax, -0xb8(%rbp)
movq -0x28(%rbp), %rdi
movslq -0x48(%rbp), %rsi
callq 0xfc80
movq -0xb8(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x5980
movq -0x8(%rbp), %rdi
leaq 0x1043e0(%rip), %rsi    # 0x1f9625
callq 0x5540
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0xf503b
addq $0xc0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)