// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/Correct.cpp
// Function: gen_rphase_dp(haplotype_evdience_alloc*, overlap_region_alloc*, UC_Read*, double, unsigned long, Chain_Data*, asg64_v*, asg64_v*, unsigned long, asg8_v*)
void gen_rphase_dp(haplotype_evdience_alloc* hl, overlap_region_alloc* ol, UC_Read* g_read, double st_rate, uint64_t st_max, Chain_Data *dp, asg64_v *idx, asg64_v *res, uint64_t rid, asg8_v *qv)
{
    if(hl->length <= 0) return;

    uint64_t k, l, i, i0, o, ii, m_snp_stat, m_snp_stat0, m_list /**m_off**/, m1, c0, c1, rev_n, tqual, wqual, hq_cut = 2; uint32_t hq[5], hp[4], is_st; SnpStats *s; haplotype_evdience ev; char mc;
    retrive_bqual(qv, NULL, rid, -1, -1, 0, sc_bn);

    idx->n = 0; 
    kv_resize(uint64_t, *res, ol->length); memset(res->a, -1, sizeof((*(res->a)))*ol->length); res->n = ol->length;
    for (k = 1, l = 0, i = m_snp_stat = m_list = 0; k <= hl->snp_stat.n; ++k) {///filter snps
        if(k == hl->snp_stat.n || hl->snp_stat.a[k].site != hl->snp_stat.a[l].site) {
            for (; i < hl->length && hl->list[i].site != hl->snp_stat.a[l].site; i++);
            assert(i < hl->length && hl->list[i].site == hl->snp_stat.a[l].site);
            for (o = l, m1 = 0; o < k; o++) {
                s = &(hl->snp_stat.a[o]);
                // fprintf(stderr, "+[M::%s]\tsite::%u\tn0::%u\tn1::%u\n", __func__, s->site, s->occ_0, s->occ_1);
                if((s->occ_0 < 2 || s->occ_1 < 2) || (is_st_bs((*s), st_rate, st_max)) || (!(s->occ_0 >= asm_opt.s_hap_cov && s->occ_1 >= asm_opt.infor_cov))) {
                    continue;
                }
                // fprintf(stderr, "-[M::%s]\tsite::%u\tn0::%u\tn1::%u\n", __func__, s->site, s->occ_0, s->occ_1);
                m1++;
            }

            if(m1) {
                hq[0] = hq[1] = hq[2] = hq[3] = hq[4] = 0; hp[0] = hp[1] = hp[2] = hp[3] = ((uint32_t)-1); 
                for (i0 = i, c0 = rev_n = 0; i0 < hl->length && hl->list[i0].site == hl->snp_stat.a[l].site; i0++) {
                    hl->list[i0].site = ((uint32_t)-1);
                    if(hh_tp(hl->list[i0]) == 0) {
                        c0 += 1/**hl->list[i0].cov**/;
                        if((ol->list[hl->list[i0].overlapID].y_pos_strand == 0)) rev_n += 1/**hl->list[i0].cov**/;
                    }
                    if(qv) {
                        if(hh_tp(hl->list[i0]) == 0) {
                            if((hh_bq(hl->list[i0]) > 1) || (hh_wq(hl->list[i0]) > 1)) hq[4]++;
                        } else {
                            hp[seq_nt6_table[(uint8_t)(hl->list[i0].misBase)]] = hl->list[i0].overlapSite;
                            if((hh_bq(hl->list[i0]) > 1) || (hh_wq(hl->list[i0]) > 1)) {
                                hq[seq_nt6_table[(uint8_t)(hl->list[i0].misBase)]]++;
                            }
                        }
                    }
                }
                assert(i0 > i);
                if(qv) {
                    if(hp[0] != ((uint32_t)-1) && hq[0] < hq_cut) {
                        // fprintf(stderr, "-[M::%s]\tsite::%u\tn0::%u\tn1::%u\n", __func__, hl->snp_stat.a[hp[0]].site, hl->snp_stat.a[hp[0]].occ_0, hl->snp_stat.a[hp[0]].occ_1);
                        hl->snp_stat.a[hp[0]].occ_1 = 0;
                    }

                    if(hp[1] != ((uint32_t)-1) && hq[1] < hq_cut) {
                        // fprintf(stderr, "-[M::%s]\tsite::%u\tn0::%u\tn1::%u\n", __func__, hl->snp_stat.a[hp[1]].site, hl->snp_stat.a[hp[1]].occ_0, hl->snp_stat.a[hp[1]].occ_1);
                        hl->snp_stat.a[hp[1]].occ_1 = 0;
                    }

                    if(hp[2] != ((uint32_t)-1) && hq[2] < hq_cut) {
                        // fprintf(stderr, "-[M::%s]\tsite::%u\tn0::%u\tn1::%u\n", __func__, hl->snp_stat.a[hp[2]].site, hl->snp_stat.a[hp[2]].occ_0, hl->snp_stat.a[hp[2]].occ_1);
                        hl->snp_stat.a[hp[2]].occ_1 = 0;
                    }

                    if(hp[3] != ((uint32_t)-1) && hq[3] < hq_cut) {
                        // fprintf(stderr, "-[M::%s]\tsite::%u\tn0::%u\tn1::%u\n", __func__, hl->snp_stat.a[hp[3]].site, hl->snp_stat.a[hp[3]].occ_0, hl->snp_stat.a[hp[3]].occ_1);
                        hl->snp_stat.a[hp[3]].occ_1 = 0;
                    }

                    get_wqual(rid, hl->snp_stat.a[l].site, 0, NULL, qv->a, sc_wn, &tqual, &wqual);
                    if(tqual > 1 || wqual > 1) hq[4]++;
                    // if(hq[4] == 0) {
                    //     fprintf(stderr, "+[M::%s]\tsite::%u\tn0::%u\tn1::%u\n", __func__, hl->snp_stat.a[l].site, hl->snp_stat.a[l].occ_0, hl->snp_stat.a[l].occ_1);
                    // }
                } else {
                    hq[0] = hq[1] = hq[2] = hq[3] = hq[4] = ((uint32_t)-1);
                }

                if((hq[4] >= hq_cut) && (hq[0] >= hq_cut || hq[1] >= hq_cut || hq[2] >= hq_cut || hq[3] >= hq_cut)) {
                    for (o = l, m_snp_stat0 = m_snp_stat; o < k; o++) {
                        s = &(hl->snp_stat.a[o]);
                        if((s->occ_0 < 2 || s->occ_1 < 2) || (is_st_bs((*s), st_rate, st_max)) || (!(s->occ_0 >= asm_opt.s_hap_cov && s->occ_1 >= asm_opt.infor_cov))) {
                            continue;
                        }
                        
                        hl->snp_stat.a[m_snp_stat] = *s; 
                        for (ii = i, c1 = 0; ii < i0; ii++) {
                            if(((hl->list[ii].overlapSite == o) && (hl->list[ii].site == ((uint32_t)-1))) || (hh_tp(hl->list[ii]) == 0)) {
                                hl->list[ii].overlapSite = m_snp_stat;
                                hl->list[ii].site = hl->snp_stat.a[o].site;
                                if(hh_tp(hl->list[ii]) == 1) c1 += 1/**hl->list[ii].cov**/;///not correct if we don't do read correction
                            }
                        }
                        // fprintf(stderr, "-0-[M::%s]\tsite::%u\tc0::%lu\tc1::%lu\n", __func__, s->site, c0, c1);
                        hl->snp_stat.a[m_snp_stat].occ_0 = c0 + 1;
                        hl->snp_stat.a[m_snp_stat].occ_1 = c1;
                        hl->snp_stat.a[m_snp_stat].overlap_num = rev_n + 1;
                        hl->snp_stat.a[m_snp_stat].non_homopolymer_num = m_list;
                        hl->snp_stat.a[m_snp_stat++].score = -1;
                    }

                    for (ii = i, m1 = m_list; ii < i0; ii++) {
                        if((hl->list[ii].site == ((uint32_t)-1))) {
                            hl->list[ii].overlapSite = ((uint32_t)-1);
                            hl->list[ii].site = hl->snp_stat.a[l].site;
                        }
                        fill_incom(res, hl->list[ii].overlapID, hl->list[ii].site, idx->a, idx->n, ol->list[0].x_id);
                        hl->list[m_list++] = hl->list[ii];
                    }
                    radix_sort_haplotype_evdience_id_srt(hl->list + m1, hl->list + m_list);
                    for (ii = m_snp_stat0; ii < m_snp_stat; ii++) {
                        hl->snp_stat.a[ii].homopolymer_num = m_list;
                    }
                    
                    i = i0;

                    kv_push(uint64_t, *idx, hl->snp_stat.a[l].site);
                }
            }

            l = k;
        }
    }
    hl->snp_stat.n = m_snp_stat; hl->length = m_list;
    if(hl->snp_stat.n == 0 || hl->length == 0) return;


    ///fill incomplete values
    if(res->n > ol->length) {
        // fprintf(stderr, "\n[M::%s]\tin_comp::%lu\n", __func__, ((uint64_t)res->n - ol->length));
        for (k = ol->length; k < res->n; k++) {
            ev.misBase = 0;
            ev.overlapID = res->a[k]>>32;
            ev.site = ((uint32_t)res->a[k]);
            ev.overlapSite = ((uint32_t)-1);
            ev.type = 0;
            ev.cov = 1;
            addHaplotypeEvdience(hl, &ev, NULL);
            // fprintf(stderr, "[M::%s]\toid::%u\tsite::%u\n", __func__, ev.overlapID, ev.site);
        }
        radix_sort_haplotype_evdience_srt(hl->list, hl->list + hl->length);

        for (k = 1, l = 0, i = 0; k <= hl->snp_stat.n; ++k) {
            if(k == hl->snp_stat.n || hl->snp_stat.a[k].site != hl->snp_stat.a[l].site) {
                for (; i < hl->length && hl->list[i].site != hl->snp_stat.a[l].site; i++);
                assert(i < hl->length && hl->list[i].site == hl->snp_stat.a[l].site);
                
                m1 = ((uint32_t)-1); mc = 0;
                for (i0 = i, c0 = rev_n = 0; i0 < hl->length && hl->list[i0].site == hl->snp_stat.a[l].site; i0++) {
                    if(hh_tp(hl->list[i0]) == 0) {
                        c0+=1/**hl->list[i0].cov**/;
                        if((ol->list[hl->list[i0].overlapID].y_pos_strand == 0)) rev_n += 1/**hl->list[i0].cov**/;
                        if(hl->list[i0].overlapSite != ((uint32_t)-1)) {
                            m1 = hl->list[i0].overlapSite; mc = hl->list[i0].misBase;
                        }
                    }
                    // if(hl->snp_stat.a[l].site == 6995) {
                    //     fprintf(stderr, "[M::%s]\tsite::%u\tosite::%u\toid::%u\ttp::%u\n", __func__, hl->list[i0].site, hl->list[i0].overlapSite, hl->list[i0].overlapID, hh_tp(hl->list[i0]));
                    // }
                }
                assert(i0 > i);
                assert(m1 != ((uint32_t)-1));
                assert(mc != 0);

                
                for (ii = i, is_st = 1; ii < i0; ii++) {
                    if(hh_tp(hl->list[ii]) == 0) {
                        assert(hl->list[ii].overlapSite == ((uint32_t)-1) || hl->list[ii].overlapSite == m1);
                        hl->list[ii].overlapSite = m1; hl->list[ii].misBase = mc;
                    }
                    if((ii > i) && (hl->list[ii].overlapID <= hl->list[ii-1].overlapID)) {
                        is_st = 0;
                        // fprintf(stderr, "[M::%s]\tid::[%u,%u]\tsite::[%u,%u]\n", __func__, hl->list[ii].overlapID, hl->list[ii-1].overlapID,  hl->list[ii].overlapSite,  hl->list[ii-1].overlapSite);
                    }
                }
                if(is_st == 0) radix_sort_haplotype_evdience_id_srt(hl->list + i, hl->list + i0);
                // assert(is_st == 1);

                

                for (o = l; o < k; o++) {
                    s = &(hl->snp_stat.a[o]);
                    for (ii = i, c1 = 0; ii < i0; ii++) {
                        if((hl->list[ii].overlapSite == o) && (hh_tp(hl->list[ii]) == 1)) c1 += 1/**hl->list[ii].cov**/;///not correct if we don't do read correction
                    }
                    // fprintf(stderr, "-1-[M::%s]\tsite::%u\tc0::%lu\tc1::%lu\n", __func__, s->site, c0, c1);
                    s->occ_0 = c0 + 1;
                    s->occ_1 = c1;
                    s->overlap_num = rev_n + 1;
                    s->non_homopolymer_num = i;
                    s->homopolymer_num = i0;
                }
                
                i = i0;
                l = k;
            }
        }

    }





    // gen_rphase_dp0_multiple_path(hl->snp_stat.a, hl->snp_stat.n, hl->list, dp, idx, res);
    gen_rphase_dp0_single_path(hl->snp_stat.a, hl->snp_stat.n, hl->list, dp, idx, asm_opt.het_cov, asm_opt.hom_cov, asm_opt.polyploidy, 0.7, 6, res, qv->a);

    for (k = 1, l = 0, i = m_snp_stat = m_list = 0; k <= hl->snp_stat.n; ++k) {///filter snps
        if(k == hl->snp_stat.n || hl->snp_stat.a[k].site != hl->snp_stat.a[l].site) {
            for (; i < hl->length && hl->list[i].site != hl->snp_stat.a[l].site; i++);
            assert(i < hl->length && hl->list[i].site == hl->snp_stat.a[l].site);
            for (o = l, m1 = 0; o < k; o++) {
                s = &(hl->snp_stat.a[o]);
                if(s->score == -1) continue;
                m1++;
            }

            if(m1) {
                for (i0 = i, c0 = rev_n = 0; i0 < hl->length && hl->list[i0].site == hl->snp_stat.a[l].site; i0++) {
                    hl->list[i0].site = ((uint32_t)-1);
                    if(hh_tp(hl->list[i0]) == 0) {
                        c0 += 1/**hl->list[i0].cov**/;
                        if((ol->list[hl->list[i0].overlapID].y_pos_strand == 0)) rev_n += 1/**hl->list[i0].cov**/;
                    }
                }
                assert(i0 > i);

                for (o = l, m_snp_stat0 = m_snp_stat; o < k; o++) {
                    s = &(hl->snp_stat.a[o]);
                    if(s->score == -1) continue;
                    
                    hl->snp_stat.a[m_snp_stat] = *s; 
                    for (ii = i, c1 = 0; ii < i0; ii++) {
                        if(((hl->list[ii].overlapSite == o) && (hl->list[ii].site == ((uint32_t)-1))) || (hh_tp(hl->list[ii]) == 0)) {
                            hl->list[ii].overlapSite = m_snp_stat;
                            hl->list[ii].site = hl->snp_stat.a[o].site;
                            if(hh_tp(hl->list[ii]) == 1) c1 += 1/**hl->list[ii].cov**/;///not correct if we don't do read correction
                        }
                    }

                    // if(hl->snp_stat.a[m_snp_stat].site == 4) {
                    //     fprintf(stderr, "[M::%s] occ_0->%lu, occ_1->%lu, site->%u\n", __func__, c0 + 1, c1, hl->snp_stat.a[m_snp_stat].site);
                    // }
                    
                    hl->snp_stat.a[m_snp_stat].occ_0 = c0 + 1;
                    hl->snp_stat.a[m_snp_stat].occ_1 = c1;
                    hl->snp_stat.a[m_snp_stat].overlap_num = rev_n + 1;
                    hl->snp_stat.a[m_snp_stat].non_homopolymer_num = m_list;
                    hl->snp_stat.a[m_snp_stat++].score = -1;
                }

                for (ii = i, m1 = m_list; ii < i0; ii++) {
                    if((hl->list[ii].site == ((uint32_t)-1))) continue;
                    hl->list[m_list++] = hl->list[ii];
                }
                for (ii = m_snp_stat0; ii < m_snp_stat; ii++) {
                    hl->snp_stat.a[ii].homopolymer_num = m_list;
                }
                
                i = i0;
            }

            l = k;
        }
    }
    hl->snp_stat.n = m_snp_stat; hl->length = m_list;
    
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movsd %xmm0, 0x98(%rsp)
cmpl $0x0, 0x10(%rdi)
je 0x5606c
movq %r9, %r14
movq %rcx, %rbp
movq %rsi, %rbx
movq %rdi, %r13
movq %r8, 0xa0(%rsp)
movq 0x100(%rsp), %rdi
movq 0xf8(%rsp), %rdx
movq 0xf0(%rsp), %r15
subq $0x8, %rsp
movq $0x0, 0x68(%rsp)
xorl %esi, %esi
movq $-0x1, %rcx
movq $-0x1, %r8
xorl %r9d, %r9d
pushq $0x2
callq 0x342bc
movq %r15, %rdx
addq $0x10, %rsp
movq $0x0, (%r14)
movq 0x10(%rbx), %rax
cmpq %rax, 0x8(%r15)
jae 0x55142
decq %rax
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x10, %rcx
orq %rax, %rcx
leaq 0x1(%rcx), %rax
movq %rax, 0x8(%rdx)
movq 0x10(%rdx), %rdi
leaq 0x8(,%rcx,8), %rsi
callq 0x2370
movq 0xf0(%rsp), %rdx
movq %rax, 0x10(%rdx)
movq 0x10(%rdx), %rdi
movq 0x10(%rbx), %rdx
shlq $0x3, %rdx
movl $0xff, %esi
callq 0x20e0
movq 0xf0(%rsp), %r11
movq 0x10(%rbx), %rax
movq %rax, (%r11)
movq 0x220(%r13), %rax
testq %rax, %rax
movq %r13, 0x10(%rsp)
movq %rbx, 0x28(%rsp)
movq %r14, 0x78(%rsp)
je 0x5592c
movl $0x1, %r12d
movq $0x0, 0x60(%rsp)
movq $0x0, 0x58(%rsp)
xorl %r15d, %r15d
xorl %r14d, %r14d
movq %rbp, 0x38(%rsp)
cmpq %rax, %r12
je 0x551cb
movq 0x218(%r13), %rax
leaq (%r12,%r12,4), %rcx
movl 0x20(%rax,%rcx,8), %ecx
leaq (%r14,%r14,4), %rdx
cmpl 0x20(%rax,%rdx,8), %ecx
je 0x55585
movl 0x10(%r13), %ecx
cmpq %rcx, %r15
setb %dl
jae 0x5607e
movq (%r13), %rsi
movq 0x218(%r13), %rax
leaq (%r14,%r14,4), %rdi
movq %rdi, 0x70(%rsp)
movl 0x20(%rax,%rdi,8), %eax
leaq (%r15,%r15,2), %rdi
cmpl %eax, (%rsi,%rdi,8)
je 0x55225
leaq (%rsi,%rdi,8), %rsi
addq $0x18, %rsi
leaq -0x1(%rcx), %rdx
cmpq %r15, %rdx
je 0x5607e
leaq 0x18(%rsi), %rdi
incq %r15
cmpl %eax, (%rsi)
movq %rdi, %rsi
jne 0x55208
cmpq %rcx, %r15
setb %dl
testb %dl, %dl
je 0x5607e
movq (%r13), %rdx
leaq (%r15,%r15,2), %rdi
movq 0x218(%r13), %r10
movq 0x70(%rsp), %rax
movl 0x20(%r10,%rax,8), %esi
cmpl %esi, (%rdx,%rdi,8)
jne 0x5607e
cmpq %r12, %r14
jae 0x55582
leaq 0x2354f9(%rip), %rax    # 0x28a758
movq 0x210(%rax), %r8
movq 0x218(%rax), %r9
movq 0x70(%rsp), %rax
movq %r10, 0x30(%rsp)
leaq (%r10,%rax,8), %r10
addq $0xc, %r10
xorl %r11d, %r11d
movq %r14, %rbx
movq %r12, 0x8(%rsp)
movl -0x4(%r10), %r13d
cmpq $0x2, %r13
jb 0x552cc
movl (%r10), %r12d
cmpq $0x2, %r12
jb 0x552c7
cmpq $-0x1, %rbp
je 0x552b2
movq %rbp, %rax
movl -0x8(%r10), %ebp
addq %rbp, %rax
cmpq %r13, %rax
jae 0x552da
cmpq %r13, %r9
jg 0x552c2
xorl %eax, %eax
cmpq %r12, %r8
setle %al
addq %rax, %r11
movq 0x38(%rsp), %rbp
movq 0x8(%rsp), %r12
incq %rbx
addq $0x28, %r10
cmpq %rbx, %r12
jne 0x5528a
jmp 0x55312
xorps %xmm0, %xmm0
cvtsi2sd %r13, %xmm0
movl %ebp, %eax
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
movapd %xmm0, %xmm2
mulsd 0x98(%rsp), %xmm2
addsd %xmm1, %xmm2
ucomisd %xmm0, %xmm2
setae %al
cmpq %r13, %r9
setg %bpl
orb %al, %bpl
je 0x552b7
jmp 0x552c2
testq %r11, %r11
je 0x55536
xorpd %xmm0, %xmm0
movapd %xmm0, 0x40(%rsp)
movl $0x0, 0x50(%rsp)
pcmpeqd %xmm0, %xmm0
movdqa %xmm0, 0x80(%rsp)
movl $0x1, %eax
movq %rax, 0x20(%rsp)
movq %r15, %rax
movl $0x1, %r8d
movq %r8, 0x18(%rsp)
cmpq %rcx, %r15
movq 0x10(%rsp), %r13
movq 0x28(%rsp), %rbx
movq 0xf0(%rsp), %r11
movq 0x100(%rsp), %r9
jae 0x55444
leaq (%rdx,%rdi,8), %rdx
addq $0x14, %rdx
movq $0x0, 0x18(%rsp)
movq $0x0, 0x20(%rsp)
movq %r15, %r10
cmpl %esi, -0x14(%rdx)
jne 0x55429
movl $0xffffffff, -0x14(%rdx) # imm = 0xFFFFFFFF
movzbl -0x8(%rdx), %edi
testb $0x1, %dil
jne 0x553cb
incq 0x20(%rsp)
movq (%rbx), %rax
movl -0x10(%rdx), %r8d
imulq $0xa8, %r8, %r8
cmpl $0x1, 0x1c(%rax,%r8)
adcq $0x0, 0x18(%rsp)
testq %r9, %r9
je 0x55413
testb $0x1, %dil
jne 0x553e2
testb $0x28, %dil
je 0x55413
incl 0x50(%rsp)
jmp 0x55413
movl -0xc(%rdx), %eax
movzbl (%rdx), %edi
leaq 0x235241(%rip), %r8     # 0x28a630
movzbl (%r8,%rdi), %edi
movl %eax, 0x80(%rsp,%rdi,4)
testb $0x28, -0x8(%rdx)
je 0x55413
movzbl (%rdx), %eax
leaq 0x235225(%rip), %rdi    # 0x28a630
movzbl (%rdi,%rax), %eax
incl 0x40(%rsp,%rax,4)
movq %r10, %rax
incq %rax
addq $0x18, %rdx
movq %rax, %r10
cmpq %rcx, %rax
jb 0x55392
movq 0x20(%rsp), %rax
incl %eax
movq %rax, 0x20(%rsp)
movq 0x18(%rsp), %rax
incl %eax
movq %rax, 0x18(%rsp)
movq %r10, %rax
movq %rax, 0x68(%rsp)
cmpq %r15, %rax
jbe 0x56119
testq %r9, %r9
movq 0x30(%rsp), %rdi
je 0x5554d
movl 0x80(%rsp), %ecx
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmpq %rdx, %rcx
je 0x55484
cmpl $0x1, 0x40(%rsp)
ja 0x55484
leaq (%rcx,%rcx,4), %rax
movl $0x0, 0xc(%rdi,%rax,8)
movl 0x84(%rsp), %ecx
cmpq %rdx, %rcx
je 0x554a3
cmpl $0x1, 0x44(%rsp)
ja 0x554a3
leaq (%rcx,%rcx,4), %rax
movl $0x0, 0xc(%rdi,%rax,8)
movl 0x88(%rsp), %ecx
cmpq %rdx, %rcx
je 0x554c2
cmpl $0x1, 0x48(%rsp)
ja 0x554c2
leaq (%rcx,%rcx,4), %rax
movl $0x0, 0xc(%rdi,%rax,8)
movl 0x8c(%rsp), %ecx
cmpq %rdx, %rcx
je 0x554e1
cmpl $0x1, 0x4c(%rsp)
ja 0x554e1
leaq (%rcx,%rcx,4), %rax
movl $0x0, 0xc(%rdi,%rax,8)
movq 0x10(%r9), %r8
movl $0x5, %r9d
movq 0xf8(%rsp), %rdi
xorl %edx, %edx
xorl %ecx, %ecx
leaq 0xa8(%rsp), %rax
pushq %rax
leaq 0xb8(%rsp), %rax
pushq %rax
callq 0x54e80
addq $0x10, %rsp
cmpq $0x1, 0xb0(%rsp)
movq 0xf0(%rsp), %r11
ja 0x55530
cmpq $0x2, 0xa8(%rsp)
jb 0x5555f
incl 0x50(%rsp)
jmp 0x5555f
movq %r12, %r14
movq 0x10(%rsp), %r13
movq 0x28(%rsp), %rbx
movq 0xf0(%rsp), %r11
jmp 0x55585
pcmpeqd %xmm0, %xmm0
movdqa %xmm0, 0x40(%rsp)
movl $0xffffffff, 0x50(%rsp) # imm = 0xFFFFFFFF
cmpl $0x2, 0x50(%rsp)
jb 0x55582
cmpl $0x1, 0x40(%rsp)
ja 0x5559d
cmpl $0x1, 0x44(%rsp)
ja 0x5559d
cmpl $0x1, 0x48(%rsp)
ja 0x5559d
cmpl $0x2, 0x4c(%rsp)
jae 0x5559d
movq %r12, %r14
incq %r12
movq 0x220(%r13), %rax
cmpq %rax, %r12
jbe 0x551a9
jmp 0x55925
movq 0x58(%rsp), %r10
cmpq %r12, %r14
movq 0x60(%rsp), %rbx
jae 0x55714
leaq (,%r15,8), %rax
leaq (%rax,%rax,2), %rax
movq %rax, 0x30(%rsp)
movq 0x58(%rsp), %r10
movq 0x218(%r13), %rdi
leaq (%r14,%r14,4), %rcx
movl 0x8(%rdi,%rcx,8), %edx
cmpq $0x2, %rdx
jb 0x55708
leaq (%rdi,%rcx,8), %r8
movl 0xc(%r8), %esi
cmpq $0x2, %rsi
jb 0x55708
cmpq $-0x1, %rbp
je 0x55638
movl 0x4(%r8), %r9d
movq %r10, %rax
leaq (%r9,%rbp), %r10
cmpq %rdx, %r10
movq %rax, %r10
jb 0x55638
xorps %xmm0, %xmm0
cvtsi2sd %rdx, %xmm0
movl %r9d, %r9d
xorps %xmm1, %xmm1
cvtsi2sd %r9, %xmm1
movapd %xmm0, %xmm2
mulsd 0x98(%rsp), %xmm2
addsd %xmm1, %xmm2
ucomisd %xmm0, %xmm2
jae 0x55708
leaq 0x235119(%rip), %r9     # 0x28a758
cmpq %rdx, 0x218(%r9)
jg 0x55708
cmpq %rsi, 0x210(%r9)
jg 0x55708
xorl %esi, %esi
leaq (%r10,%r10,4), %rdx
movq 0x20(%r8), %r9
movq %r9, 0x20(%rdi,%rdx,8)
movdqu (%r8), %xmm0
movupd 0x10(%r8), %xmm1
movupd %xmm1, 0x10(%rdi,%rdx,8)
movdqu %xmm0, (%rdi,%rdx,8)
cmpq 0x68(%rsp), %r15
jae 0x556dc
movq (%r13), %rsi
movq 0x30(%rsp), %rax
leaq (%rsi,%rax), %rdi
addq $0xc, %rdi
xorl %esi, %esi
movq %r15, %r8
movl -0x4(%rdi), %r9d
cmpq %r9, %r14
jne 0x556aa
cmpl $-0x1, -0xc(%rdi)
je 0x556af
testb $0x1, (%rdi)
jne 0x556ce
movl %r10d, -0x4(%rdi)
movq 0x218(%r13), %r9
movl 0x20(%r9,%rcx,8), %r9d
movl %r9d, -0xc(%rdi)
movzbl (%rdi), %r9d
andl $0x1, %r9d
addq %r9, %rsi
incq %r8
addq $0x18, %rdi
cmpq 0x68(%rsp), %r8
jb 0x5569b
movq 0x218(%r13), %rcx
movq 0x20(%rsp), %rdi
movl %edi, 0x8(%rcx,%rdx,8)
movl %esi, 0xc(%rcx,%rdx,8)
movq 0x18(%rsp), %rsi
movl %esi, 0x4(%rcx,%rdx,8)
movl %ebx, 0x18(%rcx,%rdx,8)
incq %r10
movl $0xffffffff, 0x1c(%rcx,%rdx,8) # imm = 0xFFFFFFFF
incq %r14
cmpq %r12, %r14
jne 0x555c6
movq %r10, 0x30(%rsp)
cmpq 0x68(%rsp), %r15
movq 0x78(%rsp), %r14
jae 0x55859
movq (%r13), %rax
leaq (%r15,%r15,2), %rsi
leaq (%rax,%rsi,8), %rax
cmpl $-0x1, (%rax)
jne 0x55753
movl $0xffffffff, 0x8(%rax)  # imm = 0xFFFFFFFF
movq 0x218(%r13), %rcx
movq 0x70(%rsp), %rdx
movl 0x20(%rcx,%rdx,8), %ecx
movl %ecx, (%rax)
movl (%rax), %ecx
movl 0x4(%rax), %ebp
movq 0x10(%r11), %rax
movq (%rax,%rbp,8), %rdx
cmpq $-0x1, %rdx
je 0x55824
movq %rcx, 0x18(%rsp)
movq %rsi, 0x20(%rsp)
movq (%r14), %rax
movq 0x10(%r14), %rcx
leaq 0x1(%rax), %rsi
xorl %edi, %edi
movq %rsi, %r8
movq %rdi, %r13
decq %rsi
decq %rdi
cmpq %rdx, -0x10(%rcx,%r8,8)
jne 0x55781
testq %rsi, %rsi
jle 0x560fa
cmpq %rax, %rsi
jge 0x55801
movq %rbp, %r12
shlq $0x20, %r12
leaq (%rcx,%rax,8), %r14
movq 0x8(%r11), %rax
cmpq %rax, (%r11)
jne 0x557e3
leaq (%rax,%rax), %rsi
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rsi
movq %rsi, 0x8(%r11)
movq 0x10(%r11), %rdi
shlq $0x3, %rsi
callq 0x2370
movq 0xf0(%rsp), %r11
movq %rax, 0x10(%r11)
movq (%r14,%r13,8), %rax
orq %r12, %rax
movq (%r11), %rcx
movq 0x10(%r11), %rdx
leaq 0x1(%rcx), %rsi
movq %rsi, (%r11)
movq %rax, (%rdx,%rcx,8)
incq %r13
jne 0x557ad
shlq $0x3, %rbp
addq 0x10(%r11), %rbp
movq 0x10(%rsp), %r13
movq 0x78(%rsp), %r14
movq 0x8(%rsp), %r12
movq 0x20(%rsp), %rsi
movq 0x18(%rsp), %rcx
jmp 0x55828
leaq (%rax,%rbp,8), %rbp
movq %rcx, (%rbp)
movq (%r13), %rax
leaq (%rbx,%rbx,2), %rcx
incq %rbx
movq 0x10(%rax,%rsi,8), %rdx
movq %rdx, 0x10(%rax,%rcx,8)
movdqu (%rax,%rsi,8), %xmm0
movdqu %xmm0, (%rax,%rcx,8)
incq %r15
cmpq 0x68(%rsp), %r15
jb 0x55729
movq (%r13), %rax
movq 0x60(%rsp), %rcx
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,8), %rdi
leaq (%rbx,%rbx,2), %rcx
leaq (%rax,%rcx,8), %rsi
callq 0x46275
movq 0x30(%rsp), %rdi
movq %rdi, %rax
movq 0x58(%rsp), %rdx
subq %rdx, %rax
jbe 0x558a7
movq 0x218(%r13), %rcx
leaq (%rdx,%rdx,4), %rdx
leaq (%rcx,%rdx,8), %rcx
addq $0x14, %rcx
movl %ebx, (%rcx)
addq $0x28, %rcx
decq %rax
jne 0x5589c
movq 0x8(%r14), %rax
cmpq %rax, (%r14)
movq 0x68(%rsp), %r15
jne 0x558df
leaq (%rax,%rax), %rsi
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rsi
movq %rsi, 0x8(%r14)
movq 0x10(%r14), %rdi
shlq $0x3, %rsi
callq 0x2370
movq 0x30(%rsp), %rdi
movq %rax, 0x10(%r14)
movq 0x218(%r13), %rax
movq 0x70(%rsp), %rcx
movl 0x20(%rax,%rcx,8), %eax
movq (%r14), %rcx
movq 0x10(%r14), %rdx
leaq 0x1(%rcx), %rsi
movq %rsi, (%r14)
movq %rax, (%rdx,%rcx,8)
movq %r12, %r14
movq %rdi, 0x58(%rsp)
movq %rbx, 0x60(%rsp)
movq 0x28(%rsp), %rbx
movq 0xf0(%rsp), %r11
movq 0x38(%rsp), %rbp
jmp 0x55585
movq 0x58(%rsp), %rcx
jmp 0x5592e
xorl %ecx, %ecx
movq %rcx, 0x220(%r13)
movq 0x60(%rsp), %rax
movl %eax, 0x10(%r13)
testq %rcx, %rcx
je 0x5606c
testl %eax, %eax
je 0x5606c
movq 0x10(%rbx), %rbx
cmpq %rbx, (%r11)
jbe 0x55ced
cmpq (%r11), %rbx
jae 0x55a06
xorl %ebp, %ebp
movq 0x10(%r11), %rax
movq (%rax,%rbx,8), %r14
movl 0x10(%r13), %eax
leal 0x1(%rax), %ecx
cmpl 0x14(%r13), %ecx
jbe 0x559c1
movl %eax, %ecx
shrl %ecx
orl %eax, %ecx
movl %ecx, %eax
shrl $0x2, %eax
orl %ecx, %eax
movl %eax, %ecx
shrl $0x4, %ecx
orl %eax, %ecx
movl %ecx, %eax
shrl $0x8, %eax
orl %ecx, %eax
movl %eax, %ecx
shrl $0x10, %ecx
orl %eax, %ecx
incl %ecx
movl %ecx, 0x14(%r13)
movq (%r13), %rdi
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rsi
callq 0x2370
movq 0xf0(%rsp), %r11
movq %rax, (%r13)
movq %r14, %rax
shrq $0x20, %rax
movq (%r13), %rcx
movl 0x10(%r13), %edx
leaq (%rdx,%rdx,2), %rdx
movl %r14d, (%rcx,%rdx,8)
movl %eax, 0x4(%rcx,%rdx,8)
movl $0xffffffff, 0x8(%rcx,%rdx,8) # imm = 0xFFFFFFFF
movb %bpl, 0xc(%rcx,%rdx,8)
movl $0x1, 0x10(%rcx,%rdx,8)
movb %bpl, 0x14(%rcx,%rdx,8)
incl 0x10(%r13)
incq %rbx
cmpq (%r11), %rbx
jb 0x55967
movq (%r13), %rdi
movl 0x10(%r13), %eax
leaq (%rax,%rax,2), %rax
leaq (%rdi,%rax,8), %rsi
callq 0x46007
movq 0xf0(%rsp), %r11
movq 0x220(%r13), %rax
testq %rax, %rax
je 0x55ced
movl $0x1, %r12d
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
xorl %r14d, %r14d
xorl %ebp, %ebp
cmpq %rax, %r12
je 0x55a6c
movq 0x218(%r13), %rax
leaq (%r12,%r12,4), %rcx
movl 0x20(%rax,%rcx,8), %ecx
leaq (,%rbp,4), %rdx
addq %rbp, %rdx
cmpl 0x20(%rax,%rdx,8), %ecx
je 0x55cda
movl 0x10(%r13), %r8d
cmpq %r8, %r14
setb %dl
movq 0x28(%rsp), %r11
jae 0x560bc
movq (%r13), %rsi
movq 0x218(%r13), %rax
leaq (,%rbp,4), %rcx
addq %rbp, %rcx
movl 0x20(%rax,%rcx,8), %eax
leaq (%r14,%r14,2), %rdi
cmpl %eax, (%rsi,%rdi,8)
je 0x55acd
leaq (%rsi,%rdi,8), %rsi
addq $0x18, %rsi
leaq -0x1(%r8), %rdx
cmpq %r14, %rdx
je 0x560bc
leaq 0x18(%rsi), %rdi
incq %r14
cmpl %eax, (%rsi)
movq %rdi, %rsi
jne 0x55ab0
cmpq %r8, %r14
setb %dl
testb %dl, %dl
je 0x560bc
movq (%r13), %rax
leaq (%r14,%r14,2), %rsi
movq 0x218(%r13), %rdx
movl 0x20(%rdx,%rcx,8), %r9d
cmpl %r9d, (%rax,%rsi,8)
jne 0x560bc
leaq (%rax,%rsi,8), %rdi
cmpq %r8, %r14
jae 0x55b89
movq %rax, 0x38(%rsp)
xorl %ecx, %ecx
movq %rdi, 0x8(%rsp)
movq %rdi, %r10
xorl %r15d, %r15d
xorl %eax, %eax
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %r14, %r13
cmpl %r9d, (%r10)
jne 0x55b6c
testb $0x1, 0xc(%r10)
jne 0x55b5d
incq %rax
movq (%r11), %r11
movl 0x4(%r10), %ebx
imulq $0xa8, %rbx, %rbx
cmpl $0x1, 0x1c(%r11,%rbx)
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movl 0x8(%r10), %r11d
adcq $0x0, %r15
cmpq %rbx, %r11
je 0x55b58
movb 0x14(%r10), %cl
movq %r11, %rdx
movq 0x28(%rsp), %r11
incq %r13
addq $0x18, %r10
cmpq %r8, %r13
jb 0x55b1c
movq %r8, %r13
movq %rax, %r9
incl %r9d
incl %r15d
movq 0xf0(%rsp), %r11
movq 0x8(%rsp), %rdi
movq 0x38(%rsp), %rax
jmp 0x55ba7
movl $0x1, %r9d
xorl %ecx, %ecx
movq %r14, %r13
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl $0x1, %r15d
movq 0xf0(%rsp), %r11
cmpq %r14, %r13
jbe 0x56138
cmpq %rbx, %rdx
je 0x56176
testb %cl, %cl
je 0x56157
cmpq %r13, %r14
jae 0x55c4c
movq %r9, 0x8(%rsp)
leaq (%rax,%rsi,8), %r8
addq $0x14, %r8
movl $0x1, %esi
movq %r14, %r9
testb $0x1, -0x8(%r8)
jne 0x55bff
movl -0xc(%r8), %r10d
cmpq %rbx, %r10
je 0x55bf8
cmpq %r10, %rdx
jne 0x560db
movl %edx, -0xc(%r8)
movb %cl, (%r8)
cmpq %r14, %r9
jbe 0x55c16
movl -0x10(%r8), %r10d
cmpl -0x28(%r8), %r10d
movl $0x0, %r10d
cmovbel %r10d, %esi
incq %r9
addq $0x18, %r8
cmpq %r13, %r9
jb 0x55bdf
testl %esi, %esi
movq 0x8(%rsp), %r9
jne 0x55c4c
leaq (,%r13,2), %rcx
addq %r13, %rcx
leaq (%rax,%rcx,8), %rsi
callq 0x46275
movq 0x8(%rsp), %r9
movq 0xf0(%rsp), %r11
cmpq %r12, %rbp
jae 0x55ccf
movq 0x10(%rsp), %rax
movq 0x218(%rax), %rax
leaq (,%r14,8), %rcx
leaq (%rcx,%rcx,2), %rcx
xorl %edx, %edx
cmpq %r13, %r14
jae 0x55ca5
movq 0x10(%rsp), %rdx
movq (%rdx), %rdx
leaq (%rdx,%rcx), %rsi
addq $0xc, %rsi
xorl %edx, %edx
movq %r14, %rdi
movl -0x4(%rsi), %r8d
cmpq %r8, %rbp
jne 0x55c99
movzbl (%rsi), %r8d
andl $0x1, %r8d
addq %r8, %rdx
incq %rdi
addq $0x18, %rsi
cmpq %r13, %rdi
jb 0x55c85
leaq (,%rbp,4), %rsi
addq %rbp, %rsi
leaq (%rax,%rsi,8), %rsi
movl %r9d, 0x8(%rsi)
movl %edx, 0xc(%rsi)
movl %r15d, 0x4(%rsi)
movl %r14d, 0x18(%rsi)
movl %r13d, 0x14(%rsi)
incq %rbp
cmpq %r12, %rbp
jne 0x55c69
movq %r12, %rbp
movq %r13, %r14
movq 0x10(%rsp), %r13
incq %r12
movq 0x220(%r13), %rax
cmpq %rax, %r12
jbe 0x55a43
movq 0x218(%r13), %rdi
movq 0x220(%r13), %rsi
movq (%r13), %rdx
leaq 0x234a52(%rip), %rax    # 0x28a758
movslq 0xd4(%rax), %r9
movslq 0xd0(%rax), %r10
movslq 0x1bc(%rax), %rax
subq $0x8, %rsp
movsd 0x1cf779(%rip), %xmm0   # 0x2254a0
movq 0xa8(%rsp), %rcx
movq 0x80(%rsp), %r8
movq 0x108(%rsp), %rbx
pushq 0x10(%rbx)
pushq %r11
pushq $0x6
pushq %rax
pushq %r10
callq 0x5467f
addq $0x30, %rsp
movq 0x220(%r13), %r8
testq %r8, %r8
je 0x5605d
movl $0x1, %ecx
xorl %eax, %eax
xorl %edx, %edx
xorl %esi, %esi
xorl %edi, %edi
cmpq %r8, %rcx
je 0x55d93
movq 0x218(%r13), %r8
leaq (%rcx,%rcx,4), %r9
movl 0x20(%r8,%r9,8), %r9d
leaq (%rdi,%rdi,4), %r10
cmpl 0x20(%r8,%r10,8), %r9d
je 0x56048
movl 0x10(%r13), %r11d
cmpq %r11, %rsi
setb %r10b
jae 0x5609d
movq (%r13), %rbx
movq 0x218(%r13), %r9
leaq (%rdi,%rdi,4), %r8
movl 0x20(%r9,%r8,8), %r9d
leaq (%rsi,%rsi,2), %r14
cmpl %r9d, (%rbx,%r14,8)
je 0x55ded
leaq (%rbx,%r14,8), %rbx
addq $0x18, %rbx
leaq -0x1(%r11), %r10
cmpq %rsi, %r10
je 0x5609d
leaq 0x18(%rbx), %r14
incq %rsi
cmpl %r9d, (%rbx)
movq %r14, %rbx
jne 0x55dce
cmpq %r11, %rsi
setb %r10b
testb %r10b, %r10b
je 0x5609d
movq (%r13), %r14
leaq (%rsi,%rsi,2), %r15
movq 0x218(%r13), %r9
movl 0x20(%r9,%r8,8), %ebx
cmpl %ebx, (%r14,%r15,8)
jne 0x5609d
cmpq %rcx, %rdi
jae 0x56045
leaq (%r9,%r8,8), %r8
addq $0x1c, %r8
xorl %r9d, %r9d
movq %rdi, %r10
xorl %r12d, %r12d
cmpl $-0x1, (%r8)
setne %r12b
addq %r12, %r9
incq %r10
addq $0x28, %r8
cmpq %r10, %rcx
jne 0x55e2b
testq %r9, %r9
je 0x56045
movl $0x1, %r9d
movq %rsi, %r8
movl $0x1, %r10d
cmpq %r11, %rsi
jae 0x55eb4
leaq (%r14,%r15,8), %r14
xorl %r10d, %r10d
xorl %r9d, %r9d
movq %rsi, %r8
cmpl %ebx, (%r14)
jne 0x55eae
movl $0xffffffff, (%r14)     # imm = 0xFFFFFFFF
testb $0x1, 0xc(%r14)
jne 0x55ea2
incq %r9
movq 0x28(%rsp), %r15
movq (%r15), %r15
movl 0x4(%r14), %r12d
imulq $0xa8, %r12, %r12
cmpl $0x1, 0x1c(%r15,%r12)
adcq $0x0, %r10
incq %r8
addq $0x18, %r14
cmpq %r11, %r8
jb 0x55e6f
incl %r9d
incl %r10d
cmpq %rsi, %r8
jbe 0x56195
movq %rdx, %r11
cmpq %rcx, %rdi
jae 0x55fcd
leaq (,%rsi,8), %r11
leaq (%r11,%r11,2), %r11
movq %r11, 0x8(%rsp)
movq %rdx, %r11
movq 0x218(%r13), %r13
leaq (%rdi,%rdi,4), %r15
cmpl $-0x1, 0x1c(%r13,%r15,8)
je 0x55fbc
leaq (,%r15,8), %rbp
addq %r13, %rbp
xorl %r12d, %r12d
leaq (%r11,%r11,4), %r14
movq 0x20(%rbp), %rbx
movq %rbx, 0x20(%r13,%r14,8)
movupd (%rbp), %xmm0
movupd 0x10(%rbp), %xmm1
movupd %xmm1, 0x10(%r13,%r14,8)
movupd %xmm0, (%r13,%r14,8)
cmpq %r8, %rsi
jae 0x55f8e
movq 0x10(%rsp), %rbx
movq (%rbx), %rbx
movq 0x8(%rsp), %r12
leaq (%rbx,%r12), %r13
addq $0xc, %r13
xorl %r12d, %r12d
movq %rsi, %rbp
movl -0x4(%r13), %ebx
cmpq %rbx, %rdi
jne 0x55f57
cmpl $-0x1, -0xc(%r13)
je 0x55f5e
testb $0x1, (%r13)
jne 0x55f82
movl %r11d, -0x4(%r13)
movq 0x10(%rsp), %rbx
movq 0x218(%rbx), %rbx
movl 0x20(%rbx,%r15,8), %ebx
movl %ebx, -0xc(%r13)
movzbl (%r13), %ebx
andl $0x1, %ebx
addq %rbx, %r12
incq %rbp
addq $0x18, %r13
cmpq %r8, %rbp
jb 0x55f47
movq 0x10(%rsp), %r13
movq 0x218(%r13), %rbx
movl %r9d, 0x8(%rbx,%r14,8)
movl %r12d, 0xc(%rbx,%r14,8)
movl %r10d, 0x4(%rbx,%r14,8)
movl %eax, 0x18(%rbx,%r14,8)
incq %r11
movl $0xffffffff, 0x1c(%rbx,%r14,8) # imm = 0xFFFFFFFF
jmp 0x55fc1
movq 0x10(%rsp), %r13
incq %rdi
cmpq %rcx, %rdi
jne 0x55edd
cmpq %r8, %rsi
jae 0x56014
leaq (,%rsi,8), %rdi
leaq (%rdi,%rdi,2), %rdi
movq (%r13), %r9
cmpl $-0x1, (%r9,%rdi)
je 0x56008
leaq (%r9,%rdi), %r10
leaq (%rax,%rax,2), %rbx
incq %rax
movq 0x10(%r10), %r14
movq %r14, 0x10(%r9,%rbx,8)
movupd (%r10), %xmm0
movupd %xmm0, (%r9,%rbx,8)
incq %rsi
addq $0x18, %rdi
cmpq %r8, %rsi
jb 0x55fde
cmpq %r11, %rdx
jae 0x5603a
movq 0x218(%r13), %rsi
leaq (%rdx,%rdx,4), %rdi
leaq (%rsi,%rdi,8), %rsi
addq $0x14, %rsi
movl %eax, (%rsi)
incq %rdx
addq $0x28, %rsi
cmpq %rdx, %r11
jne 0x5602c
movq %rcx, %rdi
movq %r8, %rsi
movq %r11, %rdx
jmp 0x56048
movq %rcx, %rdi
incq %rcx
movq 0x220(%r13), %r8
cmpq %r8, %rcx
jbe 0x55d6f
jmp 0x56061
xorl %edx, %edx
xorl %eax, %eax
movq %rdx, 0x220(%r13)
movl %eax, 0x10(%r13)
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1cfdc6(%rip), %rdi    # 0x225e4b
leaq 0x1cf5b7(%rip), %rsi    # 0x225643
leaq 0x1cfdf5(%rip), %rcx    # 0x225e88
movl $0x25bc, %edx           # imm = 0x25BC
callq 0x2110
leaq 0x1cfda7(%rip), %rdi    # 0x225e4b
leaq 0x1cf598(%rip), %rsi    # 0x225643
leaq 0x1cfdd6(%rip), %rcx    # 0x225e88
movl $0x267d, %edx           # imm = 0x267D
callq 0x2110
leaq 0x1cfd88(%rip), %rdi    # 0x225e4b
leaq 0x1cf579(%rip), %rsi    # 0x225643
leaq 0x1cfdb7(%rip), %rcx    # 0x225e88
movl $0x263c, %edx           # imm = 0x263C
callq 0x2110
leaq 0x1cfe66(%rip), %rdi    # 0x225f48
leaq 0x1cf55a(%rip), %rsi    # 0x225643
leaq 0x1cfd98(%rip), %rcx    # 0x225e88
movl $0x2652, %edx           # imm = 0x2652
callq 0x2110
leaq 0x1d36c2(%rip), %rdi    # 0x2297c3
leaq 0x1cf53b(%rip), %rsi    # 0x225643
leaq 0x1d36bb(%rip), %rcx    # 0x2297ca
movl $0x2589, %edx           # imm = 0x2589
callq 0x2110
leaq 0x1cfe04(%rip), %rdi    # 0x225f24
leaq 0x1cf51c(%rip), %rsi    # 0x225643
leaq 0x1cfd5a(%rip), %rcx    # 0x225e88
movl $0x25da, %edx           # imm = 0x25DA
callq 0x2110
leaq 0x1cfde5(%rip), %rdi    # 0x225f24
leaq 0x1cf4fd(%rip), %rsi    # 0x225643
leaq 0x1cfd3b(%rip), %rcx    # 0x225e88
movl $0x264b, %edx           # imm = 0x264B
callq 0x2110
leaq 0x1cfde2(%rip), %rdi    # 0x225f40
leaq 0x1cf4de(%rip), %rsi    # 0x225643
leaq 0x1cfd1c(%rip), %rcx    # 0x225e88
movl $0x264d, %edx           # imm = 0x264D
callq 0x2110
leaq 0x1cfdae(%rip), %rdi    # 0x225f2b
leaq 0x1cf4bf(%rip), %rsi    # 0x225643
leaq 0x1cfcfd(%rip), %rcx    # 0x225e88
movl $0x264c, %edx           # imm = 0x264C
callq 0x2110
leaq 0x1cfd88(%rip), %rdi    # 0x225f24
leaq 0x1cf4a0(%rip), %rsi    # 0x225643
leaq 0x1cfcde(%rip), %rcx    # 0x225e88
movl $0x268c, %edx           # imm = 0x268C
callq 0x2110