// File: /workspace/github_cpp_makefile_star2_O1/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 $0x108, %rsp            # imm = 0x108
movq %xmm0, 0x20(%rsp)
movq %r8, 0x40(%rsp)
movq %rcx, 0x48(%rsp)
movq %rdx, 0x18(%rsp)
movq %rsi, 0x58(%rsp)
movq %rdi, %r12
movq 0x180(%rsp), %rcx
movq 0x140(%rsp), %rdi
movl 0x188(%rsp), %eax
movq 0x10(%r12), %rdx
movl %eax, 0x30(%rcx)
xorl %eax, %eax
movq %rax, 0x30(%rsp)
movq %rax, 0x8(%r9)
movq %rax, (%rdi)
testq %rdx, %rdx
movq %r12, 0x10(%rsp)
movq %r9, 0x8(%rsp)
jle 0x17f653
movq 0x150(%rsp), %rax
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
movl %eax, 0x3c(%rsp)
xorl %ecx, %ecx
movq %rdx, 0x60(%rsp)
movq (%r12), %r15
imulq $0xa8, %rcx, %rax
movq 0x48(%r15,%rax), %rsi
movb $0x0, 0x2d(%r15,%rax)
movq %rsi, 0x28(%rsp)
testq %rsi, %rsi
je 0x17f647
addq %rax, %r15
cmpb $0x1, 0x2c(%r15)
jne 0x17f647
cmpq $0x0, 0x28(%rsp)
jle 0x17f641
movq %rcx, 0x50(%rsp)
movq $-0x1, %r13
xorl %r12d, %r12d
xorl %ebx, %ebx
movq 0x58(%r15), %rcx
movq %r12, %r14
shlq $0x5, %r14
leaq (%rcx,%r14), %rax
cmpw $0x7fff, 0x14(%rcx,%r14) # imm = 0x7FFF
jne 0x17f35b
cmpl $0x0, 0x1c(%rax)
jne 0x17f35b
cmpw $0x0, 0x12(%rax)
js 0x17f600
movslq (%rax), %rbp
movslq 0x4(%rax), %rax
movq 0x150(%rsp), %rcx
addq %rcx, %rbp
subq %rcx, %rax
cmpq %rbp, %rax
jl 0x17f475
shlq $0x20, %rbp
addq 0x8(%r9), %rbp
movq 0x8(%rdi), %rax
cmpq %rax, (%rdi)
jne 0x17f3c4
leaq (%rax,%rax), %rsi
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rsi
movq %rsi, 0x8(%rdi)
movq 0x140(%rsp), %rax
movq 0x10(%rax), %rdi
shlq $0x3, %rsi
callq 0x2370
movq 0x8(%rsp), %r9
movq 0x140(%rsp), %rdi
movq %rax, 0x10(%rdi)
movq (%rdi), %rax
movq 0x10(%rdi), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, (%rdi)
movq %rbp, (%rcx,%rax,8)
movq 0x10(%r9), %rax
cmpq %rax, 0x8(%r9)
jne 0x17f417
leaq (%rax,%rax), %rcx
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rcx
movq %rcx, 0x10(%r9)
movq (%r9), %rdi
leaq (%rcx,%rcx,8), %rax
leaq (%rax,%rax,2), %rsi
addq %rcx, %rsi
callq 0x2370
movq 0x8(%rsp), %r9
movq 0x140(%rsp), %rdi
movq %rax, (%r9)
movq (%r9), %rax
movq 0x8(%r9), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%r9)
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)
movq 0x8(%rsp), %r9
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 0x3c(%rsp), %ecx
movl %ecx, 0x18(%rax,%rdx)
testq %rbx, %rbx
je 0x17f487
movl $0x1, %ebx
movq %r12, %r13
jmp 0x17f613
testq %r12, %r12
je 0x17f490
xorl %eax, %eax
jmp 0x17f4b4
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 0x17f51c
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
movq 0x140(%rsp), %rdi
cmovaeq %rcx, %rax
leaq 0x1(%r12), %rcx
cmpq 0x28(%rsp), %rcx
jne 0x17f552
movq 0x58(%r15), %rcx
movslq 0x4(%rcx,%r14), %rcx
movl 0x8(%r15), %edx
movq %rcx, %rsi
subq %rdx, %rsi
negq %rsi
subq %rdx, %rcx
cmovbq %rsi, %rcx
cmpq $0x6, %rcx
movl $0x1, %ecx
cmovaeq %rcx, %rax
movq 0x8(%rsp), %r9
movl $0x1, %ebx
movq %r12, %r13
testq %rax, %rax
jne 0x17f613
movq 0x58(%r15), %rcx
movl 0x1c(%rcx,%r14), %eax
testl %eax, %eax
je 0x17f623
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 0x17f5ce
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 0x17f5ce
andl $0x3fff, %r10d          # imm = 0x3FFF
addl %r10d, %esi
incl %edx
addq $0x2, %r9
cmpl %edx, %eax
jne 0x17f5a8
movl %eax, %edx
testw %di, %di
sets %dil
cmpl $0x6, %esi
setae %sil
andb %dil, %sil
cmpl %eax, %edx
jae 0x17f5ea
movl %edx, %edx
testb %sil, %sil
je 0x17f588
movzbl %sil, %ebx
movq %r12, %r13
movq 0x140(%rsp), %rdi
movq 0x8(%rsp), %r9
jmp 0x17f613
movl 0x4(%rax), %ecx
subl (%rax), %ecx
incl %ecx
cmpl $0x6, %ecx
movl $0x1, %eax
cmovaeq %rax, %rbx
incq %r12
cmpq 0x28(%rsp), %r12
jne 0x17f331
jmp 0x17f62a
xorl %ebx, %ebx
jmp 0x17f47f
testq %rbx, %rbx
sete %al
movq 0x10(%rsp), %r12
movq 0x60(%rsp), %rdx
movq 0x50(%rsp), %rcx
jmp 0x17f643
movb $0x1, %al
movb %al, 0x2d(%r15)
incq %rcx
cmpq %rdx, %rcx
jne 0x17f2e2
movq (%rdi), %rbx
movq 0x140(%rsp), %rax
movq 0x10(%rax), %rdi
leaq (%rdi,%rbx,8), %rsi
callq 0x178fc2
movq 0x8(%rsp), %rsi
movq 0x140(%rsp), %rdi
cmpq $0x2, %rbx
jl 0x17f749
movl $0x1, %r14d
xorl %eax, %eax
movl $0x3fffffff, %r15d      # imm = 0x3FFFFFFF
movq 0x10(%rdi), %rcx
movq (%rcx,%rax,8), %rdx
xorq (%rcx,%r14,8), %rdx
shrq $0x20, %rdx
jne 0x17f6aa
movq %rax, %rdx
jmp 0x17f73a
movq %r14, %rsi
subq %rax, %rsi
movq %r14, %rdx
cmpq $0x2, %rsi
movq 0x8(%rsp), %rsi
jl 0x17f73a
cmpq %rax, %r14
jle 0x17f71d
movq 0x8(%rsp), %rdx
movq (%rdx), %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 0x17f6d2
leaq (%rcx,%r14,8), %rsi
leaq (%rcx,%rax,8), %rdi
callq 0x178fc2
movq %r14, %rdx
movq 0x140(%rsp), %rdi
movq 0x8(%rsp), %rsi
incq %r14
movq %rdx, %rax
cmpq %rbx, %r14
jne 0x17f690
movq 0x158(%rsp), %r12
movq 0x148(%rsp), %r14
movq 0x8(%rsi), %rax
addq %rax, %rax
cmpq %rax, 0x10(%rsi)
jae 0x17f7c9
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(%rsi)
movq (%rsi), %rdi
leaq (%rax,%rax,8), %rax
leaq (%rax,%rax,2), %rax
leaq (%rcx,%rax), %rsi
incq %rsi
callq 0x2370
movq 0x8(%rsp), %rsi
movq 0x140(%rsp), %rdi
movq %rax, (%rsi)
movq 0x170(%rsp), %r13
movq (%rsi), %rbp
leaq (%r12,%r12), %r15
movq (%rdi), %rax
addq %r15, %rax
cmpq %rax, 0x8(%r14)
jae 0x17f83d
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(%r14)
movq 0x10(%r14), %rdi
leaq 0x8(,%rcx,8), %rsi
callq 0x2370
movq 0x140(%rsp), %rdi
movq %rax, 0x10(%r14)
movq (%rdi), %rax
addq %r15, %rax
movq %rax, (%r14)
movq %rdi, %rbx
leaq (,%r15,8), %rdi
addq 0x10(%r14), %rdi
movq (%rbx), %rdx
movq 0x10(%rbx), %rsi
shlq $0x3, %rdx
callq 0x2160
movq 0x10(%r14), %rdi
movq %r12, %rdx
shlq $0x4, %rdx
xorl %r12d, %r12d
xorl %esi, %esi
callq 0x20e0
pxor %xmm0, %xmm0
movdqa %xmm0, 0xc0(%rsp)
movdqa %xmm0, 0xd0(%rsp)
movdqa %xmm0, 0xe0(%rsp)
movdqa %xmm0, 0xf0(%rsp)
movq %r12, 0x100(%rsp)
movdqa %xmm0, 0x70(%rsp)
movdqa %xmm0, 0x80(%rsp)
movdqa %xmm0, 0x90(%rsp)
movdqa %xmm0, 0xa0(%rsp)
movq %r12, 0xb0(%rsp)
movq %rbp, 0xc0(%rsp)
movq %rbx, 0xc8(%rsp)
movq (%rbx), %rax
movq %rax, 0xe0(%rsp)
pcmpeqd %xmm0, %xmm0
movdqu %xmm0, 0xf8(%rsp)
movq %rbp, 0x70(%rsp)
movq %r14, 0x78(%rsp)
movq %r15, 0x88(%rsp)
movq %r15, 0x80(%rsp)
movq (%r14), %rax
movq %rax, 0x90(%rsp)
movdqu %xmm0, 0xa8(%rsp)
movq %r12, 0x60(%r13)
movq %r12, 0x48(%r13)
movq 0x160(%rsp), %rbx
testq %rbx, %rbx
movq 0x58(%rsp), %r12
movq 0x18(%rsp), %r13
movq 0x10(%rsp), %r14
jle 0x17fa1f
movq 0x158(%rsp), %rax
cmpq %rbx, %rax
movq %rbx, %rbp
cmovlq %rax, %rbp
xorl %eax, %eax
xorl %r15d, %r15d
movq (%r14), %rdi
subq $0x8, %rsp
leaq 0xc8(%rsp), %rsi
movq %r15, %rdx
movq %rbp, %rcx
movq %rax, %r8
xorl %r9d, %r9d
leaq 0x70(%rsp), %rax
pushq %rax
callq 0x17b5ca
addq $0x10, %rsp
movq (%r14), %rdi
movq (%r13), %rdx
movq %r12, %rsi
movq %rbx, %rcx
movq 0x48(%rsp), %r8
movq 0x40(%rsp), %r9
movq 0x20(%rsp), %xmm0
leaq 0x30(%rsp), %r10
pushq %r10
movl 0x198(%rsp), %r10d
pushq %r10
pushq 0x190(%rsp)
pushq 0x190(%rsp)
pushq 0x190(%rsp)
pushq 0x190(%rsp)
leaq 0xa0(%rsp), %r10
pushq %r10
pushq 0xf8(%rsp)
pushq %rbp
pushq %r15
pushq %rax
pushq 0xc0(%rsp)
callq 0x17eddb
addq $0x60, %rsp
movq 0x158(%rsp), %rcx
addq %rcx, %r15
addq %rcx, %rbp
cmpq %rbx, %rbp
cmovgeq %rbx, %rbp
cmpq %rbx, %r15
jl 0x17f968
movl 0x190(%rsp), %ebp
movq 0xa8(%rsp), %rdx
movq 0xb0(%rsp), %rcx
cmpq %rdx, %rcx
movq 0x48(%rsp), %r14
movq 0x40(%rsp), %r13
movq 0x180(%rsp), %r15
jbe 0x17fa9f
movq 0x10(%rsp), %rax
movq (%rax), %rdi
movq 0x18(%rsp), %rax
movq (%rax), %r8
subq $0x8, %rsp
leaq 0x78(%rsp), %rax
movq %r12, %rsi
movq %rbx, %r9
movq 0x28(%rsp), %xmm0
pushq %rbp
pushq %r15
pushq 0x190(%rsp)
pushq 0x188(%rsp)
pushq $0x0
pushq 0x1a0(%rsp)
pushq %rax
pushq %r13
pushq %r14
callq 0x17eb0f
addq $0x50, %rsp
addq %rax, 0x30(%rsp)
movq 0x10(%rsp), %rax
movq (%rax), %rdi
movq 0x18(%rsp), %rax
movq (%rax), %r8
subq $0x8, %rsp
leaq 0x78(%rsp), %rax
movq %r12, %rsi
movq %rbx, %rdx
movq %rbx, %rcx
movq %rbx, %r9
movsd 0x28(%rsp), %xmm0
pushq %rbp
pushq %r15
pushq 0x190(%rsp)
pushq 0x188(%rsp)
pushq $0x1
pushq 0x1a0(%rsp)
pushq %rax
pushq %r13
pushq %r14
callq 0x17eb0f
addq $0x50, %rsp
addq 0x30(%rsp), %rax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq