// File: simonrharris[P]SKA/src/ska.cpp
// Function: alignSubcommand(int, char**)
int alignSubcommand(int argc, char *argv[]){

	std::string outprefix="reference_free";
	float minproportion=0.9;
	bool variantonly=false;
	bool printkmers=false;
	std::vector < std::string > args;
	std::vector < std::string > sample;

	for (int i=2; i<argc; ++i){

		std::string arg=(argv[i]);

		if (arg=="-h" || arg=="--help"){
			alignHelp();
			return 0;
		}
		else if (arg == "-o"){
			i++;
			if (i<argc){
				outprefix = std::string(argv[i]);
			}
			else {
				std::cerr << std::endl << "Expecting string after -o flag" << std::endl << std::endl;
				return 1;
			}
		}
		else if (arg == "-p"){
			i++;
			if (i<argc){
				try {
					minproportion = getfloat(argv[i]);
				}
				catch (const std::invalid_argument& e) {
					std::cerr << std::endl << "Expecting float between 0 and 1 after -p flag" << std::endl << std::endl;
					return 1;
				}
			}
			else {
				std::cerr << std::endl << "Expecting float between 0 and 1 after -p flag" << std::endl << std::endl;
				return 1;
			}
			if (minproportion < 0 || minproportion > 1){
				std::cerr << std::endl << "Minimum proportion must be between 0 and 1" << std::endl << std::endl;
				return 1;
			}
		}
		else if (arg == "-f"){
			i++;
			if (i<argc){
				fileToVector(argv[i], args);
			}
			else {
				std::cerr << std::endl << "Expecting file name after -f flag" << std::endl << std::endl;
				return 1;
			}
		}
		else if (arg == "-k"){
			printkmers = true;
		}
		else if (arg == "-s"){
			i++;
			if (i<argc){
				fileToVector(argv[i], sample);
			}
			else {
				std::cerr << std::endl << "Expecting file name after -s flag" << std::endl << std::endl;
				return 1;
			}
		}
		else if (arg == "-v"){
			variantonly = true;
		}
		else if (arg[0]=='-'){
			std::cerr << std::endl << "Unrecognised flag " << arg << std::endl << std::endl;
				return 1;
		}
		else {
			args.push_back(arg);
		}
	}

	if (variantonly){
		outprefix+="_variants";
	}

	//outprefix+=".aln";
	
	if (args.size()<1){
		std::cerr << std::endl << "Too few arguments" << std::endl;
		alignHelp();
		return 1;
	}

	skaVersion();

	std::cout << "Creating reference free alignment for ";
	if (args.size()>maxNamesToPrint){
		std::cout << args.size() << " files";
	}
	else {	
		for (std::vector <std::string>::iterator it = args.begin(); it != args.end(); ++it){
			std::cout << *it << " ";
		}
	}
	std::cout << std::endl;
	std::cout << "Variable sites present in more than " << minproportion*100 << "% of isolates will be included" << std::endl;
	std::cout << "Output will be written to " << outprefix << std::endl << std::endl;

	if (alignKmers(minproportion, outprefix, args, variantonly, printkmers, sample)){return 1;}

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2c0, %rsp            # imm = 0x2C0
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
leaq -0x31(%rbp), %rdi
movq %rdi, -0x148(%rbp)
callq 0x6910
movq -0x148(%rbp), %rdx
leaq 0xe192(%rip), %rsi      # 0x5b2e2
leaq -0x30(%rbp), %rdi
callq 0xab20
jmp 0x4d15b
leaq -0x31(%rbp), %rdi
callq 0x65a0
movss 0xd780(%rip), %xmm0     # 0x5a8ec
movss %xmm0, -0x48(%rbp)
movb $0x0, -0x49(%rbp)
movb $0x0, -0x4a(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x1ab40
leaq -0x80(%rbp), %rdi
callq 0x1ab40
movl $0x2, -0x84(%rbp)
movl -0x84(%rbp), %eax
cmpl -0x8(%rbp), %eax
jge 0x4dae6
movq -0x10(%rbp), %rax
movslq -0x84(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x158(%rbp)
leaq -0xa9(%rbp), %rdi
movq %rdi, -0x150(%rbp)
callq 0x6910
movq -0x158(%rbp), %rsi
movq -0x150(%rbp), %rdx
leaq -0xa8(%rbp), %rdi
callq 0xab20
jmp 0x4d1e9
leaq -0xa9(%rbp), %rdi
callq 0x65a0
leaq 0xddeb(%rip), %rsi      # 0x5afe7
leaq -0xa8(%rbp), %rdi
callq 0x2dce0
movb %al, -0x159(%rbp)
jmp 0x4d210
movb -0x159(%rbp), %al
testb $0x1, %al
jne 0x4d243
jmp 0x4d21c
leaq 0xddc7(%rip), %rsi      # 0x5afea
leaq -0xa8(%rbp), %rdi
callq 0x2dce0
movb %al, -0x15a(%rbp)
jmp 0x4d237
movb -0x15a(%rbp), %al
testb $0x1, %al
jne 0x4d243
jmp 0x4d2a8
callq 0x4cf90
jmp 0x4d24a
movl $0x0, -0x4(%rbp)
movl $0x1, -0xb0(%rbp)
jmp 0x4daa3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x31(%rbp), %rdi
callq 0x65a0
jmp 0x4ddfe
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0xa9(%rbp), %rdi
callq 0x65a0
jmp 0x4dde3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x4dad5
leaq 0xe042(%rip), %rsi      # 0x5b2f1
leaq -0xa8(%rbp), %rdi
callq 0x2dce0
movb %al, -0x15b(%rbp)
jmp 0x4d2c3
movb -0x15b(%rbp), %al
testb $0x1, %al
jne 0x4d2d2
jmp 0x4d403
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
movl -0x84(%rbp), %eax
cmpl -0x8(%rbp), %eax
jge 0x4d37f
movq -0x10(%rbp), %rax
movslq -0x84(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x170(%rbp)
leaq -0xd1(%rbp), %rdi
movq %rdi, -0x168(%rbp)
callq 0x6910
movq -0x170(%rbp), %rsi
movq -0x168(%rbp), %rdx
leaq -0xd0(%rbp), %rdi
callq 0xab20
jmp 0x4d335
leaq -0x30(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x6640
leaq -0xd0(%rbp), %rdi
callq 0x6a08
leaq -0xd1(%rbp), %rdi
callq 0x65a0
jmp 0x4d3fe
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0xd1(%rbp), %rdi
callq 0x65a0
jmp 0x4dad5
movq 0x2bc6a(%rip), %rdi     # 0x78ff0
movq 0x2bc03(%rip), %rsi     # 0x78f90
callq 0x6570
movq %rax, -0x178(%rbp)
jmp 0x4d39b
movq -0x178(%rbp), %rdi
leaq 0xdf4b(%rip), %rsi      # 0x5b2f4
callq 0x6520
movq %rax, -0x180(%rbp)
jmp 0x4d3b7
movq -0x180(%rbp), %rdi
movq 0x2bbcb(%rip), %rsi     # 0x78f90
callq 0x6570
movq %rax, -0x188(%rbp)
jmp 0x4d3d3
movq -0x188(%rbp), %rdi
movq 0x2bbaf(%rip), %rsi     # 0x78f90
callq 0x6570
jmp 0x4d3e8
movl $0x1, -0x4(%rbp)
movl $0x1, -0xb0(%rbp)
jmp 0x4daa3
jmp 0x4da97
leaq 0xdf09(%rip), %rsi      # 0x5b313
leaq -0xa8(%rbp), %rdi
callq 0x2dce0
movb %al, -0x189(%rbp)
jmp 0x4d41e
movb -0x189(%rbp), %al
testb $0x1, %al
jne 0x4d42d
jmp 0x4d665
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
movl -0x84(%rbp), %eax
cmpl -0x8(%rbp), %eax
jge 0x4d547
movq -0x10(%rbp), %rax
movslq -0x84(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x4c0c0
movss %xmm0, -0x190(%rbp)
jmp 0x4d469
movss -0x190(%rbp), %xmm0
movss %xmm0, -0x48(%rbp)
jmp 0x4d545
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
movl -0x44(%rbp), %eax
movl $0x1, %ecx
cmpl %ecx, %eax
jne 0x4dad5
movq -0x40(%rbp), %rdi
callq 0x6200
movq %rax, -0xe0(%rbp)
movq 0x2bb42(%rip), %rdi     # 0x78ff0
movq 0x2badb(%rip), %rsi     # 0x78f90
callq 0x6570
movq %rax, -0x198(%rbp)
jmp 0x4d4c3
movq -0x198(%rbp), %rdi
leaq 0xde45(%rip), %rsi      # 0x5b316
callq 0x6520
movq %rax, -0x1a0(%rbp)
jmp 0x4d4df
movq -0x1a0(%rbp), %rdi
movq 0x2baa3(%rip), %rsi     # 0x78f90
callq 0x6570
movq %rax, -0x1a8(%rbp)
jmp 0x4d4fb
movq -0x1a8(%rbp), %rdi
movq 0x2ba87(%rip), %rsi     # 0x78f90
callq 0x6570
jmp 0x4d510
movl $0x1, -0x4(%rbp)
movl $0x1, -0xb0(%rbp)
callq 0x6860
jmp 0x4d53b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
callq 0x6860
jmp 0x4d540
jmp 0x4daa3
jmp 0x4dad5
jmp 0x4d5c6
movq 0x2baa2(%rip), %rdi     # 0x78ff0
movq 0x2ba3b(%rip), %rsi     # 0x78f90
callq 0x6570
movq %rax, -0x1b0(%rbp)
jmp 0x4d563
movq -0x1b0(%rbp), %rdi
leaq 0xdda5(%rip), %rsi      # 0x5b316
callq 0x6520
movq %rax, -0x1b8(%rbp)
jmp 0x4d57f
movq -0x1b8(%rbp), %rdi
movq 0x2ba03(%rip), %rsi     # 0x78f90
callq 0x6570
movq %rax, -0x1c0(%rbp)
jmp 0x4d59b
movq -0x1c0(%rbp), %rdi
movq 0x2b9e7(%rip), %rsi     # 0x78f90
callq 0x6570
jmp 0x4d5b0
movl $0x1, -0x4(%rbp)
movl $0x1, -0xb0(%rbp)
jmp 0x4daa3
xorps %xmm0, %xmm0
ucomiss -0x48(%rbp), %xmm0
ja 0x4d5e1
movss -0x48(%rbp), %xmm0
movss 0xba28(%rip), %xmm1     # 0x59004
ucomiss %xmm1, %xmm0
jbe 0x4d660
movq 0x2ba08(%rip), %rdi     # 0x78ff0
movq 0x2b9a1(%rip), %rsi     # 0x78f90
callq 0x6570
movq %rax, -0x1c8(%rbp)
jmp 0x4d5fd
movq -0x1c8(%rbp), %rdi
leaq 0xdd39(%rip), %rsi      # 0x5b344
callq 0x6520
movq %rax, -0x1d0(%rbp)
jmp 0x4d619
movq -0x1d0(%rbp), %rdi
movq 0x2b969(%rip), %rsi     # 0x78f90
callq 0x6570
movq %rax, -0x1d8(%rbp)
jmp 0x4d635
movq -0x1d8(%rbp), %rdi
movq 0x2b94d(%rip), %rsi     # 0x78f90
callq 0x6570
jmp 0x4d64a
movl $0x1, -0x4(%rbp)
movl $0x1, -0xb0(%rbp)
jmp 0x4daa3
jmp 0x4da95
leaq 0xd9fb(%rip), %rsi      # 0x5b067
leaq -0xa8(%rbp), %rdi
callq 0x2dce0
movb %al, -0x1d9(%rbp)
jmp 0x4d680
movb -0x1d9(%rbp), %al
testb $0x1, %al
jne 0x4d68f
jmp 0x4d7dc
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
movl -0x84(%rbp), %eax
cmpl -0x8(%rbp), %eax
jge 0x4d758
movq -0x10(%rbp), %rax
movslq -0x84(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x1f0(%rbp)
leaq -0x101(%rbp), %rdi
movq %rdi, -0x1e8(%rbp)
callq 0x6910
movq -0x1f0(%rbp), %rsi
movq -0x1e8(%rbp), %rdx
leaq -0x100(%rbp), %rdi
callq 0xab20
jmp 0x4d6f2
leaq -0x100(%rbp), %rdi
leaq -0x68(%rbp), %rsi
callq 0xa6a0
jmp 0x4d704
leaq -0x100(%rbp), %rdi
callq 0x6a08
leaq -0x101(%rbp), %rdi
callq 0x65a0
jmp 0x4d7d7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x4d747
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x100(%rbp), %rdi
callq 0x6a08
leaq -0x101(%rbp), %rdi
callq 0x65a0
jmp 0x4dad5
movq 0x2b891(%rip), %rdi     # 0x78ff0
movq 0x2b82a(%rip), %rsi     # 0x78f90
callq 0x6570
movq %rax, -0x1f8(%rbp)
jmp 0x4d774
movq -0x1f8(%rbp), %rdi
leaq 0xd8e8(%rip), %rsi      # 0x5b06a
callq 0x6520
movq %rax, -0x200(%rbp)
jmp 0x4d790
movq -0x200(%rbp), %rdi
movq 0x2b7f2(%rip), %rsi     # 0x78f90
callq 0x6570
movq %rax, -0x208(%rbp)
jmp 0x4d7ac
movq -0x208(%rbp), %rdi
movq 0x2b7d6(%rip), %rsi     # 0x78f90
callq 0x6570
jmp 0x4d7c1
movl $0x1, -0x4(%rbp)
movl $0x1, -0xb0(%rbp)
jmp 0x4daa3
jmp 0x4da93
leaq 0xd80e(%rip), %rsi      # 0x5aff1
leaq -0xa8(%rbp), %rdi
callq 0x2dce0
movb %al, -0x209(%rbp)
jmp 0x4d7f7
movb -0x209(%rbp), %al
testb $0x1, %al
jne 0x4d803
jmp 0x4d80c
movb $0x1, -0x4a(%rbp)
jmp 0x4da91
leaq 0xdb5c(%rip), %rsi      # 0x5b36f
leaq -0xa8(%rbp), %rdi
callq 0x2dce0
movb %al, -0x20a(%rbp)
jmp 0x4d827
movb -0x20a(%rbp), %al
testb $0x1, %al
jne 0x4d836
jmp 0x4d983
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
movl -0x84(%rbp), %eax
cmpl -0x8(%rbp), %eax
jge 0x4d8ff
movq -0x10(%rbp), %rax
movslq -0x84(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x220(%rbp)
leaq -0x129(%rbp), %rdi
movq %rdi, -0x218(%rbp)
callq 0x6910
movq -0x220(%rbp), %rsi
movq -0x218(%rbp), %rdx
leaq -0x128(%rbp), %rdi
callq 0xab20
jmp 0x4d899
leaq -0x128(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0xa6a0
jmp 0x4d8ab
leaq -0x128(%rbp), %rdi
callq 0x6a08
leaq -0x129(%rbp), %rdi
callq 0x65a0
jmp 0x4d97e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x4d8ee
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x128(%rbp), %rdi
callq 0x6a08
leaq -0x129(%rbp), %rdi
callq 0x65a0
jmp 0x4dad5
movq 0x2b6ea(%rip), %rdi     # 0x78ff0
movq 0x2b683(%rip), %rsi     # 0x78f90
callq 0x6570
movq %rax, -0x228(%rbp)
jmp 0x4d91b
movq -0x228(%rbp), %rdi
leaq 0xda49(%rip), %rsi      # 0x5b372
callq 0x6520
movq %rax, -0x230(%rbp)
jmp 0x4d937
movq -0x230(%rbp), %rdi
movq 0x2b64b(%rip), %rsi     # 0x78f90
callq 0x6570
movq %rax, -0x238(%rbp)
jmp 0x4d953
movq -0x238(%rbp), %rdi
movq 0x2b62f(%rip), %rsi     # 0x78f90
callq 0x6570
jmp 0x4d968
movl $0x1, -0x4(%rbp)
movl $0x1, -0xb0(%rbp)
jmp 0x4daa3
jmp 0x4da8f
leaq 0xda0a(%rip), %rsi      # 0x5b394
leaq -0xa8(%rbp), %rdi
callq 0x2dce0
movb %al, -0x239(%rbp)
jmp 0x4d99e
movb -0x239(%rbp), %al
testb $0x1, %al
jne 0x4d9aa
jmp 0x4d9b3
movb $0x1, -0x49(%rbp)
jmp 0x4da8d
xorl %eax, %eax
movl %eax, %esi
leaq -0xa8(%rbp), %rdi
callq 0x69e0
movq %rax, -0x248(%rbp)
jmp 0x4d9cc
movq -0x248(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2d, %eax
jne 0x4da77
movq 0x2b60a(%rip), %rdi     # 0x78ff0
movq 0x2b5a3(%rip), %rsi     # 0x78f90
callq 0x6570
movq %rax, -0x250(%rbp)
jmp 0x4d9fb
movq -0x250(%rbp), %rdi
leaq 0xd683(%rip), %rsi      # 0x5b08c
callq 0x6520
movq %rax, -0x258(%rbp)
jmp 0x4da17
movq -0x258(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x64d0
movq %rax, -0x260(%rbp)
jmp 0x4da33
movq -0x260(%rbp), %rdi
movq 0x2b54f(%rip), %rsi     # 0x78f90
callq 0x6570
movq %rax, -0x268(%rbp)
jmp 0x4da4f
movq -0x268(%rbp), %rdi
movq 0x2b533(%rip), %rsi     # 0x78f90
callq 0x6570
jmp 0x4da64
movl $0x1, -0x4(%rbp)
movl $0x1, -0xb0(%rbp)
jmp 0x4daa3
leaq -0x68(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0xabd0
jmp 0x4da89
jmp 0x4da8b
jmp 0x4da8d
jmp 0x4da8f
jmp 0x4da91
jmp 0x4da93
jmp 0x4da95
jmp 0x4da97
jmp 0x4da99
movl $0x0, -0xb0(%rbp)
leaq -0xa8(%rbp), %rdi
callq 0x6a08
movl -0xb0(%rbp), %eax
testl %eax, %eax
jne 0x4ddbc
jmp 0x4dabf
jmp 0x4dac1
movl -0x84(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
jmp 0x4d195
leaq -0xa8(%rbp), %rdi
callq 0x6a08
jmp 0x4dde3
testb $0x1, -0x49(%rbp)
je 0x4db11
leaq 0xd8a4(%rip), %rsi      # 0x5b397
leaq -0x30(%rbp), %rdi
callq 0x6500
jmp 0x4dafe
jmp 0x4db11
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x4dde3
leaq -0x68(%rbp), %rdi
callq 0xb670
cmpq $0x1, %rax
jae 0x4db8a
movq 0x2b4c9(%rip), %rdi     # 0x78ff0
movq 0x2b462(%rip), %rsi     # 0x78f90
callq 0x6570
movq %rax, -0x270(%rbp)
jmp 0x4db3c
movq -0x270(%rbp), %rdi
leaq 0xd555(%rip), %rsi      # 0x5b09f
callq 0x6520
movq %rax, -0x278(%rbp)
jmp 0x4db58
movq -0x278(%rbp), %rdi
movq 0x2b42a(%rip), %rsi     # 0x78f90
callq 0x6570
jmp 0x4db6d
callq 0x4cf90
jmp 0x4db74
movl $0x1, -0x4(%rbp)
movl $0x1, -0xb0(%rbp)
jmp 0x4ddbc
callq 0x4c460
jmp 0x4db91
movq 0x2b410(%rip), %rdi     # 0x78fa8
leaq 0xd802(%rip), %rsi      # 0x5b3a1
callq 0x6520
jmp 0x4dba6
leaq -0x68(%rbp), %rdi
callq 0xb670
movslq 0x2ba8a(%rip), %rcx     # 0x79640
cmpq %rcx, %rax
jbe 0x4dbf6
leaq -0x68(%rbp), %rdi
callq 0xb670
movq %rax, %rsi
movq 0x2b3da(%rip), %rdi     # 0x78fa8
callq 0x6120
movq %rax, -0x280(%rbp)
jmp 0x4dbdc
movq -0x280(%rbp), %rdi
leaq 0xcecf(%rip), %rsi      # 0x5aab9
callq 0x6520
jmp 0x4dbf1
jmp 0x4dc7a
leaq -0x68(%rbp), %rdi
callq 0xb4c0
movq %rax, -0x138(%rbp)
leaq -0x68(%rbp), %rdi
callq 0xb340
movq %rax, -0x140(%rbp)
leaq -0x138(%rbp), %rdi
leaq -0x140(%rbp), %rsi
callq 0x4a690
testb $0x1, %al
jne 0x4dc2f
jmp 0x4dc78
leaq -0x138(%rbp), %rdi
callq 0x30840
movq %rax, %rsi
movq 0x2b363(%rip), %rdi     # 0x78fa8
callq 0x64d0
movq %rax, -0x288(%rbp)
jmp 0x4dc53
movq -0x288(%rbp), %rdi
leaq 0xc6ec(%rip), %rsi      # 0x5a34d
callq 0x6520
jmp 0x4dc68
jmp 0x4dc6a
leaq -0x138(%rbp), %rdi
callq 0x4a6d0
jmp 0x4dc06
jmp 0x4dc7a
movq 0x2b327(%rip), %rdi     # 0x78fa8
movq 0x2b308(%rip), %rsi     # 0x78f90
callq 0x6570
jmp 0x4dc8f
movq 0x2b312(%rip), %rdi     # 0x78fa8
leaq 0xd72b(%rip), %rsi      # 0x5b3c8
callq 0x6520
movq %rax, -0x290(%rbp)
jmp 0x4dcab
movq -0x290(%rbp), %rdi
movss -0x48(%rbp), %xmm0
movss 0xb9b9(%rip), %xmm1     # 0x59678
mulss %xmm1, %xmm0
callq 0x63f0
movq %rax, -0x298(%rbp)
jmp 0x4dcd1
movq -0x298(%rbp), %rdi
leaq 0xd70e(%rip), %rsi      # 0x5b3ed
callq 0x6520
movq %rax, -0x2a0(%rbp)
jmp 0x4dced
movq -0x2a0(%rbp), %rdi
movq 0x2b295(%rip), %rsi     # 0x78f90
callq 0x6570
jmp 0x4dd02
movq 0x2b29f(%rip), %rdi     # 0x78fa8
leaq 0xd6fc(%rip), %rsi      # 0x5b40c
callq 0x6520
movq %rax, -0x2a8(%rbp)
jmp 0x4dd1e
movq -0x2a8(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x64d0
movq %rax, -0x2b0(%rbp)
jmp 0x4dd37
movq -0x2b0(%rbp), %rdi
movq 0x2b24b(%rip), %rsi     # 0x78f90
callq 0x6570
movq %rax, -0x2b8(%rbp)
jmp 0x4dd53
movq -0x2b8(%rbp), %rdi
movq 0x2b22f(%rip), %rsi     # 0x78f90
callq 0x6570
jmp 0x4dd68
leaq -0x48(%rbp), %rdi
leaq -0x30(%rbp), %rsi
leaq -0x68(%rbp), %rdx
leaq -0x49(%rbp), %rcx
leaq -0x4a(%rbp), %r8
leaq -0x80(%rbp), %r9
callq 0x19850
movl %eax, -0x2bc(%rbp)
jmp 0x4dd8d
movl -0x2bc(%rbp), %eax
cmpl $0x0, %eax
je 0x4ddab
movl $0x1, -0x4(%rbp)
movl $0x1, -0xb0(%rbp)
jmp 0x4ddbc
movl $0x0, -0x4(%rbp)
movl $0x1, -0xb0(%rbp)
leaq -0x80(%rbp), %rdi
callq 0xfe90
leaq -0x68(%rbp), %rdi
callq 0xfe90
leaq -0x30(%rbp), %rdi
callq 0x6a08
movl -0x4(%rbp), %eax
addq $0x2c0, %rsp            # imm = 0x2C0
popq %rbp
retq
leaq -0x80(%rbp), %rdi
callq 0xfe90
leaq -0x68(%rbp), %rdi
callq 0xfe90
leaq -0x30(%rbp), %rdi
callq 0x6a08
movq -0x40(%rbp), %rdi
callq 0x6900
movq %rax, %rdi
callq 0x9b50
nop