LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: get_seq_bub_id(unsigned long, bubble_type*, unsigned long*, unsigned long*)
uint64_t get_seq_bub_id(uint64_t v, bubble_type *bub, uint64_t *bid, uint64_t *nxt)
{
	uint64_t id0, id1, id; uint32_t beg, sink;

	(*bid) = (*nxt) = (uint64_t)-1;
	get_bub_id(bub, v>>1, &id0, &id1, 1);
	
	id = id0;
	if((id != (uint64_t)-1) && (id < bub->f_bub)) {///no need broken bubble
		get_bubbles(bub, id, &beg, &sink, NULL, NULL, NULL);
		if(v == beg) {
			(*bid) = id; (*nxt) = sink^1; return 1;
		}

		if(v == sink) {
			(*bid) = id; (*nxt) = beg^1; return 1;
		}
	}

	id = id1;
	if((id != (uint64_t)-1) && (id < bub->f_bub)) {///no need broken bubble
		get_bubbles(bub, id, &beg, &sink, NULL, NULL, NULL);
		if(v == beg) {
			(*bid) = id; (*nxt) = sink^1; return 1;
		}

		if(v == sink) {
			(*bid) = id; (*nxt) = beg^1; return 1;
		}
	}

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rcx, %rbx
orq $-0x1, (%rcx)
movq %rdx, %r14
orq $-0x1, (%rdx)
movq %rsi, %r12
movq %rdi, %r15
movq %rdi, %rsi
shrq %rsi
leaq 0x20(%rsp), %r13
leaq 0x18(%rsp), %rcx
pushq $0x1
popq %r8
movq %r12, %rdi
movq %r13, %rdx
callq 0x102d73
movq (%r13), %r13
pushq $-0x1
popq %rax
cmpq %rax, %r13
je 0x18a63a
cmpq 0x80(%r12), %r13
jae 0x18a63a
andq $0x0, (%rsp)
leaq 0x14(%rsp), %rbp
leaq 0x10(%rsp), %rcx
movq %r12, %rdi
movq %r13, %rsi
movq %rbp, %rdx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0xf6ab5
movl (%rbp), %eax
cmpq %r15, %rax
je 0x18a67a
movl 0x10(%rsp), %ecx
cmpq %r15, %rcx
je 0x18a68c
movq 0x18(%rsp), %r13
cmpq $-0x1, %r13
je 0x18a69a
cmpq 0x80(%r12), %r13
jae 0x18a69a
andq $0x0, (%rsp)
leaq 0x14(%rsp), %rbp
leaq 0x10(%rsp), %rcx
movq %r12, %rdi
movq %r13, %rsi
movq %rbp, %rdx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0xf6ab5
movl (%rbp), %eax
cmpq %r15, %rax
jne 0x18a683
movq %r13, (%r14)
movl 0x10(%rsp), %eax
jmp 0x18a68f
movl 0x10(%rsp), %ecx
cmpq %r15, %rcx
jne 0x18a69a
movq %r13, (%r14)
xorl $0x1, %eax
movq %rax, (%rbx)
pushq $0x1
popq %rax
jmp 0x18a69c
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: pick_bubble(uc_block_t*, unsigned long, bubble_type*, unsigned long*)
uint64_t pick_bubble(uc_block_t *a, uint64_t a_n, bubble_type *bub, uint64_t *r_bid)
{
	uint64_t k = 0, v, bid = (uint64_t)-1, w = (uint64_t)-1; (*r_bid) = (uint64_t)-1;
	if(a_n <= 1) return 0;///no bubble
	v = (((uint32_t)a[k].hid)<<1)|((uint32_t)a[k].rev);
	if(!get_seq_bub_id(v, bub, &bid, &w)) return 0;
	(*r_bid) = bid;
	for (k = 1; k < a_n; k++) {
		v = (((uint32_t)a[k].hid)<<1)|((uint32_t)a[k].rev);
		if(v == w) return k;
		if(bub->index[v>>1] != bid) return 0;
	}

	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
orq $-0x1, 0x10(%rsp)
orq $-0x1, 0x8(%rsp)
orq $-0x1, (%rcx)
cmpq $0x2, %rsi
jb 0x18a742
movq %rcx, %r12
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movl (%rdi), %eax
movl 0x20(%rdi), %ecx
shrl $0x5, %ecx
andl $0x1, %ecx
leal (%rcx,%rax,2), %edi
leaq 0x10(%rsp), %rdx
leaq 0x8(%rsp), %rcx
movq %rbx, %rsi
callq 0x18a5af
testq %rax, %rax
je 0x18a742
movq 0x10(%rsp), %rcx
movq %rcx, (%r12)
movq 0x8(%rsp), %rdx
addq $0x44, %r15
pushq $0x1
popq %rax
cmpq %rax, %r14
je 0x18a742
movl -0x20(%r15), %esi
movl (%r15), %edi
shrl $0x5, %edi
andl $0x1, %edi
leal (%rdi,%rsi,2), %esi
cmpq %rsi, %rdx
je 0x18a744
movq (%rbx), %rdi
shrl %esi
movl (%rdi,%rsi,4), %esi
cmpq %rsi, %rcx
jne 0x18a742
incq %rax
addq $0x24, %r15
jmp 0x18a712
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: cc_bub_match(ul_ov_t*, long)
uint64_t cc_bub_match(ul_ov_t *ch, int64_t ch_n) {
	if(ch_n == 0) return 0;
    int64_t i, j, k;

    radix_sort_ul_ov_srt_qs(ch, ch + ch_n);
	for (i = 1, j = 0; i <= ch_n; i++) {
        if (i == ch_n || ch[i].qs != ch[j].qs) {
            if(i - j > 1) radix_sort_ul_ov_srt_qe(ch+j, ch+i);
            j = i;
        }
    }

	for (i = k = 0; i < ch_n; ++i) {
		if(ch[i].tn == (uint32_t)-1) continue;
		for (j = i + 1; j < ch_n && ch[i].qe >= ch[j].qs; j++) {
			if(ch[j].tn == (uint32_t)-1) continue;
			if((ch[i].qe == ch[j].qs) && (ch[i].rev == ch[j].rev) && (ch[i].qn == ch[j].qn)) {
				if(!ch[i].rev) {
					if(ch[i].te == ch[j].ts) {
						ch[i].qe = ch[j].qe;
						ch[i].te = ch[j].te;
						ch[j].tn = (uint32_t)-1;
					}
				} else {
					if(ch[j].te == ch[i].ts) {
						ch[i].qe = ch[j].qe;
						ch[i].ts = ch[j].ts;
						ch[j].tn = (uint32_t)-1;
					}
				}
			}
		}

		ch[k++] = ch[i];
	}

	return k;
}

// Assembly:
testq %rsi, %rsi
je 0x18ae5f
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
imulq $0x1c, %rsi, %rsi
addq %rdi, %rsi
callq 0x1571fa
xorl %eax, %eax
testq %rbx, %rbx
movl $0x0, %r12d
cmovgq %rbx, %r12
movq %r12, %r13
negq %r13
leaq 0x1c(%r14), %r15
pushq $0x1
popq %rbp
movq %r13, %rcx
addq %rbp, %rcx
cmpq $0x1, %rcx
je 0x18ad87
cmpq %rbp, %rbx
je 0x18ad5a
movl 0x4(%r15), %ecx
imulq $0x1c, %rax, %rdx
cmpl 0x4(%r14,%rdx), %ecx
jne 0x18ad5a
movq %rax, %rcx
jmp 0x18ad7b
movq %rbp, %rdx
subq %rax, %rdx
movq %rbp, %rcx
cmpq $0x2, %rdx
jl 0x18ad7b
imulq $0x1c, %rax, %rdi
addq %r14, %rdi
movq %r15, %rsi
callq 0x156f5c
movq %rbp, %rcx
incq %rbp
addq $0x1c, %r15
movq %rcx, %rax
jmp 0x18ad35
leaq 0x1c(%r14), %rcx
pushq $0x1
popq %rdx
xorl %esi, %esi
pushq $0x14
popq %rdi
pushq $0x10
popq %r8
xorl %eax, %eax
cmpq %r12, %rsi
je 0x18ae50
imulq $0x1c, %rsi, %r9
cmpl $-0x1, 0xc(%r14,%r9)
je 0x18ae41
addq %r14, %r9
movq %rcx, %r10
movq %rdx, %r11
cmpq %rbx, %r11
jge 0x18ae26
movl 0x4(%r10), %ebp
cmpl %ebp, 0x8(%r9)
jb 0x18ae26
jne 0x18ae0e
cmpl $-0x1, 0xc(%r10)
je 0x18ae0e
movl 0x18(%r9), %ebp
movl 0x18(%r10), %r15d
xorl %ebp, %r15d
js 0x18ae0e
movl (%r9), %r15d
cmpl (%r10), %r15d
jne 0x18ae0e
testl %ebp, %ebp
js 0x18ae17
movl 0x14(%r9), %ebp
movq %rdi, %r15
cmpl 0x10(%r10), %ebp
jne 0x18ae0e
movl 0x8(%r10), %ebp
movl %ebp, 0x8(%r9)
movl (%r10,%r15), %ebp
movl %ebp, (%r9,%r15)
orl $-0x1, 0xc(%r10)
incq %r11
addq $0x1c, %r10
jmp 0x18adbb
movl 0x14(%r10), %ebp
movq %r8, %r15
cmpl 0x10(%r9), %ebp
je 0x18adf9
jmp 0x18ae0e
imulq $0x1c, %rax, %r10
incq %rax
movups (%r9), %xmm0
movups 0xc(%r9), %xmm1
movups %xmm1, 0xc(%r14,%r10)
movups %xmm0, (%r14,%r10)
incq %rsi
incq %rdx
addq $0x1c, %rcx
jmp 0x18ad99
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: extract_scaf_res_t(uc_block_t*, ul_idx_t const*, scaf_res_t*, unsigned int, kv_ul_ov_t*)
uint64_t extract_scaf_res_t(uc_block_t *in, const ul_idx_t *uref, scaf_res_t *ref_sc, uint32_t avid, kv_ul_ov_t *res)
{
	utg_rid_dt *a; uint64_t i, a_n, nn, nw; uc_block_t *ou; ul_ov_t p; memset(&p, 0, sizeof(p));
	a = get_r_ug_region(uref->r_ug, &a_n, in->hid);
    for (i = nn = 0; i < a_n; i++) {
		if((a[i].u>>1) == avid) continue;
		ou = &(ref_sc->a[a[i].u>>1].bb.a[a[i].off]);
		p.qn = (uint32_t)-1; p.qs = in->qs; p.qe = in->qe;
		p.tn = a[i].u>>1; p.ts = ou->qs; p.te = ou->qe; 
		p.el = 1; p.rev = ((in->rev == ou->rev)?0:1);
		nw = MAX(p.te-p.ts, p.qe-p.qs); nw *= CHAIN_MATCH; 
		p.sec = ((nw>=0x3fffffff)?(0x3fffffff):(nw));
		kv_push(ul_ov_t, *res, p);

		nn++;
    }
	return nn;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, 0x28(%rsp)
movq %rdi, %r10
movq 0x28(%rsi), %rdi
movl (%r10), %eax
movq (%rdi), %rsi
movl (%rsi,%rax,4), %r9d
movl 0x4(%rsi,%rax,4), %eax
subl %r9d, %eax
jne 0x18ae94
xorl %r11d, %r11d
jmp 0x18ae9c
imulq $0xc, %r9, %r11
addq 0x18(%rdi), %r11
imulq $0xc, %rax, %r15
xorl %ebp, %ebp
movl $0x3fffffff, %edx       # imm = 0x3FFFFFFF
xorl %eax, %eax
movq %r8, 0x20(%rsp)
movq %r11, 0x18(%rsp)
movq %r15, 0x10(%rsp)
cmpq %rbp, %r15
je 0x18afe2
movl (%r11,%rbp), %r14d
shrl %r14d
cmpl %ecx, %r14d
je 0x18afd9
movq %rax, 0x30(%rsp)
movq 0x28(%rsp), %rax
movq (%rax), %rax
imulq $0x58, %r14, %rsi
movq 0x30(%rax,%rsi), %rax
movl 0x4(%r11,%rbp), %esi
imulq $0x24, %rsi, %rsi
movl 0x4(%r10), %r13d
movl 0x8(%r10), %r12d
movl 0x4(%rax,%rsi), %edi
movl 0x8(%rax,%rsi), %r9d
movb 0x20(%rax,%rsi), %bl
xorb 0x20(%r10), %bl
movl %r9d, 0x8(%rsp)
movl %r9d, %eax
movl %edi, 0xc(%rsp)
subl %edi, %eax
movl %r12d, (%rsp)
movl %r13d, 0x4(%rsp)
subl %r13d, %r12d
cmpl %r12d, %eax
cmoval %eax, %r12d
cmpl %edx, %r12d
cmovael %edx, %r12d
movq (%r8), %rax
movq 0x8(%r8), %rdi
cmpq 0x10(%r8), %rdi
jne 0x18af83
leaq (%rdi,%rdi), %rsi
testq %rdi, %rdi
pushq $0x2
popq %rdi
cmoveq %rdi, %rsi
movq %rsi, 0x10(%r8)
imulq $0x1c, %rsi, %rsi
movq %rax, %rdi
movl %ecx, %r15d
movq %r10, %r13
callq 0x2370
movq 0x18(%rsp), %r11
movq %r13, %r10
movl $0x3fffffff, %edx       # imm = 0x3FFFFFFF
movl %r15d, %ecx
movq 0x10(%rsp), %r15
movq 0x20(%rsp), %r8
movq %rax, (%r8)
movq 0x8(%r8), %rdi
shrb $0x5, %bl
movzbl %bl, %r9d
shll $0x1f, %r9d
orl %r12d, %r9d
leaq 0x1(%rdi), %rsi
movq %rsi, 0x8(%r8)
imulq $0x1c, %rdi, %rsi
orl $-0x1, (%rax,%rsi)
orl $0x40000000, %r9d       # imm = 0x40000000
movl 0x4(%rsp), %edi
movl %edi, 0x4(%rax,%rsi)
movl (%rsp), %edi
movl %edi, 0x8(%rax,%rsi)
movl %r14d, 0xc(%rax,%rsi)
movl 0xc(%rsp), %edi
movl %edi, 0x10(%rax,%rsi)
movl 0x8(%rsp), %edi
movl %edi, 0x14(%rax,%rsi)
movl %r9d, 0x18(%rax,%rsi)
movq 0x30(%rsp), %rax
incq %rax
addq $0xc, %rbp
jmp 0x18aeb8
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: gen_trans_ovlp_scaf(ma_ug_t*, u_trans_t*, uc_block_t*, uc_block_t*, ul_ov_t*)
uint64_t gen_trans_ovlp_scaf(ma_ug_t *gfa, u_trans_t *map, uc_block_t *qin, uc_block_t *rin, ul_ov_t *res)
{
	uint64_t s, e, s0, e0; uc_block_t *z;

	z = qin; s0 = map->qs; e0 = map->qe;
	if(s0 > gfa->u.a[z->hid].len || e0 > gfa->u.a[z->hid].len) return 0;
	if(!(z->rev)) {
		s = s0; e = e0;
	} else {
		s = gfa->u.a[z->hid].len - e0; 
		e = gfa->u.a[z->hid].len - s0;
	}
	s += z->qs; e += z->qs;
	if(s >= e) return 0;
	res->qs = s; res->qe = e;


	z = rin; s0 = map->ts; e0 = map->te;
	if(s0 > gfa->u.a[z->hid].len || e0 > gfa->u.a[z->hid].len) return 0;
	if(!(z->rev)) {
		s = s0; e = e0;
	} else {
		s = gfa->u.a[z->hid].len - e0; 
		e = gfa->u.a[z->hid].len - s0;
	}
	s += z->qs; e += z->qs;
	if(s >= e) return 0;
	res->ts = s; res->te = e;

	res->rev = map->rev^(qin->rev^rin->rev); 

	return 1;
}

// Assembly:
pushq %rbx
movl (%rsi), %r9d
movl 0x4(%rsi), %r10d
movq 0x10(%rdi), %rax
movl (%rdx), %edi
imulq $0x28, %rdi, %rdi
movl (%rax,%rdi), %edi
andl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
cmpl %edi, %r9d
seta %r11b
cmpl %edi, %r10d
seta %bl
orb %r11b, %bl
jne 0x18b0de
movl %r10d, %r11d
movq %rdi, %r10
subq %r11, %r10
subq %r9, %rdi
testb $0x20, 0x20(%rdx)
cmoveq %r9, %r10
cmoveq %r11, %rdi
movl 0x4(%rdx), %r9d
addq %r9, %r10
addq %r9, %rdi
cmpq %rdi, %r10
jae 0x18b0de
movl %r10d, 0x4(%r8)
movl %edi, 0x8(%r8)
movl 0xc(%rsi), %edi
movl 0x10(%rsi), %r9d
movl (%rcx), %r10d
imulq $0x28, %r10, %r10
movl (%rax,%r10), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cmpl %eax, %edi
seta %r10b
cmpl %eax, %r9d
seta %r11b
orb %r10b, %r11b
jne 0x18b0de
movl %r9d, %r10d
movq %rax, %r9
subq %r10, %r9
subq %rdi, %rax
testb $0x20, 0x20(%rcx)
cmoveq %rdi, %r9
cmoveq %r10, %rax
movl 0x4(%rcx), %edi
addq %rdi, %r9
addq %rdi, %rax
cmpq %rax, %r9
jae 0x18b0de
movl %r9d, 0x10(%r8)
movl %eax, 0x14(%r8)
movb 0x28(%rsi), %al
shrb $0x6, %al
movb 0x20(%rcx), %cl
xorb 0x20(%rdx), %cl
shrb $0x5, %cl
xorb %al, %cl
movzbl %cl, %eax
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
andl 0x18(%r8), %ecx
shll $0x1f, %eax
orl %eax, %ecx
movl %ecx, 0x18(%r8)
movabsq $0x1, %rax
jmp 0x18b0e0
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: cal_reliable_ovlp(ul_ov_t*, asg64_v*, unsigned long, unsigned long)
uint64_t cal_reliable_ovlp(ul_ov_t *z, asg64_v *in, uint64_t s, uint64_t e)
{
	if(z->sec >= in->n) return 0;
	uint64_t k, zs, ze, os, oe, ovq, l = 0;
	for (k = z->sec - in->a[z->sec]; k < z->sec; k++) {
		zs = (in->a[k]>>32); ze = ((uint32_t)in->a[k]);
		if(zs >= e) break;
		if(ze <= s) continue;
		os = MAX(s, zs); oe = MIN(e, ze);
		ovq = ((oe > os)? (oe - os):0);
		l += ovq;
	}
	return l;
}

// Assembly:
movl 0x18(%rdi), %edi
andl $0x3fffffff, %edi       # imm = 0x3FFFFFFF
cmpq %rdi, (%rsi)
jbe 0x18c2c4
movq 0x10(%rsi), %rsi
movq %rdi, %r8
subq (%rsi,%rdi,8), %r8
xorl %eax, %eax
cmpq %rdi, %r8
jae 0x18c2c6
movq (%rsi,%r8,8), %r10
movq %r10, %r9
shrq $0x20, %r9
cmpq %rcx, %r9
jae 0x18c2c6
movl %r10d, %r10d
cmpq %rdx, %r10
jbe 0x18c2bf
cmpq %rdx, %r9
cmovbeq %rdx, %r9
cmpq %rcx, %r10
cmovaeq %rcx, %r10
subq %r9, %r10
movl $0x0, %r9d
cmovaeq %r10, %r9
addq %r9, %rax
incq %r8
jmp 0x18c284
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: push_ctg_trans_res(unsigned int, kv_ul_ov_t*, kv_ul_ov_t*)
void push_ctg_trans_res(uint32_t id, kv_ul_ov_t *in, kv_ul_ov_t *ou)
{
	uint32_t k;
	kv_resize(ul_ov_t, *ou, ou->n + in->n);
	for (k = 0; k < in->n; k++) {
		in->a[k].sec = ((in->a[k].qn>=(0x3fffffff))?(0x3fffffff):(in->a[k].qn));
		in->a[k].qn = id; kv_push(ul_ov_t, *ou, in->a[k]);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movl %edi, %ebp
movq 0x8(%rsi), %rax
addq 0x8(%rdx), %rax
cmpq %rax, 0x10(%rdx)
jae 0x18c9e9
decq %rax
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x10, %rcx
orq %rax, %rcx
incq %rcx
movq %rcx, 0x10(%rbx)
movq (%rbx), %rdi
imulq $0x1c, %rcx, %rsi
callq 0x2370
movq %rax, (%rbx)
xorl %r15d, %r15d
movl $0x3fffffff, %r12d      # imm = 0x3FFFFFFF
movl $0xc0000000, %edi       # imm = 0xC0000000
movl %r15d, %r15d
cmpq %r15, 0x8(%r14)
jbe 0x18ca8d
movq (%r14), %rax
imulq $0x1c, %r15, %r13
movl (%rax,%r13), %ecx
cmpl %r12d, %ecx
cmovael %r12d, %ecx
movl 0x18(%rax,%r13), %edx
andl %edi, %edx
orl %ecx, %edx
movl %edx, 0x18(%rax,%r13)
movq (%r14), %rcx
movl %ebp, (%rcx,%r13)
movq (%rbx), %rax
movq 0x8(%rbx), %rdx
cmpq 0x10(%rbx), %rdx
jne 0x18ca65
leaq (%rdx,%rdx), %rcx
testq %rdx, %rdx
pushq $0x2
popq %rdx
cmoveq %rdx, %rcx
movq %rcx, 0x10(%rbx)
imulq $0x1c, %rcx, %rsi
movq %rax, %rdi
callq 0x2370
movl $0xc0000000, %edi       # imm = 0xC0000000
movq %rax, (%rbx)
movq (%r14), %rcx
movq 0x8(%rbx), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x8(%rbx)
imulq $0x1c, %rdx, %rdx
movups (%rcx,%r13), %xmm0
movups 0xc(%rcx,%r13), %xmm1
movups %xmm1, 0xc(%rax,%rdx)
movups %xmm0, (%rax,%rdx)
incl %r15d
jmp 0x18c9f7
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: refine_rid_chain(asg_t const*, mg_tbuf_s*, ul_vec_t*, unsigned long)
uint32_t refine_rid_chain(const asg_t *rg, mg_tbuf_t *b, ul_vec_t *rch, uint64_t ulid)
{
	if(rch->bb.n == 1 && rch->bb.a[0].base) return 1;///no alignment
	if(rch->bb.n == 0) return 1;///no alignment
	uint64_t i, m, c[2], nc, cc/**, ni[2]**/; 
	for (i = c[1] = rch->bb.n-1, m = nc = 0; i != (uint32_t)-1; i = rch->bb.a[i].pidx) {
		m++; c[0] = i; if(!(rg->seq[rch->bb.a[i].hid].del)) nc++; 
	}
	if(m == rch->bb.n) {///only one chain
		if(nc == m || nc == 0) return 1;///all alignments are non-contained/contained
		cc = 0;
		for (i = c[1]; i != (uint32_t)-1; i = rch->bb.a[i].pidx) {
			if(rg->seq[rch->bb.a[i].hid].del) cc++;
			else break;
		}
		// ni[1] = i;
		for (i = c[0]; i != (uint32_t)-1; i = rch->bb.a[i].aidx) {
			if(rg->seq[rch->bb.a[i].hid].del) cc++;
			else break;
		}
		// ni[0] = i;
		if(nc + cc == m) return 1;
		// assert(ni[1] > ni[0] && ni[0] != (uint32_t)-1 && ni[1] != (uint32_t)-1);
		return 2;
	}
	return 0;
}

// Assembly:
movq 0x20(%rdx), %rcx
movl $0x1, %r9d
testq %rcx, %rcx
je 0x18cd77
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
cmpq $0x1, %rcx
jne 0x18ccac
movq 0x30(%rdx), %rax
testb $0x40, 0x20(%rax)
jne 0x18cd7b
leaq -0x1(%rcx), %r8
xorl %r10d, %r10d
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rcx, %r11
movq %r8, %r14
cmpq %rax, %r14
je 0x18ccf2
movq %r14, %rbx
movq 0x20(%rdi), %rsi
movq 0x30(%rdx), %r14
imulq $0x24, %rbx, %r15
movl (%r14,%r15), %r12d
movl 0x14(%r14,%r15), %r14d
xorl %r15d, %r15d
cmpl $0x0, (%rsi,%r12,8)
setns %r15b
addq %r15, %r10
decq %r11
movq %rbx, %rsi
jmp 0x18ccbe
xorl %eax, %eax
testq %r11, %r11
jne 0x18cd7e
subq %r10, %rcx
sete %al
testq %r10, %r10
sete %r10b
orb %al, %r10b
movl %r9d, %eax
jne 0x18cd7e
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, %r8
je 0x18cd5f
movq 0x20(%rdi), %r10
movq 0x30(%rdx), %r9
imulq $0x24, %r8, %r8
movl (%r9,%r8), %r11d
cmpl $0x0, (%r10,%r11,8)
jns 0x18cd5f
addq %r8, %r9
movl 0x14(%r9), %r8d
decq %rcx
jmp 0x18cd17
movq 0x20(%rdi), %r8
movq 0x30(%rdx), %rax
imulq $0x24, %rsi, %rsi
movl (%rax,%rsi), %r9d
cmpl $0x0, (%r8,%r9,8)
jns 0x18cd69
addq %rsi, %rax
movl 0x1c(%rax), %esi
decq %rcx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, %rsi
jne 0x18cd3f
cmpq $0x1, %rcx
movl $0x2, %eax
sbbl $0x0, %eax
jmp 0x18cd7e
movl %r9d, %eax
retq
movl %r9d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: gconnect_test(asg_t const*, unsigned int, unsigned int, long, double, long)
int64_t gconnect_test(const asg_t *g, uint32_t v, uint32_t w, int64_t bw, double diff_ec_ul, int64_t dq)
{
	int64_t dt = -1, dif, mm; 
	uint32_t nv, i; asg_arc_t *av = NULL; ///ma_hit_t *x = NULL;
	nv = asg_arc_n(g, v); av = asg_arc_a(g, v);
	for (i = 0; i < nv; i++) {
		if(av[i].del || av[i].v != w) continue;
		dt = av[i].ol; 
		break;
	}

	if(dt < 0) return 0;
	dif = (dq>dt? dq-dt:dt-dq);
	mm = MAX(dq, dt); mm *= diff_ec_ul; if(mm < bw) mm = bw;
	if(dif <= mm) return 1;
	return 0;
}

// Assembly:
movq 0x8(%rdi), %rax
movq 0x28(%rdi), %rdi
movl %esi, %esi
movq (%rdi,%rsi,8), %rsi
movl %esi, %edi
movq %rsi, %r9
shrq $0x20, %r9
imulq $0x18, %rdi, %rsi
imulq $0x18, %r9, %rdi
addq %rax, %rdi
addq $0xc, %rdi
xorl %eax, %eax
xorl %r9d, %r9d
cmpq %r9, %rsi
je 0x18e4d9
movslq (%rdi,%r9), %r10
testq %r10, %r10
js 0x18e4a2
cmpl %edx, -0x4(%rdi,%r9)
je 0x18e4a8
addq $0x18, %r9
jmp 0x18e48d
movq %r10, %rax
subq %r8, %rax
cmovgq %r10, %r8
movq %rax, %rdx
negq %rdx
cmovsq %rax, %rdx
cvtsi2sd %r8, %xmm1
mulsd %xmm0, %xmm1
cvttsd2si %xmm1, %rax
cmpq %rcx, %rax
cmovgq %rax, %rcx
xorl %eax, %eax
cmpq %rcx, %rdx
setle %al
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: detect_outlier_len(char const*)
void detect_outlier_len(const char* cmd)
{
	uint64_t k;
	for (k = 0; k < UL_INF.n; k++) {
        if(UL_INF.a[k].rlen == 0) {
            fprintf(stderr, "[%s] rid->%lu, rlen->%u, %.*s\n", 
                    cmd, k, UL_INF.a[k].rlen, (int32_t)UL_INF.nid.a[k].n, UL_INF.nid.a[k].a);
        }
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0xc33cc(%rip), %r12     # 0x254318
movq 0x50(%r12), %rax
pushq $0x18
popq %r13
pushq $0x8
popq %rbp
leaq 0x64aaa(%rip), %r14     # 0x1f5a09
xorl %r15d, %r15d
cmpq %rax, %r15
jae 0x190fb6
movq 0x48(%r12), %rcx
cmpl $0x0, (%rcx,%r13)
je 0x190f80
incq %r15
addq $0x58, %r13
addq $0x10, %rbp
jmp 0x190f62
movq 0xc2059(%rip), %rax     # 0x252fe0
movq (%rax), %rdi
movq 0x10(%r12), %rax
movl (%rax,%rbp), %r9d
movq -0x8(%rax,%rbp), %rax
movq %rax, (%rsp)
movq %r14, %rsi
movq %rbx, %rdx
movq %r15, %rcx
xorl %r8d, %r8d
xorl %eax, %eax
callq 0x22b0
movq 0x50(%r12), %rax
jmp 0x190f73
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: worker_for_ul_gchains_alignment(void*, long, int)
static void worker_for_ul_gchains_alignment(void *data, long i, int tid)
{
	ul_vec_t *p = &(UL_INF.a[i]); 
	utepdat_t *s = (utepdat_t*)data; uint32_t ff;
	ff = refine_rid_chain(s->rg, s->buf[tid], p, i);
	// fprintf(stderr, "[M::%s::%.*s(id:%ld), len:%u] ff:%u\n", __func__, 
	// UL_INF.nid.a[i].n, UL_INF.nid.a[i].a, i, p->rlen, ff);
	if(ff == 1) return;
	// if(p->dd == 1) return; //fully aligned
	// if(p->bb.n == 1 && p->bb.a[0].base) return;///no alignment
	// if(p->bb.n == 0) return;///no alignment
	s->hab[tid]->num_read_base++; 
	s->hab[tid]->num_correct_base += direct_gchain(s->buf[tid], p, &(s->ll[tid]), &(s->gdp[tid]), &(s->sps[tid]), &(s->hab[tid]->hap), s->uu, s->uopt, G_CHAIN_BW, s->opt->diff_ec_ul, UG_SKIP, i, &(s->hab[tid]->clist.chainDP), s->rg, ((ff==2)?1:0));
	// gl_chain_refine_advance(&b->olist, &b->correct, &b->hap, bl, s->uu, s->opt->diff_ec_ul, winLen, s->len[i], s->uopt, s->id+i, km);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movl %edx, %ebp
movq %rdi, %rbx
leaq 0xc3102(%rip), %rax     # 0x254318
imulq $0x58, %rsi, %r14
addq 0x48(%rax), %r14
movq 0x20(%rdi), %r15
movq %r15, %rdi
movq %r14, %rdx
callq 0x18cc7e
cmpl $0x1, %eax
je 0x1912d0
movslq %ebp, %r12
movq 0x78(%rbx), %rcx
movq 0x80(%rbx), %rdx
movq (%rcx,%r12,8), %rdi
movq (%rdx,%r12,8), %rsi
incq 0xf0(%rsi)
imulq $0x68, %r12, %rdx
addq 0x88(%rbx), %rdx
imulq $0xc0, %r12, %rcx
addq 0x90(%rbx), %rcx
imulq $0x18, %r12, %r8
addq 0x68(%rbx), %r8
movq 0x30(%rbx), %r9
movq (%rbx), %r10
movq 0x28(%rbx), %r11
movsd 0x68(%r10), %xmm0
addq $0x60, %rsi
xorl %r10d, %r10d
cmpl $0x2, %eax
sete %r10b
movq %r10, 0x38(%rsp)
movq %r15, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq %r11, 0x8(%rsp)
movq %r9, (%rsp)
movq $0x10, 0x10(%rsp)
movq %r14, %rsi
callq 0x1891d3
movl %eax, %eax
movq 0x80(%rbx), %rcx
movq (%rcx,%r12,8), %rcx
addq %rax, 0xf8(%rcx)
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: worker_for_ctg_trans_alignment(void*, long, int)
static void worker_for_ctg_trans_alignment(void *data, long i, int tid)
{
	ctdat_t *c = (ctdat_t*)data;
	utepdat_t *s = c->s; 
	// ul_vec_t *q = &(c->qry_sc->a[i]); 

	s->hab[tid]->num_read_base++; 
	s->hab[tid]->num_correct_base += direct_ctg_trans_chain(s->buf[tid], i, &(s->ll[tid]), &(s->gdp[tid]), &(s->sps[tid]), &(s->hab[tid]->hap), s->uu, s->uopt, G_CHAIN_BW, s->opt->diff_ec_ul, UG_SKIP, i, &(s->hab[tid]->clist.chainDP), 
	c->qry, c->qry_sc, c->ref, c->ref_sc, c->gfa, c->bub, c->ta, s->rg, c->soff, c->is_exact);
}

// Assembly:
subq $0x88, %rsp
movq (%rdi), %rax
movq 0x80(%rax), %rcx
movslq %edx, %r8
movq (%rcx,%r8,8), %rcx
incq 0xf0(%rcx)
imulq $0x68, %r8, %rdx
addq 0x88(%rax), %rdx
imulq $0x18, %r8, %r8
addq 0x68(%rax), %r8
movq (%rax), %r9
movq 0x30(%rax), %rax
movsd 0x68(%r9), %xmm0
addq $0x60, %rcx
movups 0x8(%rdi), %xmm1
movups 0x18(%rdi), %xmm2
movups 0x28(%rdi), %xmm3
movq 0x38(%rdi), %r9
movups 0x48(%rdi), %xmm4
movups %xmm4, 0x70(%rsp)
movq %r9, 0x60(%rsp)
movups %xmm3, 0x50(%rsp)
movups %xmm2, 0x40(%rsp)
movups %xmm1, 0x30(%rsp)
movq %rcx, 0x28(%rsp)
movq %rax, (%rsp)
movq $0x10, 0x10(%rsp)
callq 0x18ca9c
addq $0x88, %rsp
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: work_ul_gchains_consensus(uldat_t*)
uint64_t work_ul_gchains_consensus(uldat_t *sl)
{
	utepdat_t s; uint64_t i; memset(&s, 0, sizeof(s));
	s.id = 0; s.uopt = sl->uopt; s.rg = sl->rg; s.opt = sl->opt; ///s.ug = sl->ug; s.uu = sl->uu; 
	//  CALLOC(s.buf, sl->n_thread); CALLOC(s.gdp, sl->n_thread); CALLOC(s.mzs, sl->n_thread); 
	CALLOC(s.hab, sl->n_thread); CALLOC(s.ll, sl->n_thread); ///CALLOC(s.sps, sl->n_thread); 

	for (i = 0; i < sl->n_thread; ++i) {
		s.hab[i] = ha_ovec_init(0, 0, 1); ///s.buf[i] = mg_tbuf_init();
	}

	// detect_outlier_len("+++work_ul_gchains");

	//debug
    // overall_zdbg = init_mul_debug_prt_t(UL_INF.n);

	kt_for(sl->n_thread, worker_for_contain_consensus, &s, UL_INF.n);

	// detect_outlier_len("---work_ul_gchains");

	for (i = 0; i < sl->n_thread; ++i) {
		s.sum_len += s.hab[i]->num_read_base; s.n += s.hab[i]->num_correct_base;
		// hc_gdpchain_destroy(&(s.gdp[i])); kv_destroy(s.mzs[i]); mg_tbuf_destroy(s.buf[i]); 
		ha_ovec_destroy(s.hab[i]); hc_glchain_destroy(&(s.ll[i])); ///kv_destroy(s.sps[i]);
	}

	// free(s.buf); free(s.gdp); free(s.mzs); 
	free(s.hab); free(s.ll); ///free(s.sps);
	fprintf(stderr, "[M::%s::] # try:%d, # done:%d\n", __func__, s.sum_len, s.n); 
	return s.sum_len;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rdi, %rbx
leaq 0x10(%rsp), %r12
xorl %r13d, %r13d
movl $0xc8, %edx
movq %r12, %rdi
xorl %esi, %esi
callq 0x20e0
movups 0x20(%rbx), %xmm0
movups %xmm0, 0x18(%r12)
movq 0x10(%rbx), %rax
movq %rax, -0x8(%r12)
movq 0x58(%rbx), %r14
pushq $0x8
popq %rsi
movq %r14, %rdi
callq 0x2120
movq %rax, %r15
movq %rax, 0x78(%r12)
pushq $0x68
popq %rsi
movq %r14, %rdi
callq 0x2120
movq %rax, 0x80(%r12)
pushq $0x1
popq %rbp
cmpq %r14, %r13
jae 0x19207f
xorl %edi, %edi
xorl %esi, %esi
movl %ebp, %edx
callq 0xc44b
movq %rax, (%r15,%r13,8)
incq %r13
movq 0x58(%rbx), %r14
jmp 0x192062
leaq 0xc2292(%rip), %rax     # 0x254318
movq 0x50(%rax), %rcx
leaq 0xa8(%rip), %rsi        # 0x192139
leaq 0x8(%rsp), %rdx
movl %r14d, %edi
callq 0xc67c0
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x88(%rsp), %rdi
cmpq 0x58(%rbx), %r15
jae 0x1920e8
movq (%rdi,%r15,8), %rdi
movl 0xf0(%rdi), %eax
addl %eax, 0x48(%rsp)
movl 0xf8(%rdi), %eax
addl %eax, 0x40(%rsp)
callq 0xc5d1
movq 0x90(%rsp), %rdi
addq %r14, %rdi
callq 0x15a8d7
incq %r15
addq $0x68, %r14
jmp 0x1920a4
callq 0x2220
movq 0x90(%rsp), %rdi
callq 0x2220
movq 0xc0edf(%rip), %rax     # 0x252fe0
movq (%rax), %rdi
movl 0x40(%rsp), %r8d
movl 0x48(%rsp), %ecx
leaq 0x63914(%rip), %rsi     # 0x1f5a28
leaq 0x63a07(%rip), %rdx     # 0x1f5b22
xorl %eax, %eax
callq 0x22b0
movslq 0x48(%rsp), %rax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: update_contain_dedup_arr(asg64_v*, unsigned long, asg64_v*)
void update_contain_dedup_arr(asg64_v *in, uint64_t prefix, asg64_v *res)
{
	if(in->n == 0) return;
	uint64_t i, m;
	for (i = 0; i < in->n; i++) {
		if(in->a[i] == ((uint64_t)-1)) continue;
		if(((uint32_t)in->a[i]) == ((uint32_t)-1)) {
			m = prefix; m <<= 32; m += i;
			kv_push(uint64_t, *res, m);
		}
	}
}

// Assembly:
movq (%rdi), %rax
testq %rax, %rax
je 0x19240d
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
shlq $0x20, %r14
xorl %r12d, %r12d
pushq $0x2
popq %r13
cmpq %rax, %r12
jae 0x192404
movq 0x10(%r15), %rcx
movq (%rcx,%r12,8), %rcx
cmpq $-0x1, %rcx
sete %dl
cmpl $-0x1, %ecx
setne %cl
orb %dl, %cl
jne 0x1923ff
movq (%rbx), %rcx
movq 0x10(%rbx), %rax
cmpq 0x8(%rbx), %rcx
jne 0x1923ed
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
cmoveq %r13, %rsi
movq %rsi, 0x8(%rbx)
shlq $0x3, %rsi
movq %rax, %rdi
callq 0x2370
movq %rax, 0x10(%rbx)
movq (%rbx), %rcx
leaq (%r14,%r12), %rdx
leaq 0x1(%rcx), %rsi
movq %rsi, (%rbx)
movq %rdx, (%rax,%rcx,8)
movq (%r15), %rax
incq %r12
jmp 0x1923a0
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: path_del_topo(asg_t*, unsigned long)
uint64_t path_del_topo(asg_t *g, uint64_t v)
{
	uint64_t nv, nw, kw, k, z, w; asg_arc_t *av, *aw;
	nv = asg_arc_n(g, v); av = asg_arc_a(g, v);
	for (k = 0; k < nv; k++){
		if(av[k].del) continue;
		w = av[k].v^1;
		nw = asg_arc_n(g, w); aw = asg_arc_a(g, w);
		for (z = kw = 0; z < nw; z++) {
			if(aw[z].del) continue;
			if((aw[z].v>>1) != (v>>1)) continue;
			kw++;
		}
		if(kw <= 0) return 0; 
	}
	return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq 0x8(%rdi), %rcx
movq 0x28(%rdi), %rdx
movq (%rdx,%rsi,8), %rax
movl %eax, %edi
shrq $0x20, %rax
imulq $0x18, %rax, %r8
addq %rcx, %r8
shrq %rsi
addq $0xc, %rcx
xorl %r9d, %r9d
movabsq $0x1, %rax
cmpq %rdi, %r9
je 0x1924ac
imulq $0x18, %r9, %r10
cmpl $0x0, 0xc(%r8,%r10)
js 0x1924a5
addq %r8, %r10
movl 0x8(%r10), %r10d
xorq $0x1, %r10
movq (%rdx,%r10,8), %r11
movl %r11d, %r10d
shrq $0x20, %r11
imulq $0x18, %r10, %r10
imulq $0x18, %r11, %r11
addq %rcx, %r11
xorl %r14d, %r14d
xorl %ebx, %ebx
cmpq %r14, %r10
je 0x1924a0
cmpl $0x0, (%r11,%r14)
js 0x19249a
movl -0x4(%r11,%r14), %r15d
shrl %r15d
xorl %r12d, %r12d
cmpq %r15, %rsi
sete %r12b
addq %r12, %rbx
addq $0x18, %r14
jmp 0x192479
testq %rbx, %rbx
je 0x1924aa
incq %r9
jmp 0x192442
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: worker_for_contain_dedup(void*, long, int)
static void worker_for_contain_dedup(void *data, long i, int tid)
{
    utepdat_t *s = (utepdat_t*)data; asg64_v ou; 
	kv_ul_ov_t *idx = &(s->ll[tid].lo), *dump = &(s->ll[tid].tk); 
	uint32_t k, v = i, l, dump_n; 

	if(!gen_dup_path(s->rg, s->uopt->ruIndex, dump, v)) return;
	// if(v == 7723) {
	// 	fprintf(stderr, "[M::%s] v::%u, dump->n::%u\n", __func__, v, (uint32_t)dump->n);
	// }


	copy_asg_arr(ou, s->ll[tid].srt.a); 
	for (k = 1, l = 0, dump_n = dump->n; k <= dump_n; k++) {
		if(k == dump_n || (dump->a[k].tn == ((uint32_t)-1))) {
			assert(k > l || k == dump_n); 
			if(k > l) {
				assert(dump->a[k].tn == ((uint32_t)-1));
				renew_consensus_chain(dump, l, k, idx, &ou, s->uopt->ruIndex, s->uopt, s->rg, G_CHAIN_BW, 
							0.02/**s->opt->diff_ec_ul**/, dump->a[k].qn, &(s->hab[tid]->clist.chainDP), dump->a[k-1].qe, v);
			}
			l = k + 1;
		}
	}
	copy_asg_arr(s->ll[tid].srt.a, ou);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %rcx
movq %rdi, %rbx
movq 0x88(%rdi), %r15
movslq %edx, %rdx
movq %rdx, 0x10(%rsp)
imulq $0x68, %rdx, %r13
leaq (%r15,%r13), %r12
addq $0x18, %r12
movq 0x20(%rdi), %rdi
movq 0x28(%rbx), %rax
movq 0x30(%rax), %rsi
movq %rcx, 0x18(%rsp)
movl %ecx, %ecx
movq %r12, %rdx
callq 0x18f736
testl %eax, %eax
je 0x1935ba
addq %r13, %r15
movq 0x88(%rbx), %rax
movq 0x58(%rax,%r13), %rcx
leaq 0x20(%rsp), %rdx
movq %rcx, 0x10(%rdx)
movups 0x48(%rax,%r13), %xmm0
movaps %xmm0, (%rdx)
movq 0x20(%r15), %r14
movl %r14d, %eax
movq %rax, 0x8(%rsp)
pushq $0x1
popq %rbp
xorl %esi, %esi
cmpl %r14d, %ebp
ja 0x19359e
je 0x193516
movq (%r12), %rax
movl %ebp, %ecx
imulq $0x1c, %rcx, %rdx
cmpl $-0x1, 0xc(%rax,%rdx)
je 0x193526
incl %ebp
jmp 0x1934f6
cmpl %r14d, %esi
jae 0x193595
movq (%r12), %rax
movq 0x8(%rsp), %rcx
jmp 0x19352e
cmpl %esi, %ebp
jbe 0x1935e8
imulq $0x1c, %rcx, %rcx
cmpl $-0x1, 0xc(%rax,%rcx)
jne 0x1935c9
addq %rax, %rcx
movl (%rcx), %r9d
movq 0x80(%rbx), %rcx
movq 0x10(%rsp), %rdx
movq (%rcx,%rdx,8), %r10
addq $0x60, %r10
leal -0x1(%rbp), %ecx
imulq $0x1c, %rcx, %rcx
movl 0x8(%rax,%rcx), %eax
subq $0x8, %rsp
movq %r12, %rdi
movl %ebp, %edx
movq %r15, %rcx
leaq 0x28(%rsp), %r8
movsd 0x4ca9d(%rip), %xmm0    # 0x1e0018
pushq 0x20(%rsp)
pushq %rax
pushq %r10
pushq %r9
pushq $0x10
pushq 0x20(%rbx)
pushq 0x28(%rbx)
callq 0x1908f3
addq $0x40, %rsp
incl %ebp
movl %ebp, %esi
jmp 0x1934f6
movq 0x30(%rsp), %rax
movq 0x88(%rbx), %rcx
movq %rax, 0x58(%rcx,%r13)
movaps 0x20(%rsp), %xmm0
movups %xmm0, 0x48(%rcx,%r13)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x637c4(%rip), %rdi     # 0x1f6d94
leaq 0x5e54c(%rip), %rsi     # 0x1f1b23
leaq 0x63785(%rip), %rcx     # 0x1f6d63
movl $0x498f, %edx           # imm = 0x498F
callq 0x2110
leaq 0x6375f(%rip), %rdi     # 0x1f6d4e
leaq 0x5e52d(%rip), %rsi     # 0x1f1b23
leaq 0x63766(%rip), %rcx     # 0x1f6d63
movl $0x498d, %edx           # imm = 0x498D
callq 0x2110
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: print_all_ul_t_stat(all_ul_t*)
void print_all_ul_t_stat(all_ul_t *x)
{
	uint64_t k, i, ucov_occ = 0, cov_occ = 0, ucov_len = 0, cov_len = 0;
	ul_vec_t *p = NULL;
	for (k = 0; k < x->n; k++) {
		p = &(x->a[k]);
		for (i = 0; i < p->bb.n; i++) {
			if(p->bb.a[i].base/**.hid&x->mm**/) {
				ucov_occ++;
				ucov_len += (p->bb.a[i].qe-(p->bb.a[i].hid&FLANK_M)) - 
					(p->bb.a[i].qs+((p->bb.a[i].hid>>15)&FLANK_M));
			} else {
				cov_occ++;
			}
		}
		cov_len += p->rlen;
	}
	cov_len -= ucov_len;
	fprintf(stderr, "[M::%s::] ==>cov_occ:%lu, ucov_occ:%lu\n", __func__, cov_occ, ucov_occ);
	fprintf(stderr, "[M::%s::] ==>cov_len:%lu, ucov_len:%lu\n", __func__, cov_len, ucov_len);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x50(%rdi), %rax
xorl %edx, %edx
movl $0x7fff, %esi           # imm = 0x7FFF
xorl %r8d, %r8d
xorl %ecx, %ecx
xorl %ebx, %ebx
xorl %r14d, %r14d
cmpq %rax, %rdx
je 0x193967
movq 0x48(%rdi), %r10
imulq $0x58, %rdx, %r11
leaq (%r10,%r11), %r9
movq 0x20(%r10,%r11), %r10
xorl %r11d, %r11d
subq $0x1, %r10
jb 0x19395b
movq 0x30(%r9), %r15
testb $0x40, 0x20(%r15,%r11)
jne 0x193930
incq %rcx
jmp 0x193955
incq %r8
movl (%r15,%r11), %ebp
movl 0x8(%r15,%r11), %r12d
movl %ebp, %r13d
andl %esi, %r13d
shrl $0xf, %ebp
addl 0x4(%r15,%r11), %r13d
andl %esi, %ebp
addl %ebp, %r13d
subl %r13d, %r12d
addq %r12, %rbx
addq $0x24, %r11
jmp 0x193919
movl 0x18(%r9), %r9d
addq %r9, %r14
incq %rdx
jmp 0x193900
subq %rbx, %r14
movq 0xbf66f(%rip), %r12     # 0x252fe0
movq (%r12), %rdi
leaq 0x624d9(%rip), %rsi     # 0x1f5e55
leaq 0x624fa(%rip), %r15     # 0x1f5e7d
movq %r15, %rdx
xorl %eax, %eax
callq 0x22b0
movq (%r12), %rdi
leaq 0x624f9(%rip), %rsi     # 0x1f5e91
movq %r15, %rdx
movq %r14, %rcx
movq %rbx, %r8
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x22b0
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: print_ovlp_src_bl_stat(all_ul_t*, ug_opt_t const*)
void print_ovlp_src_bl_stat(all_ul_t *x, const ug_opt_t *uopt)
{
	uint64_t k, z, tc, ta;
	ma_hit_t_alloc* src = uopt->sources;
	for (k = tc = ta = 0; k < R_INF.total_reads; k++) {
		if(x->ridx.idx.a[k+1] - x->ridx.idx.a[k] == 0) continue;
		tc++;
		for (z = 0; z < src[k].length; z++) {
			if(src[k].buffer[z].bl) {
				ta++;
				break;
			}
		}
	}
	
	fprintf(stderr, "[M::%s::] ==> # HiFi reads:%lu, # covered HiFi reads:%lu, # chained HiFi reads:%lu\n", 
	__func__, R_INF.total_reads, tc, ta);

	uint64_t tt[4] = {0};
	for (k = 0; k < x->n; k++) {
		tt[x->a[k].dd]++;
		// if(x->a[k].dd == 1) {
		// 	fprintf(stderr, "(%lu) %.*s\n", k, (int32_t)x->nid.a[k].n, x->nid.a[k].a);
		// }
	}

	fprintf(stderr, "[M::%s::] ==> # passed UL reads:%lu, # fully corrected UL reads:%lu, # almost fully corrected UL reads:%lu, # UL reads have primary chains:%lu\n", 
	__func__, tt[0]+tt[1]+tt[2]+tt[3], tt[1], tt[2], tt[3]);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movq 0x8(%rsi), %rax
leaq 0xc0865(%rip), %rcx     # 0x254230
movq 0x50(%rcx), %rcx
addq $-0xc, %rax
xorl %r8d, %r8d
xorl %r9d, %r9d
xorl %edx, %edx
imulq $0x18, %rdx, %rsi
addq %rax, %rsi
movq %rdx, %rdi
cmpq %rdi, %rcx
je 0x193a34
movq 0x28(%rbx), %r10
leaq 0x1(%rdi), %rdx
movl 0x4(%r10,%rdi,4), %r11d
addq $0x18, %rsi
cmpl (%r10,%rdi,4), %r11d
movq %rdx, %rdi
je 0x1939e5
incq %r8
movl (%rsi), %edi
imulq $0x28, %rdi, %rdi
addq $0x28, %rdi
xorl %r10d, %r10d
leaq 0x28(%r10), %r11
cmpq %r11, %rdi
je 0x1939db
movq -0xc(%rsi), %r14
testl $0x7fffffff, 0x1c(%r14,%r10) # imm = 0x7FFFFFFF
movq %r11, %r10
je 0x193a14
incq %r9
jmp 0x1939db
movq 0xbf5a5(%rip), %r14     # 0x252fe0
movq (%r14), %rdi
leaq 0x62474(%rip), %rsi     # 0x1f5eb9
leaq 0x624c1(%rip), %rdx     # 0x1f5f0d
xorl %eax, %eax
callq 0x22b0
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movq 0x50(%rbx), %rax
pushq $0x50
popq %rcx
subq $0x1, %rax
jb 0x193a80
movq 0x48(%rbx), %rdx
movzbl (%rdx,%rcx), %edx
incq 0x10(%rsp,%rdx,8)
addq $0x58, %rcx
jmp 0x193a67
movq (%r14), %rdi
movq 0x18(%rsp), %r8
movq 0x20(%rsp), %r9
movq 0x10(%rsp), %rcx
addq %r8, %rcx
movq 0x28(%rsp), %rax
addq %r9, %rcx
addq %rax, %rcx
movq %rax, (%rsp)
leaq 0x62479(%rip), %rsi     # 0x1f5f24
leaq 0x6245b(%rip), %rdx     # 0x1f5f0d
xorl %eax, %eax
callq 0x22b0
addq $0x38, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: gen_ul_vec_rid_t(all_ul_t*, All_reads*, ma_ug_t*)
void gen_ul_vec_rid_t(all_ul_t *x, All_reads *rdb, ma_ug_t *ug)
{
	ul_vec_rid_t *ridx = &(x->ridx);
	uint64_t k, i, l, m, *a, a_n, idx_n; ul_vec_t *p = NULL;
	idx_n = (rdb?rdb->total_reads:ug->u.n);
	ridx->idx.n = ridx->idx.m = idx_n + 1; CALLOC(ridx->idx.a, ridx->idx.n);

	for (k = 0; k < x->n; k++) {///each UL read
		p = &(x->a[k]);
		for (i = 0; i < p->bb.n; i++) {
			if(p->bb.a[i].base) continue;
			ridx->idx.a[p->bb.a[i].hid]++;
		}
	}

	for (k = l = 0; k < ridx->idx.n; k++) {
		m = ridx->idx.a[k];
		ridx->idx.a[k] = l;
		l += m;
	}

	ridx->occ.n = ridx->occ.m = l; MALLOC(ridx->occ.a, ridx->occ.n);
	for (k = 0; k < idx_n; k++) {
		a = ridx->occ.a + ridx->idx.a[k];
		a_n = ridx->idx.a[k+1] - ridx->idx.a[k];
		if(a_n) a[a_n-1] = 0;
	}

	for (k = 0; k < x->n; k++) {
		p = &(x->a[k]);
		for (i = 0; i < p->bb.n; i++) {
			if(p->bb.a[i].base) continue;
			a = ridx->occ.a + ridx->idx.a[p->bb.a[i].hid];
			a_n = ridx->idx.a[p->bb.a[i].hid+1] - ridx->idx.a[p->bb.a[i].hid];
			if(a_n) {
				if(a[a_n-1] == a_n-1) a[a_n-1] = (k<<32)|i;
				else a[a[a_n-1]++] = (k<<32)|i;
			}
		}
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
leaq 0x50(%rsi), %rax
testq %rsi, %rsi
cmoveq %rdx, %rax
movq (%rax), %r12
leaq 0x1(%r12), %rdi
movq %rdi, 0x20(%rbx)
movq %rdi, 0x18(%rbx)
pushq $0x4
popq %rsi
callq 0x2120
movq %rax, %r14
movq %rax, 0x28(%rbx)
movq 0x50(%rbx), %r15
xorl %eax, %eax
pushq $0x20
popq %rcx
cmpq %r15, %rax
je 0x193b3f
movq 0x48(%rbx), %rdx
imulq $0x58, %rax, %rsi
addq %rsi, %rdx
addq $0x20, %rdx
movq (%rdx), %rsi
movq %rcx, %rdi
subq $0x1, %rsi
jb 0x193b3a
movq 0x10(%rdx), %r8
testb $0x40, (%r8,%rdi)
jne 0x193b34
movl -0x20(%r8,%rdi), %r8d
incl (%r14,%r8,4)
addq $0x24, %rdi
jmp 0x193b1a
incq %rax
jmp 0x193b00
pushq $-0x1
popq %rax
xorl %edi, %edi
cmpq %rax, %r12
je 0x193b5b
movl 0x4(%r14,%rax,4), %ecx
movl %edi, 0x4(%r14,%rax,4)
addq %rcx, %rdi
incq %rax
jmp 0x193b44
movq %rdi, 0x38(%rbx)
movq %rdi, 0x30(%rbx)
shlq $0x3, %rdi
callq 0x2280
movq %rax, 0x40(%rbx)
xorl %ecx, %ecx
cmpq %rcx, %r12
je 0x193b95
movl (%r14,%rcx,4), %edx
movl 0x4(%r14,%rcx,4), %esi
cmpl %edx, %esi
je 0x193b90
subl %edx, %esi
leaq (%rax,%rdx,8), %rdx
andq $0x0, -0x8(%rdx,%rsi,8)
incq %rcx
jmp 0x193b72
xorl %ecx, %ecx
pushq $0x20
popq %rdx
cmpq %r15, %rcx
je 0x193c19
movq 0x48(%rbx), %rsi
imulq $0x58, %rcx, %rdi
addq %rdi, %rsi
addq $0x20, %rsi
movq %rcx, %rdi
shlq $0x20, %rdi
movq %rdx, %r8
xorl %r9d, %r9d
cmpq (%rsi), %r9
jae 0x193c14
movq 0x10(%rsi), %r10
testb $0x40, (%r10,%r8)
jne 0x193c0b
movl -0x20(%r10,%r8), %r11d
movl (%r14,%r11,4), %r10d
incl %r11d
movl (%r14,%r11,4), %r11d
subl %r10d, %r11d
je 0x193c0b
leaq (%rax,%r10,8), %r12
leaq (%r12,%r11,8), %r10
addq $-0x8, %r10
decq %r11
movq (%r10), %r13
cmpq %r11, %r13
je 0x193c02
leaq 0x1(%r13), %r11
movq %r11, (%r10)
leaq (%r12,%r13,8), %r10
movq %r9, %r11
orq %rdi, %r11
movq %r11, (%r10)
incq %r9
addq $0x24, %r8
jmp 0x193bbb
incq %rcx
jmp 0x193b9a
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: ugl_cover_check(unsigned long, unsigned long, ma_utg_t*)
uint32_t ugl_cover_check(uint64_t is, uint64_t ie, ma_utg_t *u)
{
	if(is == 0 && ie == u->len) return 1;
	uint64_t l, i, us, ue;
	for (i = l = 0; i < u->n; i++) {
		us = l; ue = l + Get_READ_LENGTH(R_INF, (u->a[i]>>33));
		if(is <= us && ie >= ue) return 1;
		if(us >= ie) break;
		l += (uint32_t)u->a[i];
	}
	return 0;
}

// Assembly:
pushq $0x1
popq %rax
testq %rdi, %rdi
jne 0x193c38
movl (%rdx), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpq %rsi, %rcx
je 0x193c85
movl 0x10(%rdx), %ecx
leaq 0xc05ee(%rip), %r8      # 0x254230
movq 0x18(%r8), %r8
xorl %r9d, %r9d
xorl %r10d, %r10d
cmpq %r9, %rcx
je 0x193c83
cmpq %rdi, %r10
jb 0x193c6e
movq 0x18(%rdx), %r11
movq (%r11,%r9,8), %r11
shrq $0x21, %r11
movq (%r8,%r11,8), %r11
addq %r10, %r11
cmpq %rsi, %r11
jbe 0x193c85
cmpq %rsi, %r10
jae 0x193c83
movq 0x18(%rdx), %r11
movl (%r11,%r9,8), %r11d
addq %r11, %r10
incq %r9
jmp 0x193c4c
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: print_ul_alignment(ma_ug_t*, all_ul_t*, unsigned int, char const*)
void print_ul_alignment(ma_ug_t *ug, all_ul_t *aln, uint32_t id, const char* cmd)
{
	uc_block_t *a = NULL; int64_t k, a_n;
	a = aln->a[id].bb.a; a_n = aln->a[id].bb.n;
	fprintf(stderr, "\n%s::[M::%s::ul_id->%u::a_n->%ld]\n", cmd, __func__, id, a_n);
	for (k = 0; k < a_n; k++) {
		fprintf(stderr, "[k->%ld::utg%.6d%c(len->%u)]\tts::%u\tte::%u\t%c\tqs::%u\tqe::%u\tpchain::%u\tpidx::%u\taidx::%u\tpdis::%u\n", 
			k, a[k].hid + 1, "lc"[ug->u.a[a[k].hid].circ], ug->u.a[a[k].hid].len, 
			a[k].ts, a[k].te, "+-"[a[k].rev], a[k].qs, a[k].qe, a[k].pchain, a[k].pidx, a[k].aidx, a[k].pdis);
		
	}
	
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, %r8d
movq %rdi, (%rsp)
movq 0x48(%rsi), %rax
movl %edx, %edx
imulq $0x58, %rdx, %rdx
movq 0x20(%rax,%rdx), %rbp
movq 0x30(%rax,%rdx), %r13
movq 0xbf109(%rip), %rax     # 0x252fe0
movq (%rax), %rdi
leaq 0x620d3(%rip), %rsi     # 0x1f5fb4
leaq 0x620ef(%rip), %rax     # 0x1f5fd7
xorl %r15d, %r15d
movq %rcx, %rdx
movq %rax, %rcx
movq %rbp, %r9
xorl %eax, %eax
callq 0x22b0
testq %rbp, %rbp
cmovleq %r15, %rbp
addq $0x20, %r13
xorl %r12d, %r12d
cmpq %r12, %rbp
je 0x193fd4
movq 0xbf0c7(%rip), %rax     # 0x252fe0
movq (%rax), %rdi
movl -0x20(%r13), %eax
movl -0x1c(%r13), %ecx
movq %rcx, 0x20(%rsp)
leal 0x1(%rax), %ecx
movq (%rsp), %rdx
movq 0x10(%rdx), %rdx
imulq $0x28, %rax, %rax
movl (%rdx,%rax), %r9d
movl %r9d, %eax
shrl $0x1f, %eax
leaq 0x52742(%rip), %rdx     # 0x1e668b
movsbl (%rax,%rdx), %r8d
andl $0x7fffffff, %r9d       # imm = 0x7FFFFFFF
movl -0x14(%r13), %eax
movq %rax, 0x18(%rsp)
movl -0x10(%r13), %eax
movq %rax, 0x10(%rsp)
movzbl (%r13), %ebx
btl $0x5, %ebx
leaq 0x502ac(%rip), %rax     # 0x1e4223
adcq $0x0, %rax
movsbl (%rax), %eax
movq %rax, 0x8(%rsp)
movl -0x18(%r13), %r10d
andl $0x1f, %ebx
movl -0xc(%r13), %r11d
movl -0x4(%r13), %r15d
movl -0x8(%r13), %r14d
subq $0x8, %rsp
leaq 0x62049(%rip), %rsi     # 0x1f5fea
movq %r12, %rdx
xorl %eax, %eax
pushq %r14
pushq %r15
pushq %r11
pushq %rbx
pushq %r10
pushq 0x50(%rsp)
pushq 0x40(%rsp)
pushq 0x50(%rsp)
pushq 0x60(%rsp)
callq 0x22b0
addq $0x50, %rsp
incq %r12
addq $0x24, %r13
jmp 0x193f09
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: find_ul_block_max_reverse(int, uc_block_t const*, unsigned int)
int32_t find_ul_block_max_reverse(int32_t n, const uc_block_t *a, uint32_t x)
{
    int32_t s = 0, e = n;
    if (n == 0) return n;
    if (a[0].qe < x) return 0;///max qe
    if (a[n-1].qe >= x) return n;///min qe

    while (e > s) { // TODO: finish this block
        int32_t m = s + (e - s) / 2;
        // if (a[m].qe >= x) e = m;
        // else s = m + 1;
		if (a[m].qe > x) s = m + 1;
		else e = m;
    }
    assert(s == e);
    return s;
}

// Assembly:
xorl %r8d, %r8d
testl %edi, %edi
je 0x19443e
movl %edx, %ecx
cmpl %edx, 0x8(%rsi)
jb 0x19443e
movslq %edi, %rax
imulq $0x24, %rax, %rax
cmpl %ecx, -0x1c(%rsi,%rax)
jae 0x19443b
xorl %r8d, %r8d
pushq $0x2
popq %r9
movl %edi, %eax
subl %r8d, %eax
jle 0x194419
cltd
idivl %r9d
leal (%rax,%r8), %edx
movslq %edx, %rdx
imulq $0x24, %rdx, %r10
cmpl %ecx, 0x8(%rsi,%r10)
leal 0x1(%rax,%r8), %eax
cmovbel %r8d, %eax
cmoval %edi, %edx
movl %eax, %r8d
movl %edx, %edi
jmp 0x1943eb
je 0x19443e
pushq %rax
leaq 0x5dda1(%rip), %rdi     # 0x1f21c4
leaq 0x5d6f9(%rip), %rsi     # 0x1f1b23
leaq 0x61c1c(%rip), %rcx     # 0x1f604d
movl $0x4d48, %edx           # imm = 0x4D48
callq 0x2110
movl %edi, %r8d
movl %r8d, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: find_ul_block_max(int, uc_block_t const*, unsigned int)
int32_t find_ul_block_max(int32_t n, const uc_block_t *a, uint32_t x)
{
    int32_t s = 0, e = n;
    if (n == 0) return -1;
    if (a[n-1].qe < x) return n - 1;
    if (a[0].qe >= x) return -1;
    while (e > s) { // TODO: finish this block
        int32_t m = s + (e - s) / 2;
        if (a[m].qe >= x) e = m;
        else s = m + 1;
    }
    assert(s == e);
    return s;
}

// Assembly:
pushq $-0x1
popq %rax
testl %edi, %edi
je 0x194499
movl %edx, %ecx
leal -0x1(%rdi), %r8d
movslq %r8d, %rdx
imulq $0x24, %rdx, %rdx
cmpl %ecx, 0x8(%rsi,%rdx)
jb 0x1944a0
movl %eax, %r8d
cmpl %ecx, 0x8(%rsi)
jae 0x1944a0
xorl %r8d, %r8d
pushq $0x2
popq %r9
movl %edi, %eax
subl %r8d, %eax
jle 0x19449e
cltd
idivl %r9d
leal (%rax,%r8), %edx
movslq %edx, %rdx
imulq $0x24, %rdx, %r10
cmpl %ecx, 0x8(%rsi,%r10)
leal 0x1(%rax,%r8), %eax
cmovael %r8d, %eax
cmovbl %edi, %edx
movl %eax, %r8d
movl %edx, %edi
jmp 0x19446b
movl %eax, %r8d
jmp 0x1944a0
jne 0x1944a4
movl %r8d, %eax
retq
pushq %rax
leaq 0x5dd18(%rip), %rdi     # 0x1f21c4
leaq 0x5d670(%rip), %rsi     # 0x1f1b23
leaq 0x61bdc(%rip), %rcx     # 0x1f6096
movl $0x4d57, %edx           # imm = 0x4D57
callq 0x2110
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/inter.cpp
// Function: scall_ul_pipeline(uldat_t*, enzyme const*)
int scall_ul_pipeline(uldat_t* sl, const enzyme *fn)
{
    double index_time = yak_realtime();
    int i;

	init_all_ul_t(&UL_INF, &R_INF);
    for (i = 0; i < fn->n; i++){
        gzFile fp;
        if ((fp = gzopen(fn->a[i], "r")) == 0) return 0;
        sl->ks = kseq_init(fp);
        kt_pipeline(3, worker_ul_scall_pipeline, sl, 3);
        kseq_destroy(sl->ks);
        gzclose(fp);
    }
	sl->hits.total_base = sl->total_base;
	sl->hits.total_pair = sl->total_pair;
    fprintf(stderr, "[M::%s::%.3f] ==> Qualification\n", __func__, yak_realtime()-index_time);
	fprintf(stderr, "[M::%s::] ==> # reads: %lu, # bases: %lu\n", __func__, UL_INF.n, sl->total_base);
	// fprintf(stderr, "[M::%s::] ==> # bases: %lu; # corrected bases: %lu; # recorrected bases: %lu\n", 
	// __func__, sl->num_bases, sl->num_corrected_bases, sl->num_recorrected_bases);
	fprintf(stderr, "[M::%s::] ==> # fully covered reads: %lu\n", __func__, sl->num_bases);
	gen_ul_vec_rid_t(&UL_INF, &R_INF, NULL);
    return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %r14
callq 0xefea7
movsd %xmm0, (%rsp)
leaq 0xbf9e1(%rip), %rdi     # 0x254318
leaq 0xbf8f2(%rip), %rsi     # 0x254230
callq 0x7d32
xorl %r13d, %r13d
leaq 0x5cd6a(%rip), %r12     # 0x1f16b7
pushq $0x3
popq %rbp
movslq 0x8(%r15), %rax
cmpq %rax, %r13
jge 0x1949b7
movq 0x10(%r15), %rax
movq (%rax,%r13,8), %rdi
movq %r12, %rsi
callq 0x22d0
testq %rax, %rax
je 0x1949a6
movq %rax, %rbx
movq %rax, %rdi
callq 0x181b19
movq %rax, 0x48(%r14)
movl %ebp, %edi
leaq 0xc9(%rip), %rsi        # 0x194a4f
movq %r14, %rdx
movl %ebp, %ecx
callq 0xc6979
movq 0x48(%r14), %rdi
callq 0x181f21
movq %rbx, %rdi
callq 0x2390
incq %r13
jmp 0x194950
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movupd 0x60(%r14), %xmm0
movupd %xmm0, 0x88(%r14)
movq 0xbe613(%rip), %r12     # 0x252fe0
movq (%r12), %rbx
callq 0xefea7
subsd (%rsp), %xmm0
leaq 0x5997d(%rip), %rsi     # 0x1ee35f
leaq 0x618b5(%rip), %r15     # 0x1f629e
movq %rbx, %rdi
movq %r15, %rdx
movb $0x1, %al
callq 0x22b0
movq (%r12), %rdi
leaq 0xbf917(%rip), %rbx     # 0x254318
movq 0x50(%rbx), %rcx
movq 0x60(%r14), %r8
leaq 0x61838(%rip), %rsi     # 0x1f6248
movq %r15, %rdx
xorl %eax, %eax
callq 0x22b0
movq (%r12), %rdi
movq 0xd0(%r14), %rcx
leaq 0x61846(%rip), %rsi     # 0x1f6272
movq %r15, %rdx
xorl %eax, %eax
callq 0x22b0
leaq 0xbf7f3(%rip), %rsi     # 0x254230
movq %rbx, %rdi
xorl %edx, %edx
callq 0x193ac1
pushq $0x1
popq %rax
jmp 0x1949a8