// File: richardposner[P]BioNetFit2/src/code/Model.cpp
// Function: Model::parseNet(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void Model::parseNet(string path) {

	if (swarm_->options.verbosity >= 3) {
		cout << "Parsing .net file" << endl;
	}

	string line;
	ifstream modelFile(path);

	if (modelFile.is_open()) {
		while (getline(modelFile, line)) {
			if (line.at(0) == '#') {
				continue;
			}
			string line_with_newline = line + "\n";
			netContents_.push_back(line_with_newline);
			//cout << line_with_newline;
		}
	}
	else {
		swarm_->outputError("Error: Couldn't open model file " + path + " for parsing.");
	}
	modelFile.close();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2e0, %rsp            # imm = 0x2E0
movq %rsi, -0x2b8(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x2b0(%rbp)
movq 0x60(%rax), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x99934
movq 0x23b637(%rip), %rdi    # 0x2d4f50
leaq 0x140b90(%rip), %rsi    # 0x1da4b0
callq 0x2ff50
movq %rax, %rdi
movq 0x23b699(%rip), %rsi    # 0x2d4fc8
callq 0x30c10
leaq -0x30(%rbp), %rdi
callq 0x2f880
movq -0x2b8(%rbp), %rsi
leaq -0x238(%rbp), %rdi
movl $0x8, %edx
callq 0x30d80
jmp 0x99957
leaq -0x238(%rbp), %rdi
callq 0x30980
movb %al, -0x2b9(%rbp)
jmp 0x9996b
movb -0x2b9(%rbp), %al
testb $0x1, %al
jne 0x9997a
jmp 0x99a85
jmp 0x9997c
leaq -0x238(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x2fcb0
movq %rax, -0x2c8(%rbp)
jmp 0x99995
movq -0x2c8(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x2f8e0
movb %al, -0x2c9(%rbp)
jmp 0x999b3
movb -0x2c9(%rbp), %al
testb $0x1, %al
jne 0x999c2
jmp 0x99a80
xorl %eax, %eax
movl %eax, %esi
leaq -0x30(%rbp), %rdi
callq 0x30840
movq %rax, -0x2d8(%rbp)
jmp 0x999d8
movq -0x2d8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x23, %eax
jne 0x99a17
jmp 0x9997c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x240(%rbp)
movl %eax, -0x244(%rbp)
jmp 0x99b76
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x240(%rbp)
movl %eax, -0x244(%rbp)
jmp 0x99b6a
leaq 0x141991(%rip), %rdx    # 0x1db3af
leaq -0x268(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x447b0
jmp 0x99a30
movq -0x2b0(%rbp), %rdi
addq $0xa0, %rdi
leaq -0x268(%rbp), %rsi
callq 0x45280
jmp 0x99a4c
leaq -0x268(%rbp), %rdi
callq 0x311e8
jmp 0x9997c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x240(%rbp)
movl %eax, -0x244(%rbp)
leaq -0x268(%rbp), %rdi
callq 0x311e8
jmp 0x99b6a
jmp 0x99b3e
movq -0x2b8(%rbp), %rdx
movq -0x2b0(%rbp), %rax
movq 0x60(%rax), %rax
movq %rax, -0x2e0(%rbp)
leaq 0x140a1d(%rip), %rsi    # 0x1da4c2
leaq -0x2a8(%rbp), %rdi
callq 0x44240
jmp 0x99ab3
leaq 0x139e7d(%rip), %rdx    # 0x1d3937
leaq -0x288(%rbp), %rdi
leaq -0x2a8(%rbp), %rsi
callq 0x441f0
jmp 0x99acf
movq -0x2e0(%rbp), %rdi
leaq -0x288(%rbp), %rsi
callq 0xeada0
jmp 0x99ae4
leaq -0x288(%rbp), %rdi
callq 0x311e8
leaq -0x2a8(%rbp), %rdi
callq 0x311e8
jmp 0x99b3e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x240(%rbp)
movl %eax, -0x244(%rbp)
jmp 0x99b30
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x240(%rbp)
movl %eax, -0x244(%rbp)
leaq -0x288(%rbp), %rdi
callq 0x311e8
leaq -0x2a8(%rbp), %rdi
callq 0x311e8
jmp 0x99b6a
leaq -0x238(%rbp), %rdi
callq 0x300d0
jmp 0x99b4c
leaq -0x238(%rbp), %rdi
callq 0x2f0e0
leaq -0x30(%rbp), %rdi
callq 0x311e8
addq $0x2e0, %rsp            # imm = 0x2E0
popq %rbp
retq
leaq -0x238(%rbp), %rdi
callq 0x2f0e0
leaq -0x30(%rbp), %rdi
callq 0x311e8
movq -0x240(%rbp), %rdi
callq 0x30170
nopl (%rax,%rax)