// File: /workspace/github_cpp_makefile_star2_O2/richardposner[P]BioNetFit2/src/code/Data.cpp
// Function: Data::Data(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, Swarm*, bool, unsigned int)
Data::Data(std::string path, Swarm * swarm, bool isExp, unsigned int mid) {
	mid_=mid;

	swarm_ = swarm;
	isExp_ = isExp;

//cout<<"Data::Data   AAA-1"<<endl; mypause();
	if (swarm_->options.verbosity >= 4){
		cout << "received dataPath: " << path << endl;
	}
	dataPath = convertToAbsPath(path);
	if (swarm_->options.verbosity >= 4){

		cout << "converted dataPath: " << dataPath << endl;
	}
//cout<<"Data::Data   AAA-2"<<endl; mypause();
	Data::parseData();
//cout<<"Data::Data   AAA-3"<<endl; mypause();

	dataCurrent = &dataOrig_;

	if ( (swarm_->options.objFunc == 4 && isExp)) {
		getColumnAverages();
	}

	if (swarm_->options.divideByInit && !isExp) {
		divideByInit();
		dataCurrent = &dataDividedByInit_;
	}

	if (swarm_->options.logTransformSimData > 0 && !isExp) {
		logTransformData();
		dataCurrent = &dataLogTransformed_;
	}

	if (swarm_->options.standardizeSimData && !isExp) {
		cout << "stand sim" << endl;
		if (swarm_->options.objFunc != 4) {
			getColumnAverages();
		}
		standardizeData();
		dataCurrent = &dataStandardized_;
	}

	if (swarm_->options.standardizeExpData && isExp) {
		cout << "stand exp" << endl;
		if (swarm_->options.objFunc != 4) {
			getColumnAverages();
		}
		standardizeData();
		dataCurrent = &dataStandardized_;
	}
//cout<<"Data::Data   AAA-4"<<endl; mypause();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
andl $0x0, 0x10(%rdi)
andq $0x0, 0x18(%rdi)
movq %rax, 0x20(%rdi)
movq %rax, 0x28(%rdi)
andq $0x0, 0x30(%rdi)
andl $0x0, 0x40(%rdi)
movl %ecx, %r13d
andq $0x0, 0x48(%rdi)
leaq 0x40(%rdi), %rax
movq %rax, 0x50(%rdi)
movq %rax, 0x58(%rdi)
andq $0x0, 0x60(%rdi)
leaq 0x80(%rdi), %rax
movq %rax, 0x70(%rdi)
andq $0x0, 0x78(%rdi)
movq %rsi, %rbp
leaq 0x70(%rdi), %r14
movb $0x0, 0x80(%rdi)
leaq 0x90(%rdi), %r15
leaq 0x98(%rdi), %rax
andl $0x0, 0x98(%rdi)
andq $0x0, 0xa0(%rdi)
movq %rax, 0xa8(%rdi)
movq %rax, 0xb0(%rdi)
andq $0x0, 0xb8(%rdi)
leaq 0xc8(%rdi), %rax
andl $0x0, 0xc8(%rdi)
andq $0x0, 0xd0(%rdi)
movq %rax, 0xd8(%rdi)
movq %rax, 0xe0(%rdi)
andq $0x0, 0xe8(%rdi)
leaq 0xf8(%rdi), %rax
andl $0x0, 0xf8(%rdi)
andq $0x0, 0x100(%rdi)
movq %rax, 0x108(%rdi)
movq %rax, 0x110(%rdi)
andq $0x0, 0x118(%rdi)
leaq 0xc0(%rdi), %r12
andl $0x0, 0x128(%rdi)
leaq 0xf0(%rdi), %rax
movq %rax, 0x8(%rsp)
andq $0x0, 0x130(%rdi)
leaq 0x120(%rdi), %rax
movq %rax, 0x10(%rsp)
leaq 0x128(%rdi), %rax
movq %rax, 0x138(%rdi)
movq %rax, 0x140(%rdi)
andq $0x0, 0x148(%rdi)
movl %r8d, 0x68(%rdi)
movq %rdx, 0x150(%rdi)
movb %r13b, 0x158(%rdi)
cmpl $0x4, 0x1614(%rdx)
jb 0x47bcd
movq 0x11e3ea(%rip), %rdi    # 0x165f98
leaq 0x8cf6b(%rip), %rsi     # 0xd4b20
callq 0x289f0
movq %rax, %rdi
movq %rbp, %rsi
callq 0x28910
movq %rax, %rdi
callq 0x284a0
leaq 0x18(%rsp), %rdi
movq %rbp, %rsi
callq 0x28dd0
leaq 0x38(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0x9e3f4
leaq 0x38(%rsp), %rbp
movq %r14, %rdi
movq %rbp, %rsi
callq 0x28c40
movq %rbp, %rdi
callq 0x295a0
leaq 0x18(%rsp), %rdi
callq 0x295a0
movq 0x150(%rbx), %rax
cmpl $0x4, 0x1614(%rax)
jb 0x47c41
movq 0x11e376(%rip), %rdi    # 0x165f98
leaq 0x8cf0b(%rip), %rsi     # 0xd4b34
callq 0x289f0
movq %rax, %rdi
movq %r14, %rsi
callq 0x28910
movq %rax, %rdi
callq 0x284a0
movq %rbx, %rdi
callq 0x47dce
movq %r15, (%rbx)
movq 0x150(%rbx), %rax
cmpl $0x4, 0x162c(%rax)
setne %cl
movl %r13d, %edx
xorb $0x1, %dl
orb %cl, %dl
jne 0x47c76
movq %rbx, %rdi
callq 0x4897e
movq 0x150(%rbx), %rax
movb 0x163c(%rax), %cl
xorb $0x1, %cl
orb %r13b, %cl
jne 0x47c9b
movq %rbx, %rdi
callq 0x48a6c
movq 0x10(%rsp), %rax
movq %rax, (%rbx)
movq 0x150(%rbx), %rax
cmpl $0x0, 0x1640(%rax)
setle %cl
orb %r13b, %cl
jne 0x47cc1
movq %rbx, %rdi
callq 0x48bd2
movq 0x8(%rsp), %rax
movq %rax, (%rbx)
movq 0x150(%rbx), %rax
movb 0x1644(%rax), %cl
xorb $0x1, %cl
orb %r13b, %cl
jne 0x47d14
movq 0x11e2c2(%rip), %rdi    # 0x165f98
leaq 0x8ce6c(%rip), %rsi     # 0xd4b49
callq 0x289f0
movq %rax, %rdi
callq 0x284a0
movq 0x150(%rbx), %rax
cmpl $0x4, 0x162c(%rax)
je 0x47d02
movq %rbx, %rdi
callq 0x4897e
movq %rbx, %rdi
callq 0x48d50
movq %r12, (%rbx)
movq 0x150(%rbx), %rax
andb 0x1645(%rax), %r13b
cmpb $0x1, %r13b
jne 0x47d5f
movq 0x11e270(%rip), %rdi    # 0x165f98
leaq 0x8ce24(%rip), %rsi     # 0xd4b53
callq 0x289f0
movq %rax, %rdi
callq 0x284a0
movq 0x150(%rbx), %rax
cmpl $0x4, 0x162c(%rax)
je 0x47d54
movq %rbx, %rdi
callq 0x4897e
movq %rbx, %rdi
callq 0x48d50
movq %r12, (%rbx)
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r13
leaq 0x18(%rsp), %rdi
callq 0x295a0
jmp 0x47d82
jmp 0x47d7f
movq %rax, %r13
leaq 0x38(%rbx), %rbp
addq $0x8, %rbx
movq 0x10(%rsp), %rdi
callq 0x494da
movq 0x8(%rsp), %rdi
callq 0x494da
movq %r12, %rdi
callq 0x494da
movq %r15, %rdi
callq 0x494da
movq %r14, %rdi
callq 0x295a0
movq %rbp, %rdi
callq 0x495ac
movq %rbx, %rdi
callq 0x494da
movq %r13, %rdi
callq 0x292f0