// File: /workspace/github_cpp_makefile_star2_O3/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 $0x38, %rsp
movq %rsi, %rcx
movq %rdi, %rbx
movq 0x88(%rdi), %r15
movslq %edx, %rbp
imulq $0x68, %rbp, %r13
leaq (%r15,%r13), %r12
addq $0x18, %r12
movq 0x20(%rdi), %rdi
movq 0x28(%rbx), %rax
movq 0x30(%rax), %rsi
movq %rcx, 0x30(%rsp)
movl %ecx, %ecx
movq %r12, %rdx
callq 0x1dd1b3
testl %eax, %eax
je 0x1e0a94
addq %r13, %r15
movq 0x88(%rbx), %rax
movq 0x58(%rax,%r13), %rcx
movq %rcx, 0x18(%rsp)
movq 0x48(%rax,%r13), %rdx
movq %rdx, 0x8(%rsp)
movq 0x50(%rax,%r13), %rsi
movq %rsi, 0x10(%rsp)
movq 0x20(%r15), %r14
testl %r14d, %r14d
je 0x1e0a85
movq %r13, 0x20(%rsp)
movl %r14d, %eax
movq %rax, 0x28(%rsp)
xorl %esi, %esi
movl $0x1, %r13d
cmpl %r14d, %r13d
jne 0x1e09bf
cmpl %r14d, %esi
jae 0x1e0a5b
movq (%r12), %rax
movq 0x28(%rsp), %rcx
jmp 0x1e09e9
movq (%r12), %rax
movl %r13d, %ecx
leaq (%rcx,%rcx,8), %rdx
leaq (%rdx,%rdx,2), %rdx
addq %rcx, %rdx
cmpl $-0x1, 0xc(%rax,%rdx)
je 0x1e09e0
incl %r13d
jmp 0x1e0a61
cmpl %esi, %r13d
jbe 0x1e0ac2
leaq (%rcx,%rcx,8), %rdx
leaq (%rdx,%rdx,2), %rdx
addq %rcx, %rdx
cmpl $-0x1, 0xc(%rax,%rdx)
jne 0x1e0aa3
addq %rax, %rdx
movl (%rdx), %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 0x10(%rsp), %r8
movsd 0x4d5d7(%rip), %xmm0    # 0x22e018
pushq 0x38(%rsp)
pushq %rax
pushq %r10
pushq %r9
pushq $0x10
pushq 0x20(%rbx)
pushq 0x28(%rbx)
callq 0x1de63b
addq $0x40, %rsp
incl %r13d
movl %r13d, %esi
cmpl %r14d, %r13d
jbe 0x1e09a6
movq 0x18(%rsp), %rcx
movq 0x88(%rbx), %rax
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %rsi
movq 0x20(%rsp), %r13
movq %rcx, 0x58(%rax,%r13)
movq %rdx, 0x48(%rax,%r13)
movq %rsi, 0x50(%rax,%r13)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x64422(%rip), %rdi     # 0x244ecc
leaq 0x5f1aa(%rip), %rsi     # 0x23fc5b
leaq 0x643e3(%rip), %rcx     # 0x244e9b
movl $0x498f, %edx           # imm = 0x498F
callq 0x2110
leaq 0x643bd(%rip), %rdi     # 0x244e86
leaq 0x5f18b(%rip), %rsi     # 0x23fc5b
leaq 0x643c4(%rip), %rcx     # 0x244e9b
movl $0x498d, %edx           # imm = 0x498D
callq 0x2110