// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: update_sg_contain(void*, long, int)
static void update_sg_contain(void *data, long i, int tid)
{
    sset_aux *sl = (sset_aux *)data; ma_hit_t *h, *z; asg_arc_t t;
	ma_hit_t_alloc *src = sl->src; asg_t *g = sl->g; int64_t r, idx;
    R_to_U *ridx = sl->ruIndex; uint32_t k, rr, qn, tn, is_u;
    g->seq_vis[i] = 0; 
    if(!(g->seq[i].del)) return;
    get_R_to_U(ridx, i, &rr, &is_u);
    if(rr == (uint32_t)-1 || is_u == 1) return;
    ma_hit_t_alloc *x = &(src[i]);
    for (k = 0; k < x->length; k++) {
        h = &(x->buffer[k]);
		qn = Get_qn((*h)); tn = Get_tn((*h));
        if(h->bl < sl->ul_occ) continue;
        if(g->seq[tn].del) {
            get_R_to_U(ridx, tn, &rr, &is_u);
            if(rr == (uint32_t)-1 || is_u == 1) continue;
        }
        r = ma_hit2arc(h, g->seq[qn].len, g->seq[tn].len, sl->max_hang, asm_opt.max_hang_rate, sl->min_ovlp, &t);
        if(r < 0) continue;
        idx = get_specific_overlap(&(src[tn]), tn, qn);
        z = &(src[tn].buffer[idx]);
        assert(z->bl == h->bl);
		r = ma_hit2arc(z, g->seq[tn].len, g->seq[qn].len, sl->max_hang, asm_opt.max_hang_rate, sl->min_ovlp, &t);
        if(r < 0) continue;
        h->del = 0; if(!(g->seq[tn].del)) z->del = 0;
        g->seq_vis[i] = 1;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq (%rdi), %rcx
movq 0x8(%rdi), %rax
movq %rax, 0x20(%rsp)
movq %rdi, 0x30(%rsp)
movq 0x18(%rdi), %rax
movq %rax, 0x38(%rsp)
movq 0x30(%rcx), %rax
movb $0x0, (%rax,%rsi)
movq %rcx, 0x8(%rsp)
movq 0x20(%rcx), %rax
movq %rsi, 0x18(%rsp)
cmpl $0x0, (%rax,%rsi,8)
js 0x1e6234
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x14(%rsp), %r12
leaq 0x4(%rsp), %rcx
movq 0x38(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq %r12, %rdx
callq 0xa306f
cmpl $-0x1, (%r12)
je 0x1e6225
cmpl $0x1, 0x4(%rsp)
je 0x1e6225
movq 0x18(%rsp), %rax
leaq (%rax,%rax,2), %rax
movq 0x20(%rsp), %rcx
cmpl $0x0, 0xc(%rcx,%rax,8)
je 0x1e6225
movq 0x20(%rsp), %rcx
leaq (%rcx,%rax,8), %rdx
xorl %r15d, %r15d
xorl %ebx, %ebx
movq %rdx, 0x28(%rsp)
movq (%rdx), %r14
movl 0x1c(%r14,%r15), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq 0x30(%rsp), %rcx
cmpq 0x30(%rcx), %rax
jl 0x1e640f
movq (%r14,%r15), %rbp
movl 0xc(%r14,%r15), %r13d
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rax
cmpl $0x0, (%rax,%r13,8)
jns 0x1e62ed
movq 0x38(%rsp), %rdi
movl %r13d, %esi
leaq 0x14(%rsp), %rdx
leaq 0x4(%rsp), %rcx
callq 0xa306f
movq 0x28(%rsp), %rdx
cmpl $-0x1, 0x14(%rsp)
je 0x1e640f
cmpl $0x1, 0x4(%rsp)
je 0x1e640f
leaq (%r14,%r15), %rdi
shrq $0x20, %rbp
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rax
movl (%rax,%rbp,8), %esi
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
andl %ecx, %esi
movl (%rax,%r13,8), %edx
andl %ecx, %edx
leaq 0xa4443(%rip), %rax     # 0x28a758
movss 0x158(%rax), %xmm0
movq 0x30(%rsp), %rax
movl 0x20(%rax), %ecx
movl 0x28(%rax), %r8d
leaq 0x40(%rsp), %r9
callq 0x1eb21b
movq 0x28(%rsp), %rdx
testl %eax, %eax
js 0x1e640f
leaq (,%r13,2), %rax
addq %r13, %rax
movq 0x20(%rsp), %rcx
leaq (%rcx,%rax,8), %r12
movq %r12, %rdi
movl %r13d, %esi
movl %ebp, %edx
callq 0xa04f9
movq (%r12), %rcx
leaq (%rax,%rax,4), %rax
movq 0x18(%r14,%r15), %r12
movq 0x18(%rcx,%rax,8), %rdx
xorq %r12, %rdx
movabsq $0x7fffffff00000000, %rsi # imm = 0x7FFFFFFF00000000
testq %rsi, %rdx
jne 0x1e6427
leaq (%rcx,%rax,8), %rdi
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rax
movl (%rax,%r13,8), %esi
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
andl %ecx, %esi
movl (%rax,%rbp,8), %edx
movq %rdi, %rbp
andl %ecx, %edx
leaq 0xa43a8(%rip), %rax     # 0x28a758
movss 0x158(%rax), %xmm0
movq 0x30(%rsp), %rax
movl 0x20(%rax), %ecx
movl 0x28(%rax), %r8d
leaq 0x40(%rsp), %r9
callq 0x1eb21b
testl %eax, %eax
movq 0x28(%rsp), %rdx
js 0x1e640f
movabsq $0x7fffffffffffffff, %rcx # imm = 0x7FFFFFFFFFFFFFFF
andq %rcx, %r12
movq %r12, 0x18(%r14,%r15)
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rax
cmpl $0x0, (%rax,%r13,8)
js 0x1e63fd
andq %rcx, 0x18(%rbp)
movq 0x8(%rsp), %rax
movq 0x30(%rax), %rax
movq 0x18(%rsp), %rcx
movb $0x1, (%rax,%rcx)
incq %rbx
movl 0xc(%rdx), %eax
addq $0x28, %r15
cmpq %rax, %rbx
jb 0x1e6286
jmp 0x1e6225
leaq 0x57d40(%rip), %rdi     # 0x23e16e
leaq 0x52ef0(%rip), %rsi     # 0x239325
leaq 0x57d41(%rip), %rcx     # 0x23e17d
movl $0x2c3, %edx            # imm = 0x2C3
callq 0x2110