// File: /workspace/github_cpp_makefile_star2_O1/richardposner[P]BioNetFit2/src/code/Swarm.cpp
// Function: Swarm::getClusterCommand(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
string Swarm::getClusterCommand(string runCmd) {
	if (options.clusterSoftware == "slurm") {
		return generateSlurmMultiProgCmd(runCmd);
	}
	else if (options.clusterSoftware == "torque") {
		return generateTorqueBatchScript(runCmd);
	}
	else if (options.clusterSoftware == "mpi") {
		cout << "runCmd is: " << runCmd << endl;
		return generateMPICommand(runCmd);
	}
	else if (options.clusterSoftware == "BNF2mpi") {
			if(options.verbosity >= 3){
				cout << "runCmd is: " << runCmd << endl;
			}
			return generateBNF2MPICommand(runCmd);
	}
	else {
		return 0;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x1730(%rsi), %r12
leaq 0x5a018(%rip), %rsi     # 0xf23bf
movq %r12, %rdi
callq 0x22250
testl %eax, %eax
je 0x98493
leaq 0x5a007(%rip), %rsi     # 0xf23c5
movq %r12, %rdi
callq 0x22250
testl %eax, %eax
je 0x984c6
leaq 0x59ffb(%rip), %rsi     # 0xf23d0
movq %r12, %rdi
callq 0x22250
testl %eax, %eax
je 0x984ff
leaq 0x59fe0(%rip), %rsi     # 0xf23cc
movq %r12, %rdi
callq 0x22250
testl %eax, %eax
jne 0x985aa
cmpl $0x3, 0x1614(%r14)
jb 0x9845a
movq 0xddb83(%rip), %r12     # 0x175f90
leaq 0x67d33(%rip), %rsi     # 0x100147
movl $0xb, %edx
movq %r12, %rdi
callq 0x22ab0
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r12, %rdi
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 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x32180
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x9ab64
movq 0x8(%rsp), %rdi
jmp 0x98587
leaq 0x78(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0x68(%rsp), %rdi
callq 0x32180
movq %rbx, %rdi
movq %r14, %rsi
callq 0x985fc
movq 0x68(%rsp), %rdi
jmp 0x98587
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %r15
movq %r15, %rdi
callq 0x32180
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x997b6
movq 0x48(%rsp), %rdi
jmp 0x98587
movq 0xdda8a(%rip), %r12     # 0x175f90
leaq 0x67c3a(%rip), %rsi     # 0x100147
movl $0xb, %edx
movq %r12, %rdi
callq 0x22ab0
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r12, %rdi
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 0x38(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %r15
movq %r15, %rdi
callq 0x32180
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x9a02a
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x98598
movq (%r12), %rsi
incq %rsi
callq 0x229c0
movq %rbx, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x5a1ad(%rip), %rdi     # 0xf2765
callq 0x22690
movq %rax, %rbx
movq 0x28(%rsp), %rdi
jmp 0x985e3
movq %rax, %rbx
movq 0x48(%rsp), %rdi
jmp 0x985e3
movq %rax, %rbx
movq 0x8(%rsp), %rdi
jmp 0x985e3
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x985f4
movq (%r12), %rsi
incq %rsi
callq 0x229c0
movq %rbx, %rdi
callq 0x23240