// File: /workspace/github_cpp_makefile_star2_O3/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 $0x288, %rsp            # imm = 0x288
movl %r9d, 0xc0(%rsp)
movl %r8d, %ebx
movq %rdx, 0x258(%rsp)
movq %rsi, %r15
movq %rdi, %r12
leaq 0x180(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rcx), %rsi
movq 0x8(%rcx), %rdx
addq %rsi, %rdx
leaq 0x170(%rsp), %rdi
callq 0x1123c
leaq 0x1c0(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0xd0(%r15), %rsi
movq 0xd8(%r15), %rdx
addq %rsi, %rdx
leaq 0x1b0(%rsp), %rdi
callq 0x1123c
leaq 0x278(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0xd0(%r15), %rsi
movq 0xd8(%r15), %rdx
addq %rsi, %rdx
leaq 0x268(%rsp), %rdi
callq 0x1123c
leaq 0xb8(%r12), %rdi
leaq 0x2c0(%rsp), %rsi
callq 0x2851c
leaq 0x38(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %rdi
callq 0x1123c
movq %r15, 0x108(%rsp)
leaq 0x10a37(%rip), %rsi     # 0x315f1
leaq 0x28(%rsp), %rdi
callq 0x5630
incl %ebx
movl %ebx, %ebp
negl %ebp
cmovsl %ebx, %ebp
movl $0x1, %r14d
cmpl $0xa, %ebp
jb 0x20c21
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x20c18
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x20c1e
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x20c21
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x20be5
addl $-0x3, %r14d
jmp 0x20c21
addl $-0x2, %r14d
jmp 0x20c21
decl %r14d
shrl $0x1f, %ebx
leal (%r14,%rbx), %esi
leaq 0x58(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x48(%rsp), %rdi
movl $0x2d, %edx
callq 0x53b0
movl %ebx, %edi
addq 0x48(%rsp), %rdi
movl %r14d, %esi
movl %ebp, %edx
callq 0xe33a
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %r8
movq 0x50(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
leaq 0x38(%rsp), %rbp
cmpq %rbp, %rcx
je 0x20c78
movq 0x38(%rsp), %rdi
movq 0x48(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x20c9b
movl $0xf, %edi
leaq 0x58(%rsp), %r9
cmpq %r9, %rsi
je 0x20c96
movq 0x58(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x20ca7
leaq 0x28(%rsp), %rdi
callq 0x50f0
jmp 0x20cb5
leaq 0x48(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5380
leaq 0x18(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x20cd9
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x20cdf
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x108ee(%rip), %rsi     # 0x315f1
leaq 0x8(%rsp), %rdi
callq 0x5630
leaq 0x1e0(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x20d3d
movq %rdx, 0x1d0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x1e0(%rsp)
jmp 0x20d44
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x1d0(%rsp), %rbx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x170(%rsp), %rsi
movq 0x178(%rsp), %rdx
movq %rbx, %rdi
callq 0x50f0
leaq 0x220(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x20dab
movq %rdx, 0x210(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x220(%rsp)
jmp 0x20db2
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x210(%rsp), %r13
movq %rdx, 0x8(%r13)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x10819(%rip), %rsi     # 0x315f1
movq %r13, %rdi
callq 0x5630
leaq 0x78(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x20e07
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x20e0d
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq 0x68(%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 0xf0(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x20e6e
movq %rdx, 0xe0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xf0(%rsp)
jmp 0x20e74
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0xe8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x20eab
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x210(%rsp), %rdi
cmpq %r15, %rdi
je 0x20ec8
movq 0x220(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x1d0(%rsp), %rdi
cmpq %r14, %rdi
je 0x20ee5
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x5340
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x20f00
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x20f1c
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x20f33
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5340
movl $0x10, %eax
leaq (%rsp,%rax), %rcx
addq $0x210, %rcx            # imm = 0x210
movq %rcx, -0x10(%rcx)
movq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
addq $0x20, %rax
cmpq $0x50, %rax
jne 0x20f38
movq %r12, 0x100(%rsp)
movl $0x10, %eax
leaq (%rsp,%rax), %rcx
addq $0x1d0, %rcx            # imm = 0x1D0
movq %rcx, -0x10(%rcx)
movq $0x0, -0x8(%rcx)
movb $0x0, (%rcx)
addq $0x20, %rax
cmpq $0x50, %rax
jne 0x20f69
movq 0x108(%rsp), %rax
addq $0x68, %rax
movq %rax, 0x250(%rsp)
xorl %eax, %eax
movb $0x1, %cl
leaq 0x190(%rsp), %r12
movl $0x0, 0xc8(%rsp)
movl $0x0, 0xcc(%rsp)
movl %ecx, 0xc4(%rsp)
movq %r13, 0xd8(%rsp)
movq %rbx, 0xd0(%rsp)
leaq (%rax,%rax,2), %rax
shlq $0x4, %rax
movq 0x250(%rsp), %rcx
leaq (%rcx,%rax), %rbx
addq $0x8, %rbx
movq 0x10(%rbx), %r14
cmpq %rbx, %r14
movq %rbx, 0x260(%rsp)
je 0x21528
movslq 0x24(%r14), %rax
cmpq $-0x1, %rax
sete %cl
movl 0x28(%r14), %r15d
cmpl $-0x1, %r15d
sete %dl
orb %cl, %dl
jne 0x21514
movq %r12, %r13
movq 0x258(%rsp), %rcx
movq (%rcx), %rbx
imulq $0x58, %rax, %r12
movl (%rbx,%r12), %eax
movl %eax, 0x68(%rsp)
leaq 0x80(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x8(%rbx,%r12), %rsi
movq 0x10(%rbx,%r12), %rdx
addq %rsi, %rdx
leaq 0x70(%rsp), %rdi
callq 0x1123c
addq %r12, %rbx
leaq 0x28(%rbx), %rsi
leaq 0x90(%rsp), %rdi
callq 0x28582
movq 0x50(%rbx), %rax
leaq 0x70(%rsp), %rcx
movq %rax, 0x48(%rcx)
movups 0x40(%rbx), %xmm0
movups %xmm0, 0x38(%rcx)
movzbl 0xb4(%rsp), %ebx
cmpl $0x0, 0x2d0(%rsp)
movq %r13, %r12
jne 0x214cc
movq 0x90(%rsp), %rax
leaq 0x18(%rsp), %rcx
movq %rcx, 0x8(%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0x1123c
cmpb $0x1, 0xa9(%rsp)
jne 0x2111d
movq 0x90(%rsp), %rdx
addq $0x20, %rdx
leaq 0x28(%rsp), %rdi
leaq 0x10506(%rip), %rsi     # 0x315f3
callq 0xce20
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
leaq 0x8(%rsp), %rdi
callq 0x50f0
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x2111d
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5340
movq %rbp, 0x28(%rsp)
leaq 0x28(%rsp), %rdi
leaq 0x104c4(%rip), %rdx     # 0x315f2
movq %rdx, %rsi
callq 0xc3da
leaq 0x10754(%rip), %rsi     # 0x31891
cmpl $0x1, %r15d
je 0x2114f
testl %r15d, %r15d
jne 0x21159
leaq 0x1073e(%rip), %rsi     # 0x3188d
leaq 0x28(%rsp), %rdi
callq 0x5630
movl 0x68(%rsp), %ebp
incl %ebp
movl %ebp, %r15d
negl %r15d
cmovsl %ebp, %r15d
movl $0x1, %r12d
cmpl $0xa, %r15d
jb 0x211bc
movl $0x4, %r12d
movl %r15d, %eax
cmpl $0x63, %eax
jbe 0x211b3
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x211b9
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x211bc
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 0x2117e
addl $-0x3, %r12d
jmp 0x211bc
addl $-0x2, %r12d
jmp 0x211bc
decl %r12d
shrl $0x1f, %ebp
leal (%r12,%rbp), %esi
leaq 0x1a0(%rsp), %rax
movq %rax, 0x190(%rsp)
movq %r13, %rdi
movl $0x2d, %edx
callq 0x53b0
movl %ebp, %edi
addq 0x190(%rsp), %rdi
movl %r12d, %esi
movl %r15d, %edx
callq 0xe33a
movq %r13, %rdi
leaq 0x10392(%rip), %rsi     # 0x31591
callq 0x5630
movq %r13, %r12
leaq 0x120(%rsp), %rsi
movq %rsi, 0x110(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
leaq 0x38(%rsp), %rbp
je 0x21240
movq %rdx, 0x110(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x120(%rsp)
jmp 0x21246
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x118(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x70(%rsp), %rsi
movq 0x78(%rsp), %rdx
leaq 0x110(%rsp), %rdi
callq 0x50f0
leaq 0x140(%rsp), %rsi
movq %rsi, 0x130(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x212ac
movq %rdx, 0x130(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x140(%rsp)
jmp 0x212b2
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x138(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x130(%rsp), %rdi
leaq 0x102b5(%rip), %rsi     # 0x31591
callq 0x5630
leaq 0x160(%rsp), %rsi
movq %rsi, 0x150(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x21315
movq %rdx, 0x150(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x160(%rsp)
jmp 0x2131b
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x158(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x150(%rsp), %rdi
callq 0x50f0
leaq 0x58(%rsp), %rsi
movq %rsi, 0x48(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x21375
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x2137b
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 0x150(%rsp), %rdi
leaq 0x160(%rsp), %rax
cmpq %rax, %rdi
je 0x213b8
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x130(%rsp), %rdi
leaq 0x140(%rsp), %rax
cmpq %rax, %rdi
je 0x213dd
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x110(%rsp), %rdi
leaq 0x120(%rsp), %rax
cmpq %rax, %rdi
je 0x21402
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x21427
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq 0xd8(%rsp), %rdi
callq 0x50f0
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq 0xd0(%rsp), %rdi
callq 0x50f0
movq 0xd8(%rsp), %rdi
leaq 0x10427(%rip), %rsi     # 0x3188b
callq 0x5630
movq 0xd0(%rsp), %rdi
leaq 0x10413(%rip), %rsi     # 0x3188b
callq 0x5630
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x21499
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x214b0
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x214cc
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5340
leaq 0x90(%rsp), %rdi
callq 0xe71c
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x214fb
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x5340
addl %ebx, 0xcc(%rsp)
xorl $0x1, %ebx
addl %ebx, 0xc8(%rsp)
movq 0x260(%rsp), %rbx
movq %r14, %rdi
callq 0x5250
movq %rax, %r14
cmpq %rbx, %rax
jne 0x21007
cmpl $0x0, 0x2d0(%rsp)
je 0x2155f
movl $0x1, %eax
leaq 0x1f0(%rsp), %rbx
leaq 0x230(%rsp), %r13
testb $0x1, 0xc4(%rsp)
movl $0x0, %ecx
jne 0x20fc3
jmp 0x2161b
movq 0xd8(%rsp), %r14
movq 0x8(%r14), %rcx
decq %rcx
leaq 0x68(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x5360
leaq 0x78(%rsp), %rbx
movq %r14, %rdi
movq %r15, %rsi
callq 0x53e0
movq 0x68(%rsp), %rdi
cmpq %rbx, %rdi
movq 0xd0(%rsp), %r14
je 0x215af
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x8(%r14), %rcx
decq %rcx
movq %r15, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x5360
movq %r14, %rdi
movq %r15, %rsi
callq 0x53e0
movq 0x68(%rsp), %rdi
cmpq %rbx, %rdi
je 0x215e5
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5340
movl $0x1, %eax
leaq 0x1f0(%rsp), %rbx
leaq 0x230(%rsp), %r13
testb $0x1, 0xc4(%rsp)
movl $0x0, %ecx
jne 0x20fc3
cmpl $0x0, 0x2d0(%rsp)
je 0x2179d
movslq 0xc0(%rsp), %rbx
movslq 0x2c8(%rsp), %r14
movq 0x100(%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 0x21beb
movl 0xc8(%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 0x21beb
movl 0xcc(%rsp), %ecx
addl %ecx, (%rax,%r14,4)
movq $-0x40, %rbx
leaq 0x200(%rsp), %r14
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0x216c0
movq (%r14), %rsi
incq %rsi
callq 0x5340
addq $-0x20, %r14
addq $0x20, %rbx
jne 0x216ac
movq $-0x40, %rbx
leaq 0x240(%rsp), %r14
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0x216ed
movq (%r14), %rsi
incq %rsi
callq 0x5340
addq $-0x20, %r14
addq $0x20, %rbx
jne 0x216d9
movq 0xe0(%rsp), %rdi
leaq 0xf0(%rsp), %rax
cmpq %rax, %rdi
je 0x2171c
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x268(%rsp), %rdi
leaq 0x278(%rsp), %rax
cmpq %rax, %rdi
leaq 0x180(%rsp), %rbx
je 0x21749
movq 0x278(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x1b0(%rsp), %rdi
leaq 0x1c0(%rsp), %rax
cmpq %rax, %rdi
je 0x2176e
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x170(%rsp), %rdi
cmpq %rbx, %rdi
je 0x2178b
movq 0x180(%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 0xfe4d(%rip), %rsi      # 0x315f1
leaq 0x28(%rsp), %rdi
leaq 0x210(%rsp), %rdx
callq 0xce20
leaq 0xfe34(%rip), %rsi      # 0x315f1
leaq 0x28(%rsp), %rdi
callq 0x5630
movq 0x100(%rsp), %r13
leaq 0x78(%rsp), %r14
leaq 0x18(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x217fc
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x21802
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x230(%rsp), %rsi
movq 0x238(%rsp), %rdx
callq 0x50f0
movq %r14, 0x68(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x21856
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x2185d
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, 0x70(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
leaq 0xe0(%rsp), %rdi
callq 0x50f0
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x218a3
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x218bf
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x218d6
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5340
leaq 0xfd14(%rip), %rsi      # 0x315f1
leaq 0x28(%rsp), %rdi
leaq 0x1d0(%rsp), %rdx
callq 0xce20
leaq 0xfcfb(%rip), %rsi      # 0x315f1
leaq 0x28(%rsp), %rdi
callq 0x5630
leaq 0x18(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x21928
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x2192e
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x1f0(%rsp), %rsi
movq 0x1f8(%rsp), %rdx
callq 0x50f0
movq %r14, 0x68(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x21982
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x21989
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, 0x70(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
leaq 0xe0(%rsp), %rdi
callq 0x50f0
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x219cf
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x219eb
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x21a02
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x108(%rsp), %rax
movl 0x158(%rax), %r12d
movl %r12d, %ebp
negl %ebp
cmovsl %r12d, %ebp
movl $0x1, %r14d
cmpl $0xa, %ebp
jb 0x21a6e
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x21a65
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x21a6b
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x21a6e
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x21a32
addl $-0x3, %r14d
jmp 0x21a6e
addl $-0x2, %r14d
jmp 0x21a6e
decl %r14d
shrl $0x1f, %r12d
leal (%r14,%r12), %esi
leaq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
movq %rax, (%rdi)
movl $0x2d, %edx
callq 0x53b0
leaq 0x28(%rsp), %r15
addq (%r15), %r12
movq %r12, %rdi
movl %r14d, %esi
movl %ebp, %edx
callq 0xe33a
leaq 0xfb48(%rip), %rcx      # 0x315f1
movl $0x1, %r8d
movq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5380
leaq 0x18(%rsp), %r14
movq %r14, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
leaq 0x38(%rsp), %rbx
leaq 0x78(%rsp), %r15
je 0x21aed
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x21af4
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xe555(%rip), %rsi      # 0x3006c
callq 0x5630
movq %r15, 0x68(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x21b3f
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x21b46
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0x70(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
leaq 0xe0(%rsp), %rdi
callq 0x50f0
movq 0x68(%rsp), %rdi
cmpq %r15, %rdi
je 0x21b8c
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x21ba3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x28(%rsp), %rdi
cmpq %rbx, %rdi
je 0x21bba
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x178(%r13), %rax
movslq 0xc0(%rsp), %rbx
movq (%rax,%rbx,8), %rax
movslq 0x2c8(%rsp), %r14
movq (%rax,%r14,8), %rdi
leaq 0xe0(%rsp), %rsi
callq 0x10c62
jmp 0x21633
leaq 0xff02(%rip), %rdi      # 0x31af4
movq %r14, %rsi
xorl %eax, %eax
callq 0x5490
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r15, %rdi
jne 0x21c2c
jmp 0x21c3e
jmp 0x21c3b
jmp 0x21c5c
jmp 0x21e68
jmp 0x21c1f
jmp 0x21c3b
jmp 0x21c5c
jmp 0x21e68
movq %rax, %rbx
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0x21c3e
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x21c3e
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x21c5f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x21c5f
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x21ec9
movq 0x38(%rsp), %rsi
jmp 0x21e5e
jmp 0x21e68
movq %rax, %rbx
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x21ca5
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x21ca5
movq %rax, %rbx
movq 0x210(%rsp), %rdi
cmpq %r15, %rdi
je 0x21cc7
movq 0x220(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x21cc7
movq %rax, %rbx
movq 0x1d0(%rsp), %rdi
cmpq %r14, %rdi
je 0x21ce9
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x21ce9
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x21d09
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x21d09
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x21d2c
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x21d2c
jmp 0x21d29
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x21f48
movq 0x38(%rsp), %rsi
jmp 0x21f40
movq %rax, %rbx
jmp 0x21f75
movq %rax, %rbx
jmp 0x21f9a
movq %rax, %rbx
jmp 0x21f48
jmp 0x21e68
jmp 0x21e68
jmp 0x21e68
jmp 0x21d74
jmp 0x21d96
movq %rax, %rbx
jmp 0x21e8c
movq %rax, %rbx
leaq 0x38(%rsp), %rbp
jmp 0x21e22
movq %rax, %rbx
leaq 0x38(%rsp), %rbp
jmp 0x21e8c
movq %rax, %rbx
jmp 0x21ea3
movq %rax, %rbx
jmp 0x21ebf
movq %rax, %rbx
movq 0x150(%rsp), %rdi
leaq 0x160(%rsp), %rax
cmpq %rax, %rdi
je 0x21dd3
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x21dd3
movq %rax, %rbx
movq 0x130(%rsp), %rdi
leaq 0x140(%rsp), %rax
cmpq %rax, %rdi
je 0x21dfd
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x21dfd
movq %rax, %rbx
movq 0x110(%rsp), %rdi
leaq 0x120(%rsp), %rax
cmpq %rax, %rdi
je 0x21e22
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x21e8c
movq 0x1a0(%rsp), %rsi
jmp 0x21e84
movq %rax, %rbx
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x21ec9
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x21ec9
movq %rax, %rbx
jmp 0x21ec9
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x21e8c
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0x21ea3
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5340
leaq 0x18(%rsp), %rax
movq 0x8(%rsp), %rdi
cmpq %rax, %rdi
je 0x21ebf
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5340
leaq 0x68(%rsp), %rdi
callq 0x286da
movq $-0x40, %r14
leaq 0x200(%rsp), %r15
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x21eec
movq (%r15), %rsi
incq %rsi
callq 0x5340
addq $-0x20, %r15
addq $0x20, %r14
jne 0x21ed8
movq $-0x40, %r14
leaq 0x240(%rsp), %r15
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x21f19
movq (%r15), %rsi
incq %rsi
callq 0x5340
addq $-0x20, %r15
addq $0x20, %r14
jne 0x21f05
movq 0xe0(%rsp), %rdi
leaq 0xf0(%rsp), %rax
cmpq %rax, %rdi
je 0x21f48
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x5340
leaq 0x180(%rsp), %r14
movq 0x268(%rsp), %rdi
leaq 0x278(%rsp), %rax
cmpq %rax, %rdi
je 0x21f75
movq 0x278(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x1b0(%rsp), %rdi
leaq 0x1c0(%rsp), %rax
cmpq %rax, %rdi
je 0x21f9a
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x170(%rsp), %rdi
cmpq %r14, %rdi
je 0x21fb7
movq 0x180(%rsp), %rsi
incq %rsi
callq 0x5340
movq %rbx, %rdi
callq 0x55c0
nop