// File: /workspace/github_cpp_makefile_star2_O1/medvedevgroup[P]varmatch/src/wholegenome.cpp
// Function: WholeGenome::ConstructMatchRecordNoGenotypeBackup(SequencePath&, std::vector<DiploidVariant, std::allocator<DiploidVariant>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, int, int, int, int, int)
void WholeGenome::ConstructMatchRecordNoGenotypeBackup(SequencePath & best_path,
                                                 vector<DiploidVariant> & variant_list,
                                                 string & subsequence,
                                                 int offset,
                                                 int thread_index,
                                                 int chr_id,
                                                 int mode_index,
                                                 int threshold_index){
    int truth_num = 0;
    int predict_num = 0;

    bool need_match_record = false;
    if(threshold_index == 0) need_match_record = true;

    bool multiple_match = false;
    string parsimonious_ref = subsequence;
    string parsimonious_alt0 = best_path.donor_sequences[0];
    string parsimonious_alt1 = best_path.donor_sequences[0];

    int parsimonious_pos = offset;

//    NormalizeVariantSequence(offset,
//                             parsimonious_ref,
//                             parsimonious_alt0,
//                             parsimonious_alt1,
//                             chr_id);

    string match_record = chrname_by_chrid[chr_id] + "\t" + to_string(parsimonious_pos+1) + "\t" + parsimonious_ref + "\t" + parsimonious_alt0;
    //if(multiple_match) match_record += "/" + parsimonious_alt1;

    string vcf_record[2];
    string phasing_record[2];

	for (int i = 0; i < 2; i++) {
		for (auto it = best_path.choice_made[i].begin(); it != best_path.choice_made[i].end(); ++it) {
            pair<int, int> selection = it->second;
            int phasing = selection.second;
            if(selection.first == -1) continue;
            if (phasing == -1) continue;
            DiploidVariant variant = variant_list[selection.first];
            if(!variant.flag){
                truth_num++;
            }else{
                predict_num++;
            }

            if(need_match_record){
                string alt_string = variant.alts[0];
                if(variant.multi_alts){
                    alt_string += "/" + variant.alts[1];
                }
                string phasing_string = "";
                if(phasing == 0){
                    phasing_string += "1|1";
                }else if(phasing == 1){
                    phasing_string += "2|2";
                }
                string variant_record = to_string(variant.pos+1) + "," + variant.ref + "," + alt_string;
                vcf_record[i] += variant_record;
                phasing_record[i] += phasing_string;
                vcf_record[i] += ";";
                phasing_record[i] += ";";
            }
		}
        if(need_match_record){
            vcf_record[i] = vcf_record[i].substr(0, vcf_record[i].size()-1);
            phasing_record[i] = phasing_record[i].substr(0, phasing_record[i].size()-1);
        }

	}

    if(need_match_record){
	   match_record += "\t" + vcf_record[0] + "\t" + vcf_record[1];
        match_record += "\t" + phasing_record[0] + "\t" + phasing_record[1];
	   match_record += "\t" + to_string(best_path.score) + "\n";

	   //complex_match_records[thread_index]->push_back(match_record);
	

       // this line should be recovered
       match_records_by_mode_by_thread[thread_index][mode_index]->push_back(match_record);
    

    }

    baseline_total_match_num[thread_index][threshold_index]->at(mode_index) += truth_num;
    query_total_match_num[thread_index][threshold_index]->at(mode_index) += predict_num;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x298, %rsp            # imm = 0x298
movl %r9d, 0xd0(%rsp)
movl %r8d, %ebx
movq %rdx, 0x270(%rsp)
movq %rsi, %r12
movq %rdi, %r15
leaq 0x190(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rcx), %rsi
movq 0x8(%rcx), %rdx
addq %rsi, %rdx
leaq 0x180(%rsp), %rdi
callq 0x112ce
leaq 0x1d0(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0xd0(%r12), %rsi
movq 0xd8(%r12), %rdx
addq %rsi, %rdx
leaq 0x1c0(%rsp), %rdi
callq 0x112ce
leaq 0x288(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0xd0(%r12), %rsi
movq 0xd8(%r12), %rdx
addq %rsi, %rdx
leaq 0x278(%rsp), %rdi
callq 0x112ce
leaq 0xb8(%r15), %rdi
leaq 0x2d0(%rsp), %rsi
callq 0x28988
leaq 0x18(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0x112ce
movq %r12, 0x120(%rsp)
movq %r15, 0x118(%rsp)
leaq 0x106b8(%rip), %rsi     # 0x315c1
leaq 0x8(%rsp), %rdi
callq 0x5630
incl %ebx
movl %ebx, %ebp
negl %ebp
cmovsl %ebx, %ebp
movl $0x1, %r14d
cmpl $0xa, %ebp
jb 0x20f70
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x20f67
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x20f6d
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x20f70
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x20f34
addl $-0x3, %r14d
jmp 0x20f70
addl $-0x2, %r14d
jmp 0x20f70
decl %r14d
shrl $0x1f, %ebx
leal (%r14,%rbx), %esi
leaq 0xb0(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xa0(%rsp), %rdi
movl $0x2d, %edx
callq 0x53b0
movl %ebx, %edi
addq 0xa0(%rsp), %rdi
movl %r14d, %esi
movl %ebp, %edx
callq 0xe3b6
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %r8
movq 0xa8(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
leaq 0x18(%rsp), %rdi
cmpq %rdi, %rcx
je 0x20fd3
movq 0x18(%rsp), %rsi
cmpq %rsi, %rax
movq 0x120(%rsp), %rbx
jbe 0x21004
movl $0xf, %esi
leaq 0xb0(%rsp), %rdi
cmpq %rdi, 0xa0(%rsp)
je 0x20fff
movq 0xb0(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x21018
movq 0xa0(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x50f0
jmp 0x21029
leaq 0xa0(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5380
leaq 0x38(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x2104d
movq %rsi, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x21053
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x1054a(%rip), %rsi     # 0x315c1
leaq 0x28(%rsp), %rdi
callq 0x5630
leaq 0x1f0(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x210b1
movq %rdx, 0x1e0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x1f0(%rsp)
jmp 0x210b8
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x1e0(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x180(%rsp), %rsi
movq 0x188(%rsp), %rdx
callq 0x50f0
leaq 0x230(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2111c
movq %rdx, 0x220(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x230(%rsp)
jmp 0x21123
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x220(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x10478(%rip), %rsi     # 0x315c1
callq 0x5630
leaq 0x58(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x21176
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x2117e
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x48(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x1c0(%rsp), %rsi
movq 0x1c8(%rsp), %rdx
callq 0x50f0
leaq 0xe8(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x211df
movq %rdx, 0xd8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xe8(%rsp)
jmp 0x211e5
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0xe0(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x21217
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x220(%rsp), %rdi
cmpq %r15, %rdi
je 0x21234
movq 0x230(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x1e0(%rsp), %rdi
cmpq %r14, %rdi
je 0x21251
movq 0x1f0(%rsp), %rsi
incq %rsi
callq 0x5340
leaq 0x38(%rsp), %r15
movq -0x10(%r15), %rdi
cmpq %r15, %rdi
je 0x2126c
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x21291
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x212ad
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5340
movl $0x10, %eax
leaq (%rsp,%rax), %rcx
addq $0x220, %rcx            # imm = 0x220
movq %rcx, -0x10(%rcx)
movq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
addq $0x20, %rax
cmpq $0x50, %rax
jne 0x212b2
movl $0x10, %eax
leaq (%rsp,%rax), %rcx
addq $0x1e0, %rcx            # imm = 0x1E0
movq %rcx, -0x10(%rcx)
movq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
addq $0x20, %rax
cmpq $0x50, %rax
jne 0x212db
leaq 0x68(%rbx), %rax
movq %rax, 0x268(%rsp)
xorl %edx, %edx
xorl %r13d, %r13d
movl $0x0, 0xc4(%rsp)
leaq (%rdx,%rdx,2), %rax
shlq $0x4, %rax
movq 0x268(%rsp), %rcx
addq %rcx, %rax
addq $0x8, %rax
movq 0x10(%rax), %r14
movq %rax, 0xc8(%rsp)
cmpq %rax, %r14
movq %rdx, 0x128(%rsp)
je 0x218ae
movq %rdx, %rax
shlq $0x5, %rax
leaq (%rsp,%rax), %rcx
addq $0x220, %rcx            # imm = 0x220
movq %rcx, 0x138(%rsp)
addq %rsp, %rax
addq $0x1e0, %rax            # imm = 0x1E0
movq %rax, 0x130(%rsp)
movslq 0x24(%r14), %rax
cmpq $-0x1, %rax
sete %cl
movl 0x28(%r14), %ebx
cmpl $-0x1, %ebx
sete %dl
orb %cl, %dl
jne 0x21895
movq 0x270(%rsp), %rcx
movq (%rcx), %r15
imulq $0x58, %rax, %r12
movl (%r15,%r12), %eax
movl %eax, 0x48(%rsp)
leaq 0x60(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x8(%r15,%r12), %rsi
movq 0x10(%r15,%r12), %rdx
addq %rsi, %rdx
leaq 0x50(%rsp), %rdi
callq 0x112ce
addq %r12, %r15
leaq 0x28(%r15), %rsi
leaq 0x70(%rsp), %rdi
callq 0x289ec
movl %r13d, 0xd4(%rsp)
movq 0x50(%r15), %rax
leaq 0x50(%rsp), %rcx
movq %rax, 0x48(%rcx)
movups 0x40(%r15), %xmm0
movups %xmm0, 0x38(%rcx)
movzbl 0x94(%rsp), %r13d
cmpl $0x0, 0x2e0(%rsp)
leaq 0x38(%rsp), %r15
jne 0x21856
movq 0x70(%rsp), %rax
movq %r15, 0x28(%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %rdi
callq 0x112ce
cmpb $0x1, 0x89(%rsp)
jne 0x2148c
movq 0x70(%rsp), %rdx
addq $0x20, %rdx
leaq 0x8(%rsp), %rdi
leaq 0x1016c(%rip), %rsi     # 0x315c3
callq 0xce96
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x28(%rsp), %rdi
callq 0x50f0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2148c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5340
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x8(%rsp), %rdi
leaq 0x10120(%rip), %rdx     # 0x315c2
movq %rdx, %rsi
callq 0xc45c
leaq 0x103b0(%rip), %rsi     # 0x31861
cmpl $0x1, %ebx
je 0x214c1
testl %ebx, %ebx
jne 0x214cb
leaq 0x1039c(%rip), %rsi     # 0x3185d
leaq 0x8(%rsp), %rdi
callq 0x5630
movl 0x48(%rsp), %r12d
incl %r12d
movl %r12d, %r15d
negl %r15d
cmovsl %r12d, %r15d
movl $0x1, %ebx
cmpl $0xa, %r15d
jb 0x2152a
movl $0x4, %ebx
movl %r15d, %eax
cmpl $0x63, %eax
jbe 0x21523
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x21528
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x2152a
movl %eax, %ecx
movl $0xd1b71759, %edx       # imm = 0xD1B71759
imulq %rdx, %rcx
shrq $0x2d, %rcx
addl $0x4, %ebx
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x214f0
addl $-0x3, %ebx
jmp 0x2152a
addl $-0x2, %ebx
jmp 0x2152a
decl %ebx
shrl $0x1f, %r12d
leal (%rbx,%r12), %esi
leaq 0x1b0(%rsp), %rax
movq %rax, 0x1a0(%rsp)
leaq 0x1a0(%rsp), %rbp
movq %rbp, %rdi
movl $0x2d, %edx
callq 0x53b0
movl %r12d, %edi
addq 0x1a0(%rsp), %rdi
movl %ebx, %esi
movl %r15d, %edx
callq 0xe3b6
movq %rbp, %rdi
leaq 0xffeb(%rip), %rsi      # 0x31561
callq 0x5630
leaq 0x150(%rsp), %rsi
movq %rsi, 0x140(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
leaq 0x38(%rsp), %r15
leaq 0xb0(%rsp), %rbx
je 0x215bc
movq %rdx, 0x140(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x150(%rsp)
jmp 0x215c2
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x148(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
leaq 0x140(%rsp), %rdi
callq 0x50f0
leaq 0x170(%rsp), %rsi
movq %rsi, 0x160(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x21628
movq %rdx, 0x160(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x170(%rsp)
jmp 0x2162e
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x168(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x160(%rsp), %rdi
leaq 0xff09(%rip), %rsi      # 0x31561
callq 0x5630
leaq 0x108(%rsp), %rsi
movq %rsi, 0xf8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x21691
movq %rdx, 0xf8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x108(%rsp)
jmp 0x21697
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x100(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
leaq 0xf8(%rsp), %rdi
callq 0x50f0
movq %rbx, 0xa0(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x216f5
movq %rdx, 0xa0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xb0(%rsp)
jmp 0x216fb
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
leaq 0x108(%rsp), %rsi
movq 0x8(%rax), %rdx
movq %rdx, 0xa8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0xf8(%rsp), %rdi
cmpq %rsi, %rdi
je 0x2173b
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x21760
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x140(%rsp), %rdi
leaq 0x150(%rsp), %rax
cmpq %rax, %rdi
je 0x21785
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x1a0(%rsp), %rdi
leaq 0x1b0(%rsp), %rax
cmpq %rax, %rdi
je 0x217aa
movq 0x1b0(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0xa0(%rsp), %rsi
movq 0xa8(%rsp), %rdx
movq 0x138(%rsp), %rdi
callq 0x50f0
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x130(%rsp), %rdi
callq 0x50f0
movq 0x138(%rsp), %rdi
leaq 0x1006e(%rip), %rsi     # 0x3185b
callq 0x5630
movq 0x130(%rsp), %rdi
leaq 0x1005a(%rip), %rsi     # 0x3185b
callq 0x5630
movq 0xa0(%rsp), %rdi
cmpq %rbx, %rdi
je 0x21823
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2183f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x21856
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5340
leaq 0x70(%rsp), %rdi
callq 0xe7ca
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x2187c
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5340
addl %r13d, 0xc4(%rsp)
xorl $0x1, %r13d
movl 0xd4(%rsp), %ebp
addl %r13d, %ebp
movl %ebp, %r13d
movq %r14, %rdi
callq 0x5250
movq %rax, %r14
cmpq 0xc8(%rsp), %rax
jne 0x2137a
cmpl $0x0, 0x2e0(%rsp)
jne 0x21959
movq 0x128(%rsp), %r14
shlq $0x5, %r14
leaq (%rsp,%r14), %rbx
addq $0x220, %rbx            # imm = 0x220
movq 0x8(%rbx), %rcx
decq %rcx
leaq 0x48(%rsp), %r12
movq %r12, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x5360
movq %rbx, %rdi
movq %r12, %rsi
callq 0x53e0
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %r12
cmpq %r12, %rdi
je 0x21913
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5340
leaq (%rsp,%r14), %rbx
addq $0x1e0, %rbx            # imm = 0x1E0
movq 0x8(%rbx), %rcx
decq %rcx
leaq 0x48(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x5360
movq %rbx, %rdi
movq %r14, %rsi
callq 0x53e0
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x21959
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x128(%rsp), %rcx
leaq 0x1(%rcx), %rdx
testq %rcx, %rcx
je 0x2131b
movslq 0xd0(%rsp), %rbp
movslq 0x2d8(%rsp), %rbx
movl 0x2e0(%rsp), %edx
testl %edx, %edx
jne 0x21de6
leaq 0xfc2d(%rip), %rsi      # 0x315c1
leaq 0x8(%rsp), %rdi
leaq 0x220(%rsp), %rdx
callq 0xce96
leaq 0xfc14(%rip), %rsi      # 0x315c1
leaq 0x8(%rsp), %rdi
callq 0x5630
movq %r15, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x219da
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x219e1
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x240(%rsp), %rsi
movq 0x248(%rsp), %rdx
callq 0x50f0
leaq 0x58(%rsp), %rsi
movq %rsi, 0x48(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x21a3a
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x21a40
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
leaq 0xd8(%rsp), %rdi
callq 0x50f0
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x21a8b
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x21aa2
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x21abe
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5340
leaq 0xfafc(%rip), %rsi      # 0x315c1
leaq 0x8(%rsp), %rdi
leaq 0x1e0(%rsp), %rdx
callq 0xce96
leaq 0xfae3(%rip), %rsi      # 0x315c1
leaq 0x8(%rsp), %rdi
callq 0x5630
movq %r15, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x21b0b
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x21b12
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x200(%rsp), %rsi
movq 0x208(%rsp), %rdx
callq 0x50f0
leaq 0x58(%rsp), %rsi
movq %rsi, 0x48(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x21b6b
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x21b71
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
leaq 0xd8(%rsp), %rdi
callq 0x50f0
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x21bbc
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x21bd3
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5340
movq %rbx, 0xc8(%rsp)
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x21bf7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x120(%rsp), %rax
movl 0x158(%rax), %r14d
movl %r14d, %ebx
negl %ebx
cmovsl %r14d, %ebx
movl $0x1, %r15d
cmpl $0xa, %ebx
jb 0x21c63
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebx, %ecx
cmpl $0x63, %ecx
jbe 0x21c5a
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x21c60
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x21c63
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x21c27
addl $-0x3, %r15d
jmp 0x21c63
addl $-0x2, %r15d
jmp 0x21c63
decl %r15d
shrl $0x1f, %r14d
leal (%r15,%r14), %esi
leaq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
movq %rax, (%rdi)
movl $0x2d, %edx
callq 0x53b0
leaq 0x8(%rsp), %r12
addq (%r12), %r14
movq %r14, %rdi
movl %r15d, %esi
movl %ebx, %edx
callq 0xe3b6
leaq 0xf922(%rip), %rcx      # 0x315c1
movl $0x1, %r8d
movq %r12, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5380
leaq 0x38(%rsp), %rbx
movq %rbx, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x21cd9
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x21cdf
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
leaq 0x28(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xe36a(%rip), %rsi      # 0x3006c
callq 0x5630
leaq 0x58(%rsp), %rsi
movq %rsi, 0x48(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x21d2f
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x21d35
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
leaq 0xd8(%rsp), %rdi
callq 0x50f0
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x21d80
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x28(%rsp), %rdi
cmpq %rbx, %rdi
je 0x21d97
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
movq 0xc8(%rsp), %rbx
je 0x21dbb
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x118(%rsp), %rax
movq 0x178(%rax), %rax
movq (%rax,%rbp,8), %rax
movq (%rax,%rbx,8), %rdi
leaq 0xd8(%rsp), %rsi
callq 0x10ca6
movl 0x2e0(%rsp), %edx
movq 0x118(%rsp), %rsi
movq 0x180(%rsi), %rax
movq (%rax,%rbp,8), %rcx
movslq %edx, %rax
movq (%rcx,%rax,8), %rdx
movq (%rdx), %rcx
movq 0x8(%rdx), %rdx
subq %rcx, %rdx
sarq $0x2, %rdx
cmpq %rbx, %rdx
jbe 0x21f4b
addl %r13d, (%rcx,%rbx,4)
movq 0x188(%rsi), %rcx
movq (%rcx,%rbp,8), %rcx
movq (%rcx,%rax,8), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
cmpq %rbx, %rdx
jbe 0x21f4b
movl 0xc4(%rsp), %ecx
addl %ecx, (%rax,%rbx,4)
movq $-0x40, %rbx
leaq 0x210(%rsp), %r14
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0x21e6e
movq (%r14), %rsi
incq %rsi
callq 0x5340
addq $-0x20, %r14
addq $0x20, %rbx
jne 0x21e5a
movq $-0x40, %rbx
leaq 0x250(%rsp), %r14
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0x21e9b
movq (%r14), %rsi
incq %rsi
callq 0x5340
addq $-0x20, %r14
addq $0x20, %rbx
jne 0x21e87
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x21eca
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x278(%rsp), %rdi
leaq 0x288(%rsp), %rax
cmpq %rax, %rdi
leaq 0x190(%rsp), %rbx
je 0x21ef7
movq 0x288(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x1c0(%rsp), %rdi
leaq 0x1d0(%rsp), %rax
cmpq %rax, %rdi
je 0x21f1c
movq 0x1d0(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x180(%rsp), %rdi
cmpq %rbx, %rdi
je 0x21f39
movq 0x190(%rsp), %rsi
incq %rsi
callq 0x5340
addq $0x298, %rsp            # imm = 0x298
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xfb72(%rip), %rdi      # 0x31ac4
movq %rbx, %rsi
xorl %eax, %eax
callq 0x5490
jmp 0x21f72
jmp 0x21f93
jmp 0x21fb4
jmp 0x221e5
jmp 0x21f72
jmp 0x21f93
jmp 0x21fb4
jmp 0x221e5
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x21f96
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x21f96
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x21fb7
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x21fb7
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2224a
movq 0x18(%rsp), %rsi
jmp 0x221db
jmp 0x221e5
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r12, %rdi
je 0x21ff8
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x21ff8
movq %rax, %rbx
movq 0x220(%rsp), %rdi
cmpq %r15, %rdi
je 0x2201a
movq 0x230(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x2201a
movq %rax, %rbx
movq 0x1e0(%rsp), %rdi
cmpq %r14, %rdi
je 0x2203c
movq 0x1f0(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x2203c
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2205c
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x2205c
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x22088
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x22088
jmp 0x22085
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x222c9
movq 0x18(%rsp), %rsi
jmp 0x222c1
movq %rax, %rbx
jmp 0x222f6
movq %rax, %rbx
jmp 0x2231b
movq %rax, %rbx
jmp 0x222c9
jmp 0x221e5
jmp 0x221e5
jmp 0x221e5
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x220eb
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5340
leaq 0x38(%rsp), %r15
jmp 0x22229
jmp 0x22119
movq %rax, %rbx
jmp 0x2220d
movq %rax, %rbx
leaq 0x38(%rsp), %r15
jmp 0x221a5
movq %rax, %rbx
leaq 0x38(%rsp), %r15
jmp 0x2220d
movq %rax, %rbx
jmp 0x22229
movq %rax, %rbx
jmp 0x22240
movq %rax, %rbx
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x22156
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x22156
movq %rax, %rbx
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x22180
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x22180
movq %rax, %rbx
movq 0x140(%rsp), %rdi
leaq 0x150(%rsp), %rax
cmpq %rax, %rdi
je 0x221a5
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x1a0(%rsp), %rdi
leaq 0x1b0(%rsp), %rax
cmpq %rax, %rdi
je 0x2220d
movq 0x1b0(%rsp), %rsi
jmp 0x22205
movq %rax, %rbx
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x2224a
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x2224a
movq %rax, %rbx
jmp 0x2224a
movq %rbx, %rcx
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
cmpq %rcx, %rdi
je 0x2220d
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x22229
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x22240
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5340
leaq 0x48(%rsp), %rdi
callq 0x28b44
movq $-0x40, %r14
leaq 0x210(%rsp), %r15
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x2226d
movq (%r15), %rsi
incq %rsi
callq 0x5340
addq $-0x20, %r15
addq $0x20, %r14
jne 0x22259
movq $-0x40, %r14
leaq 0x250(%rsp), %r15
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x2229a
movq (%r15), %rsi
incq %rsi
callq 0x5340
addq $-0x20, %r15
addq $0x20, %r14
jne 0x22286
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x222c9
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x5340
leaq 0x190(%rsp), %r14
movq 0x278(%rsp), %rdi
leaq 0x288(%rsp), %rax
cmpq %rax, %rdi
je 0x222f6
movq 0x288(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x1c0(%rsp), %rdi
leaq 0x1d0(%rsp), %rax
cmpq %rax, %rdi
je 0x2231b
movq 0x1d0(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x180(%rsp), %rdi
cmpq %r14, %rdi
je 0x22338
movq 0x190(%rsp), %rsi
incq %rsi
callq 0x5340
movq %rbx, %rdi
callq 0x55c0