// File: chhylp123[P]hifiasm/ecovlp.cpp
// Function: h_ec_lchain_fast(ha_abuf_s*, unsigned int, UC_Read*, UC_Read*, unsigned long, unsigned long, All_reads*, overlap_region_alloc*, Candidates_list*, bit_extz_t*, asg16_v*, asg64_v*, double, int, kvec_t_u8_warp*, kvec_t_u64_warp*, st_mt_t*, unsigned int*, unsigned int*, unsigned int, unsigned int, long, double, unsigned int, ma_hit_t_alloc*, ma_hit_t_alloc*, double)
overlap_region* h_ec_lchain_fast(ha_abuf_t *ab, uint32_t rid, UC_Read *qu, UC_Read *tu, uint64_t mz_w, uint64_t mz_k, All_reads *rref, overlap_region_alloc *ol, Candidates_list *cl, bit_extz_t *exz, asg16_v *buf, asg64_v *srt_i, double bw_thres, 
								 int apend_be, kvec_t_u8_warp* k_flag, kvec_t_u64_warp* dbg_ct, st_mt_t *sp, uint32_t *high_occ, uint32_t *low_occ, uint32_t is_accurate, uint32_t gen_off, int64_t enable_mcopy, double mcopy_rate, uint32_t mcopy_khit_cut, ma_hit_t_alloc *in0, ma_hit_t_alloc *in1, double sh)
{
    // fprintf(stderr, "-0-[M::%s]\tnew_n::%lu\told_n::%u\n", __func__, ol->length, in0->length + in1->length);
    // fprintf(stderr, "-mm-[M::%s]\tchain_cutoff::%u\n", __func__, chain_cutoff);
    uint64_t on = 0, k, l, i, one = 0, ol0, wl = (asm_opt.is_ont)?(WINDOW_OHC):(WINDOW_HC), m, m0, tid, trev, max_cnt = UINT32_MAX, min_cnt = 0, is_match; ma_hit_t *oa = NULL, *p = NULL; overlap_region *aux_o = NULL, *z = NULL; Window_Pool w; double err = asm_opt.max_ov_diff_ec; tiny_queue_t tq; memset(&tq, 0, sizeof(tiny_queue_t));
    char* rs = qu->seq; uint64_t rl = qu->length; int64_t n, zn, om; uint64_t aq[2], at[2], bq[2], bt[2], ovlp, os, oe;
    int64_t max_skip, max_iter, max_dis, quick_check; double chn_pen_gap, chn_pen_skip; 
	set_lchain_dp_op(is_accurate, mz_k, &max_skip, &max_iter, &max_dis, &chn_pen_gap, &chn_pen_skip, &quick_check);
    init_Window_Pool(&w, rl, wl, (int)(1.0/err));
    
    ///cutoff
    if(high_occ) {
        max_cnt = (*high_occ);
        if(max_cnt < 2) max_cnt = 2;
    }
    if(low_occ) {
        min_cnt = (*low_occ);
        if(min_cnt < 2) min_cnt = 2;
    }
    
    ///memory
    ol->length = 0; on = in0->length + in1->length + 1;
    if(on > ol->size) {
        REALLOC(ol->list, on);
        memset(ol->list+ol->size, 0, sizeof(overlap_region)*(on-ol->size));
        ol->size = on;   
    }
    aux_o = &(ol->list[on-1]); ol->mapped_overlaps_length = 0; on = in0->length + in1->length;
    
    ///overlap idx
    srt_i->n = 0;
    oa = in0->buffer; on = in0->length; m0 = 0;
    for (k = 0; k < on; k++) {
        if(oa[k].el) {
            one++; continue;
        }
        m = oa[k].tn; m <<= 1; m |= ((uint64_t)oa[k].rev); m <<= 32; m |= (k<<1); m |= m0;
        kv_push(uint64_t, *srt_i, m);
    }
    oa = in1->buffer; on = in1->length; m0 = 1;
    for (k = 0; k < on; k++) {
        // if(oa[k].el) continue;
        m = oa[k].tn; m <<= 1; m |= ((uint64_t)oa[k].rev); m <<= 32; m |= (k<<1); m |= m0;
        kv_push(uint64_t, *srt_i, m);
    }
    radix_sort_ec64(srt_i->a, srt_i->a + srt_i->n);

    // get the list of anchors
    get_mz1(rs, rl, mz_w, mz_k, 0, !(asm_opt.flag & HA_F_NO_HPC), ab, ha_flt_tab, NULL/**ha_idx**/, asm_opt.mz_sample_dist, k_flag, dbg_ct, NULL, -1, asm_opt.dp_min_len, -1, sp, asm_opt.mz_rewin, 0, NULL, 0);

    h_ec_lchain_re_gen_srt(ab, ha_idx, ol, cl);

    k = 1; l = 0; i = 0; n = zn = 0;
    while(h_ec_lchain_re_gen_qry(ab, &k, &l, &i, srt_i->a, srt_i->n, &tid, &trev)) {
        
        if(trev) recover_UC_Read_RC(tu, rref, tid);
        else recover_UC_Read(tu, rref, tid);

        ol0 = ol->length; om = 0;
        if(h_ec_lchain_re_chn(ab, l, k, rid, rs, rl, tid, tu->seq, tu->length, trev, mz_w, mz_k, ol, cl, bw_thres, apend_be, max_cnt, min_cnt, gen_off, enable_mcopy, mcopy_rate, mcopy_khit_cut, max_skip, max_iter, max_dis, quick_check, chn_pen_gap, chn_pen_skip, &tq, scb.a, &n, &zn)) {
            assert(ol->length - ol0 == 1);
            ol->list[ol0].y_pos_strand = trev; om = 1; ol->list[ol0].shared_seed = 0; ol->list[ol0].is_match = 0;
            
            assert(((srt_i->a[i]>>33) == ol->list[ol0].y_id) && (((srt_i->a[i]>>32)&1) == ol->list[ol0].y_pos_strand));
            if(srt_i->a[i]&1) {
                p = &(in1->buffer[((uint32_t)srt_i->a[i])>>1]); is_match = 2;
            } else {
                p = &(in0->buffer[((uint32_t)srt_i->a[i])>>1]); is_match = 1;
            }
            ol->list[ol0].strong = p->ml; ol->list[ol0].without_large_indel = p->no_l_indel;

            aq[0] = (uint32_t)p->qns; aq[1] = p->qe; 
            at[0] = p->ts; at[1] = p->te;

            bq[0] = ol->list[ol0].x_pos_s; bq[1] = ol->list[ol0].x_pos_e + 1;
            bt[0] = ol->list[ol0].y_pos_s; bt[1] = ol->list[ol0].y_pos_e + 1;
            
            os = MAX(aq[0], bq[0]); oe = MIN(aq[1], bq[1]);
            ovlp = ((oe>os)? (oe-os):0);
            if(!((ovlp) && (ovlp >= ((aq[1] - aq[0])*sh)) && ((ovlp >= ((bq[1] - bq[0])*sh))))) om = 0;

            os = MAX(at[0], bt[0]); oe = MIN(at[1], bt[1]);
            ovlp = ((oe>os)? (oe-os):0);
            if(!((ovlp) && (ovlp >= ((at[1] - at[0])*sh)) && ((ovlp >= ((bt[1] - bt[0])*sh))))) om = 0;

            if(om) {
                if(exact_ec_check(rs, rl, tu->seq, tu->length, bq[0], bq[1], bt[0], bt[1])) {
                    if(is_match == 2) {
                        ol->list[ol0].strong = 0; ol->list[ol0].without_large_indel = 1;
                    }
                    is_match = 1; ol->list[ol0].shared_seed = 1;
                }
                ol->list[ol0].is_match = is_match;
            } else {///unmatch
                clear_fake_cigar(&(ol->list[ol0].f_cigar));
                clear_window_list_alloc(&(ol->list[ol0].w_list));
                clear_window_list_alloc(&(ol->list[ol0].boundary_cigars));
                ol->length--;
            }
        }

        if(om) {
            srt_i->a[i] >>= 32; srt_i->a[i] <<= 32; srt_i->a[i] |= ((uint64_t)((uint32_t)-1));
        }

        l = k; k++; 
    }

    for (k = m = 0; k < srt_i->n; k++) {
        if(((uint32_t)srt_i->a[k]) == ((uint32_t)-1)) continue;
        srt_i->a[m++] = srt_i->a[k];
    }
    // fprintf(stderr, "[M::%s]\ttot::%lu\tremain::%lu\n", __func__, (uint64_t)srt_i->n, m);
    srt_i->n = m;
    


    oa = in0->buffer; on = in0->length;
    for (k = 0; k < on; k++) {
        if(oa[k].el) {
            z = &(ol->list[ol->length++]);
            z->x_id = rid; z->y_id = oa[k].tn;
            z->x_pos_strand = 0; z->y_pos_strand = oa[k].rev;
            z->x_pos_s = (uint32_t)oa[k].qns;
            z->x_pos_e = oa[k].qe - 1;
            z->y_pos_s = oa[k].ts;
            z->y_pos_e = oa[k].te - 1;

            z->align_length = z->overlapLen = z->x_pos_e + 1 - z->x_pos_s;
            z->non_homopolymer_errors = 0;

            z->is_match = 1; z->shared_seed = 1;
            z->strong = oa[k].ml; z->without_large_indel = oa[k].no_l_indel;

            set_exact_exz(exz, z->x_pos_s, z->x_pos_e + 1, z->y_pos_s, z->y_pos_e + 1); push_alnw(z, exz);

            // if(oa[k].tn == 1945) fprintf(stderr, "-em-[M::%s]\tqn::%u\ttn::%u\terr::%u\n", __func__, rid, oa[k].tn, ol->list[ol->length-1].non_homopolymer_errors);
        }
    }
    /**
    m = ol->length;


    clear_Candidates_list(cl);
    for (k = 0; k < srt_i->n; k++) {
        ol0 = ol->length;
        if(srt_i->a[k]&1) {
            p = &(in1->buffer[((uint32_t)srt_i->a[k])>>1]);
        } else {
            p = &(in0->buffer[((uint32_t)srt_i->a[k])>>1]);
        }
        
        if(p->rev) recover_UC_Read_RC(tu, rref, p->tn);
        else recover_UC_Read(tu, rref, p->tn);

        get_pi_ec_chain(ab, rid, rl, p->tn, tu->seq, tu->length, mz_w, mz_k, ol, cl, bw_thres, apend_be, k_flag, dbg_ct, sp, high_occ, low_occ, gen_off, enable_mcopy, mcopy_rate, mcopy_khit_cut, max_skip, max_iter, max_dis, quick_check, chn_pen_gap, chn_pen_skip);
        assert(ol->length - ol0 <= 1);
        if((ol->length > ol0) && (gen_hc_r_alin_re(&(ol->list[ol0]), cl, rs, rl, tu->seq, tu->length, exz, aux_o, asm_opt.max_ov_diff_ec, w.window_length, rid, E_KHIT, 1, buf))) {
            ol->list[ol0].y_pos_strand = p->rev;
            // if(oa[k].tn == 15382) fprintf(stderr, "-mm-[M::%s]\tqn::%u\ttn::%u\terr::%u\n", __func__, rid, oa[k].tn, ol->list[ol->length-1].non_homopolymer_errors);
        } 

        if((ol->length <= ol0) || (ol->list[ol0].is_match != 1)) continue;

        if(m != ol0) {
            t = ol->list[m];
            ol->list[m] = ol->list[ol0];
            ol->list[ol0] = t;
        }

        m++;
    }
    
    ol->length = m;
    **/
    
    // fprintf(stderr, "[M::%s]\tnew_n::%lu\told_n::%lu\n", __func__, ol->length, m0);
    // fprintf(stderr, "-1-[M::%s]\tnew_n::%lu\told_n::%u\n", __func__, ol->length, in0->length + in1->length);
    assert(ol->length <= (in0->length + in1->length));


    // dbg_overlap_region_cigar(ol->list, ol->length, rs, rref, tu);

    return aux_o;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x448, %rsp            # imm = 0x448
movq 0x98(%rbp), %rax
movq 0x90(%rbp), %rax
movl 0x88(%rbp), %eax
movq 0x80(%rbp), %rax
movl 0x78(%rbp), %eax
movl 0x70(%rbp), %eax
movq 0x68(%rbp), %rax
movq 0x60(%rbp), %rax
movq 0x58(%rbp), %rax
movq 0x50(%rbp), %rax
movq 0x48(%rbp), %rax
movl 0x40(%rbp), %eax
movq 0x38(%rbp), %rax
movq 0x30(%rbp), %rax
movq 0x28(%rbp), %rax
movq 0x20(%rbp), %rax
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movq %rdi, -0x30(%rbp)
movl %esi, -0x34(%rbp)
movq %rdx, -0x40(%rbp)
movq %rcx, -0x48(%rbp)
movq %r8, -0x50(%rbp)
movq %r9, -0x58(%rbp)
movsd %xmm0, -0x60(%rbp)
movsd %xmm1, -0x68(%rbp)
movsd %xmm2, -0x70(%rbp)
movq $0x0, -0x78(%rbp)
movq $0x0, -0x98(%rbp)
leaq 0x163dd4(%rip), %rax    # 0x3c47f8
movq 0x2a8(%rax), %rdx
movl $0x307, %eax            # imm = 0x307
movl $0x177, %ecx            # imm = 0x177
cmpq $0x0, %rdx
cmovnel %ecx, %eax
cltq
movq %rax, -0xa8(%rbp)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, -0xd0(%rbp)
movq $0x0, -0xd8(%rbp)
movq $0x0, -0xe8(%rbp)
movq $0x0, -0xf0(%rbp)
movq $0x0, -0xf8(%rbp)
movq $0x0, -0x100(%rbp)
leaq 0x163d69(%rip), %rax    # 0x3c47f8
movsd 0xc0(%rax), %xmm0
movsd %xmm0, -0x140(%rbp)
leaq -0x248(%rbp), %rdi
xorl %esi, %esi
movl $0x108, %edx            # imm = 0x108
callq 0x2100
movq -0x40(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x250(%rbp)
movq -0x40(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x258(%rbp)
movl 0x70(%rbp), %edi
movq -0x58(%rbp), %rax
movl %eax, %esi
leaq -0x2d0(%rbp), %rdx
leaq -0x2d8(%rbp), %rcx
leaq -0x2e0(%rbp), %r8
leaq -0x2f0(%rbp), %r9
leaq -0x2f8(%rbp), %r10
leaq -0x2e8(%rbp), %rax
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x1aca80
movq -0x258(%rbp), %rsi
movq -0xa8(%rbp), %rdx
movsd 0x1214da(%rip), %xmm0   # 0x382000
divsd -0x140(%rbp), %xmm0
cvttsd2si %xmm0, %eax
movslq %eax, %rcx
leaq -0x138(%rbp), %rdi
callq 0x9f470
cmpq $0x0, 0x60(%rbp)
je 0x260b6c
movq 0x60(%rbp), %rax
movl (%rax), %eax
movq %rax, -0xd0(%rbp)
cmpq $0x2, -0xd0(%rbp)
jae 0x260b6a
movq $0x2, -0xd0(%rbp)
jmp 0x260b6c
cmpq $0x0, 0x68(%rbp)
je 0x260b97
movq 0x68(%rbp), %rax
movl (%rax), %eax
movq %rax, -0xd8(%rbp)
cmpq $0x2, -0xd8(%rbp)
jae 0x260b95
movq $0x2, -0xd8(%rbp)
jmp 0x260b97
movq 0x18(%rbp), %rax
movq $0x0, 0x10(%rax)
movq 0x90(%rbp), %rax
movl 0xc(%rax), %eax
movq 0x98(%rbp), %rcx
addl 0xc(%rcx), %eax
addl $0x1, %eax
movl %eax, %eax
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rax
movq 0x18(%rbp), %rcx
cmpq 0x8(%rcx), %rax
jbe 0x260c28
movq 0x18(%rbp), %rax
movq (%rax), %rdi
imulq $0xa8, -0x78(%rbp), %rsi
callq 0x2360
movq %rax, %rcx
movq 0x18(%rbp), %rax
movq %rcx, (%rax)
movq 0x18(%rbp), %rax
movq (%rax), %rdi
movq 0x18(%rbp), %rax
imulq $0xa8, 0x8(%rax), %rax
addq %rax, %rdi
movq -0x78(%rbp), %rax
movq 0x18(%rbp), %rcx
subq 0x8(%rcx), %rax
imulq $0xa8, %rax, %rdx
xorl %esi, %esi
callq 0x2100
movq -0x78(%rbp), %rcx
movq 0x18(%rbp), %rax
movq %rcx, 0x8(%rax)
movq 0x18(%rbp), %rax
movq (%rax), %rax
movq -0x78(%rbp), %rcx
subq $0x1, %rcx
imulq $0xa8, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xf8(%rbp)
movq 0x18(%rbp), %rax
movq $0x0, 0x18(%rax)
movq 0x90(%rbp), %rax
movl 0xc(%rax), %eax
movq 0x98(%rbp), %rcx
addl 0xc(%rcx), %eax
movl %eax, %eax
movq %rax, -0x78(%rbp)
movq 0x38(%rbp), %rax
movq $0x0, (%rax)
movq 0x90(%rbp), %rax
movq (%rax), %rax
movq %rax, -0xe8(%rbp)
movq 0x90(%rbp), %rax
movl 0xc(%rax), %eax
movq %rax, -0x78(%rbp)
movq $0x0, -0xb8(%rbp)
movq $0x0, -0x80(%rbp)
movq -0x80(%rbp), %rax
cmpq -0x78(%rbp), %rax
jae 0x260e1e
movq -0xe8(%rbp), %rax
imulq $0x28, -0x80(%rbp), %rcx
addq %rcx, %rax
cmpb $0x0, 0x20(%rax)
je 0x260ce5
movq -0x98(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x98(%rbp)
jmp 0x260e0d
movq -0xe8(%rbp), %rax
imulq $0x28, -0x80(%rbp), %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rax
shlq %rax
movq %rax, -0xb0(%rbp)
movq -0xe8(%rbp), %rax
imulq $0x28, -0x80(%rbp), %rcx
addq %rcx, %rax
movq 0x18(%rax), %rax
shrq $0x1f, %rax
andq $0x1, %rax
movl %eax, %eax
orq -0xb0(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rax
shlq $0x20, %rax
movq %rax, -0xb0(%rbp)
movq -0x80(%rbp), %rax
shlq %rax
orq -0xb0(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0xb8(%rbp), %rax
orq -0xb0(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq 0x38(%rbp), %rax
movq (%rax), %rax
movq 0x38(%rbp), %rcx
cmpq 0x8(%rcx), %rax
jne 0x260de7
movq 0x38(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x260da6
movq 0x38(%rbp), %rax
movq 0x8(%rax), %rax
shlq %rax
movq %rax, -0x300(%rbp)
jmp 0x260db4
movl $0x2, %eax
movq %rax, -0x300(%rbp)
jmp 0x260db4
movq -0x300(%rbp), %rcx
movq 0x38(%rbp), %rax
movq %rcx, 0x8(%rax)
movq 0x38(%rbp), %rax
movq 0x10(%rax), %rdi
movq 0x38(%rbp), %rax
movq 0x8(%rax), %rsi
shlq $0x3, %rsi
callq 0x2360
movq %rax, %rcx
movq 0x38(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0xb0(%rbp), %rdx
movq 0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x38(%rbp), %rsi
movq (%rsi), %rcx
movq %rcx, %rdi
addq $0x1, %rdi
movq %rdi, (%rsi)
movq %rdx, (%rax,%rcx,8)
jmp 0x260e0d
movq -0x80(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x80(%rbp)
jmp 0x260cab
movq 0x98(%rbp), %rax
movq (%rax), %rax
movq %rax, -0xe8(%rbp)
movq 0x98(%rbp), %rax
movl 0xc(%rax), %eax
movq %rax, -0x78(%rbp)
movq $0x1, -0xb8(%rbp)
movq $0x0, -0x80(%rbp)
movq -0x80(%rbp), %rax
cmpq -0x78(%rbp), %rax
jae 0x260f97
movq -0xe8(%rbp), %rax
imulq $0x28, -0x80(%rbp), %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rax
shlq %rax
movq %rax, -0xb0(%rbp)
movq -0xe8(%rbp), %rax
imulq $0x28, -0x80(%rbp), %rcx
addq %rcx, %rax
movq 0x18(%rax), %rax
shrq $0x1f, %rax
andq $0x1, %rax
movl %eax, %eax
orq -0xb0(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rax
shlq $0x20, %rax
movq %rax, -0xb0(%rbp)
movq -0x80(%rbp), %rax
shlq %rax
orq -0xb0(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq -0xb8(%rbp), %rax
orq -0xb0(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq 0x38(%rbp), %rax
movq (%rax), %rax
movq 0x38(%rbp), %rcx
cmpq 0x8(%rcx), %rax
jne 0x260f60
movq 0x38(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x260f1f
movq 0x38(%rbp), %rax
movq 0x8(%rax), %rax
shlq %rax
movq %rax, -0x308(%rbp)
jmp 0x260f2d
movl $0x2, %eax
movq %rax, -0x308(%rbp)
jmp 0x260f2d
movq -0x308(%rbp), %rcx
movq 0x38(%rbp), %rax
movq %rcx, 0x8(%rax)
movq 0x38(%rbp), %rax
movq 0x10(%rax), %rdi
movq 0x38(%rbp), %rax
movq 0x8(%rax), %rsi
shlq $0x3, %rsi
callq 0x2360
movq %rax, %rcx
movq 0x38(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0xb0(%rbp), %rdx
movq 0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x38(%rbp), %rsi
movq (%rsi), %rcx
movq %rcx, %rdi
addq $0x1, %rdi
movq %rdi, (%rsi)
movq %rdx, (%rax,%rcx,8)
jmp 0x260f86
movq -0x80(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x80(%rbp)
jmp 0x260e50
movq 0x38(%rbp), %rax
movq 0x10(%rax), %rdi
movq 0x38(%rbp), %rax
movq 0x10(%rax), %rsi
movq 0x38(%rbp), %rax
movq (%rax), %rax
shlq $0x3, %rax
addq %rax, %rsi
callq 0x24aba0
movq -0x250(%rbp), %rdi
movq -0x258(%rbp), %rax
movl %eax, %esi
movq -0x50(%rbp), %rax
movl %eax, %edx
movq -0x58(%rbp), %rax
movl %eax, %ecx
leaq 0x16381b(%rip), %rax    # 0x3c47f8
movl (%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %r9d
movq -0x30(%rbp), %r13
leaq 0x1644d5(%rip), %rax    # 0x3c54d0
movq (%rax), %r12
leaq 0x1637f3(%rip), %rax    # 0x3c47f8
movl 0xa8(%rax), %r15d
movq 0x48(%rbp), %r14
movq 0x50(%rbp), %rbx
leaq 0x1637dd(%rip), %rax    # 0x3c47f8
movl 0x1f8(%rax), %r11d
movq 0x58(%rbp), %r10
leaq 0x1637cb(%rip), %rax    # 0x3c47f8
movl 0xa0(%rax), %eax
movl %eax, -0x30c(%rbp)
xorl %r8d, %r8d
xorl %eax, %eax
movl -0x30c(%rbp), %eax
movss 0x11e024(%rip), %xmm0   # 0x37f070
movq %r13, (%rsp)
movq %r12, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movl %r15d, 0x18(%rsp)
movq %r14, 0x20(%rsp)
movq %rbx, 0x28(%rsp)
movq $0x0, 0x30(%rsp)
movl $0xffffffff, 0x38(%rsp) # imm = 0xFFFFFFFF
movl %r11d, 0x40(%rsp)
movq %r10, 0x48(%rsp)
movl %eax, 0x50(%rsp)
movl $0x0, 0x58(%rsp)
movq $0x0, 0x60(%rsp)
movq $0x0, 0x68(%rsp)
callq 0x1b3940
movq -0x30(%rbp), %rdi
leaq 0x164422(%rip), %rax    # 0x3c54d8
movq (%rax), %rsi
movq 0x18(%rbp), %rdx
movq 0x20(%rbp), %rcx
callq 0x1b2cc0
movq $0x1, -0x80(%rbp)
movq $0x0, -0x88(%rbp)
movq $0x0, -0x90(%rbp)
movq $0x0, -0x268(%rbp)
movq $0x0, -0x260(%rbp)
movq -0x30(%rbp), %rdi
movq 0x38(%rbp), %rax
movq 0x10(%rax), %r8
movq 0x38(%rbp), %rax
movq (%rax), %r9
leaq -0x80(%rbp), %rsi
leaq -0x88(%rbp), %rdx
leaq -0x90(%rbp), %rcx
leaq -0xc0(%rbp), %r10
leaq -0xc8(%rbp), %rax
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x1b3040
cmpq $0x0, %rax
je 0x261b7d
cmpq $0x0, -0xc8(%rbp)
je 0x261165
movq -0x48(%rbp), %rdi
movq 0x10(%rbp), %rsi
movq -0xc0(%rbp), %rdx
callq 0xa500
jmp 0x261179
movq -0x48(%rbp), %rdi
movq 0x10(%rbp), %rsi
movq -0xc0(%rbp), %rdx
callq 0xa380
movq 0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0xa0(%rbp)
movq $0x0, -0x270(%rbp)
movq -0x30(%rbp), %rdi
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
movl -0x34(%rbp), %ecx
movq -0x250(%rbp), %r8
movq -0x258(%rbp), %r9
movq -0xc0(%rbp), %rax
movq %rax, -0x388(%rbp)
movq -0x48(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x380(%rbp)
movq -0x48(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x378(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x370(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x368(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x360(%rbp)
movq 0x18(%rbp), %rax
movq %rax, -0x358(%rbp)
movq 0x20(%rbp), %rax
movq %rax, -0x350(%rbp)
movsd -0x60(%rbp), %xmm0
movl 0x40(%rbp), %eax
movl %eax, -0x344(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0x340(%rbp)
movq -0xd8(%rbp), %rax
movq %rax, -0x338(%rbp)
movl 0x78(%rbp), %eax
movl %eax, -0x32c(%rbp)
movq 0x80(%rbp), %rax
movq %rax, -0x328(%rbp)
movsd -0x68(%rbp), %xmm1
movl 0x88(%rbp), %eax
movl %eax, -0x31c(%rbp)
movq -0x2d0(%rbp), %r13
movq -0x2d8(%rbp), %r12
movq -0x2e0(%rbp), %r15
movq -0x2e8(%rbp), %r14
movsd -0x2f0(%rbp), %xmm2
movsd -0x2f8(%rbp), %xmm3
movq 0x16436b(%rip), %r11    # 0x3c5608
leaq -0x248(%rbp), %rbx
leaq -0x260(%rbp), %r10
leaq -0x268(%rbp), %rax
movq %rax, -0x318(%rbp)
movq -0x388(%rbp), %rax
movq %rax, (%rsp)
movq -0x380(%rbp), %rax
movq %rax, 0x8(%rsp)
movq -0x378(%rbp), %rax
movq %rax, 0x10(%rsp)
movq -0x370(%rbp), %rax
movq %rax, 0x18(%rsp)
movq -0x368(%rbp), %rax
movq %rax, 0x20(%rsp)
movq -0x360(%rbp), %rax
movq %rax, 0x28(%rsp)
movq -0x358(%rbp), %rax
movq %rax, 0x30(%rsp)
movq -0x350(%rbp), %rax
movq %rax, 0x38(%rsp)
movl -0x344(%rbp), %eax
movl %eax, 0x40(%rsp)
movq -0x340(%rbp), %rax
movq %rax, 0x48(%rsp)
movq -0x338(%rbp), %rax
movq %rax, 0x50(%rsp)
movl -0x32c(%rbp), %eax
movl %eax, 0x58(%rsp)
movq -0x328(%rbp), %rax
movq %rax, 0x60(%rsp)
movl -0x31c(%rbp), %eax
movl %eax, 0x68(%rsp)
movq -0x318(%rbp), %rax
movq %r13, 0x70(%rsp)
movq %r12, 0x78(%rsp)
movq %r15, 0x80(%rsp)
movq %r14, 0x88(%rsp)
movq %rbx, 0x90(%rsp)
movq %r11, 0x98(%rsp)
movq %r10, 0xa0(%rsp)
movq %rax, 0xa8(%rsp)
callq 0x1b31f0
cmpq $0x0, %rax
je 0x261b00
movq 0x18(%rbp), %rax
movq 0x10(%rax), %rax
subq -0xa0(%rbp), %rax
cmpq $0x1, %rax
jne 0x2613c1
jmp 0x2613e0
leaq 0x12e68b(%rip), %rdi    # 0x38fa53
leaq 0x12d83c(%rip), %rsi    # 0x38ec0b
movl $0x1339, %edx           # imm = 0x1339
leaq 0x12e7f3(%rip), %rcx    # 0x38fbce
callq 0x2130
movq -0xc8(%rbp), %rax
movl %eax, %ecx
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0xa0(%rbp), %rdx
addq %rdx, %rax
movl %ecx, 0x1c(%rax)
movq $0x1, -0x270(%rbp)
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0xa0(%rbp), %rcx
addq %rcx, %rax
movl $0x0, 0x24(%rax)
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0xa0(%rbp), %rcx
addq %rcx, %rax
movb $0x0, 0x2c(%rax)
movq 0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x90(%rbp), %rcx
movq (%rax,%rcx,8), %rcx
shrq $0x21, %rcx
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0xa0(%rbp), %rdx
addq %rdx, %rax
movl 0x10(%rax), %eax
movl %eax, %edx
xorl %eax, %eax
cmpq %rdx, %rcx
movb %al, -0x389(%rbp)
jne 0x2614be
movq 0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x90(%rbp), %rcx
movq (%rax,%rcx,8), %rax
shrq $0x20, %rax
andq $0x1, %rax
movq 0x18(%rbp), %rcx
movq (%rcx), %rcx
imulq $0xa8, -0xa0(%rbp), %rdx
addq %rdx, %rcx
movl 0x1c(%rcx), %ecx
cmpq %rcx, %rax
sete %al
movb %al, -0x389(%rbp)
movb -0x389(%rbp), %al
testb $0x1, %al
jne 0x2614ca
jmp 0x2614cc
jmp 0x2614eb
leaq 0x12e869(%rip), %rdi    # 0x38fd3c
leaq 0x12d731(%rip), %rsi    # 0x38ec0b
movl $0x133c, %edx           # imm = 0x133C
leaq 0x12e6e8(%rip), %rcx    # 0x38fbce
callq 0x2130
movq 0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x90(%rbp), %rcx
movq (%rax,%rcx,8), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x261544
movq 0x98(%rbp), %rax
movq (%rax), %rax
movq 0x38(%rbp), %rcx
movq 0x10(%rcx), %rcx
movq -0x90(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
shrl %ecx
movl %ecx, %ecx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xf0(%rbp)
movq $0x2, -0xe0(%rbp)
jmp 0x26157e
movq 0x90(%rbp), %rax
movq (%rax), %rax
movq 0x38(%rbp), %rcx
movq 0x10(%rcx), %rcx
movq -0x90(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
shrl %ecx
movl %ecx, %ecx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xf0(%rbp)
movq $0x1, -0xe0(%rbp)
movq -0xf0(%rbp), %rax
movq 0x18(%rax), %rax
shrq $0x1e, %rax
andq $0x1, %rax
movb %al, %cl
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0xa0(%rbp), %rdx
addq %rdx, %rax
movb %cl, 0x2e(%rax)
movq -0xf0(%rbp), %rax
movb 0x21(%rax), %cl
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0xa0(%rbp), %rdx
addq %rdx, %rax
movb %cl, 0x2d(%rax)
movq -0xf0(%rbp), %rax
movq (%rax), %rax
movl %eax, %eax
movq %rax, -0x280(%rbp)
movq -0xf0(%rbp), %rax
movl 0x8(%rax), %eax
movq %rax, -0x278(%rbp)
movq -0xf0(%rbp), %rax
movl 0x10(%rax), %eax
movq %rax, -0x290(%rbp)
movq -0xf0(%rbp), %rax
movl 0x14(%rax), %eax
movq %rax, -0x288(%rbp)
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0xa0(%rbp), %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
movq %rax, -0x2a0(%rbp)
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0xa0(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
addl $0x1, %eax
movl %eax, %eax
movq %rax, -0x298(%rbp)
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0xa0(%rbp), %rcx
addq %rcx, %rax
movl 0x14(%rax), %eax
movq %rax, -0x2b0(%rbp)
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0xa0(%rbp), %rcx
addq %rcx, %rax
movl 0x18(%rax), %eax
addl $0x1, %eax
movl %eax, %eax
movq %rax, -0x2a8(%rbp)
movq -0x280(%rbp), %rax
cmpq -0x2a0(%rbp), %rax
jb 0x2616b9
movq -0x280(%rbp), %rax
movq %rax, -0x398(%rbp)
jmp 0x2616c7
movq -0x2a0(%rbp), %rax
movq %rax, -0x398(%rbp)
movq -0x398(%rbp), %rax
movq %rax, -0x2c0(%rbp)
movq -0x278(%rbp), %rax
cmpq -0x298(%rbp), %rax
ja 0x2616f5
movq -0x278(%rbp), %rax
movq %rax, -0x3a0(%rbp)
jmp 0x261703
movq -0x298(%rbp), %rax
movq %rax, -0x3a0(%rbp)
movq -0x3a0(%rbp), %rax
movq %rax, -0x2c8(%rbp)
movq -0x2c8(%rbp), %rax
cmpq -0x2c0(%rbp), %rax
jbe 0x261738
movq -0x2c8(%rbp), %rax
subq -0x2c0(%rbp), %rax
movq %rax, -0x3a8(%rbp)
jmp 0x261743
xorl %eax, %eax
movq %rax, -0x3a8(%rbp)
jmp 0x261743
movq -0x3a8(%rbp), %rax
movq %rax, -0x2b8(%rbp)
cmpq $0x0, -0x2b8(%rbp)
je 0x26181b
movq -0x2b8(%rbp), %xmm0
movaps 0x1208a2(%rip), %xmm3   # 0x382010
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x1208a6(%rip), %xmm2   # 0x382020
subpd %xmm2, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movq -0x280(%rbp), %rcx
movq -0x278(%rbp), %rax
subq %rcx, %rax
movq %rax, %xmm1
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
mulsd -0x70(%rbp), %xmm1
ucomisd %xmm1, %xmm0
jb 0x26181b
movq -0x2b8(%rbp), %xmm0
movaps 0x120844(%rip), %xmm3   # 0x382010
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x120848(%rip), %xmm2   # 0x382020
subpd %xmm2, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movq -0x2a0(%rbp), %rcx
movq -0x298(%rbp), %rax
subq %rcx, %rax
movq %rax, %xmm1
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
mulsd -0x70(%rbp), %xmm1
ucomisd %xmm1, %xmm0
jae 0x261826
movq $0x0, -0x270(%rbp)
movq -0x290(%rbp), %rax
cmpq -0x2b0(%rbp), %rax
jb 0x261846
movq -0x290(%rbp), %rax
movq %rax, -0x3b0(%rbp)
jmp 0x261854
movq -0x2b0(%rbp), %rax
movq %rax, -0x3b0(%rbp)
movq -0x3b0(%rbp), %rax
movq %rax, -0x2c0(%rbp)
movq -0x288(%rbp), %rax
cmpq -0x2a8(%rbp), %rax
ja 0x261882
movq -0x288(%rbp), %rax
movq %rax, -0x3b8(%rbp)
jmp 0x261890
movq -0x2a8(%rbp), %rax
movq %rax, -0x3b8(%rbp)
movq -0x3b8(%rbp), %rax
movq %rax, -0x2c8(%rbp)
movq -0x2c8(%rbp), %rax
cmpq -0x2c0(%rbp), %rax
jbe 0x2618c5
movq -0x2c8(%rbp), %rax
subq -0x2c0(%rbp), %rax
movq %rax, -0x3c0(%rbp)
jmp 0x2618d0
xorl %eax, %eax
movq %rax, -0x3c0(%rbp)
jmp 0x2618d0
movq -0x3c0(%rbp), %rax
movq %rax, -0x2b8(%rbp)
cmpq $0x0, -0x2b8(%rbp)
je 0x2619a8
movq -0x2b8(%rbp), %xmm0
movaps 0x120715(%rip), %xmm3   # 0x382010
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x120719(%rip), %xmm2   # 0x382020
subpd %xmm2, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movq -0x290(%rbp), %rcx
movq -0x288(%rbp), %rax
subq %rcx, %rax
movq %rax, %xmm1
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
mulsd -0x70(%rbp), %xmm1
ucomisd %xmm1, %xmm0
jb 0x2619a8
movq -0x2b8(%rbp), %xmm0
movaps 0x1206b7(%rip), %xmm3   # 0x382010
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x1206bb(%rip), %xmm2   # 0x382020
subpd %xmm2, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movq -0x2b0(%rbp), %rcx
movq -0x2a8(%rbp), %rax
subq %rcx, %rax
movq %rax, %xmm1
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
mulsd -0x70(%rbp), %xmm1
ucomisd %xmm1, %xmm0
jae 0x2619b3
movq $0x0, -0x270(%rbp)
cmpq $0x0, -0x270(%rbp)
je 0x261a94
movq -0x250(%rbp), %rdi
movq -0x258(%rbp), %rsi
movq -0x48(%rbp), %rax
movq (%rax), %rdx
movq -0x48(%rbp), %rax
movq 0x8(%rax), %rcx
movq -0x2a0(%rbp), %r8
movq -0x298(%rbp), %r9
movq -0x2b0(%rbp), %r10
movq -0x2a8(%rbp), %rax
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x26dcc0
cmpq $0x0, %rax
je 0x261a71
cmpq $0x2, -0xe0(%rbp)
jne 0x261a4a
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0xa0(%rbp), %rcx
addq %rcx, %rax
movb $0x0, 0x2e(%rax)
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0xa0(%rbp), %rcx
addq %rcx, %rax
movb $0x1, 0x2d(%rax)
movq $0x1, -0xe0(%rbp)
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0xa0(%rbp), %rcx
addq %rcx, %rax
movl $0x1, 0x24(%rax)
movq -0xe0(%rbp), %rax
movb %al, %cl
movq 0x18(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0xa0(%rbp), %rdx
addq %rdx, %rax
movb %cl, 0x2c(%rax)
jmp 0x261afe
movq 0x18(%rbp), %rax
movq (%rax), %rdi
imulq $0xa8, -0xa0(%rbp), %rax
addq %rax, %rdi
addq $0x38, %rdi
callq 0x1e1d0
movq 0x18(%rbp), %rax
movq (%rax), %rdi
imulq $0xa8, -0xa0(%rbp), %rax
addq %rax, %rdi
addq $0x48, %rdi
callq 0x1e1f0
movq 0x18(%rbp), %rax
movq (%rax), %rdi
imulq $0xa8, -0xa0(%rbp), %rax
addq %rax, %rdi
addq $0x78, %rdi
callq 0x1e1f0
movq 0x18(%rbp), %rax
movq 0x10(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x10(%rax)
jmp 0x261b00
cmpq $0x0, -0x270(%rbp)
je 0x261b61
movq 0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x90(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
shrq $0x20, %rdx
movq %rdx, (%rax,%rcx,8)
movq 0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x90(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
shlq $0x20, %rdx
movq %rdx, (%rax,%rcx,8)
movq 0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x90(%rbp), %rcx
movabsq $0xffffffff, %rdx       # imm = 0xFFFFFFFF
orq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
movq -0x80(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x80(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x80(%rbp)
jmp 0x2610fa
movq $0x0, -0xb0(%rbp)
movq $0x0, -0x80(%rbp)
movq -0x80(%rbp), %rax
movq 0x38(%rbp), %rcx
cmpq (%rcx), %rax
jae 0x261bf3
movq 0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x80(%rbp), %rcx
movq (%rax,%rcx,8), %rax
cmpl $-0x1, %eax
jne 0x261bb4
jmp 0x261be5
movq 0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x80(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq -0xb0(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0xb0(%rbp)
movq %rdx, (%rax,%rcx,8)
movq -0x80(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x80(%rbp)
jmp 0x261b90
movq -0xb0(%rbp), %rcx
movq 0x38(%rbp), %rax
movq %rcx, (%rax)
movq 0x90(%rbp), %rax
movq (%rax), %rax
movq %rax, -0xe8(%rbp)
movq 0x90(%rbp), %rax
movl 0xc(%rax), %eax
movq %rax, -0x78(%rbp)
movq $0x0, -0x80(%rbp)
movq -0x80(%rbp), %rax
cmpq -0x78(%rbp), %rax
jae 0x261e4b
movq -0xe8(%rbp), %rax
imulq $0x28, -0x80(%rbp), %rcx
addq %rcx, %rax
cmpb $0x0, 0x20(%rax)
je 0x261e38
movq 0x18(%rbp), %rax
movq (%rax), %rax
movq 0x18(%rbp), %rdx
movq 0x10(%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x10(%rdx)
imulq $0xa8, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x100(%rbp)
movl -0x34(%rbp), %ecx
movq -0x100(%rbp), %rax
movl %ecx, (%rax)
movq -0xe8(%rbp), %rax
imulq $0x28, -0x80(%rbp), %rcx
addq %rcx, %rax
movl 0xc(%rax), %ecx
movq -0x100(%rbp), %rax
movl %ecx, 0x10(%rax)
movq -0x100(%rbp), %rax
movl $0x0, 0xc(%rax)
movq -0xe8(%rbp), %rax
imulq $0x28, -0x80(%rbp), %rcx
addq %rcx, %rax
movq 0x18(%rax), %rax
shrq $0x1f, %rax
andq $0x1, %rax
movl %eax, %ecx
movq -0x100(%rbp), %rax
movl %ecx, 0x1c(%rax)
movq -0xe8(%rbp), %rax
imulq $0x28, -0x80(%rbp), %rcx
addq %rcx, %rax
movq (%rax), %rax
movl %eax, %ecx
movq -0x100(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0xe8(%rbp), %rax
imulq $0x28, -0x80(%rbp), %rcx
addq %rcx, %rax
movl 0x8(%rax), %ecx
subl $0x1, %ecx
movq -0x100(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0xe8(%rbp), %rax
imulq $0x28, -0x80(%rbp), %rcx
addq %rcx, %rax
movl 0x10(%rax), %ecx
movq -0x100(%rbp), %rax
movl %ecx, 0x14(%rax)
movq -0xe8(%rbp), %rax
imulq $0x28, -0x80(%rbp), %rcx
addq %rcx, %rax
movl 0x14(%rax), %ecx
subl $0x1, %ecx
movq -0x100(%rbp), %rax
movl %ecx, 0x18(%rax)
movq -0x100(%rbp), %rax
movl 0x8(%rax), %ecx
addl $0x1, %ecx
movq -0x100(%rbp), %rax
subl 0x4(%rax), %ecx
movq -0x100(%rbp), %rax
movl %ecx, 0x20(%rax)
movq -0x100(%rbp), %rax
movl %ecx, 0x28(%rax)
movq -0x100(%rbp), %rax
movl $0x0, 0x30(%rax)
movq -0x100(%rbp), %rax
movb $0x1, 0x2c(%rax)
movq -0x100(%rbp), %rax
movl $0x1, 0x24(%rax)
movq -0xe8(%rbp), %rax
imulq $0x28, -0x80(%rbp), %rcx
addq %rcx, %rax
movq 0x18(%rax), %rax
shrq $0x1e, %rax
andq $0x1, %rax
movb %al, %cl
movq -0x100(%rbp), %rax
movb %cl, 0x2e(%rax)
movq -0xe8(%rbp), %rax
imulq $0x28, -0x80(%rbp), %rcx
addq %rcx, %rax
movb 0x21(%rax), %cl
movq -0x100(%rbp), %rax
movb %cl, 0x2d(%rax)
movq 0x28(%rbp), %rdi
movq -0x100(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, %esi
movq -0x100(%rbp), %rax
movl 0x8(%rax), %eax
addl $0x1, %eax
movl %eax, %eax
movl %eax, %edx
movq -0x100(%rbp), %rax
movl 0x14(%rax), %eax
movl %eax, %ecx
movq -0x100(%rbp), %rax
movl 0x18(%rax), %eax
addl $0x1, %eax
movl %eax, %eax
movl %eax, %r8d
callq 0x61ae0
movq -0x100(%rbp), %rdi
movq 0x28(%rbp), %rsi
callq 0x60af0
jmp 0x261e3a
movq -0x80(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x80(%rbp)
jmp 0x261c28
movq 0x18(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x90(%rbp), %rcx
movl 0xc(%rcx), %ecx
movq 0x98(%rbp), %rdx
addl 0xc(%rdx), %ecx
movl %ecx, %ecx
cmpq %rcx, %rax
ja 0x261e70
jmp 0x261e8f
leaq 0x12d87d(%rip), %rdi    # 0x38f6f4
leaq 0x12cd8d(%rip), %rsi    # 0x38ec0b
movl $0x13af, %edx           # imm = 0x13AF
leaq 0x12dd44(%rip), %rcx    # 0x38fbce
callq 0x2130
movq -0xf8(%rbp), %rax
addq $0x448, %rsp            # imm = 0x448
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax,%rax)