// File: /workspace/github_cpp_makefile_star2_O3/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 $0x68, %rsp
movl %ecx, %r13d
movq %rsi, %rbp
movq %rdi, %rbx
leaq 0x10(%rdi), %rcx
xorl %eax, %eax
movl %eax, 0x10(%rdi)
movq %rax, 0x18(%rdi)
movq %rcx, 0x20(%rdi)
movq %rcx, 0x28(%rdi)
movq %rax, 0x30(%rdi)
leaq 0x40(%rdi), %rcx
movl %eax, 0x40(%rdi)
movq %rax, 0x48(%rdi)
movq %rcx, 0x50(%rdi)
movq %rcx, 0x58(%rdi)
movq %rax, 0x60(%rdi)
leaq 0x70(%rdi), %rcx
movq %rcx, 0x20(%rsp)
leaq 0x80(%rdi), %rcx
movq %rcx, (%rsp)
movq %rcx, 0x70(%rdi)
movq %rax, 0x78(%rdi)
movb $0x0, 0x80(%rdi)
leaq 0x90(%rdi), %rcx
movq %rcx, 0x18(%rsp)
leaq 0x98(%rdi), %rcx
movl %eax, 0x98(%rdi)
movq %rax, 0xa0(%rdi)
movq %rcx, 0xa8(%rdi)
movq %rcx, 0xb0(%rdi)
movq %rax, 0xb8(%rdi)
leaq 0xc0(%rdi), %r12
leaq 0xc8(%rdi), %rcx
movl %eax, 0xc8(%rdi)
movq %rax, 0xd0(%rdi)
movq %rcx, 0xd8(%rdi)
movq %rcx, 0xe0(%rdi)
movq %rax, 0xe8(%rdi)
leaq 0xf0(%rdi), %rcx
movq %rcx, 0x8(%rsp)
leaq 0xf8(%rdi), %rcx
movl %eax, 0xf8(%rdi)
movq %rax, 0x100(%rdi)
movq %rcx, 0x108(%rdi)
movq %rcx, 0x110(%rdi)
movq %rax, 0x118(%rdi)
leaq 0x120(%rdi), %rcx
movq %rcx, 0x10(%rsp)
leaq 0x128(%rdi), %rcx
movl %eax, 0x128(%rdi)
movq %rax, 0x130(%rdi)
movq %rcx, 0x138(%rdi)
movq %rcx, 0x140(%rdi)
movq %rax, 0x148(%rdi)
movl %r8d, 0x68(%rdi)
movq %rdx, 0x150(%rdi)
movb %r13b, 0x158(%rdi)
cmpl $0x4, 0x1614(%rdx)
jb 0x47daa
movq 0x12e24d(%rip), %rdi    # 0x175fa8
leaq 0xaee2e(%rip), %rsi     # 0xf6b90
movl $0x13, %edx
callq 0x22ab0
movq (%rbp), %rsi
movq 0x8(%rbp), %rdx
movq 0x12e22d(%rip), %rdi    # 0x175fa8
callq 0x22ab0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r14, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rbp), %rsi
movq 0x8(%rbp), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %rdi
callq 0x3213c
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0xbdb20
leaq 0x48(%rsp), %r14
movq 0x20(%rsp), %rdi
movq %r14, %rsi
callq 0x22bb0
movq (%r14), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x47e03
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x47e1a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x150(%rbx), %rax
cmpl $0x4, 0x1614(%rax)
jb 0x47e80
movq 0x12e177(%rip), %rdi    # 0x175fa8
leaq 0xaed6c(%rip), %rsi     # 0xf6ba4
movl $0x14, %edx
callq 0x22ab0
movq 0x70(%rbx), %rsi
movq 0x78(%rbx), %rdx
movq 0x12e157(%rip), %rdi    # 0x175fa8
callq 0x22ab0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r14, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq %rbx, %rdi
callq 0x4808a
movq 0x18(%rsp), %rax
movq %rax, (%rbx)
movq 0x150(%rbx), %rax
cmpl $0x4, 0x162c(%rax)
setne %cl
movl %r13d, %edx
xorb $0x1, %dl
orb %cl, %dl
jne 0x47eba
movq %rbx, %rdi
callq 0x49634
movq 0x150(%rbx), %rax
movb 0x163c(%rax), %cl
xorb $0x1, %cl
orb %r13b, %cl
jne 0x47edf
movq %rbx, %rdi
callq 0x4976a
movq 0x10(%rsp), %rax
movq %rax, (%rbx)
movq 0x150(%rbx), %rax
cmpl $0x0, 0x1640(%rax)
setle %cl
orb %r13b, %cl
jne 0x47f05
movq %rbx, %rdi
callq 0x49966
movq 0x8(%rsp), %rax
movq %rax, (%rbx)
movq 0x150(%rbx), %rax
movb 0x1644(%rax), %cl
xorb $0x1, %cl
orb %r13b, %cl
jne 0x47f83
movq 0x12e08e(%rip), %r14    # 0x175fa8
leaq 0xaec98(%rip), %rsi     # 0xf6bb9
movl $0x9, %edx
movq %r14, %rdi
callq 0x22ab0
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq 0x12e05c(%rip), %rdi    # 0x175fa8
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq 0x150(%rbx), %rax
cmpl $0x4, 0x162c(%rax)
je 0x47f71
movq %rbx, %rdi
callq 0x49634
movq %rbx, %rdi
callq 0x49b7c
movq %r12, (%rbx)
movq 0x150(%rbx), %rax
andb 0x1645(%rax), %r13b
cmpb $0x1, %r13b
jne 0x47ff9
movq 0x12e011(%rip), %r14    # 0x175fa8
leaq 0xaec25(%rip), %rsi     # 0xf6bc3
movl $0x9, %edx
movq %r14, %rdi
callq 0x22ab0
movq (%r14), %rax
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq 0x12dfdf(%rip), %rdi    # 0x175fa8
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq 0x150(%rbx), %rax
cmpl $0x4, 0x162c(%rax)
je 0x47fee
movq %rbx, %rdi
callq 0x49634
movq %rbx, %rdi
callq 0x49b7c
movq %r12, (%rbx)
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r13
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x48029
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x48029
jmp 0x48026
movq %rax, %r13
movq 0x10(%rsp), %rdi
callq 0x4a39e
movq 0x8(%rsp), %rdi
callq 0x4a39e
movq %r12, %rdi
callq 0x4a39e
movq 0x18(%rsp), %rdi
callq 0x4a39e
movq 0x20(%rsp), %rax
movq (%rax), %rdi
cmpq (%rsp), %rdi
je 0x4806c
movq (%rsp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x229c0
leaq 0x38(%rbx), %rdi
addq $0x8, %rbx
callq 0x4a472
movq %rbx, %rdi
callq 0x4a39e
movq %r13, %rdi
callq 0x23240
nop