// File: /workspace/github_cpp_makefile_star2_O3/simonrharris[P]SKA/src/sk_summary.cpp
// Function: summariseKmerFiles(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&)
int summariseKmerFiles(const std::vector < std::string > & kmerfiles)
{
	int kmersize;
	std::vector < std::string > fileSampleNames;
	std::ifstream fileStream;
	
	std::vector < char > baseorder = { 'A', 'C', 'G', 'T', 'N', 'O'};
	std::cout << "Sample\tKmer size\tTotal kmers\tAs\tCs\tGs\tTs\tNs\tOthers\tGC Content" << std::endl;
	for (int s = 0; s < kmerfiles.size(); ++s){
		
		if (openFileStream(kmerfiles[s], fileStream, false)){return 1;};
		
		readKmerHeader(fileStream, kmersize, fileSampleNames);

		std::map < char, std::vector < int > > basecounts{ {'A', std::vector < int > (fileSampleNames.size(), 0)}, {'C', std::vector < int > (fileSampleNames.size(), 0)}, {'G', std::vector < int > (fileSampleNames.size(), 0)}, {'T', std::vector < int > (fileSampleNames.size(), 0)}, {'N', std::vector < int > (fileSampleNames.size(), 0)}, {'O', std::vector < int > (fileSampleNames.size(), 0)}};

		std::vector < int > kmers(fileSampleNames.size(), 0);
		
		char base;
		char kmerbuffer[kmersize*2/3];
		char asciibuffer[int(ceil(float(fileSampleNames.size())/6))];

		while (fileStream.read(asciibuffer, sizeof(asciibuffer))){//read the ascii representation of the taxa
			std::string asciibits (asciibuffer, sizeof(asciibuffer));
			std::vector < bool > mybits;
			vectorbool_from_ascii(asciibits, mybits);//read the ascii representation of the taxa to a vector of bools

			while (fileStream.peek()!='\n' && fileStream.get(base)){
				base=toupper(base);
				fileStream.read(kmerbuffer, sizeof(kmerbuffer));
				std::string kmer (kmerbuffer, kmersize*2/3);
				
				for (int i=0; i<fileSampleNames.size(); ++i){ //add the kmer count to all samples that are true in the bitset
					if (mybits[i]){
						kmers[i]++;
						std::map < char, std::vector < int > >::iterator it = basecounts.find(base);//check if the kmer is in the map
						if ( it != basecounts.end() ){//if the kmer is in the map
							it->second[i]++;//increment the count for the base
						}
						else {//if the kmer isn't in the map
							basecounts['O'][i]++;//increment the count for other
						}
					}
				}
			}
			fileStream.ignore(256,'\n');//skip the end ofline character
    	}
		fileStream.close();
		
		for (int i=0; i<fileSampleNames.size(); ++i){ //print the results	
			std::cout << fileSampleNames[i] << "\t" << kmersize << "\t" << kmers[i] << "\t";
			for (std::vector < char >::iterator it=baseorder.begin(); it!=baseorder.end(); ++it){
				std::cout << basecounts[*it][i] << "\t";
			}
			float gccontent=(float(basecounts['C'][i])+float(basecounts['G'][i]))/(float(basecounts['A'][i])+float(basecounts['C'][i])+float(basecounts['G'][i])+float(basecounts['T'][i]));
			std::cout << gccontent << std::endl;
		}
    	fileSampleNames.clear();
	}

	return 0;
		
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x468, %rsp            # imm = 0x468
movq %rdi, -0x168(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x40(%rbp)
movq $0x0, -0x30(%rbp)
leaq -0x488(%rbp), %rdi
callq 0x5410
leaq -0x240(%rbp), %rsi
movl $0x54474341, (%rsi)     # imm = 0x54474341
movw $0x4f4e, 0x4(%rsi)      # imm = 0x4F4E
leaq -0x180(%rbp), %rdi
leaq -0x280(%rbp), %rcx
movl $0x6, %edx
callq 0x1e6ca
movq 0x235b8(%rip), %rbx     # 0x40fc0
leaq 0x16a83(%rip), %rsi     # 0x34492
movl $0x3d, %edx
movq %rbx, %rdi
callq 0x5420
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x53a0
movsbl %al, %esi
movq 0x23586(%rip), %rdi     # 0x40fc0
callq 0x5030
movq %rax, %rdi
callq 0x5250
movq -0x168(%rbp), %rcx
movq (%rcx), %rax
cmpq %rax, 0x8(%rcx)
je 0x1e3ec
leaq -0x220(%rbp), %rcx
movq %rcx, -0xe0(%rbp)
leaq -0x200(%rbp), %rcx
movq %rcx, -0xd8(%rbp)
leaq -0x1e0(%rbp), %rcx
movq %rcx, -0xd0(%rbp)
leaq -0x1c0(%rbp), %rcx
movq %rcx, -0xc8(%rbp)
leaq -0x278(%rbp), %r15
leaq -0x488(%rbp), %r13
leaq -0x160(%rbp), %rbx
leaq -0x280(%rbp), %r12
xorl %r14d, %r14d
movq %r14, %rdi
shlq $0x5, %rdi
addq %rax, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x7f3f
movl %eax, -0x5c(%rbp)
cmpl $0x0, -0x5c(%rbp)
jne 0x1e3e1
movq %r13, %rdi
leaq -0x48(%rbp), %rsi
leaq -0x40(%rbp), %rdx
callq 0x9684
movq -0x38(%rbp), %rsi
subq -0x40(%rbp), %rsi
sarq $0x5, %rsi
movl $0x0, -0x44(%rbp)
leaq -0x80(%rbp), %rdi
leaq -0x44(%rbp), %rdx
leaq -0x50(%rbp), %rcx
callq 0xfedc
movb $0x41, -0x240(%rbp)
movaps -0x80(%rbp), %xmm0
movups %xmm0, -0x238(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x228(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x80(%rbp)
movq $0x0, -0x70(%rbp)
movq -0x38(%rbp), %rsi
subq -0x40(%rbp), %rsi
sarq $0x5, %rsi
movl $0x0, -0x124(%rbp)
leaq -0xc0(%rbp), %rdi
leaq -0x124(%rbp), %rdx
leaq -0x4f(%rbp), %rcx
callq 0xfedc
movb $0x43, -0x220(%rbp)
movaps -0xc0(%rbp), %xmm0
movups %xmm0, -0x218(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0x208(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0xc0(%rbp)
movq $0x0, -0xb0(%rbp)
movq -0x38(%rbp), %rsi
subq -0x40(%rbp), %rsi
sarq $0x5, %rsi
movl $0x0, -0x120(%rbp)
leaq -0xa0(%rbp), %rdi
leaq -0x120(%rbp), %rdx
leaq -0x4e(%rbp), %rcx
callq 0xfedc
movb $0x47, -0x200(%rbp)
movaps -0xa0(%rbp), %xmm0
movups %xmm0, -0x1f8(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x1e8(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0xa0(%rbp)
movq $0x0, -0x90(%rbp)
movq -0x38(%rbp), %rsi
subq -0x40(%rbp), %rsi
sarq $0x5, %rsi
movl $0x0, -0x11c(%rbp)
leaq -0x100(%rbp), %rdi
leaq -0x11c(%rbp), %rdx
leaq -0x4d(%rbp), %rcx
callq 0xfedc
movb $0x54, -0x1e0(%rbp)
movaps -0x100(%rbp), %xmm0
movups %xmm0, -0x1d8(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0x1c8(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x100(%rbp)
movq $0x0, -0xf0(%rbp)
movq -0x38(%rbp), %rsi
subq -0x40(%rbp), %rsi
sarq $0x5, %rsi
movl $0x0, -0x118(%rbp)
movq %rbx, %rdi
leaq -0x118(%rbp), %rdx
leaq -0x4c(%rbp), %rcx
callq 0xfedc
movb $0x4e, -0x1c0(%rbp)
movaps -0x160(%rbp), %xmm0
movups %xmm0, -0x1b8(%rbp)
movq -0x150(%rbp), %rax
movq %rax, -0x1a8(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x160(%rbp)
movq $0x0, -0x150(%rbp)
movq -0x38(%rbp), %rsi
subq -0x40(%rbp), %rsi
sarq $0x5, %rsi
movl $0x0, -0x114(%rbp)
leaq -0x140(%rbp), %rdi
leaq -0x114(%rbp), %rdx
leaq -0x4b(%rbp), %rcx
callq 0xfedc
movq %r14, -0x250(%rbp)
movb $0x4f, -0x1a0(%rbp)
movaps -0x140(%rbp), %xmm0
movups %xmm0, -0x198(%rbp)
movq -0x130(%rbp), %rax
movq %rax, -0x188(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x140(%rbp)
movq $0x0, -0x130(%rbp)
movl $0x6, %edx
movq %r12, %rdi
leaq -0x240(%rbp), %rsi
leaq -0x4a(%rbp), %rcx
leaq -0x49(%rbp), %r8
callq 0x1e70e
movl $0xc0, %r14d
movq -0x258(%rbp,%r14), %rdi
testq %rdi, %rdi
je 0x1dd6e
movq -0x248(%rbp,%r14), %rsi
subq %rdi, %rsi
callq 0x53c0
addq $-0x20, %r14
jne 0x1dd51
movq -0x140(%rbp), %rdi
testq %rdi, %rdi
je 0x1dd8f
movq -0x130(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq -0x160(%rbp), %rdi
testq %rdi, %rdi
je 0x1ddaa
movq -0x150(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq -0x100(%rbp), %rdi
testq %rdi, %rdi
je 0x1ddc5
movq -0xf0(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq -0xa0(%rbp), %rdi
testq %rdi, %rdi
je 0x1dde0
movq -0x90(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq -0xc0(%rbp), %rdi
testq %rdi, %rdi
je 0x1ddfb
movq -0xb0(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq -0x80(%rbp), %rdi
testq %rdi, %rdi
je 0x1de10
movq -0x70(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq -0x38(%rbp), %rsi
subq -0x40(%rbp), %rsi
sarq $0x5, %rsi
movl $0x0, -0x240(%rbp)
leaq -0xa0(%rbp), %rdi
leaq -0x240(%rbp), %rdx
leaq -0x80(%rbp), %rcx
callq 0xfedc
movq %rsp, -0x248(%rbp)
movl -0x48(%rbp), %eax
addl %eax, %eax
cltq
imulq $0x55555556, %rax, %rcx # imm = 0x55555556
movq %rcx, %rax
shrq $0x3f, %rax
shrq $0x20, %rcx
addl %eax, %ecx
movq %rcx, -0x58(%rbp)
leaq 0xf(%rcx), %rax
andq $-0x10, %rax
movq %rsp, %r14
subq %rax, %r14
movq %r14, %rsp
movq -0x38(%rbp), %rax
subq -0x40(%rbp), %rax
sarq $0x5, %rax
js 0x1de89
cvtsi2ss %rax, %xmm0
jmp 0x1de9e
movq %rax, %rcx
shrq %rcx
andl $0x1, %eax
orq %rcx, %rax
cvtsi2ss %rax, %xmm0
addss %xmm0, %xmm0
divss 0x157da(%rip), %xmm0    # 0x33680
callq 0x51e0
cvttss2si %xmm0, %ecx
leaq 0xf(%rcx), %rax
andq $-0x10, %rax
movq %rsp, %rdx
subq %rax, %rdx
movq %rdx, %rsp
movq %rcx, -0x110(%rbp)
movq %rdx, -0xe8(%rbp)
leaq (%rdx,%rcx), %rax
movq %rax, -0x108(%rbp)
movq %r13, %rdi
movq -0xe8(%rbp), %rsi
movq -0x110(%rbp), %rdx
callq 0x5480
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x1e126
leaq -0x70(%rbp), %rax
movq %rax, -0x80(%rbp)
leaq -0x80(%rbp), %rdi
movq -0xe8(%rbp), %rsi
movq -0x108(%rbp), %rdx
callq 0x85fc
xorl %eax, %eax
movq %rax, -0x240(%rbp)
movl %eax, -0x238(%rbp)
movq %rax, -0x230(%rbp)
movl %eax, -0x228(%rbp)
movq %rax, -0x220(%rbp)
leaq -0x80(%rbp), %rdi
leaq -0x240(%rbp), %rsi
callq 0x8993
movq %r13, %rdi
callq 0x5140
cmpl $0xa, %eax
je 0x1e0d7
movq %r13, %rdi
leaq -0x100(%rbp), %rsi
callq 0x5500
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x1e0d7
movsbl -0x100(%rbp), %edi
callq 0x56d0
movb %al, -0x100(%rbp)
movq %r13, %rdi
movq %r14, %rsi
movq -0x58(%rbp), %rdx
callq 0x5480
movl -0x48(%rbp), %eax
addl %eax, %eax
cltq
imulq $0x55555556, %rax, %rax # imm = 0x55555556
movq %rax, %rcx
shrq $0x3f, %rcx
shrq $0x20, %rax
addl %ecx, %eax
movslq %eax, %rdx
leaq -0xb0(%rbp), %rax
movq %rax, -0xc0(%rbp)
addq %r14, %rdx
leaq -0xc0(%rbp), %rdi
movq %r14, %rsi
callq 0x85fc
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
cmpq %rax, %rcx
je 0x1e0a9
xorl %r13d, %r13d
movq -0x240(%rbp), %rdx
movl %r13d, %esi
shrl $0x6, %esi
movq (%rdx,%rsi,8), %rdx
btq %r13, %rdx
jae 0x1e087
movq -0xa0(%rbp), %rdx
incl (%rdx,%r13,4)
movq -0x270(%rbp), %r10
testq %r10, %r10
je 0x1e066
movb -0x100(%rbp), %dl
movq %r15, %rsi
movq %rsi, %rdi
movq %r10, %r8
movb 0x20(%r10), %r9b
xorl %r10d, %r10d
cmpb %dl, %r9b
setl %r10b
movq %r8, %rsi
cmovlq %rdi, %rsi
movq 0x10(%r8,%r10,8), %r10
testq %r10, %r10
jne 0x1e02f
cmpq %r15, %rsi
je 0x1e066
cmpb %dl, %r9b
cmovlq %rdi, %r8
cmpb 0x20(%r8), %dl
jge 0x1e09f
movb $0x4f, -0x160(%rbp)
movq %r12, %rdi
movq %rbx, %rsi
callq 0x1e790
movq (%rax), %rax
incl (%rax,%r13,4)
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
incq %r13
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x5, %rdx
cmpq %r13, %rdx
ja 0x1dff8
jmp 0x1e0a9
movq 0x28(%rsi), %rdx
incl (%rdx,%r13,4)
jmp 0x1e087
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x1e0cb
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x53c0
leaq -0x488(%rbp), %r13
jmp 0x1df53
movl $0x100, %esi            # imm = 0x100
movq %r13, %rdi
movl $0xa, %edx
callq 0x5220
movq -0x240(%rbp), %rdi
testq %rdi, %rdi
je 0x1e104
movq -0x220(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x1ded9
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x53c0
jmp 0x1ded9
movq %r13, %rdi
callq 0x50b0
movq -0x40(%rbp), %r14
movq -0x38(%rbp), %rcx
cmpq %r14, %rcx
je 0x1e34e
xorl %r13d, %r13d
movq %r13, %rax
shlq $0x5, %rax
movq (%r14,%rax), %rsi
movq 0x8(%r14,%rax), %rdx
movq 0x22e67(%rip), %rdi     # 0x40fc0
callq 0x5420
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
leaq 0x16131(%rip), %rsi     # 0x342a1
callq 0x5420
movl -0x48(%rbp), %esi
movq %r14, %rdi
callq 0x5690
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
leaq 0x1610f(%rip), %rsi     # 0x342a1
callq 0x5420
movq -0xa0(%rbp), %rax
movl (%rax,%r13,4), %esi
movq %r14, %rdi
callq 0x5690
movl $0x1, %edx
movq %rax, %rdi
leaq 0x160e8(%rip), %rsi     # 0x342a1
callq 0x5420
movq -0x180(%rbp), %r14
cmpq -0x178(%rbp), %r14
je 0x1e205
movq %r12, %rdi
movq %r14, %rsi
callq 0x1e7f6
movq (%rax), %rax
movl (%rax,%r13,4), %esi
movq 0x22dd9(%rip), %rdi     # 0x40fc0
callq 0x5690
movl $0x1, %edx
movq %rax, %rdi
leaq 0x160a6(%rip), %rsi     # 0x342a1
callq 0x5420
incq %r14
jmp 0x1e1c5
movb $0x43, -0x240(%rbp)
movq %r12, %rdi
leaq -0x240(%rbp), %rsi
callq 0x1e790
movq (%rax), %rax
movl (%rax,%r13,4), %r14d
movb $0x47, -0x80(%rbp)
movq %r12, %rdi
leaq -0x80(%rbp), %rsi
callq 0x1e790
movq (%rax), %rax
cvtsi2ssl (%rax,%r13,4), %xmm0
movss %xmm0, -0x58(%rbp)
movb $0x41, -0xc0(%rbp)
movq %r12, %rdi
leaq -0xc0(%rbp), %rsi
callq 0x1e790
movq (%rax), %rax
movl (%rax,%r13,4), %eax
movl %eax, -0xe8(%rbp)
movb $0x43, -0x160(%rbp)
movq %r12, %rdi
movq %rbx, %rsi
callq 0x1e790
movq (%rax), %rax
movl (%rax,%r13,4), %eax
movl %eax, -0x110(%rbp)
movb $0x47, -0x140(%rbp)
movq %r12, %rdi
leaq -0x140(%rbp), %rsi
callq 0x1e790
movq (%rax), %rax
movl (%rax,%r13,4), %eax
movl %eax, -0x108(%rbp)
movb $0x54, -0x44(%rbp)
movq %r12, %rdi
leaq -0x44(%rbp), %rsi
callq 0x1e790
xorps %xmm0, %xmm0
cvtsi2ss %r14d, %xmm0
cvtsi2ssl -0xe8(%rbp), %xmm1
addss -0x58(%rbp), %xmm0
cvtsi2ssl -0x110(%rbp), %xmm2
addss %xmm1, %xmm2
xorps %xmm1, %xmm1
cvtsi2ssl -0x108(%rbp), %xmm1
movq (%rax), %rax
cvtsi2ssl (%rax,%r13,4), %xmm3
addss %xmm2, %xmm1
addss %xmm1, %xmm3
divss %xmm3, %xmm0
cvtss2sd %xmm0, %xmm0
movq 0x22cbf(%rip), %rdi     # 0x40fc0
callq 0x5610
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x53a0
movsbl %al, %esi
movq %r14, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5250
incq %r13
movq -0x40(%rbp), %r14
movq -0x38(%rbp), %rcx
movq %rcx, %rax
subq %r14, %rax
sarq $0x5, %rax
cmpq %r13, %rax
ja 0x1e142
cmpq %r14, %rcx
je 0x1e388
leaq 0x10(%r14), %r13
movq %rcx, -0x58(%rbp)
movq -0x10(%r13), %rdi
cmpq %rdi, %r13
je 0x1e374
movq (%r13), %rsi
incq %rsi
callq 0x53c0
movq -0x58(%rbp), %rcx
leaq 0x20(%r13), %rax
addq $0x10, %r13
cmpq %rcx, %r13
movq %rax, %r13
jne 0x1e35b
movq %r14, -0x38(%rbp)
movq -0x248(%rbp), %rsp
movq -0xa0(%rbp), %rdi
testq %rdi, %rdi
je 0x1e3aa
movq -0x90(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq %r12, %rdi
callq 0x1e85c
movq -0x250(%rbp), %r14
incq %r14
movq -0x168(%rbp), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
cmpq %r14, %rcx
leaq -0x488(%rbp), %r13
ja 0x1dab2
xorl %ebx, %ebx
cmpl $0x0, -0x5c(%rbp)
setne %bl
jmp 0x1e3ee
xorl %ebx, %ebx
movq -0x180(%rbp), %rdi
testq %rdi, %rdi
je 0x1e409
movq -0x170(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
leaq -0x488(%rbp), %rdi
callq 0x50d0
leaq -0x40(%rbp), %rdi
callq 0xab8e
movl %ebx, %eax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x1e6ac
movq %rax, %rbx
jmp 0x1e6b8
jmp 0x1e5d2
jmp 0x1e5f2
movq %rax, %rbx
jmp 0x1e685
movq %rax, %rbx
xorl %r14d, %r14d
jmp 0x1e547
movq %rax, %rbx
xorl %r14d, %r14d
jmp 0x1e4f5
movq %rax, %rbx
movl $0xc0, %r14d
movq -0x258(%rbp,%r14), %rdi
testq %rdi, %rdi
je 0x1e48d
movq -0x248(%rbp,%r14), %rsi
subq %rdi, %rsi
callq 0x53c0
addq $-0x20, %r14
jne 0x1e470
movq -0x140(%rbp), %rdi
movb $0x1, %r14b
testq %rdi, %rdi
je 0x1e4cc
movq -0x130(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
jmp 0x1e4cc
movq %rax, %rbx
xorl %r14d, %r14d
jmp 0x1e570
movq %rax, %rbx
xorl %r14d, %r14d
jmp 0x1e51e
movq %rax, %rbx
xorl %r14d, %r14d
movq -0x160(%rbp), %rdi
testq %rdi, %rdi
je 0x1e4e7
movq -0x150(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
leaq -0x1a0(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0x100(%rbp), %rdi
testq %rdi, %rdi
je 0x1e510
movq -0xf0(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq -0xc8(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0xa0(%rbp), %rdi
testq %rdi, %rdi
je 0x1e539
movq -0x90(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq -0xd0(%rbp), %rax
movq %rax, -0xd8(%rbp)
movq -0xc0(%rbp), %rdi
testq %rdi, %rdi
je 0x1e562
movq -0xb0(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq -0xd8(%rbp), %rax
movq %rax, -0xe0(%rbp)
movq -0x80(%rbp), %rdi
testq %rdi, %rdi
je 0x1e585
movq -0x70(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
leaq -0x240(%rbp), %rax
cmpq -0xe0(%rbp), %rax
sete %al
orb %al, %r14b
jne 0x1e691
movq -0xe0(%rbp), %r14
movq -0x18(%r14), %rdi
testq %rdi, %rdi
je 0x1e5bb
movq -0x8(%r14), %rsi
subq %rdi, %rsi
callq 0x53c0
addq $-0x20, %r14
leaq -0x240(%rbp), %rax
cmpq %rax, %r14
jne 0x1e5a6
jmp 0x1e691
jmp 0x1e5d2
movq %rax, %rbx
jmp 0x1e691
jmp 0x1e5f2
jmp 0x1e5f2
jmp 0x1e5f2
jmp 0x1e5f2
jmp 0x1e5f2
jmp 0x1e5f2
jmp 0x1e5f2
jmp 0x1e5f2
jmp 0x1e5f7
jmp 0x1e5f2
jmp 0x1e5f2
jmp 0x1e5f7
movq %rax, %rbx
jmp 0x1e66a
movq %rax, %rbx
jmp 0x1e621
movq %rax, %rbx
movq -0xc0(%rbp), %rdi
leaq -0xb0(%rbp), %rax
cmpq %rax, %rdi
je 0x1e621
movq -0xb0(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0x240(%rbp), %rdi
testq %rdi, %rdi
je 0x1e651
movq -0x220(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq $0x0, -0x240(%rbp)
movl $0x0, -0x238(%rbp)
movq -0x80(%rbp), %rdi
leaq -0x70(%rbp), %rax
cmpq %rax, %rdi
je 0x1e66a
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0xa0(%rbp), %rdi
testq %rdi, %rdi
je 0x1e685
movq -0x90(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
leaq -0x280(%rbp), %rdi
callq 0x1e85c
movq -0x180(%rbp), %rdi
testq %rdi, %rdi
je 0x1e6ac
movq -0x170(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
leaq -0x488(%rbp), %rdi
callq 0x50d0
leaq -0x40(%rbp), %rdi
callq 0xab8e
movq %rbx, %rdi
callq 0x56a0
nop