// File: richardposner[P]BioNetFit2/src/code/Data.cpp
// Function: Data::divideByInit()
void Data::divideByInit() {
	for(map<string,map<double,double> >::iterator c = dataCurrent->begin(); c != dataCurrent->end(); ++c) {
		for(map<double,double>::iterator v = c->second.begin(); v != c->second.end(); ++v) {
			if (v->second == 0) {
				swarm_->outputError("You chose to divide_by_init, but the first value in the column '" + c->first + "' is 0. We cannot divide by 0.");
			}
			if (std::isnan(v->second)) {
				dataDividedByInit_[c->first][v->first] = nan("1");
				continue;
			}
			dataDividedByInit_[c->first][v->first] = v->second / c->second.begin()->first;
			//cout << "dividing t=" << v->first << " of " << v->second << "by " << c->first << " init of " << c->second.begin()->first << endl;
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x88(%rbp)
movq (%rax), %rdi
callq 0x8e350
movq %rax, -0x10(%rbp)
movq -0x88(%rbp), %rax
movq (%rax), %rdi
callq 0x8e3b0
movq %rax, -0x18(%rbp)
leaq -0x10(%rbp), %rdi
leaq -0x18(%rbp), %rsi
callq 0x8e380
testb $0x1, %al
jne 0x8d26f
jmp 0x8d4cd
leaq -0x10(%rbp), %rdi
callq 0x8e4c0
movq %rax, %rdi
addq $0x20, %rdi
callq 0x8e4e0
movq %rax, -0x20(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x8e4c0
movq %rax, %rdi
addq $0x20, %rdi
callq 0x8e540
movq %rax, -0x28(%rbp)
leaq -0x20(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x8e510
testb $0x1, %al
jne 0x8d2b7
jmp 0x8d4bd
leaq -0x20(%rbp), %rdi
callq 0x8e590
movsd 0x8(%rax), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x8d380
jp 0x8d380
movq -0x88(%rbp), %rax
movq 0x150(%rax), %rax
movq %rax, -0x98(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x8e4c0
movq %rax, %rdx
leaq 0x14c31a(%rip), %rsi    # 0x1d961a
leaq -0x68(%rbp), %rdi
movq %rdi, -0x90(%rbp)
callq 0x44240
movq -0x90(%rbp), %rsi
leaq 0x14c33d(%rip), %rdx    # 0x1d965b
leaq -0x48(%rbp), %rdi
callq 0x441f0
jmp 0x8d329
movq -0x98(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0xeada0
jmp 0x8d33b
leaq -0x48(%rbp), %rdi
callq 0x311e8
leaq -0x68(%rbp), %rdi
callq 0x311e8
jmp 0x8d380
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x8d372
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x311e8
leaq -0x68(%rbp), %rdi
callq 0x311e8
jmp 0x8d4d6
leaq -0x20(%rbp), %rdi
callq 0x8e590
movsd 0x8(%rax), %xmm0
callq 0x8e570
testb $0x1, %al
jne 0x8d399
jmp 0x8d409
leaq 0x157ade(%rip), %rdi    # 0x1e4e7e
callq 0x2fd70
movq -0x88(%rbp), %rax
movsd %xmm0, -0xa0(%rbp)
addq $0x120, %rax            # imm = 0x120
movq %rax, -0xb0(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x8e4c0
movq -0xb0(%rbp), %rdi
movq %rax, %rsi
callq 0x8e190
movq %rax, -0xa8(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x8e590
movq -0xa8(%rbp), %rdi
movq %rax, %rsi
callq 0x8e610
movsd -0xa0(%rbp), %xmm0
movsd %xmm0, (%rax)
jmp 0x8d4af
leaq -0x20(%rbp), %rdi
callq 0x8e590
movsd 0x8(%rax), %xmm0
movsd %xmm0, -0xd0(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x8e4c0
movq %rax, %rdi
addq $0x20, %rdi
callq 0x8e4e0
movq %rax, -0x80(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x8e590
movsd -0xd0(%rbp), %xmm0
movq %rax, %rcx
movq -0x88(%rbp), %rax
divsd (%rcx), %xmm0
movsd %xmm0, -0xb8(%rbp)
addq $0x120, %rax            # imm = 0x120
movq %rax, -0xc8(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x8e4c0
movq -0xc8(%rbp), %rdi
movq %rax, %rsi
callq 0x8e190
movq %rax, -0xc0(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x8e590
movq -0xc0(%rbp), %rdi
movq %rax, %rsi
callq 0x8e610
movsd -0xb8(%rbp), %xmm0
movsd %xmm0, (%rax)
leaq -0x20(%rbp), %rdi
callq 0x8e5e0
jmp 0x8d288
jmp 0x8d4bf
leaq -0x10(%rbp), %rdi
callq 0x8e6f0
jmp 0x8d246
addq $0xd0, %rsp
popq %rbp
retq
movq -0x70(%rbp), %rdi
callq 0x30170
nop