// File: chhylp123[P]hifiasm/inter.cpp
// Function: debug_infer_read_ovlp(ug_opt_t const*, double, ul_ov_t*, ul_ov_t*, ma_utg_t*, unsigned int, unsigned int, All_reads*, ma_ug_t*)
void debug_infer_read_ovlp(const ug_opt_t *uopt, double diff_ec_ul, ul_ov_t *li, ul_ov_t *lj, ma_utg_t *u, 
uint32_t i_idx, uint32_t j_idx, All_reads *ridx, ma_ug_t *ug)
{
	uint32_t li_v, lj_v; ma_hit_t *t = NULL;
	li_v = (((uint32_t)(li->tn))<<1)|((uint32_t)(li->rev));
	lj_v = (((uint32_t)(lj->tn))<<1)|((uint32_t)(lj->rev));
	if(lj->qe <= li->qs || li_v == lj_v) fprintf(stderr, "ERROR-1\n");
    t = query_ovlp_src(uopt, li_v^1, lj_v^1, infer_rovlp(li, lj, NULL, NULL, ridx, ug), diff_ec_ul, NULL);
	// ((int64_t)(lj->qe))-((int64_t)(li->qs))
	if(!t /**&& (li_v^1) == 648 && (lj_v^1) == 638 && li->qs == 63841**/) {
		fprintf(stderr, "ERROR-2, li_v^1->%u, li->qs->%u, li->qe->%u, lj_v^1->%u, lj->qs->%u, lj->qe->%u, infer_rovlp->%ld\n", 
		li_v^1, li->qs, li->qe, lj_v^1, lj->qs, lj->qe, infer_rovlp(li, lj, NULL, NULL, ridx, ug));
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq 0x18(%rbp), %rax
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movsd %xmm0, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl %r8d, -0x2c(%rbp)
movl %r9d, -0x30(%rbp)
movq $0x0, -0x40(%rbp)
movq -0x18(%rbp), %rax
movl 0xc(%rax), %eax
shll %eax
movq -0x18(%rbp), %rcx
movl 0x18(%rcx), %ecx
shrl $0x1f, %ecx
orl %ecx, %eax
movl %eax, -0x34(%rbp)
movq -0x20(%rbp), %rax
movl 0xc(%rax), %eax
shll %eax
movq -0x20(%rbp), %rcx
movl 0x18(%rcx), %ecx
shrl $0x1f, %ecx
orl %ecx, %eax
movl %eax, -0x38(%rbp)
movq -0x20(%rbp), %rax
movl 0x8(%rax), %eax
movq -0x18(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jbe 0x290330
movl -0x34(%rbp), %eax
cmpl -0x38(%rbp), %eax
jne 0x290348
movq 0x133ca9(%rip), %rax    # 0x3c3fe0
movq (%rax), %rdi
leaq 0xf8711(%rip), %rsi     # 0x388a52
movb $0x0, %al
callq 0x22a0
movq -0x8(%rbp), %rax
movq %rax, -0x50(%rbp)
movl -0x34(%rbp), %eax
xorl $0x1, %eax
movl %eax, -0x48(%rbp)
movl -0x38(%rbp), %eax
xorl $0x1, %eax
movl %eax, -0x44(%rbp)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq 0x10(%rbp), %r8
movq 0x18(%rbp), %r9
xorl %eax, %eax
movl %eax, %ecx
movq %rcx, %rdx
callq 0x71a90
movq -0x50(%rbp), %rdi
movl -0x48(%rbp), %esi
movl -0x44(%rbp), %edx
movq %rax, %rcx
movsd -0x10(%rbp), %xmm0
xorl %eax, %eax
movl %eax, %r8d
callq 0x28ffe0
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
jne 0x290443
movq 0x133c30(%rip), %rax    # 0x3c3fe0
movq (%rax), %rax
movq %rax, -0x70(%rbp)
movl -0x34(%rbp), %eax
xorl $0x1, %eax
movl %eax, -0x68(%rbp)
movq -0x18(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x64(%rbp)
movq -0x18(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x60(%rbp)
movl -0x38(%rbp), %eax
xorl $0x1, %eax
movl %eax, -0x5c(%rbp)
movq -0x20(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x58(%rbp)
movq -0x20(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x54(%rbp)
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq 0x10(%rbp), %r8
movq 0x18(%rbp), %r9
xorl %eax, %eax
movl %eax, %ecx
movq %rcx, %rdx
callq 0x71a90
movq -0x70(%rbp), %rdi
movl -0x68(%rbp), %edx
movl -0x64(%rbp), %ecx
movl -0x60(%rbp), %r8d
movl -0x5c(%rbp), %r9d
movl -0x58(%rbp), %r11d
movl -0x54(%rbp), %r10d
leaq 0x100cdd(%rip), %rsi    # 0x39110b
movl %r11d, (%rsp)
movl %r10d, 0x8(%rsp)
movq %rax, 0x10(%rsp)
movb $0x0, %al
callq 0x22a0
addq $0x90, %rsp
popq %rbp
retq
nopl (%rax)