// File: /workspace/github_cpp_makefile_star2_O1/BU-DiSC[P]BF-Shared-Hashing/db.cpp
// Function: db::loadBFAndIndex()
fsec db::loadBFAndIndex(){
	fp_vec = vector<uint64_t> (num_levels, 0);
	n_vec = vector<uint64_t> (num_levels, 0);
	bf_prime = (char****) malloc  ( num_levels * sizeof(char***));
	blk_fp_prime = (char****) malloc  ( num_levels * sizeof(char***));
	blk_size_prime = (int**) malloc (num_levels*sizeof(int*));
	if(fastlocal_bf){
		FastLocalBF bf = FastLocalBF(bpk/num_filter_units);
		filter_size = bf.CalculateSpace(B*P);
        	num_probes = bf.num_probes_;
	}else{
		LegacyBF bf = LegacyBF(bpk/num_filter_units);
		uint32_t dont_care;
		filter_size = bf.CalculateSpace(B*P, &dont_care, &num_lines);
        	num_probes = bf.num_probes_;
	}
	int tmp_filter_size = filter_size;
	auto l_start = high_resolution_clock::now();
	auto l_end = high_resolution_clock::now();
	fsec load_duration = std::chrono::microseconds::zero();
	for(int i = 0; i < num_levels; i++){
		bf_prime[i] = (char***) malloc (num_sstPerLevel[i]*sizeof(char**));
		blk_fp_prime[i] = (char***) malloc (num_sstPerLevel[i]*sizeof(char**));
		blk_size_prime[i] = (int*) malloc (num_sstPerLevel[i]*sizeof(int));

		for(int j = 0; j < num_sstPerLevel[i]; j++){
			string sst_index_filename = index_dir + "level_" + to_string(i) + "-sst_" + to_string(j) + ".txt";
			l_start = high_resolution_clock::now();
			int index_size = read_index_size(sst_index_filename);	
			l_end = high_resolution_clock::now();
			load_duration += duration_cast<microseconds>(l_end - l_start);

			char** index = (char**) malloc((index_size+1)*sizeof(char*));
			for(int k = 0; k <= index_size; k++){
				index[k] = (char*) malloc ((K+1)*sizeof(char));
			}
			l_start = high_resolution_clock::now();
			read_index(sst_index_filename, index_size, index);
			l_end = high_resolution_clock::now();
			load_duration += duration_cast<microseconds>(l_end - l_start);

			blk_fp_prime[i][j] = index;
			blk_size_prime[i][j] = index_size;

			if(i == num_levels - 1 && j == num_sstPerLevel[i] - 1){
				if(fastlocal_bf){
					FastLocalBF bf = FastLocalBF(bpk/num_filter_units);
					last_filter_size = bf.CalculateSpace(last_sst_keys);
					last_num_lines = bf.num_lines_;
				}else{
					LegacyBF bf = LegacyBF(bpk/num_filter_units);
					uint32_t dont_care;
					last_filter_size = bf.CalculateSpace(last_sst_keys, &dont_care, &last_num_lines);
					last_num_lines = bf.num_lines_;

				}
				tmp_filter_size = last_filter_size;
			} 
			
			char** sst_bf = (char**) malloc (num_filter_units*sizeof(char*));

			for(int k = 0; k < num_filter_units; k++){
				string sst_bf_filename = bf_dir + "level_" + to_string(i) + "-sst_" + to_string(j) + "_" + to_string(k) + ".txt";
				char* blo_bf = (char*) malloc (tmp_filter_size*sizeof(char));
				l_start = high_resolution_clock::now();
				read_bf(sst_bf_filename, blo_bf, tmp_filter_size);
				l_end = high_resolution_clock::now();
				load_duration += duration_cast<microseconds>(l_end - l_start);
				sst_bf[k] = blo_bf;
			}
			bf_prime[i][j] = sst_bf;
		}
	}
	return load_duration;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x258, %rsp            # imm = 0x258
movq %rdi, %r15
movslq 0xdc(%rdi), %rsi
xorl %ebx, %ebx
leaq 0xf0(%rsp), %rdx
movq %rbx, (%rdx)
leaq 0x170(%rsp), %r14
leaq 0x8(%rsp), %rcx
movq %r14, %rdi
callq 0xd250
movq 0x1b0(%r15), %rdi
movaps (%r14), %xmm0
movq 0x10(%r14), %rax
movq %rdi, (%r14)
movups 0x1b8(%r15), %xmm1
movups %xmm0, 0x1b0(%r15)
movq %r15, 0x80(%rsp)
movq %rax, 0x1c0(%r15)
movups %xmm1, 0x8(%r14)
movq %rbx, 0x10(%r14)
xorps %xmm0, %xmm0
movaps %xmm0, (%r14)
testq %rdi, %rdi
je 0xb6ca
callq 0x53d0
movq 0x170(%rsp), %rdi
testq %rdi, %rdi
je 0xb6dc
callq 0x53d0
movq 0x80(%rsp), %r15
movslq 0xdc(%r15), %rsi
xorl %ebx, %ebx
leaq 0xf0(%rsp), %rdx
movq %rbx, (%rdx)
leaq 0x170(%rsp), %r14
leaq 0x8(%rsp), %rcx
movq %r14, %rdi
callq 0xd250
movq 0x1c8(%r15), %rdi
movapd (%r14), %xmm0
movq 0x10(%r14), %rax
movq %rdi, (%r14)
movups 0x1d0(%r15), %xmm1
movupd %xmm0, 0x1c8(%r15)
movq %rax, 0x1d8(%r15)
movups %xmm1, 0x8(%r14)
movq %rbx, 0x10(%r14)
xorpd %xmm0, %xmm0
movapd %xmm0, (%r14)
testq %rdi, %rdi
je 0xb754
callq 0x53d0
movq 0x170(%rsp), %rdi
testq %rdi, %rdi
je 0xb766
callq 0x53d0
movq 0x80(%rsp), %rbx
movslq 0xdc(%rbx), %r14
shlq $0x3, %r14
movq %r14, %rdi
callq 0x5530
movq %rax, 0x158(%rbx)
movq %r14, %rdi
callq 0x5530
movq %rax, 0x160(%rbx)
movq %r14, %rdi
callq 0x5530
movq %rax, 0x168(%rbx)
cmpb $0x1, 0x10c(%rbx)
jne 0xb83d
movl 0x104(%rbx), %eax
cltd
idivl 0x110(%rbx)
leaq 0x170(%rsp), %r14
movq %r14, %rdi
movl %eax, %esi
callq 0xd5ea
movl 0xc4(%rbx), %ecx
imull 0xc8(%rbx), %ecx
movslq (%r14), %rax
testq %rax, %rax
setle %sil
testl %ecx, %ecx
setle %dil
movl $0x5, %edx
orb %sil, %dil
jne 0xb81c
movl %ecx, %ecx
imulq %rcx, %rax
addq $0x7cfff, %rax          # imm = 0x7CFFF
shrq $0xc, %rax
movabsq $0x20c49ba5e353f7d, %rcx # imm = 0x20C49BA5E353F7D
mulq %rcx
shll $0x6, %edx
orl $0x5, %edx
movl %edx, 0x120(%rbx)
leaq 0x190(%rsp), %rdi
movl -0x1c(%rdi), %eax
movl %eax, 0x130(%rbx)
callq 0xe28e
jmp 0xb8d6
movl 0x104(%rbx), %eax
cltd
idivl 0x110(%rbx)
xorpd %xmm0, %xmm0
leaq 0x170(%rsp), %r14
movupd %xmm0, 0x10(%r14)
movq $0x0, 0x20(%r14)
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd 0x1d8d5(%rip), %xmm0    # 0x29148
movl %eax, (%r14)
cvttsd2si %xmm0, %eax
cmpl $0x2, %eax
movl $0x1, %ecx
cmovgel %eax, %ecx
cmpl $0x1e, %ecx
movl $0x1e, %eax
cmovll %ecx, %eax
movl %eax, 0x4(%r14)
movl 0xc4(%rbx), %esi
imull 0xc8(%rbx), %esi
leaq 0x128(%rbx), %rcx
leaq 0xf0(%rsp), %rdx
movq %r14, %rdi
callq 0x73b4
movl %eax, 0x120(%rbx)
movl 0x4(%r14), %eax
movl %eax, 0x130(%rbx)
movq 0x10(%r14), %rdi
testq %rdi, %rdi
je 0xb8d6
callq 0x53d0
movl 0x120(%rbx), %eax
movl %eax, 0x38(%rsp)
callq 0x5080
callq 0x5080
cmpl $0x0, 0xdc(%rbx)
jle 0xc8e6
leaq 0x50(%rsp), %r14
leaq 0x12c(%rbx), %rax
movq %rax, 0x1e8(%rsp)
xorpd %xmm0, %xmm0
movss %xmm0, 0x4(%rsp)
xorl %r15d, %r15d
movl $0xd1b71759, %r12d      # imm = 0xD1B71759
movq 0xe8(%rbx), %rax
movslq (%rax,%r15,4), %rdi
shlq $0x3, %rdi
callq 0x5530
movq 0x158(%rbx), %rcx
movq %rax, (%rcx,%r15,8)
movq 0xe8(%rbx), %rax
movslq (%rax,%r15,4), %rdi
shlq $0x3, %rdi
callq 0x5530
movq 0x160(%rbx), %rcx
movq %rax, (%rcx,%r15,8)
movq 0xe8(%rbx), %rax
movslq (%rax,%r15,4), %rdi
shlq $0x2, %rdi
callq 0x5530
movq 0x168(%rbx), %rcx
movq %rax, (%rcx,%r15,8)
movq 0xe8(%rbx), %rax
movq %r15, 0x30(%rsp)
cmpl $0x0, (%rax,%r15,4)
jle 0xc8cc
xorl %ecx, %ecx
movq %rcx, 0x28(%rsp)
movq %r14, 0x40(%rsp)
movq 0x40(%rbx), %rsi
movq 0x48(%rbx), %rdx
addq %rsi, %rdx
leaq 0x40(%rsp), %r15
movq %r15, %rdi
callq 0x6bf6
movq %r15, %rdi
leaq 0x1da47(%rip), %rsi     # 0x29407
callq 0x5720
movl $0x1, %ebp
movq 0x30(%rsp), %r14
cmpq $0xa, %r14
jb 0xba12
movl $0x4, %ebp
movl %r14d, %eax
cmpl $0x63, %eax
jbe 0xba0b
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0xba10
cmpl $0x2710, %eax           # imm = 0x2710
jb 0xba12
movl %eax, %ecx
imulq %r12, %rcx
shrq $0x2d, %rcx
addl $0x4, %ebp
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0xb9dd
addl $-0x3, %ebp
jmp 0xba12
addl $-0x2, %ebp
jmp 0xba12
decl %ebp
movl %ebp, %esi
leaq 0xb8(%rsp), %rax
movq %rax, 0xa8(%rsp)
leaq 0xa8(%rsp), %rdi
movl $0x2d, %edx
callq 0x5480
movq 0xa8(%rsp), %rdi
movl %ebp, %esi
movl %r14d, %edx
callq 0xe2d1
movq 0x40(%rsp), %rcx
movl $0xf, %esi
leaq 0x50(%rsp), %r15
cmpq %r15, %rcx
je 0xba61
movq 0x50(%rsp), %rsi
movq 0x48(%rsp), %r8
movq 0xb0(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
leaq 0xb8(%rsp), %r14
leaq 0x18(%rsp), %rbp
jbe 0xbaa0
movl $0xf, %esi
cmpq %r14, 0xa8(%rsp)
je 0xba9b
movq 0xb8(%rsp), %rsi
cmpq %rsi, %rax
jbe 0xbab4
movq 0xa8(%rsp), %rsi
leaq 0x40(%rsp), %rdi
callq 0x5150
jmp 0xbac5
leaq 0xa8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5450
leaq 0x98(%rsp), %rsi
movq %rsi, 0x88(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0xbaf6
movq %rdx, 0x88(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x98(%rsp)
jmp 0xbafe
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x90(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x88(%rsp), %rdi
leaq 0x1d8e1(%rip), %rsi     # 0x2940e
callq 0x5720
movq %rbp, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xbb55
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0xbb5e
movupd (%rcx), %xmm0
movupd %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl $0x1, %ebp
movq 0x28(%rsp), %rax
cmpq $0xa, %rax
jb 0xbbc0
movl $0x4, %ebp
cmpl $0x63, %eax
jbe 0xbbb9
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0xbbbe
cmpl $0x2710, %eax           # imm = 0x2710
jb 0xbbc0
movl %eax, %ecx
imulq %r12, %rcx
shrq $0x2d, %rcx
addl $0x4, %ebp
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0xbb8b
addl $-0x3, %ebp
jmp 0xbbc0
addl $-0x2, %ebp
jmp 0xbbc0
decl %ebp
movl %ebp, %esi
leaq 0x70(%rsp), %rax
movq %rax, 0x60(%rsp)
leaq 0x60(%rsp), %rdi
movl $0x2d, %edx
callq 0x5480
movq 0x60(%rsp), %rdi
movl %ebp, %esi
movq 0x28(%rsp), %rdx
callq 0xe2d1
movq 0x8(%rsp), %rcx
movl $0xf, %esi
leaq 0x18(%rsp), %rax
cmpq %rax, %rcx
je 0xbc05
movq 0x18(%rsp), %rsi
movq 0x10(%rsp), %r8
movq 0x68(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
leaq 0xb8(%rsp), %r14
leaq 0x50(%rsp), %r15
leaq 0x70(%rsp), %rbp
jbe 0xbc40
movl $0xf, %esi
cmpq %rbp, 0x60(%rsp)
je 0xbc3b
movq 0x70(%rsp), %rsi
cmpq %rsi, %rax
jbe 0xbc51
movq 0x60(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x5150
jmp 0xbc5f
leaq 0x60(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5450
leaq 0x180(%rsp), %rsi
movq %rsi, 0x170(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0xbc90
movq %rdx, 0x170(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x180(%rsp)
jmp 0xbc98
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x178(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x170(%rsp), %rdi
leaq 0x1e036(%rip), %rsi     # 0x29cfd
callq 0x5720
leaq 0x100(%rsp), %rsi
movq %rsi, 0xf0(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xbd00
movq %rdx, 0xf0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x100(%rsp)
jmp 0xbd08
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0xf8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x170(%rsp), %rdi
leaq 0x180(%rsp), %rax
cmpq %rax, %rdi
je 0xbd3d
callq 0x53d0
movq 0x60(%rsp), %rdi
cmpq %rbp, %rdi
je 0xbd4c
callq 0x53d0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xbd60
callq 0x53d0
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0xbd7a
callq 0x53d0
movq 0xa8(%rsp), %rdi
cmpq %r14, %rdi
je 0xbd8c
callq 0x53d0
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
leaq 0x238(%rsp), %r14
je 0xbda3
callq 0x53d0
callq 0x5080
movq %rax, %r15
leaq 0x248(%rsp), %rax
movq %rax, 0x238(%rsp)
movq 0xf0(%rsp), %rsi
movq 0xf8(%rsp), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x6bf6
movq %rbx, %rdi
movq %r14, %rsi
callq 0xdc50
movl %eax, %r14d
movq 0x238(%rsp), %rdi
leaq 0x248(%rsp), %rax
cmpq %rax, %rdi
je 0xbdfe
callq 0x53d0
callq 0x5080
subq %r15, %rax
movabsq $0x20c49ba5e353f7cf, %rcx # imm = 0x20C49BA5E353F7CF
imulq %rcx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x7, %rdx
addq %rax, %rdx
xorps %xmm0, %xmm0
cvtsi2ss %rdx, %xmm0
divss 0x1d1d3(%rip), %xmm0    # 0x29004
movss %xmm0, 0x3c(%rsp)
movslq %r14d, %rax
leaq 0x8(,%rax,8), %rdi
callq 0x5530
movq %rax, %r15
testl %r14d, %r14d
js 0xbe7b
movq 0x80(%rsp), %rax
movslq 0xd0(%rax), %rbp
incq %rbp
leal 0x1(%r14), %r13d
xorl %ebx, %ebx
movq %rbp, %rdi
callq 0x5530
movq %rax, (%r15,%rbx,8)
incq %rbx
cmpq %rbx, %r13
jne 0xbe67
callq 0x5080
movq %rax, %rbp
leaq 0x228(%rsp), %rax
movq %rax, 0x218(%rsp)
movq 0xf0(%rsp), %rsi
movq 0xf8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x218(%rsp), %r13
movq %r13, %rdi
callq 0x6bf6
movq 0x80(%rsp), %rbx
movq %rbx, %rdi
movq %r13, %rsi
movl %r14d, %edx
movq %r15, %rcx
callq 0xdd4a
movq 0x218(%rsp), %rdi
leaq 0x228(%rsp), %rax
cmpq %rax, %rdi
je 0xbee9
callq 0x53d0
callq 0x5080
subq %rbp, %rax
movabsq $0x20c49ba5e353f7cf, %rcx # imm = 0x20C49BA5E353F7CF
imulq %rcx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x7, %rdx
addq %rax, %rdx
cvtsi2ss %rdx, %xmm1
divss 0x1d0eb(%rip), %xmm1    # 0x29004
movq 0x160(%rbx), %rax
movq 0x30(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x28(%rsp), %rdx
movq %r15, (%rax,%rdx,8)
movq 0x168(%rbx), %rax
movq (%rax,%rcx,8), %rax
movl %r14d, (%rax,%rdx,4)
movl 0xdc(%rbx), %eax
decl %eax
cmpq %rax, %rcx
jne 0xc016
movq 0xe8(%rbx), %rax
movl (%rax,%rcx,4), %eax
decl %eax
cmpq %rax, %rdx
leaq 0xb8(%rsp), %rbp
leaq 0xd0(%rsp), %r15
jne 0xc0dd
movss %xmm1, 0xc8(%rsp)
cmpb $0x1, 0x10c(%rbx)
jne 0xc02b
movl 0x104(%rbx), %eax
cltd
idivl 0x110(%rbx)
leaq 0x170(%rsp), %rdi
movl %eax, %esi
callq 0xd5ea
movslq 0x100(%rbx), %rcx
testq %rcx, %rcx
setle %sil
movslq 0x170(%rsp), %rax
testq %rax, %rax
setle %dil
movl $0x5, %edx
orb %sil, %dil
jne 0xbff1
imulq %rcx, %rax
addq $0x7cfff, %rax          # imm = 0x7CFFF
shrq $0xc, %rax
movabsq $0x20c49ba5e353f7d, %rcx # imm = 0x20C49BA5E353F7D
mulq %rcx
shll $0x6, %edx
orl $0x5, %edx
movl %edx, 0x124(%rbx)
movl 0x178(%rsp), %eax
movl %eax, 0x12c(%rbx)
leaq 0x190(%rsp), %rdi
callq 0xe28e
jmp 0xc0ca
leaq 0xb8(%rsp), %rbp
leaq 0xd0(%rsp), %r15
jmp 0xc0dd
movl 0x104(%rbx), %eax
cltd
idivl 0x110(%rbx)
leaq 0x180(%rsp), %rcx
xorps %xmm0, %xmm0
movups %xmm0, (%rcx)
movq $0x0, 0x10(%rcx)
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movl %eax, 0x170(%rsp)
mulsd 0x1d0e4(%rip), %xmm0    # 0x29148
cvttsd2si %xmm0, %eax
cmpl $0x2, %eax
movl $0x1, %ecx
cmovll %ecx, %eax
cmpl $0x1e, %eax
movl $0x1e, %ecx
cmovgel %ecx, %eax
movl %eax, 0x174(%rsp)
movl 0x100(%rbx), %esi
leaq 0x170(%rsp), %rdi
leaq 0x8(%rsp), %rdx
movq 0x1e8(%rsp), %rcx
callq 0x73b4
movl %eax, 0x124(%rbx)
movl 0x178(%rsp), %eax
movl %eax, 0x12c(%rbx)
movq 0x180(%rsp), %rdi
testq %rdi, %rdi
je 0xc0ca
callq 0x53d0
movss 0xc8(%rsp), %xmm1
movl 0x124(%rbx), %eax
movl %eax, 0x38(%rsp)
movss 0x4(%rsp), %xmm0
addss 0x3c(%rsp), %xmm0
addss %xmm1, %xmm0
movss %xmm0, 0x4(%rsp)
movslq 0x110(%rbx), %rbx
leaq (,%rbx,8), %rdi
callq 0x5530
movq %rax, 0xc8(%rsp)
testq %rbx, %rbx
jle 0xc868
movslq 0x38(%rsp), %rax
movq %rax, 0x1f0(%rsp)
xorl %r14d, %r14d
movq 0x80(%rsp), %rbx
leaq 0xe0(%rsp), %rax
movq %rax, 0xd0(%rsp)
movq 0x20(%rbx), %rsi
movq 0x28(%rbx), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x6bf6
movq %r15, %rdi
leaq 0x1d2aa(%rip), %rsi     # 0x29407
callq 0x5720
movl $0x1, %r15d
cmpq $0xa, 0x30(%rsp)
jb 0xc1b4
movl $0x4, %r15d
movq 0x30(%rsp), %rax
cmpl $0x63, %eax
jbe 0xc1ab
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0xc1b1
cmpl $0x2710, %eax           # imm = 0x2710
jb 0xc1b4
movl %eax, %ecx
imulq %r12, %rcx
shrq $0x2d, %rcx
addl $0x4, %r15d
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0xc17b
addl $-0x3, %r15d
jmp 0xc1b4
addl $-0x2, %r15d
jmp 0xc1b4
decl %r15d
movl %r15d, %esi
leaq 0x160(%rsp), %rax
movq %rax, 0x150(%rsp)
leaq 0x150(%rsp), %rdi
movl $0x2d, %edx
callq 0x5480
movq 0x150(%rsp), %rdi
movl %r15d, %esi
movq 0x30(%rsp), %rdx
callq 0xe2d1
movq 0xd0(%rsp), %rcx
movl $0xf, %esi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rcx
je 0xc210
movq 0xe0(%rsp), %rsi
movq 0xd8(%rsp), %r8
movq 0x158(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
leaq 0xd0(%rsp), %r9
jbe 0xc255
movl $0xf, %esi
leaq 0x160(%rsp), %rdi
cmpq %rdi, 0x150(%rsp)
je 0xc250
movq 0x160(%rsp), %rsi
cmpq %rsi, %rax
jbe 0xc267
movq 0x150(%rsp), %rsi
movq %r9, %rdi
callq 0x5150
jmp 0xc278
leaq 0x150(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5450
leaq 0x70(%rsp), %rsi
movq %rsi, 0x60(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0xc29d
movq %rdx, 0x60(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x70(%rsp)
jmp 0xc2a3
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x68(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x60(%rsp), %rdi
leaq 0x1d142(%rip), %rsi     # 0x2940e
callq 0x5720
movq %rbp, 0xa8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xc2fd
movq %rdx, 0xa8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xb8(%rsp)
jmp 0xc304
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
movq %rdx, 0xb0(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl $0x1, %r15d
movq 0x28(%rsp), %rax
cmpq $0xa, %rax
jb 0xc36f
movl $0x4, %r15d
cmpl $0x63, %eax
jbe 0xc366
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0xc36c
cmpl $0x2710, %eax           # imm = 0x2710
jb 0xc36f
movl %eax, %ecx
imulq %r12, %rcx
shrq $0x2d, %rcx
addl $0x4, %r15d
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0xc336
addl $-0x3, %r15d
jmp 0xc36f
addl $-0x2, %r15d
jmp 0xc36f
decl %r15d
movl %r15d, %esi
leaq 0x140(%rsp), %rax
movq %rax, 0x130(%rsp)
leaq 0x130(%rsp), %rdi
movl $0x2d, %edx
callq 0x5480
movq 0x130(%rsp), %rdi
movl %r15d, %esi
movq 0x28(%rsp), %rdx
callq 0xe2d1
movq 0xa8(%rsp), %rcx
movl $0xf, %esi
cmpq %rbp, %rcx
je 0xc3c3
movq 0xb8(%rsp), %rsi
movq 0xb0(%rsp), %r8
movq 0x138(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
leaq 0x98(%rsp), %r15
jbe 0xc408
movl $0xf, %esi
leaq 0x140(%rsp), %rdi
cmpq %rdi, 0x130(%rsp)
je 0xc403
movq 0x140(%rsp), %rsi
cmpq %rsi, %rax
jbe 0xc41f
movq 0x130(%rsp), %rsi
leaq 0xa8(%rsp), %rdi
callq 0x5150
jmp 0xc430
leaq 0x130(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5450
leaq 0x50(%rsp), %rsi
movq %rsi, 0x40(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0xc455
movq %rdx, 0x40(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x50(%rsp)
jmp 0xc45b
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x48(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x40(%rsp), %rdi
leaq 0x1cf88(%rip), %rsi     # 0x2940c
callq 0x5720
movq %r15, 0x88(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xc4b5
movq %rdx, 0x88(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x98(%rsp)
jmp 0xc4bc
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0x90(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl $0x1, %r15d
cmpq $0xa, %r14
jb 0xc525
movl $0x4, %r15d
movl %r14d, %eax
cmpl $0x63, %eax
jbe 0xc51c
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0xc522
cmpl $0x2710, %eax           # imm = 0x2710
jb 0xc525
movl %eax, %ecx
imulq %r12, %rcx
shrq $0x2d, %rcx
addl $0x4, %r15d
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0xc4ec
addl $-0x3, %r15d
jmp 0xc525
addl $-0x2, %r15d
jmp 0xc525
decl %r15d
movl %r15d, %esi
leaq 0x120(%rsp), %rax
movq %rax, 0x110(%rsp)
leaq 0x110(%rsp), %rdi
movl $0x2d, %edx
callq 0x5480
movq 0x110(%rsp), %rdi
movl %r15d, %esi
movl %r14d, %edx
callq 0xe2d1
movq 0x88(%rsp), %rcx
movl $0xf, %esi
leaq 0x98(%rsp), %r15
cmpq %r15, %rcx
je 0xc57f
movq 0x98(%rsp), %rsi
movq 0x90(%rsp), %r8
movq 0x118(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
jbe 0xc5bc
movl $0xf, %esi
leaq 0x120(%rsp), %rdi
cmpq %rdi, 0x110(%rsp)
je 0xc5b7
movq 0x120(%rsp), %rsi
cmpq %rsi, %rax
jbe 0xc5d3
movq 0x110(%rsp), %rsi
leaq 0x88(%rsp), %rdi
callq 0x5150
jmp 0xc5e4
leaq 0x110(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5450
leaq 0x18(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0xc609
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0xc60f
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x8(%rsp), %rdi
leaq 0x1d6c5(%rip), %rsi     # 0x29cfd
callq 0x5720
leaq 0x180(%rsp), %rsi
movq %rsi, 0x170(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xc671
movq %rdx, 0x170(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x180(%rsp)
jmp 0xc677
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x178(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xc6a6
callq 0x53d0
movq 0x110(%rsp), %rdi
leaq 0x120(%rsp), %rax
cmpq %rax, %rdi
je 0xc6c0
callq 0x53d0
movq 0x88(%rsp), %rdi
cmpq %r15, %rdi
je 0xc6d2
callq 0x53d0
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0xc6e6
callq 0x53d0
movq 0x130(%rsp), %rdi
leaq 0x140(%rsp), %rax
cmpq %rax, %rdi
je 0xc700
callq 0x53d0
movq 0xa8(%rsp), %rdi
cmpq %rbp, %rdi
je 0xc712
callq 0x53d0
movq 0x60(%rsp), %rdi
leaq 0x70(%rsp), %rax
cmpq %rax, %rdi
je 0xc726
callq 0x53d0
movq 0x150(%rsp), %rdi
leaq 0x160(%rsp), %rax
cmpq %rax, %rdi
je 0xc740
callq 0x53d0
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0xc75a
callq 0x53d0
movq 0x1f0(%rsp), %rdi
callq 0x5530
movq %rax, %r15
callq 0x5080
movq %rax, %rbp
leaq 0x208(%rsp), %rax
movq %rax, 0x1f8(%rsp)
movq 0x170(%rsp), %rsi
movq 0x178(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1f8(%rsp), %r13
movq %r13, %rdi
callq 0x6bf6
movq %rbx, %rdi
movq %r13, %rsi
movq %r15, %rdx
movl 0x38(%rsp), %ecx
callq 0xdf58
movq 0x1f8(%rsp), %rdi
leaq 0x208(%rsp), %rax
cmpq %rax, %rdi
je 0xc7d1
callq 0x53d0
callq 0x5080
subq %rbp, %rax
movabsq $0x20c49ba5e353f7cf, %rcx # imm = 0x20C49BA5E353F7CF
imulq %rcx
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x7, %rdx
addq %rax, %rdx
cvtsi2ss %rdx, %xmm1
divss 0x1c803(%rip), %xmm1    # 0x29004
movq 0xc8(%rsp), %rax
movq %r15, (%rax,%r14,8)
movq 0x170(%rsp), %rdi
leaq 0x180(%rsp), %rax
cmpq %rax, %rdi
je 0xc833
movss %xmm1, 0x3c(%rsp)
callq 0x53d0
movss 0x3c(%rsp), %xmm1
movss 0x4(%rsp), %xmm0
addss %xmm1, %xmm0
movss %xmm0, 0x4(%rsp)
incq %r14
movslq 0x110(%rbx), %rax
cmpq %rax, %r14
leaq 0xb8(%rsp), %rbp
leaq 0xd0(%rsp), %r15
jl 0xc130
jmp 0xc870
movq 0x80(%rsp), %rbx
movq 0x158(%rbx), %rax
movq 0x30(%rsp), %r14
movq (%rax,%r14,8), %rax
movq 0x28(%rsp), %rcx
movq 0xc8(%rsp), %rdx
movq %rdx, (%rax,%rcx,8)
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0xc8b0
callq 0x53d0
movq 0x28(%rsp), %rcx
incq %rcx
movq 0xe8(%rbx), %rax
movslq (%rax,%r14,4), %rax
cmpq %rax, %rcx
leaq 0x50(%rsp), %r14
jl 0xb994
movq 0x30(%rsp), %r15
incq %r15
movslq 0xdc(%rbx), %rax
cmpq %rax, %r15
jl 0xb91e
jmp 0xc8f0
xorpd %xmm0, %xmm0
movss %xmm0, 0x4(%rsp)
movss 0x4(%rsp), %xmm0
addq $0x258, %rsp            # imm = 0x258
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xca33
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %r14, %rdi
jne 0xcb61
jmp 0xcb66
movq %rax, %rbx
leaq 0x50(%rsp), %r15
jmp 0xc9c2
movq %rax, %rbx
jmp 0xc996
movq %rax, %rbx
jmp 0xc9b0
movq %rax, %rbx
leaq 0xb8(%rsp), %r14
leaq 0x50(%rsp), %r15
jmp 0xc982
movq %rax, %rbx
jmp 0xc973
jmp 0xca33
movq %rax, %rbx
movq 0x170(%rsp), %rdi
leaq 0x180(%rsp), %rax
cmpq %rax, %rdi
je 0xc973
callq 0x53d0
movq 0x60(%rsp), %rdi
cmpq %rbp, %rdi
je 0xc982
callq 0x53d0
leaq 0x18(%rsp), %rax
movq 0x8(%rsp), %rdi
cmpq %rax, %rdi
je 0xc996
callq 0x53d0
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0xc9b0
callq 0x53d0
movq 0xa8(%rsp), %rdi
cmpq %r14, %rdi
je 0xc9c2
callq 0x53d0
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
jne 0xcb61
jmp 0xcb66
movq %rax, %rbx
movq 0x238(%rsp), %rdi
leaq 0x248(%rsp), %rax
jmp 0xcb42
movq %rax, %rbx
movq 0x218(%rsp), %rdi
leaq 0x228(%rsp), %rax
jmp 0xcb42
jmp 0xca33
movq %rax, %rbx
movq 0x1f8(%rsp), %rdi
leaq 0x208(%rsp), %rax
cmpq %rax, %rdi
je 0xca3e
callq 0x53d0
jmp 0xca3e
movq %rax, %rbx
jmp 0xca8e
movq %rax, %rbx
jmp 0xcb18
movq %rax, %rbx
jmp 0xcb4c
movq %rax, %rbx
movq 0x170(%rsp), %rdi
leaq 0x180(%rsp), %rax
jmp 0xcb42
jmp 0xca6f
movq %rax, %rbx
jmp 0xcad8
movq %rax, %rbx
jmp 0xcb04
movq %rax, %rbx
leaq 0x98(%rsp), %r15
jmp 0xcaa8
movq %rax, %rbx
jmp 0xcb32
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0xca8e
callq 0x53d0
movq 0x110(%rsp), %rdi
leaq 0x120(%rsp), %rax
cmpq %rax, %rdi
je 0xcaa8
callq 0x53d0
movq 0x88(%rsp), %rdi
cmpq %r15, %rdi
je 0xcac4
callq 0x53d0
jmp 0xcac4
movq %rax, %rbx
jmp 0xcaf2
movq %rax, %rbx
movq 0x40(%rsp), %rdi
leaq 0x50(%rsp), %rax
cmpq %rax, %rdi
je 0xcad8
callq 0x53d0
movq 0x130(%rsp), %rdi
leaq 0x140(%rsp), %rax
cmpq %rax, %rdi
je 0xcaf2
callq 0x53d0
movq 0xa8(%rsp), %rdi
cmpq %rbp, %rdi
je 0xcb04
callq 0x53d0
leaq 0x70(%rsp), %rax
movq 0x60(%rsp), %rdi
cmpq %rax, %rdi
je 0xcb18
callq 0x53d0
movq 0x150(%rsp), %rdi
leaq 0x160(%rsp), %rax
cmpq %rax, %rdi
je 0xcb32
callq 0x53d0
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0xcb4c
callq 0x53d0
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0xcb66
callq 0x53d0
movq %rbx, %rdi
callq 0x56b0