// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/ecovlp.cpp
// Function: cns_gen_full(overlap_region*, All_reads*, unsigned long, unsigned long, unsigned long, char*, UC_Read*, bit_extz_t*, cc_idx_t*, unsigned long, double, asg32_v*, cns_gfa*, unsigned long, window_list*, window_list_alloc*, unsigned int)
uint64_t cns_gen_full(overlap_region* ol, All_reads *rref, uint64_t s0, uint64_t e0, uint64_t wl, char* qstr, UC_Read* tu, bit_extz_t *exz, cc_idx_t *idx, uint64_t occ_tot, double occ_max, asg32_v* b32, cns_gfa *cns, uint64_t max_trace, window_list *ridx, window_list_alloc *res, uint32_t rid)
{
    uint64_t nec = 0;
    if(e0 - s0 <= wl) {
        nec += cns_gen_full0(ol, rref, s0, e0, 1, qstr, tu, exz, idx, occ_tot, occ_max, b32, cns, max_trace, ridx, res, rid);
    } else {
        uint64_t s, e;
        s = s0; e = s0 + wl; e = ((e<=e0)?e:e0);
        for (; s < e0; ) {
            // 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, ra, rn, s, e, ii_a.c_idx, &ii_b, occ_tot, occ_exact, aux_o, b32, cns, rid);
            nec += cns_gen_full0(ol, rref, s, e, (s==s0)?1:0, qstr, tu, exz, idx, occ_tot, occ_max, b32, cns, max_trace, ridx, res, rid);
            s += wl; e += wl; e = ((e<=e0)?e:e0);
        }
    }
    return nec;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movl 0xf8(%rsp), %ebp
movq 0xf0(%rsp), %r13
movq 0xe8(%rsp), %rbx
movq 0xe0(%rsp), %r12
movq 0xd8(%rsp), %r15
movq 0xd0(%rsp), %r14
movq 0xc0(%rsp), %r11
movq 0xb8(%rsp), %r10
movq %rcx, 0x60(%rsp)
movq %rcx, %rax
movq %rdx, 0x58(%rsp)
subq %rdx, %rax
movq 0xb0(%rsp), %rcx
cmpq %r8, %rax
jbe 0x17e2f9
movq 0x60(%rsp), %rax
cmpq 0x58(%rsp), %rax
jbe 0x17e33b
movq 0x58(%rsp), %rax
leaq (%r8,%rax), %rbx
movq 0x60(%rsp), %rax
cmpq %rax, %rbx
cmovaeq %rax, %rbx
xorl %r13d, %r13d
xorl %edx, %edx
movq %r8, 0x68(%rsp)
movq %rdx, 0x70(%rsp)
movq 0x58(%rsp), %rbp
movq %rbp, %rdx
addq %r13, %rdx
xorl %r8d, %r8d
testq %r13, %r13
sete %r8b
movl 0xf8(%rsp), %eax
movl %eax, 0x48(%rsp)
movq 0xf0(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0xe8(%rsp), %rax
movq %rax, 0x38(%rsp)
movq %r12, 0x30(%rsp)
movq %r15, 0x28(%rsp)
movq %r14, 0x20(%rsp)
movq %r11, 0x10(%rsp)
movq %r10, 0x8(%rsp)
movq %rcx, (%rsp)
movq %rdi, %rbp
movq %rsi, %r14
movq %rbx, %rcx
movq %r9, %r15
movq %r11, %r12
callq 0x17df63
movq 0x70(%rsp), %rdx
movq %r12, %r11
movq 0xe0(%rsp), %r12
movq 0xb8(%rsp), %r10
movq 0x68(%rsp), %r8
movq %rbp, %rdi
movq %r14, %rsi
movq 0xd0(%rsp), %r14
movq %r15, %r9
movq 0xd8(%rsp), %r15
addq %rax, %rdx
addq %r8, %rbx
movq 0x60(%rsp), %rcx
cmpq %rcx, %rbx
cmovaeq %rcx, %rbx
addq %r8, %r13
movq 0x58(%rsp), %rax
addq %r13, %rax
cmpq %rcx, %rax
movq 0xb0(%rsp), %rcx
jb 0x17e223
jmp 0x17e33d
movl %ebp, 0x48(%rsp)
movq %r13, 0x40(%rsp)
movq %rbx, 0x38(%rsp)
movq %r12, 0x30(%rsp)
movq %r15, 0x28(%rsp)
movq %r14, 0x20(%rsp)
movq %r11, 0x10(%rsp)
movq %r10, 0x8(%rsp)
movq %rcx, (%rsp)
movl $0x1, %r8d
movq 0x58(%rsp), %rdx
movq 0x60(%rsp), %rcx
callq 0x17df63
jmp 0x17e340
xorl %edx, %edx
movq %rdx, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq