// File: 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
movq %rsp, %rbp
subq $0x5e0, %rsp            # imm = 0x5E0
movl 0x20(%rbp), %eax
movl 0x18(%rbp), %eax
movl 0x10(%rbp), %eax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movl %r9d, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x500(%rbp)
movl $0x0, -0x2c(%rbp)
movl $0x0, -0x30(%rbp)
movb $0x0, -0x31(%rbp)
cmpl $0x0, 0x20(%rbp)
jne 0x2b6e3
movb $0x1, -0x31(%rbp)
movb $0x0, -0x32(%rbp)
movq -0x20(%rbp), %rsi
leaq -0x58(%rbp), %rdi
callq 0x61b0
movq -0x10(%rbp), %rsi
addq $0xd0, %rsi
leaq -0x78(%rbp), %rdi
callq 0x61b0
jmp 0x2b70a
movq -0x10(%rbp), %rsi
addq $0xd0, %rsi
leaq -0xa8(%rbp), %rdi
callq 0x61b0
jmp 0x2b723
movq -0x500(%rbp), %rdi
movl -0x24(%rbp), %eax
movl %eax, -0xac(%rbp)
addq $0xb8, %rdi
leaq 0x10(%rbp), %rsi
callq 0x32770
movq %rax, -0x508(%rbp)
jmp 0x2b74c
movq -0x508(%rbp), %rsi
leaq 0x29e43(%rip), %rdx     # 0x5559d
leaq -0x170(%rbp), %rdi
callq 0xe200
jmp 0x2b768
movl -0xac(%rbp), %esi
incl %esi
leaq -0x190(%rbp), %rdi
callq 0xb190
jmp 0x2b77e
leaq -0x150(%rbp), %rdi
leaq -0x170(%rbp), %rsi
leaq -0x190(%rbp), %rdx
callq 0xde60
jmp 0x2b79a
leaq 0x29dfc(%rip), %rdx     # 0x5559d
leaq -0x130(%rbp), %rdi
leaq -0x150(%rbp), %rsi
callq 0xb0f0
jmp 0x2b7b6
leaq -0x110(%rbp), %rdi
leaq -0x130(%rbp), %rsi
leaq -0x58(%rbp), %rdx
callq 0xe1b0
jmp 0x2b7cf
leaq 0x29dc7(%rip), %rdx     # 0x5559d
leaq -0xf0(%rbp), %rdi
leaq -0x110(%rbp), %rsi
callq 0xb0f0
jmp 0x2b7eb
leaq -0xd0(%rbp), %rdi
leaq -0xf0(%rbp), %rsi
leaq -0x78(%rbp), %rdx
callq 0xe1b0
jmp 0x2b804
leaq -0xf0(%rbp), %rdi
callq 0x6828
leaq -0x110(%rbp), %rdi
callq 0x6828
leaq -0x130(%rbp), %rdi
callq 0x6828
leaq -0x150(%rbp), %rdi
callq 0x6828
leaq -0x190(%rbp), %rdi
callq 0x6828
leaq -0x170(%rbp), %rdi
callq 0x6828
leaq -0x1d0(%rbp), %rax
movq %rax, %rcx
addq $0x40, %rcx
movq %rcx, -0x518(%rbp)
movq %rax, -0x510(%rbp)
movq -0x510(%rbp), %rdi
movq %rdi, -0x520(%rbp)
callq 0x65e0
movq -0x520(%rbp), %rax
movq -0x518(%rbp), %rcx
addq $0x20, %rax
cmpq %rcx, %rax
movq %rax, -0x510(%rbp)
jne 0x2b868
leaq -0x210(%rbp), %rax
movq %rax, %rcx
addq $0x40, %rcx
movq %rcx, -0x530(%rbp)
movq %rax, -0x528(%rbp)
movq -0x528(%rbp), %rdi
movq %rdi, -0x538(%rbp)
callq 0x65e0
movq -0x538(%rbp), %rax
movq -0x530(%rbp), %rcx
addq $0x20, %rax
cmpq %rcx, %rax
movq %rax, -0x528(%rbp)
jne 0x2b8b5
movl $0x0, -0x214(%rbp)
cmpl $0x2, -0x214(%rbp)
jge 0x2bf94
movq -0x10(%rbp), %rdi
addq $0x68, %rdi
movslq -0x214(%rbp), %rax
imulq $0x30, %rax, %rax
addq %rax, %rdi
callq 0x35cc0
movq %rax, -0x220(%rbp)
movq -0x10(%rbp), %rdi
addq $0x68, %rdi
movslq -0x214(%rbp), %rax
imulq $0x30, %rax, %rax
addq %rax, %rdi
callq 0x35d20
movq %rax, -0x228(%rbp)
leaq -0x220(%rbp), %rdi
leaq -0x228(%rbp), %rsi
callq 0x35cf0
testb $0x1, %al
jne 0x2b95d
jmp 0x2be99
leaq -0x220(%rbp), %rdi
callq 0x35d50
movq 0x4(%rax), %rax
movq %rax, -0x230(%rbp)
movl -0x22c(%rbp), %eax
movl %eax, -0x234(%rbp)
cmpl $-0x1, -0x230(%rbp)
jne 0x2ba82
jmp 0x2be77
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x2c492
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x2c489
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x2c47d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x2ba71
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x2ba65
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x2ba59
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x2ba4d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x2ba41
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0xf0(%rbp), %rdi
callq 0x6828
leaq -0x110(%rbp), %rdi
callq 0x6828
leaq -0x130(%rbp), %rdi
callq 0x6828
leaq -0x150(%rbp), %rdi
callq 0x6828
leaq -0x190(%rbp), %rdi
callq 0x6828
leaq -0x170(%rbp), %rdi
callq 0x6828
jmp 0x2c47d
cmpl $-0x1, -0x234(%rbp)
jne 0x2ba90
jmp 0x2be77
movq -0x18(%rbp), %rdi
movslq -0x230(%rbp), %rsi
callq 0x33de0
movq %rax, %rsi
leaq -0x290(%rbp), %rdi
callq 0x340a0
jmp 0x2bab1
testb $0x1, -0x244(%rbp)
jne 0x2bad9
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x2bae2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x2c3dd
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
testb $0x1, -0x31(%rbp)
je 0x2be6b
leaq -0x268(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x9080
movq %rax, %rsi
leaq -0x2b0(%rbp), %rdi
callq 0x61b0
jmp 0x2bb0d
testb $0x1, -0x24f(%rbp)
je 0x2bbae
leaq -0x268(%rbp), %rdi
movl $0x1, %esi
callq 0x9080
movq %rax, %rdx
leaq 0x29a6a(%rip), %rsi     # 0x5559f
leaq -0x2d0(%rbp), %rdi
callq 0x10610
jmp 0x2bb43
leaq -0x2b0(%rbp), %rdi
leaq -0x2d0(%rbp), %rsi
callq 0x6560
jmp 0x2bb58
leaq -0x2d0(%rbp), %rdi
callq 0x6828
jmp 0x2bbae
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x2be88
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x2be5d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0x2d0(%rbp), %rdi
callq 0x6828
jmp 0x2be5d
leaq -0x2f1(%rbp), %rdi
movq %rdi, -0x540(%rbp)
callq 0x6760
movq -0x540(%rbp), %rdx
leaq 0x299cf(%rip), %rsi     # 0x5559e
leaq -0x2f0(%rbp), %rdi
callq 0x9680
jmp 0x2bbdd
leaq -0x2f1(%rbp), %rdi
callq 0x64b0
cmpl $0x0, -0x234(%rbp)
jne 0x2bc3d
leaq 0x29c40(%rip), %rsi     # 0x55839
leaq -0x2f0(%rbp), %rdi
callq 0x6410
jmp 0x2bc07
jmp 0x2bc5f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0x2f1(%rbp), %rdi
callq 0x64b0
jmp 0x2be5d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x2be51
cmpl $0x1, -0x234(%rbp)
jne 0x2bc5d
leaq 0x29bf0(%rip), %rsi     # 0x5583d
leaq -0x2f0(%rbp), %rdi
callq 0x6410
jmp 0x2bc5b
jmp 0x2bc5d
jmp 0x2bc5f
movl -0x290(%rbp), %esi
incl %esi
leaq -0x398(%rbp), %rdi
callq 0xb190
jmp 0x2bc75
leaq 0x298c1(%rip), %rdx     # 0x5553d
leaq -0x378(%rbp), %rdi
leaq -0x398(%rbp), %rsi
callq 0xb0f0
jmp 0x2bc91
leaq -0x288(%rbp), %rdx
leaq -0x358(%rbp), %rdi
leaq -0x378(%rbp), %rsi
callq 0xe1b0
jmp 0x2bcad
leaq 0x29889(%rip), %rdx     # 0x5553d
leaq -0x338(%rbp), %rdi
leaq -0x358(%rbp), %rsi
callq 0xb0f0
jmp 0x2bcc9
leaq -0x318(%rbp), %rdi
leaq -0x338(%rbp), %rsi
leaq -0x2b0(%rbp), %rdx
callq 0xe1b0
jmp 0x2bce5
leaq -0x338(%rbp), %rdi
callq 0x6828
leaq -0x358(%rbp), %rdi
callq 0x6828
leaq -0x378(%rbp), %rdi
callq 0x6828
leaq -0x398(%rbp), %rdi
callq 0x6828
movslq -0x214(%rbp), %rax
shlq $0x5, %rax
leaq -0x1d0(%rbp,%rax), %rdi
leaq -0x318(%rbp), %rsi
callq 0x6560
jmp 0x2bd36
movslq -0x214(%rbp), %rax
shlq $0x5, %rax
leaq -0x210(%rbp,%rax), %rdi
leaq -0x2f0(%rbp), %rsi
callq 0x6560
jmp 0x2bd57
movslq -0x214(%rbp), %rax
shlq $0x5, %rax
leaq -0x1d0(%rbp,%rax), %rdi
leaq 0x29ac6(%rip), %rsi     # 0x55837
callq 0x6410
jmp 0x2bd78
movslq -0x214(%rbp), %rax
shlq $0x5, %rax
leaq -0x210(%rbp,%rax), %rdi
leaq 0x29aa5(%rip), %rsi     # 0x55837
callq 0x6410
jmp 0x2bd99
leaq -0x318(%rbp), %rdi
callq 0x6828
leaq -0x2f0(%rbp), %rdi
callq 0x6828
leaq -0x2b0(%rbp), %rdi
callq 0x6828
jmp 0x2be6b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x2be28
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x2be1c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x2be10
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0x338(%rbp), %rdi
callq 0x6828
leaq -0x358(%rbp), %rdi
callq 0x6828
leaq -0x378(%rbp), %rdi
callq 0x6828
leaq -0x398(%rbp), %rdi
callq 0x6828
jmp 0x2be51
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0x318(%rbp), %rdi
callq 0x6828
leaq -0x2f0(%rbp), %rdi
callq 0x6828
leaq -0x2b0(%rbp), %rdi
callq 0x6828
jmp 0x2be88
leaq -0x290(%rbp), %rdi
callq 0x32c60
leaq -0x220(%rbp), %rdi
callq 0x35d70
jmp 0x2b91f
leaq -0x290(%rbp), %rdi
callq 0x32c60
jmp 0x2c3dd
testb $0x1, -0x31(%rbp)
je 0x2bf7e
movslq -0x214(%rbp), %rax
shlq $0x5, %rax
leaq -0x1d0(%rbp,%rax), %rdi
movq %rdi, -0x548(%rbp)
callq 0x6320
movq -0x548(%rbp), %rsi
movq %rax, %rcx
decq %rcx
xorl %eax, %eax
movl %eax, %edx
leaq -0x3b8(%rbp), %rdi
callq 0x6460
jmp 0x2bee1
movslq -0x214(%rbp), %rax
shlq $0x5, %rax
leaq -0x1d0(%rbp,%rax), %rdi
leaq -0x3b8(%rbp), %rsi
movq %rsi, -0x558(%rbp)
callq 0x6530
movq -0x558(%rbp), %rdi
callq 0x6828
movslq -0x214(%rbp), %rax
shlq $0x5, %rax
leaq -0x210(%rbp,%rax), %rdi
movq %rdi, -0x550(%rbp)
callq 0x6320
movq -0x550(%rbp), %rsi
movq %rax, %rcx
decq %rcx
xorl %eax, %eax
movl %eax, %edx
leaq -0x3d8(%rbp), %rdi
callq 0x6460
jmp 0x2bf51
movslq -0x214(%rbp), %rax
leaq -0x210(%rbp), %rdi
shlq $0x5, %rax
addq %rax, %rdi
leaq -0x3d8(%rbp), %rsi
callq 0x6530
leaq -0x3d8(%rbp), %rdi
callq 0x6828
jmp 0x2bf80
movl -0x214(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x214(%rbp)
jmp 0x2b8f0
testb $0x1, -0x31(%rbp)
je 0x2c280
leaq 0x295f8(%rip), %rsi     # 0x5559d
leaq -0x438(%rbp), %rdi
leaq -0x1d0(%rbp), %rdx
callq 0x10610
jmp 0x2bfba
leaq 0x295dc(%rip), %rdx     # 0x5559d
leaq -0x418(%rbp), %rdi
leaq -0x438(%rbp), %rsi
callq 0xb0f0
jmp 0x2bfd6
leaq -0x1b0(%rbp), %rdx
leaq -0x3f8(%rbp), %rdi
leaq -0x418(%rbp), %rsi
callq 0xe1b0
jmp 0x2bff2
leaq -0xd0(%rbp), %rdi
leaq -0x3f8(%rbp), %rsi
callq 0x6560
jmp 0x2c007
leaq -0x3f8(%rbp), %rdi
callq 0x6828
leaq -0x418(%rbp), %rdi
callq 0x6828
leaq -0x438(%rbp), %rdi
callq 0x6828
leaq 0x2956b(%rip), %rsi     # 0x5559d
leaq -0x498(%rbp), %rdi
leaq -0x210(%rbp), %rdx
callq 0x10610
jmp 0x2c047
leaq 0x2954f(%rip), %rdx     # 0x5559d
leaq -0x478(%rbp), %rdi
leaq -0x498(%rbp), %rsi
callq 0xb0f0
jmp 0x2c063
leaq -0x1f0(%rbp), %rdx
leaq -0x458(%rbp), %rdi
leaq -0x478(%rbp), %rsi
callq 0xe1b0
jmp 0x2c07f
leaq -0xd0(%rbp), %rdi
leaq -0x458(%rbp), %rsi
callq 0x6560
jmp 0x2c094
leaq -0x458(%rbp), %rdi
callq 0x6828
leaq -0x478(%rbp), %rdi
callq 0x6828
leaq -0x498(%rbp), %rdi
callq 0x6828
movq -0x10(%rbp), %rax
movl 0x158(%rax), %esi
leaq -0x4f8(%rbp), %rdi
callq 0xb190
jmp 0x2c0d0
leaq 0x294c6(%rip), %rsi     # 0x5559d
leaq -0x4d8(%rbp), %rdi
leaq -0x4f8(%rbp), %rdx
callq 0xb140
jmp 0x2c0ec
leaq 0x27f99(%rip), %rdx     # 0x5408c
leaq -0x4b8(%rbp), %rdi
leaq -0x4d8(%rbp), %rsi
callq 0xb0f0
jmp 0x2c108
leaq -0xd0(%rbp), %rdi
leaq -0x4b8(%rbp), %rsi
callq 0x6560
jmp 0x2c11d
leaq -0x4b8(%rbp), %rdi
callq 0x6828
leaq -0x4d8(%rbp), %rdi
callq 0x6828
leaq -0x4f8(%rbp), %rdi
callq 0x6828
movq -0x500(%rbp), %rax
movq 0x178(%rax), %rax
movslq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq 0x18(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x17750
jmp 0x2c16d
jmp 0x2c280
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x2c1bb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x2c1af
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0x3f8(%rbp), %rdi
callq 0x6828
leaq -0x418(%rbp), %rdi
callq 0x6828
leaq -0x438(%rbp), %rdi
callq 0x6828
jmp 0x2c3dd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x2c215
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x2c209
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0x458(%rbp), %rdi
callq 0x6828
leaq -0x478(%rbp), %rdi
callq 0x6828
leaq -0x498(%rbp), %rdi
callq 0x6828
jmp 0x2c3dd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x2c26f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0x2c263
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0x4b8(%rbp), %rdi
callq 0x6828
leaq -0x4d8(%rbp), %rdi
callq 0x6828
leaq -0x4f8(%rbp), %rdi
callq 0x6828
jmp 0x2c3dd
movq -0x500(%rbp), %rax
movl -0x2c(%rbp), %ecx
movl %ecx, -0x564(%rbp)
movq 0x180(%rax), %rax
movslq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq 0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movslq 0x18(%rbp), %rsi
callq 0x34130
movq %rax, -0x560(%rbp)
jmp 0x2c2b9
movq -0x500(%rbp), %rax
movq -0x560(%rbp), %rcx
movl -0x564(%rbp), %esi
movl (%rcx), %edx
addl %esi, %edx
movl %edx, (%rcx)
movl -0x30(%rbp), %ecx
movl %ecx, -0x574(%rbp)
movq 0x188(%rax), %rax
movslq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movslq 0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
movslq 0x18(%rbp), %rsi
callq 0x34130
movq %rax, -0x570(%rbp)
jmp 0x2c305
movq -0x570(%rbp), %rax
movl -0x574(%rbp), %ecx
addl (%rax), %ecx
movl %ecx, (%rax)
leaq -0x210(%rbp), %rax
movq %rax, -0x588(%rbp)
addq $0x40, %rax
movq %rax, -0x580(%rbp)
movq -0x580(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x590(%rbp)
callq 0x6828
movq -0x588(%rbp), %rcx
movq -0x590(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x580(%rbp)
jne 0x2c32f
leaq -0x1d0(%rbp), %rax
movq %rax, -0x5a0(%rbp)
addq $0x40, %rax
movq %rax, -0x598(%rbp)
movq -0x598(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x5a8(%rbp)
callq 0x6828
movq -0x5a0(%rbp), %rcx
movq -0x5a8(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x598(%rbp)
jne 0x2c379
leaq -0xd0(%rbp), %rdi
callq 0x6828
leaq -0xa8(%rbp), %rdi
callq 0x6828
leaq -0x78(%rbp), %rdi
callq 0x6828
leaq -0x58(%rbp), %rdi
callq 0x6828
addq $0x5e0, %rsp            # imm = 0x5E0
popq %rbp
retq
leaq -0x210(%rbp), %rax
movq %rax, -0x5b8(%rbp)
addq $0x40, %rax
movq %rax, -0x5b0(%rbp)
movq -0x5b0(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x5c0(%rbp)
callq 0x6828
movq -0x5b8(%rbp), %rcx
movq -0x5c0(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x5b0(%rbp)
jne 0x2c3f6
leaq -0x1d0(%rbp), %rax
movq %rax, -0x5d0(%rbp)
addq $0x40, %rax
movq %rax, -0x5c8(%rbp)
movq -0x5c8(%rbp), %rdi
addq $-0x20, %rdi
movq %rdi, -0x5d8(%rbp)
callq 0x6828
movq -0x5d0(%rbp), %rcx
movq -0x5d8(%rbp), %rax
cmpq %rcx, %rax
movq %rax, -0x5c8(%rbp)
jne 0x2c440
leaq -0xd0(%rbp), %rdi
callq 0x6828
leaq -0xa8(%rbp), %rdi
callq 0x6828
leaq -0x78(%rbp), %rdi
callq 0x6828
leaq -0x58(%rbp), %rdi
callq 0x6828
movq -0x80(%rbp), %rdi
callq 0x6750
nopw %cs:(%rax,%rax)