// File: 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
movq %rsp, %rbp
pushq %rbx
subq $0x158, %rsp            # imm = 0x158
movq 0x20(%rbp), %rax
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movsd %xmm0, -0x28(%rbp)
movq %rcx, -0x30(%rbp)
movq %r8, -0x38(%rbp)
movq %r9, -0x40(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x0, 0x10(%rax)
ja 0x45fe4
jmp 0x47aae
movq $0x2, -0xc0(%rbp)
movq 0x20(%rbp), %rdi
movq 0x18(%rbp), %rdx
xorl %eax, %eax
movl %eax, %esi
movq $-0x1, %r8
xorl %r9d, %r9d
movq %r8, %rcx
movq $0x2, (%rsp)
callq 0xaec0
movq -0x40(%rbp), %rax
movq $0x0, (%rax)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x18(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jae 0x46101
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x8(%rax)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rcx
shrq %rcx
movq 0x10(%rbp), %rax
orq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rcx
shrq $0x2, %rcx
movq 0x10(%rbp), %rax
orq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rcx
shrq $0x4, %rcx
movq 0x10(%rbp), %rax
orq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rcx
shrq $0x8, %rcx
movq 0x10(%rbp), %rax
orq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rcx
shrq $0x10, %rcx
movq 0x10(%rbp), %rax
orq 0x8(%rax), %rcx
movq %rcx, 0x8(%rax)
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x8(%rax)
movq 0x10(%rbp), %rax
movq 0x10(%rax), %rdi
movq 0x10(%rbp), %rax
movq 0x8(%rax), %rsi
shlq $0x3, %rsi
callq 0x2360
movq %rax, %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
jmp 0x46103
movq 0x10(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rdx
shlq $0x3, %rdx
movl $0xff, %esi
callq 0x2100
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rcx
movq 0x10(%rbp), %rax
movq %rcx, (%rax)
movq $0x1, -0x48(%rbp)
movq $0x0, -0x50(%rbp)
movq $0x0, -0x88(%rbp)
movq $0x0, -0x78(%rbp)
movq $0x0, -0x58(%rbp)
movq -0x48(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x220(%rcx), %rax
ja 0x46d3f
movq -0x48(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x220(%rcx), %rax
je 0x461b3
movq -0x10(%rbp), %rax
movq 0x218(%rax), %rax
imulq $0x28, -0x48(%rbp), %rcx
addq %rcx, %rax
movl 0x20(%rax), %eax
movq -0x10(%rbp), %rcx
movq 0x218(%rcx), %rcx
imulq $0x28, -0x50(%rbp), %rdx
addq %rdx, %rcx
cmpl 0x20(%rcx), %eax
je 0x46d2c
jmp 0x461b5
movq -0x58(%rbp), %rcx
movq -0x10(%rbp), %rax
movl 0x10(%rax), %eax
movl %eax, %edx
xorl %eax, %eax
cmpq %rdx, %rcx
movb %al, -0x11a(%rbp)
jae 0x461ff
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x58(%rbp), %rcx
addq %rcx, %rax
movl (%rax), %eax
movq -0x10(%rbp), %rcx
movq 0x218(%rcx), %rcx
imulq $0x28, -0x50(%rbp), %rdx
addq %rdx, %rcx
cmpl 0x20(%rcx), %eax
setne %al
movb %al, -0x11a(%rbp)
movb -0x11a(%rbp), %al
testb $0x1, %al
jne 0x4620b
jmp 0x4621b
jmp 0x4620d
movq -0x58(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x58(%rbp)
jmp 0x461b5
movq -0x58(%rbp), %rcx
movq -0x10(%rbp), %rax
movl 0x10(%rax), %eax
movl %eax, %edx
xorl %eax, %eax
cmpq %rdx, %rcx
movb %al, -0x11b(%rbp)
jae 0x46265
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x58(%rbp), %rcx
addq %rcx, %rax
movl (%rax), %eax
movq -0x10(%rbp), %rcx
movq 0x218(%rcx), %rcx
imulq $0x28, -0x50(%rbp), %rdx
addq %rdx, %rcx
cmpl 0x20(%rcx), %eax
sete %al
movb %al, -0x11b(%rbp)
movb -0x11b(%rbp), %al
testb $0x1, %al
jne 0x46271
jmp 0x46273
jmp 0x46292
leaq 0x33c8a9(%rip), %rdi    # 0x382b23
leaq 0x33c09a(%rip), %rsi    # 0x38231b
movl $0x25bc, %edx           # imm = 0x25BC
leaq 0x33c8d3(%rip), %rcx    # 0x382b60
callq 0x2130
movq -0x50(%rbp), %rax
movq %rax, -0x68(%rbp)
movq $0x0, -0x90(%rbp)
movq -0x68(%rbp), %rax
cmpq -0x48(%rbp), %rax
jae 0x46399
movq -0x10(%rbp), %rax
movq 0x218(%rax), %rax
imulq $0x28, -0x68(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x100(%rbp)
movq -0x100(%rbp), %rax
cmpl $0x2, 0x8(%rax)
jb 0x46374
movq -0x100(%rbp), %rax
cmpl $0x2, 0xc(%rax)
jb 0x46374
cmpq $-0x1, -0x30(%rbp)
je 0x46340
movq -0x100(%rbp), %rax
movl 0x4(%rax), %eax
addq -0x30(%rbp), %rax
movq -0x100(%rbp), %rcx
movl 0x8(%rcx), %ecx
cmpq %rcx, %rax
jb 0x46340
movq -0x100(%rbp), %rcx
movl 0x4(%rcx), %eax
movl 0x8(%rcx), %ecx
cvtsi2sd %rcx, %xmm1
movsd -0x28(%rbp), %xmm3
cvtsi2sd %rax, %xmm2
movaps %xmm1, %xmm0
mulsd %xmm3, %xmm0
addsd %xmm2, %xmm0
ucomisd %xmm1, %xmm0
jae 0x46374
movq -0x100(%rbp), %rax
movl 0x8(%rax), %eax
leaq 0x37e4a7(%rip), %rcx    # 0x3c47f8
cmpq 0x218(%rcx), %rax
jl 0x46374
movq -0x100(%rbp), %rax
movl 0xc(%rax), %eax
leaq 0x37e48d(%rip), %rcx    # 0x3c47f8
cmpq 0x210(%rcx), %rax
jge 0x46376
jmp 0x46388
movq -0x90(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x90(%rbp)
movq -0x68(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x68(%rbp)
jmp 0x462a5
cmpq $0x0, -0x90(%rbp)
je 0x46d24
movl $0x0, -0xd0(%rbp)
movl $0x0, -0xd4(%rbp)
movl $0x0, -0xd8(%rbp)
movl $0x0, -0xdc(%rbp)
movl $0x0, -0xe0(%rbp)
movl $0xffffffff, -0xe4(%rbp) # imm = 0xFFFFFFFF
movl $0xffffffff, -0xe8(%rbp) # imm = 0xFFFFFFFF
movl $0xffffffff, -0xec(%rbp) # imm = 0xFFFFFFFF
movl $0xffffffff, -0xf0(%rbp) # imm = 0xFFFFFFFF
movq -0x58(%rbp), %rax
movq %rax, -0x60(%rbp)
movq $0x0, -0xa8(%rbp)
movq $0x0, -0x98(%rbp)
movq -0x60(%rbp), %rcx
movq -0x10(%rbp), %rax
movl 0x10(%rax), %eax
movl %eax, %edx
xorl %eax, %eax
cmpq %rdx, %rcx
movb %al, -0x11c(%rbp)
jae 0x46469
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x60(%rbp), %rcx
addq %rcx, %rax
movl (%rax), %eax
movq -0x10(%rbp), %rcx
movq 0x218(%rcx), %rcx
imulq $0x28, -0x50(%rbp), %rdx
addq %rdx, %rcx
cmpl 0x20(%rcx), %eax
sete %al
movb %al, -0x11c(%rbp)
movb -0x11c(%rbp), %al
testb $0x1, %al
jne 0x46478
jmp 0x4663a
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x60(%rbp), %rcx
addq %rcx, %rax
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x60(%rbp), %rcx
addq %rcx, %rax
movzbl 0xc(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0x464f7
movq -0x98(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x98(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
imulq $0x18, -0x60(%rbp), %rdx
addq %rdx, %rcx
movl 0x4(%rcx), %ecx
imulq $0xa8, %rcx, %rcx
addq %rcx, %rax
cmpl $0x0, 0x1c(%rax)
jne 0x464f5
movq -0xa8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xa8(%rbp)
jmp 0x464f7
cmpq $0x0, 0x20(%rbp)
je 0x46627
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x60(%rbp), %rcx
addq %rcx, %rax
movzbl 0xc(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0x46575
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x60(%rbp), %rcx
addq %rcx, %rax
movzbl 0xc(%rax), %eax
sarl $0x2, %eax
cltq
andq $0x3, %rax
cmpq $0x1, %rax
ja 0x46561
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x60(%rbp), %rcx
addq %rcx, %rax
movzbl 0xc(%rax), %eax
sarl $0x4, %eax
cltq
andq $0x3, %rax
cmpq $0x1, %rax
jbe 0x46570
movl -0xd0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xd0(%rbp)
jmp 0x46625
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x60(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %ecx
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x60(%rbp), %rdx
addq %rdx, %rax
movzbl 0x14(%rax), %eax
movl %eax, %edx
leaq 0x37e0ad(%rip), %rax    # 0x3c4650
movzbl (%rax,%rdx), %eax
movl %ecx, -0xf0(%rbp,%rax,4)
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x60(%rbp), %rcx
addq %rcx, %rax
movzbl 0xc(%rax), %eax
sarl $0x2, %eax
cltq
andq $0x3, %rax
cmpq $0x1, %rax
ja 0x465f2
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x60(%rbp), %rcx
addq %rcx, %rax
movzbl 0xc(%rax), %eax
sarl $0x4, %eax
cltq
andq $0x3, %rax
cmpq $0x1, %rax
jbe 0x46623
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x60(%rbp), %rcx
addq %rcx, %rax
movzbl 0x14(%rax), %eax
movl %eax, %ecx
leaq 0x37e042(%rip), %rax    # 0x3c4650
movzbl (%rax,%rcx), %eax
movl -0xe0(%rbp,%rax,4), %ecx
addl $0x1, %ecx
movl %ecx, -0xe0(%rbp,%rax,4)
jmp 0x46625
jmp 0x46627
jmp 0x46629
movq -0x60(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x60(%rbp)
jmp 0x4641f
movq -0x60(%rbp), %rax
cmpq -0x58(%rbp), %rax
jbe 0x46646
jmp 0x46665
leaq 0x33c5af(%rip), %rdi    # 0x382bfc
leaq 0x33bcc7(%rip), %rsi    # 0x38231b
movl $0x25da, %edx           # imm = 0x25DA
leaq 0x33c500(%rip), %rcx    # 0x382b60
callq 0x2130
cmpq $0x0, 0x20(%rbp)
je 0x467be
cmpl $-0x1, -0xf0(%rbp)
je 0x466a7
movl -0xe0(%rbp), %eax
cmpq -0xc0(%rbp), %rax
jae 0x466a7
movq -0x10(%rbp), %rax
movq 0x218(%rax), %rax
movl -0xf0(%rbp), %ecx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0xc(%rax)
cmpl $-0x1, -0xec(%rbp)
je 0x466de
movl -0xdc(%rbp), %eax
cmpq -0xc0(%rbp), %rax
jae 0x466de
movq -0x10(%rbp), %rax
movq 0x218(%rax), %rax
movl -0xec(%rbp), %ecx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0xc(%rax)
cmpl $-0x1, -0xe8(%rbp)
je 0x46715
movl -0xd8(%rbp), %eax
cmpq -0xc0(%rbp), %rax
jae 0x46715
movq -0x10(%rbp), %rax
movq 0x218(%rax), %rax
movl -0xe8(%rbp), %ecx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0xc(%rax)
cmpl $-0x1, -0xe4(%rbp)
je 0x4674c
movl -0xd4(%rbp), %eax
cmpq -0xc0(%rbp), %rax
jae 0x4674c
movq -0x10(%rbp), %rax
movq 0x218(%rax), %rax
movl -0xe4(%rbp), %ecx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0xc(%rax)
movq 0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x218(%rax), %rax
imulq $0x28, -0x50(%rbp), %rcx
addq %rcx, %rax
movl 0x20(%rax), %eax
movl %eax, %esi
movq 0x20(%rbp), %rax
movq 0x10(%rax), %r8
xorl %eax, %eax
movl %eax, %ecx
movl $0x5, %r9d
leaq -0xb0(%rbp), %r10
leaq -0xb8(%rbp), %rax
movq %rcx, %rdx
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x45d00
cmpq $0x1, -0xb0(%rbp)
ja 0x467ad
cmpq $0x1, -0xb8(%rbp)
jbe 0x467bc
movl -0xd0(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xd0(%rbp)
jmp 0x467f0
movl $0xffffffff, -0xd0(%rbp) # imm = 0xFFFFFFFF
movl $0xffffffff, -0xd4(%rbp) # imm = 0xFFFFFFFF
movl $0xffffffff, -0xd8(%rbp) # imm = 0xFFFFFFFF
movl $0xffffffff, -0xdc(%rbp) # imm = 0xFFFFFFFF
movl $0xffffffff, -0xe0(%rbp) # imm = 0xFFFFFFFF
movl -0xd0(%rbp), %eax
cmpq -0xc0(%rbp), %rax
jb 0x46d22
movl -0xe0(%rbp), %eax
cmpq -0xc0(%rbp), %rax
jae 0x46843
movl -0xdc(%rbp), %eax
cmpq -0xc0(%rbp), %rax
jae 0x46843
movl -0xd8(%rbp), %eax
cmpq -0xc0(%rbp), %rax
jae 0x46843
movl -0xd4(%rbp), %eax
cmpq -0xc0(%rbp), %rax
jb 0x46d22
movq -0x50(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x68(%rbp), %rax
cmpq -0x48(%rbp), %rax
jae 0x46af1
movq -0x10(%rbp), %rax
movq 0x218(%rax), %rax
imulq $0x28, -0x68(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x100(%rbp)
movq -0x100(%rbp), %rax
cmpl $0x2, 0x8(%rax)
jb 0x46922
movq -0x100(%rbp), %rax
cmpl $0x2, 0xc(%rax)
jb 0x46922
cmpq $-0x1, -0x30(%rbp)
je 0x468ee
movq -0x100(%rbp), %rax
movl 0x4(%rax), %eax
addq -0x30(%rbp), %rax
movq -0x100(%rbp), %rcx
movl 0x8(%rcx), %ecx
cmpq %rcx, %rax
jb 0x468ee
movq -0x100(%rbp), %rcx
movl 0x4(%rcx), %eax
movl 0x8(%rcx), %ecx
cvtsi2sd %rcx, %xmm1
movsd -0x28(%rbp), %xmm3
cvtsi2sd %rax, %xmm2
movaps %xmm1, %xmm0
mulsd %xmm3, %xmm0
addsd %xmm2, %xmm0
ucomisd %xmm1, %xmm0
jae 0x46922
movq -0x100(%rbp), %rax
movl 0x8(%rax), %eax
leaq 0x37def9(%rip), %rcx    # 0x3c47f8
cmpq 0x218(%rcx), %rax
jl 0x46922
movq -0x100(%rbp), %rax
movl 0xc(%rax), %eax
leaq 0x37dedf(%rip), %rcx    # 0x3c47f8
cmpq 0x210(%rcx), %rax
jge 0x46927
jmp 0x46ae0
movq -0x100(%rbp), %rsi
movq -0x10(%rbp), %rax
movq 0x218(%rax), %rdi
imulq $0x28, -0x78(%rbp), %rax
addq %rax, %rdi
movl $0x28, %edx
callq 0x2180
movq -0x58(%rbp), %rax
movq %rax, -0x70(%rbp)
movq $0x0, -0xa0(%rbp)
movq -0x70(%rbp), %rax
cmpq -0x60(%rbp), %rax
jae 0x46a34
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x70(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
cmpq -0x68(%rbp), %rax
jne 0x46998
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x70(%rbp), %rcx
addq %rcx, %rax
cmpl $-0x1, (%rax)
je 0x469b3
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x70(%rbp), %rcx
addq %rcx, %rax
movzbl 0xc(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0x46a21
movq -0x78(%rbp), %rax
movl %eax, %ecx
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x70(%rbp), %rdx
addq %rdx, %rax
movl %ecx, 0x8(%rax)
movq -0x10(%rbp), %rax
movq 0x218(%rax), %rax
imulq $0x28, -0x68(%rbp), %rcx
addq %rcx, %rax
movl 0x20(%rax), %ecx
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x70(%rbp), %rdx
addq %rdx, %rax
movl %ecx, (%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x70(%rbp), %rcx
addq %rcx, %rax
movzbl 0xc(%rax), %eax
andl $0x1, %eax
cmpl $0x1, %eax
jne 0x46a1f
movq -0xa0(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xa0(%rbp)
jmp 0x46a21
jmp 0x46a23
movq -0x70(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x70(%rbp)
jmp 0x4695e
movq -0x98(%rbp), %rax
addq $0x1, %rax
movl %eax, %ecx
movq -0x10(%rbp), %rax
movq 0x218(%rax), %rax
imulq $0x28, -0x78(%rbp), %rdx
addq %rdx, %rax
movl %ecx, 0x8(%rax)
movq -0xa0(%rbp), %rax
movl %eax, %ecx
movq -0x10(%rbp), %rax
movq 0x218(%rax), %rax
imulq $0x28, -0x78(%rbp), %rdx
addq %rdx, %rax
movl %ecx, 0xc(%rax)
movq -0xa8(%rbp), %rax
addq $0x1, %rax
movl %eax, %ecx
movq -0x10(%rbp), %rax
movq 0x218(%rax), %rax
imulq $0x28, -0x78(%rbp), %rdx
addq %rdx, %rax
movl %ecx, 0x4(%rax)
movq -0x88(%rbp), %rax
movl %eax, %ecx
movq -0x10(%rbp), %rax
movq 0x218(%rax), %rax
imulq $0x28, -0x78(%rbp), %rdx
addq %rdx, %rax
movl %ecx, 0x18(%rax)
movq -0x10(%rbp), %rax
movq 0x218(%rax), %rax
movq -0x78(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x78(%rbp)
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movl $0xffffffff, 0x1c(%rax) # imm = 0xFFFFFFFF
movq -0x68(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x68(%rbp)
jmp 0x46853
movq -0x58(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x70(%rbp), %rax
cmpq -0x60(%rbp), %rax
jae 0x46c0a
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x70(%rbp), %rcx
addq %rcx, %rax
cmpl $-0x1, (%rax)
jne 0x46b66
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x70(%rbp), %rcx
addq %rcx, %rax
movl $0xffffffff, 0x8(%rax)  # imm = 0xFFFFFFFF
movq -0x10(%rbp), %rax
movq 0x218(%rax), %rax
imulq $0x28, -0x50(%rbp), %rcx
addq %rcx, %rax
movl 0x20(%rax), %ecx
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x70(%rbp), %rdx
addq %rdx, %rax
movl %ecx, (%rax)
movq 0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x70(%rbp), %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
movl %eax, %esi
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x70(%rbp), %rcx
addq %rcx, %rax
movl (%rax), %eax
movl %eax, %edx
movq -0x40(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x40(%rbp), %rax
movq (%rax), %r8
movq -0x18(%rbp), %rax
movq (%rax), %rax
movl (%rax), %eax
movl %eax, %r9d
callq 0xa22a0
movq -0x10(%rbp), %rax
movq (%rax), %rcx
imulq $0x18, -0x70(%rbp), %rax
addq %rax, %rcx
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq -0x88(%rbp), %rdx
movq %rdx, %rsi
addq $0x1, %rsi
movq %rsi, -0x88(%rbp)
imulq $0x18, %rdx, %rdx
addq %rdx, %rax
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rax)
movq 0x10(%rcx), %rcx
movq %rcx, 0x10(%rax)
movq -0x70(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x70(%rbp)
jmp 0x46b07
movq -0x10(%rbp), %rax
movq (%rax), %rdi
imulq $0x18, -0x90(%rbp), %rax
addq %rax, %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
imulq $0x18, -0x88(%rbp), %rax
addq %rax, %rsi
callq 0x2e440
movq -0x80(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
cmpq -0x78(%rbp), %rax
jae 0x46c72
movq -0x88(%rbp), %rax
movl %eax, %ecx
movq -0x10(%rbp), %rax
movq 0x218(%rax), %rax
imulq $0x28, -0x70(%rbp), %rdx
addq %rdx, %rax
movl %ecx, 0x14(%rax)
movq -0x70(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x70(%rbp)
jmp 0x46c3b
movq -0x60(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x40(%rbp), %rax
movq (%rax), %rax
movq -0x40(%rbp), %rcx
cmpq 0x8(%rcx), %rax
jne 0x46ceb
movq -0x40(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x46caa
movq -0x40(%rbp), %rax
movq 0x8(%rax), %rax
shlq %rax
movq %rax, -0x128(%rbp)
jmp 0x46cb8
movl $0x2, %eax
movq %rax, -0x128(%rbp)
jmp 0x46cb8
movq -0x128(%rbp), %rcx
movq -0x40(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x40(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x40(%rbp), %rax
movq 0x8(%rax), %rsi
shlq $0x3, %rsi
callq 0x2360
movq %rax, %rcx
movq -0x40(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rax
movq 0x218(%rax), %rax
imulq $0x28, -0x50(%rbp), %rcx
addq %rcx, %rax
movl 0x20(%rax), %eax
movl %eax, %edx
movq -0x40(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x40(%rbp), %rsi
movq (%rsi), %rcx
movq %rcx, %rdi
addq $0x1, %rdi
movq %rdi, (%rsi)
movq %rdx, (%rax,%rcx,8)
jmp 0x46d22
jmp 0x46d24
movq -0x48(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0x46d2e
movq -0x48(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x48(%rbp)
jmp 0x4615b
movq -0x78(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x220(%rax)
movq -0x88(%rbp), %rax
movl %eax, %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x10(%rax)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x220(%rax)
je 0x46d76
movq -0x10(%rbp), %rax
cmpl $0x0, 0x10(%rax)
jne 0x46d7b
jmp 0x47aae
movq 0x10(%rbp), %rax
movq (%rax), %rax
movq -0x18(%rbp), %rcx
cmpq 0x10(%rcx), %rax
jbe 0x473ff
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
movq 0x10(%rbp), %rcx
cmpq (%rcx), %rax
jae 0x46e20
movb $0x0, -0x104(%rbp)
movq 0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
shrq $0x20, %rax
movl %eax, -0x114(%rbp)
movq 0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl %eax, -0x118(%rbp)
movl $0xffffffff, -0x110(%rbp) # imm = 0xFFFFFFFF
movb $0x0, -0x10c(%rbp)
movl $0x1, -0x108(%rbp)
movq -0x10(%rbp), %rdi
leaq -0x118(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0xa0e90
movq -0x48(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x48(%rbp)
jmp 0x46d9c
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
movq -0x10(%rbp), %rax
movl 0x10(%rax), %eax
imulq $0x18, %rax, %rax
addq %rax, %rsi
callq 0x2df30
movq $0x1, -0x48(%rbp)
movq $0x0, -0x50(%rbp)
movq $0x0, -0x58(%rbp)
movq -0x48(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x220(%rcx), %rax
ja 0x473fd
movq -0x48(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x220(%rcx), %rax
je 0x46eb1
movq -0x10(%rbp), %rax
movq 0x218(%rax), %rax
imulq $0x28, -0x48(%rbp), %rcx
addq %rcx, %rax
movl 0x20(%rax), %eax
movq -0x10(%rbp), %rcx
movq 0x218(%rcx), %rcx
imulq $0x28, -0x50(%rbp), %rdx
addq %rdx, %rcx
cmpl 0x20(%rcx), %eax
je 0x473ea
jmp 0x46eb3
movq -0x58(%rbp), %rcx
movq -0x10(%rbp), %rax
movl 0x10(%rax), %eax
movl %eax, %edx
xorl %eax, %eax
cmpq %rdx, %rcx
movb %al, -0x129(%rbp)
jae 0x46efd
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x58(%rbp), %rcx
addq %rcx, %rax
movl (%rax), %eax
movq -0x10(%rbp), %rcx
movq 0x218(%rcx), %rcx
imulq $0x28, -0x50(%rbp), %rdx
addq %rdx, %rcx
cmpl 0x20(%rcx), %eax
setne %al
movb %al, -0x129(%rbp)
movb -0x129(%rbp), %al
testb $0x1, %al
jne 0x46f09
jmp 0x46f19
jmp 0x46f0b
movq -0x58(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x58(%rbp)
jmp 0x46eb3
movq -0x58(%rbp), %rcx
movq -0x10(%rbp), %rax
movl 0x10(%rax), %eax
movl %eax, %edx
xorl %eax, %eax
cmpq %rdx, %rcx
movb %al, -0x12a(%rbp)
jae 0x46f63
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x58(%rbp), %rcx
addq %rcx, %rax
movl (%rax), %eax
movq -0x10(%rbp), %rcx
movq 0x218(%rcx), %rcx
imulq $0x28, -0x50(%rbp), %rdx
addq %rdx, %rcx
cmpl 0x20(%rcx), %eax
sete %al
movb %al, -0x12a(%rbp)
movb -0x12a(%rbp), %al
testb $0x1, %al
jne 0x46f6f
jmp 0x46f71
jmp 0x46f90
leaq 0x33bbab(%rip), %rdi    # 0x382b23
leaq 0x33b39c(%rip), %rsi    # 0x38231b
movl $0x263c, %edx           # imm = 0x263C
leaq 0x33bbd5(%rip), %rcx    # 0x382b60
callq 0x2130
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, -0x90(%rbp)
movb $0x0, -0x119(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x60(%rbp)
movq $0x0, -0xa8(%rbp)
movq $0x0, -0x98(%rbp)
movq -0x60(%rbp), %rcx
movq -0x10(%rbp), %rax
movl 0x10(%rax), %eax
movl %eax, %edx
xorl %eax, %eax
cmpq %rdx, %rcx
movb %al, -0x12b(%rbp)
jae 0x4700b
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x60(%rbp), %rcx
addq %rcx, %rax
movl (%rax), %eax
movq -0x10(%rbp), %rcx
movq 0x218(%rcx), %rcx
imulq $0x28, -0x50(%rbp), %rdx
addq %rdx, %rcx
cmpl 0x20(%rcx), %eax
sete %al
movb %al, -0x12b(%rbp)
movb -0x12b(%rbp), %al
testb $0x1, %al
jne 0x4701a
jmp 0x470e1
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x60(%rbp), %rcx
addq %rcx, %rax
movzbl 0xc(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0x470ce
movq -0x98(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x98(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
imulq $0x18, -0x60(%rbp), %rdx
addq %rdx, %rcx
movl 0x4(%rcx), %ecx
imulq $0xa8, %rcx, %rcx
addq %rcx, %rax
cmpl $0x0, 0x1c(%rax)
jne 0x47086
movq -0xa8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xa8(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x60(%rbp), %rcx
addq %rcx, %rax
cmpl $-0x1, 0x8(%rax)
je 0x470cc
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x60(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movq %rax, -0x90(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x60(%rbp), %rcx
addq %rcx, %rax
movb 0x14(%rax), %al
movb %al, -0x119(%rbp)
jmp 0x470ce
jmp 0x470d0
movq -0x60(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x60(%rbp)
jmp 0x46fc1
movq -0x60(%rbp), %rax
cmpq -0x58(%rbp), %rax
jbe 0x470ed
jmp 0x4710c
leaq 0x33bb08(%rip), %rdi    # 0x382bfc
leaq 0x33b220(%rip), %rsi    # 0x38231b
movl $0x264b, %edx           # imm = 0x264B
leaq 0x33ba59(%rip), %rcx    # 0x382b60
callq 0x2130
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, -0x90(%rbp)
je 0x4711c
jmp 0x4713b
leaq 0x33bae0(%rip), %rdi    # 0x382c03
leaq 0x33b1f1(%rip), %rsi    # 0x38231b
movl $0x264c, %edx           # imm = 0x264C
leaq 0x33ba2a(%rip), %rcx    # 0x382b60
callq 0x2130
movsbl -0x119(%rbp), %eax
cmpl $0x0, %eax
je 0x47149
jmp 0x47168
leaq 0x33bac8(%rip), %rdi    # 0x382c18
leaq 0x33b1c4(%rip), %rsi    # 0x38231b
movl $0x264d, %edx           # imm = 0x264D
leaq 0x33b9fd(%rip), %rcx    # 0x382b60
callq 0x2130
movq -0x58(%rbp), %rax
movq %rax, -0x70(%rbp)
movl $0x1, -0xf4(%rbp)
movq -0x70(%rbp), %rax
cmpq -0x60(%rbp), %rax
jae 0x4729a
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x70(%rbp), %rcx
addq %rcx, %rax
movzbl 0xc(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0x47246
movq -0x10(%rbp), %rax
movq (%rax), %rcx
imulq $0x18, -0x70(%rbp), %rax
addq %rax, %rcx
movb $0x1, %al
cmpl $-0x1, 0x8(%rcx)
movb %al, -0x12c(%rbp)
je 0x471e6
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x70(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
cmpq -0x90(%rbp), %rax
sete %al
movb %al, -0x12c(%rbp)
movb -0x12c(%rbp), %al
testb $0x1, %al
jne 0x471f2
jmp 0x471f4
jmp 0x47213
leaq 0x33ba25(%rip), %rdi    # 0x382c20
leaq 0x33b119(%rip), %rsi    # 0x38231b
movl $0x2652, %edx           # imm = 0x2652
leaq 0x33b952(%rip), %rcx    # 0x382b60
callq 0x2130
movq -0x90(%rbp), %rax
movl %eax, %ecx
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x70(%rbp), %rdx
addq %rdx, %rax
movl %ecx, 0x8(%rax)
movb -0x119(%rbp), %cl
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x70(%rbp), %rdx
addq %rdx, %rax
movb %cl, 0x14(%rax)
movq -0x70(%rbp), %rax
cmpq -0x58(%rbp), %rax
jbe 0x47287
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x70(%rbp), %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
movq -0x70(%rbp), %rdx
subq $0x1, %rdx
imulq $0x18, %rdx, %rdx
addq %rdx, %rcx
cmpl 0x4(%rcx), %eax
ja 0x47287
movl $0x0, -0xf4(%rbp)
jmp 0x47289
movq -0x70(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x70(%rbp)
jmp 0x4717a
cmpl $0x0, -0xf4(%rbp)
jne 0x472c6
movq -0x10(%rbp), %rax
movq (%rax), %rdi
imulq $0x18, -0x58(%rbp), %rax
addq %rax, %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rsi
imulq $0x18, -0x60(%rbp), %rax
addq %rax, %rsi
callq 0x2e440
movq -0x50(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rax
cmpq -0x48(%rbp), %rax
jae 0x473da
movq -0x10(%rbp), %rax
movq 0x218(%rax), %rax
imulq $0x28, -0x68(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x100(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x70(%rbp)
movq $0x0, -0xa0(%rbp)
movq -0x70(%rbp), %rax
cmpq -0x60(%rbp), %rax
jae 0x47368
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x70(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
cmpq -0x68(%rbp), %rax
jne 0x47358
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x70(%rbp), %rcx
addq %rcx, %rax
movzbl 0xc(%rax), %eax
andl $0x1, %eax
cmpl $0x1, %eax
jne 0x47358
movq -0xa0(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xa0(%rbp)
jmp 0x4735a
movq -0x70(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x70(%rbp)
jmp 0x47309
movq -0x98(%rbp), %rax
addq $0x1, %rax
movl %eax, %ecx
movq -0x100(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0xa0(%rbp), %rax
movl %eax, %ecx
movq -0x100(%rbp), %rax
movl %ecx, 0xc(%rax)
movq -0xa8(%rbp), %rax
addq $0x1, %rax
movl %eax, %ecx
movq -0x100(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0x58(%rbp), %rax
movl %eax, %ecx
movq -0x100(%rbp), %rax
movl %ecx, 0x18(%rax)
movq -0x60(%rbp), %rax
movl %eax, %ecx
movq -0x100(%rbp), %rax
movl %ecx, 0x14(%rax)
movq -0x68(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x68(%rbp)
jmp 0x472ce
movq -0x60(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0x473ec
movq -0x48(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x48(%rbp)
jmp 0x46e59
jmp 0x473ff
movq -0x10(%rbp), %rax
movq 0x218(%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x220(%rax), %rsi
movq -0x10(%rbp), %rax
movq (%rax), %rdx
movq -0x38(%rbp), %rcx
movq -0x40(%rbp), %r8
leaq 0x37d3cd(%rip), %rax    # 0x3c47f8
movslq 0xd4(%rax), %r9
leaq 0x37d3bf(%rip), %rax    # 0x3c47f8
movslq 0xd0(%rax), %rbx
leaq 0x37d3b1(%rip), %rax    # 0x3c47f8
movslq 0x1bc(%rax), %r11
movq 0x10(%rbp), %r10
movq 0x20(%rbp), %rax
movq 0x10(%rax), %rax
movsd 0x33adc6(%rip), %xmm0   # 0x382228
movq %rbx, (%rsp)
movq %r11, 0x8(%rsp)
movq $0x6, 0x10(%rsp)
movq %r10, 0x18(%rsp)
movq %rax, 0x20(%rsp)
callq 0x44f70
movq $0x1, -0x48(%rbp)
movq $0x0, -0x50(%rbp)
movq $0x0, -0x88(%rbp)
movq $0x0, -0x78(%rbp)
movq $0x0, -0x58(%rbp)
movq -0x48(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x220(%rcx), %rax
ja 0x47a8f
movq -0x48(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x220(%rcx), %rax
je 0x47506
movq -0x10(%rbp), %rax
movq 0x218(%rax), %rax
imulq $0x28, -0x48(%rbp), %rcx
addq %rcx, %rax
movl 0x20(%rax), %eax
movq -0x10(%rbp), %rcx
movq 0x218(%rcx), %rcx
imulq $0x28, -0x50(%rbp), %rdx
addq %rdx, %rcx
cmpl 0x20(%rcx), %eax
je 0x47a7c
jmp 0x47508
movq -0x58(%rbp), %rcx
movq -0x10(%rbp), %rax
movl 0x10(%rax), %eax
movl %eax, %edx
xorl %eax, %eax
cmpq %rdx, %rcx
movb %al, -0x12d(%rbp)
jae 0x47552
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x58(%rbp), %rcx
addq %rcx, %rax
movl (%rax), %eax
movq -0x10(%rbp), %rcx
movq 0x218(%rcx), %rcx
imulq $0x28, -0x50(%rbp), %rdx
addq %rdx, %rcx
cmpl 0x20(%rcx), %eax
setne %al
movb %al, -0x12d(%rbp)
movb -0x12d(%rbp), %al
testb $0x1, %al
jne 0x4755e
jmp 0x4756e
jmp 0x47560
movq -0x58(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x58(%rbp)
jmp 0x47508
movq -0x58(%rbp), %rcx
movq -0x10(%rbp), %rax
movl 0x10(%rax), %eax
movl %eax, %edx
xorl %eax, %eax
cmpq %rdx, %rcx
movb %al, -0x12e(%rbp)
jae 0x475b8
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x58(%rbp), %rcx
addq %rcx, %rax
movl (%rax), %eax
movq -0x10(%rbp), %rcx
movq 0x218(%rcx), %rcx
imulq $0x28, -0x50(%rbp), %rdx
addq %rdx, %rcx
cmpl 0x20(%rcx), %eax
sete %al
movb %al, -0x12e(%rbp)
movb -0x12e(%rbp), %al
testb $0x1, %al
jne 0x475c4
jmp 0x475c6
jmp 0x475e5
leaq 0x33b556(%rip), %rdi    # 0x382b23
leaq 0x33ad47(%rip), %rsi    # 0x38231b
movl $0x267d, %edx           # imm = 0x267D
leaq 0x33b580(%rip), %rcx    # 0x382b60
callq 0x2130
movq -0x50(%rbp), %rax
movq %rax, -0x68(%rbp)
movq $0x0, -0x90(%rbp)
movq -0x68(%rbp), %rax
cmpq -0x48(%rbp), %rax
jae 0x4764b
movq -0x10(%rbp), %rax
movq 0x218(%rax), %rax
imulq $0x28, -0x68(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x100(%rbp)
movq -0x100(%rbp), %rax
cmpl $-0x1, 0x1c(%rax)
jne 0x4762b
jmp 0x4763d
movq -0x90(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x90(%rbp)
movq -0x68(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x68(%rbp)
jmp 0x475f8
cmpq $0x0, -0x90(%rbp)
je 0x47a74
movq -0x58(%rbp), %rax
movq %rax, -0x60(%rbp)
movq $0x0, -0xa8(%rbp)
movq $0x0, -0x98(%rbp)
movq -0x60(%rbp), %rcx
movq -0x10(%rbp), %rax
movl 0x10(%rax), %eax
movl %eax, %edx
xorl %eax, %eax
cmpq %rdx, %rcx
movb %al, -0x12f(%rbp)
jae 0x476c1
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x60(%rbp), %rcx
addq %rcx, %rax
movl (%rax), %eax
movq -0x10(%rbp), %rcx
movq 0x218(%rcx), %rcx
imulq $0x28, -0x50(%rbp), %rdx
addq %rdx, %rcx
cmpl 0x20(%rcx), %eax
sete %al
movb %al, -0x12f(%rbp)
movb -0x12f(%rbp), %al
testb $0x1, %al
jne 0x476d0
jmp 0x47762
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x60(%rbp), %rcx
addq %rcx, %rax
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x60(%rbp), %rcx
addq %rcx, %rax
movzbl 0xc(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0x4774f
movq -0x98(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x98(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq -0x10(%rbp), %rcx
movq (%rcx), %rcx
imulq $0x18, -0x60(%rbp), %rdx
addq %rdx, %rcx
movl 0x4(%rcx), %ecx
imulq $0xa8, %rcx, %rcx
addq %rcx, %rax
cmpl $0x0, 0x1c(%rax)
jne 0x4774d
movq -0xa8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xa8(%rbp)
jmp 0x4774f
jmp 0x47751
movq -0x60(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x60(%rbp)
jmp 0x47677
movq -0x60(%rbp), %rax
cmpq -0x58(%rbp), %rax
jbe 0x4776e
jmp 0x4778d
leaq 0x33b487(%rip), %rdi    # 0x382bfc
leaq 0x33ab9f(%rip), %rsi    # 0x38231b
movl $0x268c, %edx           # imm = 0x268C
leaq 0x33b3d8(%rip), %rcx    # 0x382b60
callq 0x2130
movq -0x50(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x68(%rbp), %rax
cmpq -0x48(%rbp), %rax
jae 0x479a1
movq -0x10(%rbp), %rax
movq 0x218(%rax), %rax
imulq $0x28, -0x68(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x100(%rbp)
movq -0x100(%rbp), %rax
cmpl $-0x1, 0x1c(%rax)
jne 0x477d7
jmp 0x47990
movq -0x100(%rbp), %rsi
movq -0x10(%rbp), %rax
movq 0x218(%rax), %rdi
imulq $0x28, -0x78(%rbp), %rax
addq %rax, %rdi
movl $0x28, %edx
callq 0x2180
movq -0x58(%rbp), %rax
movq %rax, -0x70(%rbp)
movq $0x0, -0xa0(%rbp)
movq -0x70(%rbp), %rax
cmpq -0x60(%rbp), %rax
jae 0x478e4
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x70(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
cmpq -0x68(%rbp), %rax
jne 0x47848
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x70(%rbp), %rcx
addq %rcx, %rax
cmpl $-0x1, (%rax)
je 0x47863
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x70(%rbp), %rcx
addq %rcx, %rax
movzbl 0xc(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0x478d1
movq -0x78(%rbp), %rax
movl %eax, %ecx
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x70(%rbp), %rdx
addq %rdx, %rax
movl %ecx, 0x8(%rax)
movq -0x10(%rbp), %rax
movq 0x218(%rax), %rax
imulq $0x28, -0x68(%rbp), %rcx
addq %rcx, %rax
movl 0x20(%rax), %ecx
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x70(%rbp), %rdx
addq %rdx, %rax
movl %ecx, (%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x70(%rbp), %rcx
addq %rcx, %rax
movzbl 0xc(%rax), %eax
andl $0x1, %eax
cmpl $0x1, %eax
jne 0x478cf
movq -0xa0(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xa0(%rbp)
jmp 0x478d1
jmp 0x478d3
movq -0x70(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x70(%rbp)
jmp 0x4780e
movq -0x98(%rbp), %rax
addq $0x1, %rax
movl %eax, %ecx
movq -0x10(%rbp), %rax
movq 0x218(%rax), %rax
imulq $0x28, -0x78(%rbp), %rdx
addq %rdx, %rax
movl %ecx, 0x8(%rax)
movq -0xa0(%rbp), %rax
movl %eax, %ecx
movq -0x10(%rbp), %rax
movq 0x218(%rax), %rax
imulq $0x28, -0x78(%rbp), %rdx
addq %rdx, %rax
movl %ecx, 0xc(%rax)
movq -0xa8(%rbp), %rax
addq $0x1, %rax
movl %eax, %ecx
movq -0x10(%rbp), %rax
movq 0x218(%rax), %rax
imulq $0x28, -0x78(%rbp), %rdx
addq %rdx, %rax
movl %ecx, 0x4(%rax)
movq -0x88(%rbp), %rax
movl %eax, %ecx
movq -0x10(%rbp), %rax
movq 0x218(%rax), %rax
imulq $0x28, -0x78(%rbp), %rdx
addq %rdx, %rax
movl %ecx, 0x18(%rax)
movq -0x10(%rbp), %rax
movq 0x218(%rax), %rax
movq -0x78(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x78(%rbp)
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movl $0xffffffff, 0x1c(%rax) # imm = 0xFFFFFFFF
movq -0x68(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x68(%rbp)
jmp 0x4779d
movq -0x58(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x70(%rbp), %rax
cmpq -0x60(%rbp), %rax
jae 0x47a2d
movq -0x10(%rbp), %rax
movq (%rax), %rax
imulq $0x18, -0x70(%rbp), %rcx
addq %rcx, %rax
cmpl $-0x1, (%rax)
jne 0x479d7
jmp 0x47a1f
movq -0x10(%rbp), %rax
movq (%rax), %rcx
imulq $0x18, -0x70(%rbp), %rax
addq %rax, %rcx
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq -0x88(%rbp), %rdx
movq %rdx, %rsi
addq $0x1, %rsi
movq %rsi, -0x88(%rbp)
imulq $0x18, %rdx, %rdx
addq %rdx, %rax
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rax)
movq 0x10(%rcx), %rcx
movq %rcx, 0x10(%rax)
movq -0x70(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x70(%rbp)
jmp 0x479b7
movq -0x80(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
cmpq -0x78(%rbp), %rax
jae 0x47a6c
movq -0x88(%rbp), %rax
movl %eax, %ecx
movq -0x10(%rbp), %rax
movq 0x218(%rax), %rax
imulq $0x28, -0x70(%rbp), %rdx
addq %rdx, %rax
movl %ecx, 0x14(%rax)
movq -0x70(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x70(%rbp)
jmp 0x47a35
movq -0x60(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x50(%rbp)
jmp 0x47a7e
movq -0x48(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x48(%rbp)
jmp 0x474ae
movq -0x78(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x220(%rax)
movq -0x88(%rbp), %rax
movl %eax, %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x10(%rax)
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %rbp
retq
nopl (%rax,%rax)