// File: /workspace/github_cpp_makefile_star2_O2/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 0x8(%rdi), %rax
movq 0x40(%rdi), %rcx
movq 0x18(%rcx), %rcx
movq 0x8(%rcx), %rdx
imulq $0x18, %rsi, %r10
movq (%rdx,%r10), %rsi
movl 0x8(%rdx,%r10), %ecx
movzwl 0x10(%rdx,%r10), %r8d
andl $0xc000, %r8d           # imm = 0xC000
movq %rdx, 0x10(%rsp)
movl %r8d, 0x4(%rsp)
movw %r8w, 0x10(%rdx,%r10)
movq %rdi, 0x28(%rsp)
movq 0x40(%rdi), %rdx
movq 0x10(%rdx), %rdx
movq %rsi, %r8
shrq $0x21, %r8
imulq $0x28, %r8, %r9
cmpl $0x0, (%rdx,%r9)
js 0x19931d
movl %ecx, %r8d
shrl %r8d
imulq $0x28, %r8, %r8
cmpl $0x0, (%rdx,%r8)
js 0x19931d
addq %r10, 0x10(%rsp)
addq %rdx, %r9
xorl %edi, %edi
btq $0x20, %rsi
setae %dil
movl 0x4(%r9,%rdi,4), %r12d
movq %r12, %rsi
xorq $0x1, %rsi
movq %rsi, 0x18(%rsp)
addq %rdx, %r8
andl $0x1, %ecx
movl 0x4(%r8,%rcx,4), %edx
shrl %r12d
imulq $0x18, %r12, %rcx
leaq (%rax,%rcx), %rbp
movl 0xc(%rax,%rcx), %eax
movl %edx, 0x8(%rsp)
movl %edx, %r13d
shrl %r13d
leaq 0xba500(%rip), %rcx     # 0x253758
movss 0x158(%rcx), %xmm0
movss %xmm0, 0xc(%rsp)
imulq $0x28, %rax, %rcx
xorl %r15d, %r15d
xorl %ebx, %ebx
movq %rcx, 0x20(%rsp)
cmpq %rbx, %rcx
je 0x19932c
movq (%rbp), %r14
cmpl 0x4(%r14,%rbx), %r12d
jne 0x1992e9
cmpl %r13d, 0xc(%r14,%rbx)
jne 0x1992e9
leaq (%r14,%rbx), %rdi
movq 0x28(%rsp), %rcx
movq 0x38(%rcx), %rax
movq 0x20(%rax), %rax
movl (%rax,%r12,8), %esi
movl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
andl %r8d, %esi
movl (%rax,%r13,8), %edx
andl %r8d, %edx
movl 0x10(%rcx), %r8d
movl 0x18(%rcx), %ecx
movss 0xc(%rsp), %xmm0
leaq 0x30(%rsp), %r9
callq 0x15d560
movq 0x20(%rsp), %rcx
testl %eax, %eax
js 0x1992e9
movq 0x18(%rsp), %rax
cmpl %eax, 0x34(%rsp)
jne 0x1992e9
movl 0x8(%rsp), %eax
cmpl %eax, 0x38(%rsp)
je 0x1992f2
addq $0x28, %rbx
incl %r15d
jmp 0x199274
movq 0x18(%r14,%rbx), %rax
movl $0x3fff, %ecx           # imm = 0x3FFF
movl %eax, %edx
andl %ecx, %edx
testl $0x3fffc000, %eax       # imm = 0x3FFFC000
cmovnel %ecx, %edx
movl 0x4(%rsp), %ecx
orl %edx, %ecx
movq 0x10(%rsp), %rax
movw %cx, 0x10(%rax)
cmpl %r15d, 0xc(%rbp)
jbe 0x19932c
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x5dd7e(%rip), %rdi     # 0x1f70b1
leaq 0x587e9(%rip), %rsi     # 0x1f1b23
leaq 0x5dd7e(%rip), %rcx     # 0x1f70bf
movl $0x528a, %edx           # imm = 0x528A
callq 0x2110