// File: /workspace/github_cpp_makefile_star2_O2/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 $0x68, %rsp
movq (%rdi), %rcx
movq 0x8(%rdi), %rax
movq %rax, 0x40(%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 0x1a61e6
addq $0x68, %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 0x6c2a2
cmpl $-0x1, (%r12)
je 0x1a61d7
cmpl $0x1, 0x4(%rsp)
je 0x1a61d7
imulq $0x18, 0x18(%rsp), %rdx
addq 0x40(%rsp), %rdx
xorl %r15d, %r15d
xorl %ebx, %ebx
movq %rdx, 0x20(%rsp)
movl 0xc(%rdx), %eax
cmpq %rax, %rbx
jae 0x1a61d7
movq (%rdx), %r14
movl 0x1c(%r14,%r15), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq 0x30(%rsp), %rcx
cmpq 0x30(%rcx), %rax
jl 0x1a63c4
movq (%r14,%r15), %rbp
movl 0xc(%r14,%r15), %esi
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rax
movl (%rax,%rsi,8), %edx
testl %edx, %edx
movq %rsi, 0x28(%rsp)
jns 0x1a62a7
movq 0x38(%rsp), %rdi
leaq 0x14(%rsp), %rdx
leaq 0x4(%rsp), %rcx
callq 0x6c2a2
cmpl $-0x1, 0x14(%rsp)
movq 0x20(%rsp), %rdx
je 0x1a63c4
cmpl $0x1, 0x4(%rsp)
je 0x1a63c4
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rax
movq 0x28(%rsp), %rcx
movl (%rax,%rcx,8), %edx
leaq (%r14,%r15), %rdi
shrq $0x20, %rbp
movl (%rax,%rbp,8), %esi
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
andl %eax, %esi
andl %eax, %edx
leaq 0xad496(%rip), %rax     # 0x253758
movss 0x158(%rax), %xmm0
movq 0x30(%rsp), %rax
movl 0x20(%rax), %ecx
movl 0x28(%rax), %r8d
leaq 0x50(%rsp), %r9
callq 0x1aac6d
testl %eax, %eax
movq 0x20(%rsp), %rdx
js 0x1a63c4
movq %rbx, 0x48(%rsp)
movq 0x28(%rsp), %rbx
imulq $0x18, %rbx, %r12
movq 0x40(%rsp), %r13
leaq (%r12,%r13), %rdi
movl %ebx, %esi
movl %ebp, %edx
callq 0x696ab
movq (%r13,%r12), %r12
imulq $0x28, %rax, %rax
movq 0x18(%r14,%r15), %r13
movq 0x18(%r12,%rax), %rcx
xorq %r13, %rcx
movabsq $0x7fffffff00000000, %rdx # imm = 0x7FFFFFFF00000000
testq %rdx, %rcx
jne 0x1a63d0
addq %rax, %r12
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rax
movl (%rax,%rbx,8), %esi
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
andl %ecx, %esi
movl (%rax,%rbp,8), %edx
andl %ecx, %edx
leaq 0xad400(%rip), %rax     # 0x253758
movss 0x158(%rax), %xmm0
movq 0x30(%rsp), %rax
movl 0x20(%rax), %ecx
movl 0x28(%rax), %r8d
movq %r12, %rdi
leaq 0x50(%rsp), %r9
callq 0x1aac6d
testl %eax, %eax
movabsq $0x7fffffffffffffff, %rcx # imm = 0x7FFFFFFFFFFFFFFF
movq 0x20(%rsp), %rdx
movq 0x48(%rsp), %rbx
js 0x1a63c4
andq %rcx, %r13
movq %r13, 0x18(%r14,%r15)
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rax
movq 0x28(%rsp), %rsi
cmpl $0x0, (%rax,%rsi,8)
js 0x1a63b2
andq %rcx, 0x18(%r12)
movq 0x8(%rsp), %rax
movq 0x30(%rax), %rax
movq 0x18(%rsp), %rcx
movb $0x1, (%rax,%rcx)
incq %rbx
addq $0x28, %r15
jmp 0x1a6225
leaq 0x5603a(%rip), %rdi     # 0x1fc411
leaq 0x510fb(%rip), %rsi     # 0x1f74d9
leaq 0x5603b(%rip), %rcx     # 0x1fc420
movl $0x2c3, %edx            # imm = 0x2C3
callq 0x2110