// File: /workspace/github_cpp_makefile_star2_O2/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 $0x88, %rsp
movq %r8, 0x70(%rsp)
movsd %xmm1, 0x68(%rsp)
movq %rcx, 0x28(%rsp)
movsd %xmm0, 0x20(%rsp)
movq %rdx, %r13
movq %rsi, %r15
movq 0xc8(%rsp), %rbx
movq 0x10(%rdi), %rcx
leaq (%rcx,%rcx), %rax
cmpq %rax, 0x8(%rbx)
movq %rdi, 0x40(%rsp)
jae 0x3f67a
movq %rdi, %r14
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(%rbx)
movq 0x10(%rbx), %rdi
leaq 0x8(,%rcx,8), %rsi
callq 0x2370
movq %rax, 0x10(%rbx)
movq 0x10(%r14), %rcx
jmp 0x3f67e
movq 0x10(%rbx), %rax
andq $0x0, 0x60(%rsp)
movq %rax, 0x10(%rsp)
leaq (%rax,%rcx,8), %rdi
movq %rcx, 0x58(%rsp)
leaq (,%rcx,8), %rdx
xorl %ebx, %ebx
movq %rdi, 0x38(%rsp)
xorl %esi, %esi
callq 0x20e0
testq %r13, %r13
movl $0x0, %ebp
cmovgq %r13, %rbp
leaq 0x1c(%r15), %rax
movq %rax, 0x50(%rsp)
pushq $0x1
popq %rax
movq %rax, 0x18(%rsp)
movl $0xc0000000, %r14d      # imm = 0xC0000000
movq %r15, 0x30(%rsp)
cmpq %rbp, %rbx
je 0x3f7b7
movq %rbx, 0x8(%rsp)
imulq $0x1c, %rbx, %rbx
movl 0x8(%r15,%rbx), %eax
subl 0x4(%r15,%rbx), %eax
cvtsi2sd %rax, %xmm0
mulsd 0x20(%rsp), %xmm0
cvttsd2si %xmm0, %rcx
movq %rcx, %rdx
subsd 0x1a3b91(%rip), %xmm0   # 0x1e3298
cvttsd2si %xmm0, %rsi
sarq $0x3f, %rdx
andq %rdx, %rsi
orq %rcx, %rsi
movq 0x28(%rsp), %rcx
cmpq %rcx, %rsi
cmovbeq %rcx, %rsi
cmpq %rax, %rsi
jbe 0x3f741
movq 0x8(%rsp), %rbx
incq %rbx
incq 0x18(%rsp)
addq $0x1c, 0x50(%rsp)
movq 0x30(%rsp), %r15
jmp 0x3f6d0
addq 0x30(%rsp), %rbx
movq 0x50(%rsp), %r12
movq 0x18(%rsp), %r15
cmpq %r13, %r15
jge 0x3f727
movl 0x4(%r12), %eax
cmpl 0x8(%rbx), %eax
jae 0x3f727
movq %rbx, %rdi
movq %r12, %rsi
movsd 0x20(%rsp), %xmm0
movq 0x28(%rsp), %rdx
movsd 0x68(%rsp), %xmm1
callq 0x3f496
ucomisd 0x1a3de5(%rip), %xmm0   # 0x1e3568
jb 0x3f7ae
movl 0x18(%rbx), %eax
leal 0x1(%rax), %ecx
movl $0x3fffffff, %edx       # imm = 0x3FFFFFFF
andl %edx, %ecx
andl %r14d, %eax
orl %ecx, %eax
movl %eax, 0x18(%rbx)
movl 0x18(%r12), %eax
leal 0x1(%rax), %ecx
andl %edx, %ecx
andl %r14d, %eax
orl %ecx, %eax
movl %eax, 0x18(%r12)
incq %r15
addq $0x1c, %r12
jmp 0x3f750
leaq 0x18(%r15), %rax
xorl %esi, %esi
subq $0x1, %rbp
jb 0x3f7f7
testl $0x3fffffff, (%rax)     # imm = 0x3FFFFFFF
je 0x3f7f1
orq $-0x1, -0x8(%rax)
leaq -0x18(%rax), %rcx
imulq $0x1c, %rsi, %rdx
incq %rsi
movupd (%rcx), %xmm0
movupd 0xc(%rcx), %xmm1
movupd %xmm1, 0xc(%r15,%rdx)
movupd %xmm0, (%r15,%rdx)
addq $0x1c, %rax
jmp 0x3f7bd
testq %rsi, %rsi
je 0x3fa92
leaq 0x78(%rsp), %rax
andq $0x0, (%rax)
movq 0xc0(%rsp), %rbx
andq $0x0, (%rbx)
movq $0x0, 0x8(%rsp)
testq %rsi, %rsi
movl $0x0, %r13d
movq %rsi, 0x18(%rsp)
cmovgq %rsi, %r13
xorl %r14d, %r14d
movq %r13, 0x50(%rsp)
cmpq %r13, %r14
je 0x3fa7a
imulq $0x1c, %r14, %rax
movl 0x18(%r15,%rax), %ecx
andl $0x3fffffff, %ecx       # imm = 0x3FFFFFFF
cmpq 0x70(%rsp), %rcx
jb 0x3fa72
addq %r15, %rax
cmpl $-0x1, 0x10(%rax)
jne 0x3fa72
andq $0x0, (%rbx)
cmpq $0x0, 0x8(%rbx)
movq 0x10(%rbx), %rax
je 0x3f87b
xorl %ecx, %ecx
jmp 0x3f895
movq $0x2, 0x8(%rbx)
movq %rax, %rdi
pushq $0x10
popq %rsi
callq 0x2370
movq %rax, 0x10(%rbx)
movq (%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, (%rbx)
movq %r14, 0x48(%rsp)
movq %r14, (%rax,%rcx,8)
andq $0x0, 0x60(%rsp)
movq 0xc0(%rsp), %rbx
movq (%rbx), %rax
testq %rax, %rax
je 0x3fa50
movq 0x10(%rbx), %rcx
leaq -0x1(%rax), %rdx
movq %rdx, (%rbx)
movq -0x8(%rcx,%rax,8), %rbp
imulq $0x1c, %rbp, %r12
movl 0x8(%r15,%r12), %eax
subl 0x4(%r15,%r12), %eax
cvtsi2sd %rax, %xmm0
mulsd 0x20(%rsp), %xmm0
cvttsd2si %xmm0, %rcx
movq %rcx, %rdx
subsd 0x1a39a0(%rip), %xmm0   # 0x1e3298
cvttsd2si %xmm0, %rsi
sarq $0x3f, %rdx
andq %rdx, %rsi
orq %rcx, %rsi
movq 0x28(%rsp), %rcx
cmpq %rcx, %rsi
cmovbeq %rcx, %rsi
cmpq %rax, %rsi
ja 0x3f8ab
addq %r15, %r12
movq %r12, %rdi
movq 0x10(%rsp), %rsi
leaq 0x60(%rsp), %rdx
movq 0x58(%rsp), %rcx
movq 0x38(%rsp), %r8
movq 0x8(%rsp), %r9
leaq 0x78(%rsp), %rax
pushq %rax
movq 0x48(%rsp), %rax
pushq (%rax)
callq 0x62a80
popq %rcx
popq %rdx
testq %rax, %rax
jne 0x3f960
movl 0x10(%r12), %eax
cmpq %rax, 0x8(%rsp)
jne 0x3f8ab
movq %r15, %rbx
xorl %r14d, %r14d
cmpq %r14, %r13
je 0x3f8ab
movl 0x4(%rbx), %eax
cmpl 0x8(%r12), %eax
jae 0x3f8ab
movl 0x18(%rbx), %eax
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
cmpq 0x70(%rsp), %rax
jae 0x3f995
incq %r14
addq $0x1c, %rbx
jmp 0x3f966
cmpq %r14, %rbp
je 0x3f98c
cmpl $-0x1, 0x10(%rbx)
jne 0x3f98c
movq %r12, %rdi
movq %rbx, %rsi
movsd 0x20(%rsp), %xmm0
movq 0x28(%rsp), %rdx
movsd 0x68(%rsp), %xmm1
callq 0x3f496
ucomisd 0x1a3ba4(%rip), %xmm0   # 0x1e3568
jb 0x3f98c
movq %rbx, %rdi
movq 0x10(%rsp), %rsi
leaq 0x60(%rsp), %rdx
movq 0x58(%rsp), %rcx
movq 0x38(%rsp), %r8
movq 0x8(%rsp), %r9
leaq 0x78(%rsp), %rax
pushq %rax
movq 0x48(%rsp), %rax
pushq (%rax)
callq 0x62a80
popq %rcx
popq %rdx
testq %rax, %rax
je 0x3f98c
movq %r15, %r13
movq 0xc0(%rsp), %r15
movq (%r15), %rcx
movq 0x10(%r15), %rax
cmpq 0x8(%r15), %rcx
jne 0x3fa38
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
pushq $0x2
popq %rcx
cmoveq %rcx, %rsi
movq %rsi, 0x8(%r15)
shlq $0x3, %rsi
movq %rax, %rdi
callq 0x2370
movq %rax, 0x10(%r15)
movq (%r15), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, (%r15)
movq %r14, (%rax,%rcx,8)
movq %r13, %r15
movq 0x50(%rsp), %r13
jmp 0x3f98c
xorl %eax, %eax
movq 0x10(%rsp), %rcx
movq 0x48(%rsp), %r14
cmpq 0x60(%rsp), %rax
jae 0x3fa6d
andq $0x0, (%rcx,%rax,8)
incq %rax
jmp 0x3fa5c
incq 0x8(%rsp)
incq %r14
jmp 0x3f838
cmpq $0x0, 0x8(%rsp)
sete %al
movq 0x78(%rsp), %r14
testq %r14, %r14
setle %cl
orb %al, %cl
je 0x3fa9a
xorl %r14d, %r14d
jmp 0x3fd8e
movq 0x18(%rsp), %rax
cmpq %rax, %r14
jge 0x3fd7f
movq 0x8(%rsp), %rcx
leaq (%rcx,%rax), %rdx
movq %rdx, (%rbx)
movq 0x10(%rbx), %rdi
cmpq %rdx, 0x8(%rbx)
jae 0x3fb11
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(%rbx)
leaq 0x8(,%rax,8), %rsi
callq 0x2370
movq %rax, %rdi
movq %rax, 0x10(%rbx)
movq (%rbx), %rdx
movabsq $-0x100000000, %r14     # imm = 0xFFFFFFFF00000000
shlq $0x3, %rdx
movl $0xff, %esi
callq 0x20e0
movq 0x10(%rbx), %r11
movq 0x8(%rsp), %rax
leaq (%r11,%rax,8), %rbx
leaq 0x10(%r15), %rax
xorl %ecx, %ecx
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movabsq $0x100000000, %rsi      # imm = 0x100000000
xorl %edi, %edi
cmpq %rdi, %r13
je 0x3fb93
movl (%rax), %r8d
cmpq %rdx, %r8
je 0x3fb87
movq (%r11,%r8,8), %r10
movq %rcx, %r9
cmpq $-0x1, %r10
je 0x3fb80
movl %r10d, %r9d
cmpq $-0x1, (%rbx,%r9,8)
jne 0x3fda3
movq %rdi, (%rbx,%r9,8)
movq (%r11,%r8,8), %r9
andq %r14, %r9
orq %rdi, %r9
movq %r9, (%r11,%r8,8)
incq %rdi
addq %rsi, %rcx
addq $0x1c, %rax
jmp 0x3fb4d
xorl %r14d, %r14d
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
xorl %ebp, %ebp
movq %r11, 0x38(%rsp)
movq %rbx, 0x48(%rsp)
cmpq %r13, %rbp
je 0x3fd7a
imulq $0x1c, %rbp, %rdi
cmpl $-0x1, 0x10(%r15,%rdi)
je 0x3fbc5
incq %r14
jmp 0x3fd72
addq %r15, %rdi
movl 0x8(%rdi), %r9d
movl %r9d, %eax
subl 0x4(%rdi), %eax
cvtsi2sd %rax, %xmm0
mulsd 0x20(%rsp), %xmm0
cvttsd2si %xmm0, %rcx
movq %rcx, %rdx
subsd 0x1a36ab(%rip), %xmm0   # 0x1e3298
cvttsd2si %xmm0, %rsi
sarq $0x3f, %rdx
andq %rdx, %rsi
orq %rcx, %rsi
movq 0x28(%rsp), %rcx
cmpq %rcx, %rsi
cmovbeq %rcx, %rsi
cmpq %rax, %rsi
ja 0x3fd72
movq %r14, 0x80(%rsp)
movq %r15, %rbx
xorl %r15d, %r15d
pushq $-0x1
popq %r14
movq %r14, 0x40(%rsp)
movsd 0x1a3950(%rip), %xmm0   # 0x1e3580
movsd %xmm0, 0x8(%rsp)
movl %r9d, 0x10(%rsp)
cmpq %r15, 0x18(%rsp)
je 0x3fd0e
cmpl %r9d, 0x4(%rbx)
jae 0x3fd0e
movl 0x18(%rbx), %eax
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
cmpq 0x70(%rsp), %rax
jb 0x3fd02
movl 0x10(%rbx), %r12d
cmpq %r8, %r12
sete %al
cmpq %r15, %rbp
sete %cl
orb %al, %cl
jne 0x3fd02
movq %rdi, %r14
movq %rbx, %rsi
movsd 0x20(%rsp), %xmm0
movq 0x28(%rsp), %rdx
movsd 0x68(%rsp), %xmm1
callq 0x3f496
movapd %xmm0, %xmm1
xorpd %xmm0, %xmm0
ucomisd %xmm1, %xmm0
ja 0x3fcf4
ucomisd 0x8(%rsp), %xmm1
jbe 0x3fcf4
movsd %xmm1, 0x58(%rsp)
movl 0xc(%r14), %r8d
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq %r12, %rcx
callq 0x3f5b5
movq %r14, %rdi
testq %rax, %rax
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
movl 0x10(%rsp), %r9d
je 0x3fd02
movq %r12, 0x40(%rsp)
movsd 0x58(%rsp), %xmm0
movsd %xmm0, 0x8(%rsp)
jmp 0x3fd02
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
movq %r14, %rdi
movl 0x10(%rsp), %r9d
incq %r15
addq $0x1c, %rbx
jmp 0x3fc3b
movq 0x40(%rsp), %rax
cmpq $-0x1, %rax
je 0x3fd65
movl %eax, 0x10(%rdi)
movl %eax, %eax
movq 0x38(%rsp), %r11
movl (%r11,%rax,8), %ecx
movq 0x48(%rsp), %rbx
cmpq $-0x1, (%rbx,%rcx,8)
movq 0x30(%rsp), %r15
jne 0x3fdc2
movq 0x80(%rsp), %r14
incq %r14
movq %rbp, (%rbx,%rcx,8)
movq (%r11,%rax,8), %rcx
movabsq $-0x100000000, %rdx     # imm = 0xFFFFFFFF00000000
andq %rdx, %rcx
orq %rbp, %rcx
movq %rcx, (%r11,%rax,8)
jmp 0x3fd72
movq 0x30(%rsp), %r15
movq 0x80(%rsp), %r14
incq %rbp
jmp 0x3fba8
movq 0x18(%rsp), %rax
imulq $0x1c, %rax, %rsi
addq %r15, %rsi
movq %r15, %rdi
callq 0x1b1ca
movq %r14, %rax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1a64ea(%rip), %rdi    # 0x1e6294
leaq 0x1a38f2(%rip), %rsi    # 0x1e36a3
leaq 0x1a650a(%rip), %rcx    # 0x1e62c2
movl $0x4da0, %edx           # imm = 0x4DA0
callq 0x2110
leaq 0x1a64cb(%rip), %rdi    # 0x1e6294
leaq 0x1a38d3(%rip), %rsi    # 0x1e36a3
leaq 0x1a64eb(%rip), %rcx    # 0x1e62c2
movl $0x4dbd, %edx           # imm = 0x4DBD
callq 0x2110