// File: /workspace/github_cpp_makefile_star2_O1/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 $0x458, %rsp            # imm = 0x458
movq %rdi, -0x158(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x40(%rbp)
movq $0x0, -0x30(%rbp)
leaq -0x480(%rbp), %rdi
callq 0x5410
leaq -0x230(%rbp), %rsi
movl $0x54474341, (%rsi)     # imm = 0x54474341
movw $0x4f4e, 0x4(%rsi)      # imm = 0x4F4E
leaq -0x170(%rbp), %rdi
leaq -0x278(%rbp), %rcx
movl $0x6, %edx
callq 0x1ea4c
movq 0x2328c(%rip), %rbx     # 0x40fc0
leaq 0x16767(%rip), %rsi     # 0x344a2
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 0x2325a(%rip), %rdi     # 0x40fc0
callq 0x5030
movq %rax, %rdi
callq 0x5250
movq -0x158(%rbp), %rcx
movq (%rcx), %rax
cmpq %rax, 0x8(%rcx)
setne %r14b
je 0x1e744
leaq -0x210(%rbp), %rcx
movq %rcx, -0xd0(%rbp)
leaq -0x1f0(%rbp), %rcx
movq %rcx, -0xc8(%rbp)
leaq -0x1d0(%rbp), %rcx
movq %rcx, -0xc0(%rbp)
leaq -0x1b0(%rbp), %rcx
movq %rcx, -0xb8(%rbp)
leaq -0x270(%rbp), %r15
leaq -0x480(%rbp), %rbx
leaq -0x90(%rbp), %r13
movq $0x0, -0x118(%rbp)
movq -0x118(%rbp), %rdi
shlq $0x5, %rdi
addq %rax, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x7f73
testl %eax, %eax
jne 0x1e744
movq %rbx, %rdi
leaq -0x48(%rbp), %rsi
leaq -0x40(%rbp), %rdx
callq 0x96e2
movq -0x38(%rbp), %rsi
subq -0x40(%rbp), %rsi
sarq $0x5, %rsi
movl $0x0, -0x44(%rbp)
movq %r13, %rdi
leaq -0x44(%rbp), %rdx
leaq -0x50(%rbp), %rcx
callq 0x100da
movb $0x41, -0x230(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x228(%rbp)
movups -0x88(%rbp), %xmm0
movups %xmm0, -0x220(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x90(%rbp)
movq $0x0, -0x80(%rbp)
movq -0x38(%rbp), %rsi
subq -0x40(%rbp), %rsi
sarq $0x5, %rsi
movl $0x0, -0x134(%rbp)
leaq -0xb0(%rbp), %rdi
leaq -0x134(%rbp), %rdx
leaq -0x4f(%rbp), %rcx
callq 0x100da
leaq -0x278(%rbp), %rbx
movb $0x43, -0x210(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0x208(%rbp)
movups -0xa8(%rbp), %xmm0
movups %xmm0, -0x200(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0xb0(%rbp)
movq $0x0, -0xa0(%rbp)
movq -0x38(%rbp), %rsi
subq -0x40(%rbp), %rsi
sarq $0x5, %rsi
movl $0x0, -0x130(%rbp)
leaq -0x70(%rbp), %rdi
leaq -0x130(%rbp), %rdx
leaq -0x4e(%rbp), %rcx
callq 0x100da
movb $0x47, -0x1f0(%rbp)
movq -0x70(%rbp), %rax
movq %rax, -0x1e8(%rbp)
movups -0x68(%rbp), %xmm0
movups %xmm0, -0x1e0(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x70(%rbp)
movq $0x0, -0x60(%rbp)
movq -0x38(%rbp), %rsi
subq -0x40(%rbp), %rsi
sarq $0x5, %rsi
movl $0x0, -0x12c(%rbp)
leaq -0xf0(%rbp), %rdi
leaq -0x12c(%rbp), %rdx
leaq -0x4d(%rbp), %rcx
callq 0x100da
movb $0x54, -0x1d0(%rbp)
movq -0xf0(%rbp), %rax
movq %rax, -0x1c8(%rbp)
movups -0xe8(%rbp), %xmm0
movups %xmm0, -0x1c0(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0xf0(%rbp)
movq $0x0, -0xe0(%rbp)
movq -0x38(%rbp), %rsi
subq -0x40(%rbp), %rsi
sarq $0x5, %rsi
movl $0x0, -0x128(%rbp)
leaq -0x110(%rbp), %rdi
leaq -0x128(%rbp), %rdx
leaq -0x4c(%rbp), %rcx
callq 0x100da
movb $0x4e, -0x1b0(%rbp)
movq -0x110(%rbp), %rax
movq %rax, -0x1a8(%rbp)
movups -0x108(%rbp), %xmm0
movups %xmm0, -0x1a0(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x110(%rbp)
movq $0x0, -0x100(%rbp)
movq -0x38(%rbp), %rsi
subq -0x40(%rbp), %rsi
sarq $0x5, %rsi
movl $0x0, -0x124(%rbp)
leaq -0x150(%rbp), %rdi
leaq -0x124(%rbp), %rdx
leaq -0x4b(%rbp), %rcx
callq 0x100da
movb $0x4f, -0x190(%rbp)
movq -0x150(%rbp), %rax
movq %rax, -0x188(%rbp)
movups -0x148(%rbp), %xmm0
movups %xmm0, -0x180(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x150(%rbp)
movq $0x0, -0x140(%rbp)
movl $0x6, %edx
movq %rbx, %rdi
leaq -0x230(%rbp), %rsi
leaq -0x4a(%rbp), %rcx
leaq -0x49(%rbp), %r8
callq 0x1ea90
movl $0xc0, %ebx
movq -0x248(%rbp,%rbx), %rdi
testq %rdi, %rdi
je 0x1e09a
movq -0x238(%rbp,%rbx), %rsi
subq %rdi, %rsi
callq 0x53c0
addq $-0x20, %rbx
jne 0x1e07d
movq -0x150(%rbp), %rdi
testq %rdi, %rdi
je 0x1e0bb
movq -0x140(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq -0x110(%rbp), %rdi
testq %rdi, %rdi
leaq -0x480(%rbp), %rbx
je 0x1e0dd
movq -0x100(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq -0xf0(%rbp), %rdi
testq %rdi, %rdi
je 0x1e0f8
movq -0xe0(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq -0x70(%rbp), %rdi
testq %rdi, %rdi
je 0x1e10d
movq -0x60(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq -0xb0(%rbp), %rdi
testq %rdi, %rdi
je 0x1e128
movq -0xa0(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq -0x90(%rbp), %rdi
testq %rdi, %rdi
je 0x1e140
movq -0x80(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq -0x38(%rbp), %rsi
subq -0x40(%rbp), %rsi
sarq $0x5, %rsi
movl $0x0, -0x230(%rbp)
leaq -0x70(%rbp), %rdi
leaq -0x230(%rbp), %rdx
movq %r13, %rcx
callq 0x100da
movq %rsp, -0x238(%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, -0x120(%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 0x1e1b8
cvtsi2ss %rax, %xmm0
jmp 0x1e1cd
movq %rax, %rcx
shrq %rcx
andl $0x1, %eax
orq %rcx, %rax
cvtsi2ss %rax, %xmm0
addss %xmm0, %xmm0
divss 0x154ab(%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, -0x248(%rbp)
movq %rdx, -0xd8(%rbp)
leaq (%rdx,%rcx), %rax
movq %rax, -0x240(%rbp)
movq %rbx, %rdi
movq -0xd8(%rbp), %rsi
movq -0x248(%rbp), %rdx
callq 0x5480
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x1e47d
leaq -0x80(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq -0x90(%rbp), %r12
movq %r12, %rdi
movq -0xd8(%rbp), %rsi
movq -0x240(%rbp), %rdx
callq 0x862a
xorl %eax, %eax
movq %rax, -0x230(%rbp)
movl %eax, -0x228(%rbp)
movq %rax, -0x220(%rbp)
movl %eax, -0x218(%rbp)
movq %rax, -0x210(%rbp)
movq %r12, %rdi
leaq -0x230(%rbp), %rsi
callq 0x89ef
leaq -0xf0(%rbp), %r13
movq %rbx, %rdi
callq 0x5140
cmpl $0xa, %eax
je 0x1e408
movq %rbx, %rdi
movq %r13, %rsi
callq 0x5500
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x1e408
movsbl -0xf0(%rbp), %edi
callq 0x56d0
movb %al, -0xf0(%rbp)
movq %rbx, %rdi
movq %r14, %rsi
movq -0x120(%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 -0xa0(%rbp), %rax
movq %rax, -0xb0(%rbp)
addq %r14, %rdx
leaq -0xb0(%rbp), %rdi
movq %r14, %rsi
callq 0x862a
movq -0x38(%rbp), %rax
cmpq -0x40(%rbp), %rax
je 0x1e3da
xorl %ebx, %ebx
movq -0x230(%rbp), %rax
movq %rbx, %rcx
shrq $0x6, %rcx
movq (%rax,%rcx,8), %rax
btq %rbx, %rax
jae 0x1e3c2
movq -0x70(%rbp), %rax
incl (%rax,%rbx,4)
movq -0x268(%rbp), %rcx
movq %r15, %rax
testq %rcx, %rcx
je 0x1e37f
movb -0xf0(%rbp), %dl
movq %r15, %rax
xorl %esi, %esi
cmpb %dl, 0x20(%rcx)
setl %sil
cmovgeq %rcx, %rax
movq 0x10(%rcx,%rsi,8), %rcx
testq %rcx, %rcx
jne 0x1e368
movq %r15, %rcx
cmpq %r15, %rax
je 0x1e397
movb -0xf0(%rbp), %cl
cmpb 0x20(%rax), %cl
cmovlq %r15, %rax
movq %rax, %rcx
cmpq %r15, %rcx
je 0x1e3a2
movq 0x28(%rcx), %rax
jmp 0x1e3bf
movb $0x4f, -0x110(%rbp)
leaq -0x278(%rbp), %rdi
leaq -0x110(%rbp), %rsi
callq 0x1eb12
movq (%rax), %rax
incl (%rax,%rbx,4)
incq %rbx
movq -0x38(%rbp), %rax
subq -0x40(%rbp), %rax
sarq $0x5, %rax
cmpq %rbx, %rax
ja 0x1e331
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x1e3fc
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x53c0
leaq -0x480(%rbp), %rbx
jmp 0x1e291
movl $0x100, %esi            # imm = 0x100
movq %rbx, %rdi
movl $0xa, %edx
callq 0x5220
movq -0x230(%rbp), %rdi
testq %rdi, %rdi
je 0x1e458
movq -0x210(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
xorl %eax, %eax
movq %rax, -0x230(%rbp)
movl %eax, -0x228(%rbp)
movq %rax, -0x220(%rbp)
movl %eax, -0x218(%rbp)
movq %rax, -0x210(%rbp)
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0x1e208
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x53c0
jmp 0x1e208
movq %rbx, %rdi
callq 0x50b0
movq -0x40(%rbp), %rbx
movq -0x38(%rbp), %r14
cmpq %rbx, %r14
je 0x1e6a9
xorl %r13d, %r13d
movq %r13, %rax
shlq $0x5, %rax
movq (%rbx,%rax), %rsi
movq 0x8(%rbx,%rax), %rdx
movq 0x22b10(%rip), %rbx     # 0x40fc0
movq %rbx, %rdi
callq 0x5420
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
leaq 0x15de7(%rip), %rsi     # 0x342b1
callq 0x5420
movl -0x48(%rbp), %esi
movq %r14, %rdi
callq 0x5690
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
leaq 0x15dc5(%rip), %rsi     # 0x342b1
callq 0x5420
movq -0x70(%rbp), %rax
movl (%rax,%r13,4), %esi
movq %r14, %rdi
callq 0x5690
movl $0x1, %edx
movq %rax, %rdi
leaq 0x15da1(%rip), %rsi     # 0x342b1
callq 0x5420
movq -0x170(%rbp), %r14
cmpq -0x168(%rbp), %r14
je 0x1e55c
leaq -0x278(%rbp), %rdi
movq %r14, %rsi
callq 0x1eb76
movq (%rax), %rax
movl (%rax,%r13,4), %esi
movq %rbx, %rdi
callq 0x5690
movl $0x1, %edx
movq %rax, %rdi
leaq 0x15d5f(%rip), %rsi     # 0x342b1
callq 0x5420
incq %r14
jmp 0x1e51c
movb $0x43, -0x230(%rbp)
leaq -0x278(%rbp), %r14
movq %r14, %rdi
leaq -0x230(%rbp), %rsi
callq 0x1eb12
movq (%rax), %rax
movl (%rax,%r13,4), %ebx
movb $0x47, -0x90(%rbp)
movq %r14, %rdi
leaq -0x90(%rbp), %rsi
callq 0x1eb12
movq (%rax), %rax
cvtsi2ssl (%rax,%r13,4), %xmm0
movss %xmm0, -0x120(%rbp)
movb $0x41, -0xb0(%rbp)
movq %r14, %rdi
leaq -0xb0(%rbp), %rsi
callq 0x1eb12
movq (%rax), %rax
movl (%rax,%r13,4), %r12d
movb $0x43, -0x110(%rbp)
movq %r14, %rdi
leaq -0x110(%rbp), %rsi
callq 0x1eb12
movq (%rax), %rax
movl (%rax,%r13,4), %eax
movl %eax, -0xd8(%rbp)
movb $0x47, -0x150(%rbp)
movq %r14, %rdi
leaq -0x150(%rbp), %rsi
callq 0x1eb12
movq (%rax), %rax
movq %r14, %rdi
movl (%rax,%r13,4), %r14d
movb $0x54, -0x44(%rbp)
leaq -0x44(%rbp), %rsi
callq 0x1eb12
xorps %xmm0, %xmm0
cvtsi2ss %ebx, %xmm0
cvtsi2ss %r12d, %xmm1
addss -0x120(%rbp), %xmm0
cvtsi2ssl -0xd8(%rbp), %xmm2
addss %xmm1, %xmm2
xorps %xmm1, %xmm1
cvtsi2ss %r14d, %xmm1
movq (%rax), %rax
cvtsi2ssl (%rax,%r13,4), %xmm3
addss %xmm2, %xmm1
addss %xmm1, %xmm3
divss %xmm3, %xmm0
cvtss2sd %xmm0, %xmm0
movq 0x22964(%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), %rbx
movq -0x38(%rbp), %r14
movq %r14, %rax
subq %rbx, %rax
sarq $0x5, %rax
cmpq %r13, %rax
ja 0x1e499
cmpq %rbx, %r14
je 0x1e6db
leaq 0x10(%rbx), %r13
movq -0x10(%r13), %rdi
cmpq %rdi, %r13
je 0x1e6c7
movq (%r13), %rsi
incq %rsi
callq 0x53c0
leaq 0x20(%r13), %rax
addq $0x10, %r13
cmpq %r14, %r13
movq %rax, %r13
jne 0x1e6b2
movq %rbx, -0x38(%rbp)
movq -0x238(%rbp), %rsp
movq -0x70(%rbp), %rdi
testq %rdi, %rdi
je 0x1e6f7
movq -0x60(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
leaq -0x278(%rbp), %rdi
callq 0x1ebda
movq -0x118(%rbp), %rsi
incq %rsi
movq -0x158(%rbp), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
movq %rsi, -0x118(%rbp)
cmpq %rsi, %rcx
seta %r14b
leaq -0x480(%rbp), %rbx
leaq -0x90(%rbp), %r13
ja 0x1dde3
movq -0x170(%rbp), %rdi
testq %rdi, %rdi
je 0x1e75f
movq -0x160(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movzbl %r14b, %ebx
andl $0x1, %ebx
leaq -0x480(%rbp), %rdi
callq 0x50d0
leaq -0x40(%rbp), %rdi
callq 0xabee
movl %ebx, %eax
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x1ea2f
movq %rax, %rbx
jmp 0x1ea3b
jmp 0x1e947
jmp 0x1e967
movq %rax, %rbx
xorl %r14d, %r14d
leaq -0x230(%rbp), %rax
movq %rax, -0xd0(%rbp)
jmp 0x1e8f8
movq %rax, %rbx
jmp 0x1ea08
movq %rax, %rbx
xorl %r14d, %r14d
jmp 0x1e8b7
movq %rax, %rbx
xorl %r14d, %r14d
jmp 0x1e86b
movq %rax, %rbx
movl $0xc0, %r14d
movq -0x248(%rbp,%r14), %rdi
testq %rdi, %rdi
je 0x1e803
movq -0x238(%rbp,%r14), %rsi
subq %rdi, %rsi
callq 0x53c0
addq $-0x20, %r14
jne 0x1e7e6
movq -0x150(%rbp), %rdi
movb $0x1, %r14b
testq %rdi, %rdi
je 0x1e842
movq -0x140(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
jmp 0x1e842
movq %rax, %rbx
xorl %r14d, %r14d
jmp 0x1e8e0
movq %rax, %rbx
xorl %r14d, %r14d
jmp 0x1e894
movq %rax, %rbx
xorl %r14d, %r14d
movq -0x110(%rbp), %rdi
testq %rdi, %rdi
je 0x1e85d
movq -0x100(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
leaq -0x190(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0xf0(%rbp), %rdi
testq %rdi, %rdi
je 0x1e886
movq -0xe0(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq -0xb8(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq -0x70(%rbp), %rdi
testq %rdi, %rdi
je 0x1e8a9
movq -0x60(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq -0xc0(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0xb0(%rbp), %rdi
testq %rdi, %rdi
je 0x1e8d2
movq -0xa0(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
movq -0xc8(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0x90(%rbp), %rdi
testq %rdi, %rdi
je 0x1e8f8
movq -0x80(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
leaq -0x230(%rbp), %rax
movq -0xd0(%rbp), %r15
cmpq %r15, %rax
sete %al
testb %r14b, %r14b
jne 0x1ea14
testb %al, %al
jne 0x1ea14
leaq -0x230(%rbp), %r14
movq -0x18(%r15), %rdi
testq %rdi, %rdi
je 0x1e939
movq -0x8(%r15), %rsi
subq %rdi, %rsi
callq 0x53c0
addq $-0x20, %r15
cmpq %r14, %r15
jne 0x1e924
jmp 0x1ea14
movq %rax, %rbx
jmp 0x1ea14
jmp 0x1e967
jmp 0x1e967
jmp 0x1e967
jmp 0x1e967
jmp 0x1e967
jmp 0x1e967
jmp 0x1e967
jmp 0x1e967
jmp 0x1e96f
jmp 0x1e967
jmp 0x1e967
jmp 0x1e96f
movq %rax, %rbx
jmp 0x1e9f3
movq %rax, %rbx
jmp 0x1e999
movq %rax, %rbx
movq -0xb0(%rbp), %rdi
leaq -0xa0(%rbp), %rax
cmpq %rax, %rdi
je 0x1e999
movq -0xa0(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0x230(%rbp), %rdi
testq %rdi, %rdi
je 0x1e9d7
movq -0x210(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
xorl %eax, %eax
movq %rax, -0x230(%rbp)
movl %eax, -0x228(%rbp)
movq %rax, -0x220(%rbp)
movl %eax, -0x218(%rbp)
movq %rax, -0x210(%rbp)
movq -0x90(%rbp), %rdi
leaq -0x80(%rbp), %rax
cmpq %rax, %rdi
je 0x1e9f3
movq -0x80(%rbp), %rsi
incq %rsi
callq 0x53c0
movq -0x70(%rbp), %rdi
testq %rdi, %rdi
je 0x1ea08
movq -0x60(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
leaq -0x278(%rbp), %rdi
callq 0x1ebda
movq -0x170(%rbp), %rdi
testq %rdi, %rdi
je 0x1ea2f
movq -0x160(%rbp), %rsi
subq %rdi, %rsi
callq 0x53c0
leaq -0x480(%rbp), %rdi
callq 0x50d0
leaq -0x40(%rbp), %rdi
callq 0xabee
movq %rbx, %rdi
callq 0x56a0