// File: /workspace/github_cpp_makefile_star2_O3/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
leaq (%rsi,%rsi,2), %rbx
movq (%rdx,%rbx,8), %rsi
movl 0x8(%rdx,%rbx,8), %ecx
movzwl 0x10(%rdx,%rbx,8), %r8d
andl $0xc000, %r8d           # imm = 0xC000
movl %r8d, 0x10(%rsp)
movw %r8w, 0x10(%rdx,%rbx,8)
movq %rdi, 0x8(%rsp)
movq 0x40(%rdi), %r8
movq 0x10(%r8), %r8
movq %rsi, %r9
shrq $0x21, %r9
leaq (%r9,%r9,4), %r9
cmpl $0x0, (%r8,%r9,8)
js 0x1e5bab
movl %ecx, %r10d
shrl %r10d
leaq (%r10,%r10,4), %r10
cmpl $0x0, (%r8,%r10,8)
js 0x1e5bab
leaq (%r8,%r9,8), %r9
xorl %r11d, %r11d
btq $0x20, %rsi
setae %r11b
movl 0x4(%r9,%r11,4), %edi
movl %edi, %esi
shrl %esi
leaq (%rsi,%rsi,2), %r11
movl 0xc(%rax,%r11,8), %r9d
testq %r9, %r9
je 0x1e5ba1
leaq (%rdx,%rbx,8), %rdx
movq %rdx, 0x30(%rsp)
leaq (%r8,%r10,8), %rdx
andl $0x1, %ecx
movl 0x4(%rdx,%rcx,4), %ecx
leaq (%rax,%r11,8), %rax
xorq $0x1, %rdi
movq %rdi, 0x40(%rsp)
movq %rax, 0x28(%rsp)
movq (%rax), %rbx
movl %ecx, %eax
shrl %eax
movq %rax, 0x20(%rsp)
leaq 0xafd7b(%rip), %rax     # 0x295758
movss 0x158(%rax), %xmm0
movq %rcx, 0x38(%rsp)
movl %ecx, %eax
andl $-0x2, %eax
movl %eax, 0x14(%rsp)
addq $0x18, %rbx
xorl %r10d, %r10d
movq -0x18(%rbx), %r13
movq %r13, %rax
shrq $0x20, %rax
cmpl %eax, %esi
jne 0x1e5adf
movq 0x20(%rsp), %rax
cmpl %eax, -0xc(%rbx)
jne 0x1e5adf
movq 0x8(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x20(%rax), %rax
movq 0x20(%rsp), %rcx
movl (%rax,%rcx,8), %ecx
movl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
andl %edx, %ecx
movq (%rbx), %rdx
movq %rdx, 0x18(%rsp)
testl %edx, %edx
js 0x1e5a54
movl -0x8(%rbx), %r15d
movl -0x4(%rbx), %ebp
subl %ebp, %ecx
movl %ecx, %r8d
movl %r15d, %ecx
jmp 0x1e5a60
movl -0x8(%rbx), %r15d
movl -0x4(%rbx), %ebp
subl %ebp, %ecx
movl %r15d, %r8d
movl (%rax,%rsi,8), %edi
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
andl %eax, %edi
movq 0x8(%rsp), %rax
movl 0x18(%rax), %r12d
cmpl %r13d, %ecx
movl %r13d, %r14d
cmovll %ecx, %r14d
movl -0x10(%rbx), %r11d
movl %edi, %eax
subl %r11d, %eax
cmpl %r8d, %eax
movl %r8d, %edx
cmovll %eax, %edx
cmpl %r12d, %r14d
jg 0x1e5adf
cmpl %r12d, %edx
jg 0x1e5adf
movl %r11d, %r12d
subl %r13d, %r12d
xorps %xmm1, %xmm1
cvtsi2ss %r12, %xmm1
addl %r14d, %r12d
addl %edx, %r12d
xorps %xmm2, %xmm2
cvtsi2ss %r12, %xmm2
mulss %xmm0, %xmm2
ucomiss %xmm1, %xmm2
ja 0x1e5adf
subl %r15d, %ebp
xorps %xmm1, %xmm1
cvtsi2ss %rbp, %xmm1
addl %r14d, %edx
addl %ebp, %edx
xorps %xmm2, %xmm2
cvtsi2ss %rdx, %xmm2
mulss %xmm0, %xmm2
ucomiss %xmm1, %xmm2
jbe 0x1e5af4
incq %r10
addq $0x28, %rbx
cmpq %r10, %r9
jne 0x1e59fa
jmp 0x1e5bba
cmpl %r8d, %eax
setl %al
setg %r14b
cmpl %ecx, %r13d
setg %r15b
setl %bpl
orb %r14b, %r15b
cmpb $0x1, %r15b
jne 0x1e5adf
orb %al, %bpl
je 0x1e5adf
movq 0x8(%rsp), %rax
movl 0x10(%rax), %eax
cmpl %eax, %r12d
jl 0x1e5adf
cmpl %eax, %edx
jl 0x1e5adf
addl %r11d, %r8d
subl %r8d, %edi
movl %r13d, %eax
subl %ecx, %eax
cmovlel %edi, %eax
testl %eax, %eax
js 0x1e5adf
xorl %edx, %edx
cmpl %ecx, %r13d
setle %dl
setg %al
cmpl $0x0, 0x18(%rsp)
setns %cl
shrq $0x1f, %r13
andl $-0x2, %r13d
orl %r13d, %edx
cmpl 0x40(%rsp), %edx
jne 0x1e5adf
xorb %al, %cl
movzbl %cl, %eax
orl 0x14(%rsp), %eax
cmpl 0x38(%rsp), %eax
jne 0x1e5adf
movl $0x3fff, %eax           # imm = 0x3FFF
movq 0x18(%rsp), %rdx
movl %edx, %ecx
andl %eax, %ecx
testl $0x3fffc000, %edx       # imm = 0x3FFFC000
cmovnel %eax, %ecx
movl 0x10(%rsp), %eax
orl %ecx, %eax
movq 0x30(%rsp), %rcx
movw %ax, 0x10(%rcx)
movq 0x28(%rsp), %rax
movl 0xc(%rax), %eax
jmp 0x1e5ba6
xorl %eax, %eax
xorl %r10d, %r10d
cmpl %eax, %r10d
jae 0x1e5bba
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x5f628(%rip), %rdi     # 0x2451e9
leaq 0x5a093(%rip), %rsi     # 0x23fc5b
leaq 0x5f628(%rip), %rcx     # 0x2451f7
movl $0x528a, %edx           # imm = 0x528A
callq 0x2110