// File: /workspace/github_cpp_makefile_star2_O1/prophyle[P]prophasm/src/prophasm.cpp
// Function: main
int main (int argc, char* argv[])
{
	int32_t k=-1;

	std::string intersection_fn;
	std::vector<std::string> in_fns;
	std::vector<std::string> out_fns;
	std::string stats_fn;
	FILE *fstats=nullptr;

	if (argc<2){
		print_help();
		exit(1);
	}

	bool compute_intersection=false;
	bool compute_output=false;
	bool verbose=true;
	int32_t no_sets=0;

	int c;
	while ((c = getopt(argc, (char *const *)argv, "hSi:o:x:s:k:")) >= 0) {
		switch (c) {
			case 'h': {
				print_help();
				exit(0);
				break;
			}
			case 'i': {
				in_fns.push_back(std::string(optarg));
				no_sets+=1;
				break;
			}
			case 'o': {
				out_fns.push_back(std::string(optarg));
				compute_output=true;
				break;
			}
			case 'x': {
				intersection_fn=std::string(optarg);
				compute_intersection=true;
				break;
			}
			case 's': {
				stats_fn=std::string(optarg);
				if(stats_fn=="-"){
					fstats = stdin;
				}
				else {
					fstats = fopen(stats_fn.c_str(), "w+");
					test_file(fstats, stats_fn);
				}

				break;
			}
			case 'S': {
				verbose=false;

				break;
			}
			case 'k': {
				k = atoi(optarg);
				break;
			}
			case '?': {
				std::cerr<<"Unknown error"<<std::endl;
				exit(1);
				break;
			}
		}
	}

	if (k == -1){
		print_help();
		std::cerr << "K-mer size (-k) is required." << std::endl;
		return EXIT_FAILURE;
	}


	if (k <= 0 || max_allowed_kmer_length<k){
		std::cerr << "K-mer size must satisfy 1 <= k <= " << max_allowed_kmer_length << "." << std::endl;
		return EXIT_FAILURE;
	}

	if (compute_output && (static_cast<int32_t>(out_fns.size())!=no_sets)){
		std::cerr << "If -o is used, it must be used as many times as -i (" << no_sets << "!=" << out_fns.size() << ")." << std::endl;
		return EXIT_FAILURE;
	}

	if(fstats){
		fprintf(fstats,"# cmd: %s",argv[0]);

		for (int32_t i=1;i<argc;i++){
			fprintf(fstats," %s",argv[i]);
		}
		fprintf(fstats,"\n");
	}

	std::vector< std::unordered_set<nkmer_t> > full_sets(no_sets);

	if(verbose){
		std::cerr << "=====================" << std::endl;
		std::cerr << "1) Loading references" << std::endl;
		std::cerr << "=====================" << std::endl;
	}


	std::vector<int32_t> in_sizes;
	std::vector<int32_t> out_sizes;

	for(int32_t i=0;i<no_sets;i++){
		kmers_from_fasta(in_fns[i],full_sets[i],k,fstats,verbose);
		//debug_print_kmer_set(full_sets[i],k);
		in_sizes.insert(in_sizes.end(),full_sets[i].size());
	}

	if(verbose){
		std::cerr << "===============" << std::endl;
		std::cerr << "2) Intersecting" << std::endl;
		std::cerr << "===============" << std::endl;
	}


	std::unordered_set<nkmer_t> intersection;

	int32_t intersection_size = 0;

	if(compute_intersection){
		if (verbose){
			std::cerr << "2.1) Computing intersection" << std::endl;
		}

		find_intersection(full_sets, intersection);
		intersection_size  = intersection.size();
		if (verbose){
			std::cerr << "   intersection size: " <<  intersection_size << std::endl;
		}
		if(compute_output){
			if (verbose){
				std::cerr << "2.2) Removing this intersection from all kmer sets" << std::endl;
			}
			remove_subset(full_sets, intersection);
		}
	}

	if(compute_output){
		for (int32_t i=0;i<no_sets;i++){
			out_sizes.insert(out_sizes.end(),full_sets[i].size());
			assert(in_sizes[i]==out_sizes[i]+intersection_size);
			if (verbose){
				std::cerr << in_sizes[i] << " " << out_sizes[i] << " ...inter:" << intersection_size << std::endl;
			}
		}
	}

	if(verbose){
		std::cerr << "=============" << std::endl;
		std::cerr << "3) Assembling" << std::endl;
		std::cerr << "=============" << std::endl;
	}

	if(compute_output){
		for(int32_t i=0;i<static_cast<int32_t>(in_fns.size());i++){
			assemble(out_fns[i], full_sets[i], k, fstats, verbose);
		}
	}
	if(compute_intersection){
		assemble(intersection_fn, intersection, k, fstats, verbose);
	}

	if (fstats){
		fclose(fstats);
	}

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x178, %rsp            # imm = 0x178
leaq 0x168(%rsp), %rax
movq %rax, -0x10(%rax)
xorl %r14d, %r14d
movq %r14, -0x8(%rax)
movb %r14b, (%rax)
movq %r14, 0xe0(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0xd0(%rsp)
movq %r14, 0xc0(%rsp)
movaps %xmm0, 0xb0(%rsp)
leaq 0x128(%rsp), %rax
movq %rax, -0x10(%rax)
movq %r14, -0x8(%rax)
movb %r14b, (%rax)
cmpl $0x2, %edi
jl 0x3509
movq %rsi, %r12
movl %edi, %ebp
leaq 0x3c06(%rip), %rdx      # 0x64d0
callq 0x2070
testl %eax, %eax
js 0x2b7a
movb $0x1, %cl
movl %ecx, 0x4(%rsp)
movq $0x0, 0x8(%rsp)
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq %rcx, 0x28(%rsp)
leaq 0x50(%rsp), %rbx
leaq 0x3714(%rip), %r14      # 0x6010
leaq 0x138(%rsp), %r13
movq $0x0, 0x20(%rsp)
movq $0x0, 0x18(%rsp)
movq $0x0, 0x30(%rsp)
cmpl $0x67, %eax
jle 0x2989
leal -0x68(%rax), %ecx
cmpl $0xb, %ecx
ja 0x299f
movslq (%r14,%rcx,4), %rax
addq %r14, %rax
jmpq *%rax
movq 0x6684(%rip), %rax      # 0x8fc0
movq (%rax), %rsi
movq %rbx, %rdi
leaq 0x38(%rsp), %rdx
callq 0x38ac
leaq 0xd0(%rsp), %rdi
movq %rbx, %rsi
callq 0x4890
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x2978
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x2230
movq 0x20(%rsp), %rax
incl %eax
movq %rax, 0x20(%rsp)
jmp 0x2b50
cmpl $0x53, %eax
jne 0x2b37
movl $0x0, 0x4(%rsp)
jmp 0x2b50
cmpl $0x78, %eax
jne 0x2b50
movq 0x6611(%rip), %rax      # 0x8fc0
movq (%rax), %rsi
movq %rbx, %rdi
leaq 0x38(%rsp), %rdx
callq 0x38ac
leaq 0x158(%rsp), %rdi
movq %rbx, %rsi
callq 0x2290
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x29eb
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x2230
movb $0x1, %al
movq %rax, 0x30(%rsp)
jmp 0x2b50
movq 0x65c2(%rip), %rax      # 0x8fc0
movq (%rax), %rsi
movq %rbx, %rdi
leaq 0x38(%rsp), %rdx
callq 0x38ac
leaq 0xb0(%rsp), %rdi
movq %rbx, %rsi
callq 0x4890
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x2a3a
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x2230
movb $0x1, %al
movq %rax, 0x18(%rsp)
jmp 0x2b50
movq 0x6573(%rip), %rax      # 0x8fc0
movq (%rax), %rdi
callq 0x2310
movq %rax, 0x28(%rsp)
jmp 0x2b50
movq 0x655a(%rip), %rax      # 0x8fc0
movq (%rax), %rsi
movq %rbx, %rdi
leaq 0x38(%rsp), %rdx
callq 0x38ac
leaq 0x118(%rsp), %rdi
movq %rbx, %rsi
callq 0x2290
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x2aa2
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x2230
leaq 0x118(%rsp), %rdi
leaq 0x3a2c(%rip), %rsi      # 0x64dd
callq 0x2090
testl %eax, %eax
je 0x2b41
movq 0x118(%rsp), %rdi
leaq 0x3a12(%rip), %rsi      # 0x64df
callq 0x2260
movq %rax, %r15
leaq 0x148(%rsp), %rax
movq %rax, 0x138(%rsp)
movq 0x118(%rsp), %rsi
movq 0x120(%rsp), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x4770
movq %r15, 0x8(%rsp)
movq %r15, %rdi
movq %r13, %rsi
callq 0x2734
movq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rax
cmpq %rax, %rdi
je 0x2b50
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x2230
jmp 0x2b50
cmpl $0x3f, %eax
jne 0x2b50
jmp 0x34e3
movq 0x6488(%rip), %rax      # 0x8fd0
movq (%rax), %rax
movq %rax, 0x8(%rsp)
movl %ebp, %edi
movq %r12, %rsi
leaq 0x3974(%rip), %rdx      # 0x64d0
callq 0x2070
testl %eax, %eax
jns 0x291f
movq 0x28(%rsp), %r13
movq 0x8(%rsp), %rbx
movq 0x20(%rsp), %r14
jmp 0x2b9a
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
movb $0x1, %al
movl %eax, 0x4(%rsp)
movq $0x0, 0x30(%rsp)
movq $0x0, 0x18(%rsp)
xorl %ebx, %ebx
cmpl $-0x1, %r13d
je 0x2c03
leal -0x21(%r13), %eax
cmpl $-0x21, %eax
ja 0x2c54
movq 0x643c(%rip), %rdi      # 0x8ff0
leaq 0x3952(%rip), %rsi      # 0x650d
movl $0x22, %edx
callq 0x2250
movq 0x6424(%rip), %rdi      # 0x8ff0
movl $0x20, %esi
callq 0x2370
movq %rax, %rbx
leaq 0x38e8(%rip), %rsi      # 0x64c8
movl $0x1, %edx
movq %rax, %rdi
callq 0x2250
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21f0
jmp 0x2c37
callq 0x253c
movq 0x63e1(%rip), %rbx      # 0x8ff0
leaq 0x38da(%rip), %rsi      # 0x64f0
movl $0x1c, %edx
movq %rbx, %rdi
callq 0x2250
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movl $0x1, %ebx
movq %rax, %rdi
callq 0x2170
jmp 0x33b6
testb $0x1, 0x18(%rsp)
je 0x2c78
movq 0xb8(%rsp), %rax
subq 0xb0(%rsp), %rax
shrq $0x5, %rax
cmpl %eax, %r14d
jne 0x342e
testq %rbx, %rbx
movq %r14, 0x20(%rsp)
je 0x2cdc
movq (%r12), %rdx
leaq 0x38db(%rip), %rsi      # 0x6568
movq %rbx, %rdi
xorl %eax, %eax
callq 0x22e0
cmpl $0x3, %ebp
movl $0x2, %r14d
cmovgel %ebp, %r14d
movl $0x1, %r15d
leaq 0x38bd(%rip), %rbp      # 0x656e
movq (%r12,%r15,8), %rdx
movq %rbx, %rdi
movq %rbp, %rsi
xorl %eax, %eax
callq 0x22e0
incq %r15
cmpq %r15, %r14
jne 0x2cb1
movl $0xa, %edi
movq %rbx, %rsi
callq 0x22a0
movq 0x20(%rsp), %r14
movslq %r14d, %rsi
leaq 0x38(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0x38ea
movq %rbx, 0x8(%rsp)
movq %r13, 0x28(%rsp)
testb $0x1, 0x4(%rsp)
je 0x2dd5
movq 0x62e6(%rip), %rbx      # 0x8ff0
leaq 0x3861(%rip), %rsi      # 0x6572
movl $0x15, %edx
movq %rbx, %rdi
callq 0x2250
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq 0x62b4(%rip), %rdi      # 0x8ff0
callq 0x2040
movq %rax, %rdi
callq 0x2170
movq 0x62a0(%rip), %rbx      # 0x8ff0
leaq 0x3831(%rip), %rsi      # 0x6588
movl $0x15, %edx
movq %rbx, %rdi
callq 0x2250
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq 0x626e(%rip), %rdi      # 0x8ff0
callq 0x2040
movq %rax, %rdi
callq 0x2170
movq 0x625a(%rip), %rbx      # 0x8ff0
leaq 0x37d5(%rip), %rsi      # 0x6572
movl $0x15, %edx
movq %rbx, %rdi
callq 0x2250
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq 0x6228(%rip), %rdi      # 0x8ff0
callq 0x2040
movq %rax, %rdi
callq 0x2170
xorps %xmm0, %xmm0
movaps %xmm0, 0xf0(%rsp)
xorl %eax, %eax
movq %rax, 0x100(%rsp)
movq %rax, 0xa0(%rsp)
movaps %xmm0, 0x90(%rsp)
movl %r14d, %eax
movq %rax, 0x110(%rsp)
movzbl 0x4(%rsp), %eax
movl %eax, 0x14(%rsp)
testl %r14d, %r14d
jle 0x2e92
movq 0x110(%rsp), %r14
shlq $0x5, %r14
movl $0x18, %r13d
xorl %ebp, %ebp
movl 0x14(%rsp), %ebx
andl $0x1, %ebx
leaq 0xf0(%rsp), %r15
leaq 0x50(%rsp), %r12
movq 0xd0(%rsp), %rdi
addq %rbp, %rdi
movq 0x38(%rsp), %rax
leaq (%rax,%r13), %rsi
addq $-0x18, %rsi
movq 0x28(%rsp), %rdx
movq 0x8(%rsp), %rcx
movl %ebx, %r8d
callq 0x3993
movq 0xf8(%rsp), %rsi
movq 0x38(%rsp), %rax
movl (%rax,%r13), %eax
movl %eax, 0x50(%rsp)
movq %r15, %rdi
movq %r12, %rdx
callq 0x4ef6
addq $0x20, %rbp
addq $0x38, %r13
cmpq %rbp, %r14
jne 0x2e3b
testb $0x1, 0x4(%rsp)
je 0x2f6f
movq 0x614c(%rip), %rbx      # 0x8ff0
leaq 0x36cd(%rip), %rsi      # 0x6578
movl $0xf, %edx
movq %rbx, %rdi
callq 0x2250
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq 0x611a(%rip), %rdi      # 0x8ff0
callq 0x2040
movq %rax, %rdi
callq 0x2170
movq 0x6106(%rip), %rbx      # 0x8ff0
leaq 0x36ad(%rip), %rsi      # 0x659e
movl $0xf, %edx
movq %rbx, %rdi
callq 0x2250
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq 0x60d4(%rip), %rdi      # 0x8ff0
callq 0x2040
movq %rax, %rdi
callq 0x2170
movq 0x60c0(%rip), %rbx      # 0x8ff0
leaq 0x3641(%rip), %rsi      # 0x6578
movl $0xf, %edx
movq %rbx, %rdi
callq 0x2250
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq 0x608e(%rip), %rdi      # 0x8ff0
callq 0x2040
movq %rax, %rdi
callq 0x2170
leaq 0x80(%rsp), %rax
movq %rax, -0x30(%rax)
movq $0x1, -0x28(%rax)
xorps %xmm0, %xmm0
movups %xmm0, -0x20(%rax)
movl $0x3f800000, -0x10(%rax) # imm = 0x3F800000
movups %xmm0, -0x8(%rax)
xorl %ebx, %ebx
testb $0x1, 0x30(%rsp)
movq 0x20(%rsp), %r14
je 0x30c1
testb $0x1, 0x4(%rsp)
je 0x2ff4
movq 0x603b(%rip), %rbx      # 0x8ff0
leaq 0x35f2(%rip), %rsi      # 0x65ae
movl $0x1b, %edx
movq %rbx, %rdi
callq 0x2250
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq 0x6009(%rip), %rdi      # 0x8ff0
callq 0x2040
movq %rax, %rdi
callq 0x2170
leaq 0x38(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x3efc
movl 0x68(%rsp), %ebx
testb $0x1, 0x4(%rsp)
je 0x305e
movq 0x5fdb(%rip), %rdi      # 0x8ff0
leaq 0x35ae(%rip), %rsi      # 0x65ca
movl $0x16, %edx
callq 0x2250
movq 0x5fc3(%rip), %rdi      # 0x8ff0
movl %ebx, %esi
callq 0x2370
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2170
testb $0x1, 0x18(%rsp)
je 0x30c1
testb $0x1, 0x4(%rsp)
je 0x30b2
movq 0x5f7d(%rip), %r15      # 0x8ff0
leaq 0x3567(%rip), %rsi      # 0x65e1
movl $0x32, %edx
movq %r15, %rdi
callq 0x2250
movq (%r15), %rax
addq -0x18(%rax), %r15
movq %r15, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq 0x5f4b(%rip), %rdi      # 0x8ff0
callq 0x2040
movq %rax, %rdi
callq 0x2170
leaq 0x38(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x4060
testl %r14d, %r14d
setg %al
andb 0x18(%rsp), %al
cmpb $0x1, %al
jne 0x31d3
movl $0x18, %r14d
xorl %r13d, %r13d
leaq 0x90(%rsp), %r15
leaq 0x8c(%rsp), %r12
movq 0x98(%rsp), %rsi
movq 0x38(%rsp), %rax
movl (%rax,%r14), %eax
movl %eax, 0x8c(%rsp)
movq %r15, %rdi
movq %r12, %rdx
callq 0x4ef6
movq 0xf0(%rsp), %rax
movl (%rax,%r13,4), %esi
movq 0x90(%rsp), %rax
movl (%rax,%r13,4), %eax
addl %ebx, %eax
cmpl %eax, %esi
jne 0x34b8
testb $0x1, 0x4(%rsp)
je 0x31be
movq 0x5ead(%rip), %rdi      # 0x8ff0
callq 0x2370
movq %rax, %rbp
movl $0x1, %edx
movq %rax, %rdi
leaq 0x336b(%rip), %rsi      # 0x64c5
callq 0x2250
movq 0x90(%rsp), %rax
movl (%rax,%r13,4), %esi
movq %rbp, %rdi
callq 0x2370
movq %rax, %rbp
movl $0xa, %edx
movq %rax, %rdi
leaq 0x34df(%rip), %rsi      # 0x6664
callq 0x2250
movq %rbp, %rdi
movl %ebx, %esi
callq 0x2370
movq %rax, %rbp
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %rbp, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2170
incq %r13
addq $0x38, %r14
cmpq %r13, 0x110(%rsp)
jne 0x30ec
testb $0x1, 0x4(%rsp)
movq 0x28(%rsp), %r13
je 0x32b5
movq 0x5e06(%rip), %rbx      # 0x8ff0
leaq 0x3389(%rip), %rsi      # 0x657a
movl $0xd, %edx
movq %rbx, %rdi
callq 0x2250
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq 0x5dd4(%rip), %rdi      # 0x8ff0
callq 0x2040
movq %rax, %rdi
callq 0x2170
movq 0x5dc0(%rip), %rbx      # 0x8ff0
leaq 0x3438(%rip), %rsi      # 0x666f
movl $0xd, %edx
movq %rbx, %rdi
callq 0x2250
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq 0x5d8e(%rip), %rdi      # 0x8ff0
callq 0x2040
movq %rax, %rdi
callq 0x2170
movq 0x5d7a(%rip), %rbx      # 0x8ff0
leaq 0x32fd(%rip), %rsi      # 0x657a
movl $0xd, %edx
movq %rbx, %rdi
callq 0x2250
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq 0x5d48(%rip), %rdi      # 0x8ff0
callq 0x2040
movq %rax, %rdi
callq 0x2170
testb $0x1, 0x18(%rsp)
je 0x332d
movq 0xd8(%rsp), %rax
subq 0xd0(%rsp), %rax
shrq $0x5, %rax
testl %eax, %eax
jle 0x332d
xorl %r14d, %r14d
movl 0x14(%rsp), %ebx
andl $0x1, %ebx
xorl %r15d, %r15d
xorl %r12d, %r12d
movq 0xb0(%rsp), %rdi
addq %r15, %rdi
movq 0x38(%rsp), %rsi
addq %r14, %rsi
movl %r13d, %edx
movq 0x8(%rsp), %rcx
movl %ebx, %r8d
callq 0x40d9
incq %r12
movq 0xd8(%rsp), %rax
subq 0xd0(%rsp), %rax
shrq $0x5, %rax
cltq
addq $0x20, %r15
addq $0x38, %r14
cmpq %rax, %r12
jl 0x32e4
testb $0x1, 0x30(%rsp)
je 0x3357
movl 0x14(%rsp), %r8d
andl $0x1, %r8d
leaq 0x158(%rsp), %rdi
leaq 0x50(%rsp), %rsi
movl %r13d, %edx
movq 0x8(%rsp), %rcx
callq 0x40d9
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x3366
callq 0x2210
leaq 0x50(%rsp), %rdi
callq 0x46f6
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x338d
movq 0xa0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
movq 0xf0(%rsp), %rdi
testq %rdi, %rdi
je 0x33aa
movq 0x100(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
leaq 0x38(%rsp), %rdi
callq 0x4658
xorl %ebx, %ebx
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x33db
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x2230
leaq 0xb0(%rsp), %rdi
callq 0x469a
leaq 0xd0(%rsp), %rdi
callq 0x469a
movq 0x158(%rsp), %rdi
leaq 0x168(%rsp), %rax
cmpq %rax, %rdi
je 0x341a
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x2230
movl %ebx, %eax
addq $0x178, %rsp            # imm = 0x178
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x5bbb(%rip), %rdi      # 0x8ff0
leaq 0x30f4(%rip), %rsi      # 0x6530
movl $0x34, %edx
callq 0x2250
movq 0x5ba3(%rip), %rdi      # 0x8ff0
movl %r14d, %esi
callq 0x2370
movq %rax, %rbx
leaq 0x3106(%rip), %rsi      # 0x6565
movl $0x2, %edx
movq %rax, %rdi
callq 0x2250
movq 0xb8(%rsp), %rsi
subq 0xb0(%rsp), %rsi
sarq $0x5, %rsi
movq %rbx, %rdi
callq 0x2160
movq %rax, %rbx
leaq 0x3035(%rip), %rsi      # 0x64c7
movl $0x2, %edx
movq %rax, %rdi
callq 0x2250
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21f0
jmp 0x2c37
leaq 0x3155(%rip), %rdi      # 0x6614
leaq 0x317a(%rip), %rsi      # 0x6640
leaq 0x3180(%rip), %rcx      # 0x664d
movl $0x2b7, %edx            # imm = 0x2B7
callq 0x2140
callq 0x253c
xorl %edi, %edi
callq 0x2280
movq 0x5b06(%rip), %rdi      # 0x8ff0
leaq 0x2ff1(%rip), %rsi      # 0x64e2
movl $0xd, %edx
callq 0x2250
movq 0x5aee(%rip), %rdi      # 0x8ff0
callq 0x2100
jmp 0x350e
callq 0x253c
movl $0x1, %edi
callq 0x2280
jmp 0x3586
jmp 0x3586
jmp 0x3581
movq %rax, %rbx
jmp 0x35d2
movq %rax, %rbx
movq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rax
cmpq %rax, %rdi
je 0x35dc
movq 0x148(%rsp), %rsi
jmp 0x356f
jmp 0x3586
jmp 0x358b
jmp 0x358b
jmp 0x3586
jmp 0x3558
jmp 0x3586
movq %rax, %rbx
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x35dc
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x2230
jmp 0x35dc
jmp 0x3586
jmp 0x3586
jmp 0x358b
jmp 0x3581
movq %rax, %rbx
jmp 0x3598
movq %rax, %rbx
jmp 0x35dc
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x46f6
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x35b5
movq 0xa0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
movq 0xf0(%rsp), %rdi
testq %rdi, %rdi
je 0x35d2
movq 0x100(%rsp), %rsi
subq %rdi, %rsi
callq 0x2230
leaq 0x38(%rsp), %rdi
callq 0x4658
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x3601
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x2230
leaq 0xb0(%rsp), %rdi
callq 0x469a
leaq 0xd0(%rsp), %rdi
callq 0x469a
movq 0x158(%rsp), %rdi
leaq 0x168(%rsp), %rax
cmpq %rax, %rdi
je 0x3640
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x2230
movq %rbx, %rdi
callq 0x2380