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

    int truth_edit_distance = 0;
    int predict_edit_distance = 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 (int var_index = 0; var_index < variant_list.size(); var_index++) {
            DiploidVariant variant = variant_list[var_index];
            if(variant.flag != i) continue;
            //The exact wording from the C++ standard is (§4.7/4): "If the source type is bool,
            // the value false is converted to zero and the value true is converted to one."
            int phasing = best_path.choice_vector[var_index];
            if(phasing <= NOT_USE) continue;
            int edit_distance = CalculateEditDistance(variant, phasing, 1);
            if(i == 0){
                truth_num ++;
                truth_edit_distance += edit_distance;
            }else{
                predict_num ++;
                predict_edit_distance += edit_distance;
            }

            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;

    baseline_total_edit_distance[thread_index][threshold_index]->at(mode_index) += truth_edit_distance;
    query_total_edit_distance[thread_index][threshold_index]->at(mode_index) += predict_edit_distance;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x298, %rsp            # imm = 0x298
movl %r9d, %ebp
movl %r8d, %ebx
movq %rdx, 0x128(%rsp)
movq %rsi, %r12
movq %rdi, %r13
leaq 0x1a0(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rcx), %rsi
movq 0x8(%rcx), %rdx
addq %rsi, %rdx
leaq 0x190(%rsp), %rdi
callq 0x1123c
leaq 0x1e0(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0xd0(%r12), %rsi
movq 0xd8(%r12), %rdx
addq %rsi, %rdx
leaq 0x1d0(%rsp), %rdi
callq 0x1123c
leaq 0x288(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0xd0(%r12), %rsi
movq 0xd8(%r12), %rdx
addq %rsi, %rdx
leaq 0x278(%rsp), %rdi
callq 0x1123c
leaq 0xb8(%r13), %rdi
leaq 0x2d0(%rsp), %rsi
callq 0x2851c
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %rdi
callq 0x1123c
movl %ebp, 0xd4(%rsp)
leaq 0x136aa(%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 0x1dfae
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x1dfa5
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x1dfab
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x1dfae
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x1df72
addl $-0x3, %r14d
jmp 0x1dfae
addl $-0x2, %r14d
jmp 0x1dfae
decl %r14d
shrl $0x1f, %ebx
leal (%r14,%rbx), %esi
leaq 0x60(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x50(%rsp), %rdi
movl $0x2d, %edx
callq 0x53b0
movl %ebx, %edi
addq 0x50(%rsp), %rdi
movl %r14d, %esi
movl %ebp, %edx
callq 0xe33a
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %r8
movq 0x58(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r15, %rcx
je 0x1e000
movq 0x38(%rsp), %rdi
movq 0x50(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x1e023
movl $0xf, %edi
leaq 0x60(%rsp), %r9
cmpq %r9, %rsi
je 0x1e01e
movq 0x60(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x1e02f
leaq 0x28(%rsp), %rdi
callq 0x50f0
jmp 0x1e03d
leaq 0x50(%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 0x1e061
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x1e067
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 0x13566(%rip), %rsi     # 0x315f1
leaq 0x8(%rsp), %rdi
callq 0x5630
leaq 0x200(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1e0c5
movq %rdx, 0x1f0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x200(%rsp)
jmp 0x1e0cc
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq %r12, 0x120(%rsp)
movq 0x8(%rax), %rdx
leaq 0x1f0(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x190(%rsp), %rsi
movq 0x198(%rsp), %rdx
movq %rdi, 0xc8(%rsp)
callq 0x50f0
leaq 0x240(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1e141
movq %rdx, 0x230(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x240(%rsp)
jmp 0x1e149
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq 0x8(%rax), %rdx
leaq 0x230(%rsp), %rbx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x13482(%rip), %rsi     # 0x315f1
movq %rbx, %rdi
callq 0x5630
leaq 0x80(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1e1a4
movq %rdx, 0x70(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x80(%rsp)
jmp 0x1e1aa
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq 0x70(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x1d0(%rsp), %rsi
movq 0x1d8(%rsp), %rdx
callq 0x50f0
leaq 0x110(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1e20b
movq %rdx, 0x100(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x110(%rsp)
jmp 0x1e211
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x108(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x1e24e
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x230(%rsp), %rdi
cmpq %r12, %rdi
je 0x1e26b
movq 0x240(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x1f0(%rsp), %rdi
cmpq %r14, %rdi
leaq 0x38(%rsp), %r12
je 0x1e28d
movq 0x200(%rsp), %rsi
incq %rsi
callq 0x5340
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1e2a8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x1e2c4
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x1e2db
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5340
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 0x1e2e0
movq %r13, 0xe8(%rsp)
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 0x1e311
leaq 0x78(%rsp), %rbp
movq $0x0, 0xf8(%rsp)
movb $0x1, %al
movl %eax, 0x4c(%rsp)
leaq 0x1323e(%rip), %r13     # 0x31591
movl $0x0, 0xd8(%rsp)
movl $0x0, 0xdc(%rsp)
movl $0x0, 0xe0(%rsp)
movl $0x0, 0xe4(%rsp)
movq %rbx, 0xf0(%rsp)
movq 0x128(%rsp), %rax
movq (%rax), %r14
cmpq %r14, 0x8(%rax)
je 0x1e90d
xorl %ebx, %ebx
imulq $0x58, %rbx, %r15
movl (%r14,%r15), %eax
movl %eax, 0x70(%rsp)
leaq 0x88(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x8(%r14,%r15), %rsi
movq 0x10(%r14,%r15), %rdx
addq %rsi, %rdx
movq %rbp, %rdi
callq 0x1123c
addq %r15, %r14
leaq 0x28(%r14), %rsi
leaq 0x98(%rsp), %rdi
callq 0x28582
movq 0x50(%r14), %rax
movq %rax, 0x48(%rbp)
movups 0x40(%r14), %xmm0
movups %xmm0, 0x38(%rbp)
movzbl 0xbc(%rsp), %eax
cmpq %rax, 0xf8(%rsp)
jne 0x1e8ae
movq 0x120(%rsp), %rax
movq 0x168(%rax), %rax
movslq (%rax,%rbx,4), %r14
cmpq $-0x8, %r14
jl 0x1e8ae
movq %r14, %rdx
shlq $0x5, %rdx
addq 0x98(%rsp), %rdx
movq 0xe8(%rsp), %rdi
movq %rbp, %rsi
callq 0x287e6
addl %eax, %eax
testb $0x1, 0x4c(%rsp)
je 0x1e45c
incl 0xd8(%rsp)
addl %eax, 0xe0(%rsp)
jmp 0x1e46a
incl 0xdc(%rsp)
addl %eax, 0xe4(%rsp)
cmpl $0x0, 0x2e0(%rsp)
jne 0x1e8ae
movq 0x98(%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, 0xb1(%rsp)
movl $0xd1b71759, %ebp       # imm = 0xD1B71759
jne 0x1e4f5
movq 0x98(%rsp), %rdx
addq $0x20, %rdx
leaq 0x28(%rsp), %rdi
leaq 0x1312e(%rip), %rsi     # 0x315f3
callq 0xce20
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
leaq 0x8(%rsp), %rdi
callq 0x50f0
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x1e4f5
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5340
movq %r12, 0x28(%rsp)
leaq 0x28(%rsp), %rdi
leaq 0x130ec(%rip), %rdx     # 0x315f2
movq %rdx, %rsi
callq 0xc3da
leaq 0x1337c(%rip), %rsi     # 0x31891
cmpl $0x1, %r14d
je 0x1e527
testl %r14d, %r14d
jne 0x1e531
leaq 0x13366(%rip), %rsi     # 0x3188d
leaq 0x28(%rsp), %rdi
callq 0x5630
movl 0x70(%rsp), %r15d
incl %r15d
movl %r15d, %r14d
negl %r14d
cmovsl %r15d, %r14d
movl $0x1, %r12d
cmpl $0xa, %r14d
jb 0x1e591
movl $0x4, %r12d
movl %r14d, %eax
cmpl $0x63, %eax
jbe 0x1e588
cmpl $0x3e7, %eax            # imm = 0x3E7
jbe 0x1e58e
cmpl $0x2710, %eax           # imm = 0x2710
jb 0x1e591
movl %eax, %ecx
imulq %rbp, %rcx
shrq $0x2d, %rcx
addl $0x4, %r12d
cmpl $0x1869f, %eax          # imm = 0x1869F
movl %ecx, %eax
ja 0x1e558
addl $-0x3, %r12d
jmp 0x1e591
addl $-0x2, %r12d
jmp 0x1e591
decl %r12d
movq %r13, %rbp
shrl $0x1f, %r15d
leal (%r12,%r15), %esi
leaq 0x1c0(%rsp), %rax
movq %rax, 0x1b0(%rsp)
leaq 0x1b0(%rsp), %r13
movq %r13, %rdi
movl $0x2d, %edx
callq 0x53b0
movl %r15d, %edi
addq 0x1b0(%rsp), %rdi
movl %r12d, %esi
movl %r14d, %edx
callq 0xe33a
movq %r13, %rdi
movq %rbp, %r13
movq %rbp, %rsi
callq 0x5630
leaq 0x140(%rsp), %rsi
movq %rsi, 0x130(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
leaq 0x38(%rsp), %r12
leaq 0x18(%rsp), %r14
leaq 0x78(%rsp), %rbp
je 0x1e628
movq %rdx, 0x130(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x140(%rsp)
jmp 0x1e62e
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)
movq 0x78(%rsp), %rsi
movq 0x80(%rsp), %rdx
leaq 0x130(%rsp), %rdi
callq 0x50f0
leaq 0x160(%rsp), %rsi
movq %rsi, 0x150(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1e697
movq %rdx, 0x150(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x160(%rsp)
jmp 0x1e69d
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)
leaq 0x150(%rsp), %rdi
movq %r13, %rsi
callq 0x5630
leaq 0x180(%rsp), %rsi
movq %rsi, 0x170(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1e6fc
movq %rdx, 0x170(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x180(%rsp)
jmp 0x1e702
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x178(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x170(%rsp), %rdi
callq 0x50f0
leaq 0x60(%rsp), %rsi
movq %rsi, 0x50(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1e75c
movq %rdx, 0x50(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x60(%rsp)
jmp 0x1e762
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x58(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x170(%rsp), %rdi
leaq 0x180(%rsp), %rax
cmpq %rax, %rdi
je 0x1e79f
movq 0x180(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x150(%rsp), %rdi
leaq 0x160(%rsp), %rax
cmpq %rax, %rdi
je 0x1e7c4
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x130(%rsp), %rdi
leaq 0x140(%rsp), %rax
cmpq %rax, %rdi
je 0x1e7e9
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x1b0(%rsp), %rdi
leaq 0x1c0(%rsp), %rax
cmpq %rax, %rdi
je 0x1e80e
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
movq 0xf0(%rsp), %rdi
callq 0x50f0
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq 0xc8(%rsp), %rdi
callq 0x50f0
movq 0xf0(%rsp), %rdi
leaq 0x13040(%rip), %rsi     # 0x3188b
callq 0x5630
movq 0xc8(%rsp), %rdi
leaq 0x1302c(%rip), %rsi     # 0x3188b
callq 0x5630
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x1e880
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x1e897
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x1e8ae
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5340
leaq 0x98(%rsp), %rdi
callq 0xe71c
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x1e8dd
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x5340
incq %rbx
movq 0x128(%rsp), %rax
movq (%rax), %r14
movq 0x8(%rax), %rax
subq %r14, %rax
sarq $0x3, %rax
movabsq $0x2e8ba2e8ba2e8ba3, %rcx # imm = 0x2E8BA2E8BA2E8BA3
imulq %rcx, %rax
cmpq %rbx, %rax
ja 0x1e39e
cmpl $0x0, 0x2e0(%rsp)
je 0x1e954
movl $0x1, %eax
movq %rax, 0xf8(%rsp)
leaq 0x210(%rsp), %rax
movq %rax, 0xc8(%rsp)
leaq 0x250(%rsp), %rbx
testb $0x1, 0x4c(%rsp)
movl $0x0, 0x4c(%rsp)
jne 0x1e37f
jmp 0x1ea29
movq 0xf0(%rsp), %rbx
movq 0x8(%rbx), %rcx
decq %rcx
leaq 0x70(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x5360
movq %rbx, %rdi
movq %r15, %rsi
callq 0x53e0
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rbx
cmpq %rbx, %rdi
movq 0xc8(%rsp), %r14
je 0x1e9aa
movq 0x80(%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 0x70(%rsp), %rdi
cmpq %rbx, %rdi
je 0x1e9e3
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x5340
movl $0x1, %eax
movq %rax, 0xf8(%rsp)
leaq 0x210(%rsp), %rax
movq %rax, 0xc8(%rsp)
leaq 0x250(%rsp), %rbx
testb $0x1, 0x4c(%rsp)
movl $0x0, 0x4c(%rsp)
jne 0x1e37f
cmpl $0x0, 0x2e0(%rsp)
je 0x1ec09
movslq 0xd4(%rsp), %r14
movslq 0x2d8(%rsp), %rbx
movq 0xe8(%rsp), %r13
movq 0x180(%r13), %rax
movq (%rax,%r14,8), %rcx
movslq 0x2e0(%rsp), %rax
movq (%rcx,%rax,8), %rdx
movq (%rdx), %rcx
movq 0x8(%rdx), %rdx
subq %rcx, %rdx
sarq $0x2, %rdx
cmpq %rbx, %rdx
jbe 0x1f05b
movl 0xd8(%rsp), %edx
addl %edx, (%rcx,%rbx,4)
movq 0x188(%r13), %rcx
movq (%rcx,%r14,8), %rcx
movq (%rcx,%rax,8), %rdx
movq (%rdx), %rcx
movq 0x8(%rdx), %rdx
subq %rcx, %rdx
sarq $0x2, %rdx
cmpq %rbx, %rdx
jbe 0x1f05b
movl 0xdc(%rsp), %edx
addl %edx, (%rcx,%rbx,4)
movq 0x190(%r13), %rcx
movq (%rcx,%r14,8), %rcx
movq (%rcx,%rax,8), %rdx
movq (%rdx), %rcx
movq 0x8(%rdx), %rdx
subq %rcx, %rdx
sarq $0x2, %rdx
cmpq %rbx, %rdx
jbe 0x1f05b
movl 0xe0(%rsp), %edx
addl %edx, (%rcx,%rbx,4)
movq 0x198(%r13), %rcx
movq (%rcx,%r14,8), %rcx
movq (%rcx,%rax,8), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
cmpq %rbx, %rdx
jbe 0x1f05b
movl 0xe4(%rsp), %ecx
addl %ecx, (%rax,%rbx,4)
movq $-0x40, %rbx
leaq 0x220(%rsp), %r14
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0x1eb2c
movq (%r14), %rsi
incq %rsi
callq 0x5340
addq $-0x20, %r14
addq $0x20, %rbx
jne 0x1eb18
movq $-0x40, %rbx
leaq 0x260(%rsp), %r14
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0x1eb59
movq (%r14), %rsi
incq %rsi
callq 0x5340
addq $-0x20, %r14
addq $0x20, %rbx
jne 0x1eb45
movq 0x100(%rsp), %rdi
leaq 0x110(%rsp), %rax
cmpq %rax, %rdi
je 0x1eb88
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x278(%rsp), %rdi
leaq 0x288(%rsp), %rax
cmpq %rax, %rdi
leaq 0x1a0(%rsp), %rbx
je 0x1ebb5
movq 0x288(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x1d0(%rsp), %rdi
leaq 0x1e0(%rsp), %rax
cmpq %rax, %rdi
je 0x1ebda
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x190(%rsp), %rdi
cmpq %rbx, %rdi
je 0x1ebf7
movq 0x1a0(%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 0x129e1(%rip), %rsi     # 0x315f1
leaq 0x28(%rsp), %rdi
leaq 0x230(%rsp), %rdx
callq 0xce20
leaq 0x129c8(%rip), %rsi     # 0x315f1
leaq 0x28(%rsp), %rdi
callq 0x5630
leaq 0x18(%rsp), %rbx
leaq 0x80(%rsp), %r14
movq %rbx, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1ec63
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x1ec69
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0xe8(%rsp), %r13
movq 0x8(%rax), %rdx
leaq 0x8(%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, 0x70(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1ecc8
movq %rdx, 0x70(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x80(%rsp)
jmp 0x1eccf
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, 0x78(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x70(%rsp), %rsi
movq 0x78(%rsp), %rdx
leaq 0x100(%rsp), %rdi
callq 0x50f0
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
je 0x1ed18
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x8(%rsp), %rdi
cmpq %rbx, %rdi
je 0x1ed2f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x1ed46
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5340
leaq 0x128a4(%rip), %rsi     # 0x315f1
leaq 0x28(%rsp), %rdi
leaq 0x1f0(%rsp), %rdx
callq 0xce20
leaq 0x1288b(%rip), %rsi     # 0x315f1
leaq 0x28(%rsp), %rdi
callq 0x5630
movq %rbx, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1ed93
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x1ed99
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
leaq 0x8(%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, 0x70(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1edf0
movq %rdx, 0x70(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x80(%rsp)
jmp 0x1edf7
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, 0x78(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x70(%rsp), %rsi
movq 0x78(%rsp), %rdx
leaq 0x100(%rsp), %rdi
callq 0x50f0
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
je 0x1ee40
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x8(%rsp), %rdi
cmpq %rbx, %rdi
je 0x1ee57
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x1ee6e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x120(%rsp), %rax
movl 0x158(%rax), %ebx
movl %ebx, %ebp
negl %ebp
cmovsl %ebx, %ebp
movl $0x1, %r14d
cmpl $0xa, %ebp
jb 0x1eed7
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %ebp, %ecx
cmpl $0x63, %ecx
jbe 0x1eece
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x1eed4
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x1eed7
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x1ee9b
addl $-0x3, %r14d
jmp 0x1eed7
addl $-0x2, %r14d
jmp 0x1eed7
decl %r14d
shrl $0x1f, %ebx
leal (%r14,%rbx), %esi
leaq 0x28(%rsp), %rdi
movq %r12, (%rdi)
movl $0x2d, %edx
callq 0x53b0
leaq 0x28(%rsp), %r15
addq (%r15), %rbx
movq %rbx, %rdi
movl %r14d, %esi
movl %ebp, %edx
callq 0xe33a
leaq 0x126e5(%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
movl 0xd4(%rsp), %ebx
je 0x1ef4d
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x1ef54
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 0x110f5(%rip), %rsi     # 0x3006c
callq 0x5630
leaq 0x80(%rsp), %rsi
movq %rsi, 0x70(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1efaa
movq %rdx, 0x70(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x80(%rsp)
jmp 0x1efb0
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x78(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x70(%rsp), %rsi
movq 0x78(%rsp), %rdx
leaq 0x100(%rsp), %rdi
callq 0x50f0
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x1f001
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x1f018
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x1f02f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x178(%r13), %rax
movslq %ebx, %r14
movq (%rax,%r14,8), %rax
movslq 0x2d8(%rsp), %rbx
movq (%rax,%rbx,8), %rdi
leaq 0x100(%rsp), %rsi
callq 0x10c62
jmp 0x1ea41
leaq 0x12a92(%rip), %rdi     # 0x31af4
movq %rbx, %rsi
xorl %eax, %eax
callq 0x5490
movq %rax, %rbx
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
jne 0x1f0a4
jmp 0x1f0b9
jmp 0x1f0b6
jmp 0x1f0d7
jmp 0x1f37e
jmp 0x1f097
jmp 0x1f0b6
jmp 0x1f0d7
jmp 0x1f37e
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
je 0x1f0b9
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x1f0b9
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1f0da
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x1f0da
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x1f381
movq 0x38(%rsp), %rsi
jmp 0x1f374
jmp 0x1f37e
movq %rax, %rbx
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x1f126
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x1f126
movq %rax, %rbx
movq 0x230(%rsp), %rdi
cmpq %r12, %rdi
je 0x1f148
movq 0x240(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x1f148
movq %rax, %rbx
movq 0x1f0(%rsp), %rdi
cmpq %r14, %rdi
je 0x1f16a
movq 0x200(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x1f16a
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1f18a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x1f18a
movq %rax, %rbx
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x1f1ab
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x1f1ab
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x1f400
movq 0x38(%rsp), %rsi
jmp 0x1f3f8
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
jne 0x1f1be
jmp 0x1f400
movq %rax, %rbx
jmp 0x1f42d
movq %rax, %rbx
jmp 0x1f452
movq %rax, %rbx
jmp 0x1f400
jmp 0x1f37e
jmp 0x1f37e
jmp 0x1f37e
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x1f254
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x1f254
jmp 0x1f251
movq %rax, %rbx
jmp 0x1f2f0
movq %rax, %rbx
movq 0x170(%rsp), %rdi
leaq 0x180(%rsp), %rax
cmpq %rax, %rdi
je 0x1f261
movq 0x180(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x1f261
movq %rax, %rbx
leaq 0x18(%rsp), %r14
jmp 0x1f334
movq %rax, %rbx
movq 0x150(%rsp), %rdi
leaq 0x160(%rsp), %rax
cmpq %rax, %rdi
je 0x1f286
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x5340
leaq 0x38(%rsp), %r12
leaq 0x18(%rsp), %r14
jmp 0x1f295
movq %rax, %rbx
movq 0x130(%rsp), %rdi
leaq 0x140(%rsp), %rax
cmpq %rax, %rdi
je 0x1f2c9
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x1f2c9
movq %rax, %rbx
leaq 0x38(%rsp), %r12
leaq 0x18(%rsp), %r14
movq 0x1b0(%rsp), %rdi
leaq 0x1c0(%rsp), %rax
cmpq %rax, %rdi
je 0x1f31d
movq 0x1c0(%rsp), %rsi
jmp 0x1f315
movq %rax, %rbx
leaq 0x38(%rsp), %r12
leaq 0x18(%rsp), %r14
jmp 0x1f31d
jmp 0x1f2f9
movq %rax, %rbx
jmp 0x1f34b
movq %rax, %rbx
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x1f31d
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x1f334
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x1f34b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5340
leaq 0x70(%rsp), %rdi
callq 0x286da
jmp 0x1f381
movq %rax, %rbx
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x1f381
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x5340
jmp 0x1f381
movq %rax, %rbx
movq $-0x40, %r14
leaq 0x220(%rsp), %r15
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x1f3a4
movq (%r15), %rsi
incq %rsi
callq 0x5340
addq $-0x20, %r15
addq $0x20, %r14
jne 0x1f390
movq $-0x40, %r14
leaq 0x260(%rsp), %r15
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0x1f3d1
movq (%r15), %rsi
incq %rsi
callq 0x5340
addq $-0x20, %r15
addq $0x20, %r14
jne 0x1f3bd
movq 0x100(%rsp), %rdi
leaq 0x110(%rsp), %rax
cmpq %rax, %rdi
je 0x1f400
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x5340
leaq 0x1a0(%rsp), %r14
movq 0x278(%rsp), %rdi
leaq 0x288(%rsp), %rax
cmpq %rax, %rdi
je 0x1f42d
movq 0x288(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x1d0(%rsp), %rdi
leaq 0x1e0(%rsp), %rax
cmpq %rax, %rdi
je 0x1f452
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x5340
movq 0x190(%rsp), %rdi
cmpq %r14, %rdi
je 0x1f46f
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x5340
movq %rbx, %rdi
callq 0x55c0