// File: chhylp123[P]hifiasm/gfa_ut.cpp
// Function: update_exact_ul_ovlps(all_ul_t*, ma_ug_t*, ul_str_t*, integer_aln_t*, ul_chain_t*, long, integer_t*, ul2ul_t*)
int64_t update_exact_ul_ovlps(all_ul_t *ul_idx, ma_ug_t *ug, ul_str_t *str, integer_aln_t *aln, ul_chain_t *idx, int64_t qid, 
integer_t *buf, ul2ul_t *res)
{
    if(idx->e<=idx->s) return 0;
    int64_t qk, tk, is_rev, tid, q_end, t_end; 
    ul_str_t *q_str, *t_str; integer_aln_t *x; 
    tid = aln[idx->s].tn_rev_qk>>33; is_rev = ((aln[idx->s].tn_rev_qk>>32)&1);
    q_str = &(str[qid]); t_str = &(str[tid]); 
    uint64_t os, oe; uint32_t v, w, q_ns, q_ne, t_ns, t_ne, acc, chained, qbs, qbe, tbs, tbe;
    // if(qid == 95 || qid == 36) {
    //     fprintf(stderr,"[M::%s::qid->%ld::tid->%ld] qs_idx::%u, qe_idx::%u, ts_idx::%u, te_idx::%u\n", __func__, qid, tid, 
    //     (uint32_t)(aln[idx->s].tn_rev_qk), (uint32_t)(aln[idx->e-1].tn_rev_qk), 
    //     aln[idx->s].tk, aln[idx->e-1].tk);
    // }
    //beg
    x = &(aln[idx->s]);
    qk = (uint32_t)(x->tn_rev_qk); tk = ((is_rev == 0)? (x->tk):(t_str->cn - x->tk - 1));
    if((qk > 0) && (x->tk > 0)) return 0;
    idx->q_sidx = (uint32_t)(x->tn_rev_qk); idx->t_sidx = x->tk;

    //end
    x = &(aln[idx->e-1]);
    qk = (uint32_t)(x->tn_rev_qk); tk = ((is_rev == 0)? (x->tk):(t_str->cn - x->tk - 1));
    if((((uint32_t)qk + 1) < q_str->cn) && ((x->tk + 1) < t_str->cn)) return 0;
    idx->q_eidx = (uint32_t)(x->tn_rev_qk)+1; idx->t_eidx = x->tk+1;

    if((idx->q_eidx - idx->q_sidx) != (idx->t_eidx - idx->t_sidx)) return 0;
    if(idx->q_eidx <= idx->q_sidx) return 0;

    qk = idx->q_sidx; q_end = idx->q_eidx;
    tk = idx->t_sidx; t_end = idx->t_eidx; 
    for (; qk < q_end && tk < t_end; qk++, tk++){
        v = ((uint32_t)q_str->a[qk]); 
        if(!is_rev) w = ((uint32_t)t_str->a[tk]);
        else w = ((uint32_t)t_str->a[t_str->cn-tk-1])^1;
        if(v != w) break;
    }
    if(qk!=q_end || tk!=t_end) return 0;
    
    uc_block_t *qi, *ti;
    qk = idx->q_sidx; q_end = idx->q_eidx;
    tk = idx->t_sidx; t_end = idx->t_eidx; 

    buf->p.n = buf->f.n = buf->o.n = buf->u.n = 0;
    kv_resize(int64_t, buf->p, idx->q_eidx - idx->q_sidx); int64_t *p = buf->p.a;
    kv_resize(int64_t, buf->f, idx->q_eidx - idx->q_sidx); int64_t *f = buf->f.a;
    kv_resize(uint64_t, buf->o, idx->q_eidx - idx->q_sidx); uint64_t *qc = buf->o.a;
    kv_resize(uint64_t, buf->u, idx->q_eidx - idx->q_sidx); uint64_t *tc = buf->u.a;
    int64_t max_f, max_z, csc, ps, sc, tf, tz, z;
    for (acc = 0, chained = 1, tf = tz = -1; qk < q_end && tk < t_end; qk++, tk++) {
        qi = &(ul_idx->a[qid].bb.a[q_str->a[qk]>>32]); 
        if(!is_rev) ti = &(ul_idx->a[tid].bb.a[t_str->a[tk]>>32]);
        else ti = &(ul_idx->a[tid].bb.a[t_str->a[t_str->cn-tk-1]>>32]);
        assert(qi->hid == ti->hid);
        os = MAX(qi->ts, ti->ts); oe = MIN(qi->te, ti->te);
        if(oe <= os) continue;
        uc_block_qse_cutoff(os, oe, qi, &q_ns, &q_ne);
        uc_block_qse_cutoff(os, oe, ti, &t_ns, &t_ne);
        qc[acc] = q_ns; qc[acc] <<= 32; qc[acc] |= q_ne;
        tc[acc] = t_ns; tc[acc] <<= 32; tc[acc] |= t_ne;

        z = acc; z -= 1; csc = q_ne - q_ns; if(csc <= 0) csc = 1;
        max_f = csc; max_z = -1; ps = 0;
        if(chained && z >= 0) {
            qbs = qc[z]>>32; qbe = (uint32_t)qc[z]; 
            tbs = tc[z]>>32; tbe = (uint32_t)tc[z];
            if(!is_rev) {
                if(qbs <= q_ns && qbe <= q_ne && tbs <= t_ns && tbe <= t_ne) ps = 1;
            } else {
                if(qbs <= q_ns && qbe <= q_ne && tbs >= t_ns && tbe >= t_ne) ps = 1;
            }
            if(ps) {
                sc = csc + f[z];
                if(sc > max_f) {
                    max_f = sc; max_z = z;
                }
            } else {
                chained = 0;
            }
        }

        if((!ps) || (!chained)) {
            for (; z >= 0; z--) {
                qbs = qc[z]>>32; qbe = (uint32_t)qc[z]; 
                tbs = tc[z]>>32; tbe = (uint32_t)tc[z];
                ps = 0;
                if(!is_rev) {
                    if(qbs <= q_ns && qbe <= q_ne && tbs <= t_ns && tbe <= t_ne) ps = 1;
                } else {
                    if(qbs <= q_ns && qbe <= q_ne && tbs >= t_ns && tbe >= t_ne) ps = 1;
                }
                if(!ps) continue;
                sc = csc + f[z];
                if(sc > max_f) {
                    max_f = sc; max_z = z;
                }
            }
        }

        f[acc] = max_f; p[acc] = max_z;
        if(tf < max_f) {
            tf = max_f; tz = acc;
        }
        acc++;
    }
    if(acc <= 0) return 0;
    assert(tz >= 0);
    res->hid = res->qs = res->qe = res->ts = res->te = (uint32_t)-1;
    res->hid = tid; res->is_rev = !!is_rev; res->is_del = 0; res->is_ct = 0;
    res->qs_k = idx->q_sidx; res->qe_k = idx->q_eidx;
    if(!is_rev) {
        res->ts_k = idx->t_sidx; res->te_k = idx->t_eidx;
    } else {
        res->ts_k = t_str->cn - idx->t_eidx; res->te_k = t_str->cn - idx->t_sidx;
    }
    

    res->qe = (uint32_t)qc[tz];
    if(!is_rev) res->te = (uint32_t)tc[tz];
    else res->ts = tc[tz]>>32;
    
    for (z = tz; z >= 0; z = p[z]) {
        res->qs = qc[z]>>32; 
        if(!is_rev) res->ts = tc[z]>>32;
        else res->te = (uint32_t)tc[z];
    }
    assert(res->qs <= res->qe && res->ts <= res->te);


    int64_t qs = 0, qe = 0, rs = 0, re = 0, qtail = 0, rtail = 0; 
    qs = res->qs; qe = res->qe; rs = res->ts; re = res->te;
    if(is_rev) {
        rs = ul_idx->a[tid].rlen - res->te; re = ul_idx->a[tid].rlen - res->ts;
    }
    if(qs <= rs) {
        rs -= qs; qs = 0;
    } else {
        qs -= rs; rs = 0;
    }

    qtail = ul_idx->a[qid].rlen - qe; rtail = ul_idx->a[tid].rlen - re;
    if(qtail <= rtail) {
        qe = ul_idx->a[qid].rlen; re += qtail;
    }
    else {
        re = ul_idx->a[tid].rlen; qe += rtail; 
    }
    res->qs = qs; res->qe = qe;
    res->ts = rs; res->te = re;
    if(is_rev) {
        res->ts = ul_idx->a[tid].rlen - re; 
        res->te = ul_idx->a[tid].rlen - rs;
    }
    return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x180, %rsp            # imm = 0x180
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)
movq -0x30(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x30(%rbp), %rcx
cmpl (%rcx), %eax
ja 0x32d847
movq $0x0, -0x8(%rbp)
jmp 0x32ec64
movq -0x28(%rbp), %rax
movq -0x30(%rbp), %rcx
movl (%rcx), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rax
shrq $0x21, %rax
movq %rax, -0x58(%rbp)
movq -0x28(%rbp), %rax
movq -0x30(%rbp), %rcx
movl (%rcx), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq 0x10(%rax), %rax
shrq $0x20, %rax
andq $0x1, %rax
movq %rax, -0x50(%rbp)
movq -0x20(%rbp), %rax
movq -0x38(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, -0x70(%rbp)
movq -0x20(%rbp), %rax
movq -0x58(%rbp), %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, -0x78(%rbp)
movq -0x28(%rbp), %rax
movq -0x30(%rbp), %rcx
movl (%rcx), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rax
movq 0x10(%rax), %rax
movl %eax, %eax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x50(%rbp)
jne 0x32d8e3
movq -0x80(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x164(%rbp)
jmp 0x32d8fe
movq -0x78(%rbp), %rax
movl 0x18(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq -0x80(%rbp), %rcx
subl (%rcx), %eax
subl $0x1, %eax
movl %eax, -0x164(%rbp)
movl -0x164(%rbp), %eax
movl %eax, %eax
movq %rax, -0x48(%rbp)
cmpq $0x0, -0x40(%rbp)
jle 0x32d927
movq -0x80(%rbp), %rax
cmpl $0x0, (%rax)
jbe 0x32d927
movq $0x0, -0x8(%rbp)
jmp 0x32ec64
movq -0x80(%rbp), %rax
movq 0x10(%rax), %rax
movl %eax, %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x18(%rax)
movq -0x80(%rbp), %rax
movl (%rax), %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x20(%rax)
movq -0x28(%rbp), %rax
movq -0x30(%rbp), %rcx
movl 0x4(%rcx), %ecx
subl $0x1, %ecx
movl %ecx, %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rax
movq 0x10(%rax), %rax
movl %eax, %eax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x50(%rbp)
jne 0x32d983
movq -0x80(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x168(%rbp)
jmp 0x32d99e
movq -0x78(%rbp), %rax
movl 0x18(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq -0x80(%rbp), %rcx
subl (%rcx), %eax
subl $0x1, %eax
movl %eax, -0x168(%rbp)
movl -0x168(%rbp), %eax
movl %eax, %eax
movq %rax, -0x48(%rbp)
movq -0x40(%rbp), %rax
addl $0x1, %eax
movq -0x70(%rbp), %rcx
movl 0x18(%rcx), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpl %ecx, %eax
jae 0x32d9e9
movq -0x80(%rbp), %rax
movl (%rax), %eax
addl $0x1, %eax
movq -0x78(%rbp), %rcx
movl 0x18(%rcx), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpl %ecx, %eax
jae 0x32d9e9
movq $0x0, -0x8(%rbp)
jmp 0x32ec64
movq -0x80(%rbp), %rax
movq 0x10(%rax), %rax
movl %eax, %ecx
addl $0x1, %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x1c(%rax)
movq -0x80(%rbp), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x24(%rax)
movq -0x30(%rbp), %rax
movl 0x1c(%rax), %eax
movq -0x30(%rbp), %rcx
subl 0x18(%rcx), %eax
movq -0x30(%rbp), %rcx
movl 0x24(%rcx), %ecx
movq -0x30(%rbp), %rdx
subl 0x20(%rdx), %ecx
cmpl %ecx, %eax
je 0x32da3a
movq $0x0, -0x8(%rbp)
jmp 0x32ec64
movq -0x30(%rbp), %rax
movl 0x1c(%rax), %eax
movq -0x30(%rbp), %rcx
cmpl 0x18(%rcx), %eax
ja 0x32da57
movq $0x0, -0x8(%rbp)
jmp 0x32ec64
movq -0x30(%rbp), %rax
movl 0x18(%rax), %eax
movq %rax, -0x40(%rbp)
movq -0x30(%rbp), %rax
movl 0x1c(%rax), %eax
movq %rax, -0x60(%rbp)
movq -0x30(%rbp), %rax
movl 0x20(%rax), %eax
movq %rax, -0x48(%rbp)
movq -0x30(%rbp), %rax
movl 0x24(%rax), %eax
movq %rax, -0x68(%rbp)
movq -0x40(%rbp), %rcx
xorl %eax, %eax
cmpq -0x60(%rbp), %rcx
movb %al, -0x169(%rbp)
jge 0x32daa6
movq -0x48(%rbp), %rax
cmpq -0x68(%rbp), %rax
setl %al
movb %al, -0x169(%rbp)
movb -0x169(%rbp), %al
testb $0x1, %al
jne 0x32dab5
jmp 0x32db45
movq -0x70(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x40(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl %eax, -0x94(%rbp)
cmpq $0x0, -0x50(%rbp)
jne 0x32daea
movq -0x78(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x48(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl %eax, -0x98(%rbp)
jmp 0x32db16
movq -0x78(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x78(%rbp), %rcx
movl 0x18(%rcx), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
movl %ecx, %ecx
subq -0x48(%rbp), %rcx
subq $0x1, %rcx
movq (%rax,%rcx,8), %rax
xorl $0x1, %eax
movl %eax, -0x98(%rbp)
movl -0x94(%rbp), %eax
cmpl -0x98(%rbp), %eax
je 0x32db26
jmp 0x32db45
jmp 0x32db28
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
movq -0x48(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x48(%rbp)
jmp 0x32da83
movq -0x40(%rbp), %rax
cmpq -0x60(%rbp), %rax
jne 0x32db59
movq -0x48(%rbp), %rax
cmpq -0x68(%rbp), %rax
je 0x32db66
movq $0x0, -0x8(%rbp)
jmp 0x32ec64
movq -0x30(%rbp), %rax
movl 0x18(%rax), %eax
movq %rax, -0x40(%rbp)
movq -0x30(%rbp), %rax
movl 0x1c(%rax), %eax
movq %rax, -0x60(%rbp)
movq -0x30(%rbp), %rax
movl 0x20(%rax), %eax
movq %rax, -0x48(%rbp)
movq -0x30(%rbp), %rax
movl 0x24(%rax), %eax
movq %rax, -0x68(%rbp)
movq 0x10(%rbp), %rax
movq $0x0, 0x90(%rax)
movq 0x10(%rbp), %rax
movq $0x0, 0x78(%rax)
movq 0x10(%rbp), %rax
movq $0x0, 0x48(%rax)
movq 0x10(%rbp), %rax
movq $0x0, 0x60(%rax)
movq 0x10(%rbp), %rax
movq 0x68(%rax), %rax
movq -0x30(%rbp), %rcx
movl 0x1c(%rcx), %ecx
movq -0x30(%rbp), %rdx
subl 0x18(%rdx), %ecx
movl %ecx, %ecx
cmpq %rcx, %rax
jae 0x32dcbb
movq -0x30(%rbp), %rax
movl 0x1c(%rax), %eax
movq -0x30(%rbp), %rcx
subl 0x18(%rcx), %eax
movl %eax, %eax
movl %eax, %ecx
movq 0x10(%rbp), %rax
movq %rcx, 0x68(%rax)
movq 0x10(%rbp), %rax
movq 0x68(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x68(%rax)
movq 0x10(%rbp), %rax
movq 0x68(%rax), %rcx
shrq %rcx
movq 0x10(%rbp), %rax
orq 0x68(%rax), %rcx
movq %rcx, 0x68(%rax)
movq 0x10(%rbp), %rax
movq 0x68(%rax), %rcx
shrq $0x2, %rcx
movq 0x10(%rbp), %rax
orq 0x68(%rax), %rcx
movq %rcx, 0x68(%rax)
movq 0x10(%rbp), %rax
movq 0x68(%rax), %rcx
shrq $0x4, %rcx
movq 0x10(%rbp), %rax
orq 0x68(%rax), %rcx
movq %rcx, 0x68(%rax)
movq 0x10(%rbp), %rax
movq 0x68(%rax), %rcx
shrq $0x8, %rcx
movq 0x10(%rbp), %rax
orq 0x68(%rax), %rcx
movq %rcx, 0x68(%rax)
movq 0x10(%rbp), %rax
movq 0x68(%rax), %rcx
shrq $0x10, %rcx
movq 0x10(%rbp), %rax
orq 0x68(%rax), %rcx
movq %rcx, 0x68(%rax)
movq 0x10(%rbp), %rax
movq 0x68(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x68(%rax)
movq 0x10(%rbp), %rax
movq 0x70(%rax), %rdi
movq 0x10(%rbp), %rax
movq 0x68(%rax), %rsi
shlq $0x3, %rsi
callq 0x2360
movq %rax, %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x70(%rax)
jmp 0x32dcbd
movq 0x10(%rbp), %rax
movq 0x70(%rax), %rax
movq %rax, -0xd8(%rbp)
movq 0x10(%rbp), %rax
movq 0x50(%rax), %rax
movq -0x30(%rbp), %rcx
movl 0x1c(%rcx), %ecx
movq -0x30(%rbp), %rdx
subl 0x18(%rdx), %ecx
movl %ecx, %ecx
cmpq %rcx, %rax
jae 0x32ddc2
movq -0x30(%rbp), %rax
movl 0x1c(%rax), %eax
movq -0x30(%rbp), %rcx
subl 0x18(%rcx), %eax
movl %eax, %eax
movl %eax, %ecx
movq 0x10(%rbp), %rax
movq %rcx, 0x50(%rax)
movq 0x10(%rbp), %rax
movq 0x50(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x50(%rax)
movq 0x10(%rbp), %rax
movq 0x50(%rax), %rcx
shrq %rcx
movq 0x10(%rbp), %rax
orq 0x50(%rax), %rcx
movq %rcx, 0x50(%rax)
movq 0x10(%rbp), %rax
movq 0x50(%rax), %rcx
shrq $0x2, %rcx
movq 0x10(%rbp), %rax
orq 0x50(%rax), %rcx
movq %rcx, 0x50(%rax)
movq 0x10(%rbp), %rax
movq 0x50(%rax), %rcx
shrq $0x4, %rcx
movq 0x10(%rbp), %rax
orq 0x50(%rax), %rcx
movq %rcx, 0x50(%rax)
movq 0x10(%rbp), %rax
movq 0x50(%rax), %rcx
shrq $0x8, %rcx
movq 0x10(%rbp), %rax
orq 0x50(%rax), %rcx
movq %rcx, 0x50(%rax)
movq 0x10(%rbp), %rax
movq 0x50(%rax), %rcx
shrq $0x10, %rcx
movq 0x10(%rbp), %rax
orq 0x50(%rax), %rcx
movq %rcx, 0x50(%rax)
movq 0x10(%rbp), %rax
movq 0x50(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x50(%rax)
movq 0x10(%rbp), %rax
movq 0x58(%rax), %rdi
movq 0x10(%rbp), %rax
movq 0x50(%rax), %rsi
shlq $0x3, %rsi
callq 0x2360
movq %rax, %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x58(%rax)
jmp 0x32ddc4
movq 0x10(%rbp), %rax
movq 0x58(%rax), %rax
movq %rax, -0xe0(%rbp)
movq 0x10(%rbp), %rax
movq 0x80(%rax), %rax
movq -0x30(%rbp), %rcx
movl 0x1c(%rcx), %ecx
movq -0x30(%rbp), %rdx
subl 0x18(%rdx), %ecx
movl %ecx, %ecx
cmpq %rcx, %rax
jae 0x32df11
movq -0x30(%rbp), %rax
movl 0x1c(%rax), %eax
movq -0x30(%rbp), %rcx
subl 0x18(%rcx), %eax
movl %eax, %eax
movl %eax, %ecx
movq 0x10(%rbp), %rax
movq %rcx, 0x80(%rax)
movq 0x10(%rbp), %rax
movq 0x80(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x80(%rax)
movq 0x10(%rbp), %rax
movq 0x80(%rax), %rcx
shrq %rcx
movq 0x10(%rbp), %rax
orq 0x80(%rax), %rcx
movq %rcx, 0x80(%rax)
movq 0x10(%rbp), %rax
movq 0x80(%rax), %rcx
shrq $0x2, %rcx
movq 0x10(%rbp), %rax
orq 0x80(%rax), %rcx
movq %rcx, 0x80(%rax)
movq 0x10(%rbp), %rax
movq 0x80(%rax), %rcx
shrq $0x4, %rcx
movq 0x10(%rbp), %rax
orq 0x80(%rax), %rcx
movq %rcx, 0x80(%rax)
movq 0x10(%rbp), %rax
movq 0x80(%rax), %rcx
shrq $0x8, %rcx
movq 0x10(%rbp), %rax
orq 0x80(%rax), %rcx
movq %rcx, 0x80(%rax)
movq 0x10(%rbp), %rax
movq 0x80(%rax), %rcx
shrq $0x10, %rcx
movq 0x10(%rbp), %rax
orq 0x80(%rax), %rcx
movq %rcx, 0x80(%rax)
movq 0x10(%rbp), %rax
movq 0x80(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x80(%rax)
movq 0x10(%rbp), %rax
movq 0x88(%rax), %rdi
movq 0x10(%rbp), %rax
movq 0x80(%rax), %rsi
shlq $0x3, %rsi
callq 0x2360
movq %rax, %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0x88(%rax)
jmp 0x32df13
movq 0x10(%rbp), %rax
movq 0x88(%rax), %rax
movq %rax, -0xe8(%rbp)
movq 0x10(%rbp), %rax
movq 0x98(%rax), %rax
movq -0x30(%rbp), %rcx
movl 0x1c(%rcx), %ecx
movq -0x30(%rbp), %rdx
subl 0x18(%rdx), %ecx
movl %ecx, %ecx
cmpq %rcx, %rax
jae 0x32e063
movq -0x30(%rbp), %rax
movl 0x1c(%rax), %eax
movq -0x30(%rbp), %rcx
subl 0x18(%rcx), %eax
movl %eax, %eax
movl %eax, %ecx
movq 0x10(%rbp), %rax
movq %rcx, 0x98(%rax)
movq 0x10(%rbp), %rax
movq 0x98(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x98(%rax)
movq 0x10(%rbp), %rax
movq 0x98(%rax), %rcx
shrq %rcx
movq 0x10(%rbp), %rax
orq 0x98(%rax), %rcx
movq %rcx, 0x98(%rax)
movq 0x10(%rbp), %rax
movq 0x98(%rax), %rcx
shrq $0x2, %rcx
movq 0x10(%rbp), %rax
orq 0x98(%rax), %rcx
movq %rcx, 0x98(%rax)
movq 0x10(%rbp), %rax
movq 0x98(%rax), %rcx
shrq $0x4, %rcx
movq 0x10(%rbp), %rax
orq 0x98(%rax), %rcx
movq %rcx, 0x98(%rax)
movq 0x10(%rbp), %rax
movq 0x98(%rax), %rcx
shrq $0x8, %rcx
movq 0x10(%rbp), %rax
orq 0x98(%rax), %rcx
movq %rcx, 0x98(%rax)
movq 0x10(%rbp), %rax
movq 0x98(%rax), %rcx
shrq $0x10, %rcx
movq 0x10(%rbp), %rax
orq 0x98(%rax), %rcx
movq %rcx, 0x98(%rax)
movq 0x10(%rbp), %rax
movq 0x98(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x98(%rax)
movq 0x10(%rbp), %rax
movq 0xa0(%rax), %rdi
movq 0x10(%rbp), %rax
movq 0x98(%rax), %rsi
shlq $0x3, %rsi
callq 0x2360
movq %rax, %rcx
movq 0x10(%rbp), %rax
movq %rcx, 0xa0(%rax)
jmp 0x32e065
movq 0x10(%rbp), %rax
movq 0xa0(%rax), %rax
movq %rax, -0xf0(%rbp)
movl $0x0, -0xac(%rbp)
movl $0x1, -0xb0(%rbp)
movq $-0x1, -0x128(%rbp)
movq $-0x1, -0x120(%rbp)
movq -0x40(%rbp), %rcx
xorl %eax, %eax
cmpq -0x60(%rbp), %rcx
movb %al, -0x16a(%rbp)
jge 0x32e0c4
movq -0x48(%rbp), %rax
cmpq -0x68(%rbp), %rax
setl %al
movb %al, -0x16a(%rbp)
movb -0x16a(%rbp), %al
testb $0x1, %al
jne 0x32e0d3
jmp 0x32e769
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
imulq $0x58, -0x38(%rbp), %rcx
addq %rcx, %rax
movq 0x30(%rax), %rax
movq -0x70(%rbp), %rcx
movq 0x10(%rcx), %rcx
movq -0x40(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x24, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xc8(%rbp)
cmpq $0x0, -0x50(%rbp)
jne 0x32e148
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
imulq $0x58, -0x58(%rbp), %rcx
addq %rcx, %rax
movq 0x30(%rax), %rax
movq -0x78(%rbp), %rcx
movq 0x10(%rcx), %rcx
movq -0x48(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x24, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xd0(%rbp)
jmp 0x32e191
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
imulq $0x58, -0x58(%rbp), %rcx
addq %rcx, %rax
movq 0x30(%rax), %rax
movq -0x78(%rbp), %rcx
movq 0x10(%rcx), %rcx
movq -0x78(%rbp), %rdx
movl 0x18(%rdx), %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
movl %edx, %edx
subq -0x48(%rbp), %rdx
subq $0x1, %rdx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x24, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xd0(%rbp)
movq -0xc8(%rbp), %rax
movl (%rax), %eax
movq -0xd0(%rbp), %rcx
cmpl (%rcx), %eax
jne 0x32e1a7
jmp 0x32e1c6
leaq 0x695fa(%rip), %rdi     # 0x3977a8
leaq 0x68004(%rip), %rsi     # 0x3961b9
movl $0x14a8, %edx           # imm = 0x14A8
leaq 0x695fa(%rip), %rcx     # 0x3977bb
callq 0x2130
movq -0xc8(%rbp), %rax
movl 0xc(%rax), %eax
movq -0xd0(%rbp), %rcx
cmpl 0xc(%rcx), %eax
jb 0x32e1ee
movq -0xc8(%rbp), %rax
movl 0xc(%rax), %eax
movl %eax, -0x170(%rbp)
jmp 0x32e1fe
movq -0xd0(%rbp), %rax
movl 0xc(%rax), %eax
movl %eax, -0x170(%rbp)
movl -0x170(%rbp), %eax
movl %eax, %eax
movq %rax, -0x88(%rbp)
movq -0xc8(%rbp), %rax
movl 0x10(%rax), %eax
movq -0xd0(%rbp), %rcx
cmpl 0x10(%rcx), %eax
ja 0x32e235
movq -0xc8(%rbp), %rax
movl 0x10(%rax), %eax
movl %eax, -0x174(%rbp)
jmp 0x32e245
movq -0xd0(%rbp), %rax
movl 0x10(%rax), %eax
movl %eax, -0x174(%rbp)
movl -0x174(%rbp), %eax
movl %eax, %eax
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rax
cmpq -0x88(%rbp), %rax
ja 0x32e269
jmp 0x32e74c
movq -0x88(%rbp), %rax
movl %eax, %edi
movq -0x90(%rbp), %rax
movl %eax, %esi
movq -0xc8(%rbp), %rdx
leaq -0x9c(%rbp), %rcx
leaq -0xa0(%rbp), %r8
callq 0x32d680
movq -0x88(%rbp), %rax
movl %eax, %edi
movq -0x90(%rbp), %rax
movl %eax, %esi
movq -0xd0(%rbp), %rdx
leaq -0xa4(%rbp), %rcx
leaq -0xa8(%rbp), %r8
callq 0x32d680
movl -0x9c(%rbp), %eax
movl %eax, %edx
movq -0xe8(%rbp), %rax
movl -0xac(%rbp), %ecx
movq %rdx, (%rax,%rcx,8)
movq -0xe8(%rbp), %rax
movl -0xac(%rbp), %ecx
movq (%rax,%rcx,8), %rdx
shlq $0x20, %rdx
movq %rdx, (%rax,%rcx,8)
movl -0xa0(%rbp), %eax
movl %eax, %edx
movq -0xe8(%rbp), %rax
movl -0xac(%rbp), %ecx
orq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
movl -0xa4(%rbp), %eax
movl %eax, %edx
movq -0xf0(%rbp), %rax
movl -0xac(%rbp), %ecx
movq %rdx, (%rax,%rcx,8)
movq -0xf0(%rbp), %rax
movl -0xac(%rbp), %ecx
movq (%rax,%rcx,8), %rdx
shlq $0x20, %rdx
movq %rdx, (%rax,%rcx,8)
movl -0xa8(%rbp), %eax
movl %eax, %edx
movq -0xf0(%rbp), %rax
movl -0xac(%rbp), %ecx
orq (%rax,%rcx,8), %rdx
movq %rdx, (%rax,%rcx,8)
movl -0xac(%rbp), %eax
movq %rax, -0x130(%rbp)
movq -0x130(%rbp), %rax
subq $0x1, %rax
movq %rax, -0x130(%rbp)
movl -0xa0(%rbp), %eax
subl -0x9c(%rbp), %eax
movl %eax, %eax
movq %rax, -0x108(%rbp)
cmpq $0x0, -0x108(%rbp)
jg 0x32e3a8
movq $0x1, -0x108(%rbp)
movq -0x108(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq $-0x1, -0x100(%rbp)
movq $0x0, -0x110(%rbp)
cmpl $0x0, -0xb0(%rbp)
je 0x32e544
cmpq $0x0, -0x130(%rbp)
jl 0x32e544
movq -0xe8(%rbp), %rax
movq -0x130(%rbp), %rcx
movq (%rax,%rcx,8), %rax
shrq $0x20, %rax
movl %eax, -0xb4(%rbp)
movq -0xe8(%rbp), %rax
movq -0x130(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl %eax, -0xb8(%rbp)
movq -0xf0(%rbp), %rax
movq -0x130(%rbp), %rcx
movq (%rax,%rcx,8), %rax
shrq $0x20, %rax
movl %eax, -0xbc(%rbp)
movq -0xf0(%rbp), %rax
movq -0x130(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl %eax, -0xc0(%rbp)
cmpq $0x0, -0x50(%rbp)
jne 0x32e49b
movl -0xb4(%rbp), %eax
cmpl -0x9c(%rbp), %eax
ja 0x32e499
movl -0xb8(%rbp), %eax
cmpl -0xa0(%rbp), %eax
ja 0x32e499
movl -0xbc(%rbp), %eax
cmpl -0xa4(%rbp), %eax
ja 0x32e499
movl -0xc0(%rbp), %eax
cmpl -0xa8(%rbp), %eax
ja 0x32e499
movq $0x1, -0x110(%rbp)
jmp 0x32e4e0
movl -0xb4(%rbp), %eax
cmpl -0x9c(%rbp), %eax
ja 0x32e4de
movl -0xb8(%rbp), %eax
cmpl -0xa0(%rbp), %eax
ja 0x32e4de
movl -0xbc(%rbp), %eax
cmpl -0xa4(%rbp), %eax
jb 0x32e4de
movl -0xc0(%rbp), %eax
cmpl -0xa8(%rbp), %eax
jb 0x32e4de
movq $0x1, -0x110(%rbp)
jmp 0x32e4e0
cmpq $0x0, -0x110(%rbp)
je 0x32e538
movq -0x108(%rbp), %rax
movq -0xe0(%rbp), %rcx
movq -0x130(%rbp), %rdx
addq (%rcx,%rdx,8), %rax
movq %rax, -0x118(%rbp)
movq -0x118(%rbp), %rax
cmpq -0xf8(%rbp), %rax
jle 0x32e536
movq -0x118(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0x130(%rbp), %rax
movq %rax, -0x100(%rbp)
jmp 0x32e542
movl $0x0, -0xb0(%rbp)
jmp 0x32e544
cmpq $0x0, -0x110(%rbp)
je 0x32e55b
cmpl $0x0, -0xb0(%rbp)
jne 0x32e6e2
jmp 0x32e55d
cmpq $0x0, -0x130(%rbp)
jl 0x32e6e0
movq -0xe8(%rbp), %rax
movq -0x130(%rbp), %rcx
movq (%rax,%rcx,8), %rax
shrq $0x20, %rax
movl %eax, -0xb4(%rbp)
movq -0xe8(%rbp), %rax
movq -0x130(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl %eax, -0xb8(%rbp)
movq -0xf0(%rbp), %rax
movq -0x130(%rbp), %rcx
movq (%rax,%rcx,8), %rax
shrq $0x20, %rax
movl %eax, -0xbc(%rbp)
movq -0xf0(%rbp), %rax
movq -0x130(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl %eax, -0xc0(%rbp)
movq $0x0, -0x110(%rbp)
cmpq $0x0, -0x50(%rbp)
jne 0x32e62a
movl -0xb4(%rbp), %eax
cmpl -0x9c(%rbp), %eax
ja 0x32e628
movl -0xb8(%rbp), %eax
cmpl -0xa0(%rbp), %eax
ja 0x32e628
movl -0xbc(%rbp), %eax
cmpl -0xa4(%rbp), %eax
ja 0x32e628
movl -0xc0(%rbp), %eax
cmpl -0xa8(%rbp), %eax
ja 0x32e628
movq $0x1, -0x110(%rbp)
jmp 0x32e66f
movl -0xb4(%rbp), %eax
cmpl -0x9c(%rbp), %eax
ja 0x32e66d
movl -0xb8(%rbp), %eax
cmpl -0xa0(%rbp), %eax
ja 0x32e66d
movl -0xbc(%rbp), %eax
cmpl -0xa4(%rbp), %eax
jb 0x32e66d
movl -0xc0(%rbp), %eax
cmpl -0xa8(%rbp), %eax
jb 0x32e66d
movq $0x1, -0x110(%rbp)
jmp 0x32e66f
cmpq $0x0, -0x110(%rbp)
jne 0x32e67b
jmp 0x32e6c9
movq -0x108(%rbp), %rax
movq -0xe0(%rbp), %rcx
movq -0x130(%rbp), %rdx
addq (%rcx,%rdx,8), %rax
movq %rax, -0x118(%rbp)
movq -0x118(%rbp), %rax
cmpq -0xf8(%rbp), %rax
jle 0x32e6c7
movq -0x118(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0x130(%rbp), %rax
movq %rax, -0x100(%rbp)
jmp 0x32e6c9
movq -0x130(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x130(%rbp)
jmp 0x32e55d
jmp 0x32e6e2
movq -0xf8(%rbp), %rdx
movq -0xe0(%rbp), %rax
movl -0xac(%rbp), %ecx
movq %rdx, (%rax,%rcx,8)
movq -0x100(%rbp), %rdx
movq -0xd8(%rbp), %rax
movl -0xac(%rbp), %ecx
movq %rdx, (%rax,%rcx,8)
movq -0x120(%rbp), %rax
cmpq -0xf8(%rbp), %rax
jge 0x32e73d
movq -0xf8(%rbp), %rax
movq %rax, -0x120(%rbp)
movl -0xac(%rbp), %eax
movq %rax, -0x128(%rbp)
movl -0xac(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xac(%rbp)
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
movq -0x48(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x48(%rbp)
jmp 0x32e0a1
cmpl $0x0, -0xac(%rbp)
ja 0x32e77f
movq $0x0, -0x8(%rbp)
jmp 0x32ec64
cmpq $0x0, -0x128(%rbp)
jl 0x32e78b
jmp 0x32e7aa
leaq 0x690aa(%rip), %rdi     # 0x39783c
leaq 0x67a20(%rip), %rsi     # 0x3961b9
movl $0x14dd, %edx           # imm = 0x14DD
leaq 0x69016(%rip), %rcx     # 0x3977bb
callq 0x2130
movq 0x18(%rbp), %rax
movl $0xffffffff, 0x10(%rax) # imm = 0xFFFFFFFF
movq 0x18(%rbp), %rax
movl $0xffffffff, 0xc(%rax)  # imm = 0xFFFFFFFF
movq 0x18(%rbp), %rax
movl $0xffffffff, 0x8(%rax)  # imm = 0xFFFFFFFF
movq 0x18(%rbp), %rax
movl $0xffffffff, 0x4(%rax)  # imm = 0xFFFFFFFF
movq 0x18(%rbp), %rax
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
movq -0x58(%rbp), %rax
movl %eax, %ecx
movq 0x18(%rbp), %rax
movl %ecx, (%rax)
cmpq $0x0, -0x50(%rbp)
setne %dl
xorb $-0x1, %dl
xorb $-0x1, %dl
andb $0x1, %dl
movq 0x18(%rbp), %rax
movb 0x24(%rax), %cl
andb $0x3f, %dl
andb $-0x40, %cl
orb %dl, %cl
movb %cl, 0x24(%rax)
movq 0x18(%rbp), %rax
movb 0x24(%rax), %cl
andb $-0x41, %cl
orb $0x0, %cl
movb %cl, 0x24(%rax)
movq 0x18(%rbp), %rax
movb 0x24(%rax), %cl
andb $0x7f, %cl
orb $0x0, %cl
movb %cl, 0x24(%rax)
movq -0x30(%rbp), %rax
movl 0x18(%rax), %ecx
movq 0x18(%rbp), %rax
movl %ecx, 0x14(%rax)
movq -0x30(%rbp), %rax
movl 0x1c(%rax), %ecx
movq 0x18(%rbp), %rax
movl %ecx, 0x18(%rax)
cmpq $0x0, -0x50(%rbp)
jne 0x32e870
movq -0x30(%rbp), %rax
movl 0x20(%rax), %ecx
movq 0x18(%rbp), %rax
movl %ecx, 0x1c(%rax)
movq -0x30(%rbp), %rax
movl 0x24(%rax), %ecx
movq 0x18(%rbp), %rax
movl %ecx, 0x20(%rax)
jmp 0x32e8a6
movq -0x78(%rbp), %rax
movl 0x18(%rax), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
movq -0x30(%rbp), %rax
subl 0x24(%rax), %ecx
movq 0x18(%rbp), %rax
movl %ecx, 0x1c(%rax)
movq -0x78(%rbp), %rax
movl 0x18(%rax), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
movq -0x30(%rbp), %rax
subl 0x20(%rax), %ecx
movq 0x18(%rbp), %rax
movl %ecx, 0x20(%rax)
movq -0xe8(%rbp), %rax
movq -0x128(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl %eax, %ecx
movq 0x18(%rbp), %rax
movl %ecx, 0x8(%rax)
cmpq $0x0, -0x50(%rbp)
jne 0x32e8e5
movq -0xf0(%rbp), %rax
movq -0x128(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl %eax, %ecx
movq 0x18(%rbp), %rax
movl %ecx, 0x10(%rax)
jmp 0x32e904
movq -0xf0(%rbp), %rax
movq -0x128(%rbp), %rcx
movq (%rax,%rcx,8), %rax
shrq $0x20, %rax
movl %eax, %ecx
movq 0x18(%rbp), %rax
movl %ecx, 0xc(%rax)
movq -0x128(%rbp), %rax
movq %rax, -0x130(%rbp)
cmpq $0x0, -0x130(%rbp)
jl 0x32e9a2
movq -0xe8(%rbp), %rax
movq -0x130(%rbp), %rcx
movq (%rax,%rcx,8), %rax
shrq $0x20, %rax
movl %eax, %ecx
movq 0x18(%rbp), %rax
movl %ecx, 0x4(%rax)
cmpq $0x0, -0x50(%rbp)
jne 0x32e967
movq -0xf0(%rbp), %rax
movq -0x130(%rbp), %rcx
movq (%rax,%rcx,8), %rax
shrq $0x20, %rax
movl %eax, %ecx
movq 0x18(%rbp), %rax
movl %ecx, 0xc(%rax)
jmp 0x32e982
movq -0xf0(%rbp), %rax
movq -0x130(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl %eax, %ecx
movq 0x18(%rbp), %rax
movl %ecx, 0x10(%rax)
jmp 0x32e984
movq -0xd8(%rbp), %rax
movq -0x130(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x130(%rbp)
jmp 0x32e912
movq 0x18(%rbp), %rax
movl 0x4(%rax), %ecx
movq 0x18(%rbp), %rdx
xorl %eax, %eax
cmpl 0x8(%rdx), %ecx
movb %al, -0x175(%rbp)
ja 0x32e9d1
movq 0x18(%rbp), %rax
movl 0xc(%rax), %eax
movq 0x18(%rbp), %rcx
cmpl 0x10(%rcx), %eax
setbe %al
movb %al, -0x175(%rbp)
movb -0x175(%rbp), %al
testb $0x1, %al
jne 0x32e9dd
jmp 0x32e9df
jmp 0x32e9fe
leaq 0x68e5e(%rip), %rdi     # 0x397844
leaq 0x677cc(%rip), %rsi     # 0x3961b9
movl $0x14f1, %edx           # imm = 0x14F1
leaq 0x68dc2(%rip), %rcx     # 0x3977bb
callq 0x2130
movq $0x0, -0x138(%rbp)
movq $0x0, -0x140(%rbp)
movq $0x0, -0x148(%rbp)
movq $0x0, -0x150(%rbp)
movq $0x0, -0x158(%rbp)
movq $0x0, -0x160(%rbp)
movq 0x18(%rbp), %rax
movl 0x4(%rax), %eax
movq %rax, -0x138(%rbp)
movq 0x18(%rbp), %rax
movl 0x8(%rax), %eax
movq %rax, -0x140(%rbp)
movq 0x18(%rbp), %rax
movl 0xc(%rax), %eax
movq %rax, -0x148(%rbp)
movq 0x18(%rbp), %rax
movl 0x10(%rax), %eax
movq %rax, -0x150(%rbp)
cmpq $0x0, -0x50(%rbp)
je 0x32eac5
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
imulq $0x58, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x18(%rax), %eax
movq 0x18(%rbp), %rcx
subl 0x10(%rcx), %eax
movl %eax, %eax
movq %rax, -0x148(%rbp)
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
imulq $0x58, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x18(%rax), %eax
movq 0x18(%rbp), %rcx
subl 0xc(%rcx), %eax
movl %eax, %eax
movq %rax, -0x150(%rbp)
movq -0x138(%rbp), %rax
cmpq -0x148(%rbp), %rax
jg 0x32eafa
movq -0x138(%rbp), %rcx
movq -0x148(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x148(%rbp)
movq $0x0, -0x138(%rbp)
jmp 0x32eb1d
movq -0x148(%rbp), %rcx
movq -0x138(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x138(%rbp)
movq $0x0, -0x148(%rbp)
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
imulq $0x58, -0x38(%rbp), %rcx
addq %rcx, %rax
movl 0x18(%rax), %eax
subq -0x140(%rbp), %rax
movq %rax, -0x158(%rbp)
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
imulq $0x58, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x18(%rax), %eax
subq -0x150(%rbp), %rax
movq %rax, -0x160(%rbp)
movq -0x158(%rbp), %rax
cmpq -0x160(%rbp), %rax
jg 0x32eba0
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
imulq $0x58, -0x38(%rbp), %rcx
addq %rcx, %rax
movl 0x18(%rax), %eax
movq %rax, -0x140(%rbp)
movq -0x158(%rbp), %rax
addq -0x150(%rbp), %rax
movq %rax, -0x150(%rbp)
jmp 0x32ebcf
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
imulq $0x58, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x18(%rax), %eax
movq %rax, -0x150(%rbp)
movq -0x160(%rbp), %rax
addq -0x140(%rbp), %rax
movq %rax, -0x140(%rbp)
movq -0x138(%rbp), %rax
movl %eax, %ecx
movq 0x18(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0x140(%rbp), %rax
movl %eax, %ecx
movq 0x18(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x148(%rbp), %rax
movl %eax, %ecx
movq 0x18(%rbp), %rax
movl %ecx, 0xc(%rax)
movq -0x150(%rbp), %rax
movl %eax, %ecx
movq 0x18(%rbp), %rax
movl %ecx, 0x10(%rax)
cmpq $0x0, -0x50(%rbp)
je 0x32ec5c
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
imulq $0x58, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x18(%rax), %eax
subq -0x150(%rbp), %rax
movl %eax, %ecx
movq 0x18(%rbp), %rax
movl %ecx, 0xc(%rax)
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
imulq $0x58, -0x58(%rbp), %rcx
addq %rcx, %rax
movl 0x18(%rax), %eax
subq -0x148(%rbp), %rax
movl %eax, %ecx
movq 0x18(%rbp), %rax
movl %ecx, 0x10(%rax)
movq $0x1, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x180, %rsp            # imm = 0x180
popq %rbp
retq
nopw %cs:(%rax,%rax)