// File: /workspace/github_cpp_makefile_star2_O1/ralgond[P]SortedListIntersection/main.cpp
// Function: main
int main(int argc, char* argv[]) {

	string file1 = argv[1];
	string file2 = argv[2];

	uint32_t a_len = 0;
	uint32_t* a = read_sorted_int_from_file(file1, &a_len);
	cout<<"file "<<file1<<": "<<a_len<<endl;

	uint32_t b_len = 0;
	uint32_t* b = read_sorted_int_from_file(file2, &b_len);
	cout<<"file "<<file2<<": "<<b_len<<endl;


	uint32_t rareLen = 0;
	uint32_t* rare = NULL;
	uint32_t freqLen = 0;
	uint32_t* freq = NULL;

	if (a_len < b_len) {
		rareLen = a_len;
		rare = a;
		freqLen = b_len;
		freq = b;
	} else {
		rareLen = b_len;
		rare = b;
		freqLen = a_len;
		freq = a;
	}


	uint32_t* c = new uint32_t[rareLen];

	uint32_t cnt = 0;

	bloom_filter* filter = create_bloom_filter(freq, freqLen);

	long time1, time2;

	int N = 10000;


	time1 = currentTimeMs();
	for (int i = 0; i < 10000; i++)
		cnt = v1_avx2_intersection(freq, freqLen, rare, rareLen, c);
	time2 = currentTimeMs();
	cout << "v1_avx2\t" << (time2-time1) << "ms"<<"\t"<<qps(N, (time2-time1))<<"\t"<<cnt<<endl;

	time1 = currentTimeMs();
	for (int i = 0; i < 10000; i++)
		cnt = v3_avx2_intersection(freq, freqLen, rare, rareLen, c);
	time2 = currentTimeMs();
	cout << "v3_avx2\t" << (time2-time1) << "ms"<<"\t"<<qps(N, (time2-time1))<<"\t"<<cnt<<endl;

	time1 = currentTimeMs();
	for (int i = 0; i < 10000; i++)
		cnt = highlyscalable_SIMD_intersection(freq, freqLen, rare, rareLen, c);
	time2 = currentTimeMs();
	cout << "highlyscalable_SIMD\t" << (time2-time1) << "ms"<<"\t"<<qps(N, (time2-time1))<<"\t"<<cnt<<endl;
	
	prepare_shuffling_dict32();
	time1 = currentTimeMs();
	for (int i = 0; i < 10000; i++)
		cnt = highlyscalable_avx2_intersection(freq, freqLen, rare, rareLen, c);
	time2 = currentTimeMs();
	cout << "highlyscalable_avx2\t" << (time2-time1) << "ms"<<"\t"<<qps(N, (time2-time1))<<"\t"<<cnt<<endl;

	prepare_shuffling_dict64();
	time1 = currentTimeMs();
	for (int i = 0; i < 10000; i++)
		cnt = highlyscalable_avx512_intersection(freq, freqLen, rare, rareLen, c);
	time2 = currentTimeMs();
	cout << "highlyscalable_avx512\t" << (time2-time1) << "ms"<<"\t"<<qps(N, (time2-time1))<<"\t"<<cnt<<endl;




	time1 = currentTimeMs();
	for (int i = 0; i < 10000; i++)
		cnt = lemire_highlyscalable_SIMD_intersection(freq, freqLen, rare, rareLen, c);
	time2 = currentTimeMs();
	cout << "lemire_highlyscalable_SIMD\t" << (time2-time1) << "ms"<<"\t"<<qps(N, (time2-time1))<<"\t"<<cnt<<endl;

	time1 = currentTimeMs();
	for (int i = 0; i < 10000; i++)
		cnt = scalar(freq, freqLen, rare, rareLen, c);
	time2 = currentTimeMs();
	cout << "scalar\t" << (time2-time1) << "ms"<<"\t"<<qps(N, (time2-time1))<<"\t"<<cnt<<endl;

	time1 = currentTimeMs();
	for (int i = 0; i < 10000; i++)
		cnt = block_merge_intersection(freq, freqLen, rare, rareLen, c);
	time2 = currentTimeMs();
	cout << "block_merge\t" << (time2-time1) << "ms"<<"\t"<<qps(N, (time2-time1))<<"\t"<<cnt<<endl;

//	time1 = currentTimeMs();
//	for (int i = 0; i < 10000; i++)
//		cnt = bisearch_intersection(freq, freqLen, rare, rareLen, c);
//	time2 = currentTimeMs();
//	cout << "bisearch\t" << (time2-time1) << "ms"<<"\t"<<qps(N, (time2-time1))<<"\t"<<cnt<<endl;
	
//	time1 = currentTimeMs();
//	for (int i = 0; i < 10000; i++)
//		cnt = bloomfilter_intersection(filter, freq, freqLen, rare, rareLen, c);
//	time2 = currentTimeMs();
//	cout << "bloom\t" << (time2-time1) << "ms"<<"\t"<<qps(N, (time2-time1))<<"\t"<<cnt<<endl;
label1:
	prepare_shuffling_dict16();
	PrefixList* rarePl = buildPrefixList(rare, rareLen);
	PrefixList* freqPl = buildPrefixList(freq, freqLen);

	time1 = currentTimeMs();
	for (int i = 0; i < 10000; i++)
		cnt = intersectPrefixList(freqPl, rarePl, c);
	time2 = currentTimeMs();
	cout << "sttni\t" << (time2-time1) << "ms"<<"\t"<<qps(N, (time2-time1))<<"\t"<<cnt<<endl;

	//for (uint32_t i = 0; i < cnt; i++) {
	//	cout<<c[i]<<endl;
	//}

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rsi, %rbx
movq 0x8(%rsi), %rsi
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x2cf4
movq 0x10(%rbx), %rsi
leaq 0x28(%rsp), %rdi
leaq 0x1c(%rsp), %rdx
callq 0x2cf4
movl $0x0, 0x1c(%rsp)
leaq 0x98(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
addq %rsi, %rdx
leaq 0x88(%rsp), %rdi
callq 0x2d32
leaq 0x88(%rsp), %rdi
leaq 0x1c(%rsp), %rsi
callq 0x5520
movq %rax, %r14
movq 0x88(%rsp), %rdi
cmpq %r15, %rdi
je 0x4964
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x2170
movq 0x466d(%rip), %rdi      # 0x8fd8
leaq 0x1eae(%rip), %rsi      # 0x6820
movl $0x5, %edx
callq 0x2180
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq 0x464b(%rip), %rdi      # 0x8fd8
callq 0x2180
movq %rax, %rbx
leaq 0x1e8a(%rip), %rsi      # 0x6826
movl $0x2, %edx
movq %rax, %rdi
callq 0x2180
movl 0x1c(%rsp), %esi
movq %rbx, %rdi
callq 0x20c0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20d0
movl $0x0, 0x24(%rsp)
leaq 0x78(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
addq %rsi, %rdx
leaq 0x68(%rsp), %rdi
callq 0x2d32
leaq 0x68(%rsp), %rdi
leaq 0x24(%rsp), %rsi
callq 0x5520
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r15, %rdi
je 0x4a30
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x2170
movq 0x45a1(%rip), %rdi      # 0x8fd8
leaq 0x1de2(%rip), %rsi      # 0x6820
movl $0x5, %edx
callq 0x2180
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq 0x457f(%rip), %rdi      # 0x8fd8
callq 0x2180
movq %rax, %r15
leaq 0x1dbe(%rip), %rsi      # 0x6826
movl $0x2, %edx
movq %rax, %rdi
callq 0x2180
movl 0x24(%rsp), %esi
movq %r15, %rdi
callq 0x20c0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %r15, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20d0
movl 0x1c(%rsp), %eax
movl 0x24(%rsp), %r12d
cmpl %r12d, %eax
movl %r12d, %ebp
cmoval %eax, %ebp
movq %r14, %r15
cmovbq %rbx, %r15
cmovbq %r14, %rbx
movq %rbx, 0x10(%rsp)
cmovbl %eax, %r12d
leaq (,%r12,4), %rdi
callq 0x2030
movq %rax, %r14
movq %r15, %rdi
movl %ebp, 0x20(%rsp)
movl %ebp, %esi
callq 0x3061
callq 0x57a8
movq %rax, 0x8(%rsp)
movl 0x20(%rsp), %r13d
movl $0x2710, %ebx           # imm = 0x2710
movq %r15, %rdi
movq %r13, %rsi
movq 0x10(%rsp), %rdx
movq %r12, %rcx
movq %r14, %r8
callq 0x4550
decl %ebx
jne 0x4b03
movq %rax, %rbp
callq 0x57a8
movq %rax, %rbx
movq 0x44a9(%rip), %rdi      # 0x8fd8
leaq 0x1cf3(%rip), %rsi      # 0x6829
movl $0x8, %edx
callq 0x2180
subq 0x8(%rsp), %rbx
movq 0x448c(%rip), %rdi      # 0x8fd8
movq %rbx, 0x8(%rsp)
movq %rbx, %rsi
callq 0x2130
leaq 0x1cd2(%rip), %rsi      # 0x6832
movl $0x2, %edx
movq %rax, %rbx
movq %rax, %rdi
callq 0x2180
leaq 0x1cf1(%rip), %rsi      # 0x6868
movl $0x1, %edx
movq %rbx, %rdi
callq 0x2180
vcvtsi2sdq 0x8(%rsp), %xmm0, %xmm0
vdivsd 0x1c7d(%rip), %xmm0, %xmm0 # 0x6810
vmovsd 0x1c7d(%rip), %xmm1     # 0x6818
vdivsd %xmm0, %xmm1, %xmm0
vcvtsd2ss %xmm0, %xmm0, %xmm0
vcvtss2sd %xmm0, %xmm0, %xmm0
movq %rbx, %rdi
callq 0x21b0
movq %rax, %rbx
leaq 0x1caf(%rip), %rsi      # 0x6868
movl $0x1, %edx
movq %rax, %rdi
callq 0x2180
movl %ebp, %esi
movq %rbx, %rdi
callq 0x20c0
movq %rax, %rbp
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbp, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20d0
callq 0x57a8
movq %rax, 0x8(%rsp)
movl $0x2710, %ebx           # imm = 0x2710
movq %r15, %rdi
movq %r13, %rsi
movq 0x10(%rsp), %rdx
movq %r12, %rcx
movq %r14, %r8
callq 0x464c
decl %ebx
jne 0x4c09
movq %rax, %rbp
callq 0x57a8
movq %rax, %rbx
movq 0x43a3(%rip), %rdi      # 0x8fd8
leaq 0x1bf9(%rip), %rsi      # 0x6835
movl $0x8, %edx
callq 0x2180
subq 0x8(%rsp), %rbx
movq 0x4386(%rip), %rdi      # 0x8fd8
movq %rbx, 0x8(%rsp)
movq %rbx, %rsi
callq 0x2130
leaq 0x1bcc(%rip), %rsi      # 0x6832
movl $0x2, %edx
movq %rax, %rbx
movq %rax, %rdi
callq 0x2180
leaq 0x1beb(%rip), %rsi      # 0x6868
movl $0x1, %edx
movq %rbx, %rdi
callq 0x2180
vcvtsi2sdq 0x8(%rsp), %xmm2, %xmm0
vdivsd 0x1b77(%rip), %xmm0, %xmm0 # 0x6810
vmovsd 0x1b77(%rip), %xmm1     # 0x6818
vdivsd %xmm0, %xmm1, %xmm0
vcvtsd2ss %xmm0, %xmm0, %xmm0
vcvtss2sd %xmm0, %xmm0, %xmm0
movq %rbx, %rdi
callq 0x21b0
movq %rax, %rbx
leaq 0x1ba9(%rip), %rsi      # 0x6868
movl $0x1, %edx
movq %rax, %rdi
callq 0x2180
movl %ebp, %esi
movq %rbx, %rdi
callq 0x20c0
movq %rax, %rbp
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbp, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20d0
callq 0x57a8
movq %rax, 0x8(%rsp)
movl $0x2710, %ebx           # imm = 0x2710
movq %r15, %rdi
movq %r13, %rsi
movq 0x10(%rsp), %rdx
movq %r12, %rcx
movq %r14, %r8
callq 0x3cb8
decl %ebx
jne 0x4d0f
movq %rax, %rbp
callq 0x57a8
movq %rax, %rbx
movq 0x429d(%rip), %rdi      # 0x8fd8
leaq 0x1b2f(%rip), %rsi      # 0x6871
movl $0x14, %edx
callq 0x2180
subq 0x8(%rsp), %rbx
movq 0x4280(%rip), %rdi      # 0x8fd8
movq %rbx, 0x8(%rsp)
movq %rbx, %rsi
callq 0x2130
leaq 0x1ac6(%rip), %rsi      # 0x6832
movl $0x2, %edx
movq %rax, %rbx
movq %rax, %rdi
callq 0x2180
leaq 0x1ae5(%rip), %rsi      # 0x6868
movl $0x1, %edx
movq %rbx, %rdi
callq 0x2180
vcvtsi2sdq 0x8(%rsp), %xmm2, %xmm0
vdivsd 0x1a71(%rip), %xmm0, %xmm0 # 0x6810
vmovsd 0x1a71(%rip), %xmm1     # 0x6818
vdivsd %xmm0, %xmm1, %xmm0
vcvtsd2ss %xmm0, %xmm0, %xmm0
vcvtss2sd %xmm0, %xmm0, %xmm0
movq %rbx, %rdi
callq 0x21b0
movq %rax, %rbx
leaq 0x1aa3(%rip), %rsi      # 0x6868
movl $0x1, %edx
movq %rax, %rdi
callq 0x2180
movl %ebp, %esi
movq %rbx, %rdi
callq 0x20c0
movq %rax, %rbp
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbp, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20d0
callq 0x3fbc
callq 0x57a8
movq %rax, 0x8(%rsp)
movl $0x2710, %ebx           # imm = 0x2710
movq %r15, %rdi
movq %r13, %rsi
movq 0x10(%rsp), %rdx
movq %r12, %rcx
movq %r14, %r8
callq 0x4020
decl %ebx
jne 0x4e1a
movq %rax, %rbp
callq 0x57a8
movq %rax, %rbx
movq 0x4192(%rip), %rdi      # 0x8fd8
leaq 0x19f1(%rip), %rsi      # 0x683e
movl $0x14, %edx
callq 0x2180
subq 0x8(%rsp), %rbx
movq 0x4175(%rip), %rdi      # 0x8fd8
movq %rbx, 0x8(%rsp)
movq %rbx, %rsi
callq 0x2130
leaq 0x19bb(%rip), %rsi      # 0x6832
movl $0x2, %edx
movq %rax, %rbx
movq %rax, %rdi
callq 0x2180
leaq 0x19da(%rip), %rsi      # 0x6868
movl $0x1, %edx
movq %rbx, %rdi
callq 0x2180
vcvtsi2sdq 0x8(%rsp), %xmm2, %xmm0
vdivsd 0x1966(%rip), %xmm0, %xmm0 # 0x6810
vmovsd 0x1966(%rip), %xmm1     # 0x6818
vdivsd %xmm0, %xmm1, %xmm0
vcvtsd2ss %xmm0, %xmm0, %xmm0
vcvtss2sd %xmm0, %xmm0, %xmm0
movq %rbx, %rdi
callq 0x21b0
movq %rax, %rbx
leaq 0x1998(%rip), %rsi      # 0x6868
movl $0x1, %edx
movq %rax, %rdi
callq 0x2180
movl %ebp, %esi
movq %rbx, %rdi
callq 0x20c0
movq %rax, %rbp
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbp, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20d0
callq 0x4288
callq 0x57a8
movq %rax, 0x8(%rsp)
movl $0x2710, %ebx           # imm = 0x2710
movq %r15, %rdi
movq %r13, %rsi
movq 0x10(%rsp), %rdx
movq %r12, %rcx
movq %r14, %r8
callq 0x42fb
decl %ebx
jne 0x4f25
movq %rax, %rbp
callq 0x57a8
movq %rax, %rbx
movq 0x4087(%rip), %rdi      # 0x8fd8
leaq 0x18fb(%rip), %rsi      # 0x6853
movl $0x16, %edx
callq 0x2180
subq 0x8(%rsp), %rbx
movq 0x406a(%rip), %rdi      # 0x8fd8
movq %rbx, 0x8(%rsp)
movq %rbx, %rsi
callq 0x2130
leaq 0x18b0(%rip), %rsi      # 0x6832
movl $0x2, %edx
movq %rax, %rbx
movq %rax, %rdi
callq 0x2180
leaq 0x18cf(%rip), %rsi      # 0x6868
movl $0x1, %edx
movq %rbx, %rdi
callq 0x2180
vcvtsi2sdq 0x8(%rsp), %xmm2, %xmm0
vdivsd 0x185b(%rip), %xmm0, %xmm0 # 0x6810
vmovsd 0x185b(%rip), %xmm1     # 0x6818
vdivsd %xmm0, %xmm1, %xmm0
vcvtsd2ss %xmm0, %xmm0, %xmm0
vcvtss2sd %xmm0, %xmm0, %xmm0
movq %rbx, %rdi
callq 0x21b0
movq %rax, %rbx
leaq 0x188d(%rip), %rsi      # 0x6868
movl $0x1, %edx
movq %rax, %rdi
callq 0x2180
movl %ebp, %esi
movq %rbx, %rdi
callq 0x20c0
movq %rax, %rbp
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbp, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20d0
callq 0x57a8
movq %rax, 0x8(%rsp)
movl $0x2710, %ebx           # imm = 0x2710
movq %r15, %rdi
movq %r13, %rsi
movq 0x10(%rsp), %rdx
movq %r12, %rcx
movq %r14, %r8
callq 0x3e12
decl %ebx
jne 0x502b
movq %rax, %rbp
callq 0x57a8
movq %rax, %rbx
movq 0x3f81(%rip), %rdi      # 0x8fd8
leaq 0x180c(%rip), %rsi      # 0x686a
movl $0x1b, %edx
callq 0x2180
subq 0x8(%rsp), %rbx
movq 0x3f64(%rip), %rdi      # 0x8fd8
movq %rbx, 0x8(%rsp)
movq %rbx, %rsi
callq 0x2130
leaq 0x17aa(%rip), %rsi      # 0x6832
movl $0x2, %edx
movq %rax, %rbx
movq %rax, %rdi
callq 0x2180
leaq 0x17c9(%rip), %rsi      # 0x6868
movl $0x1, %edx
movq %rbx, %rdi
callq 0x2180
vcvtsi2sdq 0x8(%rsp), %xmm2, %xmm0
vdivsd 0x1755(%rip), %xmm0, %xmm0 # 0x6810
vmovsd 0x1755(%rip), %xmm1     # 0x6818
vdivsd %xmm0, %xmm1, %xmm0
vcvtsd2ss %xmm0, %xmm0, %xmm0
vcvtss2sd %xmm0, %xmm0, %xmm0
movq %rbx, %rdi
callq 0x21b0
movq %rax, %rbx
leaq 0x1787(%rip), %rsi      # 0x6868
movl $0x1, %edx
movq %rax, %rdi
callq 0x2180
movl %ebp, %esi
movq %rbx, %rdi
callq 0x20c0
movq %rax, %rbp
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbp, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20d0
callq 0x57a8
movq %rax, 0x8(%rsp)
movl $0x2710, %ebx           # imm = 0x2710
movq %r15, %rdi
movq %r13, %rsi
movq 0x10(%rsp), %rdx
movq %r12, %rcx
movq %r14, %r8
callq 0x4484
decl %ebx
jne 0x5131
movq %rax, %rbp
callq 0x57a8
movq %rax, %rbx
movq 0x3e7b(%rip), %rdi      # 0x8fd8
leaq 0x1722(%rip), %rsi      # 0x6886
movl $0x7, %edx
callq 0x2180
subq 0x8(%rsp), %rbx
movq 0x3e5e(%rip), %rdi      # 0x8fd8
movq %rbx, %rsi
callq 0x2130
movq %rax, %r13
leaq 0x16a6(%rip), %rsi      # 0x6832
movl $0x2, %edx
movq %rax, %rdi
callq 0x2180
leaq 0x16c8(%rip), %rsi      # 0x6868
movl $0x1, %edx
movq %r13, %rdi
callq 0x2180
vcvtsi2sd %rbx, %xmm2, %xmm0
vdivsd 0x1656(%rip), %xmm0, %xmm0 # 0x6810
vmovsd 0x1656(%rip), %xmm1     # 0x6818
vdivsd %xmm0, %xmm1, %xmm0
vcvtsd2ss %xmm0, %xmm0, %xmm0
vcvtss2sd %xmm0, %xmm0, %xmm0
movq %r13, %rdi
callq 0x21b0
movq %rax, %r13
leaq 0x1688(%rip), %rsi      # 0x6868
movl $0x1, %edx
movq %rax, %rdi
callq 0x2180
movl %ebp, %esi
movq %r13, %rdi
callq 0x20c0
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %r13, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20d0
callq 0x57a8
movq %rax, 0x8(%rsp)
movl $0x2710, %r13d          # imm = 0x2710
movl 0x20(%rsp), %ebx
movq %r15, %rdi
movl %ebx, %esi
movq 0x10(%rsp), %rdx
movl %r12d, %ecx
movq %r14, %r8
callq 0x2ebc
decl %r13d
jne 0x5235
movl %eax, %ebp
callq 0x57a8
movq %rax, %rbx
movq 0x3d78(%rip), %rdi      # 0x8fd8
leaq 0x1627(%rip), %rsi      # 0x688e
movl $0xc, %edx
callq 0x2180
subq 0x8(%rsp), %rbx
movq 0x3d5b(%rip), %rdi      # 0x8fd8
movq %rbx, %rsi
callq 0x2130
movq %rax, %r13
leaq 0x15a3(%rip), %rsi      # 0x6832
movl $0x2, %edx
movq %rax, %rdi
callq 0x2180
leaq 0x15c5(%rip), %rsi      # 0x6868
movl $0x1, %edx
movq %r13, %rdi
callq 0x2180
vcvtsi2sd %rbx, %xmm2, %xmm0
vdivsd 0x1553(%rip), %xmm0, %xmm0 # 0x6810
vmovsd 0x1553(%rip), %xmm1     # 0x6818
vdivsd %xmm0, %xmm1, %xmm0
vcvtsd2ss %xmm0, %xmm0, %xmm0
vcvtss2sd %xmm0, %xmm0, %xmm0
movq %r13, %rdi
callq 0x21b0
movq %rax, %r13
leaq 0x1585(%rip), %rsi      # 0x6868
movl $0x1, %edx
movq %rax, %rdi
callq 0x2180
movl %ebp, %esi
movq %r13, %rdi
callq 0x20c0
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %r13, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20d0
callq 0x2853
movq 0x10(%rsp), %rdi
movl %r12d, %esi
callq 0x242c
movq %rax, %r12
movq %r15, %rdi
movl 0x20(%rsp), %esi
callq 0x242c
movq %rax, %r13
callq 0x57a8
movq %rax, %r15
movl $0x2710, %ebp           # imm = 0x2710
movq %r13, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x27a0
decl %ebp
jne 0x5355
movl %eax, %ebx
callq 0x57a8
movq %rax, %r14
movq 0x3c60(%rip), %rdi      # 0x8fd8
leaq 0x151c(%rip), %rsi      # 0x689b
movl $0x6, %edx
callq 0x2180
subq %r15, %r14
movq 0x3c45(%rip), %rdi      # 0x8fd8
movq %r14, %rsi
callq 0x2130
movq %rax, %r15
leaq 0x148d(%rip), %rsi      # 0x6832
movl $0x2, %edx
movq %rax, %rdi
callq 0x2180
leaq 0x14af(%rip), %rsi      # 0x6868
movl $0x1, %edx
movq %r15, %rdi
callq 0x2180
vcvtsi2sd %r14, %xmm2, %xmm0
vdivsd 0x143d(%rip), %xmm0, %xmm0 # 0x6810
vmovsd 0x143d(%rip), %xmm1     # 0x6818
vdivsd %xmm0, %xmm1, %xmm0
vcvtsd2ss %xmm0, %xmm0, %xmm0
vcvtss2sd %xmm0, %xmm0, %xmm0
movq %r15, %rdi
callq 0x21b0
movq %rax, %r14
leaq 0x146f(%rip), %rsi      # 0x6868
movl $0x1, %edx
movq %rax, %rdi
callq 0x2180
movl %ebx, %esi
movq %r14, %rdi
callq 0x20c0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x2150
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x20d0
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5455
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2170
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5470
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2170
xorl %eax, %eax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x54dd
jmp 0x54dd
jmp 0x54dd
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r15, %rdi
je 0x54e0
movq 0x78(%rsp), %rsi
jmp 0x54b6
movq %rax, %rbx
movq 0x88(%rsp), %rdi
cmpq %r15, %rdi
je 0x54e0
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x2170
jmp 0x54e0
movq %rax, %rbx
jmp 0x54fb
jmp 0x54dd
jmp 0x54dd
jmp 0x54dd
jmp 0x54dd
jmp 0x54dd
jmp 0x54dd
jmp 0x54dd
jmp 0x54dd
jmp 0x54dd
jmp 0x54dd
jmp 0x54dd
jmp 0x54dd
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x54fb
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2170
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5516
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2170
movq %rbx, %rdi
callq 0x2200
nop