// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/inter.cpp
// Function: update_ug_uo_t(void*, long, int)
static void update_ug_uo_t(void *data, long i, int tid)
{
	r_contain_aux *sl = (r_contain_aux *)data; int32_t r;
	ma_hit_t_alloc *src = sl->src, *x; uint32_t k, qn, tn, uv, uw, v, w;
	asg_arc_t *e = &(sl->ug->g->arc[i]), t; 
	uv = e->ul>>32; uw = e->v; e->ou = 0;
	if(sl->ug->u.a[uv>>1].circ || sl->ug->u.a[uw>>1].circ) return;
	v = ((uv&1)?(sl->ug->u.a[uv>>1].start^1):(sl->ug->u.a[uv>>1].end^1));
	w = ((uw&1)?(sl->ug->u.a[uw>>1].end):(sl->ug->u.a[uw>>1].start));
	x = &(src[v>>1]);

	for (k = 0; k < x->length; k++) {
		qn = Get_qn(x->buffer[k]);
		tn = Get_tn(x->buffer[k]);
		if(qn == (v>>1) && tn == (w>>1)) {
			r = ma_hit2arc(&(x->buffer[k]), sl->rg->seq[v>>1].len, sl->rg->seq[w>>1].len,
            							sl->max_hang, asm_opt.max_hang_rate, sl->min_ovlp, &t);
			if(r < 0) continue;
            if((t.ul>>32)!=v || t.v!=w) continue;
			e->ou = (x->buffer[k].cc>OU_MASK?OU_MASK:x->buffer[k].cc);
			break;
		}
	}
	assert(k < x->length);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
movq 0x40(%rbx), %rax
movq 0x18(%rax), %rax
movq 0x8(%rax), %rcx
leaq (%rsi,%rsi,2), %rdx
movq (%rcx,%rdx,8), %r8
movl 0x8(%rcx,%rdx,8), %eax
movzwl 0x10(%rcx,%rdx,8), %ebp
andl $0xc000, %ebp           # imm = 0xC000
movw %bp, 0x10(%rcx,%rdx,8)
movq 0x40(%rbx), %rsi
movq 0x10(%rsi), %rsi
movq %r8, %r9
shrq $0x21, %r9
leaq (%r9,%r9,4), %r10
cmpl $0x0, (%rsi,%r10,8)
js 0x1db5ee
movl %eax, %r9d
shrl %r9d
leaq (%r9,%r9,4), %r9
cmpl $0x0, (%rsi,%r9,8)
js 0x1db5ee
leaq (%rsi,%r10,8), %r10
xorl %r11d, %r11d
btq $0x20, %r8
setae %r11b
movl 0x4(%r10,%r11,4), %r10d
movl %r10d, %r13d
shrl %r13d
leaq (,%r13,2), %r8
addq %r13, %r8
leaq (%rdi,%r8,8), %rdi
movl 0xc(%rdi), %r12d
testq %r12, %r12
je 0x1db5e5
movl %ebp, 0x8(%rsp)
leaq (%rcx,%rdx,8), %rcx
movq %rcx, 0x18(%rsp)
leaq (%rsi,%r9,8), %rcx
andl $0x1, %eax
movl 0x4(%rcx,%rax,4), %ebp
xorq $0x1, %r10
movq %r10, 0x28(%rsp)
movq %rdi, 0x10(%rsp)
movq (%rdi), %r14
movq %rbp, 0x20(%rsp)
shrl %ebp
leaq 0xaf1ef(%rip), %rax     # 0x28a758
movss 0x158(%rax), %xmm0
movss %xmm0, 0xc(%rsp)
xorl %r15d, %r15d
cmpl 0x4(%r14), %r13d
jne 0x1db5d2
cmpl %ebp, 0xc(%r14)
jne 0x1db5d2
movq 0x38(%rbx), %rax
movq 0x20(%rax), %rax
movl (%rax,%r13,8), %esi
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
andl %ecx, %esi
movl (%rax,%rbp,8), %edx
andl %ecx, %edx
movl 0x10(%rbx), %r8d
movl 0x18(%rbx), %ecx
movq %r14, %rdi
movss 0xc(%rsp), %xmm0
leaq 0x30(%rsp), %r9
callq 0x19c0d3
testl %eax, %eax
js 0x1db5d2
movq 0x28(%rsp), %rax
cmpl %eax, 0x34(%rsp)
jne 0x1db5d2
movq 0x20(%rsp), %rax
cmpl %eax, 0x38(%rsp)
je 0x1db5fd
incq %r15
addq $0x28, %r14
cmpq %r15, %r12
jne 0x1db57a
movq 0x10(%rsp), %rdi
jmp 0x1db5e8
xorl %r15d, %r15d
cmpl 0xc(%rdi), %r15d
jae 0x1db623
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x18(%r14), %rax
movl $0x3fff, %ecx           # imm = 0x3FFF
movl %eax, %edx
andl %ecx, %edx
testl $0x3fffc000, %eax       # imm = 0x3FFFC000
cmovnel %ecx, %edx
movl 0x8(%rsp), %eax
orl %edx, %eax
movq 0x18(%rsp), %rcx
movw %ax, 0x10(%rcx)
jmp 0x1db5de
leaq 0x5d8ef(%rip), %rdi     # 0x238f19
leaq 0x5835a(%rip), %rsi     # 0x23398b
leaq 0x5d8ef(%rip), %rcx     # 0x238f27
movl $0x528a, %edx           # imm = 0x528A
callq 0x2110