// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/ecovlp.cpp
// Function: refresh_ec_ovec_buf_t0(ec_ovec_buf_t0*, unsigned long)
inline void refresh_ec_ovec_buf_t0(ec_ovec_buf_t0 *z, uint64_t n)
{
    z->rr++;
    if((z->rr%n) == 0) {
        free(z->self_read.seq); memset(&(z->self_read), 0, sizeof(z->self_read));
        free(z->ovlp_read.seq); memset(&(z->ovlp_read), 0, sizeof(z->ovlp_read));

        destory_Candidates_list(&z->clist); memset(&(z->clist), 0, sizeof(z->clist));
        destory_overlap_region_alloc(&z->olist); memset(&(z->olist), 0, sizeof(z->olist)); init_overlap_region_alloc(&z->olist);

        kv_destroy(z->k_flag.a); kv_init(z->k_flag.a);
        kv_destroy(z->sp); kv_init(z->sp);
        kv_destroy(z->pidx); kv_init(z->pidx);
        kv_destroy(z->v64); kv_init(z->v64);
        kv_destroy(z->v32); kv_init(z->v32);
        kv_destroy(z->v16); kv_init(z->v16);
        kv_destroy(z->v8q); kv_init(z->v8q);
        kv_destroy(z->v8t); kv_init(z->v8t);

        destroy_bit_extz_t(&(z->exz)); init_bit_extz_t(&(z->exz), 31);

        ha_abuf_destroy(z->ab); z->ab = ha_abuf_init();

        destoryHaplotypeEvdience(&z->hap); memset(&(z->hap), 0, sizeof(z->hap)); InitHaplotypeEvdience(&z->hap);

        destroy_cns_gfa(&(z->cns)); memset(&(z->cns), 0, sizeof(z->cns)); z->cns.q = kdq_init(uint32_t);

        // z->rr = 1;
    }
}

// Assembly:
movq 0xf0(%rdi), %rax
incq %rax
movq %rax, 0xf0(%rdi)
xorl %edx, %edx
divq %rsi
testq %rdx, %rdx
je 0x14f9e9
retq
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x2220
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
movups %xmm0, (%rbx)
movq 0x20(%rbx), %rdi
callq 0x2220
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rbx)
movups %xmm0, 0x20(%rbx)
leaq 0x40(%rbx), %rdi
callq 0x13d2f
xorps %xmm0, %xmm0
movups %xmm0, 0x80(%rbx)
movups %xmm0, 0x70(%rbx)
movups %xmm0, 0x60(%rbx)
movups %xmm0, 0x50(%rbx)
movups %xmm0, 0x40(%rbx)
andq $0x0, 0x90(%rbx)
leaq 0x98(%rbx), %r14
movq %r14, %rdi
callq 0x11985
xorps %xmm0, %xmm0
movups %xmm0, 0xa8(%rbx)
movups %xmm0, 0x98(%rbx)
movq %r14, %rdi
callq 0x1189e
movq 0x558(%rbx), %rdi
callq 0x2220
xorps %xmm0, %xmm0
movups %xmm0, 0x548(%rbx)
andq $0x0, 0x558(%rbx)
movq 0x578(%rbx), %rdi
callq 0x2220
xorps %xmm0, %xmm0
movups %xmm0, 0x568(%rbx)
andq $0x0, 0x578(%rbx)
movq 0x4b8(%rbx), %rdi
callq 0x2220
xorps %xmm0, %xmm0
movups %xmm0, 0x4b8(%rbx)
andq $0x0, 0x4c8(%rbx)
movq 0x4e0(%rbx), %rdi
callq 0x2220
xorps %xmm0, %xmm0
movups %xmm0, 0x4d0(%rbx)
andq $0x0, 0x4e0(%rbx)
movq 0x4f8(%rbx), %rdi
callq 0x2220
xorps %xmm0, %xmm0
movups %xmm0, 0x4e8(%rbx)
andq $0x0, 0x4f8(%rbx)
movq 0x510(%rbx), %rdi
callq 0x2220
xorps %xmm0, %xmm0
movups %xmm0, 0x500(%rbx)
andq $0x0, 0x510(%rbx)
movq 0x528(%rbx), %rdi
callq 0x2220
xorps %xmm0, %xmm0
movups %xmm0, 0x518(%rbx)
andq $0x0, 0x528(%rbx)
movq 0x540(%rbx), %rdi
callq 0x2220
leaq 0x3e0(%rbx), %r14
xorps %xmm0, %xmm0
movups %xmm0, 0x530(%rbx)
andq $0x0, 0x540(%rbx)
movq %r14, %rdi
callq 0x108b7
pushq $0x1f
popq %rsi
movq %r14, %rdi
callq 0x10710
movq 0xb8(%rbx), %rdi
callq 0xe39c3
callq 0xe3927
movq %rax, 0xb8(%rbx)
leaq 0xf8(%rbx), %r14
movq %r14, %rdi
callq 0x108dd
movl $0x2e8, %edx            # imm = 0x2E8
movq %r14, %rdi
xorl %esi, %esi
callq 0x20e0
movq %r14, %rdi
callq 0x1080b
leaq 0x580(%rbx), %rdi
callq 0x13d19e
xorps %xmm0, %xmm0
movups %xmm0, 0x5a0(%rbx)
movups %xmm0, 0x590(%rbx)
movups %xmm0, 0x580(%rbx)
andq $0x0, 0x5b0(%rbx)
callq 0x13d169
movq %rax, 0x5b8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nopl (%rax)