// File: /workspace/github_cpp_makefile_star2_O3/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 0x5aaa2(%rip), %rsi     # 0xf239f
movq %r12, %rdi
callq 0x22250
testl %eax, %eax
je 0x979e9
leaq 0x5aa91(%rip), %rsi     # 0xf23a5
movq %r12, %rdi
callq 0x22250
testl %eax, %eax
je 0x97a1c
leaq 0x5aa85(%rip), %rsi     # 0xf23b0
movq %r12, %rdi
callq 0x22250
testl %eax, %eax
je 0x97a55
leaq 0x5aa6a(%rip), %rsi     # 0xf23ac
movq %r12, %rdi
callq 0x22250
testl %eax, %eax
jne 0x97b00
cmpl $0x3, 0x1614(%r14)
jb 0x979b0
movq 0xde645(%rip), %r12     # 0x175fa8
leaq 0x687c4(%rip), %rsi     # 0x10012e
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 0x3213c
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x9a09c
movq 0x8(%rsp), %rdi
jmp 0x97add
leaq 0x78(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0x68(%rsp), %rdi
callq 0x3213c
movq %rbx, %rdi
movq %r14, %rsi
callq 0x97b52
movq 0x68(%rsp), %rdi
jmp 0x97add
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 0x3213c
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x98d0c
movq 0x48(%rsp), %rdi
jmp 0x97add
movq 0xde54c(%rip), %r12     # 0x175fa8
leaq 0x686cb(%rip), %rsi     # 0x10012e
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 0x3213c
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x99562
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x97aee
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 0x5ac37(%rip), %rdi     # 0xf2745
callq 0x22690
movq %rax, %rbx
movq 0x28(%rsp), %rdi
jmp 0x97b39
movq %rax, %rbx
movq 0x48(%rsp), %rdi
jmp 0x97b39
movq %rax, %rbx
movq 0x8(%rsp), %rdi
jmp 0x97b39
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r12, %rdi
je 0x97b4a
movq (%r12), %rsi
incq %rsi
callq 0x229c0
movq %rbx, %rdi
callq 0x23240