// File: /workspace/github_cpp_makefile_star2_O1/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 0x4ec74
movq 0x127357(%rip), %r14    # 0x175f90
leaq 0xa9070(%rip), %rsi     # 0xf7cb0
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 0x4ed5b
leaq 0x10(%rsp), %rbp
addq $0xa0, %rbx
leaq 0x20(%rsp), %r15
movq %rsp, %r12
leaq 0xa9e87(%rip), %r13     # 0xf8b54
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 0x4ee04
movq 0x28(%rsp), %rdx
testq %rdx, %rdx
je 0x4ee46
movq 0x20(%rsp), %rsi
cmpb $0x23, (%rsi)
je 0x4eccd
movq %rbp, (%rsp)
addq %rsi, %rdx
movq %r12, %rdi
callq 0x32180
movq %r12, %rdi
movq %r13, %rsi
callq 0x233b0
movq %rbx, %rdi
movq %r12, %rsi
callq 0x31d52
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x4eccd
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x4eccd
movq 0x60(%rbx), %rbx
leaq 0xa8f5c(%rip), %rsi     # 0xf7cc2
movq %rsp, %rdi
movq %r15, %rdx
callq 0x319d8
leaq 0xa278a(%rip), %rsi     # 0xf1502
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 0x4eda7
movq %rdx, 0x40(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x50(%rsp)
jmp 0x4edae
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 0x78b66
movq 0x40(%rsp), %rdi
cmpq %r14, %rdi
je 0x4ede9
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4ee04
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 0x4ee34
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 0xa8cf4(%rip), %rdi     # 0xf7b41
xorl %esi, %esi
xorl %eax, %eax
callq 0x22f40
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %r14, %rdi
je 0x4ee75
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x4ee75
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x4ee9a
jmp 0x4eeb0
jmp 0x4eead
movq %rax, %rbx
jmp 0x4eeba
jmp 0x4ee8e
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x4eeb0
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x4eeb0
jmp 0x4eead
jmp 0x4eead
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x22200
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x4eed6
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x229c0
movq %rbx, %rdi
callq 0x23240