// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Correct.cpp
// Function: rphase_lidel_cc(overlap_region_alloc*, ul_ov_t*, long, double, unsigned long, double, unsigned long, unsigned long, asg64_v*, asg64_v*)
int64_t rphase_lidel_cc(overlap_region_alloc* oa, ul_ov_t *a, int64_t an, double len_st, uint64_t len_w, double err_dif, uint64_t c_sz, uint64_t rid, asg64_v *buf, asg64_v *idx)
{
    int64_t k, z, mk, gni; uint64_t ol, ck, v, *ia, *ca, iak, ii, ian; double sw, msw = -1; 
    kv_resize(uint64_t, *idx, (oa->length<<1)); 
    ia = idx->a; ian = oa->length; iak = 0;
    ca = idx->a + oa->length; memset(ca, 0, sizeof((*ca))*oa->length);

    for (k = 0; k < an; k++) {
        ol = (a[k].qe - a[k].qs) * len_st; if(ol < len_w) ol = len_w;
        if((a[k].qe - a[k].qs) < ol) continue;
        for (z = k + 1; (z < an) && (a[z].qs < a[k].qe); z++) {
            if(cal_lindel_dd(&(a[k]), &(a[z]), len_st, len_w, err_dif, c_sz) >= 0) {
                a[k].sec++; a[z].sec++; 
                // fprintf(stderr, "(0)[M::%s] k(%ld)sec::%u\trid::%u\t%.*s\tq::[%u,%u)\terr::%u\n", __func__, k, a[k].sec, oa->list[a[k].tn].y_id, (int)Get_NAME_LENGTH(R_INF, oa->list[a[k].tn].y_id), Get_NAME(R_INF, oa->list[a[k].tn].y_id), a[k].qs, a[k].qe, a[k].qn);
                // fprintf(stderr, "(1)[M::%s] z(%ld)sec::%u\trid::%u\t%.*s\tq::[%u,%u)\terr::%u\n", __func__, z, a[z].sec, oa->list[a[z].tn].y_id, (int)Get_NAME_LENGTH(R_INF, oa->list[a[z].tn].y_id), Get_NAME(R_INF, oa->list[a[z].tn].y_id), a[z].qs, a[z].qe, a[z].qn);
            }
        }
    }
    
    for (k = z = 0; k < an; k++) {
        if(a[k].sec == 0) {
            // fprintf(stderr, "#[M::%s] z::%ld, sec::%u\trid::%u\t%.*s\tq::[%u,%u)\terr::%u\tel::%u\n", __func__, z, a[k].sec, oa->list[a[k].tn].y_id, (int)Get_NAME_LENGTH(R_INF, oa->list[a[k].tn].y_id), Get_NAME(R_INF, oa->list[a[k].tn].y_id), a[k].qs, a[k].qe, a[k].qn, a[k].el);
            continue;
        }
        a[k].ts = a[k].te = ((uint32_t)-1);///cluster
        // fprintf(stderr, "[M::%s] z::%ld, tn::%u, sec::%u\trid::%u\t%.*s\tq::[%u,%u)\terr::%u\n", __func__, z, a[k].tn, a[k].sec, oa->list[a[k].tn].y_id, (int)Get_NAME_LENGTH(R_INF, oa->list[a[k].tn].y_id), Get_NAME(R_INF, oa->list[a[k].tn].y_id), a[k].qs, a[k].qe, a[k].qn);
        a[z++] = a[k];
    }
    an = z;
    if(an == 0) return 0;

    // fprintf(stderr, "*0*[M::%s] rid::%lu, an::%ld\n", __func__, rid, an);
    for (k = ck = buf->n = gni = 0; k < an; k++) {
        if((a[k].sec < c_sz) || (a[k].ts != ((uint32_t)-1))) continue;
        // fprintf(stderr, "\n[M::%s] k::%ld\tsec::%u\tcc::%u\tck::%lu\ttn::%u\n", __func__, k, a[k].sec, a[k].ts, ck, a[k].tn);

        buf->n = 0; kv_push(uint64_t, *buf, k); iak = 0;
        while (buf->n) {
            v = buf->a[--buf->n];
            ol = (a[v].qe - a[v].qs) * len_st; if(ol < len_w) ol = len_w;
            if((a[v].qe - a[v].qs) < ol) continue;
            
            // fprintf(stderr, "*0*[M::%s] v::%lu\n", __func__, v);
            if((set_cgid(&(a[v]), ia, &iak, ian, ca, ck, oa->list, &gni)) || (a[v].ts == ck)) {
                // fprintf(stderr, "*1*[M::%s] v::%lu\n", __func__, v);
                for (z = 0; (z < an) && (a[z].qs < a[v].qe); z++) {
                    // fprintf(stderr, "*0*[M::%s] a[z].tn::%u, a[z].sec::%u, c_sz::%lu, a[z].ts:%u, v::%lu, z::%ld\n", __func__, a[z].tn, a[z].sec, c_sz, a[z].ts, v, z);
                    if((a[z].sec < c_sz) || (a[z].ts != ((uint32_t)-1)) || (((int64_t)v) == z)) continue;
                    // fprintf(stderr, "*1*[M::%s] a[z].tn::%u\n", __func__, a[z].tn);
                    if((cal_lindel_dd(&(a[v]), &(a[z]), len_st, len_w, err_dif, c_sz) >= 0) && (set_cgid(&(a[z]), ia, &iak, ian, ca, ck, oa->list, &gni))) {
                        kv_push(uint64_t, *buf, z);
                        // fprintf(stderr, "*2*[M::%s] z::%ld, a[z].tn::%u\n", __func__, z, a[z].tn);
                    }
                }
            }
        }

        for (ii = 0; ii < iak; ii++) ia[ii] = 0;
        ck++;
    }

    // for (k = 0; k < an; k++) {
    //     fprintf(stderr, "*0*[M::%s] z::%ld, tn::%u, sec::%u\trid::%u\t%.*s\tq::[%u,%u)\terr::%u\tgid::%u\n", __func__, k, a[k].tn, a[k].sec, oa->list[a[k].tn].y_id, (int)Get_NAME_LENGTH(R_INF, oa->list[a[k].tn].y_id), Get_NAME(R_INF, oa->list[a[k].tn].y_id), a[k].qs, a[k].qe, a[k].qn, a[k].ts);
    // }
    // fprintf(stderr, "*1*[M::%s] rid::%lu, an::%ld, ck::%lu\n", __func__, rid, an, ck);
    if(ck <= 0 || gni <= 0) return 0;

    if(gni < an) {
        ///build index for cluster
        buf->n = an + ck; kv_resize(uint64_t, *buf, buf->n); 
        memset(buf->a, -1, sizeof((*(buf->a)))*buf->n);
        ca = buf->a; ia = buf->a + ck;
        for (k = 0; k < an; k++) {
            if(a[k].ts == ((uint32_t)-1)) continue;
            if(ca[a[k].ts] != ((uint64_t)-1)) {
                ///set the previous one 
                assert(ia[((uint32_t)ca[a[k].ts])] == ((uint64_t)-1));
                ia[((uint32_t)ca[a[k].ts])] = k;
                ca[a[k].ts] >>= 32; ca[a[k].ts] <<= 32; ca[a[k].ts] |= k;
            } else {
                ca[a[k].ts] = k; ca[a[k].ts] <<= 32; ca[a[k].ts] |= ((uint64_t)k);
            }
        }
        

        for (k = ck = 0; k < an; k++) {
            if(a[k].ts != ((uint32_t)-1)) {
                ck++; continue;
            }
            ol = (a[k].qe - a[k].qs) * len_st; if(ol < len_w) ol = len_w;
            if((a[k].qe - a[k].qs) < ol) continue;
            mk = -1; msw = -1;
            for (z = 0/**k + 1**/; (z < an) && (a[z].qs < a[k].qe); z++) {
                if(a[z].sec < c_sz) continue;
                if(a[z].ts == ((uint32_t)-1)) continue;
                if(z == k) continue;
                sw = cal_lindel_dd(&(a[k]), &(a[z]), len_st, len_w, err_dif, c_sz);
                if(sw < 0) continue;
                if((sw > msw) && (is_get_group(a, /**an, rid,**/ ca, ia, a[z].ts, a[k].tn))) {
                    mk = a[z].ts; msw = sw;
                }
            }
            if(mk != -1) {
                ck++; a[k].ts = mk;
                ///set the previous one 
                assert(ia[((uint32_t)ca[a[k].ts])] == ((uint64_t)-1));
                ia[((uint32_t)ca[a[k].ts])] = k;
                ca[a[k].ts] >>= 32; ca[a[k].ts] <<= 32; ca[a[k].ts] |= k;
            }
        }
    } else {
        ck = gni;
    }
    radix_sort_ul_ov_srt_ts1(a, a + an);
    // for (k = 0; k < an; k++) {
    //     fprintf(stderr, "*1*[M::%s] z::%ld, tn::%u, sec::%u\trid::%u\t%.*s\tq::[%u,%u)\terr::%u\tgid::%u\n", __func__, k, a[k].tn, a[k].sec, oa->list[a[k].tn].y_id, (int)Get_NAME_LENGTH(R_INF, oa->list[a[k].tn].y_id), Get_NAME(R_INF, oa->list[a[k].tn].y_id), a[k].qs, a[k].qe, a[k].qn, a[k].ts);
    // }
    return ck;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %r8, %r12
movsd %xmm1, 0x50(%rsp)
movq %rcx, 0x40(%rsp)
movsd %xmm0, 0x38(%rsp)
movq %rdx, %r14
movq %rsi, (%rsp)
movq 0xa8(%rsp), %r15
movq 0x10(%rdi), %r13
leaq (,%r13,2), %rax
cmpq %rax, 0x8(%r15)
jae 0x70f56
movq %rdi, %rbx
decq %rax
movq %rax, %rcx
shrq %rcx
orq %rax, %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, 0x8(%r15)
movq 0x10(%r15), %rdi
leaq 0x8(,%rcx,8), %rsi
callq 0x2370
movq %rax, %rbp
movq %rax, 0x10(%r15)
movq 0x10(%rbx), %r13
jmp 0x70f5a
movq 0x10(%r15), %rbp
leaq (,%r13,8), %rdi
addq %rbp, %rdi
leaq (,%r13,8), %rdx
xorl %ebx, %ebx
movq %rdi, 0x28(%rsp)
xorl %esi, %esi
callq 0x20e0
testq %r14, %r14
jle 0x714cc
movq %rbp, 0x48(%rsp)
movq %r13, 0x58(%rsp)
movq %r12, 0x30(%rsp)
movq (%rsp), %rdi
leaq 0x1c(%rdi), %rax
movq %rax, 0x10(%rsp)
xorl %r13d, %r13d
movsd 0x1c035d(%rip), %xmm2   # 0x231308
leaq (,%r13,8), %rax
addq %r13, %rax
leaq (%rax,%rax,2), %rbx
addq %r13, %rbx
movl 0x8(%rdi,%rbx), %r15d
movl %r15d, %eax
subl 0x4(%rdi,%rbx), %eax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
mulsd 0x38(%rsp), %xmm0
cvttsd2si %xmm0, %rcx
movq %rcx, %rdx
sarq $0x3f, %rdx
subsd %xmm2, %xmm0
cvttsd2si %xmm0, %rsi
andq %rdx, %rsi
orq %rcx, %rsi
movq 0x40(%rsp), %rcx
cmpq %rcx, %rsi
cmovbeq %rcx, %rsi
cmpq %rax, %rsi
setbe %al
incq %r13
cmpq %r14, %r13
setl %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x71085
addq (%rsp), %rbx
movq 0x10(%rsp), %r12
movq %r13, %rbp
cmpl %r15d, 0x4(%r12)
jae 0x71085
movq %rbx, %rdi
movq %r12, %rsi
movsd 0x38(%rsp), %xmm0
movq 0x40(%rsp), %rdx
movsd 0x50(%rsp), %xmm1
callq 0x70d58
ucomisd 0x1c05cd(%rip), %xmm0   # 0x231618
jb 0x71079
movl 0x18(%rbx), %eax
leal 0x1(%rax), %ecx
movl $0x3fffffff, %edx       # imm = 0x3FFFFFFF
andl %edx, %ecx
movl $0xc0000000, %esi       # imm = 0xC0000000
andl %esi, %eax
orl %ecx, %eax
movl %eax, 0x18(%rbx)
movl 0x18(%r12), %eax
leal 0x1(%rax), %ecx
andl %edx, %ecx
andl %esi, %eax
orl %ecx, %eax
movl %eax, 0x18(%r12)
incq %rbp
addq $0x1c, %r12
cmpq %r14, %rbp
jl 0x71020
addq $0x1c, 0x10(%rsp)
cmpq %r14, %r13
movq (%rsp), %rdi
movsd 0x1c026e(%rip), %xmm2   # 0x231308
jne 0x70fab
testq %r14, %r14
jle 0x714ca
leaq 0x18(%rdi), %rax
xorl %r15d, %r15d
movq 0x30(%rsp), %rbp
movq 0xa0(%rsp), %r12
testl $0x3fffffff, (%rax)     # imm = 0x3FFFFFFF
je 0x710f3
leaq -0x18(%rax), %rcx
movq $-0x1, -0x8(%rax)
leaq (%r15,%r15,8), %rdx
leaq (%rdx,%rdx,2), %rdx
addq %r15, %rdx
incq %r15
movupd (%rcx), %xmm0
movupd 0xc(%rcx), %xmm1
movupd %xmm1, 0xc(%rdi,%rdx)
movupd %xmm0, (%rdi,%rdx)
addq $0x1c, %rax
decq %r14
jne 0x710bd
testq %r15, %r15
je 0x714ca
movq $0x0, (%r12)
jle 0x714ca
xorl %ebx, %ebx
movq $0x0, 0x8(%rsp)
movq $0x0, 0x18(%rsp)
movq %r15, 0x10(%rsp)
leaq (%rbx,%rbx,8), %rax
leaq (%rax,%rax,2), %rax
addq %rbx, %rax
movl 0x18(%rdi,%rax), %ecx
andl $0x3fffffff, %ecx       # imm = 0x3FFFFFFF
cmpq %rbp, %rcx
jb 0x7142c
addq %rdi, %rax
cmpl $-0x1, 0x10(%rax)
jne 0x7142c
movq $0x0, (%r12)
cmpq $0x0, 0x8(%r12)
movq 0x10(%r12), %r9
je 0x71170
xorl %eax, %eax
jmp 0x7119e
movq $0x2, 0x8(%r12)
movl $0x10, %esi
movq %r9, %rdi
callq 0x2370
movsd 0x1c017a(%rip), %xmm2   # 0x231308
movq (%rsp), %rdi
movq %rax, %r9
movq %rax, 0x10(%r12)
movq (%r12), %rax
leaq 0x1(%rax), %rcx
movq %rcx, (%r12)
movq %rbx, 0x60(%rsp)
movq %rbx, (%r9,%rax,8)
movq $0x0, 0x20(%rsp)
movq 0xa0(%rsp), %r12
movq (%r12), %rax
decq %rax
cmpq $-0x1, %rax
je 0x713fc
movq %rax, (%r12)
movq (%r9,%rax,8), %r13
leaq (,%r13,8), %rcx
addq %r13, %rcx
leaq (%rcx,%rcx,2), %r14
addq %r13, %r14
movl 0x8(%rdi,%r14), %ecx
subl 0x4(%rdi,%r14), %ecx
xorps %xmm0, %xmm0
cvtsi2sd %rcx, %xmm0
mulsd 0x38(%rsp), %xmm0
cvttsd2si %xmm0, %rdx
movq %rdx, %rsi
sarq $0x3f, %rsi
subsd %xmm2, %xmm0
cvttsd2si %xmm0, %r8
andq %rsi, %r8
orq %rdx, %r8
movq 0x40(%rsp), %rdx
cmpq %rdx, %r8
cmovbeq %rdx, %r8
decq %rax
cmpq %rcx, %r8
ja 0x711c7
addq %rdi, %r14
movl 0xc(%r14), %eax
movq 0x28(%rsp), %rcx
movq (%rcx,%rax,8), %rdx
cmpq $0x2, %rdx
jae 0x71767
movl 0x10(%r14), %ecx
testq %rdx, %rdx
jne 0x712a0
cmpl $-0x1, %ecx
jne 0x712a0
movq 0x8(%rsp), %rcx
movl %ecx, 0x10(%r14)
movq 0x28(%rsp), %rcx
movq $0x1, (%rcx,%rax,8)
movq 0x48(%rsp), %rcx
movq 0x20(%rsp), %rdx
movq %rax, (%rcx,%rdx,8)
incq %rdx
movq %rdx, 0x20(%rsp)
cmpq 0x58(%rsp), %rdx
movq 0x18(%rsp), %rax
ja 0x71786
incq %rax
movq %rax, 0x18(%rsp)
jmp 0x712ab
cmpq %rcx, 0x8(%rsp)
jne 0x711b8
movq %rdi, %rbx
xorl %r12d, %r12d
movl 0x4(%rbx), %eax
cmpl 0x8(%r14), %eax
jae 0x711b8
movl 0x18(%rbx), %eax
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
cmpq %rbp, %rax
jb 0x71345
cmpq %r12, %r13
je 0x71345
cmpl $-0x1, 0x10(%rbx)
jne 0x71345
movq %rbp, %r15
movq %r9, %rbp
movq %r14, %rdi
movq %rbx, %rsi
movsd 0x38(%rsp), %xmm0
movq 0x40(%rsp), %rdx
movsd 0x50(%rsp), %xmm1
callq 0x70d58
ucomisd 0x1c0318(%rip), %xmm0   # 0x231618
jae 0x71313
movq (%rsp), %rdi
movsd 0x1bfffa(%rip), %xmm2   # 0x231308
movq %rbp, %r9
jmp 0x7133d
movl 0xc(%rbx), %eax
movq 0x28(%rsp), %rcx
movq (%rcx,%rax,8), %rcx
cmpq $0x2, %rcx
jae 0x71767
testq %rcx, %rcx
movq (%rsp), %rdi
movsd 0x1bffd0(%rip), %xmm2   # 0x231308
movq %rbp, %r9
je 0x7135a
movq %r15, %rbp
movq 0x10(%rsp), %r15
incq %r12
addq $0x1c, %rbx
cmpq %r12, %r15
jne 0x712b1
jmp 0x711b8
movq 0x8(%rsp), %rcx
movl %ecx, 0x10(%rbx)
movq 0x28(%rsp), %rcx
movq $0x1, (%rcx,%rax,8)
movq 0x48(%rsp), %rcx
movq 0x20(%rsp), %rdx
movq %rax, (%rcx,%rdx,8)
incq %rdx
movq %rdx, 0x20(%rsp)
cmpq 0x58(%rsp), %rdx
ja 0x71786
movq %r15, %rbp
movq 0xa0(%rsp), %rdx
movq (%rdx), %rax
cmpq 0x8(%rdx), %rax
movq 0x10(%rsp), %r15
jne 0x713e7
leaq (%rax,%rax), %rsi
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rsi
movq %rsi, 0x8(%rdx)
shlq $0x3, %rsi
movq %r9, %rdi
callq 0x2370
movq 0xa0(%rsp), %rdx
movsd 0x1bff2f(%rip), %xmm2   # 0x231308
movq (%rsp), %rdi
movq %rax, %r9
movq %rax, 0x10(%rdx)
movq (%rdx), %rax
incq 0x18(%rsp)
leaq 0x1(%rax), %rcx
movq %rcx, (%rdx)
movq %r12, (%r9,%rax,8)
jmp 0x71345
movq 0x20(%rsp), %rdx
testq %rdx, %rdx
movq 0x60(%rsp), %rbx
je 0x71427
shlq $0x3, %rdx
movq 0x48(%rsp), %rdi
xorl %esi, %esi
callq 0x20e0
movsd 0x1bfee5(%rip), %xmm2   # 0x231308
movq (%rsp), %rdi
incq 0x8(%rsp)
incq %rbx
cmpq %r15, %rbx
jne 0x7112c
xorl %ebx, %ebx
cmpq $0x0, 0x8(%rsp)
je 0x714cc
movq 0x18(%rsp), %rax
testq %rax, %rax
jle 0x714cc
cmpq %r15, %rax
jge 0x71747
movq 0x8(%rsp), %rax
leaq (%rax,%r15), %rdx
movq %rdx, (%r12)
cmpq %rdx, 0x8(%r12)
jae 0x714de
decq %rdx
movq %rdx, %rax
shrq %rax
orq %rdx, %rax
movq %rax, %rcx
shrq $0x2, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x4, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x8, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x10, %rax
orq %rcx, %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%r12)
movq 0x10(%r12), %rdi
leaq 0x8(,%rax,8), %rsi
callq 0x2370
movq %rax, %rdi
movq %rax, 0x10(%r12)
movq (%r12), %rdx
jmp 0x714e3
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x10(%r12), %rdi
movabsq $-0x100000000, %rbx     # imm = 0xFFFFFFFF00000000
shlq $0x3, %rdx
movl $0xff, %esi
callq 0x20e0
movq 0x10(%r12), %r14
movq 0x8(%rsp), %rax
leaq (%r14,%rax,8), %r13
movq (%rsp), %rdi
leaq 0x10(%rdi), %rax
xorl %ecx, %ecx
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movabsq $0x100000000, %rsi      # imm = 0x100000000
xorl %r11d, %r11d
movsd 0x1bfddb(%rip), %xmm1   # 0x231308
movl (%rax), %r8d
cmpq %rdx, %r8
je 0x71564
movq (%r14,%r8,8), %r10
movq %rcx, %r9
cmpq $-0x1, %r10
je 0x7155d
movl %r10d, %r9d
cmpq $-0x1, (%r13,%r9,8)
jne 0x717a5
movq %r11, (%r13,%r9,8)
movq (%r14,%r8,8), %r9
andq %rbx, %r9
orq %r11, %r9
movq %r9, (%r14,%r8,8)
incq %r11
addq $0x1c, %rax
addq %rsi, %rcx
cmpq %r11, %r15
jne 0x7152d
movq %r14, 0x8(%rsp)
xorl %r14d, %r14d
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
movq $0x0, 0x18(%rsp)
leaq (%r14,%r14,8), %rax
leaq (%rax,%rax,2), %rbx
addq %r14, %rbx
cmpl $-0x1, 0x10(%rdi,%rbx)
je 0x715a6
incq 0x18(%rsp)
jmp 0x7173b
addq %rdi, %rbx
movl 0x8(%rbx), %r12d
movl %r12d, %eax
subl 0x4(%rbx), %eax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
mulsd 0x38(%rsp), %xmm0
cvttsd2si %xmm0, %rcx
movq %rcx, %rdx
subsd %xmm1, %xmm0
cvttsd2si %xmm0, %rsi
sarq $0x3f, %rdx
andq %rdx, %rsi
orq %rcx, %rsi
movq 0x40(%rsp), %rcx
cmpq %rcx, %rsi
cmovbeq %rcx, %rsi
cmpq %rax, %rsi
ja 0x7173b
movq $-0x1, 0x20(%rsp)
movsd 0x1c0036(%rip), %xmm0   # 0x231638
movsd %xmm0, 0x28(%rsp)
xorl %r15d, %r15d
leaq (%r15,%r15,8), %rax
leaq (%rax,%rax,2), %rsi
addq %r15, %rsi
cmpl %r12d, 0x4(%rdi,%rsi)
jae 0x716e9
addq %rdi, %rsi
movl 0x18(%rsi), %eax
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
cmpq %rbp, %rax
jb 0x71649
movl 0x10(%rsi), %ebp
cmpq %r8, %rbp
sete %al
cmpq %r14, %r15
sete %cl
orb %al, %cl
je 0x71658
movq 0x30(%rsp), %rbp
incq %r15
cmpq 0x10(%rsp), %r15
jne 0x7160b
jmp 0x716e9
movq %rbx, %rdi
movsd 0x38(%rsp), %xmm0
movq 0x40(%rsp), %rdx
movsd 0x50(%rsp), %xmm1
callq 0x70d58
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
ja 0x716cd
ucomisd 0x28(%rsp), %xmm0
movq (%rsp), %rdi
movsd 0x1bfc7b(%rip), %xmm1   # 0x231308
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
jbe 0x71644
movl 0xc(%rbx), %eax
movq 0x8(%rsp), %rcx
movl 0x4(%rcx,%rbp,8), %ecx
leaq (%rcx,%rcx,8), %rdx
leaq (%rdx,%rdx,2), %rdx
addq %rcx, %rdx
cmpl %eax, 0xc(%rdi,%rdx)
je 0x71644
movq (%r13,%rcx,8), %rcx
cmpq $-0x1, %rcx
jne 0x716a1
movq %rbp, 0x20(%rsp)
movsd %xmm0, 0x28(%rsp)
jmp 0x71644
movq (%rsp), %rdi
movq 0x30(%rsp), %rbp
movsd 0x1bfc2a(%rip), %xmm1   # 0x231308
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
jmp 0x71649
movq 0x20(%rsp), %rax
cmpq $-0x1, %rax
je 0x71736
movl %eax, 0x10(%rbx)
movl %eax, %eax
movq 0x8(%rsp), %rsi
movl (%rsi,%rax,8), %ecx
cmpq $-0x1, (%r13,%rcx,8)
movq 0x10(%rsp), %r15
jne 0x717c4
incq 0x18(%rsp)
movq %r14, (%r13,%rcx,8)
movq (%rsi,%rax,8), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
andq %rdx, %rcx
orq %r14, %rcx
movq %rcx, (%rsi,%rax,8)
jmp 0x7173b
movq 0x10(%rsp), %r15
incq %r14
cmpq %r15, %r14
jne 0x7158a
leaq (%r15,%r15,8), %rax
leaq (%rax,%rax,2), %rax
addq %rdi, %r15
addq %rax, %r15
movq %r15, %rsi
callq 0x4756b
movq 0x18(%rsp), %rbx
jmp 0x714cc
leaq 0x1c4460(%rip), %rdi    # 0x235bce
leaq 0x1bffde(%rip), %rsi    # 0x231753
leaq 0x1c4461(%rip), %rcx    # 0x235bdd
movl $0x4d32, %edx           # imm = 0x4D32
callq 0x2110
leaq 0x1c44c2(%rip), %rdi    # 0x235c4f
leaq 0x1bffbf(%rip), %rsi    # 0x231753
leaq 0x1c4442(%rip), %rcx    # 0x235bdd
movl $0x4d3b, %edx           # imm = 0x4D3B
callq 0x2110
leaq 0x1c2b98(%rip), %rdi    # 0x234344
leaq 0x1bffa0(%rip), %rsi    # 0x231753
leaq 0x1c2bb8(%rip), %rcx    # 0x234372
movl $0x4da0, %edx           # imm = 0x4DA0
callq 0x2110
leaq 0x1c2b79(%rip), %rdi    # 0x234344
leaq 0x1bff81(%rip), %rsi    # 0x231753
leaq 0x1c2b99(%rip), %rcx    # 0x234372
movl $0x4dbd, %edx           # imm = 0x4DBD
callq 0x2110