// File: /workspace/github_cpp_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x268, %rsp            # imm = 0x268
movq %rsi, %r15
movq %rdi, %rbx
movq 0x60(%rdi), %rax
cmpl $0x3, 0x1614(%rax)
jb 0x4e980
movq 0x127663(%rip), %r14    # 0x175fa8
leaq 0xa9314(%rip), %rsi     # 0xf7c60
movl $0x11, %edx
movq %r14, %rdi
callq 0x22ab0
movq (%r14), %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 0x30(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x60(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
movl $0x8, %edx
callq 0x23070
leaq 0xd8(%rsp), %rdi
callq 0x221e0
testb %al, %al
je 0x4ea67
leaq 0x10(%rsp), %rbp
addq $0xa0, %rbx
leaq 0x20(%rsp), %r15
movq %rsp, %r12
leaq 0xaa15b(%rip), %r13     # 0xf8b34
movq 0x60(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x23300
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x4eb10
movq 0x28(%rsp), %rdx
testq %rdx, %rdx
je 0x4eb52
movq 0x20(%rsp), %rsi
cmpb $0x23, (%rsi)
je 0x4e9d9
movq %rbp, (%rsp)
addq %rsi, %rdx
movq %r12, %rdi
callq 0x3213c
movq %r12, %rdi
movq %r13, %rsi
callq 0x233b0
movq %rbx, %rdi
movq %r12, %rsi
callq 0x31cec
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x4e9d9
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x4e9d9
movq 0x60(%rbx), %rbx
leaq 0xa9200(%rip), %rsi     # 0xf7c72
movq %rsp, %rdi
movq %r15, %rdx
callq 0x31944
leaq 0xa2a5e(%rip), %rsi     # 0xf14e2
movq %rsp, %rdi
callq 0x233b0
leaq 0x50(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4eab3
movq %rdx, 0x40(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x50(%rsp)
jmp 0x4eaba
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x40(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbx, %rdi
callq 0x784c2
movq 0x40(%rsp), %rdi
cmpq %r14, %rdi
je 0x4eaf5
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4eb10
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x60(%rsp), %rdi
callq 0x221b0
leaq 0x60(%rsp), %rdi
callq 0x22200
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x4eb40
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x229c0
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa8f98(%rip), %rdi     # 0xf7af1
xorl %esi, %esi
xorl %edx, %edx
xorl %eax, %eax
callq 0x22f40
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %r14, %rdi
je 0x4eb83
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x4eb83
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x4eba8
jmp 0x4ebbe
jmp 0x4ebbb
movq %rax, %rbx
jmp 0x4ebc8
jmp 0x4eb9c
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x4ebbe
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x4ebbe
jmp 0x4ebbb
jmp 0x4ebbb
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x22200
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x4ebe4
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x229c0
movq %rbx, %rdi
callq 0x23240