// File: /workspace/github_cpp_makefile_star2_O2/nwieder[P]SSTS/src/Input/Standard_Ipt.cpp
// Function: nw::Standard_Ipt::read_Sim_Data()
void Standard_Ipt::read_Sim_Data(){

	xml_node top = doc.child("Sim");
	xml_node_iterator it = doc.begin();
	xml_node_iterator li_it; // iterator for the outputSpeciesList

//	open output file stream
	string tmp = output_dir_path + "sim_info" + ".e";
	info_path.open(tmp.c_str());
	info_path << build_header() << endl;
	info_path << "############ GENERAL DATA ############" << endl;

//	read the general data and save to xgd
	xgd.xml_output_mode = atol(it->child_value("outputMode"));
	info_path << "output mode: " << xgd.xml_output_mode << endl;
	xgd.xml_max_sim_steps = atof(it->child_value("maxSimulationSteps"));
	info_path << "max simulation steps: " << xgd.xml_max_sim_steps << endl;
	xgd.xml_max_sim_time = atof(it->child_value("maxSimTime"));
	info_path<< "max simulation time: " << xgd.xml_max_sim_time << endl;
	xgd.xml_sample_rate = atof(it->child_value("sampleRate"));
	info_path<< "sample rate: " << xgd.xml_sample_rate << endl;
	xgd.xml_box_lenght = atof(it->child_value("voxelBoxLenght"));
	info_path<< "voxel box lenght: " << xgd.xml_box_lenght << endl;
	xgd.xml_border_condition = (string)it->child_value("borderCondition");
	info_path<< "border condition: " << xgd.xml_border_condition << endl;

//	print output _Species and _Voxel ids to sim_info.e
	info_path<< "output species: ";
	for (li_it = it->child("outputSpcList").begin(); li_it !=
			it->child("outputSpcList").end(); ++li_it){
		xgd.xml_output_Spc.push_back(atol(li_it->child_value()));
		info_path << li_it->child_value() << ",";
	}
	info_path << endl << "output voxel: " ;
	for (li_it = it->child("outputVxlList").begin(); li_it !=
			it->child("outputVxlList").end(); ++li_it){
		xgd.xml_output_Vxl.push_back(atol(li_it->child_value()));
		info_path<< li_it->child_value() << ",";
	}
	info_path << endl;

	read_Species(it->child("speciesList"));
	read_Voxel(it->child("voxelList"));
	read_Events(it->child("eventList"));

	alloc_Species();
	alloc_Voxel();
	alloc_Events();

//	close the file stream
	info_path << endl << endl << endl;
	info_path.close();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdi, %r14
leaq 0x170(%rdi), %rbx
leaq 0x181fc(%rip), %rsi     # 0x1e2df
movq %rbx, %rdi
callq 0xd3d6
movq %rbx, %rdi
callq 0xd348
movq %rax, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
leaq 0x48(%rsp), %rdi
callq 0x10efc
leaq 0x10(%r14), %rsi
leaq 0x181d1(%rip), %rdx     # 0x1e2e3
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
callq 0x8fb4
leaq 0x188d5(%rip), %rdx     # 0x1e9fb
leaq 0x58(%rsp), %rdi
movq %rbx, %rsi
callq 0x8f95
leaq 0x20(%rsp), %rdi
callq 0x4568
movq %r14, (%rsp)
leaq 0x248(%r14), %rdi
movq 0x58(%rsp), %rsi
pushq $0x10
popq %rdx
movq %rdi, 0x8(%rsp)
callq 0x4040
leaq 0x20(%rsp), %rdi
callq 0x66f0
leaq 0x20(%rsp), %rsi
movq 0x8(%rsp), %rdi
callq 0x4210
movq %rax, %rdi
callq 0x4100
leaq 0x20(%rsp), %rdi
callq 0x4568
leaq 0x18160(%rip), %rsi     # 0x1e2ec
movq 0x8(%rsp), %rdi
callq 0x4240
movq %rax, %rdi
callq 0x4100
leaq 0x10(%rsp), %rdi
callq 0x10f8e
leaq 0x18164(%rip), %rsi     # 0x1e313
movq %rax, %rdi
callq 0xd798
movq %rax, %rdi
callq 0x42c0
movq (%rsp), %rcx
movq %rax, 0x70(%rcx)
leaq 0x18150(%rip), %rsi     # 0x1e31e
movq 0x8(%rsp), %rdi
callq 0x4240
movq (%rsp), %rcx
movq 0x70(%rcx), %rsi
movq %rax, %rdi
callq 0x4230
movq %rax, %rdi
callq 0x4100
leaq 0x10(%rsp), %rdi
callq 0x10f8e
leaq 0x1812b(%rip), %rsi     # 0x1e32c
movq %rax, %rdi
callq 0xd798
movq %rax, %rdi
callq 0x42f0
movq (%rsp), %rax
movsd %xmm0, 0x78(%rax)
leaq 0x1811e(%rip), %rsi     # 0x1e33f
movq 0x8(%rsp), %rdi
callq 0x4240
movq (%rsp), %rcx
movsd 0x78(%rcx), %xmm0
movq %rax, %rdi
callq 0x4460
movq %rax, %rdi
callq 0x4100
leaq 0x10(%rsp), %rdi
callq 0x10f8e
leaq 0x18101(%rip), %rsi     # 0x1e356
movq %rax, %rdi
callq 0xd798
movq %rax, %rdi
callq 0x42f0
movq (%rsp), %rax
movsd %xmm0, 0x80(%rax)
leaq 0x180e9(%rip), %rsi     # 0x1e361
movq 0x8(%rsp), %rdi
callq 0x4240
movq (%rsp), %rcx
movsd 0x80(%rcx), %xmm0
movq %rax, %rdi
callq 0x4460
movq %rax, %rdi
callq 0x4100
leaq 0x10(%rsp), %rdi
callq 0x10f8e
leaq 0x180c8(%rip), %rsi     # 0x1e377
movq %rax, %rdi
callq 0xd798
movq %rax, %rdi
callq 0x42f0
movq (%rsp), %rax
movsd %xmm0, 0x88(%rax)
leaq 0x180b0(%rip), %rsi     # 0x1e382
movq 0x8(%rsp), %rdi
callq 0x4240
movq (%rsp), %rcx
movsd 0x88(%rcx), %xmm0
movq %rax, %rdi
callq 0x4460
movq %rax, %rdi
callq 0x4100
leaq 0x10(%rsp), %rdi
callq 0x10f8e
leaq 0x18087(%rip), %rsi     # 0x1e390
movq %rax, %rdi
callq 0xd798
movq %rax, %rdi
callq 0x42f0
movq (%rsp), %rax
movsd %xmm0, 0x90(%rax)
leaq 0x18073(%rip), %rsi     # 0x1e39f
movq 0x8(%rsp), %rdi
callq 0x4240
movq (%rsp), %rcx
movsd 0x90(%rcx), %xmm0
movq %rax, %rdi
callq 0x4460
movq %rax, %rdi
callq 0x4100
leaq 0x10(%rsp), %rdi
callq 0x10f8e
leaq 0x1804f(%rip), %rsi     # 0x1e3b2
movq %rax, %rdi
callq 0xd798
leaq 0x20(%rsp), %rdi
leaq 0x40(%rsp), %rdx
movq %rax, %rsi
callq 0x8e86
movq (%rsp), %rax
leaq 0x50(%rax), %rbx
leaq 0x20(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x42e0
movq %r14, %rdi
callq 0x4568
leaq 0x1801e(%rip), %rsi     # 0x1e3c2
movq 0x8(%rsp), %rdi
callq 0x4240
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4210
movq %rax, %rdi
callq 0x4100
leaq 0x1800d(%rip), %rsi     # 0x1e3d5
movq 0x8(%rsp), %rdi
callq 0x4240
leaq 0x10(%rsp), %rdi
callq 0x10f8e
leaq 0x18003(%rip), %rsi     # 0x1e3e6
movq %rax, %rdi
callq 0xd3d6
leaq 0x20(%rsp), %rdi
movq %rax, (%rdi)
callq 0xd348
leaq 0x48(%rsp), %r15
movq %rax, (%r15)
movq %rdx, 0x8(%r15)
movq (%rsp), %rax
leaq 0x98(%rax), %r12
leaq 0x10(%rsp), %r13
leaq 0x17fcb(%rip), %rbp     # 0x1e3e6
leaq 0x40(%rsp), %rbx
leaq 0x20(%rsp), %r14
movq %r13, %rdi
callq 0x10f8e
movq %rax, %rdi
movq %rbp, %rsi
callq 0xd3d6
movq %rax, 0x40(%rsp)
movq %rbx, %rdi
callq 0xd358
movq %rax, 0x20(%rsp)
movq %rdx, 0x28(%rsp)
movq %r15, %rdi
movq %r14, %rsi
callq 0x10f44
testb %al, %al
je 0x64bf
movq %r15, %rdi
callq 0x10f8e
movq %rax, %rdi
callq 0xd748
movq %rax, %rdi
callq 0x42c0
movq %rax, 0x20(%rsp)
movq %r12, %rdi
movq %r14, %rsi
callq 0x5908
movq %r15, %rdi
callq 0x10f8e
movq %rax, %rdi
callq 0xd748
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x4240
movq %rax, %rdi
leaq 0x17f47(%rip), %rsi     # 0x1e3f4
callq 0x4240
movq %r15, %rdi
callq 0x10fb8
jmp 0x6425
movq 0x8(%rsp), %rdi
callq 0x4100
leaq 0x17f26(%rip), %rsi     # 0x1e3f6
movq %rax, %rdi
callq 0x4240
leaq 0x10(%rsp), %rdi
callq 0x10f8e
leaq 0x17f1c(%rip), %rsi     # 0x1e405
movq %rax, %rdi
callq 0xd3d6
leaq 0x20(%rsp), %rdi
movq %rax, (%rdi)
callq 0xd348
leaq 0x48(%rsp), %r15
movq %rax, (%r15)
movq %rdx, 0x8(%r15)
movq (%rsp), %rax
leaq 0xb0(%rax), %r12
leaq 0x10(%rsp), %r13
leaq 0x17ee4(%rip), %rbp     # 0x1e405
leaq 0x40(%rsp), %rbx
leaq 0x20(%rsp), %r14
movq %r13, %rdi
callq 0x10f8e
movq %rax, %rdi
movq %rbp, %rsi
callq 0xd3d6
movq %rax, 0x40(%rsp)
movq %rbx, %rdi
callq 0xd358
movq %rax, 0x20(%rsp)
movq %rdx, 0x28(%rsp)
movq %r15, %rdi
movq %r14, %rsi
callq 0x10f44
testb %al, %al
je 0x65c5
movq %r15, %rdi
callq 0x10f8e
movq %rax, %rdi
callq 0xd748
movq %rax, %rdi
callq 0x42c0
movq %rax, 0x20(%rsp)
movq %r12, %rdi
movq %r14, %rsi
callq 0x5908
movq %r15, %rdi
callq 0x10f8e
movq %rax, %rdi
callq 0xd748
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x4240
movq %rax, %rdi
leaq 0x17e41(%rip), %rsi     # 0x1e3f4
callq 0x4240
movq %r15, %rdi
callq 0x10fb8
jmp 0x652b
movq 0x8(%rsp), %rdi
callq 0x4100
leaq 0x10(%rsp), %rdi
callq 0x10f8e
movq (%rsp), %rbx
leaq 0x17e2f(%rip), %rsi     # 0x1e413
movq %rax, %rdi
callq 0xd3d6
leaq 0x20(%rsp), %rsi
movq %rax, (%rsi)
movq %rbx, %rdi
callq 0x674c
leaq 0x10(%rsp), %rdi
callq 0x10f8e
leaq 0x17e12(%rip), %rsi     # 0x1e41f
movq %rax, %rdi
callq 0xd3d6
leaq 0x20(%rsp), %rsi
movq %rax, (%rsi)
movq %rbx, %rdi
callq 0x6ba0
leaq 0x10(%rsp), %rdi
callq 0x10f8e
leaq 0x17df3(%rip), %rsi     # 0x1e429
movq %rax, %rdi
callq 0xd3d6
leaq 0x20(%rsp), %rsi
movq %rax, (%rsi)
movq %rbx, %rdi
callq 0x6ef6
movq %rbx, %rdi
callq 0x8054
movq (%rsp), %rdi
callq 0x81e8
movq (%rsp), %rdi
callq 0x854c
movq 0x8(%rsp), %rdi
callq 0x4100
movq %rax, %rdi
callq 0x4100
movq %rax, %rdi
callq 0x4100
movq 0x8(%rsp), %rdi
callq 0x43b0
leaq 0x58(%rsp), %rdi
callq 0x4568
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x66da
jmp 0x66da
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
jmp 0x66e2
jmp 0x66da
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x4568
jmp 0x66dd
jmp 0x66da
jmp 0x66da
jmp 0x66da
jmp 0x66da
jmp 0x66da
jmp 0x66da
jmp 0x66da
jmp 0x66da
jmp 0x66da
jmp 0x66da
jmp 0x66da
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x4568
movq %rbx, %rdi
callq 0x44f0
nop