// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/ecovlp.cpp
// Function: wcns_gen(overlap_region_alloc*, All_reads*, UC_Read*, UC_Read*, bit_extz_t*, kv_ul_ov_t*, asg64_v*, asg64_v*, long, unsigned long, long, unsigned long, double, overlap_region*, asg32_v*, cns_gfa*, unsigned long, unsigned int)
uint64_t wcns_gen(overlap_region_alloc* ol, All_reads *rref, UC_Read* qu, UC_Read* tu, bit_extz_t *exz, kv_ul_ov_t *c_idx, asg64_v* idx, asg64_v* buf, int64_t bd, uint64_t wl, int64_t ql, uint64_t occ_tot, double occ_exact, overlap_region *aux_o, asg32_v* b32, cns_gfa *cns, uint64_t cns_g_wl, uint32_t rid)
{
    int64_t on = ol->length, k, i, zwn, q[2]; cns->cns_g_wl = cns_g_wl;
    uint64_t m, *ra, rn, nec = 0, n_id, l_nid, p[2], li; overlap_region *z; ul_ov_t *cp; 
    bit_extz_t ez; uint64_t ci; uint32_t cl; uint16_t c;

    for (k = idx->n = c_idx->n = 0; k < on; k++) {
        z = &(ol->list[k]); zwn = z->w_list.n; z->without_large_indel = l_nid = 0;
        if((!zwn) || (z->is_match != 1)) continue;
        for (i = 0, li = (uint64_t)-1; i < zwn; i++) {
            if(is_ualn_win(z->w_list.a[i])) {
                n_id = z->w_list.a[i].x_end + 1 - z->w_list.a[i].x_start; 
                if(n_id >= 6) l_nid = 1;
                continue;
            }
            q[0] = z->w_list.a[i].x_start; q[1] = z->w_list.a[i].x_end;
            q[0] += bd; q[1] -= bd;
            if(q[1] >= q[0]) {
                m = ((uint64_t)q[0]); m <<= 32; 
                m += c_idx->n; kv_push(uint64_t, *idx, m);

                kv_pushp(ul_ov_t, *c_idx, &cp);
                ovlp_id(*cp) = k; ///ovlp id
                // ovlp_min_wid(*cp) = i; ///beg id of windows
                // ovlp_max_wid(*cp) = i; ///end id of windows
                ovlp_cur_wid(*cp) = i; ///cur id of windows
                ovlp_cur_xoff(*cp) = z->w_list.a[i].x_start; ///cur xpos
                ovlp_cur_yoff(*cp) = z->w_list.a[i].y_start; ///cur xpos
                ovlp_cur_ylen(*cp) = 0;
                ovlp_cur_coff(*cp) = 0; ///cur cigar off in cur window
                ovlp_bd(*cp) = bd;
            }

            if(l_nid == 0) {
                if(i == 0) {
                    p[0] = z->w_list.a[i].x_start; p[1] = z->x_pos_s;
                    n_id = ((p[0] >= p[1])? (p[0] - p[1]): (p[1] - p[0]));
                    if(n_id >= 6) l_nid = 1;
                } 
                
                if(li != (uint64_t)-1) {
                    p[0] = z->w_list.a[i].x_start; p[1] = z->w_list.a[li].x_end + 1;
                    n_id = ((p[0] >= p[1])? (p[0] - p[1]): (p[1] - p[0]));
                    if(n_id >= 6) l_nid = 1;

                    p[0] = z->w_list.a[i].y_start; p[1] = z->w_list.a[li].y_end + 1;
                    n_id = ((p[0] >= p[1])? (p[0] - p[1]): (p[1] - p[0]));
                    if(n_id >= 6) l_nid = 1;
                }

                if(i + 1 == zwn) {
                    p[0] = z->w_list.a[i].x_end; p[1] = z->x_pos_e;
                    n_id = ((p[0] >= p[1])? (p[0] - p[1]): (p[1] - p[0]));
                    if(n_id >= 6) l_nid = 1;
                } 

                if(l_nid == 0) {
                    set_bit_extz_t(ez, (*z), i); ci = 0;
                    while (ci < ez.cigar.n && l_nid == 0) {
                        ci = pop_trace(&(ez.cigar), ci, &c, &cl);
                        if(c >= 2 && cl >= 6) l_nid = 1;
                    }
                }
            }

            li = i;
        }
        z->without_large_indel = (l_nid?0:1);
    }

    int64_t srt_n = idx->n, s, e, t, rr; i = 0;
    radix_sort_ec64(idx->a, idx->a+idx->n);
    for (k = 1, i = 0; k < srt_n; k++) {
        if (k == srt_n || (idx->a[k]>>32) != (idx->a[i]>>32)) {
            if(k - i > 1) {
                for (t = i; t < k; t++) {
                    cp = &(c_idx->a[(uint32_t)idx->a[t]]);
                    // s = ol->list[ovlp_id(*cp)].w_list.a[ovlp_cur_wid(*cp)].x_start+ovlp_bd(*cp);
                    // assert(s == (int64_t)(idx->a[i]>>32));
                    m = ol->list[ovlp_id(*cp)].w_list.a[ovlp_cur_wid(*cp)].x_end+1-ovlp_bd(*cp);
                    m <<= 32; m += ((uint32_t)idx->a[t]); idx->a[t] = m;
                    // fprintf(stderr, "[M::%s] s::%ld\tsi::%lu\n", __func__, s, (idx->a[i]>>32));
                }
                radix_sort_ec64(idx->a + i, idx->a + k);
            }
            i = k;
        }
    }

    // print_debug_ovlp_cigar(ol, idx, c_idx);

    ///second index
    kv_resize(ul_ov_t, *c_idx, (c_idx->n<<1));
    ul_ov_t *idx_a = NULL, *idx_b = NULL;
    idx_a = c_idx->a; idx_b = c_idx->a;
    memcpy(idx_b, idx_a, c_idx->n * (sizeof((*(idx_a)))));

    kv_resize(uint64_t, *buf, ((wl<<1) + idx->n)); buf->n = ((wl<<1) + idx->n);
    memcpy(buf->a + (wl<<1), idx->a, idx->n * (sizeof((*(idx->a)))));
    memset(buf->a, 0, (wl<<1)*(sizeof((*(idx->a)))));

    cc_idx_t ii_a, ii_b; memset(&ii_a, 0, sizeof(ii_a)); memset(&ii_b, 0, sizeof(ii_b));

    ii_a.c_idx = idx_a; ii_a.idx = idx; ii_a.i = ii_a.i0 = 0; ii_a.srt_n = ii_a.idx->n; ii_a.mms = ii_a.mme = (uint64_t)-1;
    ii_b.c_idx = idx_b; ii_b.idx = buf; ii_b.i = ii_b.i0 = (wl<<1); ii_b.srt_n = ii_b.idx->n; ii_b.mms = ii_b.mme = (uint64_t)-1;

    s = 0; e = wl; e = ((e<=ql)?e:ql); rr = 0; 
    aux_o->w_list.n = aux_o->w_list.c.n = 0; ///for cigar
    for (; s < ql; ) {
        rn = iter_cc_idx_t(ol->list, &ii_a, s, e, rr, 0, &ra);
        // debug_inter0(ol->list, ii_a.c_idx, ii_a.idx->a + ii_a.i0, ii_a.srt_n - ii_a.i0, ra, rn, s, e, 0, 1, "-0-");
        rr = wcns_vote(ol->list, rref, qu->seq, ql, tu, exz, ra, rn, s, e, ii_a.c_idx, &ii_b, occ_tot, occ_exact, aux_o, b32, cns, rid, &nec);
        s += wl; e += wl; e = ((e<=ql)?e:ql);
    }

    if(ii_b.mme > ii_b.mms && ii_b.mms != (uint64_t)-1) {
        nec += push_cns_anchor(ol->list, rref, ii_b.mms, ii_b.mme, qu->seq, ql, tu, exz, &ii_b, aux_o, 0, occ_tot, occ_exact, b32, cns, rid);
    }

    nec += push_cns_anchor(ol->list, rref, ql, ql, qu->seq, ql, tu, exz, &ii_b, aux_o, 1, occ_tot, occ_exact, b32, cns, rid);



    ///for debug
    // zwn = aux_o->w_list.n;
    // fprintf(stderr, "\n******[M::%s]****** wn::%ld, ql::%ld\n", __func__, zwn, ql);
    // prt_correct0_dbg(aux_o);
    // for (i = 0; i < zwn; i++) {
    //     fprintf(stderr, "[M::%s] (%ld)[%d, %d)\n", __func__, i, aux_o->w_list.a[i].x_start, aux_o->w_list.a[i].x_end+1);
    // }
    return nec;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1e8, %rsp            # imm = 0x1E8
movq %xmm0, 0x18(%rsp)
movq %r8, 0x40(%rsp)
movq %rcx, 0x38(%rsp)
movq %rdx, 0x30(%rsp)
movq %rsi, 0x10(%rsp)
movq %rdi, %rbx
movq 0x260(%rsp), %rcx
movl 0x268(%rsp), %eax
movq 0x10(%rdi), %rdx
movl %eax, 0x30(%rcx)
andq $0x0, 0x48(%rsp)
movq %r9, 0x28(%rsp)
andq $0x0, 0x8(%r9)
movq 0x220(%rsp), %r13
andq $0x0, (%r13)
movq 0x230(%rsp), %rax
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
movl %eax, 0x50(%rsp)
xorl %ecx, %ecx
testq %rdx, %rdx
cmovleq %rcx, %rdx
movq 0x250(%rsp), %r12
movq %rdi, 0x20(%rsp)
movq %rdx, 0x68(%rsp)
cmpq %rdx, %rcx
je 0x1427c6
movq (%rbx), %r9
imulq $0xa8, %rcx, %rax
movq 0x48(%r9,%rax), %rsi
movb $0x0, 0x2d(%r9,%rax)
movq %rsi, 0x58(%rsp)
testq %rsi, %rsi
je 0x1427b6
addq %rax, %r9
cmpb $0x1, 0x2c(%r9)
jne 0x1427b6
movq %rcx, 0x60(%rsp)
movq 0x58(%rsp), %rax
testq %rax, %rax
movl $0x0, %ecx
cmovgq %rax, %rcx
movq %rcx, 0x70(%rsp)
xorl %r12d, %r12d
pushq $-0x1
popq %r15
xorl %r14d, %r14d
movq 0x28(%rsp), %r13
movq %r9, (%rsp)
cmpq 0x70(%rsp), %r14
je 0x142797
movq 0x58(%r9), %rcx
movq %r14, %rbp
shlq $0x5, %rbp
leaq (%rcx,%rbp), %rax
cmpw $0x7fff, 0x14(%rcx,%rbp) # imm = 0x7FFF
jne 0x1424d9
cmpl $0x0, 0x1c(%rax)
jne 0x1424d9
cmpw $0x0, 0x12(%rax)
js 0x142778
movslq (%rax), %rbx
movslq 0x4(%rax), %rax
movq 0x230(%rsp), %rcx
addq %rcx, %rbx
subq %rcx, %rax
cmpq %rbx, %rax
jl 0x1425cd
shlq $0x20, %rbx
addq 0x8(%r13), %rbx
movq 0x220(%rsp), %r13
movq (%r13), %rcx
movq 0x10(%r13), %rax
cmpq 0x8(%r13), %rcx
jne 0x14253b
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
pushq $0x2
popq %rcx
cmoveq %rcx, %rsi
movq %rsi, 0x8(%r13)
shlq $0x3, %rsi
movq %rax, %rdi
callq 0x2370
movq %rax, 0x10(%r13)
movq (%r13), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, (%r13)
movq %rbx, (%rax,%rcx,8)
movq 0x28(%rsp), %r13
movq (%r13), %rax
movq 0x8(%r13), %rcx
cmpq 0x10(%r13), %rcx
jne 0x142580
leaq (%rcx,%rcx), %rdx
testq %rcx, %rcx
pushq $0x2
popq %rcx
cmoveq %rcx, %rdx
movq %rdx, 0x10(%r13)
imulq $0x1c, %rdx, %rsi
movq %rax, %rdi
callq 0x2370
movq %rax, (%r13)
movq 0x8(%r13), %rcx
movq (%rsp), %rsi
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%r13)
imulq $0x1c, %rcx, %rcx
movq 0x60(%rsp), %rdx
movl %edx, 0xc(%rax,%rcx)
movl %r14d, (%rax,%rcx)
movq 0x58(%rsi), %rdx
movl (%rdx,%rbp), %esi
movl %esi, 0x4(%rax,%rcx)
movl 0x8(%rdx,%rbp), %edx
movl %edx, 0x10(%rax,%rcx)
andl $0x0, 0x14(%rax,%rcx)
andl $0x0, 0x8(%rax,%rcx)
movl 0x18(%rax,%rcx), %edx
movl $0xc0000000, %esi       # imm = 0xC0000000
andl %esi, %edx
addl 0x50(%rsp), %edx
movl %edx, 0x18(%rax,%rcx)
movq %r14, %rsi
testq %r12, %r12
pushq $0x1
popq %r12
movq (%rsp), %r9
jne 0x14278c
testq %r14, %r14
je 0x1425ea
xorl %eax, %eax
jmp 0x14260e
movq 0x58(%r9), %rax
movslq (%rax), %rcx
movl 0x4(%r9), %eax
movq %rcx, %rdx
subq %rax, %rdx
negq %rdx
subq %rax, %rcx
cmovbq %rdx, %rcx
xorl %eax, %eax
cmpq $0x6, %rcx
setae %al
cmpq $-0x1, %r15
je 0x14266c
movq 0x58(%r9), %rcx
movslq (%rcx,%rbp), %rdx
shlq $0x5, %r15
movslq 0x4(%rcx,%r15), %rsi
incq %rsi
movq %rdx, %rdi
subq %rsi, %rdi
movq %rsi, %r8
subq %rdx, %r8
cmpl %esi, %edx
cmovaeq %rdi, %r8
movslq 0x8(%rcx,%rbp), %rdx
movslq 0xc(%rcx,%r15), %rcx
incq %rcx
movq %rdx, %rsi
subq %rcx, %rsi
movq %rcx, %rdi
subq %rdx, %rdi
cmpl %ecx, %edx
cmovaeq %rsi, %rdi
cmpq $0x6, %r8
pushq $0x1
popq %rcx
cmovaeq %rcx, %rax
cmpq $0x6, %rdi
cmovaeq %rcx, %rax
leaq 0x1(%r14), %rcx
cmpq 0x58(%rsp), %rcx
jne 0x1426b1
movq 0x58(%r9), %rcx
movslq 0x4(%rcx,%rbp), %rdx
movl 0x8(%r9), %esi
movq %rdx, %rdi
subq %rsi, %rdi
negq %rdi
movq %rdx, %r8
subq %rsi, %r8
cmovbq %rdi, %r8
movq %r14, %rsi
cmpq $0x5, %r8
ja 0x14278c
movq %r14, %rsi
testq %rax, %rax
je 0x1426c5
jmp 0x14278c
movq %r14, %rsi
testq %rax, %rax
jne 0x14278c
movq 0x58(%r9), %rcx
movl 0x4(%rcx,%rbp), %edx
movl 0x18(%rcx,%rbp), %eax
addq %rax, %rax
addq 0x70(%r9), %rax
movq %rax, 0x180(%rsp)
movl 0x1c(%rcx,%rbp), %eax
movq %rax, 0x178(%rsp)
movq %rax, 0x170(%rsp)
movl (%rcx,%rbp), %esi
movl %esi, 0xe4(%rsp)
movl %edx, 0xe8(%rsp)
movq 0x8(%rcx,%rbp), %rdx
movq %rdx, 0xd8(%rsp)
movswl 0x14(%rcx,%rbp), %ecx
movl %ecx, 0xf4(%rsp)
movl %ecx, 0xf0(%rsp)
xorl %r12d, %r12d
xorl %esi, %esi
leaq 0x170(%rsp), %rbx
leaq 0xe(%rsp), %r15
leaq 0x54(%rsp), %rbp
testq %r12, %r12
jne 0x14276f
cmpq %rax, %rsi
jae 0x14276f
movq %rbx, %rdi
movq %r15, %rdx
movq %rbp, %rcx
callq 0x53a7d
cmpw $0x2, 0xe(%rsp)
movl %eax, %esi
setae %al
cmpl $0x6, 0x54(%rsp)
setae %cl
andb %al, %cl
movzbl %cl, %r12d
movq 0x170(%rsp), %rax
jmp 0x142734
movq %r14, %rsi
movq (%rsp), %r9
jmp 0x14278c
movl 0x4(%rax), %ecx
subl (%rax), %ecx
incl %ecx
cmpl $0x6, %ecx
pushq $0x1
popq %rax
cmovaeq %rax, %r12
movq %r15, %rsi
incq %r14
movq %rsi, %r15
jmp 0x1424a5
testq %r12, %r12
sete 0x2d(%r9)
movq 0x20(%rsp), %rbx
movq 0x250(%rsp), %r12
movq 0x68(%rsp), %rdx
movq 0x60(%rsp), %rcx
incq %rcx
movq 0x220(%rsp), %r13
jmp 0x14243d
movq (%r13), %r14
movq 0x10(%r13), %rdi
leaq (%rdi,%r14,8), %rsi
callq 0x13d044
pushq $0x1
popq %r15
xorl %eax, %eax
movl $0x3fffffff, %ebp       # imm = 0x3FFFFFFF
cmpq %r14, %r15
jge 0x142879
movq 0x10(%r13), %rcx
movq (%rcx,%rax,8), %rdx
xorq (%rcx,%r15,8), %rdx
shrq $0x20, %rdx
jne 0x142802
movq %rax, %rdx
jmp 0x14286e
movq %r15, %rsi
subq %rax, %rsi
movq %r15, %rdx
cmpq $0x2, %rsi
jl 0x14286e
leaq (%rcx,%r15,8), %rsi
leaq (%rcx,%rax,8), %rdi
cmpq %r15, %rax
jge 0x142866
movq 0x28(%rsp), %rdx
movq (%rdx), %rdx
movl (%rcx,%rax,8), %r8d
imulq $0x1c, %r8, %r8
movq (%rbx), %r9
movl (%rdx,%r8), %r10d
movl 0xc(%rdx,%r8), %r11d
imulq $0xa8, %r11, %r11
movq 0x58(%r9,%r11), %r9
shlq $0x5, %r10
movl 0x4(%r9,%r10), %r9d
movl 0x18(%rdx,%r8), %edx
andl %ebp, %edx
negl %edx
addl %r9d, %edx
incl %edx
movl %edx, 0x4(%rcx,%rax,8)
incq %rax
jmp 0x142819
callq 0x13d044
movq %r15, %rdx
incq %r15
movq %rdx, %rax
jmp 0x1427e2
movq 0x28(%rsp), %rbx
movq (%rbx), %rdi
movq 0x8(%rbx), %rax
addq %rax, %rax
cmpq %rax, 0x10(%rbx)
jae 0x1428d8
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
incq %rcx
movq %rcx, 0x10(%rbx)
imulq $0x1c, %rcx, %rsi
callq 0x2370
movq %rax, %rdi
movq %rax, (%rbx)
movq 0x228(%rsp), %r14
movq 0x238(%rsp), %rax
leaq (%rax,%rax), %r13
movq 0x220(%rsp), %r15
movq (%r15), %rcx
addq %r13, %rcx
cmpq %rcx, 0x8(%r14)
movq %rdi, (%rsp)
jae 0x14295d
decq %rcx
movq %rcx, %rax
shrq %rax
orq %rcx, %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(%r14)
movq 0x10(%r14), %rdi
leaq 0x8(,%rax,8), %rsi
callq 0x2370
movq %rax, 0x10(%r14)
movq (%r15), %rcx
addq %r13, %rcx
jmp 0x142961
movq 0x10(%r14), %rax
movq %rcx, (%r14)
leaq (%rax,%r13,8), %rdi
movq (%r15), %rdx
movq 0x10(%r15), %rsi
shlq $0x3, %rdx
callq 0x2160
movq 0x10(%r14), %rdi
movq 0x238(%rsp), %rbp
movq %rbp, %rdx
shlq $0x4, %rdx
xorl %ebx, %ebx
xorl %esi, %esi
callq 0x20e0
pxor %xmm0, %xmm0
leaq 0x1a0(%rsp), %rsi
movdqu %xmm0, 0x28(%rsi)
leaq 0x80(%rsp), %rcx
movdqu %xmm0, 0x28(%rcx)
movq (%rsp), %rdx
movq %rdx, (%rsi)
movq %r15, 0x8(%rsi)
movdqu %xmm0, 0x10(%rsi)
movq (%r15), %rax
movq %rax, 0x20(%rsi)
pcmpeqd %xmm0, %xmm0
movdqu %xmm0, 0x38(%rsi)
movq %rdx, (%rcx)
movq %r14, 0x8(%rcx)
movq %r13, 0x18(%rcx)
movq %r13, 0x10(%rcx)
movq (%r14), %rax
movq %rax, 0x20(%rcx)
movq 0x240(%rsp), %r15
cmpq %r15, %rbp
movq %r15, %r14
cmovlq %rbp, %r14
movdqu %xmm0, 0x38(%rcx)
andq $0x0, 0x60(%r12)
andq $0x0, 0x48(%r12)
leaq 0x78(%rsp), %r13
leaq 0x48(%rsp), %rbp
xorl %eax, %eax
cmpq %r15, %rbx
jge 0x142ad9
movq 0x20(%rsp), %r12
movq (%r12), %rdi
subq $0x8, %rsp
leaq 0x1a8(%rsp), %rsi
movq %rbx, %rdx
movq %r14, %rcx
movq %rax, %r8
xorl %r9d, %r9d
pushq %r13
callq 0x13ea8a
addq $0x10, %rsp
movq (%r12), %rdi
movq 0x250(%rsp), %r12
movq 0x30(%rsp), %rcx
movq (%rcx), %rdx
movq 0x10(%rsp), %rsi
movq %r15, %rcx
movq 0x38(%rsp), %r8
movq 0x40(%rsp), %r9
movq 0x18(%rsp), %xmm0
pushq %rbp
movl 0x278(%rsp), %r10d
pushq %r10
pushq 0x270(%rsp)
pushq 0x270(%rsp)
pushq %r12
pushq 0x270(%rsp)
leaq 0xb0(%rsp), %r10
pushq %r10
pushq 0x1d8(%rsp)
pushq %r14
pushq %rbx
pushq %rax
pushq 0xd0(%rsp)
callq 0x141d9f
addq $0x60, %rsp
movq 0x238(%rsp), %rcx
addq %rcx, %rbx
addq %rcx, %r14
cmpq %r15, %r14
cmovgeq %r15, %r14
jmp 0x142a17
movq 0xb8(%rsp), %rdx
movq 0xc0(%rsp), %rcx
cmpq %rdx, %rcx
jbe 0x142ba8
movq 0x20(%rsp), %r13
movq (%r13), %rdi
movq 0x30(%rsp), %r12
movq (%r12), %r8
subq $0x8, %rsp
movq 0x18(%rsp), %rsi
movq 0x248(%rsp), %r15
movq %r15, %r9
movsd 0x20(%rsp), %xmm0
movl 0x278(%rsp), %eax
pushq %rax
movq 0x270(%rsp), %rax
pushq %rax
movq 0x270(%rsp), %rax
pushq %rax
movq 0x268(%rsp), %rbp
pushq %rbp
pushq $0x0
pushq 0x280(%rsp)
leaq 0xb8(%rsp), %rbp
pushq %rbp
pushq 0x80(%rsp)
movq 0x80(%rsp), %r14
pushq %r14
callq 0x14198f
movsd 0x68(%rsp), %xmm0
addq $0x50, %rsp
movq %rax, %rbx
movq %r14, %rax
movl 0x270(%rsp), %r14d
movq 0x258(%rsp), %r11
movq %r12, %rcx
movq 0x250(%rsp), %r12
movq 0x10(%rsp), %rsi
movq 0x260(%rsp), %r10
addq 0x48(%rsp), %rbx
jmp 0x142bef
movq 0x48(%rsp), %rbx
movq 0x38(%rsp), %rax
movsd 0x18(%rsp), %xmm0
movq 0x260(%rsp), %r10
movq 0x10(%rsp), %rsi
movq 0x30(%rsp), %rcx
movq 0x20(%rsp), %r13
movq 0x258(%rsp), %r11
movl 0x270(%rsp), %r14d
movq 0x240(%rsp), %r15
leaq 0x80(%rsp), %rbp
movq (%r13), %rdi
movq (%rcx), %r8
subq $0x8, %rsp
movq %r15, %rdx
movq %r15, %rcx
movq %r15, %r9
pushq %r14
pushq %r10
pushq %r11
pushq 0x268(%rsp)
pushq $0x1
pushq %r12
pushq %rbp
pushq 0x80(%rsp)
pushq %rax
callq 0x14198f
addq $0x50, %rsp
addq %rbx, %rax
addq $0x1e8, %rsp            # imm = 0x1E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq