// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/inter.cpp
// Function: worker_for_contain_dedup(void*, long, int)
static void worker_for_contain_dedup(void *data, long i, int tid)
{
    utepdat_t *s = (utepdat_t*)data; asg64_v ou; 
	kv_ul_ov_t *idx = &(s->ll[tid].lo), *dump = &(s->ll[tid].tk); 
	uint32_t k, v = i, l, dump_n; 

	if(!gen_dup_path(s->rg, s->uopt->ruIndex, dump, v)) return;
	// if(v == 7723) {
	// 	fprintf(stderr, "[M::%s] v::%u, dump->n::%u\n", __func__, v, (uint32_t)dump->n);
	// }


	copy_asg_arr(ou, s->ll[tid].srt.a); 
	for (k = 1, l = 0, dump_n = dump->n; k <= dump_n; k++) {
		if(k == dump_n || (dump->a[k].tn == ((uint32_t)-1))) {
			assert(k > l || k == dump_n); 
			if(k > l) {
				assert(dump->a[k].tn == ((uint32_t)-1));
				renew_consensus_chain(dump, l, k, idx, &ou, s->uopt->ruIndex, s->uopt, s->rg, G_CHAIN_BW, 
							0.02/**s->opt->diff_ec_ul**/, dump->a[k].qn, &(s->hab[tid]->clist.chainDP), dump->a[k-1].qe, v);
			}
			l = k + 1;
		}
	}
	copy_asg_arr(s->ll[tid].srt.a, ou);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rcx
movq %rdi, %rbx
movq 0x88(%rdi), %r15
movslq %edx, %rbp
imulq $0x68, %rbp, %r14
leaq (%r15,%r14), %r12
addq $0x18, %r12
movq 0x20(%rdi), %rdi
movq 0x28(%rbx), %rax
movq 0x30(%rax), %rsi
movq %rcx, 0x20(%rsp)
movl %ecx, %ecx
movq %r12, %rdx
callq 0x1d3125
testl %eax, %eax
je 0x1d6b71
addq %r14, %r15
movq 0x88(%rbx), %rax
movq 0x58(%rax,%r14), %rcx
movq %rcx, 0x10(%rsp)
movq 0x48(%rax,%r14), %rcx
movq %rcx, (%rsp)
movq %r14, 0x18(%rsp)
movq 0x50(%rax,%r14), %rax
movq %rax, 0x8(%rsp)
movl 0x20(%r15), %r14d
testl %r14d, %r14d
je 0x1d6b48
xorl %esi, %esi
movl $0x1, %r13d
cmpl %r13d, %r14d
je 0x1d6aac
movq (%r12), %rax
movl %r13d, %ecx
leaq (%rcx,%rcx,8), %rdx
leaq (%rdx,%rdx,2), %rdx
addq %rcx, %rdx
cmpl $-0x1, 0xc(%rax,%rdx)
jne 0x1d6b3c
cmpl %esi, %r13d
ja 0x1d6aba
cmpl %r13d, %r14d
jne 0x1d6b80
cmpl %esi, %r13d
jbe 0x1d6b38
movq (%r12), %rax
movl %r13d, %edx
leaq (%rdx,%rdx,8), %rcx
leaq (%rcx,%rcx,2), %rcx
addq %rdx, %rcx
cmpl $-0x1, 0xc(%rax,%rcx)
jne 0x1d6b9f
addq %rax, %rcx
movl (%rcx), %r9d
movq 0x80(%rbx), %rcx
movq (%rcx,%rbp,8), %r10
addq $0x60, %r10
leal -0x1(%r13), %ecx
leaq (%rcx,%rcx,8), %rdx
leaq (%rdx,%rdx,2), %rdx
addq %rcx, %rdx
movl 0x8(%rax,%rdx), %eax
subq $0x8, %rsp
movq %r12, %rdi
movl %r13d, %edx
movq %r15, %rcx
leaq 0x8(%rsp), %r8
movsd 0x4b4fa(%rip), %xmm0    # 0x222018
pushq 0x28(%rsp)
pushq %rax
pushq %r10
pushq %r9
pushq $0x10
pushq 0x20(%rbx)
pushq 0x28(%rbx)
callq 0x1d4651
addq $0x40, %rsp
leal 0x1(%r13), %esi
incl %r13d
cmpl %r14d, %r13d
jbe 0x1d6a8a
movq 0x10(%rsp), %rax
movq 0x88(%rbx), %rcx
movq 0x18(%rsp), %rdx
movq %rax, 0x58(%rcx,%rdx)
movq (%rsp), %rax
movq %rax, 0x48(%rcx,%rdx)
movq 0x8(%rsp), %rax
movq %rax, 0x50(%rcx,%rdx)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x6202f(%rip), %rdi     # 0x238bb6
leaq 0x5cdfd(%rip), %rsi     # 0x23398b
leaq 0x62036(%rip), %rcx     # 0x238bcb
movl $0x498d, %edx           # imm = 0x498D
callq 0x2110
leaq 0x62056(%rip), %rdi     # 0x238bfc
leaq 0x5cdde(%rip), %rsi     # 0x23398b
leaq 0x62017(%rip), %rcx     # 0x238bcb
movl $0x498f, %edx           # imm = 0x498F
callq 0x2110