// File: richardposner[P]BioNetFit2/src/code/Swarm.cpp
// Function: Swarm::setsConf(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int)
void Swarm::setsConf(std::string sConf, int mid){  //razi added
	if (options.verbosity>=3) cout<<"Setting sConf id:" << mid << " File:" << sConf <<endl;
	int sz = sConf_.size();
	if (mid < 0){
		outputError("Error in setting sConf. Invalid id. Quitting ....");
	}else if ((mid >= 0) && (mid == sz)){
		sConf_.push_back(sConf);
	}else if ((mid >= 0) && (mid < sz)){
		sConf_.at(mid) = sConf;
	}else if ((mid >= 0) && (mid > sz)){

		for(int i = 0; i < mid - sz; i++){
			sConf_.push_back("");
		}
		sConf_.at(mid) = sConf;
	}

//	cout<<"set conf done, new size is:"<< sConf_.size() <<". Eneter a number to continue..."; cin>>i;
//	if( sConf_.size()>0)
//		for(i=0; i<sConf_.size(); i++)
//			cout<<" SConf[" << i <<"] is:" << sConf_.at(i)<<", ";
//
//	}
//	catch(string err){
//		cout<<"Error occurred in set conf Err:"<< err;
//	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rsi, -0x88(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x80(%rbp)
cmpl $0x3, 0x1614(%rax)
jb 0xeab99
movq 0x1ea3fb(%rip), %rdi    # 0x2d4f50
leaq 0xf64d5(%rip), %rsi     # 0x1e1031
callq 0x2ff50
movq %rax, %rdi
movl -0x14(%rbp), %esi
callq 0x2f800
movq %rax, %rdi
leaq 0xf656e(%rip), %rsi     # 0x1e10e4
callq 0x2ff50
movq -0x88(%rbp), %rsi
movq %rax, %rdi
callq 0x2f780
movq %rax, %rdi
movq 0x1ea434(%rip), %rsi    # 0x2d4fc8
callq 0x30c10
movq -0x80(%rbp), %rdi
addq $0x1938, %rdi           # imm = 0x1938
callq 0x44960
movl %eax, -0x18(%rbp)
cmpl $0x0, -0x14(%rbp)
jge 0xeac36
leaq -0x39(%rbp), %rdi
movq %rdi, -0x90(%rbp)
callq 0x30a70
movq -0x90(%rbp), %rdx
leaq 0xf646f(%rip), %rsi     # 0x1e1043
leaq -0x38(%rbp), %rdi
callq 0x44470
jmp 0xeabdf
movq -0x80(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0xeada0
jmp 0xeabee
leaq -0x38(%rbp), %rdi
callq 0x311e8
leaq -0x39(%rbp), %rdi
callq 0x311c0
jmp 0xead84
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0xeac28
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x311e8
leaq -0x39(%rbp), %rdi
callq 0x311c0
jmp 0xead8d
cmpl $0x0, -0x14(%rbp)
jl 0xeac60
movl -0x14(%rbp), %eax
cmpl -0x18(%rbp), %eax
jne 0xeac60
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdi
addq $0x1938, %rdi           # imm = 0x1938
callq 0x45280
jmp 0xead82
cmpl $0x0, -0x14(%rbp)
jl 0xeac96
movl -0x14(%rbp), %eax
cmpl -0x18(%rbp), %eax
jge 0xeac96
movq -0x80(%rbp), %rdi
addq $0x1938, %rdi           # imm = 0x1938
movslq -0x14(%rbp), %rsi
callq 0x1216f0
movq -0x88(%rbp), %rsi
movq %rax, %rdi
callq 0x30fa0
jmp 0xead80
cmpl $0x0, -0x14(%rbp)
jl 0xead7e
movl -0x14(%rbp), %eax
cmpl -0x18(%rbp), %eax
jle 0xead7e
movl $0x0, -0x50(%rbp)
movl -0x50(%rbp), %eax
movl -0x14(%rbp), %ecx
subl -0x18(%rbp), %ecx
cmpl %ecx, %eax
jge 0xead5b
movq -0x80(%rbp), %rax
addq $0x1938, %rax           # imm = 0x1938
movq %rax, -0xa0(%rbp)
leaq -0x71(%rbp), %rdi
movq %rdi, -0x98(%rbp)
callq 0x30a70
movq -0x98(%rbp), %rdx
leaq 0xee80d(%rip), %rsi     # 0x1d9500
leaq -0x70(%rbp), %rdi
callq 0x44470
jmp 0xeacfe
movq -0xa0(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0xb39c0
jmp 0xead10
leaq -0x70(%rbp), %rdi
callq 0x311e8
leaq -0x71(%rbp), %rdi
callq 0x311c0
movl -0x50(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x50(%rbp)
jmp 0xeacb3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0xead50
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x311e8
leaq -0x71(%rbp), %rdi
callq 0x311c0
jmp 0xead8d
movq -0x80(%rbp), %rdi
addq $0x1938, %rdi           # imm = 0x1938
movslq -0x14(%rbp), %rsi
callq 0x1216f0
movq -0x88(%rbp), %rsi
movq %rax, %rdi
callq 0x30fa0
jmp 0xead80
jmp 0xead82
jmp 0xead84
addq $0xa0, %rsp
popq %rbp
retq
movq -0x48(%rbp), %rdi
callq 0x30170
nopw %cs:(%rax,%rax)