// File: /workspace/github_cpp_makefile_star2_O1/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 $0x298, %rsp            # imm = 0x298
movl %r9d, 0xe4(%rsp)
movl %r8d, %ebx
movq %rcx, %r14
movq %rdx, 0x290(%rsp)
movq %rsi, %r12
movq %rdi, 0xd0(%rsp)
movq 0xd8(%rsi), %rdx
movb $0x1, %r15b
cmpq 0xf8(%rsi), %rdx
movq %rsi, 0xc8(%rsp)
jne 0x1f83c
testq %rdx, %rdx
je 0x1f831
movq 0xc8(%rsp), %r12
movq 0xd0(%r12), %rdi
movq 0xf0(%r12), %rsi
callq 0x5350
testl %eax, %eax
setne %r15b
jmp 0x1f83c
xorl %r15d, %r15d
movq 0xc8(%rsp), %r12
leaq 0x138(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x128(%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 0x1f0(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0xf0(%r12), %rsi
movq 0xf8(%r12), %rdx
addq %rsi, %rdx
leaq 0x1e0(%rsp), %rdi
callq 0x112ce
movq 0xd0(%rsp), %rax
leaq 0xb8(%rax), %rdi
leaq 0x2d0(%rsp), %rsi
callq 0x28988
leaq 0x10(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rsp, %rdi
callq 0x112ce
leaq 0x11ccc(%rip), %rsi     # 0x315c1
movq %rsp, %rdi
callq 0x5630
incl %ebx
movl %ebx, %ebp
negl %ebp
cmovsl %ebx, %ebp
movl $0x1, %r14d
cmpl $0xa, %ebp
jb 0x1f95a
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x1f951
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x1f957
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x1f95a
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x1f91e
addl $-0x3, %r14d
jmp 0x1f95a
addl $-0x2, %r14d
jmp 0x1f95a
decl %r14d
shrl $0x1f, %ebx
leal (%r14,%rbx), %esi
leaq 0xb0(%rsp), %r12
movq %r12, -0x10(%r12)
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 (%rsp), %rcx
movq 0x8(%rsp), %r8
movq 0xa8(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
leaq 0x10(%rsp), %rdi
cmpq %rdi, %rcx
je 0x1f9bd
movq 0x10(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x1f9de
movl $0xf, %esi
cmpq %r12, 0xa0(%rsp)
je 0x1f9d9
movq 0xb0(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x1f9f0
movq 0xa0(%rsp), %rsi
movq %rsp, %rdi
callq 0x50f0
jmp 0x1fa01
leaq 0xa0(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5380
leaq 0x30(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x1fa25
movq %rsi, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0x1fa2b
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x28(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x11b72(%rip), %rsi     # 0x315c1
leaq 0x20(%rsp), %rdi
callq 0x5630
leaq 0x210(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1fa89
movq %rdx, 0x200(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x210(%rsp)
jmp 0x1fa90
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x200(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x128(%rsp), %rsi
movq 0x130(%rsp), %rdx
callq 0x50f0
leaq 0x250(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1faf5
movq %rdx, 0x240(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x250(%rsp)
jmp 0x1fafd
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x240(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x11a9e(%rip), %rsi     # 0x315c1
callq 0x5630
leaq 0x58(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1fb4f
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x1fb55
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 0x1c0(%rsp), %rsi
movq 0x1c8(%rsp), %rdx
callq 0x50f0
leaq 0xf8(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1fbb6
movq %rdx, 0xe8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xf8(%rsp)
jmp 0x1fbbc
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0xf0(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x1fbf3
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x240(%rsp), %rdi
cmpq %r12, %rdi
je 0x1fc10
movq 0x250(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x200(%rsp), %rdi
cmpq %r14, %rdi
je 0x1fc2d
movq 0x210(%rsp), %rsi
incq %rsi
callq 0x5340
leaq 0x30(%rsp), %r12
movq -0x10(%r12), %rdi
cmpq %r12, %rdi
movq 0xc8(%rsp), %rbx
leaq 0x58(%rsp), %r14
je 0x1fc56
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x1fc7b
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x5340
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1fc96
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5340
testb %r15b, %r15b
je 0x1fce2
leaq 0x11921(%rip), %rsi     # 0x315c3
leaq 0x48(%rsp), %rdi
leaq 0x1e0(%rsp), %rdx
callq 0xce96
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
leaq 0xe8(%rsp), %rdi
callq 0x50f0
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x1fce2
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5340
movl $0x10, %eax
leaq (%rsp,%rax), %rcx
addq $0x240, %rcx            # imm = 0x240
movq %rcx, -0x10(%rcx)
movq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
addq $0x20, %rax
cmpq $0x50, %rax
jne 0x1fce7
movl $0x10, %eax
leaq (%rsp,%rax), %rcx
addq $0x200, %rcx            # imm = 0x200
movq %rcx, -0x10(%rcx)
movq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
addq $0x20, %rax
cmpq $0x50, %rax
jne 0x1fd10
leaq 0x68(%rbx), %rax
movq %rax, 0x288(%rsp)
xorl %edx, %edx
xorl %r13d, %r13d
movl $0x0, 0xc4(%rsp)
leaq (%rdx,%rdx,2), %rax
shlq $0x4, %rax
movq 0x288(%rsp), %rcx
addq %rcx, %rax
addq $0x8, %rax
movq 0x10(%rax), %r14
movq %rax, 0xd8(%rsp)
cmpq %rax, %r14
movq %rdx, 0x148(%rsp)
je 0x2036c
movq %rdx, %rax
shlq $0x5, %rax
leaq (%rsp,%rax), %rcx
addq $0x240, %rcx            # imm = 0x240
movq %rcx, 0x158(%rsp)
addq %rsp, %rax
addq $0x200, %rax            # imm = 0x200
movq %rax, 0x150(%rsp)
movslq 0x24(%r14), %rax
cmpq $-0x1, %rax
je 0x20353
movl 0x28(%r14), %ebx
movq 0x290(%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, 0x44(%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 0x30(%rsp), %r12
jne 0x20317
movq 0x70(%rsp), %rax
movq %r12, 0x20(%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x20(%rsp), %rdi
callq 0x112ce
cmpb $0x1, 0x89(%rsp)
jne 0x1feaf
movq 0x70(%rsp), %rdx
addq $0x20, %rdx
movq %rsp, %rdi
leaq 0x11747(%rip), %rsi     # 0x315c3
callq 0xce96
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
leaq 0x20(%rsp), %rdi
callq 0x50f0
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1feaf
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5340
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq %rsp, %rdi
leaq 0x11700(%rip), %rdx     # 0x315c2
movq %rdx, %rsi
callq 0xc45c
addl $0x2, %ebx
cmpl $0x3, %ebx
ja 0x1ff86
leaq 0x113d3(%rip), %rcx     # 0x312b0
movslq (%rcx,%rbx,4), %rax
addq %rcx, %rax
leaq 0x11968(%rip), %rsi     # 0x31853
jmpq *%rax
leaq 0x11963(%rip), %rsi     # 0x31857
jmp 0x1ff7e
movq %rsp, %rdi
leaq 0x11720(%rip), %rsi     # 0x31623
callq 0x5630
cmpb $0x1, 0x88(%rsp)
leaq 0x1193d(%rip), %rsi     # 0x31854
jne 0x1ff7e
cmpb $0x1, 0x89(%rsp)
leaq 0x11928(%rip), %rsi     # 0x31850
jne 0x1ff7e
cmpb $0x0, 0x8a(%rsp)
leaq 0x1191f(%rip), %rsi     # 0x31858
leaq 0x11910(%rip), %rax     # 0x31850
cmovneq %rax, %rsi
jmp 0x1ff7e
movb 0x89(%rsp), %al
cmpb $0x1, %al
jne 0x1ff77
cmpb $0x1, 0x8a(%rsp)
leaq 0x118eb(%rip), %rsi     # 0x3184b
jne 0x1ff7e
testb %al, %al
je 0x1ff77
cmpb $0x0, 0x8a(%rsp)
leaq 0x118da(%rip), %rsi     # 0x3184f
jne 0x1ff7e
leaq 0x118d5(%rip), %rsi     # 0x31853
movq %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 0x1ffe5
movl $0x4, %ebx
movl %r15d, %eax
cmpl $0x63, %eax
jbe 0x1ffde
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x1ffe3
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x1ffe5
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 0x1ffab
addl $-0x3, %ebx
jmp 0x1ffe5
addl $-0x2, %ebx
jmp 0x1ffe5
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 0x11530(%rip), %rsi     # 0x31561
callq 0x5630
leaq 0x170(%rsp), %rsi
movq %rsi, 0x160(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2006a
movq %rdx, 0x160(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x170(%rsp)
jmp 0x20070
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
leaq 0x30(%rsp), %r12
movq 0x8(%rax), %rdx
movq %rdx, 0x168(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
leaq 0x160(%rsp), %rdi
callq 0x50f0
leaq 0x190(%rsp), %rsi
movq %rsi, 0x180(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x200db
movq %rdx, 0x180(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x190(%rsp)
jmp 0x200e1
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x188(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x180(%rsp), %rdi
leaq 0x11456(%rip), %rsi     # 0x31561
callq 0x5630
leaq 0x118(%rsp), %rsi
movq %rsi, 0x108(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x20144
movq %rdx, 0x108(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x118(%rsp)
jmp 0x2014a
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x110(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
leaq 0x108(%rsp), %rdi
callq 0x50f0
leaq 0xb0(%rsp), %rsi
movq %rsi, 0xa0(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x201b0
movq %rdx, 0xa0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xb0(%rsp)
jmp 0x201b6
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
leaq 0x118(%rsp), %rsi
movq 0x8(%rax), %rdx
movq %rdx, 0xa8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x108(%rsp), %rdi
cmpq %rsi, %rdi
je 0x201f6
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x180(%rsp), %rdi
leaq 0x190(%rsp), %rax
cmpq %rax, %rdi
je 0x2021b
movq 0x190(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x20240
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x1a0(%rsp), %rdi
leaq 0x1b0(%rsp), %rax
cmpq %rax, %rdi
je 0x20265
movq 0x1b0(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0xa0(%rsp), %rsi
movq 0xa8(%rsp), %rdx
movq 0x158(%rsp), %rdi
callq 0x50f0
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq 0x150(%rsp), %rdi
callq 0x50f0
movq 0x158(%rsp), %rdi
leaq 0x115b4(%rip), %rsi     # 0x3185b
callq 0x5630
movq 0x150(%rsp), %rdi
leaq 0x115a0(%rip), %rsi     # 0x3185b
callq 0x5630
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x202e5
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x5340
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x20300
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x20317
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5340
leaq 0x70(%rsp), %rdi
callq 0xe7ca
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x2033d
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5340
addl %r13d, 0xc4(%rsp)
xorl $0x1, %r13d
movl 0x44(%rsp), %ebp
addl %r13d, %ebp
movl %ebp, %r13d
movq %r14, %rdi
callq 0x5250
movq %rax, %r14
cmpq 0xd8(%rsp), %rax
jne 0x1fdaf
movl 0x2e0(%rsp), %ebp
testl %ebp, %ebp
jne 0x2041d
movq 0x148(%rsp), %r14
shlq $0x5, %r14
leaq (%rsp,%r14), %rbx
addq $0x240, %rbx            # imm = 0x240
movq 0x8(%rbx), %rcx
decq %rcx
leaq 0x48(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x5360
movq %rbx, %rdi
movq %r15, %rsi
callq 0x53e0
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x203d2
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5340
leaq (%rsp,%r14), %rbx
addq $0x200, %rbx            # imm = 0x200
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
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x2041d
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x148(%rsp), %rcx
leaq 0x1(%rcx), %rdx
testq %rcx, %rcx
je 0x1fd50
movl %r13d, 0x44(%rsp)
movslq 0xe4(%rsp), %r13
movslq 0x2d8(%rsp), %r15
testl %ebp, %ebp
movq 0xd0(%rsp), %rbx
jne 0x20890
leaq 0x11163(%rip), %rsi     # 0x315c1
movq %rsp, %rdi
leaq 0x240(%rsp), %rdx
callq 0xce96
leaq 0x1114c(%rip), %rsi     # 0x315c1
movq %rsp, %rdi
callq 0x5630
movq 0xc8(%rsp), %rbx
leaq 0x58(%rsp), %r14
movq %r12, 0x20(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x204ad
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0x204b5
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x20(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x260(%rsp), %rsi
movq 0x268(%rsp), %rdx
callq 0x50f0
movq %r14, 0x48(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x20509
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x20510
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 0xe8(%rsp), %rdi
callq 0x50f0
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x20556
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x2056d
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5340
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x20588
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5340
leaq 0x11032(%rip), %rsi     # 0x315c1
movq %rsp, %rdi
leaq 0x200(%rsp), %rdx
callq 0xce96
leaq 0x1101b(%rip), %rsi     # 0x315c1
movq %rsp, %rdi
callq 0x5630
movq %r12, 0x20(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x205d1
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0x205d9
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x20(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x220(%rsp), %rsi
movq 0x228(%rsp), %rdx
callq 0x50f0
movq %r14, 0x48(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2062d
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x20634
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 0xe8(%rsp), %rdi
callq 0x50f0
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x2067a
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x20691
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5340
movq %r15, 0xd8(%rsp)
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x206b4
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5340
movl 0x158(%rbx), %r14d
movl %r14d, %ebx
negl %ebx
cmovsl %r14d, %ebx
movl $0x1, %r15d
cmpl $0xa, %ebx
jb 0x20718
movl $0x4, %r15d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebx, %ecx
cmpl $0x63, %ecx
jbe 0x2070f
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x20715
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x20718
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r15d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x206dc
addl $-0x3, %r15d
jmp 0x20718
addl $-0x2, %r15d
jmp 0x20718
decl %r15d
shrl $0x1f, %r14d
leal (%r15,%r14), %esi
movq %rsp, %rdi
leaq 0x10(%rsp), %rax
movq %rax, (%rdi)
movl $0x2d, %edx
callq 0x53b0
movq %rsp, %r12
addq (%r12), %r14
movq %r14, %rdi
movl %r15d, %esi
movl %ebx, %edx
callq 0xe3b6
leaq 0x10e71(%rip), %rcx     # 0x315c1
movl $0x1, %r8d
movq %r12, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5380
leaq 0x30(%rsp), %r14
movq %r14, 0x20(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
movq 0xd0(%rsp), %rbx
movq 0xd8(%rsp), %r15
je 0x2079a
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0x207a1
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x20(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xf8a8(%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 0x207f1
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x207f7
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 0xe8(%rsp), %rdi
callq 0x50f0
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x20842
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x20(%rsp), %rdi
cmpq %r14, %rdi
je 0x20859
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5340
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x20874
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x178(%rbx), %rax
movq (%rax,%r13,8), %rax
movq (%rax,%r15,8), %rdi
leaq 0xe8(%rsp), %rsi
callq 0x10ca6
movq 0x180(%rbx), %rax
movq (%rax,%r13,8), %rcx
movslq %ebp, %rax
movq (%rcx,%rax,8), %rdx
movq (%rdx), %rcx
movq 0x8(%rdx), %rdx
subq %rcx, %rdx
sarq $0x2, %rdx
cmpq %r15, %rdx
jbe 0x209f2
movl 0x44(%rsp), %edx
addl %edx, (%rcx,%r15,4)
movq 0x188(%rbx), %rcx
movq (%rcx,%r13,8), %rcx
movq (%rcx,%rax,8), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
cmpq %r15, %rdx
jbe 0x209f2
movl 0xc4(%rsp), %ecx
addl %ecx, (%rax,%r15,4)
movq $-0x40, %rbx
leaq 0x230(%rsp), %r14
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0x20915
movq (%r14), %rsi
incq %rsi
callq 0x5340
addq $-0x20, %r14
addq $0x20, %rbx
jne 0x20901
movq $-0x40, %rbx
leaq 0x270(%rsp), %r14
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0x20942
movq (%r14), %rsi
incq %rsi
callq 0x5340
addq $-0x20, %r14
addq $0x20, %rbx
jne 0x2092e
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0x20971
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x1e0(%rsp), %rdi
leaq 0x1f0(%rsp), %rax
cmpq %rax, %rdi
leaq 0x138(%rsp), %rbx
je 0x2099e
movq 0x1f0(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x1c0(%rsp), %rdi
leaq 0x1d0(%rsp), %rax
cmpq %rax, %rdi
je 0x209c3
movq 0x1d0(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x128(%rsp), %rdi
cmpq %rbx, %rdi
je 0x209e0
movq 0x138(%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 0x110cb(%rip), %rdi     # 0x31ac4
movq %r15, %rsi
xorl %eax, %eax
callq 0x5490
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
jne 0x20a38
jmp 0x20a4a
jmp 0x20a47
jmp 0x20a68
jmp 0x20c98
jmp 0x20a2b
jmp 0x20a47
jmp 0x20a68
jmp 0x20c98
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x20a4a
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x20a4a
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x20a6b
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x20a6b
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x20d25
movq 0x10(%rsp), %rsi
jmp 0x20cb7
jmp 0x20c98
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x20d7f
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x20d7f
movq %rax, %rbx
jmp 0x20d7f
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x20adb
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x20adb
movq %rax, %rbx
movq 0x240(%rsp), %rdi
cmpq %r12, %rdi
je 0x20afd
movq 0x250(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x20afd
movq %rax, %rbx
movq 0x200(%rsp), %rdi
cmpq %r14, %rdi
je 0x20b1f
movq 0x210(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x20b1f
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x20b3f
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x20b3f
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x20b6b
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x20b6b
jmp 0x20b68
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x20bab
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x20bab
movq %rax, %rbx
leaq 0x138(%rsp), %r14
jmp 0x20dd1
movq %rax, %rbx
leaq 0x138(%rsp), %r14
jmp 0x20df6
movq %rax, %rbx
leaq 0x138(%rsp), %r14
jmp 0x20dac
jmp 0x20c98
jmp 0x20c98
jmp 0x20c98
jmp 0x20bef
jmp 0x20bf7
movq %rax, %rbx
jmp 0x20c2f
movq %rax, %rbx
jmp 0x20c54
movq %rax, %rbx
leaq 0x30(%rsp), %r12
jmp 0x20c79
movq %rax, %rbx
leaq 0x30(%rsp), %r12
jmp 0x20ce9
movq %rax, %rbx
jmp 0x20ce9
movq %rax, %rbx
jmp 0x20d04
movq %rax, %rbx
jmp 0x20d1b
movq %rax, %rbx
movq 0x108(%rsp), %rdi
leaq 0x118(%rsp), %rax
cmpq %rax, %rdi
je 0x20c2f
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x180(%rsp), %rdi
leaq 0x190(%rsp), %rax
cmpq %rax, %rdi
je 0x20c54
movq 0x190(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x20c79
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x1a0(%rsp), %rdi
leaq 0x1b0(%rsp), %rax
cmpq %rax, %rdi
je 0x20ce9
movq 0x1b0(%rsp), %rsi
jmp 0x20ce1
movq %rax, %rbx
jmp 0x20d25
movq %rax, %rbx
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x20d25
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x20d25
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x20ce9
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x5340
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x20d04
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x20d1b
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x5340
leaq 0x48(%rsp), %rdi
callq 0x28b44
movq $-0x40, %r14
leaq 0x230(%rsp), %r15
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x20d48
movq (%r15), %rsi
incq %rsi
callq 0x5340
addq $-0x20, %r15
addq $0x20, %r14
jne 0x20d34
movq $-0x40, %r14
leaq 0x270(%rsp), %r15
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x20d75
movq (%r15), %rsi
incq %rsi
callq 0x5340
addq $-0x20, %r15
addq $0x20, %r14
jne 0x20d61
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
leaq 0x138(%rsp), %r14
je 0x20dac
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x1e0(%rsp), %rdi
leaq 0x1f0(%rsp), %rax
cmpq %rax, %rdi
je 0x20dd1
movq 0x1f0(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x1c0(%rsp), %rdi
leaq 0x1d0(%rsp), %rax
cmpq %rax, %rdi
je 0x20df6
movq 0x1d0(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x128(%rsp), %rdi
cmpq %r14, %rdi
je 0x20e13
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x5340
movq %rbx, %rdi
callq 0x55c0
nop