// File: /workspace/github_cpp_makefile_star2_O1/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 0x32180
testb %bpl, %bpl
je 0x79792
movq 0x15c0(%rbx), %rax
cmpq %rax, 0x15c8(%rbx)
je 0x79792
movq %rax, 0x15c8(%rbx)
cmpl $0x3, 0x1614(%rbx)
jb 0x797f0
movq 0xfc7ee(%rip), %rdi     # 0x175f90
leaq 0x84e63(%rip), %rsi     # 0xfe60c
movl $0x2a, %edx
callq 0x22ab0
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0xfc7cf(%rip), %rdi     # 0x175f90
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 0x32180
leaq 0xf8(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x7e5e9(%rip), %rsi     # 0xf7e10
leaq 0x7e5e3(%rip), %rdx     # 0xf7e11
leaq 0xe8(%rsp), %rdi
callq 0x32210
leaq 0x68(%rsp), %rdi
leaq 0x108(%rsp), %rsi
leaq 0xe8(%rsp), %rdx
callq 0xbef52
xorps %xmm0, %xmm0
leaq 0x40(%rsp), %rdi
movaps %xmm0, (%rdi)
movaps 0x20(%rsp), %xmm0
movq 0x30(%rsp), %rax
leaq 0x68(%rsp), %r14
movups (%r14), %xmm1
movaps %xmm1, 0x20(%rsp)
movq 0x10(%r14), %rcx
movq %rcx, 0x30(%rsp)
movaps (%rdi), %xmm1
movaps %xmm0, (%rdi)
movq %rax, 0x10(%rdi)
movups %xmm1, (%r14)
movq $0x0, 0x10(%r14)
callq 0x31a9e
movq %r14, %rdi
callq 0x31a9e
movq 0xe8(%rsp), %rdi
cmpq %r12, %rdi
je 0x798c1
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x108(%rsp), %rdi
cmpq %r15, %rdi
je 0x798de
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x20(%rsp), %rax
cmpq %rax, 0x28(%rsp)
je 0x79b6f
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 0x32180
leaq 0x78(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
addq %rsi, %rdx
leaq 0x68(%rsp), %rdi
callq 0x32180
movq %rbp, 0x88(%rsp)
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x32180
leaq 0xe0(%rsp), %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0xd7c80
movl 0xe0(%rsp), %r12d
movq 0x88(%rsp), %rdi
cmpq %rbp, %rdi
je 0x799a6
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x229c0
cmpl $0x1, %r12d
ja 0x799ff
movq %rbp, 0x88(%rsp)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x32180
movq %r13, %rdi
leaq 0x40(%rsp), %rsi
callq 0xdcf70
leaq 0x68(%rsp), %rdi
movq %r13, %rsi
callq 0x22bb0
movq 0x88(%rsp), %rdi
cmpq %rbp, %rdi
je 0x799ff
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0xb8(%rsp), %rax
movq %rax, 0xa8(%rsp)
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
addq %rsi, %rdx
leaq 0xa8(%rsp), %rdi
callq 0x32180
movq %rbx, %rdi
leaq 0xa8(%rsp), %rsi
movl %r15d, %edx
movl 0x3c(%rsp), %ecx
callq 0x79d3a
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x79a65
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x229c0
cmpl $0x3, 0x1614(%rbx)
jb 0x79b1a
movl $0x6, %edx
movq 0xfc512(%rip), %rdi     # 0x175f90
leaq 0x84bd5(%rip), %rsi     # 0xfe65a
callq 0x22ab0
movq 0xfc4ff(%rip), %rdi     # 0x175f90
movq %r15, %rsi
callq 0x22650
movq %rax, %r12
movl $0x4, %edx
movq %rax, %rdi
leaq 0x84ab2(%rip), %rsi     # 0xfe55d
callq 0x22ab0
movq 0x20(%rsp), %rax
movq 0x28(%rsp), %rdx
subq %rax, %rdx
sarq $0x5, %rdx
cmpq %r15, %rdx
jbe 0x79be7
movq (%rax,%r14), %rsi
movq 0x8(%rax,%r14), %rdx
movq %r12, %rdi
callq 0x22ab0
movq %rax, %r12
movl $0x21, %edx
movq %rax, %rdi
leaq 0x84b4a(%rip), %rsi     # 0xfe637
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 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x79b36
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x79b52
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 0x7990a
addq $0x15c0, %rbx           # imm = 0x15C0
leaq 0xc8(%rsp), %rdi
movq %rbx, %rsi
leaq 0x10(%rsp), %r13
callq 0xa7f04
leaq 0xc8(%rsp), %rdi
callq 0x5155f
movq 0xc8(%rsp), %rdi
testq %rdi, %rdi
je 0x79bb5
movq 0xd8(%rsp), %rsi
subq %rdi, %rsi
callq 0x229c0
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x79bcb
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x20(%rsp), %rdi
callq 0x31a9e
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x79ad7(%rip), %rdi     # 0xf36c5
movq %r15, %rsi
xorl %eax, %eax
callq 0x22f40
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
testq %rdi, %rdi
je 0x79c78
movq 0xd8(%rsp), %rsi
subq %rdi, %rsi
callq 0x229c0
jmp 0x79c78
movq %rax, %rbx
movq 0xe8(%rsp), %rdi
cmpq %r12, %rdi
je 0x79c3f
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x79c3f
movq %rax, %rbx
movq 0x108(%rsp), %rdi
cmpq %r15, %rdi
je 0x79d12
movq 0x118(%rsp), %rsi
jmp 0x79d0a
jmp 0x79c67
movq %rax, %rbx
jmp 0x79d28
movq %rax, %rbx
jmp 0x79d12
jmp 0x79c8e
jmp 0x79cd2
jmp 0x79cd2
movq %rax, %rbx
leaq 0x10(%rsp), %r13
jmp 0x79d12
movq %rax, %rbx
leaq 0x10(%rsp), %r13
jmp 0x79cf6
jmp 0x79cd2
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %rbp, %rdi
je 0x79cd5
movq 0x98(%rsp), %rsi
jmp 0x79cc8
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x79cd5
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x79cd5
movq %rax, %rbx
leaq 0x10(%rsp), %r13
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x79cf6
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0x79d12
movq 0x50(%rsp), %rsi
incq %rsi
callq 0x229c0
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x79d28
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x20(%rsp), %rdi
callq 0x31a9e
movq %rbx, %rdi
callq 0x23240