// File: /workspace/github_cpp_makefile_star2_O1/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 0x47fe2
movq 0x12dffd(%rip), %rdi    # 0x175f90
leaq 0xaec46(%rip), %rsi     # 0xf6be0
movl $0x13, %edx
callq 0x22ab0
movq (%rbp), %rsi
movq 0x8(%rbp), %rdx
movq 0x12dfdd(%rip), %rdi    # 0x175f90
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 0x32180
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0xbe434
leaq 0x48(%rsp), %r14
movq 0x20(%rsp), %rdi
movq %r14, %rsi
callq 0x22bb0
movq (%r14), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x4803b
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x48052
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x150(%rbx), %rax
cmpl $0x4, 0x1614(%rax)
jb 0x480b8
movq 0x12df27(%rip), %rdi    # 0x175f90
leaq 0xaeb84(%rip), %rsi     # 0xf6bf4
movl $0x14, %edx
callq 0x22ab0
movq 0x70(%rbx), %rsi
movq 0x78(%rbx), %rdx
movq 0x12df07(%rip), %rdi    # 0x175f90
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 0x482c0
movq 0x18(%rsp), %rax
movq %rax, (%rbx)
movq 0x150(%rbx), %rax
cmpl $0x4, 0x162c(%rax)
setne %al
movl %r13d, %ecx
xorb $0x1, %cl
orb %al, %cl
jne 0x480eb
movq %rbx, %rdi
callq 0x4985a
movq 0x150(%rbx), %rax
movb 0x163c(%rax), %al
xorb $0x1, %al
orb %r13b, %al
jne 0x4810f
movq %rbx, %rdi
callq 0x49990
movq 0x10(%rsp), %rax
movq %rax, (%rbx)
movq 0x150(%rbx), %rax
cmpl $0x0, 0x1640(%rax)
setle %al
orb %r13b, %al
jne 0x48135
movq %rbx, %rdi
callq 0x49b8c
movq 0x8(%rsp), %rax
movq %rax, (%rbx)
movq 0x150(%rbx), %rax
movb 0x1644(%rax), %al
xorb $0x1, %al
orb %r13b, %al
jne 0x481b2
movq 0x12de40(%rip), %r14    # 0x175f90
leaq 0xaeab2(%rip), %rsi     # 0xf6c09
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 0x12de0e(%rip), %rdi    # 0x175f90
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq 0x150(%rbx), %rax
cmpl $0x4, 0x162c(%rax)
je 0x481a7
movq %rbx, %rdi
callq 0x4985a
movq %rbx, %rdi
callq 0x49da2
movq %r12, (%rbx)
movq 0x150(%rbx), %rax
andb 0x1645(%rax), %r13b
cmpb $0x1, %r13b
jne 0x4822f
movq 0x12ddc3(%rip), %r14    # 0x175f90
leaq 0xaea3f(%rip), %rsi     # 0xf6c13
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 0x12dd91(%rip), %rdi    # 0x175f90
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq 0x150(%rbx), %rax
cmpl $0x4, 0x162c(%rax)
je 0x48224
movq %rbx, %rdi
callq 0x4985a
movq %rbx, %rdi
callq 0x49da2
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 0x4825f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x4825f
jmp 0x4825c
movq %rax, %r13
movq 0x10(%rsp), %rdi
callq 0x4a5c0
movq 0x8(%rsp), %rdi
callq 0x4a5c0
movq %r12, %rdi
callq 0x4a5c0
movq 0x18(%rsp), %rdi
callq 0x4a5c0
movq 0x20(%rsp), %rax
movq (%rax), %rdi
cmpq (%rsp), %rdi
je 0x482a2
movq (%rsp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x229c0
leaq 0x38(%rbx), %rdi
addq $0x8, %rbx
callq 0x4a694
movq %rbx, %rdi
callq 0x4a5c0
movq %r13, %rdi
callq 0x23240
nop