// File: /workspace/github_cpp_makefile_star2_O3/richardposner[P]BioNetFit2/src/code/Swarm.cpp
// Function: Swarm::setModels(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool)
void Swarm::setModels(std::string pathPrefix, std::string path, bool overwrite){
	std::vector<string> paths;
	fs::path prefix(pathPrefix);

	if(overwrite)
		this->options.models.clear();

	if  (options.verbosity >= 3) cout<<"Swarm::setModels:  processing model files:"<<path<<endl;
	paths = split_string(path, ",");
	for(unsigned int i=0; i< paths.size(); ++i){
		fs::path path(paths.at(i));
		fs::path abspath = path;
		
		if (!fs::exists(path.string())){
		                abspath = prefix / path;
		}

		setModel(abspath.string(), i, overwrite);
		if (options.verbosity >=3) cout<<"Model["<<i<<"]  :"<<paths.at(i)<<" is added to the list of models.\n" << endl;
	}
	check_model_consistency(options.models);
	//this->options.model = this->options.models.at(0); //set the first model as the basic model for backward comaptibility
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movl %ecx, %ebp
movq %rdx, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
movq %rsp, %rdi
movq %rax, %rsi
callq 0x3213c
testb %bpl, %bpl
je 0x790e6
movq 0x15c0(%rbx), %rax
cmpq %rax, 0x15c8(%rbx)
je 0x790e6
movq %rax, 0x15c8(%rbx)
cmpl $0x3, 0x1614(%rbx)
jb 0x79144
movq 0xfceb2(%rip), %rdi     # 0x175fa8
leaq 0x8557f(%rip), %rsi     # 0xfe67c
movl $0x2a, %edx
callq 0x22ab0
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0xfce93(%rip), %rdi     # 0x175fa8
callq 0x22ab0
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r12, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
leaq 0x118(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x108(%rsp), %rdi
callq 0x3213c
leaq 0xf8(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x7ec45(%rip), %rsi     # 0xf7dc0
leaq 0x7ec3f(%rip), %rdx     # 0xf7dc1
leaq 0xe8(%rsp), %rdi
callq 0x321d2
leaq 0x60(%rsp), %rdi
leaq 0x108(%rsp), %rsi
leaq 0xe8(%rsp), %rdx
callq 0xbe638
movq 0x30(%rsp), %rax
leaq 0x60(%rsp), %r14
movaps (%r14), %xmm0
movq 0x10(%r14), %rcx
movq %rcx, 0x30(%rsp)
movaps 0x20(%rsp), %xmm1
movaps %xmm0, 0x20(%rsp)
leaq 0x40(%rsp), %rdi
movaps %xmm1, (%rdi)
movq %rax, 0x10(%rdi)
xorps %xmm0, %xmm0
movaps %xmm0, (%r14)
movq $0x0, 0x10(%r14)
callq 0x31a0a
movq %r14, %rdi
callq 0x31a0a
movq 0xe8(%rsp), %rdi
cmpq %r12, %rdi
je 0x7920f
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x108(%rsp), %rdi
cmpq %r15, %rdi
je 0x7922c
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x20(%rsp), %rax
cmpq %rax, 0x28(%rsp)
je 0x794bd
movl %ebp, %ecx
leaq 0x98(%rsp), %rbp
xorl %r15d, %r15d
leaq 0x88(%rsp), %r13
movzbl %cl, %ecx
movl %ecx, 0x3c(%rsp)
movq %r15, %r14
shlq $0x5, %r14
leaq 0x50(%rsp), %rcx
movq %rcx, 0x40(%rsp)
movq (%rax,%r14), %rsi
movq 0x8(%rax,%r14), %rdx
addq %rsi, %rdx
leaq 0x40(%rsp), %rdi
callq 0x3213c
leaq 0x70(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
addq %rsi, %rdx
leaq 0x60(%rsp), %rdi
callq 0x3213c
movq %rbp, 0x88(%rsp)
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x3213c
leaq 0xe0(%rsp), %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0xd7330
movl 0xe0(%rsp), %r12d
movq 0x88(%rsp), %rdi
cmpq %rbp, %rdi
je 0x792f4
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x229c0
cmpl $0x1, %r12d
ja 0x7934d
movq %rbp, 0x88(%rsp)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x3213c
movq %r13, %rdi
leaq 0x40(%rsp), %rsi
callq 0xdc620
leaq 0x60(%rsp), %rdi
movq %r13, %rsi
callq 0x22bb0
movq 0x88(%rsp), %rdi
cmpq %rbp, %rdi
je 0x7934d
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0xb8(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
addq %rsi, %rdx
leaq 0xa8(%rsp), %rdi
callq 0x3213c
movq %rbx, %rdi
leaq 0xa8(%rsp), %rsi
movl %r15d, %edx
movl 0x3c(%rsp), %ecx
callq 0x79688
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x793b3
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x229c0
cmpl $0x3, 0x1614(%rbx)
jb 0x79468
movl $0x6, %edx
movq 0xfcbdc(%rip), %rdi     # 0x175fa8
leaq 0x852f7(%rip), %rsi     # 0xfe6ca
callq 0x22ab0
movq 0xfcbc9(%rip), %rdi     # 0x175fa8
movq %r15, %rsi
callq 0x22650
movq %rax, %r12
movl $0x4, %edx
movq %rax, %rdi
leaq 0x851d4(%rip), %rsi     # 0xfe5cd
callq 0x22ab0
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
cmpq %r15, %rdx
jbe 0x79535
movq (%rax,%r14), %rsi
movq 0x8(%rax,%r14), %rdx
movq %r12, %rdi
callq 0x22ab0
movq %rax, %r12
movl $0x21, %edx
movq %rax, %rdi
leaq 0x8526c(%rip), %rsi     # 0xfe6a7
callq 0x22ab0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r12, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x79484
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x794a0
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x229c0
incl %r15d
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
cmpq %r15, %rcx
ja 0x79258
addq $0x15c0, %rbx           # imm = 0x15C0
leaq 0xc8(%rsp), %rdi
movq %rbx, %rsi
leaq 0x10(%rsp), %r13
callq 0xa74b4
leaq 0xc8(%rsp), %rdi
callq 0x5126e
movq 0xc8(%rsp), %rdi
testq %rdi, %rdi
je 0x79503
movq 0xd8(%rsp), %rsi
subq %rdi, %rsi
callq 0x229c0
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x79519
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x20(%rsp), %rdi
callq 0x31a0a
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x7a13d(%rip), %rdi     # 0xf3679
movq %r15, %rsi
xorl %eax, %eax
callq 0x22f40
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
testq %rdi, %rdi
je 0x795c6
movq 0xd8(%rsp), %rsi
subq %rdi, %rsi
callq 0x229c0
jmp 0x795c6
movq %rax, %rbx
movq 0xe8(%rsp), %rdi
cmpq %r12, %rdi
je 0x7958d
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x7958d
movq %rax, %rbx
movq 0x108(%rsp), %rdi
cmpq %r15, %rdi
je 0x79660
movq 0x118(%rsp), %rsi
jmp 0x79658
jmp 0x795b5
movq %rax, %rbx
jmp 0x79676
movq %rax, %rbx
jmp 0x79660
jmp 0x795dc
jmp 0x79620
jmp 0x79620
movq %rax, %rbx
leaq 0x10(%rsp), %r13
jmp 0x79660
movq %rax, %rbx
leaq 0x10(%rsp), %r13
jmp 0x79644
jmp 0x79620
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %rbp, %rdi
je 0x79623
movq 0x98(%rsp), %rsi
jmp 0x79616
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x79623
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x79623
movq %rax, %rbx
leaq 0x10(%rsp), %r13
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0x79644
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x79660
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x229c0
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x79676
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x20(%rsp), %rdi
callq 0x31a0a
movq %rbx, %rdi
callq 0x23240