// File: /workspace/github_cpp_makefile_star2_O3/richardposner[P]BioNetFit2/src/code/Swarm.cpp
// Function: Swarm::generateSlurmBatchFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
string Swarm::generateSlurmBatchFile(string runCmd) {
	string sbatchPath = options.jobOutputDir + "slurm_script.sh";
	ofstream sbatch(sbatchPath, ios::out);

	if (sbatch.is_open()) {
		//TODO: Need to display terminal output from cluster jobs

		sbatch << "#!/bin/sh" << endl << endl;

		// Add the job name
		sbatch << "#SBATCH -J " + options.jobName << endl;

		// Specify the cluster account if needed
		if (!options.clusterAccount.empty()) {
			sbatch << "#SBATCH -A " + options.clusterAccount << endl;
		}

		if (!options.clusterQueue.empty()) {
			sbatch << "#SBATCH -p " + options.clusterQueue << endl;
		}

		// Specify output directory if needed
		if (options.saveClusterOutput) {
			sbatch << "#SBATCH -o " + options.outputDir + "/" + options.jobName + "_cluster_output/" + options.jobName << endl;
		}
		else {
			sbatch << "#SBATCH -o /dev/null" << endl;
		}

		sbatch << "#SBATCH -n" + toString(options.parallelCount + 1) << endl;

		sbatch << endl;

		sbatch << "module load openmpi" << endl;
		//sbatch << "module load intel << endl;"
		sbatch << "echo LD_LIBRARY_PATH: $LD_LIBRARY_PATH" << endl;
		sbatch << "echo PATH: $PATH" << endl;
		sbatch << "echo which mpirun:" << endl;
		sbatch << "which mpirun" << endl;
		sbatch << "echo pwd:" << endl;
		sbatch << "pwd"	<< endl;
		sbatch << "echo ldd GenFit2:" << endl;
		sbatch << "ldd /home/bt285/BioNetFit/bin/GenFit2" << endl;;

		cout<<"Swarm::generateSlurmBatchFile Might need some modifications ....582\n";
		sbatch << "mpirun -mca mca_component_show_load_errors 10 -v --tag-output -np 1 " << runCmd << " load " << sConf_[0] << " : -np " << options.swarmSize << " " << runCmd << " particle 0 run " << sConf_[0] << endl;

		sbatch.close();
	}
	else {
		outputError("Error: Couldn't generate slurm batch file: " + sbatchPath + ". Quitting.");
	}

	runCmd = "sbatch " + sbatchPath;

	return runCmd;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2e8, %rsp            # imm = 0x2E8
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x58(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq 0x1520(%rsi), %rsi
movq 0x1528(%r15), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %r12
movq %r12, %rdi
callq 0x3213c
leaq 0x656dc(%rip), %rsi     # 0x1003e8
movq %r12, %rdi
callq 0x233b0
leaq 0xe8(%rsp), %rdi
leaq 0x48(%rsp), %rsi
movl $0x10, %edx
callq 0x233d0
leaq 0x158(%rsp), %rdi
callq 0x221e0
testb %al, %al
je 0x9b7c1
leaq 0x656b1(%rip), %rsi     # 0x1003f8
leaq 0xe8(%rsp), %r12
movl $0x9, %edx
movq %r12, %rdi
callq 0x22ab0
movq 0xe8(%rsp), %rax
addq -0x18(%rax), %r12
movq %r12, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
leaq 0xe8(%rsp), %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
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 0x14c0(%r15), %rdx
leaq 0x6563d(%rip), %rsi     # 0x100402
leaq 0x8(%rsp), %rdi
callq 0x31944
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0xe8(%rsp), %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), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9ae2b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x229c0
cmpq $0x0, 0x1758(%r15)
je 0x9aeaa
leaq 0x1750(%r15), %rdx
leaq 0x655cb(%rip), %rsi     # 0x10040e
leaq 0x8(%rsp), %rdi
callq 0x31944
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0xe8(%rsp), %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
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x9aeaa
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x229c0
cmpq $0x0, 0x1780(%r15)
je 0x9af29
leaq 0x1778(%r15), %rdx
leaq 0x65558(%rip), %rsi     # 0x10041a
leaq 0x8(%rsp), %rdi
callq 0x31944
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0xe8(%rsp), %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
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x9af29
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x229c0
cmpb $0x1, 0x1770(%r15)
jne 0x9af89
leaq 0x1500(%r15), %rdx
leaq 0x654e5(%rip), %rsi     # 0x100426
leaq 0xc8(%rsp), %rdi
callq 0x31944
leaq 0x64902(%rip), %rsi     # 0xff857
leaq 0xc8(%rsp), %rdi
callq 0x233b0
leaq 0x78(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x9afdb
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x9afe1
leaq 0x654a2(%rip), %rsi     # 0x100432
leaq 0xe8(%rsp), %r12
movl $0x14, %edx
movq %r12, %rdi
callq 0x22ab0
movq 0xe8(%rsp), %rax
addq -0x18(%rax), %r12
movq %r12, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
leaq 0xe8(%rsp), %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
jmp 0x9b1e9
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq 0x68(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x14c0(%r15), %rsi
movq 0x14c8(%r15), %rdx
callq 0x222b0
leaq 0x98(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x9b040
movq %rdx, 0x88(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x98(%rsp)
jmp 0x9b048
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
leaq 0x88(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x6517a(%rip), %rsi     # 0x1001e8
callq 0x233b0
leaq 0x38(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x9b09a
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x9b0a1
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x14c0(%r15), %rsi
movq 0x14c8(%r15), %rdx
callq 0x222b0
leaq 0x18(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x9b0f8
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x9b0fe
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0xe8(%rsp), %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
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x9b173
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x9b18a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x88(%rsp), %rdi
cmpq %r13, %rdi
leaq 0x58(%rsp), %rbp
je 0x9b1ac
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x9b1c8
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9b1e9
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x229c0
movl 0x1628(%r15), %esi
incl %esi
leaq 0x28(%rsp), %rdi
callq 0xbfa49
leaq 0x65244(%rip), %rcx     # 0x100447
leaq 0x28(%rsp), %rdi
movl $0xa, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x22a80
leaq 0x18(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x9b23f
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x9b245
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0xe8(%rsp), %r12
movq %r12, %rdi
callq 0x22ab0
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r13, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x9b2bd
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9b2d8
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0xe8(%rsp), %rax
addq -0x18(%rax), %r12
movq %r12, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
leaq 0xe8(%rsp), %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
leaq 0x65142(%rip), %rsi     # 0x100452
leaq 0xe8(%rsp), %r12
movl $0x13, %edx
movq %r12, %rdi
callq 0x22ab0
movq 0xe8(%rsp), %rax
addq -0x18(%rax), %r12
movq %r12, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
leaq 0xe8(%rsp), %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
leaq 0x65109(%rip), %rsi     # 0x100466
leaq 0xe8(%rsp), %r12
movl $0x26, %edx
movq %r12, %rdi
callq 0x22ab0
movq 0xe8(%rsp), %rax
addq -0x18(%rax), %r12
movq %r12, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
leaq 0xe8(%rsp), %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
leaq 0x650e3(%rip), %rsi     # 0x10048d
leaq 0xe8(%rsp), %r12
movl $0x10, %edx
movq %r12, %rdi
callq 0x22ab0
movq 0xe8(%rsp), %rax
addq -0x18(%rax), %r12
movq %r12, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
leaq 0xe8(%rsp), %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
leaq 0x650a7(%rip), %rsi     # 0x10049e
leaq 0xe8(%rsp), %r12
movl $0x12, %edx
movq %r12, %rdi
callq 0x22ab0
movq 0xe8(%rsp), %rax
addq -0x18(%rax), %r12
movq %r12, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
leaq 0xe8(%rsp), %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
leaq 0x645d0(%rip), %rsi     # 0xffa14
leaq 0xe8(%rsp), %r12
movl $0xc, %edx
movq %r12, %rdi
callq 0x22ab0
movq 0xe8(%rsp), %rax
addq -0x18(%rax), %r12
movq %r12, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
leaq 0xe8(%rsp), %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
leaq 0x65020(%rip), %rsi     # 0x1004b1
leaq 0xe8(%rsp), %r12
movl $0x9, %edx
movq %r12, %rdi
callq 0x22ab0
movq 0xe8(%rsp), %rax
addq -0x18(%rax), %r12
movq %r12, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
leaq 0xe8(%rsp), %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
leaq 0x64fdd(%rip), %rsi     # 0x1004bb
leaq 0xe8(%rsp), %r12
movl $0x3, %edx
movq %r12, %rdi
callq 0x22ab0
movq 0xe8(%rsp), %rax
addq -0x18(%rax), %r12
movq %r12, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
leaq 0xe8(%rsp), %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
leaq 0x64f94(%rip), %rsi     # 0x1004bf
leaq 0xe8(%rsp), %r12
movl $0x11, %edx
movq %r12, %rdi
callq 0x22ab0
movq 0xe8(%rsp), %rax
addq -0x18(%rax), %r12
movq %r12, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
leaq 0xe8(%rsp), %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
leaq 0x64f59(%rip), %rsi     # 0x1004d1
leaq 0xe8(%rsp), %r12
movl $0x25, %edx
movq %r12, %rdi
callq 0x22ab0
movq 0xe8(%rsp), %rax
addq -0x18(%rax), %r12
movq %r12, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
leaq 0xe8(%rsp), %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
movq 0xda9e3(%rip), %rdi     # 0x175fa8
leaq 0x64f2b(%rip), %rsi     # 0x1004f7
movl $0x44, %edx
callq 0x22ab0
leaq 0x64f5f(%rip), %rsi     # 0x10053c
leaq 0xe8(%rsp), %rdi
movl $0x44, %edx
callq 0x22ab0
movq (%r14), %rsi
movq 0x8(%r14), %rdx
leaq 0xe8(%rsp), %rdi
callq 0x22ab0
movq %rax, %r12
leaq 0x64d91(%rip), %rsi     # 0x10039e
movl $0x6, %edx
movq %rax, %rdi
callq 0x22ab0
movq 0x1938(%r15), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r12, %rdi
callq 0x22ab0
movq %rax, %r12
leaq 0x64f47(%rip), %rsi     # 0x100581
movl $0x7, %edx
movq %rax, %rdi
callq 0x22ab0
movl 0x1620(%r15), %esi
movq %r12, %rdi
callq 0x231e0
movq %rax, %r12
leaq 0x65dc4(%rip), %rsi     # 0x101424
movl $0x1, %edx
movq %rax, %rdi
callq 0x22ab0
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %r12, %rdi
callq 0x22ab0
movq %rax, %r12
leaq 0x64f03(%rip), %rsi     # 0x100589
movl $0x10, %edx
movq %rax, %rdi
callq 0x22ab0
movq 0x1938(%r15), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r12, %rdi
callq 0x22ab0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x22940
movsbl %al, %esi
movq %r15, %rdi
callq 0x22050
movq %rax, %rdi
callq 0x22660
leaq 0xe8(%rsp), %rdi
callq 0x22de0
leaq 0x64edf(%rip), %rsi     # 0x1005c6
leaq 0x8(%rsp), %rdi
leaq 0x48(%rsp), %rdx
callq 0x31944
leaq 0x8(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x22bb0
movq (%r15), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x9b720
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
movq (%r14), %rdx
leaq 0x10(%r14), %rax
cmpq %rax, %rdx
je 0x9b73f
movq %rdx, (%rbx)
movq (%rax), %rcx
movq %rcx, 0x10(%rbx)
jmp 0x9b745
movups (%rax), %xmm0
movups %xmm0, (%rcx)
movq 0x8(%r14), %rcx
movq %rcx, 0x8(%rbx)
movq %rax, (%r14)
movq $0x0, 0x8(%r14)
movb $0x0, 0x10(%r14)
movq 0xda824(%rip), %rax     # 0x175f88
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0xf0(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0xe8(%rsp,%rcx)
callq 0x227d0
leaq 0x1e0(%rsp), %rdi
callq 0x222d0
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
je 0x9b7ac
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x229c0
movq %rbx, %rax
addq $0x2e8, %rsp            # imm = 0x2E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x64dd2(%rip), %rsi     # 0x10059a
leaq 0x8(%rsp), %rdi
leaq 0x48(%rsp), %rdx
callq 0x31944
leaq 0x661db(%rip), %rsi     # 0x1019b9
leaq 0x8(%rsp), %rdi
callq 0x233b0
leaq 0xb8(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x9b80c
movups (%rcx), %xmm0
movups %xmm0, (%r14)
jmp 0x9b81f
movq %rdx, 0xa8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xb8(%rsp)
movq 0x8(%rax), %rdx
leaq 0xa8(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %r15, %rdi
callq 0x784c2
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
cmpq %r14, %rdi
je 0x9b9af
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x9b9af
jmp 0x9b9ac
movq %rax, %rbx
jmp 0x9b8fc
movq %rax, %rbx
jmp 0x9b913
movq %rax, %rbx
jmp 0x9b930
movq %rax, %rbx
jmp 0x9b94c
jmp 0x9b9cc
jmp 0x9b9cc
jmp 0x9b9cc
jmp 0x9b9cc
jmp 0x9b9cc
movq %rax, %rbx
jmp 0x9b997
jmp 0x9b9cc
jmp 0x9b9cc
movq %rax, %rbx
jmp 0x9b9dc
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %rbp, %rdi
jne 0x9b9eb
jmp 0x9b9f8
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x9b8fc
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x9b913
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x88(%rsp), %rdi
cmpq %r13, %rdi
je 0x9b930
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x229c0
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x9b94c
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0xd8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9b9cf
movq 0xd8(%rsp), %rsi
jmp 0x9b9c2
jmp 0x9b969
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
jmp 0x9b9b8
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x9b997
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x229c0
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9b9cf
movq 0x38(%rsp), %rsi
jmp 0x9b9c2
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9b9cf
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x229c0
jmp 0x9b9cf
movq %rax, %rbx
leaq 0xe8(%rsp), %rdi
callq 0x22ea0
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x9b9f8
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x229c0
movq %rbx, %rdi
callq 0x23240