// File: /workspace/github_cpp_makefile_star2_O3/medvedevgroup[P]varmatch/src/wholegenome.cpp
// Function: WholeGenome::ConstructMatchRecordBackup(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::ConstructMatchRecordBackup(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;

    if(best_path.donor_sequences[0] != best_path.donor_sequences[1]) multiple_match = true;

    string parsimonious_ref = subsequence;
    string parsimonious_alt0 = best_path.donor_sequences[0];
    string parsimonious_alt1 = best_path.donor_sequences[1];

    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;
            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";
                    if(variant.heterozygous){
                        if(variant.multi_alts && !variant.zero_one_var){
                            phasing_string += "|2";
                        }else{
                            phasing_string += "|0";
                        }
                    }else{
                        phasing_string += "|1";
                    }
                }else if(phasing == 1){
                    if(variant.multi_alts && !variant.zero_one_var){
                        phasing_string += "2|1";
                    }else if(variant.multi_alts && variant.zero_one_var){
                        phasing_string += "2|0";
                    }else{
                        phasing_string += "0|1";
                    }
                }else if(phasing == -1){
                    phasing_string += "0|1";
                }else if(phasing == -2){
                    phasing_string += "0|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 $0x288, %rsp            # imm = 0x288
movl %r9d, 0xc4(%rsp)
movl %r8d, %ebx
movq %rcx, %r14
movq %rdx, 0x278(%rsp)
movq %rsi, %r12
movq %rdi, %r13
movq 0xd8(%rsi), %rdx
movb $0x1, %r15b
cmpq 0xf8(%rsi), %rdx
jne 0x1f4e5
testq %rdx, %rdx
je 0x1f4e2
movq 0xd0(%r12), %rdi
movq 0xf0(%r12), %rsi
callq 0x5350
testl %eax, %eax
setne %r15b
jmp 0x1f4e5
xorl %r15d, %r15d
leaq 0x148(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x138(%rsp), %rdi
callq 0x1123c
leaq 0x1c0(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0xd0(%r12), %rsi
movq 0xd8(%r12), %rdx
addq %rsi, %rdx
leaq 0x1b0(%rsp), %rdi
callq 0x1123c
leaq 0x1e0(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0xf0(%r12), %rsi
movq 0xf8(%r12), %rdx
addq %rsi, %rdx
leaq 0x1d0(%rsp), %rdi
callq 0x1123c
leaq 0xb8(%r13), %rdi
leaq 0x2c0(%rsp), %rsi
callq 0x2851c
leaq 0x30(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x20(%rsp), %rdi
callq 0x1123c
movq %r12, 0x160(%rsp)
leaq 0x12051(%rip), %rsi     # 0x315f1
leaq 0x20(%rsp), %rdi
callq 0x5630
incl %ebx
movl %ebx, %ebp
negl %ebp
cmovsl %ebx, %ebp
movl $0x1, %r14d
cmpl $0xa, %ebp
jb 0x1f607
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x1f5fe
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x1f604
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x1f607
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x1f5cb
addl $-0x3, %r14d
jmp 0x1f607
addl $-0x2, %r14d
jmp 0x1f607
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 0xe33a
movq 0x20(%rsp), %rcx
movq 0x28(%rsp), %r8
movq 0xa8(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
leaq 0x30(%rsp), %rbp
cmpq %rbp, %rcx
je 0x1f66a
movq 0x30(%rsp), %rdi
movq 0xa0(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x1f696
movl $0xf, %edi
leaq 0xb0(%rsp), %r9
cmpq %r9, %rsi
je 0x1f691
movq 0xb0(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x1f6a2
leaq 0x20(%rsp), %rdi
callq 0x50f0
jmp 0x1f6b3
leaq 0xa0(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5380
leaq 0x10(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x1f6d6
movq %rsi, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x1f6dc
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x11ef1(%rip), %rsi     # 0x315f1
movq %rsp, %rdi
callq 0x5630
leaq 0x240(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1f738
movq %rdx, 0x230(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x240(%rsp)
jmp 0x1f73f
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x230(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x138(%rsp), %rsi
movq 0x140(%rsp), %rdx
movq %rdi, %rbx
callq 0x50f0
leaq 0x200(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1f7a7
movq %rdx, 0x1f0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x200(%rsp)
jmp 0x1f7af
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x1f0(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x11e1c(%rip), %rsi     # 0x315f1
callq 0x5630
leaq 0x58(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1f801
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x1f807
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq 0x48(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x1b0(%rsp), %rsi
movq 0x1b8(%rsp), %rdx
callq 0x50f0
leaq 0x108(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1f868
movq %rdx, 0xf8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x108(%rsp)
jmp 0x1f86e
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 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x1f8a5
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x1f0(%rsp), %rdi
cmpq %r12, %rdi
je 0x1f8c2
movq 0x200(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x230(%rsp), %rdi
cmpq %r14, %rdi
movq %rbx, %r12
je 0x1f8e2
movq 0x240(%rsp), %rsi
incq %rsi
callq 0x5340
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
leaq 0x58(%rsp), %r14
je 0x1f902
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x1f927
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x20(%rsp), %rdi
cmpq %rbp, %rdi
je 0x1f93e
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5340
testb %r15b, %r15b
je 0x1f98a
leaq 0x11ca9(%rip), %rsi     # 0x315f3
leaq 0x48(%rsp), %rdi
leaq 0x1d0(%rsp), %rdx
callq 0xce20
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
leaq 0xf8(%rsp), %rdi
callq 0x50f0
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x1f98a
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5340
movl $0x10, %eax
leaq (%rsp,%rax), %rcx
addq $0x1f0, %rcx            # imm = 0x1F0
movq %rcx, -0x10(%rcx)
movq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
addq $0x20, %rax
cmpq $0x50, %rax
jne 0x1f98f
movq %r13, 0x158(%rsp)
movl $0x10, %eax
leaq (%rsp,%rax), %rcx
addq $0x230, %rcx            # imm = 0x230
movq %rcx, -0x10(%rcx)
movq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
addq $0x20, %rax
cmpq $0x50, %rax
jne 0x1f9c0
movq 0x160(%rsp), %rax
addq $0x68, %rax
movq %rax, 0x270(%rsp)
xorl %eax, %eax
movb $0x1, %cl
movl $0x0, 0xcc(%rsp)
xorl %r15d, %r15d
leaq 0x1f0(%rsp), %r13
movl %ecx, 0xc8(%rsp)
leaq (%rax,%rax,2), %rax
shlq $0x4, %rax
movq 0x270(%rsp), %rcx
addq %rcx, %rax
addq $0x8, %rax
movq 0x10(%rax), %r14
movq %rax, 0x280(%rsp)
cmpq %rax, %r14
movq %r13, 0x168(%rsp)
movq %r12, 0xd0(%rsp)
je 0x20001
movslq 0x24(%r14), %rax
cmpq $-0x1, %rax
je 0x1ffe8
movl %r15d, 0x44(%rsp)
movl 0x28(%r14), %r15d
movq 0x278(%rsp), %rcx
movq (%rcx), %rbx
imulq $0x58, %rax, %r12
movl (%rbx,%r12), %eax
movl %eax, 0x48(%rsp)
leaq 0x60(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x8(%rbx,%r12), %rsi
movq 0x10(%rbx,%r12), %rdx
addq %rsi, %rdx
leaq 0x50(%rsp), %rdi
callq 0x1123c
addq %r12, %rbx
leaq 0x28(%rbx), %rsi
leaq 0x70(%rsp), %rdi
callq 0x28582
movq 0x50(%rbx), %rax
leaq 0x50(%rsp), %rcx
movq %rax, 0x48(%rcx)
movups 0x40(%rbx), %xmm0
movups %xmm0, 0x38(%rcx)
movzbl 0x94(%rsp), %ebx
cmpl $0x0, 0x2d0(%rsp)
movq 0xd0(%rsp), %r12
jne 0x1ffa8
movq 0x70(%rsp), %rax
leaq 0x10(%rsp), %rcx
movq %rcx, (%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rsp, %rdi
callq 0x1123c
cmpb $0x1, 0x89(%rsp)
leaq 0x20(%rsp), %r12
jne 0x1fb58
movq 0x70(%rsp), %rdx
addq $0x20, %rdx
movq %r12, %rdi
leaq 0x11ac9(%rip), %rsi     # 0x315f3
callq 0xce20
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %rsp, %rdi
callq 0x50f0
movq 0x20(%rsp), %rdi
cmpq %rbp, %rdi
je 0x1fb58
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5340
movq %rbp, 0x20(%rsp)
movq %r12, %rdi
leaq 0x11a8b(%rip), %rdx     # 0x315f2
movq %rdx, %rsi
callq 0xc3da
addl $0x2, %r15d
cmpl $0x3, %r15d
ja 0x1fc19
leaq 0x1175c(%rip), %rcx     # 0x312e0
movslq (%rcx,%r15,4), %rax
addq %rcx, %rax
leaq 0x11cf1(%rip), %rsi     # 0x31883
jmpq *%rax
leaq 0x11cec(%rip), %rsi     # 0x31887
jmp 0x1fc11
movq %r12, %rdi
leaq 0x11aac(%rip), %rsi     # 0x31653
callq 0x5630
cmpb $0x1, 0x88(%rsp)
leaq 0x11cc9(%rip), %rsi     # 0x31884
jne 0x1fc11
cmpb $0x1, 0x89(%rsp)
leaq 0x11cb4(%rip), %rsi     # 0x31880
jne 0x1fc11
cmpb $0x0, 0x8a(%rsp)
leaq 0x11cab(%rip), %rsi     # 0x31888
leaq 0x11c9c(%rip), %rax     # 0x31880
jmp 0x1fc0d
cmpb $0x1, 0x89(%rsp)
leaq 0x11c8e(%rip), %rsi     # 0x31883
jne 0x1fc11
cmpb $0x0, 0x8a(%rsp)
leaq 0x11c75(%rip), %rsi     # 0x3187b
leaq 0x11c72(%rip), %rax     # 0x3187f
cmovneq %rax, %rsi
movq %r12, %rdi
callq 0x5630
movl 0x48(%rsp), %ebp
incl %ebp
movl %ebp, %r15d
negl %r15d
cmovsl %ebp, %r15d
movl $0x1, %r12d
cmpl $0xa, %r15d
jb 0x1fc7c
movl $0x4, %r12d
movl %r15d, %eax
cmpl $0x63, %eax
jbe 0x1fc73
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x1fc79
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x1fc7c
movl %eax, %ecx
movl $0xd1b71759, %edx       # imm = 0xD1B71759
imulq %rdx, %rcx
shrq $0x2d, %rcx
addl $0x4, %r12d
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x1fc3e
addl $-0x3, %r12d
jmp 0x1fc7c
addl $-0x2, %r12d
jmp 0x1fc7c
decl %r12d
movl %ebx, %r13d
shrl $0x1f, %ebp
leal (%r12,%rbp), %esi
leaq 0x1a0(%rsp), %rax
movq %rax, 0x190(%rsp)
leaq 0x190(%rsp), %rbx
movq %rbx, %rdi
movl $0x2d, %edx
callq 0x53b0
movl %ebp, %edi
addq 0x190(%rsp), %rdi
movl %r12d, %esi
movl %r15d, %edx
callq 0xe33a
movq %rbx, %rdi
leaq 0x118c7(%rip), %rsi     # 0x31591
callq 0x5630
leaq 0xe8(%rsp), %rsi
movq %rsi, 0xd8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1fd03
movq %rdx, 0xd8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xe8(%rsp)
jmp 0x1fd09
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
leaq 0x30(%rsp), %rbp
leaq 0xb0(%rsp), %r15
movq 0xd0(%rsp), %r12
movl %r13d, %ebx
movq 0x8(%rax), %rdx
movq %rdx, 0xe0(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
leaq 0xd8(%rsp), %rdi
callq 0x50f0
movq 0x168(%rsp), %r13
leaq 0x180(%rsp), %rsi
movq %rsi, 0x170(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1fd8f
movq %rdx, 0x170(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x180(%rsp)
jmp 0x1fd95
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)
leaq 0x170(%rsp), %rdi
leaq 0x117d2(%rip), %rsi     # 0x31591
callq 0x5630
leaq 0x128(%rsp), %rsi
movq %rsi, 0x118(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1fdf8
movq %rdx, 0x118(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x128(%rsp)
jmp 0x1fdfe
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x120(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
leaq 0x118(%rsp), %rdi
callq 0x50f0
movq %r15, 0xa0(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1fe5b
movq %rdx, 0xa0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xb0(%rsp)
jmp 0x1fe62
movups (%rcx), %xmm0
movups %xmm0, (%r15)
leaq 0x128(%rsp), %rsi
movq 0x8(%rax), %rdx
movq %rdx, 0xa8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x118(%rsp), %rdi
cmpq %rsi, %rdi
je 0x1fea2
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x170(%rsp), %rdi
leaq 0x180(%rsp), %rax
cmpq %rax, %rdi
je 0x1fec7
movq 0x180(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0xd8(%rsp), %rdi
leaq 0xe8(%rsp), %rax
cmpq %rax, %rdi
je 0x1feec
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x1ff11
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0xa0(%rsp), %rsi
movq 0xa8(%rsp), %rdx
movq %r13, %rdi
callq 0x50f0
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %r12, %rdi
callq 0x50f0
movq %r13, %rdi
leaq 0x11946(%rip), %rsi     # 0x3188b
callq 0x5630
movq %r12, %rdi
leaq 0x11937(%rip), %rsi     # 0x3188b
callq 0x5630
movq 0xa0(%rsp), %rdi
cmpq %r15, %rdi
je 0x1ff76
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x20(%rsp), %rdi
cmpq %rbp, %rdi
je 0x1ff8d
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5340
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1ffa8
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5340
leaq 0x70(%rsp), %rdi
callq 0xe71c
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x1ffce
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5340
movl 0x44(%rsp), %r15d
addl %ebx, %r15d
xorl $0x1, %ebx
addl %ebx, 0xcc(%rsp)
movq 0x168(%rsp), %r13
movq %r14, %rdi
callq 0x5250
movq %rax, %r14
cmpq 0x280(%rsp), %rax
jne 0x1fa55
cmpl $0x0, 0x2d0(%rsp)
je 0x20038
movl $0x1, %eax
leaq 0x250(%rsp), %r12
leaq 0x210(%rsp), %r13
testb $0x1, 0xc8(%rsp)
movl $0x0, %ecx
jne 0x1fa12
jmp 0x200e5
movq 0x8(%r13), %rcx
decq %rcx
leaq 0x48(%rsp), %r14
movq %r14, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x5360
leaq 0x58(%rsp), %rbx
movq %r13, %rdi
movq %r14, %rsi
callq 0x53e0
movq 0x48(%rsp), %rdi
cmpq %rbx, %rdi
je 0x20078
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x8(%r12), %rcx
decq %rcx
movq %r14, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x5360
movq %r12, %rdi
movq %r14, %rsi
callq 0x53e0
movq 0x48(%rsp), %rdi
cmpq %rbx, %rdi
je 0x200af
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5340
movl $0x1, %eax
leaq 0x250(%rsp), %r12
leaq 0x210(%rsp), %r13
testb $0x1, 0xc8(%rsp)
movl $0x0, %ecx
jne 0x1fa12
cmpl $0x0, 0x2d0(%rsp)
je 0x20260
movslq 0xc4(%rsp), %rbx
movslq 0x2c8(%rsp), %r14
movq 0x158(%rsp), %r13
movq 0x180(%r13), %rax
movq (%rax,%rbx,8), %rcx
movslq 0x2d0(%rsp), %rax
movq (%rcx,%rax,8), %rdx
movq (%rdx), %rcx
movq 0x8(%rdx), %rdx
subq %rcx, %rdx
sarq $0x2, %rdx
cmpq %r14, %rdx
jbe 0x206ad
movl 0xcc(%rsp), %edx
addl %edx, (%rcx,%r14,4)
movq 0x188(%r13), %rcx
movq (%rcx,%rbx,8), %rcx
movq (%rcx,%rax,8), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
cmpq %r14, %rdx
jbe 0x206ad
addl %r15d, (%rax,%r14,4)
movq $-0x40, %rbx
leaq 0x260(%rsp), %r14
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0x20183
movq (%r14), %rsi
incq %rsi
callq 0x5340
addq $-0x20, %r14
addq $0x20, %rbx
jne 0x2016f
movq $-0x40, %rbx
leaq 0x220(%rsp), %r14
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0x201b0
movq (%r14), %rsi
incq %rsi
callq 0x5340
addq $-0x20, %r14
addq $0x20, %rbx
jne 0x2019c
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
je 0x201df
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x1d0(%rsp), %rdi
leaq 0x1e0(%rsp), %rax
cmpq %rax, %rdi
leaq 0x148(%rsp), %rbx
je 0x2020c
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x1b0(%rsp), %rdi
leaq 0x1c0(%rsp), %rax
cmpq %rax, %rdi
je 0x20231
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x138(%rsp), %rdi
cmpq %rbx, %rdi
je 0x2024e
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x5340
addq $0x288, %rsp            # imm = 0x288
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1138a(%rip), %rsi     # 0x315f1
leaq 0x20(%rsp), %rdi
leaq 0x1f0(%rsp), %rdx
callq 0xce20
leaq 0x11371(%rip), %rsi     # 0x315f1
leaq 0x20(%rsp), %rdi
callq 0x5630
movq 0x158(%rsp), %r13
leaq 0x10(%rsp), %rsi
movq %rsi, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
leaq 0x58(%rsp), %r14
je 0x202bd
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x202c3
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rsp, %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x210(%rsp), %rsi
movq 0x218(%rsp), %rdx
callq 0x50f0
movq %r14, 0x48(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x20315
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x2031c
movups (%rcx), %xmm0
movups %xmm0, (%r14)
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 0xf8(%rsp), %rdi
callq 0x50f0
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x20362
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5340
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x2037d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x20(%rsp), %rdi
cmpq %rbp, %rdi
je 0x20394
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5340
leaq 0x11256(%rip), %rsi     # 0x315f1
leaq 0x20(%rsp), %rdi
leaq 0x230(%rsp), %rdx
callq 0xce20
leaq 0x1123d(%rip), %rsi     # 0x315f1
leaq 0x20(%rsp), %rdi
callq 0x5630
leaq 0x10(%rsp), %rsi
movq %rsi, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x203e4
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x203ea
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rsp, %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x250(%rsp), %rsi
movq 0x258(%rsp), %rdx
callq 0x50f0
movq %r14, 0x48(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2043c
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x20443
movups (%rcx), %xmm0
movups %xmm0, (%r14)
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 0xf8(%rsp), %rdi
callq 0x50f0
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x20489
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5340
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x204a4
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x20(%rsp), %rdi
cmpq %rbp, %rdi
je 0x204bb
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x160(%rsp), %rax
movl 0x158(%rax), %r12d
movl %r12d, %ebp
negl %ebp
cmovsl %r12d, %ebp
movl $0x1, %r14d
cmpl $0xa, %ebp
jb 0x20527
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x2051e
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x20524
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x20527
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x204eb
addl $-0x3, %r14d
jmp 0x20527
addl $-0x2, %r14d
jmp 0x20527
decl %r14d
movl %r15d, 0x44(%rsp)
shrl $0x1f, %r12d
leal (%r14,%r12), %esi
leaq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
movq %rax, (%rdi)
movl $0x2d, %edx
callq 0x53b0
leaq 0x20(%rsp), %r15
addq (%r15), %r12
movq %r12, %rdi
movl %r14d, %esi
movl %ebp, %edx
callq 0xe33a
leaq 0x1108a(%rip), %rcx     # 0x315f1
movl $0x1, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5380
leaq 0x10(%rsp), %r14
movq %r14, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
leaq 0x30(%rsp), %rbx
movl 0x44(%rsp), %r15d
je 0x205a9
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x205b0
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rsp, %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xfa9b(%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 0x205fe
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x20604
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 0xf8(%rsp), %rdi
callq 0x50f0
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x2064f
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5340
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x20665
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x20(%rsp), %rdi
cmpq %rbx, %rdi
je 0x2067c
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x178(%r13), %rax
movslq 0xc4(%rsp), %rbx
movq (%rax,%rbx,8), %rax
movslq 0x2c8(%rsp), %r14
movq (%rax,%r14,8), %rdi
leaq 0xf8(%rsp), %rsi
callq 0x10c62
jmp 0x200fd
leaq 0x11440(%rip), %rdi     # 0x31af4
movq %r14, %rsi
xorl %eax, %eax
callq 0x5490
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
jne 0x206f3
jmp 0x20705
jmp 0x20702
jmp 0x20722
jmp 0x2095f
jmp 0x206e6
jmp 0x20702
jmp 0x20722
jmp 0x2095f
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x20705
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x20705
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x20725
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x20725
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x209e1
movq 0x30(%rsp), %rsi
jmp 0x2097b
jmp 0x2095f
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x20a3b
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x20a3b
movq %rax, %rbx
jmp 0x20a3b
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x20796
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x20796
movq %rax, %rbx
movq 0x1f0(%rsp), %rdi
cmpq %r12, %rdi
je 0x207b8
movq 0x200(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x207b8
movq %rax, %rbx
movq 0x230(%rsp), %rdi
cmpq %r14, %rdi
je 0x207da
movq 0x240(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x207da
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x207fa
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x207fa
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x20826
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x20826
jmp 0x20823
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x20867
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x20867
movq %rax, %rbx
leaq 0x148(%rsp), %r14
jmp 0x20a8d
movq %rax, %rbx
leaq 0x148(%rsp), %r14
jmp 0x20ab2
movq %rax, %rbx
leaq 0x148(%rsp), %r14
jmp 0x20a68
jmp 0x2095f
jmp 0x2095f
jmp 0x2095f
jmp 0x208b6
jmp 0x208be
movq %rax, %rbx
jmp 0x208f6
movq %rax, %rbx
leaq 0xe8(%rsp), %r14
jmp 0x20923
movq %rax, %rbx
leaq 0x30(%rsp), %rbp
jmp 0x20940
movq %rax, %rbx
leaq 0x30(%rsp), %rbp
jmp 0x209a5
movq %rax, %rbx
jmp 0x209a5
movq %rax, %rbx
jmp 0x209bc
movq %rax, %rbx
jmp 0x209d7
movq %rax, %rbx
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x208f6
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x5340
leaq 0xe8(%rsp), %r14
movq 0x170(%rsp), %rdi
leaq 0x180(%rsp), %rax
cmpq %rax, %rdi
je 0x20923
movq 0x180(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0xd8(%rsp), %rdi
cmpq %r14, %rdi
je 0x20940
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x209a5
movq 0x1a0(%rsp), %rsi
jmp 0x2099d
movq %rax, %rbx
jmp 0x209e1
movq %rax, %rbx
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x209e1
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x209e1
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
cmpq %r15, %rdi
je 0x209a5
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x20(%rsp), %rdi
cmpq %rbp, %rdi
je 0x209bc
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5340
leaq 0x10(%rsp), %rax
movq (%rsp), %rdi
cmpq %rax, %rdi
je 0x209d7
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5340
leaq 0x48(%rsp), %rdi
callq 0x286da
movq $-0x40, %r14
leaq 0x260(%rsp), %r15
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x20a04
movq (%r15), %rsi
incq %rsi
callq 0x5340
addq $-0x20, %r15
addq $0x20, %r14
jne 0x209f0
movq $-0x40, %r14
leaq 0x220(%rsp), %r15
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x20a31
movq (%r15), %rsi
incq %rsi
callq 0x5340
addq $-0x20, %r15
addq $0x20, %r14
jne 0x20a1d
movq 0xf8(%rsp), %rdi
leaq 0x108(%rsp), %rax
cmpq %rax, %rdi
leaq 0x148(%rsp), %r14
je 0x20a68
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x1d0(%rsp), %rdi
leaq 0x1e0(%rsp), %rax
cmpq %rax, %rdi
je 0x20a8d
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x1b0(%rsp), %rdi
leaq 0x1c0(%rsp), %rax
cmpq %rax, %rdi
je 0x20ab2
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x138(%rsp), %rdi
cmpq %r14, %rdi
je 0x20acf
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x5340
movq %rbx, %rdi
callq 0x55c0
nop