LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/Correct.cpp
// Function: convert_ul_ov_t(ul_ov_t*, overlap_region*, ma_ug_t*)
void convert_ul_ov_t(ul_ov_t *des, overlap_region *src, ma_ug_t *ug)
{
	des->qn = (uint32_t)-1; des->qs = src->x_pos_s; des->qe = src->x_pos_e+1;
    des->tn = src->y_id; des->el = 1; des->rev = src->y_pos_strand;
    des->sec = src->non_homopolymer_errors;
	if(des->rev) {
		des->ts = ug->u.a[des->tn].len - (src->y_pos_e+1); 
		des->te = ug->u.a[des->tn].len - src->y_pos_s;
	} else {
		des->ts = src->y_pos_s; 
		des->te = src->y_pos_e+1;
	}
}

// Assembly:
movl $0xffffffff, (%rdi)     # imm = 0xFFFFFFFF
movl 0x4(%rsi), %eax
movl %eax, 0x4(%rdi)
movl 0x8(%rsi), %eax
incl %eax
movl %eax, 0x8(%rdi)
movl 0x10(%rsi), %eax
movl %eax, 0xc(%rdi)
movl $0x40000000, %ecx       # imm = 0x40000000
movl 0x18(%rdi), %r8d
orl %ecx, %r8d
movl %r8d, 0x18(%rdi)
movl 0x1c(%rsi), %r9d
movl %r9d, %r10d
shll $0x1f, %r10d
andl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
orl %r10d, %r8d
movl %r8d, 0x18(%rdi)
movl $0x3fffffff, %r8d       # imm = 0x3FFFFFFF
andl 0x30(%rsi), %r8d
orl %r10d, %r8d
orl %ecx, %r8d
movl %r8d, 0x18(%rdi)
testb $0x1, %r9b
jne 0x6f370
movl 0x14(%rsi), %eax
movl %eax, 0x10(%rdi)
movl 0x18(%rsi), %eax
incl %eax
jmp 0x6f398
movq 0x10(%rdx), %rcx
leaq (%rax,%rax,4), %rdx
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl (%rcx,%rdx,8), %r8d
andl %eax, %r8d
movl 0x18(%rsi), %r9d
notl %r9d
addl %r8d, %r9d
movl %r9d, 0x10(%rdi)
andl (%rcx,%rdx,8), %eax
subl 0x14(%rsi), %eax
movl %eax, 0x14(%rdi)
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/Correct.cpp
// Function: check_connect_ug(ul_idx_t const*, unsigned int, unsigned int, long, double, long)
uint64_t check_connect_ug(const ul_idx_t *uref, uint32_t v, uint32_t w, int64_t bw, double diff_ec_ul, int64_t dq)
{
	const asg_t *g = uref?uref->ug->g:NULL; int64_t dt = -1;
	uint32_t nv = asg_arc_n(g, v), i; asg_arc_t *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;
	int64_t diff = (dq>dt? dq-dt:dt-dq), mm = MAX(dq, dt);
	mm *= diff_ec_ul; if(mm < bw) mm = bw;
	if(diff <= mm) return 1;
	return 0;
}

// Assembly:
movq (%rdi), %rax
movq 0x18(%rax), %rdi
movq 0x28(%rdi), %rax
movl %esi, %esi
movq (%rax,%rsi,8), %rax
testl %eax, %eax
je 0x6f3ed
movq 0x8(%rdi), %rsi
movq %rax, %rdi
shrq $0x20, %rdi
movl %eax, %r9d
leaq (%rdi,%rdi,2), %rax
leaq (%rsi,%rax,8), %rax
addq $0xc, %rax
shlq $0x3, %r9
leaq (%r9,%r9,2), %rsi
xorl %edi, %edi
movslq (%rax,%rdi), %r9
testq %r9, %r9
js 0x6f3e4
cmpl %edx, -0x4(%rax,%rdi)
je 0x6f3f4
addq $0x18, %rdi
cmpq %rdi, %rsi
jne 0x6f3d5
movq $-0x1, %r9
testq %r9, %r9
js 0x6f42b
movq %r9, %rax
subq %r8, %rax
cmovgq %r9, %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
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/Correct.cpp
// Function: govlp_check(ul_idx_t const*, ug_opt_t const*, long, double, ul_ov_t*, ul_ov_t*)
uint32_t govlp_check(const ul_idx_t *uref, const ug_opt_t *uopt, int64_t bw, double diff_ec_ul, ul_ov_t *li, ul_ov_t *lj)
{
	int64_t qo = infer_rovlp(li, lj, NULL, NULL, /**ridx**/NULL, uref->ug); ///overlap length in query (UL read)
	
	// fprintf(stderr, "+++[M::%s::utg%.6dl->utg%.6dl] qo::%ld\n", __func__, (int32_t)li->tn+1, (int32_t)lj->tn+1, qo);
	if(check_connect_ug(uref, ((li->tn<<1)|li->rev)^1, ((lj->tn<<1)|lj->rev)^1, bw, diff_ec_ul, qo)) return 1;
	// fprintf(stderr, "[M::%s::] check_connect_ug fail\n", __func__);
	if(check_connect_rg(uref, uopt, ((li->tn<<1)|li->rev)^1, ((lj->tn<<1)|lj->rev)^1, bw, diff_ec_ul, qo)) return 1;
	// fprintf(stderr, "[M::%s::] check_connect_rg fail\n", __func__);
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r13
movq %rcx, %rbp
movsd %xmm0, (%rsp)
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq (%rdi), %r9
movq %rcx, %rdi
movq %r8, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0x6f050
movq %rax, %r12
movl 0xc(%rbp), %eax
movl 0x18(%rbp), %ebp
shrdl $0x1f, %eax, %ebp
xorl $0x1, %ebp
movl 0xc(%r13), %eax
movl 0x18(%r13), %r13d
shrdl $0x1f, %eax, %r13d
xorl $0x1, %r13d
movq %r15, %rdi
movl %ebp, %esi
movl %r13d, %edx
movq %rbx, %rcx
movsd (%rsp), %xmm0
movq %r12, %r8
callq 0x6f39c
movq %rax, %rcx
movl $0x1, %eax
testq %rcx, %rcx
jne 0x6f7e9
movq %r15, %rdi
movq %r14, %rsi
movl %ebp, %edx
movl %r13d, %ecx
movq %rbx, %r8
movsd (%rsp), %xmm0
movq %r12, %r9
callq 0x6f42e
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/Correct.cpp
// Function: debug_inter(overlap_region_alloc*, kv_ul_ov_t*, unsigned long*, long, unsigned long*, long, long, long)
void debug_inter(overlap_region_alloc* ol, kv_ul_ov_t *c_idx, uint64_t *idx, int64_t idx_n, uint64_t *res, int64_t res_n, int64_t s, int64_t e)
{
    ul_ov_t *cp; int64_t q[2], a_n = 0, i, k = 0, os, oe; 
    for (i = 0; i < idx_n; i++) {
        cp = &(c_idx->a[(uint32_t)idx[i]]);
        q[0] = ol->list[ovlp_id(*cp)].w_list.a[ovlp_cur_wid(*cp)].x_start+ovlp_bd(*cp);
        q[1] = ol->list[ovlp_id(*cp)].w_list.a[ovlp_cur_wid(*cp)].x_end+1-ovlp_bd(*cp);
        os = MAX(q[0], s); oe = MIN(q[1], e);
        if(oe > os) {
            a_n++; assert(((uint32_t)idx[i]) == res[k++]);
        }
    }
    // if(a_n != res_n) {
    //     fprintf(stderr, "[M::%s] a_n::%ld\tres_n::%ld\ts::%ld\te::%ld\n", __func__, a_n, res_n, s, e);
    // }
    assert(a_n == res_n);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, (%rsp)
testq %rcx, %rcx
jle 0x708e2
movq 0x48(%rsp), %r9
movq 0x40(%rsp), %r11
movq (%rsi), %rsi
movq (%rdi), %rdi
xorl %eax, %eax
xorl %ebx, %ebx
xorl %r14d, %r14d
movl (%rdx,%rbx,8), %r15d
leaq (%r15,%r15,8), %r12
leaq (%r12,%r12,2), %r12
addq %r15, %r12
movl (%rsi,%r12), %r13d
movl 0xc(%rsi,%r12), %ebp
imulq $0xa8, %rbp, %rbp
movq 0x58(%rdi,%rbp), %rbp
shlq $0x5, %r13
movslq (%rbp,%r13), %r10
movl 0x18(%rsi,%r12), %r12d
andl $0x3fffffff, %r12d      # imm = 0x3FFFFFFF
addq %r12, %r10
movl 0x4(%rbp,%r13), %ebp
subl %r12d, %ebp
incl %ebp
movslq %ebp, %r12
cmpq %r11, %r10
cmovleq %r11, %r10
cmpq %r9, %r12
cmovgeq %r9, %r12
cmpq %r10, %r12
jle 0x708d8
cmpq (%r8,%r14,8), %r15
jne 0x708f9
incq %rax
incq %r14
incq %rbx
cmpq %rbx, %rcx
jne 0x70870
jmp 0x708e4
xorl %eax, %eax
cmpq (%rsp), %rax
jne 0x70918
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1b77ed(%rip), %rdi    # 0x2280ed
leaq 0x1b4d3c(%rip), %rsi    # 0x225643
leaq 0x1b77fe(%rip), %rcx    # 0x22810c
movl $0x4c5b, %edx           # imm = 0x4C5B
callq 0x2110
leaq 0x1b7860(%rip), %rdi    # 0x22817f
leaq 0x1b4d1d(%rip), %rsi    # 0x225643
leaq 0x1b77df(%rip), %rcx    # 0x22810c
movl $0x4c61, %edx           # imm = 0x4C61
callq 0x2110
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/Correct.cpp
// Function: debug_snp_site(overlap_region*, All_reads*, UC_Read*, haplotype_evdience*, long)
void debug_snp_site(overlap_region* ol, All_reads *rref, UC_Read *qu, haplotype_evdience *a, int64_t a_n)
{
    int64_t k; char ystr; 
    for (k = 0; k < a_n; k++) {
        recover_UC_Read_sub_region(&ystr, a[k].overlapSite, 1, ol[a[k].overlapID].y_pos_strand, rref, ol[a[k].overlapID].y_id);
        // if(a[k].misBase == ystr) fprintf(stderr, "[M::%s] misBase::%c\tystr::%c\n", __func__, a[k].misBase, ystr);
        assert(a[k].misBase == ystr);
        if(a[k].type == 0) {
            assert(qu->seq[a[k].site] == ystr);
        } else {
            assert(qu->seq[a[k].site] != ystr);
        }
    }
    
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %r8, %r8
jle 0x709b2
movq %r8, %rbx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
leaq 0x7(%rsp), %rbp
movl 0x4(%r14), %eax
movl 0x8(%r14), %esi
imulq $0xa8, %rax, %rax
movzbl 0x1c(%r13,%rax), %ecx
movl 0x10(%r13,%rax), %r9d
movl $0x1, %edx
movq %rbp, %rdi
movq %r12, %r8
callq 0x337f7
movb 0x7(%rsp), %al
cmpb %al, 0x14(%r14)
jne 0x709c1
cmpb $0x0, 0xc(%r14)
movq (%r15), %rcx
movl (%r14), %edx
movb (%rcx,%rdx), %cl
je 0x709a5
cmpb %al, %cl
jne 0x709a9
jmp 0x709e0
cmpb %al, %cl
jne 0x709ff
addq $0x18, %r14
decq %rbx
jne 0x7095b
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1b77c4(%rip), %rdi    # 0x22818c
leaq 0x1b4c74(%rip), %rsi    # 0x225643
leaq 0x1b77cb(%rip), %rcx    # 0x2281a1
movl $0x4c6a, %edx           # imm = 0x4C6A
callq 0x2110
leaq 0x1b7832(%rip), %rdi    # 0x228219
leaq 0x1b4c55(%rip), %rsi    # 0x225643
leaq 0x1b77ac(%rip), %rcx    # 0x2281a1
movl $0x4c6e, %edx           # imm = 0x4C6E
callq 0x2110
leaq 0x1b77f8(%rip), %rdi    # 0x2281fe
leaq 0x1b4c36(%rip), %rsi    # 0x225643
leaq 0x1b778d(%rip), %rcx    # 0x2281a1
movl $0x4c6c, %edx           # imm = 0x4C6C
callq 0x2110
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/Correct.cpp
// Function: cal_lindel_dd(ul_ov_t*, ul_ov_t*, double, unsigned long, double, unsigned long)
double cal_lindel_dd(ul_ov_t *a, ul_ov_t *b, double ol_r, uint64_t ol_w, double err_dif, uint64_t c_sz)
{
    if(a->tn == b->tn) return -1;
    uint64_t os, oe, ol; int64_t ea, eb, ed;
    os = MAX(a->qs, b->qs); oe = MIN(a->qe, b->qe);
    if(oe <= os + ol_w) return -1;
    ol = oe - os;
    // if((ol < ((a->qe - a->qs)*ol_r)) || (ol < ((b->qe - b->qs)*ol_r))) return -1;
    if((ol < ((a->qe - a->qs)*ol_r)) && (ol < ((b->qe - b->qs)*ol_r))) return -1;

    ea = a->qn; eb = b->qn;
    ed = ((ea >= eb)?(ea - eb):(eb - ea));
    if((ed > (ea * err_dif)) || (ed > (eb * err_dif))) return -1;

    double sc;
    sc = ((double)(ea - ed + eb - ed))/((double)(ea + eb));
    sc += ((double)(ol + ol)) / ((double)(a->qe - a->qs + b->qe - b->qs));
    return sc;
}

// Assembly:
movapd %xmm0, %xmm2
movl 0xc(%rdi), %eax
movsd 0x1b4180(%rip), %xmm0   # 0x225538
cmpl 0xc(%rsi), %eax
je 0x714dc
movl 0x4(%rdi), %eax
movl 0x4(%rsi), %ecx
cmpl %ecx, %eax
movl %ecx, %r11d
cmoval %eax, %r11d
movl 0x8(%rdi), %r8d
movl 0x8(%rsi), %r9d
cmpl %r9d, %r8d
movl %r9d, %r10d
cmovbl %r8d, %r10d
addq %r11, %rdx
cmpq %r10, %rdx
jae 0x714dc
subq %r11, %r10
movq %r10, %xmm4
punpckldq 0x1b3e42(%rip), %xmm4 # xmm4 = xmm4[0],mem[0],xmm4[1],mem[1]
subpd 0x1b3e4a(%rip), %xmm4   # 0x225250
movapd %xmm4, %xmm3
unpckhpd %xmm4, %xmm3            # xmm3 = xmm3[1],xmm4[1]
movl %r8d, %edx
subl %eax, %edx
cvtsi2sd %rdx, %xmm5
addsd %xmm4, %xmm3
mulsd %xmm2, %xmm5
ucomisd %xmm3, %xmm5
jbe 0x71441
movl %r9d, %edx
subl %ecx, %edx
xorps %xmm4, %xmm4
cvtsi2sd %rdx, %xmm4
mulsd %xmm2, %xmm4
ucomisd %xmm3, %xmm4
ja 0x714dc
movl (%rdi), %edi
movl (%rsi), %edx
movq %rdi, %r11
subq %rdx, %r11
movq %rdx, %rsi
subq %rdi, %rsi
cmpl %edx, %edi
cmovaeq %r11, %rsi
xorps %xmm2, %xmm2
cvtsi2sd %rsi, %xmm2
xorps %xmm3, %xmm3
cvtsi2sd %rdi, %xmm3
mulsd %xmm1, %xmm3
ucomisd %xmm3, %xmm2
ja 0x714dc
xorps %xmm3, %xmm3
cvtsi2sd %rdx, %xmm3
mulsd %xmm1, %xmm3
ucomisd %xmm3, %xmm2
ja 0x714dc
addq %rdi, %rdx
addq %rsi, %rsi
xorps %xmm0, %xmm0
cvtsi2sd %rdx, %xmm0
subq %rsi, %rdx
xorps %xmm1, %xmm1
cvtsi2sd %rdx, %xmm1
divsd %xmm0, %xmm1
addq %r10, %r10
movq %r10, %xmm2
punpckldq 0x1b3d90(%rip), %xmm2 # xmm2 = xmm2[0],mem[0],xmm2[1],mem[1]
subpd 0x1b3d98(%rip), %xmm2   # 0x225250
movapd %xmm2, %xmm0
unpckhpd %xmm2, %xmm0            # xmm0 = xmm0[1],xmm2[1]
addsd %xmm2, %xmm0
addl %eax, %ecx
subl %ecx, %r8d
addl %r9d, %r8d
xorps %xmm2, %xmm2
cvtsi2sd %r8, %xmm2
divsd %xmm2, %xmm0
addsd %xmm1, %xmm0
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/Correct.cpp
// Function: gen_aln_ul_ov_t(long, long, overlap_region*, ul_ov_t*)
int64_t gen_aln_ul_ov_t(int64_t in_id, int64_t tl, overlap_region *in, ul_ov_t *ou)
{
    int64_t zwn; memset(ou, 0, sizeof((*ou)));
    zwn = in->w_list.n; if(!zwn) return 0;

    ///in_id -> ovlp id
    ou->qn = in_id; ou->tn = in->y_id; 
    ou->rev = in->y_pos_strand;
    ou->qs = in->w_list.a[0].x_start;
    ou->qe = in->w_list.a[zwn-1].x_end+1;
    
    if(!(ou->rev)) {
        ou->ts = in->w_list.a[0].y_start;
        ou->te = in->w_list.a[zwn-1].y_end+1;
    } else {
        ou->ts = tl-(in->w_list.a[zwn-1].y_end+1);
        ou->te = tl-in->w_list.a[0].y_start;
    }
    return 1;
}

// Assembly:
xorps %xmm0, %xmm0
movups %xmm0, 0xc(%rcx)
movups %xmm0, (%rcx)
movq 0x48(%rdx), %rax
testq %rax, %rax
je 0x73b61
movl %edi, (%rcx)
movl 0x10(%rdx), %edi
movl %edi, 0xc(%rcx)
movl 0x1c(%rdx), %edi
movl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
andl 0x18(%rcx), %r8d
shll $0x1f, %edi
orl %edi, %r8d
movl %r8d, 0x18(%rcx)
movq 0x58(%rdx), %rdx
movl (%rdx), %r8d
movl %r8d, 0x4(%rcx)
decq %rax
shlq $0x5, %rax
movl 0x4(%rdx,%rax), %r8d
incl %r8d
movl %r8d, 0x8(%rcx)
testl %edi, %edi
je 0x73b64
movl 0xc(%rdx,%rax), %eax
notl %eax
addl %esi, %eax
movl %eax, 0x10(%rcx)
subl 0x8(%rdx), %esi
jmp 0x73b70
xorl %eax, %eax
retq
movl 0x8(%rdx), %esi
movl %esi, 0x10(%rcx)
movl 0xc(%rdx,%rax), %esi
incl %esi
movl %esi, 0x14(%rcx)
movl $0x1, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/Correct.cpp
// Function: if_direct_mask(ul_idx_t const*, ug_opt_t const*, ul_ov_t*, ul_ov_t*, unsigned long, double)
uint64_t if_direct_mask(const ul_idx_t *uref, const ug_opt_t *uopt, ul_ov_t *p, ul_ov_t *q, uint64_t bw, double len_diff)
{
    ul_ov_t *li, *lj; uint64_t os, oe, ovlp;
    if(p->qe > q->qe) li = p, lj = q;
    else if(p->qe == q->qe && p->qs >= q->qs) li = p, lj = q;
    else lj = p, li = q;
    os = MAX(li->qs, lj->qs), oe = MIN(li->qe, lj->qe);
    ovlp = ((oe > os)? (oe - os):0);
    if(!ovlp) return 0;//no overlap

    if(lj->qs <= li->qs+G_CHAIN_INDEL) {
        if(govlp_check(uref, uopt, bw, len_diff, li, lj)) return 1;
    } else if((lj->qe+G_CHAIN_INDEL>=li->qe) && (lj->qs+G_CHAIN_INDEL>=li->qs)) {
        if(govlp_check(uref, uopt, bw, len_diff, lj, li)) return 1;
    }
    return 0;
}

// Assembly:
movq %rcx, %rax
movl 0x8(%rcx), %ecx
cmpl %ecx, 0x8(%rdx)
jbe 0x76fd0
movq %rax, %r9
movq %rdx, %rax
jmp 0x76fdd
jne 0x76fda
movl 0x4(%rdx), %ecx
cmpl 0x4(%rax), %ecx
jae 0x76fc8
movq %rdx, %r9
pushq %rbp
pushq %rbx
pushq %rax
movl 0x4(%rax), %ecx
movl 0x8(%rax), %r10d
movl 0x4(%r9), %edx
movl 0x8(%r9), %r11d
cmpl %edx, %ecx
movl %edx, %ebx
cmoval %ecx, %ebx
cmpl %r11d, %r10d
movl %r11d, %ebp
cmovbl %r10d, %ebp
cmpl %ebx, %ebp
jbe 0x7704d
leal 0x80(%rcx), %ebx
cmpl %ebx, %edx
jbe 0x77034
movl $0x80, %ebx
addl %ebx, %r11d
cmpl %r10d, %r11d
setb %r10b
addl %ebx, %edx
cmpl %ecx, %edx
setb %cl
orb %r10b, %cl
jne 0x7704d
movq %r8, %rdx
movq %r9, %rcx
movq %rax, %r8
jmp 0x7703d
movq %r8, %rdx
movq %rax, %rcx
movq %r9, %r8
callq 0x6f757
movl %eax, %ecx
movl $0x1, %eax
testl %ecx, %ecx
jne 0x7704f
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/Correct.cpp
// Function: get_chain_x_by_y(overlap_region*, long)
int64_t get_chain_x_by_y(overlap_region* ot, int64_t q)
{
	int64_t x, y, off, i, lx = -1, ly = -1; Fake_Cigar* o = &(ot->f_cigar);
	x = get_fake_gap_pos(o, o->length - 1); 
	off = get_fake_gap_shift(o, o->length - 1);
	y = x - ot->x_pos_s + ot->y_pos_s + off;
	if(y == q) return x;

	for (i = 0; i < (int64_t)o->length; i++){
		x = get_fake_gap_pos(o, i); off = get_fake_gap_shift(o, i);
		y = x - ot->x_pos_s + ot->y_pos_s + off;
		if(q < y) {
			lx = x; ly = y;
			break;
		}
	}

    assert((i!=0)&&(i!=(int64_t)o->length));
	x = get_fake_gap_pos(o, i-1); off = get_fake_gap_shift(o, i-1);
	y = x - ot->x_pos_s + ot->y_pos_s + off;
	y = (((double)(q - y))/((double)(ly - y)))*((double)(lx -x)) + x;
	if(y < ot->x_pos_s) y = ot->x_pos_s;
	if(y > ot->x_pos_e) y = ot->x_pos_e;
	return y;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x38(%rdi), %r15
movl 0x40(%rdi), %esi
decl %esi
movq %r15, %rdi
callq 0x3dc2f
movslq %eax, %r12
movl 0x40(%rbx), %esi
decl %esi
movq %r15, %rdi
callq 0x3dc3a
cltq
movl 0x4(%rbx), %ecx
movl 0x14(%rbx), %edx
addq %r12, %rax
subq %rcx, %rax
addq %rdx, %rax
cmpq %r14, %rax
jne 0x7be79
movq %r12, %rax
jmp 0x7bf60
movq $-0x1, (%rsp)
cmpl $0x0, 0x40(%rbx)
je 0x7bec7
xorl %r12d, %r12d
movq %r15, %rdi
movl %r12d, %esi
callq 0x3dc2f
movslq %eax, %r13
movq %r15, %rdi
movl %r12d, %esi
callq 0x3dc3a
movslq %eax, %rbp
movl 0x4(%rbx), %eax
movl 0x14(%rbx), %ecx
addq %r13, %rbp
subq %rax, %rbp
addq %rcx, %rbp
cmpq %r14, %rbp
jg 0x7bed3
incq %r12
movl 0x40(%rbx), %eax
cmpq %rax, %r12
jb 0x7be8a
jmp 0x7beca
xorl %r12d, %r12d
movq $-0x1, %rbp
jmp 0x7bed7
movq %r13, (%rsp)
testq %r12, %r12
je 0x7bf6f
movl 0x40(%rbx), %eax
cmpq %rax, %r12
je 0x7bf6f
decl %r12d
movq %r15, %rdi
movl %r12d, %esi
callq 0x3dc2f
movslq %eax, %r13
movq %r15, %rdi
movl %r12d, %esi
callq 0x3dc3a
movslq %eax, %rcx
movl 0x4(%rbx), %eax
movl 0x14(%rbx), %edx
addq %r13, %rcx
subq %rax, %rcx
addq %rdx, %rcx
subq %rcx, %r14
cvtsi2sd %r14, %xmm0
subq %rcx, %rbp
cvtsi2sd %rbp, %xmm1
divsd %xmm1, %xmm0
movq (%rsp), %rcx
subq %r13, %rcx
xorps %xmm1, %xmm1
cvtsi2sd %rcx, %xmm1
cvtsi2sd %r13d, %xmm2
mulsd %xmm0, %xmm1
addsd %xmm1, %xmm2
cvttsd2si %xmm2, %rcx
movl 0x8(%rbx), %edx
cmpq %rax, %rcx
cmovgq %rcx, %rax
cmpq %rdx, %rax
cmovgeq %rdx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1acd1f(%rip), %rdi    # 0x228c95
leaq 0x1a96c6(%rip), %rsi    # 0x225643
leaq 0x1acd31(%rip), %rcx    # 0x228cb5
movl $0x5809, %edx           # imm = 0x5809
callq 0x2110
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/Correct.cpp
// Function: gen_sub_ov(ul_idx_t const*, overlap_region*, kv_ul_ov_t*, unsigned long, unsigned long)
uint64_t gen_sub_ov(const ul_idx_t *udb, overlap_region* o, kv_ul_ov_t *res, uint64_t xs, uint64_t xe)
{
	uint64_t ts, te, i, l, rn = res->n, rev = o->y_pos_strand; ul_ov_t *z;
	utg_ct_t p; ma_utg_t *u = &(udb->ug->u.a[o->y_id]);
    if(!rev){
        ts = o->y_pos_s; te = o->y_pos_e + 1;
    } else {
        ts = u->len - (o->y_pos_e+1); te = u->len - o->y_pos_s;
    }

    for (i = l = 0; i < u->n; i++) {
        p.x = u->a[i]>>32; p.s = l; p.e = l + Get_READ_LENGTH(R_INF, (u->a[i]>>33));
        l += (uint32_t)u->a[i];
        if(p.e <= ts) continue; 
        if(p.s >= te) break;
        if(gen_contain_ov(udb, &p, o, res)) {
            z = &(res->a[res->n-1]);
            if(z->qs >= xe) break;
            if(z->qe <= xs) res->n--; 
        }
    }
    return res->n-rn;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r8, 0x28(%rsp)
movq %rcx, 0x20(%rsp)
movq %rdx, %rcx
movq %rsi, %rbp
movq %rdi, 0x40(%rsp)
movq (%rdi), %rax
movl 0x10(%rsi), %esi
movl 0x18(%rbp), %r8d
leaq (%rsi,%rsi,4), %r15
shlq $0x3, %r15
addq 0x10(%rax), %r15
cmpl $0x0, 0x1c(%rbp)
je 0x7c1c7
movl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl (%r15), %esi
notl %r8d
movl %r8d, %eax
addl %esi, %eax
subl 0x14(%rbp), %esi
movl %esi, %r8d
jmp 0x7c1cd
movl 0x14(%rbp), %eax
incl %r8d
movq 0x8(%rcx), %rsi
movq %rsi, 0x18(%rsp)
cmpl $0x0, 0x10(%r15)
je 0x7c2a3
movl %eax, %r11d
xorl %r13d, %r13d
leaq 0x20f042(%rip), %r14    # 0x28b230
xorl %ebx, %ebx
movq %rcx, 0x38(%rsp)
movq %r11, 0x30(%rsp)
movq 0x18(%r15), %rax
movq (%rax,%r13,8), %r12
movq %r12, %rax
shrq $0x20, %rax
movl %eax, 0xc(%rsp)
movl %ebx, 0x10(%rsp)
movq 0x18(%r14), %rax
movq %r12, %rsi
shrq $0x21, %rsi
movl (%rax,%rsi,8), %eax
addl %ebx, %eax
movl %eax, 0x14(%rsp)
cmpl %r11d, %eax
jbe 0x7c290
cmpl %ebx, %r8d
jbe 0x7c2a3
movq 0x40(%rsp), %rdi
leaq 0xc(%rsp), %rsi
movq %rbp, %rdx
movl %r8d, %r14d
callq 0x7bf8e
movq 0x30(%rsp), %r11
movq 0x38(%rsp), %rcx
movl %r14d, %r8d
leaq 0x20efd8(%rip), %r14    # 0x28b230
testq %rax, %rax
je 0x7c290
movq (%rcx), %r9
movq 0x8(%rcx), %rax
leaq (%rax,%rax,8), %rsi
leaq (%rsi,%rsi,2), %rdi
addq %rax, %rdi
movl -0x18(%r9,%rdi), %esi
cmpq 0x28(%rsp), %rsi
jae 0x7c2a3
addq %rdi, %r9
movl -0x14(%r9), %esi
cmpq 0x20(%rsp), %rsi
ja 0x7c290
decq %rax
movq %rax, 0x8(%rcx)
addq %r12, %rbx
incq %r13
movl 0x10(%r15), %eax
cmpq %rax, %r13
jb 0x7c1fa
movq 0x8(%rcx), %rax
subq 0x18(%rsp), %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/Correct.cpp
// Function: gen_conta_ov(ul_idx_t const*, overlap_region*, utg_ct_t*, long, kv_ul_ov_t*, unsigned long, unsigned long)
uint64_t gen_conta_ov(const ul_idx_t *udb, overlap_region* o, utg_ct_t *ct_a, int64_t ct_n, kv_ul_ov_t *res, uint64_t xs, uint64_t xe)
{
	int64_t i; uint64_t ys, ye, rn = res->n; ma_utg_t *u = &(udb->ug->u.a[o->y_id]);
     ul_ov_t *z; utg_ct_t *p;

    if(o->y_pos_strand == 0){
        ys = o->y_pos_s; ye = o->y_pos_e + 1;
    } else {
        ys = u->len - (o->y_pos_e+1); ye = u->len - o->y_pos_s;
    }

    for (i = 0; i < ct_n; i++) {
        p = &(ct_a[i]);
        if(p->e <= ys) continue; 
        if(p->s >= ye) break;
        if(gen_contain_ov(udb, p, o, res)) {
            z = &(res->a[res->n-1]);
            if(z->qs >= xe) break;
            if(z->qe <= xs) res->n--; 
        }
    }
    return res->n-rn;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, 0x10(%rsp)
movq %r8, %rbx
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %rbp
movq %rdi, %r13
cmpl $0x0, 0x1c(%rsi)
je 0x7c30d
movq (%r13), %rax
movq 0x10(%rax), %rax
movl 0x10(%rbp), %ecx
movl 0x18(%rbp), %r14d
leaq (%rcx,%rcx,4), %rcx
movl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl (%rax,%rcx,8), %esi
notl %r14d
addl %esi, %r14d
subl 0x14(%rbp), %esi
movl %esi, 0x4(%rsp)
jmp 0x7c31a
movl 0x14(%rbp), %r14d
movl 0x18(%rbp), %eax
incl %eax
movl %eax, 0x4(%rsp)
movq 0x8(%rbx), %rax
movq %rax, 0x8(%rsp)
testq %r15, %r15
jle 0x7c38b
cmpl %r14d, 0x8(%r12)
jbe 0x7c382
movl 0x4(%rsp), %eax
cmpl %eax, 0x4(%r12)
jae 0x7c38b
movq %r13, %rdi
movq %r12, %rsi
movq %rbp, %rdx
movq %rbx, %rcx
callq 0x7bf8e
testq %rax, %rax
je 0x7c382
movq (%rbx), %rcx
movq 0x8(%rbx), %rax
leaq (%rax,%rax,8), %rsi
leaq (%rsi,%rsi,2), %r8
addq %rax, %r8
movl -0x18(%rcx,%r8), %esi
cmpq 0x50(%rsp), %rsi
jae 0x7c38b
addq %r8, %rcx
movl -0x14(%rcx), %ecx
cmpq 0x10(%rsp), %rcx
ja 0x7c382
decq %rax
movq %rax, 0x8(%rbx)
addq $0xc, %r12
decq %r15
jne 0x7c328
movq 0x8(%rbx), %rax
subq 0x8(%rsp), %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/Correct.cpp
// Function: return_t_chain(overlap_region*, Candidates_list*)
int64_t return_t_chain(overlap_region *z, Candidates_list *cl)
{
    int64_t i, cn = cl->length, scn; uint64_t pid; k_mer_hit *ca;

    // if(z->y_id == 30129) {
    //     fprintf(stderr, "\n-0-[M::%s]\tutg%.6ul\tx::[%u,\t%u)\t%c\tutg%.6ul\ty::[%u,\t%u)\n", 
    //         __func__, z->x_id+1, z->x_pos_s, z->x_pos_e+1,
	// 		"+-"[z->y_pos_strand], z->y_id+1, z->y_pos_s, z->y_pos_e+1);
    //     i = z->shared_seed; pid = cl->list[i].readID;
    //     for (; i < cn && cl->list[i].readID == pid && cl->list[i].readID != ((uint32_t)(0x7fffffff)); i++) {
    //         fprintf(stderr, "i::%ld[M::%s]\treadID::%u\tself_offset::%u\toffset::%u\t%c\n", 
    //             i, __func__, cl->list[i].readID, cl->list[i].self_offset, cl->list[i].offset, 
    //             "+-"[cl->list[i].strand]);
    //     }
    // }



    i = z->shared_seed; pid = cl->list[i].readID;
    for (; i < cn && cl->list[i].readID == pid && cl->list[i].readID != ((uint32_t)(0x7fffffff)); i++);
    scn = i - z->shared_seed; ca = cl->list+z->shared_seed;
    i = lchain_refine(ca, scn, ca, &(cl->chainDP), 50, 5000, 512, 16); cn = i;
    for (; i < scn; i++) ca[i].readID = ((uint32_t)(0x7fffffff));
    // if(z->y_id == 30129) fprintf(stderr, "\n-a-[M::%s]\tcn::%ld\n", __func__, cn);


    // if(z->y_id == 30129) {
    //     fprintf(stderr, "\n-1-[M::%s]\tutg%.6ul\tx::[%u,\t%u)\t%c\tutg%.6ul\ty::[%u,\t%u)\n", 
    //         __func__, z->x_id+1, z->x_pos_s, z->x_pos_e+1,
	// 		"+-"[z->y_pos_strand], z->y_id+1, z->y_pos_s, z->y_pos_e+1);
    //     i = z->shared_seed; pid = cl->list[i].readID; cn = cl->length;
    //     for (; i < cn && cl->list[i].readID == pid && cl->list[i].readID != ((uint32_t)(0x7fffffff)); i++) {
    //         fprintf(stderr, "i::%ld[M::%s]\treadID::%u\tself_offset::%u\toffset::%u\t%c\n", 
    //             i, __func__, cl->list[i].readID, cl->list[i].self_offset, cl->list[i].offset, 
    //             "+-"[cl->list[i].strand]);
    //     }
    // }
    return cn;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rcx
movq (%rsi), %r14
movq 0x8(%rsi), %rdx
movslq 0x24(%rdi), %rax
movq %rax, %r15
shlq $0x4, %r15
leaq (%r14,%r15), %rdi
movq %rax, %rbx
cmpq %rax, %rdx
jle 0x7d7db
movl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
movl (%r14,%r15), %r8d
andl %esi, %r8d
movq %rdi, %r9
movq %rax, %rbx
movl (%r9), %r10d
andl %esi, %r10d
cmpl %r8d, %r10d
jne 0x7d7db
cmpl $0x7fffffff, %r10d      # imm = 0x7FFFFFFF
je 0x7d7db
incq %rbx
addq $0x10, %r9
cmpq %rbx, %rdx
jne 0x7d7b8
movq %rdx, %rbx
subq %rax, %rbx
addq $0x18, %rcx
movl $0x32, %r8d
movl $0x1388, %r9d           # imm = 0x1388
movq %rbx, %rsi
movq %rdi, %rdx
pushq $0x10
pushq $0x200                  # imm = 0x200
callq 0x441c0
addq $0x10, %rsp
cmpq %rbx, %rax
jge 0x7d82c
movq %rax, %rcx
shlq $0x4, %rcx
addq %r15, %r14
addq %rcx, %r14
movq %rax, %rcx
orl $0x7fffffff, (%r14)     # imm = 0x7FFFFFFF
incq %rcx
addq $0x10, %r14
cmpq %rbx, %rcx
jl 0x7d819
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/Correct.cpp
// Function: debug_aln_err(overlap_region*, long, long, long, long, double, long, ul_idx_t const*, char*, UC_Read*, bit_extz_t*)
int64_t debug_aln_err(overlap_region *o, int64_t qs, int64_t qe, int64_t ts, int64_t te, double e_rate, 
int64_t estz_err, const ul_idx_t *uref, char* qstr, UC_Read *tu, bit_extz_t *exz)
{
    int64_t ql = qe - qs, tl = te - ts, id = o->y_id, rev = o->y_pos_strand;
    if((!ql) && (!tl)) return 0;
    if((!ql) && (tl)) return tl;
    if((ql) && (!tl)) return ql;
    if(estz_err < 0) estz_err = -1;
    if(hc_aln_exz_simi_adv(id, rev, uref, NULL, NULL, qstr, tu, qs, qe, ts, te, 
                            qs, qe, ts, te, 0, exz, ql, e_rate, MAX_CNS_L, MAX_CNS_E, FORCE_CNS_L, estz_err, NULL, 0)) {
        return exz->err;
    } else {
        return gen_err_unaligned(ql, tl); 
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x90, %rsp
movq %rdx, %r15
subq %rsi, %r15
movq %r8, %rbx
subq %rcx, %rbx
movq %r15, %rax
orq %rbx, %rax
je 0x7f16b
testq %rbx, %rbx
setne %al
testq %r15, %r15
sete %r10b
testb %al, %r10b
jne 0x7f16d
testq %r15, %r15
sete %al
testq %rbx, %rbx
setne %r10b
orb %al, %r10b
cmpb $0x1, %r10b
jne 0x7f181
movq 0xd8(%rsp), %r12
movq 0xd0(%rsp), %r13
movq 0xc8(%rsp), %rax
movq 0xc0(%rsp), %r10
movl 0x10(%rdi), %r11d
movl 0x1c(%rdi), %r14d
testq %r9, %r9
movq $-0x1, %rdi
cmovnsq %r9, %rdi
xorpd %xmm1, %xmm1
movupd %xmm1, 0x80(%rsp)
movq %r12, 0x50(%rsp)
movq %r8, 0x40(%rsp)
movq %rcx, 0x38(%rsp)
movq %rdx, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq %r8, 0x20(%rsp)
movq %rcx, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
movq %r13, (%rsp)
movq %rdi, 0x78(%rsp)
movq $0x100, 0x70(%rsp)      # imm = 0x100
movq $0x3ff, 0x68(%rsp)      # imm = 0x3FF
movq $0xc00, 0x60(%rsp)      # imm = 0xC00
movq $0x0, 0x48(%rsp)
movq %r11, %rdi
movq %r14, %rsi
movq %r10, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
movq %rax, %r9
callq 0x7db99
testq %rax, %rax
je 0x7f186
movslq 0x2c(%r12), %rbx
jmp 0x7f16d
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x90, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %r15, %rbx
jmp 0x7f16d
cmpq $0x200, %r15            # imm = 0x200
jg 0x7f19d
cmpq %rbx, %r15
cmovgq %r15, %rbx
cvtsi2sd %rbx, %xmm0
jmp 0x7f1d6
cmpq %rbx, %r15
cmovlq %r15, %rbx
xorps %xmm1, %xmm1
cvtsi2sd %rbx, %xmm1
cvtsi2sd %r15, %xmm2
mulsd 0x1a638f(%rip), %xmm2   # 0x225548
addsd 0x1a60af(%rip), %xmm2   # 0x225270
movapd %xmm2, %xmm0
cmplesd %xmm1, %xmm0
andpd %xmm0, %xmm1
andnpd %xmm2, %xmm0
orpd %xmm1, %xmm0
cvttsd2si %xmm0, %rbx
jmp 0x7f16d
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/Correct.cpp
// Function: append_cigar(window_list*, window_list_alloc*, unsigned short, unsigned int)
void append_cigar(window_list *idx, window_list_alloc *res, uint16_t c, uint32_t l)
{
    if(l <= 0) return;
    uint16_t c0 = (uint16_t)-1; uint32_t l0 = 0; 
    ///last item of old cigar
    if(idx->clen > 0) {
        c0 = (res->c.a[res->c.n-1]>>14); 
        l0 = (res->c.a[res->c.n-1]&(0x3fff));
    }
    ///first item of new cigar
    if(c0 == c) {l += l0; res->c.n--; idx->clen--;}

    push_trace(((asg16_v *)(&(res->c))), c, l); 
    idx->clen = res->c.n-idx->cidx;
}

// Assembly:
testl %ecx, %ecx
je 0x83d1a
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %r15d
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movl 0x1c(%rdi), %eax
testl %eax, %eax
je 0x83c34
movq 0x18(%r14), %rcx
movq 0x28(%r14), %rdx
movzwl -0x2(%rdx,%rcx,2), %ecx
movl %ecx, %edx
shrl $0xe, %edx
andl $0x3fff, %ecx           # imm = 0x3FFF
jmp 0x83c3b
xorl %ecx, %ecx
movl $0xffff, %edx           # imm = 0xFFFF
movzwl %bp, %esi
cmpl %esi, %edx
jne 0x83c4e
decq 0x18(%r14)
addl %ecx, %r15d
decl %eax
movl %eax, 0x1c(%rbx)
shll $0xe, %ebp
cmpl $0x3fff, %r15d          # imm = 0x3FFF
jb 0x83cb8
movl %ebp, %r12d
orl $0x3fff, %r12d          # imm = 0x3FFF
movl $0x2, %r13d
movq 0x20(%r14), %rax
cmpq %rax, 0x18(%r14)
jne 0x83c93
leaq (%rax,%rax), %rsi
testq %rax, %rax
cmoveq %r13, %rsi
movq %rsi, 0x20(%r14)
movq 0x28(%r14), %rdi
addq %rsi, %rsi
callq 0x2370
movq %rax, 0x28(%r14)
movq 0x18(%r14), %rax
movq 0x28(%r14), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, 0x18(%r14)
movw %r12w, (%rcx,%rax,2)
addl $0xffffc001, %r15d      # imm = 0xFFFFC001
cmpl $0x3ffe, %r15d          # imm = 0x3FFE
ja 0x83c6a
testl %r15d, %r15d
je 0x83d02
orl %r15d, %ebp
movq 0x20(%r14), %rax
cmpq %rax, 0x18(%r14)
jne 0x83cee
leaq (%rax,%rax), %rcx
testq %rax, %rax
movl $0x2, %esi
cmovneq %rcx, %rsi
movq %rsi, 0x20(%r14)
movq 0x28(%r14), %rdi
addq %rsi, %rsi
callq 0x2370
movq %rax, 0x28(%r14)
movq 0x18(%r14), %rax
movq 0x28(%r14), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, 0x18(%r14)
movw %bp, (%rcx,%rax,2)
movl 0x18(%r14), %eax
subl 0x18(%rbx), %eax
movl %eax, 0x1c(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/Correct.cpp
// Function: ajust_end_cigar(window_list*, window_list_alloc*)
uint16_t ajust_end_cigar(window_list *idx, window_list_alloc *res)
{
    uint16_t *ca = res->c.a+idx->cidx, p, rr = 0; int64_t ci, cn = idx->clen, op, cl;
    if(cn <= 0) return rr;
    for (ci = 0; ci < cn; ci++) {
        op = ca[ci]>>14; cl = (ca[ci]&(0x3fff)); 
        if(op != 1) break;
        p = 3; p <<= 14; p += cl; ca[ci] = p; idx->y_start += cl; rr = 1;
    }

    for (ci = cn-1; ci >= 0; ci--) {
        op = ca[ci]>>14; cl = (ca[ci]&(0x3fff)); 
        if(op != 1) break;
        p = 3; p <<= 14; p += cl; ca[ci] = p; idx->y_end -= cl; rr = 1;
    }

    // if(rr) fprintf(stderr, "[M::%s] rr::%u\n", __func__, rr);

    return rr;
}

// Assembly:
movl 0x1c(%rdi), %ecx
testq %rcx, %rcx
je 0x843a9
pushq %rbx
movq 0x28(%rsi), %rsi
movl 0x18(%rdi), %r8d
leaq (%rsi,%r8,2), %rdx
movzwl (%rdx), %eax
movzwl %ax, %r11d
movl %r11d, %r9d
andl $0xc000, %r9d           # imm = 0xC000
cmpl $0x4000, %r9d           # imm = 0x4000
jne 0x843ac
movl 0x8(%rdi), %r10d
movl $0x1, %r9d
movl %r10d, %ebx
andl $0x3fff, %r11d          # imm = 0x3FFF
movl %r11d, %r10d
addl %ebx, %r10d
orl $0xc000, %eax           # imm = 0xC000
movw %ax, -0x2(%rdx,%r9,2)
cmpq %r9, %rcx
je 0x8439f
movzwl (%rdx,%r9,2), %eax
movzwl %ax, %r11d
movl %r11d, %ebx
andl $0xc000, %ebx           # imm = 0xC000
incq %r9
cmpl $0x4000, %ebx           # imm = 0x4000
je 0x84362
movl %r10d, 0x8(%rdi)
movw $0x1, %ax
jmp 0x843ae
xorl %eax, %eax
retq
xorl %eax, %eax
movzwl -0x2(%rdx,%rcx,2), %r9d
movzwl %r9w, %r11d
movl %r11d, %r10d
andl $0xc000, %r10d          # imm = 0xC000
cmpl $0x4000, %r10d          # imm = 0x4000
jne 0x84430
leaq -0x1(%rcx), %rax
leaq (%rdx,%rcx,2), %rbx
addq $-0x2, %rbx
movl 0xc(%rdi), %r10d
leaq (%rsi,%r8,2), %rsi
addq $-0x4, %rsi
andl $0x3fff, %r11d          # imm = 0x3FFF
subl %r11d, %r10d
orl $0xc000, %r9d           # imm = 0xC000
movw %r9w, (%rbx)
cmpq $0x1, %rcx
jle 0x84428
leaq (%rdx,%rax,2), %rbx
addq $-0x2, %rbx
decq %rax
movzwl (%rsi,%rcx,2), %r9d
movzwl %r9w, %r11d
movl %r11d, %r8d
andl $0xc000, %r8d           # imm = 0xC000
decq %rcx
cmpl $0x4000, %r8d           # imm = 0x4000
je 0x843e3
movl %r10d, 0xc(%rdi)
movw $0x1, %ax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/Correct.cpp
// Function: is_ovlp_debug(long, long, long, long, long)
uint32_t is_ovlp_debug(int64_t s, int64_t e, int64_t ws, int64_t we, int64_t op)
{
    int64_t os, oe, ovlp;
    os = MAX(s, ws); oe = MIN(e, we);
    ovlp = ((oe>os)? (oe-os):0); 
    if(op != 2) {
        return (!!ovlp);
    } else {
        if(ws >= s && we <= e) return 1;
    }
    return 0;
}

// Assembly:
cmpq $0x2, %r8
jne 0x849c8
cmpq %rdi, %rdx
setge %dl
cmpq %rsi, %rcx
setle %al
andb %dl, %al
jmp 0x849dc
cmpq %rcx, %rsi
cmovlq %rsi, %rcx
cmpq %rdx, %rdi
cmovgq %rdi, %rdx
cmpq %rdx, %rcx
setg %al
movzbl %al, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/Correct.cpp
// Function: gen_nkhits(Candidates_list*, overlap_region*)
uint64_t gen_nkhits(Candidates_list *cl, overlap_region *z)
{
    uint64_t pid, kn; int64_t k;
    pid = cl->list[z->shared_seed].readID;kn = 0;
    for (k = z->shared_seed; k < cl->length && cl->list[k].readID == pid; k++) kn++;
    return kn;
}

// Assembly:
movq 0x8(%rdi), %rcx
movslq 0x24(%rsi), %rdx
subq %rdx, %rcx
jle 0x852d7
movq (%rdi), %rax
shlq $0x4, %rdx
movl (%rax,%rdx), %esi
addq %rax, %rdx
xorl %eax, %eax
movl (%rdx), %edi
xorl %esi, %edi
testl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
jne 0x852d9
incq %rax
addq $0x10, %rdx
cmpq %rax, %rcx
jne 0x852bb
movq %rcx, %rax
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/./POA.h
// Function: delete_Node_DAGCon(Graph*, Node*)
uint64_t inline delete_Node_DAGCon(Graph* g, Node* node)
{
    g->g_nodes.delete_length++;
    g->g_nodes.list[(*node).ID].base = 'D';
    g->g_nodes.list[(*node).ID].num_insertions = (uint64_t)-1;
    g->g_nodes.list[(*node).ID].weight = (uint64_t)-1;


    RSet iter;
    Edge* e;
    clear_RSet(&iter);
    while (getOutputEdges(&iter, g, node, &e))
    {
        remove_and_check_bi_direction_edge_from_edge(g, e);
    }

    clear_RSet(&iter);
    while (getInputEdges(&iter, g, node, &e))
    {
        remove_and_check_bi_direction_edge_from_edge(g, e);
    }


    
    clear_Edge_alloc(&(g->g_nodes.list[(*node).ID].insertion_edges));
    clear_Edge_alloc(&(g->g_nodes.list[(*node).ID].mismatch_edges));
    clear_Edge_alloc(&(g->g_nodes.list[(*node).ID].deletion_edges));

    return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
incq 0x68(%rdi)
movq %rsi, %r14
movq 0x18(%rdi), %rax
movq (%rsi), %rcx
shlq $0x7, %rcx
movb $0x44, 0x18(%rax,%rcx)
pcmpeqd %xmm0, %xmm0
movdqu %xmm0, 0x8(%rax,%rcx)
xorl %r12d, %r12d
movq 0x50(%r14), %rdx
movb $0x1, %al
cmpq %rdx, %r12
jge 0x86954
movq 0x40(%r14), %rcx
imulq $0x38, %r12, %rsi
movb $0x1, %al
cmpq $-0x1, 0x8(%rcx,%rsi)
je 0x86910
movb $0x1, %dl
jmp 0x86934
leaq (%rcx,%rsi), %rdi
addq $0x40, %rdi
leaq -0x1(%rdx), %rsi
cmpq %r12, %rsi
je 0x86951
incq %r12
cmpq $-0x1, (%rdi)
leaq 0x38(%rdi), %rdi
je 0x8691c
cmpq %rdx, %r12
setl %dl
testb %dl, %dl
je 0x86954
imulq $0x38, %r12, %rdx
cmpq $-0x1, 0x8(%rcx,%rdx)
je 0x86954
addq %rdx, %rcx
incq %r12
xorl %eax, %eax
movq %rcx, %r15
jmp 0x86954
movq %rdx, %r12
testb %al, %al
jne 0x86965
movq %rbx, %rdi
movq %r15, %rsi
callq 0x44f90
jmp 0x868ef
xorl %r12d, %r12d
movq 0x70(%r14), %rdx
movb $0x1, %al
cmpq %rdx, %r12
jge 0x869cd
movq 0x60(%r14), %rcx
imulq $0x38, %r12, %rsi
movb $0x1, %al
cmpq $-0x1, 0x8(%rcx,%rsi)
je 0x86989
movb $0x1, %dl
jmp 0x869ad
leaq (%rcx,%rsi), %rdi
addq $0x40, %rdi
leaq -0x1(%rdx), %rsi
cmpq %r12, %rsi
je 0x869ca
incq %r12
cmpq $-0x1, (%rdi)
leaq 0x38(%rdi), %rdi
je 0x86995
cmpq %rdx, %r12
setl %dl
testb %dl, %dl
je 0x869cd
imulq $0x38, %r12, %rdx
cmpq $-0x1, 0x8(%rcx,%rdx)
je 0x869cd
addq %rdx, %rcx
incq %r12
xorl %eax, %eax
movq %rcx, %r15
jmp 0x869cd
movq %rdx, %r12
testb %al, %al
jne 0x869de
movq %rbx, %rdi
movq %r15, %rsi
callq 0x44f90
jmp 0x86968
movq 0x18(%rbx), %rax
movq (%r14), %rcx
shlq $0x7, %rcx
leaq (%rax,%rcx), %rdi
addq $0x60, %rdi
callq 0x44c1d
movq 0x18(%rbx), %rax
movq (%r14), %rcx
shlq $0x7, %rcx
leaq (%rax,%rcx), %rdi
addq $0x20, %rdi
callq 0x44c1d
movq 0x18(%rbx), %rax
movq (%r14), %rcx
shlq $0x7, %rcx
leaq (%rax,%rcx), %rdi
addq $0x40, %rdi
callq 0x44c1d
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/./Correct.h
// Function: init_DP_matrix(DP_matrix*, unsigned int)
inline void init_DP_matrix(DP_matrix* dp, uint32_t snp_num)
{

    if(snp_num > dp->snp_size)
    {
        dp->snp_size = snp_num;
        dp->max = (uint32_t*)realloc(dp->max, dp->snp_size * sizeof(uint32_t));
        dp->max_for_sort = (uint64_t*)realloc(dp->max_for_sort, dp->snp_size * sizeof(uint64_t));
        dp->visit = (uint8_t*)realloc(dp->visit, dp->snp_size * sizeof(uint8_t));
        dp->buffer = (uint32_t*)realloc(dp->buffer, dp->snp_size * sizeof(uint32_t));
        dp->max_buffer = (uint32_t*)realloc(dp->max_buffer, dp->snp_size * sizeof(uint32_t));


        
        dp->backtrack_length = (uint32_t*)realloc(dp->backtrack_length, dp->snp_size * sizeof(uint32_t));

        dp->backtrack_size = snp_num*snp_num;
        dp->backtrack = (uint32_t*)realloc(dp->backtrack, dp->backtrack_size * sizeof(uint32_t));
    }

    dp->snp_num = snp_num;

    clear_SNP_IDs(&(dp->SNP_IDs));


}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
cmpl %esi, 0x20(%rdi)
jae 0x8790d
movl %ebp, 0x20(%rbx)
movq 0x10(%rbx), %rdi
movl %ebp, %esi
shlq $0x2, %rsi
callq 0x2370
movq %rax, 0x10(%rbx)
movq 0x18(%rbx), %rdi
movl 0x20(%rbx), %esi
shlq $0x3, %rsi
callq 0x2370
movq %rax, 0x18(%rbx)
movq 0x8(%rbx), %rdi
movl 0x20(%rbx), %esi
callq 0x2370
movq %rax, 0x8(%rbx)
movq 0x40(%rbx), %rdi
movl 0x20(%rbx), %esi
shlq $0x2, %rsi
callq 0x2370
movq %rax, 0x40(%rbx)
movq 0x48(%rbx), %rdi
movl 0x20(%rbx), %esi
shlq $0x2, %rsi
callq 0x2370
movq %rax, 0x48(%rbx)
movq 0x28(%rbx), %rdi
movl 0x20(%rbx), %esi
shlq $0x2, %rsi
callq 0x2370
movq %rax, 0x28(%rbx)
movl %ebp, %esi
imull %esi, %esi
movl %esi, 0x38(%rbx)
movq 0x30(%rbx), %rdi
shlq $0x2, %rsi
callq 0x2370
movq %rax, 0x30(%rbx)
movl %ebp, (%rbx)
xorl %eax, %eax
movq %rax, 0x68(%rbx)
movq %rax, 0x88(%rbx)
movq $-0x1, 0x70(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/Correct.cpp
// Function: cigar_check_dbg(char*, char*, bit_extz_t*)
inline uint32_t cigar_check_dbg(char *pstr, char *tstr, bit_extz_t *ez)
{
	int32_t pi = ez->ps, ti = ez->ts, err = 0; uint32_t ci = 0, cl, k; uint16_t c;
	while (ci < ez->cigar.n) {
		ci = pop_trace(&(ez->cigar), ci, &c, &cl);
		// fprintf(stderr, "# %u = %u, cigar_n::%u\n", c, cl, (uint32_t)ez->cigar.n); 
		if(c == 0) {
			for (k=0;(k<cl)&&(pstr[pi]==tstr[ti]);k++,pi++,ti++);
			if(k!=cl) {
				fprintf(stderr, "ERROR-d-0\n"); 
				return 0;
			}
		} else {
			err += cl;
			if(c == 1) {
				for (k=0;(k<cl)&&(pstr[pi]!=tstr[ti]);k++,pi++,ti++);
				if(k!=cl) {
					fprintf(stderr, "ERROR-d-1\n"); 
					return 0;
				}
			} else if(c == 2) {///more p
				pi+=cl;
			} else if(c == 3) {
				ti+=cl;
			}
		}
	}
	if(err != ez->err) {
		fprintf(stderr, "ERROR-err, err::%d, ez->err::%d\n", err, ez->err); 
		return 0;
	}
	return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0xa8(%rdx), %rcx
testq %rcx, %rcx
movq %rdx, (%rsp)
je 0x8ca7a
movl 0x10(%rdx), %r9d
movl 0x1c(%rdx), %r11d
movq 0xb8(%rdx), %r8
xorl %ebx, %ebx
xorl %r10d, %r10d
xorl %edx, %edx
movzwl (%r8,%rbx,2), %r14d
movl %r14d, %ebp
shrl $0xe, %ebp
movl %r14d, %ebx
andl $0x3fff, %ebx           # imm = 0x3FFF
incl %r10d
cmpq %r10, %rcx
jbe 0x8c9ab
movzwl (%r8,%r10,2), %r15d
movl %r15d, %r12d
shrl $0xe, %r12d
cmpl %ebp, %r12d
jne 0x8c9ab
andl $0x3fff, %r15d          # imm = 0x3FFF
addl %r15d, %ebx
jmp 0x8c986
movl %ebx, %ebx
movzwl %r14w, %r14d
cmpl $0x3fff, %r14d          # imm = 0x3FFF
ja 0x8c9f4
testq %rbx, %rbx
je 0x8ca09
movslq %r11d, %r15
movslq %r9d, %r12
movl %ebx, %ebp
addl %r9d, %ebp
leal (%rbx,%r11), %r13d
addq %rdi, %r12
addq %rsi, %r15
xorl %r14d, %r14d
movb (%r12,%r14), %al
cmpb (%r15,%r14), %al
jne 0x8ca4f
incq %r14
cmpl %r14d, %ebx
jne 0x8c9d7
movl %ebp, %r9d
movl %r13d, %r11d
movl %ebx, %r14d
jmp 0x8ca55
addl %ebx, %edx
cmpw $0x3, %bp
je 0x8ca0e
movzwl %bp, %eax
cmpl $0x2, %eax
jne 0x8ca16
addl %ebx, %r9d
jmp 0x8ca6c
xorl %r14d, %r14d
jmp 0x8ca55
addl %r11d, %ebx
movl %ebx, %r11d
jmp 0x8ca6c
testq %rbx, %rbx
je 0x8ca5c
movslq %r11d, %r15
movslq %r9d, %r12
leal (%rbx,%r9), %ebp
leal (%rbx,%r11), %r13d
addq %rdi, %r12
addq %rsi, %r15
xorl %r14d, %r14d
movb (%r12,%r14), %al
cmpb (%r15,%r14), %al
je 0x8ca61
incq %r14
cmpl %r14d, %ebx
jne 0x8ca32
movl %ebp, %r9d
movl %r13d, %r11d
movl %ebx, %r14d
jmp 0x8ca67
addl %r14d, %r11d
addl %r14d, %r9d
cmpl %ebx, %r14d
je 0x8ca6c
jmp 0x8cab9
xorl %r14d, %r14d
jmp 0x8ca67
addl %r14d, %r11d
addl %r14d, %r9d
cmpl %ebx, %r14d
jne 0x8cac0
movl %r10d, %ebx
cmpq %rbx, %rcx
ja 0x8c972
jmp 0x8ca7c
xorl %edx, %edx
movq (%rsp), %rax
movl 0x2c(%rax), %ecx
movl $0x1, %ebx
cmpl %ecx, %edx
jne 0x8ca9d
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x1fd53c(%rip), %rax    # 0x289fe0
movq (%rax), %rdi
leaq 0x19cfae(%rip), %rsi    # 0x229a5c
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x22b0
jmp 0x8ca8c
callq 0x5d5f
jmp 0x8cac5
callq 0x5d43
xorl %ebx, %ebx
jmp 0x8ca8c
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/Correct.cpp
// Function: push_khit(Candidates_list*, int, int, unsigned int, unsigned int, unsigned int*)
inline void push_khit(Candidates_list *res, int32_t xs, int32_t ys, uint32_t len, uint32_t h_khit, uint32_t *ic)
{
    uint32_t p, c; k_mer_hit *z;
    c = ((len >= h_khit)?1:2); if(ic) c = *ic; c <<= 8;
    if(len > 0) {
        while (len >= (0xffu)) {
            p = (c + (0xffu)); 
            kv_pushp_cl(k_mer_hit, (*res), &z); 
            memset(z, 0, sizeof((*z)));
            z->self_offset = xs; z->offset = ys; z->cnt = p;
            len -= (0xffu);
        }
        if(len) {
            p = (c + len); 
            kv_pushp_cl(k_mer_hit, (*res), &z); 
            memset(z, 0, sizeof((*z)));
            z->self_offset = xs; z->offset = ys; z->cnt = p;
        }
    } else {
        p = (c + len); 
        kv_pushp_cl(k_mer_hit, (*res), &z); 
        memset(z, 0, sizeof((*z)));
        z->self_offset = xs; z->offset = ys; z->cnt = p;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %r15d
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r14
xorl %r12d, %r12d
cmpl %r8d, %ecx
adcl $0x1, %r12d
testq %r9, %r9
je 0x9808a
movl (%r9), %r12d
shll $0x8, %r12d
testl %r15d, %r15d
je 0x98119
cmpl $0xff, %r15d
jb 0x98111
movl %r12d, %r13d
orl $0xff, %r13d
xorps %xmm0, %xmm0
movq 0x10(%r14), %rax
cmpq %rax, 0x8(%r14)
jne 0x980dd
leaq (%rax,%rax), %rsi
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rsi
movq %rsi, 0x10(%r14)
movq (%r14), %rdi
shlq $0x4, %rsi
callq 0x2370
xorps %xmm0, %xmm0
movq %rax, (%r14)
movq (%r14), %rax
movq 0x8(%r14), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%r14)
shlq $0x4, %rcx
movups %xmm0, (%rax,%rcx)
movl %ebp, 0x8(%rax,%rcx)
movl %ebx, 0x4(%rax,%rcx)
movl %r13d, 0xc(%rax,%rcx)
addl $0xffffff01, %r15d      # imm = 0xFFFFFF01
cmpl $0xfe, %r15d
ja 0x980ad
testl %r15d, %r15d
je 0x9816d
orl %r15d, %r12d
movq 0x10(%r14), %rax
cmpq %rax, 0x8(%r14)
jne 0x98146
leaq (%rax,%rax), %rcx
testq %rax, %rax
movl $0x2, %esi
cmovneq %rcx, %rsi
movq %rsi, 0x10(%r14)
movq (%r14), %rdi
shlq $0x4, %rsi
callq 0x2370
movq %rax, (%r14)
movq (%r14), %rax
movq 0x8(%r14), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%r14)
shlq $0x4, %rcx
xorps %xmm0, %xmm0
movups %xmm0, (%rax,%rcx)
movl %ebp, 0x8(%rax,%rcx)
movl %ebx, 0x4(%rax,%rcx)
movl %r12d, 0xc(%rax,%rcx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/Overlaps.cpp
// Function: init_bub_label_t(bub_label_t*, unsigned int, unsigned int)
void init_bub_label_t(bub_label_t* x, uint32_t n_thres, uint32_t n_reads)
{
    uint32_t i;
    x->check_cross = 0;
    x->bub_dist = 0;
    x->n_thres = n_thres;
    x->n_reads = n_reads;
    x->g = NULL;
    CALLOC(x->b, x->n_thres);
    for (i = 0; i < x->n_thres; i++)
    {
        CALLOC(x->b[i].a, x->n_reads<<1);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r12
movl $0x0, 0x18(%rdi)
xorl %eax, %eax
movq %rax, 0x20(%rdi)
movl %esi, 0x8(%rdi)
movl %edx, 0xc(%rdi)
movq %rax, 0x10(%rdi)
movl %esi, %r15d
movl $0x50, %esi
movq %r15, %rdi
callq 0x2120
movq %rax, (%r12)
testl %ebp, %ebp
je 0x9fb28
movq %rax, %r14
addl %ebx, %ebx
shlq $0x4, %r15
leaq (%r15,%r15,4), %r15
xorl %r12d, %r12d
movl $0xc, %esi
movq %rbx, %rdi
callq 0x2120
movq %rax, (%r14,%r12)
addq $0x50, %r12
cmpq %r12, %r15
jne 0x9fb0e
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/Overlaps.cpp
// Function: reset_bub_label_t(bub_label_t*, asg_t*, unsigned long, unsigned int)
void reset_bub_label_t(bub_label_t* x, asg_t *g, uint64_t bub_dist, uint32_t check_cross)
{
    uint32_t i;
    x->bub_dist = bub_dist;
    x->check_cross = check_cross;
    x->g = g;
    if(x->n_reads < x->g->n_seq)
    {
        x->n_reads = x->g->n_seq;
        for (i = 0; i < x->n_thres; i++)
        {
            REALLOC(x->b[i].a, x->n_reads<<1);
        }
    }

    for (i = 0; i < x->n_thres; i++)
    {
        x->b[i].S.n = x->b[i].b.n = x->b[i].e.n = 0;
        memset(x->b[i].a, 0, (x->n_reads<<1)*sizeof(binfo_s_t));
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rdx, 0x20(%rdi)
movl %ecx, 0x18(%rdi)
movq %rsi, 0x10(%rdi)
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
andl 0x14(%rsi), %eax
cmpl %eax, 0xc(%rdi)
jae 0x9fb92
movl %eax, 0xc(%rbx)
cmpl $0x0, 0x8(%rbx)
je 0x9fb92
xorl %r14d, %r14d
xorl %r15d, %r15d
movq (%rbx), %rax
movq (%rax,%r14), %rdi
movl 0xc(%rbx), %eax
addl %eax, %eax
shlq $0x2, %rax
leaq (%rax,%rax,2), %rsi
callq 0x2370
movq (%rbx), %rcx
movq %rax, (%rcx,%r14)
incq %r15
movl 0x8(%rbx), %eax
addq $0x50, %r14
cmpq %rax, %r15
jb 0x9fb63
cmpl $0x0, 0x8(%rbx)
je 0x9fbda
xorl %r14d, %r14d
xorl %r15d, %r15d
xorl %r12d, %r12d
movq (%rbx), %rax
movq %r14, 0x38(%rax,%r15)
movq %r14, 0x20(%rax,%r15)
movq %r14, 0x8(%rax,%r15)
movq (%rax,%r15), %rdi
movl 0xc(%rbx), %eax
addl %eax, %eax
shlq $0x2, %rax
leaq (%rax,%rax,2), %rdx
xorl %esi, %esi
callq 0x20e0
incq %r12
movl 0x8(%rbx), %eax
addq $0x50, %r15
cmpq %rax, %r12
jb 0x9fba1
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/Overlaps.cpp
// Function: destory_bub_label_t(bub_label_t*)
void destory_bub_label_t(bub_label_t* x)
{
    uint32_t i;
    for (i = 0; i < x->n_thres; i++)
    {
        free(x->b[i].a); 
        free(x->b[i].S.a); 
        free(x->b[i].b.a); 
        free(x->b[i].e.a);
    }
    free(x->b);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpl $0x0, 0x8(%rdi)
je 0x9fc3c
xorl %r14d, %r14d
xorl %r15d, %r15d
movq (%rbx), %rax
movq (%rax,%r14), %rdi
callq 0x2220
movq (%rbx), %rax
movq 0x18(%rax,%r14), %rdi
callq 0x2220
movq (%rbx), %rax
movq 0x30(%rax,%r14), %rdi
callq 0x2220
movq (%rbx), %rax
movq 0x48(%rax,%r14), %rdi
callq 0x2220
incq %r15
movl 0x8(%rbx), %eax
addq $0x50, %r14
cmpq %rax, %r15
jb 0x9fbfa
movq (%rbx), %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x2220