// File: /workspace/github_cpp_makefile_star2_O3/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, 0x28(%rsp)
movq %rdi, 0x18(%rsp)
movq 0x18(%rdi), %rax
movq %rax, 0x40(%rsp)
movq 0x30(%rcx), %rax
movb $0x0, (%rax,%rsi)
movq %rcx, 0x10(%rsp)
movq 0x20(%rcx), %rax
movq %rsi, 0x30(%rsp)
cmpl $0x0, (%rax,%rsi,8)
js 0x1f0b7e
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x24(%rsp), %r12
leaq 0xc(%rsp), %rcx
movq 0x40(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq %r12, %rdx
callq 0xa3c62
cmpl $-0x1, (%r12)
je 0x1f0b6f
cmpl $0x1, 0xc(%rsp)
je 0x1f0b6f
movq 0x30(%rsp), %rax
leaq (%rax,%rax,2), %rax
movq 0x28(%rsp), %rcx
cmpl $0x0, 0xc(%rcx,%rax,8)
je 0x1f0b6f
movq 0x28(%rsp), %rcx
leaq (%rcx,%rax,8), %rcx
movl $0x18, %ebx
xorl %r13d, %r13d
movq %rcx, 0x60(%rsp)
movq (%rcx), %rbp
movq (%rbp,%rbx), %rdx
movq %rdx, %rax
shrq $0x20, %rax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq 0x18(%rsp), %rcx
cmpq 0x30(%rcx), %rax
jge 0x1f0c0b
incq %r13
movq 0x60(%rsp), %rcx
movl 0xc(%rcx), %eax
addq $0x28, %rbx
cmpq %rax, %r13
jb 0x1f0bd3
jmp 0x1f0b6f
movq -0x18(%rbp,%rbx), %r12
movl -0xc(%rbp,%rbx), %esi
movq 0x10(%rsp), %rax
movq 0x20(%rax), %r9
movl (%r9,%rsi,8), %eax
movq %r12, %rcx
testl %eax, %eax
jns 0x1f0c67
movq 0x40(%rsp), %rdi
movq %rsi, %r14
leaq 0x24(%rsp), %rdx
leaq 0xc(%rsp), %rcx
callq 0xa3c62
cmpl $-0x1, 0x24(%rsp)
je 0x1f0bf2
cmpl $0x1, 0xc(%rsp)
je 0x1f0bf2
movq 0x10(%rsp), %rax
movq 0x20(%rax), %r9
movq %r14, %rsi
movl (%r9,%r14,8), %eax
movq -0x18(%rbp,%rbx), %rcx
movq (%rbp,%rbx), %rdx
movl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
andl %edi, %eax
testl %edx, %edx
movq %rsi, 0x38(%rsp)
js 0x1f0c8b
movl -0x8(%rbp,%rbx), %r10d
movl -0x4(%rbp,%rbx), %r8d
subl %r8d, %eax
movl %eax, %edx
movl %r10d, %eax
jmp 0x1f0c9b
movl -0x8(%rbp,%rbx), %r10d
movl -0x4(%rbp,%rbx), %r8d
subl %r8d, %eax
movl %r10d, %edx
shrq $0x20, %r12
movl (%r9,%r12,8), %r15d
movl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl %esi, %r15d
movq 0x18(%rsp), %rsi
movl 0x20(%rsi), %r11d
cmpl %ecx, %eax
movl %ecx, %r14d
cmovll %eax, %r14d
movl -0x10(%rbp,%rbx), %edi
movl %r15d, %esi
subl %edi, %esi
cmpl %edx, %esi
movl %edx, %r9d
cmovll %esi, %r9d
cmpl %r11d, %r14d
jg 0x1f0bf2
cmpl %r11d, %r9d
jg 0x1f0bf2
movl %edi, %r11d
subl %ecx, %r11d
xorps %xmm1, %xmm1
cvtsi2ss %r11, %xmm1
addl %r14d, %r11d
addl %r9d, %r11d
xorps %xmm2, %xmm2
cvtsi2ss %r11, %xmm2
movq %rbp, 0x58(%rsp)
movl %edx, %ebp
movq %rcx, %rdx
movq %r12, %rcx
movl %edi, %r12d
movl %r10d, %edi
leaq 0xa4a41(%rip), %r10     # 0x295758
movss 0x158(%r10), %xmm0
movl %edi, %r10d
movl %r12d, %edi
movq %rcx, %r12
movq %rdx, %rcx
movl %ebp, %edx
movq 0x58(%rsp), %rbp
mulss %xmm0, %xmm2
ucomiss %xmm1, %xmm2
ja 0x1f0bf2
subl %r10d, %r8d
xorps %xmm1, %xmm1
cvtsi2ss %r8, %xmm1
addl %r14d, %r9d
addl %r8d, %r9d
xorps %xmm2, %xmm2
cvtsi2ss %r9, %xmm2
mulss %xmm2, %xmm0
ucomiss %xmm1, %xmm0
ja 0x1f0bf2
cmpl %edx, %esi
setl %sil
setg %r10b
cmpl %eax, %ecx
setg %r14b
setl %r8b
orb %r10b, %r14b
cmpb $0x1, %r14b
jne 0x1f0bf2
orb %sil, %r8b
je 0x1f0bf2
movq 0x18(%rsp), %rsi
movl 0x28(%rsi), %esi
cmpl %esi, %r11d
jl 0x1f0bf2
cmpl %esi, %r9d
jl 0x1f0bf2
addl %edi, %edx
subl %edx, %r15d
subl %eax, %ecx
cmovlel %r15d, %ecx
testl %ecx, %ecx
js 0x1f0bf2
movq 0x38(%rsp), %r14
leaq (%r14,%r14,2), %rax
movq 0x28(%rsp), %rcx
leaq (%rcx,%rax,8), %r15
movq %r15, %rdi
movl %r14d, %esi
movl %r12d, %edx
callq 0xa0c99
movq (%r15), %rcx
leaq (%rax,%rax,4), %rdx
movq 0x18(%rcx,%rdx,8), %rsi
movq (%rbp,%rbx), %r9
movq %r9, %rdi
xorq %rsi, %rdi
movabsq $0x7fffffff00000000, %rax # imm = 0x7FFFFFFF00000000
testq %rax, %rdi
jne 0x1f0fa7
leaq (%rcx,%rdx,8), %rcx
movq 0x10(%rsp), %rdx
movq 0x20(%rdx), %rdi
movl (%rdi,%r12,8), %edx
movl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
andl %r8d, %edx
testl %esi, %esi
movq %r9, 0x50(%rsp)
js 0x1f0e3c
movl 0x10(%rcx), %r12d
movl 0x14(%rcx), %r10d
subl %r10d, %edx
movl %edx, %esi
movl %r12d, %edx
jmp 0x1f0e4a
movl 0x10(%rcx), %r12d
movl 0x14(%rcx), %r10d
subl %r10d, %edx
movl %r12d, %esi
movl (%rdi,%r14,8), %edi
andl %r8d, %edi
movq 0x18(%rsp), %r8
movl 0x20(%r8), %r9d
movl (%rcx), %r8d
cmpl %r8d, %edx
movl %r8d, %r14d
cmovll %edx, %r14d
movl 0x8(%rcx), %eax
movl %edi, %r15d
subl %eax, %r15d
cmpl %esi, %r15d
movl %esi, %r11d
cmovll %r15d, %r11d
cmpl %r9d, %r14d
jg 0x1f0bf2
cmpl %r9d, %r11d
jg 0x1f0bf2
movl %eax, %r9d
subl %r8d, %r9d
cvtsi2ss %r9, %xmm1
addl %r14d, %r9d
addl %r11d, %r9d
cvtsi2ss %r9, %xmm2
movq %r10, 0x48(%rsp)
movq %rcx, %r10
movl %esi, %ecx
movl %r12d, %esi
movl %eax, %r12d
leaq 0xa489f(%rip), %rax     # 0x295758
movss 0x158(%rax), %xmm0
movl %r12d, %eax
movl %esi, %r12d
movl %ecx, %esi
movq %r10, %rcx
movq 0x48(%rsp), %r10
mulss %xmm0, %xmm2
ucomiss %xmm1, %xmm2
ja 0x1f0bf2
subl %r12d, %r10d
xorps %xmm1, %xmm1
cvtsi2ss %r10, %xmm1
addl %r14d, %r11d
addl %r10d, %r11d
xorps %xmm2, %xmm2
cvtsi2ss %r11, %xmm2
mulss %xmm2, %xmm0
ucomiss %xmm1, %xmm0
ja 0x1f0bf2
cmpl %esi, %r15d
setl %r10b
setg %r15b
cmpl %edx, %r8d
setg %r12b
setl %r14b
orb %r15b, %r12b
cmpb $0x1, %r12b
jne 0x1f0bf2
orb %r10b, %r14b
je 0x1f0bf2
movq 0x18(%rsp), %r10
movl 0x28(%r10), %r10d
cmpl %r10d, %r9d
jl 0x1f0bf2
cmpl %r10d, %r11d
jl 0x1f0bf2
addl %eax, %esi
subl %esi, %edi
subl %edx, %r8d
cmovlel %edi, %r8d
testl %r8d, %r8d
js 0x1f0bf2
movq 0x50(%rsp), %rax
btrq $0x3f, %rax
movq %rax, (%rbp,%rbx)
movq 0x10(%rsp), %rax
movq 0x20(%rax), %rax
movq 0x38(%rsp), %rdx
cmpl $0x0, (%rax,%rdx,8)
js 0x1f0f90
movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF
andq %rax, 0x18(%rcx)
movq 0x10(%rsp), %rax
movq 0x30(%rax), %rax
movq 0x30(%rsp), %rcx
movb $0x1, (%rax,%rcx)
jmp 0x1f0bf2
leaq 0x594a4(%rip), %rdi     # 0x24a452
leaq 0x54654(%rip), %rsi     # 0x245609
leaq 0x594a5(%rip), %rcx     # 0x24a461
movl $0x2c3, %edx            # imm = 0x2C3
callq 0x2110