// File: chhylp123[P]hifiasm/Hash_Table.cpp
// Function: lchain_qdp_mcopy(Candidates_list*, long, long, long, Chain_Data*, overlap_region_alloc*, long, long, long, double, double, double, unsigned int, long, long, long, unsigned int, long, long, double, long, long)
uint64_t lchain_qdp_mcopy(Candidates_list *cl, int64_t a_idx, int64_t a_n, int64_t des_idx, 
              Chain_Data* dp, overlap_region_alloc* res, int64_t max_skip, int64_t max_iter, 
              int64_t max_dis, double chn_pen_gap, double chn_pen_skip, double bw_rate, 
              uint32_t xid, int64_t xl, int64_t yl, int64_t quick_check, uint32_t apend_be, 
              int64_t gen_cigar, int64_t enable_mcopy, double mcopy_rate, int64_t mcopy_khit_cutoff, 
              int64_t khit_n)
{
    if(a_n <= 0) return 0;
    int64_t *p, *t, max_f, n_skip, st, max_j, end_j, sc, msc, msc_i, bw, max_ii, ovl, movl, plus = 0, min_sc, ch_n; 
    int32_t *f, max, tmp, *ii; int64_t i, k, j, cL = 0; k_mer_hit* a; k_mer_hit* des; k_mer_hit *swap; overlap_region *z;
    resize_Chain_Data(dp, a_n, NULL);
    t = dp->tmp; f = dp->score; p = dp->pre; ii = dp->occ;
    bw = ((xl < yl)?xl:yl); bw *= bw_rate;
    msc = msc_i = INT32_MIN; movl = INT32_MAX; ch_n = 1;
    a = cl->list + a_idx; des = cl->list + des_idx;
    // if(a_n && a[0].readID == 0) {
    //     fprintf(stderr, "---[M::%s::utg%.6dl::%c]\n", 
    //                     __func__, (int32_t)a[0].readID+1, "+-"[a[0].strand]);
    // }

    memset(t, 0, (a_n*sizeof((*t))));
    for (i = st = plus = 0, max_ii = -1; i < a_n; ++i) {
        max_f = a[i].cnt&(0xffu); 
        n_skip = 0; max_j = end_j = -1;
        if ((i-st) > max_iter) st = i-max_iter;
        while (a[i].strand != a[st].strand) ++st;

        for (j = i - 1; j >= st; --j) {
            sc = comput_sc_ch(&a[i], &a[j], bw_rate, chn_pen_gap, chn_pen_skip, xl, yl);
            if (sc == INT32_MIN) continue;
            sc += f[j];
            if (sc > max_f) {
                max_f = sc, max_j = j;
                if (n_skip > 0) --n_skip;
            } else if (t[j] == (int32_t)i) {
                if (++n_skip > max_skip)
                    break;
            }
            if (p[j] >= 0) t[p[j]] = i;
        }
        end_j = j;

        if ((max_ii<0) || (a[i].self_offset>a[max_ii].self_offset+max_dis) || (a[i].strand!=a[max_ii].strand)) {
            max = INT32_MIN; max_ii = -1;
            for (j=i-1; (j>=st) && (a[i].self_offset<=max_dis+a[j].self_offset)&&(a[i].strand==a[j].strand); --j) {
                if (max < f[j]) {
                    max = f[j], max_ii = j;
                }
            }
        }

        if (max_ii >= 0 && max_ii < end_j) {///just have a try with a[i]<->a[max_ii]
            tmp = comput_sc_ch(&a[i], &a[max_ii], bw_rate, chn_pen_gap, chn_pen_skip, xl, yl);
            if (tmp != INT32_MIN && max_f < tmp + f[max_ii])
                max_f = tmp + f[max_ii], max_j = max_ii;
        }
        f[i] = max_f; p[i] = max_j;
        if ((max_ii < 0) || ((a[i].self_offset<=max_dis+a[max_ii].self_offset)&&(a[i].strand==a[max_ii].strand)&&(f[max_ii]<f[i]))) {
            max_ii = i;
        }
        if(f[i] >= msc) {
            ovl = get_chainLen(a[i].self_offset, a[i].self_offset, xl, a[i].offset, a[i].offset, yl);
            if(f[i] > msc || ovl < movl) {
                msc = f[i]; msc_i = i; movl = ovl;
            }
        }
        if(f[i] < plus) plus = f[i];
        ii[i] = 0;///for mcopy, not here
        // if(a_n && a[0].readID == 0) {
        //     fprintf(stderr, "i::%ld[M::%s::utg%.6dl::%c] x::%u, y::%u, st::%ld, max_ii::%ld, f[i]::%d, p[i]::%ld, msc_i::%ld, msc::%ld, movl::%ld\n", 
        //                     i, __func__, (int32_t)a[i].readID+1, "+-"[a[i].strand], 
        //                     a[i].self_offset, a[i].offset, st, max_ii, f[i], p[i], msc_i, msc, movl);
        // }
    }

    for (i = msc_i, cL = 0; i >= 0; i = p[i]) { ii[i] = 1; t[cL++] = i;}///label the best chain
    if((movl < xl) && enable_mcopy/**(movl < yl)**/) {
        if(cL >= mcopy_khit_cutoff) {///if there are too few k-mers, disable mcopy
            msc -= plus; min_sc = msc*mcopy_rate/**0.2**/; ii[msc_i] = 0;
            for (i = ch_n = 0; i < a_n; ++i) {///make all f[] positive
                f[i] -= plus; if(i >= ch_n) t[i] = 0;
                if((!(ii[i])) && (f[i] >= min_sc)) {
                    t[ch_n] = ((uint64_t)f[i])<<32; t[ch_n] += (i<<1); ch_n++;
                }
            }
            if(ch_n > 1) {
                int64_t n_v, n_v0, ni, n_u, n_u0 = res->length; 
                radix_sort_hc64i(t, t + ch_n);
                for (k = ch_n-1, n_v = n_u = 0; k >= 0; --k) {
                    n_v0 = n_v;
                    for (i = ((uint32_t)t[k])>>1; i >= 0 && (t[i]&1) == 0; ) {
                        ii[n_v++] = i; t[i] |= 1; i = p[i];
                    }
                    if(n_v0 == n_v) continue;
                    sc = (i<0?(t[k]>>32):((t[k]>>32)-f[i]));
                    if(sc >= min_sc) {
                        kv_pushp_ol(overlap_region, (*res), &z);
                        push_ovlp_chain_qgen(z, xid, xl, yl, sc+plus, &(a[ii[n_v-1]]), &(a[ii[n_v0]]));
                        ///mcopy_khit_cutoff <= 1: disable the mcopy_khit_cutoff filtering, for the realignment
                        if((mcopy_khit_cutoff <= 1) || ((z->x_pos_e+1-z->x_pos_s) <= (movl<<2))) {
                            z->align_length = n_v-n_v0; z->x_id = n_v0;
                            n_u++;
                        } else {///non-best is too long
                            res->length--; n_v = n_v0;
                        }
                    } else {
                        n_v = n_v0;
                    }
                }

                if(n_u > 1) ks_introsort_or_sss(n_u, res->list + n_u0); 
                res->length = n_u0 + filter_non_ovlp_xchains(res->list + n_u0, n_u, &n_v);
                n_u = res->length;
                if(n_u > n_u0 + 1) {
                    kv_resize_cl(k_mer_hit, (*cl), (n_v+cl->length));
                    a = cl->list + a_idx; des = cl->list + des_idx; swap = cl->list + cl->length; 
                    for (k = n_u0, i = n_v0 = n_v = 0; k < n_u; k++) {
                        z = &(res->list[k]);
                        z->non_homopolymer_errors = des_idx + i;
                        n_v0 = z->x_id; ni = z->align_length;
                        for (j = 0; j < ni; j++, i++) {
                            ///k0 + (ni - j - 1)
                            swap[i] = a[ii[n_v0 + (ni- j - 1)]]; 
                            swap[i].readID = k; 
                        }
                        z->x_id = xid; 
                        if(gen_cigar) gen_fake_cigar(&(z->f_cigar), z, apend_be, swap+i-ni, ni);
                        if(!khit_n) z->align_length = 0; 
                    }
                    memcpy(des, swap, i*sizeof((*swap))); //assert(i == ch_n);
                    
                    // fprintf(stderr, "[M::%s::msc->%ld] msc_k_hits::%u, cL::%ld, min_sc::%ld, best_sc::%ld, n_u0_sc::%d, mcopy_rate::%f, # chains::%ld\n", 
                    // __func__, msc, res->list[n_u0].align_length, cL, min_sc, msc+plus, res->list[n_u0].shared_seed,
                    // mcopy_rate, n_u-n_u0);
                } else if(n_u == n_u0 + 1) {
                    z = &(res->list[n_u0]); k = n_u0; i = 0;
                    z->non_homopolymer_errors = des_idx + i;
                    n_v0 = z->x_id; ni = z->align_length;
                    for (j = 0; j < ni; j++, i++) {
                        ///k0 + (ni - j - 1)
                        des[i] = a[ii[n_v0 + (ni- j - 1)]]; 
                        des[i].readID = k; 
                    }
                    z->x_id = xid; 
                    if(gen_cigar) gen_fake_cigar(&(z->f_cigar), z, apend_be, des+i-ni, ni);
                    if(!khit_n) z->align_length = 0; 
                }
                return i;
            } else {
                msc += plus; i = msc_i; cL = 0; 
                while (i >= 0) {t[cL++] = i; i = p[i];}
            }
        }
    }
    ///a[] has been sorted by self_offset
    // i = msc_i; cL = 0; 
    // while (i >= 0) {t[cL++] = i; i = p[i];}
    kv_pushp_ol(overlap_region, (*res), &z);
    push_ovlp_chain_qgen(z, xid, xl, yl, msc, &(a[t[cL-1]]), &(a[t[0]]));
    for (i = 0; i < cL; i++) {des[i] = a[t[cL-i-1]]; des[i].readID = res->length-1;}
    z->non_homopolymer_errors = des_idx;
    if(gen_cigar) gen_fake_cigar(&(z->f_cigar), z, apend_be, des, cL);
    if(khit_n) z->align_length = cL;
    return cL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x1e0, %rsp            # imm = 0x1E0
movq 0x68(%rbp), %rax
movq 0x60(%rbp), %rax
movq 0x58(%rbp), %rax
movq 0x50(%rbp), %rax
movl 0x48(%rbp), %eax
movq 0x40(%rbp), %rax
movq 0x38(%rbp), %rax
movq 0x30(%rbp), %rax
movl 0x28(%rbp), %eax
movq 0x20(%rbp), %rax
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movsd %xmm0, -0x40(%rbp)
movsd %xmm1, -0x48(%rbp)
movsd %xmm2, -0x50(%rbp)
movsd %xmm3, -0x58(%rbp)
cmpq $0x0, -0x20(%rbp)
jg 0x255c9
movq $0x0, -0x8(%rbp)
jmp 0x26d02
movq $0x0, -0xd0(%rbp)
movq $0x0, -0x118(%rbp)
movq -0x30(%rbp), %rdi
movq -0x20(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x226f0
movq -0x30(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x68(%rbp)
movq -0x30(%rbp), %rax
movq (%rax), %rax
movq %rax, -0xe8(%rbp)
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x30(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0xf8(%rbp)
movq 0x30(%rbp), %rax
cmpq 0x38(%rbp), %rax
jge 0x2563c
movq 0x30(%rbp), %rax
movq %rax, -0x168(%rbp)
jmp 0x25647
movq 0x38(%rbp), %rax
movq %rax, -0x168(%rbp)
movq -0x168(%rbp), %rax
movq %rax, -0xb0(%rbp)
movsd -0x50(%rbp), %xmm1
cvtsi2sdq -0xb0(%rbp), %xmm0
mulsd %xmm1, %xmm0
cvttsd2si %xmm0, %rax
movq %rax, -0xb0(%rbp)
movq $-0x80000000, -0xa8(%rbp) # imm = 0x80000000
movq $-0x80000000, -0xa0(%rbp) # imm = 0x80000000
movq $0x7fffffff, -0xc8(%rbp) # imm = 0x7FFFFFFF
movq $0x1, -0xe0(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq -0x18(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x120(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq -0x28(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x128(%rbp)
movq -0x68(%rbp), %rdi
movq -0x20(%rbp), %rdx
shlq $0x3, %rdx
xorl %esi, %esi
callq 0x2100
movq $0x0, -0xd0(%rbp)
movq $0x0, -0x80(%rbp)
movq $0x0, -0x100(%rbp)
movq $-0x1, -0xb8(%rbp)
movq -0x100(%rbp), %rax
cmpq -0x20(%rbp), %rax
jge 0x25de2
movq -0x120(%rbp), %rax
movq -0x100(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
andl $0xff, %eax
movl %eax, %eax
movq %rax, -0x70(%rbp)
movq $0x0, -0x78(%rbp)
movq $-0x1, -0x90(%rbp)
movq $-0x1, -0x88(%rbp)
movq -0x100(%rbp), %rax
subq -0x80(%rbp), %rax
cmpq 0x18(%rbp), %rax
jle 0x2577f
movq -0x100(%rbp), %rax
subq 0x18(%rbp), %rax
movq %rax, -0x80(%rbp)
jmp 0x25781
movq -0x120(%rbp), %rax
movq -0x100(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl (%rax), %eax
shrl $0x1f, %eax
movq -0x120(%rbp), %rcx
movq -0x80(%rbp), %rdx
shlq $0x4, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
shrl $0x1f, %ecx
cmpl %ecx, %eax
je 0x257c4
movq -0x80(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x80(%rbp)
jmp 0x25781
movq -0x100(%rbp), %rax
subq $0x1, %rax
movq %rax, -0x110(%rbp)
movq -0x110(%rbp), %rax
cmpq -0x80(%rbp), %rax
jl 0x25922
movq -0x120(%rbp), %rdi
movq -0x100(%rbp), %rax
shlq $0x4, %rax
addq %rax, %rdi
movq -0x120(%rbp), %rsi
movq -0x110(%rbp), %rax
shlq $0x4, %rax
addq %rax, %rsi
movsd -0x50(%rbp), %xmm0
movsd -0x40(%rbp), %xmm1
movsd -0x48(%rbp), %xmm2
movq 0x30(%rbp), %rdx
movq 0x38(%rbp), %rcx
callq 0x2b100
cltq
movq %rax, -0x98(%rbp)
cmpq $-0x80000000, -0x98(%rbp) # imm = 0x80000000
jne 0x25848
jmp 0x2590b
movq -0xe8(%rbp), %rax
movq -0x110(%rbp), %rcx
movslq (%rax,%rcx,4), %rax
addq -0x98(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
cmpq -0x70(%rbp), %rax
jle 0x258a3
movq -0x98(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x110(%rbp), %rax
movq %rax, -0x88(%rbp)
cmpq $0x0, -0x78(%rbp)
jle 0x258a1
movq -0x78(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x78(%rbp)
jmp 0x258d9
movq -0x68(%rbp), %rax
movq -0x110(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq -0x100(%rbp), %rcx
movslq %ecx, %rcx
cmpq %rcx, %rax
jne 0x258d7
movq -0x78(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x78(%rbp)
cmpq 0x10(%rbp), %rax
jle 0x258d5
jmp 0x25922
jmp 0x258d7
jmp 0x258d9
movq -0x60(%rbp), %rax
movq -0x110(%rbp), %rcx
cmpq $0x0, (%rax,%rcx,8)
jl 0x25909
movq -0x100(%rbp), %rdx
movq -0x68(%rbp), %rax
movq -0x60(%rbp), %rcx
movq -0x110(%rbp), %rsi
movq (%rcx,%rsi,8), %rcx
movq %rdx, (%rax,%rcx,8)
jmp 0x2590b
movq -0x110(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x110(%rbp)
jmp 0x257d6
movq -0x110(%rbp), %rax
movq %rax, -0x90(%rbp)
cmpq $0x0, -0xb8(%rbp)
jl 0x259af
movq -0x120(%rbp), %rax
movq -0x100(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movq -0x120(%rbp), %rcx
movq -0xb8(%rbp), %rdx
shlq $0x4, %rdx
addq %rdx, %rcx
movl 0x8(%rcx), %ecx
addq 0x20(%rbp), %rcx
cmpq %rcx, %rax
jg 0x259af
movq -0x120(%rbp), %rax
movq -0x100(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl (%rax), %eax
shrl $0x1f, %eax
movq -0x120(%rbp), %rcx
movq -0xb8(%rbp), %rdx
shlq $0x4, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
shrl $0x1f, %ecx
cmpl %ecx, %eax
je 0x25ad9
movl $0x80000000, -0xec(%rbp) # imm = 0x80000000
movq $-0x1, -0xb8(%rbp)
movq -0x100(%rbp), %rax
subq $0x1, %rax
movq %rax, -0x110(%rbp)
movq -0x110(%rbp), %rcx
xorl %eax, %eax
cmpq -0x80(%rbp), %rcx
movb %al, -0x169(%rbp)
jl 0x25a74
movq -0x120(%rbp), %rax
movq -0x100(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movl %eax, %ecx
movq 0x20(%rbp), %rdx
movq -0x120(%rbp), %rax
movq -0x110(%rbp), %rsi
shlq $0x4, %rsi
addq %rsi, %rax
movl 0x8(%rax), %eax
addq %rax, %rdx
xorl %eax, %eax
cmpq %rdx, %rcx
movb %al, -0x169(%rbp)
jg 0x25a74
movq -0x120(%rbp), %rax
movq -0x100(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl (%rax), %eax
shrl $0x1f, %eax
movq -0x120(%rbp), %rcx
movq -0x110(%rbp), %rdx
shlq $0x4, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
shrl $0x1f, %ecx
cmpl %ecx, %eax
sete %al
movb %al, -0x169(%rbp)
movb -0x169(%rbp), %al
testb $0x1, %al
jne 0x25a80
jmp 0x25ad7
movl -0xec(%rbp), %eax
movq -0xe8(%rbp), %rcx
movq -0x110(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jge 0x25abe
movq -0xe8(%rbp), %rax
movq -0x110(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0xec(%rbp)
movq -0x110(%rbp), %rax
movq %rax, -0xb8(%rbp)
jmp 0x25ac0
movq -0x110(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x110(%rbp)
jmp 0x259d6
jmp 0x25ad9
cmpq $0x0, -0xb8(%rbp)
jl 0x25ba3
movq -0xb8(%rbp), %rax
cmpq -0x90(%rbp), %rax
jge 0x25ba3
movq -0x120(%rbp), %rdi
movq -0x100(%rbp), %rax
shlq $0x4, %rax
addq %rax, %rdi
movq -0x120(%rbp), %rsi
movq -0xb8(%rbp), %rax
shlq $0x4, %rax
addq %rax, %rsi
movsd -0x50(%rbp), %xmm0
movsd -0x40(%rbp), %xmm1
movsd -0x48(%rbp), %xmm2
movq 0x30(%rbp), %rdx
movq 0x38(%rbp), %rcx
callq 0x2b100
movl %eax, -0xf0(%rbp)
cmpl $0x80000000, -0xf0(%rbp) # imm = 0x80000000
je 0x25ba1
movq -0x70(%rbp), %rax
movl -0xf0(%rbp), %ecx
movq -0xe8(%rbp), %rdx
movq -0xb8(%rbp), %rsi
addl (%rdx,%rsi,4), %ecx
movslq %ecx, %rcx
cmpq %rcx, %rax
jge 0x25ba1
movl -0xf0(%rbp), %eax
movq -0xe8(%rbp), %rcx
movq -0xb8(%rbp), %rdx
addl (%rcx,%rdx,4), %eax
cltq
movq %rax, -0x70(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0x88(%rbp)
jmp 0x25ba3
movq -0x70(%rbp), %rax
movl %eax, %edx
movq -0xe8(%rbp), %rax
movq -0x100(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
movq -0x88(%rbp), %rdx
movq -0x60(%rbp), %rax
movq -0x100(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
cmpq $0x0, -0xb8(%rbp)
jl 0x25c76
movq -0x120(%rbp), %rax
movq -0x100(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movq 0x20(%rbp), %rcx
movq -0x120(%rbp), %rdx
movq -0xb8(%rbp), %rsi
shlq $0x4, %rsi
addq %rsi, %rdx
movl 0x8(%rdx), %edx
addq %rdx, %rcx
cmpq %rcx, %rax
jg 0x25c84
movq -0x120(%rbp), %rax
movq -0x100(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl (%rax), %eax
shrl $0x1f, %eax
movq -0x120(%rbp), %rcx
movq -0xb8(%rbp), %rdx
shlq $0x4, %rdx
addq %rdx, %rcx
movl (%rcx), %ecx
shrl $0x1f, %ecx
cmpl %ecx, %eax
jne 0x25c84
movq -0xe8(%rbp), %rax
movq -0xb8(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movq -0xe8(%rbp), %rcx
movq -0x100(%rbp), %rdx
cmpl (%rcx,%rdx,4), %eax
jge 0x25c84
movq -0x100(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0xe8(%rbp), %rax
movq -0x100(%rbp), %rcx
movslq (%rax,%rcx,4), %rax
cmpq -0xa0(%rbp), %rax
jl 0x25d82
movq -0x120(%rbp), %rax
movq -0x100(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movl %eax, %edi
movq -0x120(%rbp), %rax
movq -0x100(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
movl %eax, %esi
movq 0x30(%rbp), %rdx
movq -0x120(%rbp), %rax
movq -0x100(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
movl %eax, %ecx
movq -0x120(%rbp), %rax
movq -0x100(%rbp), %r8
shlq $0x4, %r8
addq %r8, %rax
movl 0x4(%rax), %eax
movl %eax, %r8d
movq 0x38(%rbp), %r9
callq 0x21580
movq %rax, -0xc0(%rbp)
movq -0xe8(%rbp), %rax
movq -0x100(%rbp), %rcx
movslq (%rax,%rcx,4), %rax
cmpq -0xa0(%rbp), %rax
jg 0x25d4b
movq -0xc0(%rbp), %rax
cmpq -0xc8(%rbp), %rax
jge 0x25d80
movq -0xe8(%rbp), %rax
movq -0x100(%rbp), %rcx
movslq (%rax,%rcx,4), %rax
movq %rax, -0xa0(%rbp)
movq -0x100(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0xc8(%rbp)
jmp 0x25d82
movq -0xe8(%rbp), %rax
movq -0x100(%rbp), %rcx
movslq (%rax,%rcx,4), %rax
cmpq -0xd0(%rbp), %rax
jge 0x25db6
movq -0xe8(%rbp), %rax
movq -0x100(%rbp), %rcx
movslq (%rax,%rcx,4), %rax
movq %rax, -0xd0(%rbp)
movq -0xf8(%rbp), %rax
movq -0x100(%rbp), %rcx
movl $0x0, (%rax,%rcx,4)
movq -0x100(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x100(%rbp)
jmp 0x2570d
movq -0xa8(%rbp), %rax
movq %rax, -0x100(%rbp)
movq $0x0, -0x118(%rbp)
cmpq $0x0, -0x100(%rbp)
jl 0x25e56
movq -0xf8(%rbp), %rax
movq -0x100(%rbp), %rcx
movl $0x1, (%rax,%rcx,4)
movq -0x100(%rbp), %rdx
movq -0x68(%rbp), %rax
movq -0x118(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x118(%rbp)
movq %rdx, (%rax,%rcx,8)
movq -0x60(%rbp), %rax
movq -0x100(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x100(%rbp)
jmp 0x25dfb
movq -0xc8(%rbp), %rax
cmpq 0x30(%rbp), %rax
jge 0x26a42
cmpq $0x0, 0x58(%rbp)
je 0x26a42
movq -0x118(%rbp), %rax
cmpq 0x60(%rbp), %rax
jl 0x26a40
movq -0xd0(%rbp), %rcx
movq -0xa0(%rbp), %rax
subq %rcx, %rax
movq %rax, -0xa0(%rbp)
cvtsi2sdq -0xa0(%rbp), %xmm0
mulsd -0x58(%rbp), %xmm0
cvttsd2si %xmm0, %rax
movq %rax, -0xd8(%rbp)
movq -0xf8(%rbp), %rax
movq -0xa8(%rbp), %rcx
movl $0x0, (%rax,%rcx,4)
movq $0x0, -0xe0(%rbp)
movq $0x0, -0x100(%rbp)
movq -0x100(%rbp), %rax
cmpq -0x20(%rbp), %rax
jge 0x25fcf
movq -0xd0(%rbp), %rsi
movq -0xe8(%rbp), %rax
movq -0x100(%rbp), %rcx
movslq (%rax,%rcx,4), %rdx
subq %rsi, %rdx
movl %edx, (%rax,%rcx,4)
movq -0x100(%rbp), %rax
cmpq -0xe0(%rbp), %rax
jl 0x25f33
movq -0x68(%rbp), %rax
movq -0x100(%rbp), %rcx
movq $0x0, (%rax,%rcx,8)
movq -0xf8(%rbp), %rax
movq -0x100(%rbp), %rcx
cmpl $0x0, (%rax,%rcx,4)
jne 0x25fb6
movq -0xe8(%rbp), %rax
movq -0x100(%rbp), %rcx
movslq (%rax,%rcx,4), %rax
cmpq -0xd8(%rbp), %rax
jl 0x25fb6
movq -0xe8(%rbp), %rax
movq -0x100(%rbp), %rcx
movslq (%rax,%rcx,4), %rdx
shlq $0x20, %rdx
movq -0x68(%rbp), %rax
movq -0xe0(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x100(%rbp), %rdx
shlq %rdx
movq -0x68(%rbp), %rax
movq -0xe0(%rbp), %rcx
addq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
movq -0xe0(%rbp), %rax
addq $0x1, %rax
movq %rax, -0xe0(%rbp)
jmp 0x25fb8
movq -0x100(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x100(%rbp)
jmp 0x25ee0
cmpq $0x1, -0xe0(%rbp)
jle 0x269c8
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x160(%rbp)
movq -0x68(%rbp), %rdi
movq -0x68(%rbp), %rsi
movq -0xe0(%rbp), %rax
shlq $0x3, %rax
addq %rax, %rsi
callq 0x1d3c0
movq -0xe0(%rbp), %rax
subq $0x1, %rax
movq %rax, -0x108(%rbp)
movq $0x0, -0x158(%rbp)
movq $0x0, -0x140(%rbp)
cmpq $0x0, -0x108(%rbp)
jl 0x263f9
movq -0x140(%rbp), %rax
movq %rax, -0x148(%rbp)
movq -0x68(%rbp), %rax
movq -0x108(%rbp), %rcx
movq (%rax,%rcx,8), %rax
shrl %eax
movl %eax, %eax
movq %rax, -0x100(%rbp)
xorl %eax, %eax
cmpq $0x0, -0x100(%rbp)
movb %al, -0x16a(%rbp)
jl 0x26097
movq -0x68(%rbp), %rax
movq -0x100(%rbp), %rcx
movq (%rax,%rcx,8), %rax
andq $0x1, %rax
cmpq $0x0, %rax
sete %al
movb %al, -0x16a(%rbp)
movb -0x16a(%rbp), %al
testb $0x1, %al
jne 0x260a3
jmp 0x260fd
movq -0x100(%rbp), %rax
movl %eax, %edx
movq -0xf8(%rbp), %rax
movq -0x140(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x140(%rbp)
movl %edx, (%rax,%rcx,4)
movq -0x68(%rbp), %rax
movq -0x100(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
orq $0x1, %rdx
movq %rdx, (%rax,%rcx,8)
movq -0x60(%rbp), %rax
movq -0x100(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x100(%rbp)
jmp 0x26065
movq -0x148(%rbp), %rax
cmpq -0x140(%rbp), %rax
jne 0x26112
jmp 0x263e2
cmpq $0x0, -0x100(%rbp)
jge 0x26138
movq -0x68(%rbp), %rax
movq -0x108(%rbp), %rcx
movq (%rax,%rcx,8), %rax
sarq $0x20, %rax
movq %rax, -0x178(%rbp)
jmp 0x26167
movq -0x68(%rbp), %rax
movq -0x108(%rbp), %rcx
movq (%rax,%rcx,8), %rax
sarq $0x20, %rax
movq -0xe8(%rbp), %rcx
movq -0x100(%rbp), %rdx
movslq (%rcx,%rdx,4), %rcx
subq %rcx, %rax
movq %rax, -0x178(%rbp)
movq -0x178(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
cmpq -0xd8(%rbp), %rax
jl 0x263d2
jmp 0x2618b
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x38(%rbp), %rcx
cmpq 0x8(%rcx), %rax
jne 0x262aa
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x180(%rbp)
movq -0x38(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x261ce
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
shlq %rax
movq %rax, -0x188(%rbp)
jmp 0x261dc
movl $0x2, %eax
movq %rax, -0x188(%rbp)
jmp 0x261dc
movq -0x180(%rbp), %rdi
movq -0x188(%rbp), %rax
imulq $0xa8, %rax, %rsi
callq 0x2360
movq %rax, %rcx
movq -0x38(%rbp), %rax
movq %rcx, (%rax)
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq -0x38(%rbp), %rcx
imulq $0xa8, 0x8(%rcx), %rcx
addq %rcx, %rax
movq %rax, -0x190(%rbp)
movq -0x38(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x2623c
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
shlq %rax
movq %rax, -0x198(%rbp)
jmp 0x2624a
movl $0x2, %eax
movq %rax, -0x198(%rbp)
jmp 0x2624a
movq -0x190(%rbp), %rdi
movq -0x198(%rbp), %rax
movq -0x38(%rbp), %rcx
subq 0x8(%rcx), %rax
imulq $0xa8, %rax, %rdx
xorl %esi, %esi
callq 0x2100
movq -0x38(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x2628d
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
shlq %rax
movq %rax, -0x1a0(%rbp)
jmp 0x2629b
movl $0x2, %eax
movq %rax, -0x1a0(%rbp)
jmp 0x2629b
movq -0x1a0(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq -0x38(%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, -0x138(%rbp)
movq -0x138(%rbp), %rdi
movl 0x28(%rbp), %esi
movq 0x30(%rbp), %rdx
movq 0x38(%rbp), %rcx
movq -0x98(%rbp), %r8
addq -0xd0(%rbp), %r8
movq -0x120(%rbp), %r9
movq -0xf8(%rbp), %rax
movq -0x140(%rbp), %r10
subq $0x1, %r10
movslq (%rax,%r10,4), %rax
shlq $0x4, %rax
addq %rax, %r9
movq -0x120(%rbp), %rax
movq -0xf8(%rbp), %r10
movq -0x148(%rbp), %r11
movslq (%r10,%r11,4), %r10
shlq $0x4, %r10
addq %r10, %rax
movq %rax, (%rsp)
callq 0x24dc0
cmpq $0x1, 0x60(%rbp)
jle 0x26372
movq -0x138(%rbp), %rax
movl 0x8(%rax), %eax
addl $0x1, %eax
movq -0x138(%rbp), %rcx
subl 0x4(%rcx), %eax
movl %eax, %eax
movq -0xc8(%rbp), %rcx
shlq $0x2, %rcx
cmpq %rcx, %rax
jg 0x263b2
movq -0x140(%rbp), %rax
subq -0x148(%rbp), %rax
movl %eax, %ecx
movq -0x138(%rbp), %rax
movl %ecx, 0x28(%rax)
movq -0x148(%rbp), %rax
movl %eax, %ecx
movq -0x138(%rbp), %rax
movl %ecx, (%rax)
movq -0x158(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x158(%rbp)
jmp 0x263d0
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x10(%rax)
movq -0x148(%rbp), %rax
movq %rax, -0x140(%rbp)
jmp 0x263e0
movq -0x148(%rbp), %rax
movq %rax, -0x140(%rbp)
jmp 0x263e2
movq -0x108(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x108(%rbp)
jmp 0x2602f
cmpq $0x1, -0x158(%rbp)
jle 0x26424
movq -0x158(%rbp), %rdi
movq -0x38(%rbp), %rax
movq (%rax), %rsi
imulq $0xa8, -0x160(%rbp), %rax
addq %rax, %rsi
callq 0x1d9d0
movq -0x160(%rbp), %rax
movq %rax, -0x1a8(%rbp)
movq -0x38(%rbp), %rax
movq (%rax), %rdi
imulq $0xa8, -0x160(%rbp), %rax
addq %rax, %rdi
movq -0x158(%rbp), %rsi
leaq -0x140(%rbp), %rdx
callq 0x252e0
movq -0x1a8(%rbp), %rcx
addq %rax, %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x158(%rbp)
movq -0x158(%rbp), %rax
movq -0x160(%rbp), %rcx
addq $0x1, %rcx
cmpq %rcx, %rax
jle 0x267ec
jmp 0x26498
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x140(%rbp), %rcx
movq -0x10(%rbp), %rdx
addq 0x8(%rdx), %rcx
cmpq %rcx, %rax
jge 0x26588
movq -0x140(%rbp), %rcx
movq -0x10(%rbp), %rax
addq 0x8(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rcx
sarq %rcx
movq -0x10(%rbp), %rax
orq 0x10(%rax), %rcx
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rcx
sarq $0x2, %rcx
movq -0x10(%rbp), %rax
orq 0x10(%rax), %rcx
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rcx
sarq $0x4, %rcx
movq -0x10(%rbp), %rax
orq 0x10(%rax), %rcx
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rcx
sarq $0x8, %rcx
movq -0x10(%rbp), %rax
orq 0x10(%rax), %rcx
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rcx
sarq $0x10, %rcx
movq -0x10(%rbp), %rax
orq 0x10(%rax), %rcx
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rsi
shlq $0x4, %rsi
callq 0x2360
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
jmp 0x2658a
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq -0x18(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x120(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq -0x28(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x128(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq -0x10(%rbp), %rcx
movq 0x8(%rcx), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x130(%rbp)
movq -0x160(%rbp), %rax
movq %rax, -0x108(%rbp)
movq $0x0, -0x140(%rbp)
movq $0x0, -0x148(%rbp)
movq $0x0, -0x100(%rbp)
movq -0x108(%rbp), %rax
cmpq -0x158(%rbp), %rax
jge 0x267c9
movq -0x38(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0x108(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x138(%rbp)
movq -0x28(%rbp), %rax
addq -0x100(%rbp), %rax
movl %eax, %ecx
movq -0x138(%rbp), %rax
movl %ecx, 0x30(%rax)
movq -0x138(%rbp), %rax
movl (%rax), %eax
movq %rax, -0x148(%rbp)
movq -0x138(%rbp), %rax
movl 0x28(%rax), %eax
movq %rax, -0x150(%rbp)
movq $0x0, -0x110(%rbp)
movq -0x110(%rbp), %rax
cmpq -0x150(%rbp), %rax
jge 0x26740
movq -0x120(%rbp), %rcx
movq -0xf8(%rbp), %rax
movq -0x148(%rbp), %rdx
movq -0x150(%rbp), %rsi
subq -0x110(%rbp), %rsi
subq $0x1, %rsi
addq %rsi, %rdx
movslq (%rax,%rdx,4), %rax
shlq $0x4, %rax
addq %rax, %rcx
movq -0x130(%rbp), %rax
movq -0x100(%rbp), %rdx
shlq $0x4, %rdx
addq %rdx, %rax
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rcx
movq %rcx, 0x8(%rax)
movq -0x108(%rbp), %rax
movl %eax, %edx
movq -0x130(%rbp), %rax
movq -0x100(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl (%rax), %ecx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
andl $0x80000000, %ecx       # imm = 0x80000000
orl %edx, %ecx
movl %ecx, (%rax)
movq -0x110(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x110(%rbp)
movq -0x100(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x100(%rbp)
jmp 0x2667b
movl 0x28(%rbp), %ecx
movq -0x138(%rbp), %rax
movl %ecx, (%rax)
cmpq $0x0, 0x50(%rbp)
je 0x2679b
movq -0x138(%rbp), %rdi
addq $0x38, %rdi
movq -0x138(%rbp), %rsi
movl 0x48(%rbp), %eax
movl %eax, %edx
movq -0x130(%rbp), %rcx
movq -0x100(%rbp), %rax
shlq $0x4, %rax
addq %rax, %rcx
xorl %eax, %eax
subq -0x150(%rbp), %rax
shlq $0x4, %rax
addq %rax, %rcx
movq -0x150(%rbp), %r8
callq 0x1e3a0
cmpq $0x0, 0x68(%rbp)
jne 0x267b0
movq -0x138(%rbp), %rax
movl $0x0, 0x28(%rax)
jmp 0x267b2
movq -0x108(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x108(%rbp)
jmp 0x26608
movq -0x128(%rbp), %rdi
movq -0x130(%rbp), %rsi
movq -0x100(%rbp), %rdx
shlq $0x4, %rdx
callq 0x2180
jmp 0x269b8
movq -0x158(%rbp), %rax
movq -0x160(%rbp), %rcx
addq $0x1, %rcx
cmpq %rcx, %rax
jne 0x269b6
movq -0x38(%rbp), %rax
movq (%rax), %rax
imulq $0xa8, -0x160(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x138(%rbp)
movq -0x160(%rbp), %rax
movq %rax, -0x108(%rbp)
movq $0x0, -0x100(%rbp)
movq -0x28(%rbp), %rax
addq -0x100(%rbp), %rax
movl %eax, %ecx
movq -0x138(%rbp), %rax
movl %ecx, 0x30(%rax)
movq -0x138(%rbp), %rax
movl (%rax), %eax
movq %rax, -0x148(%rbp)
movq -0x138(%rbp), %rax
movl 0x28(%rax), %eax
movq %rax, -0x150(%rbp)
movq $0x0, -0x110(%rbp)
movq -0x110(%rbp), %rax
cmpq -0x150(%rbp), %rax
jge 0x26944
movq -0x120(%rbp), %rcx
movq -0xf8(%rbp), %rax
movq -0x148(%rbp), %rdx
movq -0x150(%rbp), %rsi
subq -0x110(%rbp), %rsi
subq $0x1, %rsi
addq %rsi, %rdx
movslq (%rax,%rdx,4), %rax
shlq $0x4, %rax
addq %rax, %rcx
movq -0x128(%rbp), %rax
movq -0x100(%rbp), %rdx
shlq $0x4, %rdx
addq %rdx, %rax
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rcx
movq %rcx, 0x8(%rax)
movq -0x108(%rbp), %rax
movl %eax, %edx
movq -0x128(%rbp), %rax
movq -0x100(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl (%rax), %ecx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
andl $0x80000000, %ecx       # imm = 0x80000000
orl %edx, %ecx
movl %ecx, (%rax)
movq -0x110(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x110(%rbp)
movq -0x100(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x100(%rbp)
jmp 0x2687f
movl 0x28(%rbp), %ecx
movq -0x138(%rbp), %rax
movl %ecx, (%rax)
cmpq $0x0, 0x50(%rbp)
je 0x2699f
movq -0x138(%rbp), %rdi
addq $0x38, %rdi
movq -0x138(%rbp), %rsi
movl 0x48(%rbp), %eax
movl %eax, %edx
movq -0x128(%rbp), %rcx
movq -0x100(%rbp), %rax
shlq $0x4, %rax
addq %rax, %rcx
xorl %eax, %eax
subq -0x150(%rbp), %rax
shlq $0x4, %rax
addq %rax, %rcx
movq -0x150(%rbp), %r8
callq 0x1e3a0
cmpq $0x0, 0x68(%rbp)
jne 0x269b4
movq -0x138(%rbp), %rax
movl $0x0, 0x28(%rax)
jmp 0x269b6
jmp 0x269b8
movq -0x100(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x26d02
movq -0xd0(%rbp), %rax
addq -0xa0(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x100(%rbp)
movq $0x0, -0x118(%rbp)
cmpq $0x0, -0x100(%rbp)
jl 0x26a3c
movq -0x100(%rbp), %rdx
movq -0x68(%rbp), %rax
movq -0x118(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x118(%rbp)
movq %rdx, (%rax,%rcx,8)
movq -0x60(%rbp), %rax
movq -0x100(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x100(%rbp)
jmp 0x269f6
jmp 0x26a3e
jmp 0x26a40
jmp 0x26a42
jmp 0x26a44
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x38(%rbp), %rcx
cmpq 0x8(%rcx), %rax
jne 0x26b63
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x1b0(%rbp)
movq -0x38(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x26a87
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
shlq %rax
movq %rax, -0x1b8(%rbp)
jmp 0x26a95
movl $0x2, %eax
movq %rax, -0x1b8(%rbp)
jmp 0x26a95
movq -0x1b0(%rbp), %rdi
movq -0x1b8(%rbp), %rax
imulq $0xa8, %rax, %rsi
callq 0x2360
movq %rax, %rcx
movq -0x38(%rbp), %rax
movq %rcx, (%rax)
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq -0x38(%rbp), %rcx
imulq $0xa8, 0x8(%rcx), %rcx
addq %rcx, %rax
movq %rax, -0x1c0(%rbp)
movq -0x38(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x26af5
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
shlq %rax
movq %rax, -0x1c8(%rbp)
jmp 0x26b03
movl $0x2, %eax
movq %rax, -0x1c8(%rbp)
jmp 0x26b03
movq -0x1c0(%rbp), %rdi
movq -0x1c8(%rbp), %rax
movq -0x38(%rbp), %rcx
subq 0x8(%rcx), %rax
imulq $0xa8, %rax, %rdx
xorl %esi, %esi
callq 0x2100
movq -0x38(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x26b46
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
shlq %rax
movq %rax, -0x1d0(%rbp)
jmp 0x26b54
movl $0x2, %eax
movq %rax, -0x1d0(%rbp)
jmp 0x26b54
movq -0x1d0(%rbp), %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x38(%rbp), %rax
movq (%rax), %rax
movq -0x38(%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, -0x138(%rbp)
movq -0x138(%rbp), %rdi
movl 0x28(%rbp), %esi
movq 0x30(%rbp), %rdx
movq 0x38(%rbp), %rcx
movq -0xa0(%rbp), %r8
movq -0x120(%rbp), %r9
movq -0x68(%rbp), %rax
movq -0x118(%rbp), %r10
subq $0x1, %r10
movq (%rax,%r10,8), %rax
shlq $0x4, %rax
addq %rax, %r9
movq -0x120(%rbp), %rax
movq -0x68(%rbp), %r10
movq (%r10), %r10
shlq $0x4, %r10
addq %r10, %rax
movq %rax, (%rsp)
callq 0x24dc0
movq $0x0, -0x100(%rbp)
movq -0x100(%rbp), %rax
cmpq -0x118(%rbp), %rax
jge 0x26c9c
movq -0x120(%rbp), %rcx
movq -0x68(%rbp), %rax
movq -0x118(%rbp), %rdx
subq -0x100(%rbp), %rdx
subq $0x1, %rdx
movq (%rax,%rdx,8), %rax
shlq $0x4, %rax
addq %rax, %rcx
movq -0x128(%rbp), %rax
movq -0x100(%rbp), %rdx
shlq $0x4, %rdx
addq %rdx, %rax
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rcx
movq %rcx, 0x8(%rax)
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rax
subq $0x1, %rax
movl %eax, %edx
movq -0x128(%rbp), %rax
movq -0x100(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movl (%rax), %ecx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
andl $0x80000000, %ecx       # imm = 0x80000000
orl %edx, %ecx
movl %ecx, (%rax)
movq -0x100(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x100(%rbp)
jmp 0x26bf1
movq -0x28(%rbp), %rax
movl %eax, %ecx
movq -0x138(%rbp), %rax
movl %ecx, 0x30(%rax)
cmpq $0x0, 0x50(%rbp)
je 0x26cdd
movq -0x138(%rbp), %rdi
addq $0x38, %rdi
movq -0x138(%rbp), %rsi
movl 0x48(%rbp), %eax
movl %eax, %edx
movq -0x128(%rbp), %rcx
movq -0x118(%rbp), %r8
callq 0x1e3a0
cmpq $0x0, 0x68(%rbp)
je 0x26cf7
movq -0x118(%rbp), %rax
movl %eax, %ecx
movq -0x138(%rbp), %rax
movl %ecx, 0x28(%rax)
movq -0x118(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x1e0, %rsp            # imm = 0x1E0
popq %rbp
retq
nop