// File: /workspace/github_cpp_makefile_star2_O3/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 $0xf8, %rsp
movq %xmm0, 0x38(%rsp)
movq %r9, %r10
movq %r8, 0x28(%rsp)
movq %rcx, 0x30(%rsp)
movq %rdx, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq 0x170(%rsp), %r13
movq 0x130(%rsp), %r9
movl 0x178(%rsp), %eax
movq 0x10(%rdi), %rcx
movl %eax, 0x30(%r13)
xorl %eax, %eax
movq %rax, 0x40(%rsp)
movq %rax, 0x8(%r10)
movq %rax, (%r9)
testq %rcx, %rcx
movq %rdi, 0x8(%rsp)
movq %r10, (%rsp)
jle 0x186c01
movq %rdi, %r12
movq 0x140(%rsp), %rax
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
movl %eax, 0x4c(%rsp)
xorl %edx, %edx
movq %rcx, 0x58(%rsp)
movq (%r12), %r15
imulq $0xa8, %rdx, %rax
movq 0x48(%r15,%rax), %r11
movb $0x0, 0x2d(%r15,%rax)
testq %r11, %r11
je 0x186b11
addq %rax, %r15
cmpb $0x1, 0x2c(%r15)
jne 0x186b11
testq %r11, %r11
jle 0x186b0b
movq %rdx, 0x50(%rsp)
movq $-0x1, %r13
xorl %r12d, %r12d
xorl %ebx, %ebx
movq %r11, 0x10(%rsp)
movq 0x58(%r15), %rcx
movq %r12, %r14
shlq $0x5, %r14
leaq (%rcx,%r14), %rax
cmpw $0x7fff, 0x14(%rcx,%r14) # imm = 0x7FFF
jne 0x186800
cmpl $0x0, 0x1c(%rax)
jne 0x186800
cmpw $0x0, 0x12(%rax)
js 0x186acd
movslq (%rax), %rbp
movslq 0x4(%rax), %rax
movq 0x140(%rsp), %rcx
addq %rcx, %rbp
subq %rcx, %rax
cmpq %rbp, %rax
jl 0x18690f
shlq $0x20, %rbp
addq 0x8(%r10), %rbp
movq (%r9), %rcx
movq 0x10(%r9), %rax
cmpq 0x8(%r9), %rcx
jne 0x186866
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
movl $0x2, %ecx
cmoveq %rcx, %rsi
movq %rsi, 0x8(%r9)
shlq $0x3, %rsi
movq %rax, %rdi
callq 0x2370
movq (%rsp), %r10
movq 0x130(%rsp), %r9
movq %rax, 0x10(%r9)
movq (%r9), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, (%r9)
movq %rbp, (%rax,%rcx,8)
movq (%r10), %rax
movq 0x8(%r10), %rcx
cmpq 0x10(%r10), %rcx
jne 0x1868b8
leaq (%rcx,%rcx), %rdx
testq %rcx, %rcx
movl $0x2, %ecx
cmoveq %rcx, %rdx
movq %rdx, 0x10(%r10)
leaq (%rdx,%rdx,8), %rcx
leaq (%rcx,%rcx,2), %rsi
addq %rdx, %rsi
movq %rax, %rdi
callq 0x2370
movq (%rsp), %r10
movq 0x130(%rsp), %r9
movq %rax, (%r10)
movq 0x8(%r10), %rcx
movq 0x10(%rsp), %r11
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%r10)
leaq (%rcx,%rcx,8), %rdx
leaq (%rdx,%rdx,2), %rdx
addq %rcx, %rdx
movq 0x50(%rsp), %rcx
movl %ecx, 0xc(%rax,%rdx)
movl %r12d, (%rax,%rdx)
movq 0x58(%r15), %rcx
movl (%rcx,%r14), %esi
movl %esi, 0x4(%rax,%rdx)
movl 0x8(%rcx,%r14), %ecx
movl %ecx, 0x10(%rax,%rdx)
xorl %ecx, %ecx
movl %ecx, 0x14(%rax,%rdx)
movl %ecx, 0x8(%rax,%rdx)
movl 0x18(%rax,%rdx), %ecx
movl $0xc0000000, %esi       # imm = 0xC0000000
andl %esi, %ecx
addl 0x4c(%rsp), %ecx
movl %ecx, 0x18(%rax,%rdx)
testq %rbx, %rbx
je 0x18692d
movl $0x1, %ebx
movq %r12, %r13
incq %r12
cmpq %r11, %r12
jne 0x1867d6
jmp 0x186aec
testq %r12, %r12
je 0x186936
xorl %eax, %eax
jmp 0x18695a
movq 0x58(%r15), %rax
movslq (%rax), %rcx
movl 0x4(%r15), %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, %r13
je 0x1869ba
movq 0x58(%r15), %rcx
movslq (%rcx,%r14), %rdx
shlq $0x5, %r13
movslq 0x4(%rcx,%r13), %rsi
incq %rsi
movq %rdx, %rdi
subq %rsi, %rdi
movq %rsi, %r8
subq %rdx, %r8
cmpl %esi, %edx
cmovaeq %rdi, %r8
movslq 0x8(%rcx,%r14), %rdx
movslq 0xc(%rcx,%r13), %rcx
incq %rcx
movq %rdx, %rsi
subq %rcx, %rsi
movq %rcx, %rdi
subq %rdx, %rdi
cmpl %ecx, %edx
cmovaeq %rsi, %rdi
cmpq $0x6, %r8
movl $0x1, %ecx
cmovaeq %rcx, %rax
cmpq $0x6, %rdi
cmovaeq %rcx, %rax
leaq 0x1(%r12), %rcx
cmpq %r11, %rcx
jne 0x1869fd
movq 0x58(%r15), %rcx
movslq 0x4(%rcx,%r14), %rdx
movl 0x8(%r15), %esi
movq %rdx, %rdi
subq %rsi, %rdi
negq %rdi
subq %rsi, %rdx
cmovbq %rdi, %rdx
cmpq $0x5, %rdx
ja 0x186914
movl $0x1, %ebx
movq %r12, %r13
testq %rax, %rax
je 0x186a12
jmp 0x18691c
movl $0x1, %ebx
movq %r12, %r13
testq %rax, %rax
jne 0x18691c
movq 0x58(%r15), %rcx
movl 0x1c(%rcx,%r14), %eax
testl %eax, %eax
je 0x186ae5
movq 0x70(%r15), %rdx
movl 0x18(%rcx,%r14), %ecx
leaq (%rdx,%rcx,2), %rcx
xorl %edx, %edx
movzwl (%rcx,%rdx,2), %edi
movl %edi, %esi
andl $0x3fff, %esi           # imm = 0x3FFF
incl %edx
cmpl %edx, %eax
jbe 0x186a85
movl %edi, %r8d
shrl $0xe, %r8d
movl %edx, %r9d
leaq (%rcx,%r9,2), %r9
movzwl (%r9), %r10d
movl %r10d, %r11d
shrl $0xe, %r11d
cmpl %r8d, %r11d
jne 0x186a74
andl $0x3fff, %r10d          # imm = 0x3FFF
addl %r10d, %esi
incl %edx
addq $0x2, %r9
cmpl %edx, %eax
jne 0x186a4e
jmp 0x186aa3
movq 0x130(%rsp), %r9
movq (%rsp), %r10
movq 0x10(%rsp), %r11
testw %di, %di
sets %dil
cmpl $0x6, %esi
setae %sil
andb %dil, %sil
cmpl %eax, %edx
jae 0x186ac4
movl %edx, %edx
testb %sil, %sil
je 0x186a2e
jmp 0x186ac4
testw %di, %di
sets %al
cmpl $0x6, %esi
setae %sil
andb %al, %sil
movq 0x130(%rsp), %r9
movq (%rsp), %r10
movq 0x10(%rsp), %r11
movzbl %sil, %ebx
jmp 0x186919
movl 0x4(%rax), %ecx
subl (%rax), %ecx
incl %ecx
cmpl $0x6, %ecx
movl $0x1, %eax
cmovaeq %rax, %rbx
jmp 0x18691c
xorl %ebx, %ebx
jmp 0x186919
testq %rbx, %rbx
sete %al
movq 0x170(%rsp), %r13
movq 0x8(%rsp), %r12
movq 0x58(%rsp), %rcx
movq 0x50(%rsp), %rdx
jmp 0x186b0d
movb $0x1, %al
movb %al, 0x2d(%r15)
incq %rdx
cmpq %rcx, %rdx
jne 0x18678a
movq (%r9), %rbx
movq 0x10(%r9), %rdi
leaq (%rdi,%rbx,8), %rsi
callq 0x17fc92
movq (%rsp), %r9
movq 0x130(%rsp), %r8
cmpq $0x2, %rbx
jl 0x186c19
movl $0x1, %r14d
xorl %eax, %eax
movl $0x3fffffff, %r15d      # imm = 0x3FFFFFFF
movq 0x10(%r8), %rcx
movq (%rcx,%rax,8), %rdx
xorq (%rcx,%r14,8), %rdx
shrq $0x20, %rdx
jne 0x186b6b
movq %rax, %rdx
jmp 0x186bf0
movq %r14, %rsi
subq %rax, %rsi
movq %r14, %rdx
cmpq $0x2, %rsi
jl 0x186bf0
cmpq %rax, %r14
jle 0x186bd4
movq (%r9), %rdx
movq (%r12), %rsi
movq %rax, %rdi
movl (%rcx,%rdi,8), %r8d
leaq (%r8,%r8,8), %r9
leaq (%r9,%r9,2), %r9
addq %r8, %r9
movl (%rdx,%r9), %r8d
movl 0xc(%rdx,%r9), %r10d
imulq $0xa8, %r10, %r10
movq 0x58(%rsi,%r10), %r10
shlq $0x5, %r8
movl 0x4(%r10,%r8), %r8d
movl 0x18(%rdx,%r9), %r9d
andl %r15d, %r9d
negl %r9d
addl %r9d, %r8d
incl %r8d
movl %r8d, 0x4(%rcx,%rdi,8)
incq %rdi
cmpq %rdi, %r14
jne 0x186b89
leaq (%rcx,%r14,8), %rsi
leaq (%rcx,%rax,8), %rdi
callq 0x17fc92
movq (%rsp), %r9
movq %r14, %rdx
movq 0x130(%rsp), %r8
incq %r14
movq %rdx, %rax
cmpq %rbx, %r14
jne 0x186b51
jmp 0x186c19
movq 0x10(%r9), %rdi
movq %rdi, %rsi
callq 0x17fc92
movq (%rsp), %r9
movq 0x130(%rsp), %r8
movq 0x148(%rsp), %r12
movq 0x138(%rsp), %r14
movq (%r9), %rbx
movq 0x8(%r9), %rax
addq %rax, %rax
cmpq %rax, 0x10(%r9)
jae 0x186c9d
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, 0x10(%r9)
leaq (%rax,%rax,8), %rax
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax), %rsi
incq %rsi
movq %rbx, %rdi
movq %r9, %r15
callq 0x2370
movq 0x130(%rsp), %r8
movq %rax, %rbx
movq %rax, (%r15)
leaq (%r12,%r12), %r15
movq (%r8), %rcx
addq %r15, %rcx
cmpq %rcx, 0x8(%r14)
jae 0x186d0e
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 0x130(%rsp), %r8
movq %rax, 0x10(%r14)
movq (%r8), %rcx
addq %r15, %rcx
jmp 0x186d12
movq 0x10(%r14), %rax
movq %rcx, (%r14)
leaq (%rax,%r15,8), %rdi
movq (%r8), %rdx
movq 0x10(%r8), %rsi
shlq $0x3, %rdx
movq %r8, %rbp
callq 0x2160
movq 0x10(%r14), %rdi
movq %r12, %rdx
shlq $0x4, %rdx
xorl %r12d, %r12d
xorl %esi, %esi
callq 0x20e0
pxor %xmm0, %xmm0
movdqu %xmm0, 0xd8(%rsp)
movdqu %xmm0, 0x90(%rsp)
movq %rbx, 0xb0(%rsp)
movq %rbp, 0xb8(%rsp)
movdqu %xmm0, 0xc0(%rsp)
movq (%rbp), %rax
movq %rax, 0xd0(%rsp)
pcmpeqd %xmm0, %xmm0
movdqu %xmm0, 0xe8(%rsp)
movq %rbx, 0x68(%rsp)
movq %r14, 0x70(%rsp)
movq %r15, 0x80(%rsp)
movq %r15, 0x78(%rsp)
movq (%r14), %rax
movq %rax, 0x88(%rsp)
movdqu %xmm0, 0xa0(%rsp)
movq 0x160(%rsp), %rbp
movq %r12, 0x60(%rbp)
movq %r12, 0x48(%rbp)
movq 0x150(%rsp), %r14
testq %r14, %r14
jle 0x186f41
movq 0x148(%rsp), %rax
cmpq %r14, %rax
movq %r14, %rbx
cmovlq %rax, %rbx
xorl %eax, %eax
xorl %r15d, %r15d
movq 0x18(%rsp), %rbp
movq 0x20(%rsp), %r12
movq 0x8(%rsp), %r13
movq (%r13), %rdi
subq $0x8, %rsp
leaq 0xb8(%rsp), %rsi
movq %r15, %rdx
movq %rbx, %rcx
movq %rax, %r8
xorl %r9d, %r9d
leaq 0x68(%rsp), %rax
pushq %rax
callq 0x182285
addq $0x10, %rsp
movq (%r13), %rdi
movq (%r12), %rdx
movq %rbp, %rsi
movq %r14, %rcx
movq 0x30(%rsp), %r8
movq 0x28(%rsp), %r9
movq 0x38(%rsp), %xmm0
leaq 0x40(%rsp), %r10
pushq %r10
movl 0x188(%rsp), %r10d
pushq %r10
pushq 0x180(%rsp)
pushq 0x180(%rsp)
pushq 0x180(%rsp)
pushq 0x180(%rsp)
leaq 0x98(%rsp), %r10
pushq %r10
pushq 0xe8(%rsp)
pushq %rbx
pushq %r15
pushq %rax
pushq 0xb8(%rsp)
callq 0x186283
addq $0x60, %rsp
movq 0x148(%rsp), %rcx
addq %rcx, %r15
addq %rcx, %rbx
cmpq %r14, %rbx
cmovgeq %r14, %rbx
cmpq %r14, %r15
jl 0x186dfb
leaq 0x68(%rsp), %r10
movq 0xa0(%rsp), %rdx
movq 0xa8(%rsp), %rcx
cmpq %rdx, %rcx
movq 0x170(%rsp), %r13
movq 0x160(%rsp), %rbp
jbe 0x186f41
movq 0x8(%rsp), %rax
movq (%rax), %rdi
movq 0x20(%rsp), %rax
movq (%rax), %r8
subq $0x8, %rsp
movq 0x20(%rsp), %r12
movq %r12, %rsi
movq %r14, %r9
movq 0x40(%rsp), %xmm0
movl 0x188(%rsp), %eax
pushq %rax
pushq %r13
pushq 0x180(%rsp)
pushq 0x178(%rsp)
pushq $0x0
pushq %rbp
pushq %r10
movq 0x68(%rsp), %r15
pushq %r15
movq 0x78(%rsp), %r14
pushq %r14
callq 0x185f8f
addq $0x50, %rsp
movq %rax, %rbx
addq 0x40(%rsp), %rbx
jmp 0x186f55
movq 0x40(%rsp), %rbx
movq 0x30(%rsp), %r14
movq 0x28(%rsp), %r15
movq 0x18(%rsp), %r12
movq 0x8(%rsp), %rax
movq (%rax), %rdi
movq 0x20(%rsp), %rax
movq (%rax), %r8
subq $0x8, %rsp
leaq 0x70(%rsp), %rax
movq %r12, %rsi
movq 0x158(%rsp), %rcx
movq %rcx, %rdx
movq %rcx, %r9
movsd 0x40(%rsp), %xmm0
movl 0x188(%rsp), %r10d
pushq %r10
pushq %r13
pushq 0x180(%rsp)
pushq 0x178(%rsp)
pushq $0x1
pushq %rbp
pushq %rax
pushq %r15
pushq %r14
callq 0x185f8f
addq $0x50, %rsp
addq %rbx, %rax
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq