// File: /workspace/github_cpp_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movl (%r8), %esi
movl 0x4(%r8), %eax
cmpl %esi, %eax
jbe 0x201e7a
movq %r8, %rbp
movq %rdi, %r12
leaq (%rsi,%rsi,2), %rsi
movq 0x10(%rcx,%rsi,8), %r15
movl $0xffffffff, %r11d      # imm = 0xFFFFFFFF
andq %r15, %r11
sete %dil
movl (%rcx,%rsi,8), %esi
testl %esi, %esi
sete %r8b
orb %dil, %r8b
cmpb $0x1, %r8b
jne 0x201e7a
movq %r9, %rbx
movq %r15, %r8
shrq $0x21, %r8
movq %r9, %rdi
shlq $0x5, %rdi
addq %rdx, %rdi
movq %r8, %r10
shlq $0x5, %r10
addq %rdx, %r10
movl %r15d, 0x18(%rbp)
movl %esi, 0x20(%rbp)
decl %eax
leaq (%rax,%rax,2), %rax
movl (%rcx,%rax,8), %edx
movl 0x10(%rcx,%rax,8), %ecx
incl %ecx
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq %rdi, 0x78(%rsp)
movl 0x18(%rdi), %edi
andl %eax, %edi
incl %edx
cmpl %edi, %ecx
jae 0x201800
andl 0x18(%r10), %eax
cmpl %eax, %edx
jb 0x201e7a
movl %ecx, 0x1c(%rbp)
movl %edx, 0x24(%rbp)
xorl %eax, %eax
movl %ecx, %r14d
subl %r15d, %r14d
jbe 0x201e7c
movl %edx, %edi
subl %esi, %edi
cmpl %edi, %r14d
jne 0x201e7c
movq %r8, 0x60(%rsp)
shrq $0x20, %r15
andl $0x1, %r15d
movl %esi, %edi
movl %ecx, %r8d
movq %r8, 0x48(%rsp)
movl %edx, %r8d
movq %r8, 0x40(%rsp)
cmpl %ecx, %r11d
setb %cl
cmpl %esi, %edx
seta %r13b
andb %cl, %r13b
movq %rdi, 0x8(%rsp)
movq %rdi, %rcx
movq %r11, %rdx
cmpb $0x1, %r13b
jne 0x2018ba
movq 0x78(%rsp), %rcx
movq 0x10(%rcx), %rsi
movq 0x10(%r10), %rdi
movq 0x8(%rsp), %rcx
movq %rcx, %r8
notq %r8
movq %r11, %rdx
testq %r15, %r15
jne 0x201886
movl (%rdi,%rcx,8), %r9d
jmp 0x20189d
movl 0x18(%r10), %r9d
andl $0x7fffffff, %r9d       # imm = 0x7FFFFFFF
leaq (%rdi,%r9,8), %r9
movl (%r9,%r8,8), %r9d
xorl $0x1, %r9d
cmpl (%rsi,%rdx,8), %r9d
jne 0x2018ba
incq %rdx
incq %rcx
cmpq 0x48(%rsp), %rdx
jae 0x2018ba
decq %r8
cmpq 0x40(%rsp), %rcx
jb 0x20187b
xorl %eax, %eax
cmpq 0x48(%rsp), %rdx
jne 0x201e7c
cmpq 0x40(%rsp), %rcx
jne 0x201e7c
movb %r13b, 0x4(%rsp)
movq 0xe0(%rsp), %r13
xorl %ecx, %ecx
movq %rcx, 0x90(%r13)
movq %rcx, 0x78(%r13)
movq %rcx, 0x48(%r13)
movq %rcx, 0x60(%r13)
movl %r14d, %edx
cmpq %rdx, 0x68(%r13)
movq %r10, 0x30(%rsp)
movq %r11, 0x20(%rsp)
jae 0x201960
decq %rdx
movq %rdx, %rcx
shrq %rcx
orq %rdx, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x10, %rcx
orq %rax, %rcx
leaq 0x1(%rcx), %rax
movq %rax, 0x68(%r13)
movq 0x70(%r13), %rdi
leaq 0x8(,%rcx,8), %rsi
callq 0x2370
movq %rax, 0x70(%r13)
movl 0x1c(%rbp), %edx
subl 0x18(%rbp), %edx
jmp 0x201964
movq 0x70(%r13), %rax
cmpq %rdx, 0x50(%r13)
movq %rax, 0x68(%rsp)
jae 0x2019cd
decq %rdx
movq %rdx, %rcx
shrq %rcx
orq %rdx, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x10, %rcx
orq %rax, %rcx
leaq 0x1(%rcx), %rax
movq %rax, 0x50(%r13)
movq 0x58(%r13), %rdi
leaq 0x8(,%rcx,8), %rsi
callq 0x2370
movq %rax, 0x28(%rsp)
movq %rax, 0x58(%r13)
movl 0x1c(%rbp), %edx
subl 0x18(%rbp), %edx
jmp 0x2019d6
movq 0x58(%r13), %rax
movq %rax, 0x28(%rsp)
cmpq %rdx, 0x80(%r13)
jae 0x201a41
decq %rdx
movq %rdx, %rcx
shrq %rcx
orq %rdx, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x10, %rcx
orq %rax, %rcx
leaq 0x1(%rcx), %rax
movq %rax, 0x80(%r13)
movq 0x88(%r13), %rdi
leaq 0x8(,%rcx,8), %rsi
callq 0x2370
movq %rax, 0x88(%r13)
movl 0x1c(%rbp), %edx
subl 0x18(%rbp), %edx
jmp 0x201a48
movq 0x88(%r13), %rax
movq %rax, 0x18(%rsp)
movq %rbp, 0x80(%rsp)
cmpq %rdx, 0x98(%r13)
jae 0x201abd
decq %rdx
movq %rdx, %rcx
shrq %rcx
orq %rdx, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x10, %rcx
orq %rax, %rcx
leaq 0x1(%rcx), %rax
movq %rax, 0x98(%r13)
movq 0xa0(%r13), %rdi
leaq 0x8(,%rcx,8), %rsi
callq 0x2370
movq %rax, %rbp
movq %rax, 0xa0(%r13)
jmp 0x201ac4
movq 0xa0(%r13), %rbp
movq 0x30(%rsp), %rdi
movq 0x20(%rsp), %r8
movq 0x8(%rsp), %r9
movq $0x0, 0x10(%rsp)
cmpb $0x0, 0x4(%rsp)
je 0x201e7a
movq $-0x1, 0x38(%rsp)
imulq $0x58, %rbx, %r11
imulq $0x58, 0x60(%rsp), %r10
movq $-0x1, 0x70(%rsp)
movl $0x1, 0x4(%rsp)
movq %r12, 0x98(%rsp)
movq %r11, 0x90(%rsp)
movq %r10, 0x88(%rsp)
movq 0x10(%rdi), %rax
testq %r15, %r15
jne 0x201b32
leaq (%rax,%r9,8), %rax
jmp 0x201b49
movl 0x18(%rdi), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
movq %r9, %rdx
notq %rdx
leaq (%rax,%rdx,8), %rax
leaq (%rax,%rcx,8), %rax
movq 0x48(%r12), %rcx
movq 0x78(%rsp), %rdx
movq 0x10(%rdx), %rdx
movl 0x4(%rdx,%r8,8), %edx
leaq (%rdx,%rdx,8), %rdx
shlq $0x2, %rdx
addq 0x30(%rcx,%r11), %rdx
movq 0x30(%rcx,%r10), %rcx
movl 0x4(%rax), %eax
leaq (%rax,%rax,8), %rax
movl (%rdx), %esi
cmpl (%rcx,%rax,4), %esi
jne 0x201f8d
leaq (%rcx,%rax,4), %rbx
movl 0xc(%rdx), %eax
movl 0x10(%rdx), %ecx
movl 0xc(%rbx), %r14d
movl 0x10(%rbx), %r13d
cmpl %r14d, %eax
cmoval %eax, %r14d
cmpl %r13d, %ecx
cmovbl %ecx, %r13d
cmpl %r14d, %r13d
jbe 0x201df6
movq %r9, 0x8(%rsp)
movq %r8, 0x20(%rsp)
movl %r14d, %edi
movl %r13d, %esi
leaq 0x5c(%rsp), %rcx
leaq 0x58(%rsp), %r8
callq 0x201676
movl %r14d, %edi
movl %r13d, %esi
movq %rbx, %rdx
leaq 0x54(%rsp), %rcx
leaq 0x50(%rsp), %r8
callq 0x201676
movl 0x5c(%rsp), %ecx
movq 0x10(%rsp), %r11
movl %r11d, %r12d
movq %rcx, %rsi
shlq $0x20, %rsi
movl 0x58(%rsp), %edx
orq %rdx, %rsi
movq 0x18(%rsp), %rax
movq %rsi, (%rax,%r12,8)
movl 0x54(%rsp), %esi
movq %rsi, %r8
shlq $0x20, %r8
movl 0x50(%rsp), %edi
orq %rdi, %r8
movq %r8, (%rbp,%r12,8)
leaq -0x1(%r12), %r9
movl %edx, %r8d
subl %ecx, %r8d
movl $0x1, %r10d
cmovel %r10d, %r8d
cmpl $0x0, 0x4(%rsp)
setne %r10b
testl %r11d, %r11d
setne %r11b
andb %r10b, %r11b
movb $0x1, %r13b
movq $-0x1, %r10
cmpb $0x1, %r11b
jne 0x201c9e
movq -0x8(%rax,%r12,8), %rbx
movq %rbx, %r11
shrq $0x20, %r11
movq -0x8(%rbp,%r12,8), %rax
movq %rax, %r13
shrq $0x20, %r13
cmpl %r11d, %ecx
setb %r14b
cmpl %ebx, %edx
setb %r11b
orb %r14b, %r11b
testq %r15, %r15
jne 0x201ca3
cmpl %r13d, %esi
setb %bl
movl $0x0, 0x4(%rsp)
orb %bl, %r11b
jne 0x201ce5
movq %r8, %r11
cmpl %eax, %edi
movb $0x1, %r13b
jae 0x201cc0
jmp 0x201ceb
movq %r8, %r11
jmp 0x201ceb
cmpl %r13d, %esi
seta %bl
movl $0x0, 0x4(%rsp)
orb %bl, %r11b
jne 0x201ce5
movq %r8, %r11
cmpl %eax, %edi
movb $0x1, %r13b
ja 0x201ceb
movq 0x28(%rsp), %rax
movq -0x8(%rax,%r12,8), %r11
xorl %r13d, %r13d
testq %r11, %r11
cmovleq %r13, %r11
cmovgq %r9, %r10
addq %r8, %r11
movl $0x1, 0x4(%rsp)
jmp 0x201ceb
movq %r8, %r11
movb $0x1, %r13b
movq %r12, 0xa0(%rsp)
movq %r15, %r12
cmpl $0x0, 0x10(%rsp)
setne %bl
cmpl $0x0, 0x4(%rsp)
sete %r14b
orb %r13b, %r14b
andb %bl, %r14b
cmpb $0x1, %r14b
jne 0x201d87
movq 0x18(%rsp), %rax
movq (%rax,%r9,8), %r15
movq %r15, %r13
shrq $0x20, %r13
movq (%rbp,%r9,8), %rbx
movq %rbx, %r14
shrq $0x20, %r14
cmpl %r13d, %ecx
setb %al
cmpl %r15d, %edx
setb %r13b
orb %al, %r13b
testq %r12, %r12
jne 0x201d55
cmpl %r14d, %esi
setb %al
orb %al, %r13b
jne 0x201d7b
cmpl %ebx, %edi
jae 0x201d64
jmp 0x201d7b
cmpl %r14d, %esi
seta %al
orb %al, %r13b
jne 0x201d7b
cmpl %ebx, %edi
ja 0x201d7b
movq 0x28(%rsp), %rax
movq (%rax,%r9,8), %rax
addq %r8, %rax
cmpq %r11, %rax
cmovgq %rax, %r11
cmovgq %r9, %r10
leaq -0x1(%r9), %rax
testq %r9, %r9
movq %rax, %r9
jg 0x201d13
movq 0x28(%rsp), %rax
movq 0xa0(%rsp), %rcx
movq %r11, (%rax,%rcx,8)
movq 0x70(%rsp), %rax
cmpq %r11, %rax
cmovleq %r11, %rax
movq %rax, 0x70(%rsp)
movq 0x68(%rsp), %rax
movq %r10, (%rax,%rcx,8)
movq 0x38(%rsp), %rax
cmovlq %rcx, %rax
movq %rax, 0x38(%rsp)
movq 0x10(%rsp), %rax
incl %eax
movq %rax, 0x10(%rsp)
movq %r12, %r15
movq 0x98(%rsp), %r12
movq 0x30(%rsp), %rdi
movq 0x20(%rsp), %r8
movq 0x8(%rsp), %r9
movq 0x90(%rsp), %r11
movq 0x88(%rsp), %r10
incq %r8
cmpq 0x48(%rsp), %r8
jae 0x201e0e
incq %r9
cmpq 0x40(%rsp), %r9
jb 0x201b23
cmpl $0x0, 0x10(%rsp)
je 0x201e7a
movq 0x38(%rsp), %r8
testq %r8, %r8
js 0x201fac
pcmpeqd %xmm0, %xmm0
movq 0xe8(%rsp), %rbx
movdqu %xmm0, 0x4(%rbx)
movq 0x60(%rsp), %rax
movl %eax, (%rbx)
movb %r15b, 0x24(%rbx)
movq 0x80(%rsp), %rcx
movq 0x18(%rcx), %rax
movq %rax, 0x14(%rbx)
testq %r15, %r15
movq 0x68(%rsp), %r9
jne 0x201e8e
movl 0x20(%rcx), %eax
movl %eax, 0x1c(%rbx)
movl 0x24(%rcx), %esi
movq 0x18(%rsp), %rax
movl (%rax,%r8,8), %eax
movl (%rbp,%r8,8), %ecx
movl %ecx, 0x10(%rbx)
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
jmp 0x201eba
xorl %eax, %eax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
movl 0x18(%rdi), %eax
andl %esi, %eax
subl 0x24(%rcx), %eax
movl %eax, 0x1c(%rbx)
andl 0x18(%rdi), %esi
subl 0x20(%rcx), %esi
movq 0x18(%rsp), %rax
movl (%rax,%r8,8), %eax
movl 0x4(%rbp,%r8,8), %edx
movl %edx, 0xc(%rbx)
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
leaq 0x4(%rbx), %rdi
movl %esi, 0x20(%rbx)
movl %eax, 0x8(%rbx)
movq 0x18(%rsp), %rsi
movq (%rsi,%r8,8), %rsi
movq %r8, %r14
movq (%rbp,%r8,8), %r8
testq %r15, %r15
jne 0x201ee7
shrq $0x20, %r8
movl %r8d, 0xc(%rbx)
movl %r8d, %edx
jmp 0x201eee
movl %r8d, 0x10(%rbx)
movl %r8d, %ecx
movq (%r9,%r14,8), %r8
testq %r8, %r8
jns 0x201ec4
shrq $0x20, %rsi
movl %esi, (%rdi)
cmpl %eax, %esi
ja 0x201fcb
cmpl %ecx, %edx
ja 0x201fcb
movq 0x48(%r12), %r9
movl 0x18(%r9,%r10), %edi
movl %edi, %r8d
subl %ecx, %r8d
movl %edi, %r10d
subl %edx, %r10d
testq %r15, %r15
cmovel %edx, %r8d
cmovel %ecx, %r10d
xorl %ecx, %ecx
movl %esi, %edx
subl %r8d, %edx
cmovbl %ecx, %edx
subl %esi, %r8d
cmovbl %ecx, %r8d
movl 0x18(%r9,%r11), %esi
movq %rsi, %r9
subq %rax, %r9
movq %rdi, %r11
subq %r10, %r11
leal (%r9,%r10), %ecx
addl %r11d, %eax
cmpq %r11, %r9
cmovlel %esi, %eax
cmovgl %edi, %ecx
movl %edx, 0x4(%rbx)
movl %eax, 0x8(%rbx)
movl %r8d, 0xc(%rbx)
movl %ecx, 0x10(%rbx)
movl $0x1, %eax
testq %r15, %r15
je 0x201e7c
movl %edi, %edx
subl %ecx, %edx
movl %edx, 0xc(%rbx)
subl %r8d, %edi
movl %edi, 0x10(%rbx)
jmp 0x201e7c
leaq 0x44bd8(%rip), %rdi     # 0x246b6c
leaq 0x4366e(%rip), %rsi     # 0x245609
leaq 0x44bdd(%rip), %rcx     # 0x246b7f
movl $0x14a8, %edx           # imm = 0x14A8
callq 0x2110
leaq 0x44c4d(%rip), %rdi     # 0x246c00
leaq 0x4364f(%rip), %rsi     # 0x245609
leaq 0x44bbe(%rip), %rcx     # 0x246b7f
movl $0x14dd, %edx           # imm = 0x14DD
callq 0x2110
leaq 0x44c36(%rip), %rdi     # 0x246c08
leaq 0x43630(%rip), %rsi     # 0x245609
leaq 0x44b9f(%rip), %rcx     # 0x246b7f
movl $0x14f1, %edx           # imm = 0x14F1
callq 0x2110