LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Overlaps.cpp
// Function: get_u_trans_spec(kv_u_trans_t*, unsigned int, unsigned int, u_trans_t**, unsigned int*)
uint32_t get_u_trans_spec(kv_u_trans_t *ta, uint32_t qn, uint32_t tn, u_trans_t **r_a, uint32_t *occ)
{
    if(r_a) (*r_a) = NULL; 
    if(occ) (*occ) = 0;
    u_trans_t *a = NULL;
    uint32_t n, st, i;
    a = u_trans_a(*ta, qn);
    n = u_trans_n(*ta, qn);
    for (st = 0, i = 1; i <= n; ++i)
    {
        if (i == n || a[i].tn != a[st].tn)
        {
            if(a[st].tn == tn)
            {
                if(r_a) (*r_a) = a + st;
                if(occ) (*occ) = i - st;
                return 1;
            }
            st = i;
        }
    }
    return 0;
}

// Assembly:
pushq %rbx
testq %rcx, %rcx
je 0xcba4d
movq $0x0, (%rcx)
testq %r8, %r8
je 0xcba59
movl $0x0, (%r8)
movq 0x28(%rdi), %rax
movl %esi, %esi
movq (%rax,%rsi,8), %r9
testl %r9d, %r9d
je 0xcbacc
movq %r9, %rax
shrq $0x20, %rax
leaq (%rax,%rax,2), %rax
shlq $0x4, %rax
addq 0x10(%rdi), %rax
xorl %edi, %edi
movl $0x1, %esi
movl %edi, %r10d
cmpl %esi, %r9d
jne 0xcba99
leaq (%r10,%r10,2), %r11
shlq $0x4, %r11
movl 0x14(%rax,%r11), %r11d
jmp 0xcbabc
movl %esi, %r11d
leaq (%r11,%r11,2), %rbx
shlq $0x4, %rbx
leaq (%r10,%r10,2), %r11
shlq $0x4, %r11
movl 0x14(%rax,%r11), %r11d
cmpl %r11d, 0x14(%rax,%rbx)
jne 0xcbabc
movl %edi, %ebx
jmp 0xcbac3
movl %esi, %ebx
cmpl %edx, %r11d
je 0xcbad0
incl %esi
movl %ebx, %edi
cmpl %r9d, %esi
jbe 0xcba82
xorl %eax, %eax
popq %rbx
retq
testq %rcx, %rcx
je 0xcbae3
leaq (%r10,%r10,2), %rdx
shlq $0x4, %rdx
addq %rdx, %rax
movq %rax, (%rcx)
movl $0x1, %eax
testq %r8, %r8
je 0xcbace
subl %edi, %esi
movl %esi, (%r8)
jmp 0xcbace
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Overlaps.cpp
// Function: gen_bp_phasing(ug_opt_t*, kv_u_trans_t*, ma_ug_t*, asg_t*)
void gen_bp_phasing(ug_opt_t *opt, kv_u_trans_t *ta, ma_ug_t *ug, asg_t *sg)
{
    uint8_t *bf = NULL;
    bubble_type *bub = gen_bubble_chain(sg, ug, opt, &bf, 0); free(bf);
    filter_u_trans(ta, asm_opt.is_bub_trans, asm_opt.is_topo_trans, asm_opt.is_read_trans, asm_opt.is_base_trans);
    // dbg_prt_utg_trans(ta, ug, "pre");
    if(asm_opt.is_base_trans) {
        trans_base_infer(ug, sg, opt, ta, bub);
    } 
    // dbg_prt_utg_trans(ta, ug, "after");
    clean_u_trans_t_idx_filter_adv(ta, ug, sg, 0.95, 0);
    
    
    bp_solve(opt, ta, ug, sg, bub, asm_opt.trans_base_rate);
    
    destory_bubbles(bub); free(bub); 
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %r13
movq %rsp, %rbp
movq $0x0, (%rbp)
movq %rcx, %rdi
movq %rdx, %rsi
movq %r13, %rdx
movq %rbp, %rcx
xorl %r8d, %r8d
callq 0x1fba56
movq %rax, %r15
movq (%rbp), %rdi
callq 0x2220
leaq 0x1c841f(%rip), %rbp    # 0x295758
movzbl 0x24d(%rbp), %esi
movzbl 0x24c(%rbp), %edx
movzbl 0x24b(%rbp), %ecx
movzbl 0x24a(%rbp), %r8d
movq %r12, %rdi
callq 0xc3997
cmpb $0x0, 0x24a(%rbp)
je 0xcd37b
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %rdx
movq %r12, %rcx
movq %r15, %r8
callq 0x1eb3ec
movsd 0x164215(%rip), %xmm0   # 0x231598
movq %r12, %rdi
movq %r14, %rsi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0xc559a
xorps %xmm0, %xmm0
cvtss2sd 0x170(%rbp), %xmm0
movq %r13, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %rbx, %rcx
movq %r15, %r8
callq 0x161ddc
movq %r15, %rdi
callq 0x13dea7
movq %r15, %rdi
callq 0x2220
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Overlaps.cpp
// Function: print_unitig(ma_utg_t*, ma_ug_t*)
void print_unitig(ma_utg_t* collection, ma_ug_t* ug)
{
    if(collection->m == 0) return;
    uint32_t i, index = 0, uId, ori, l;
    ma_utg_t* query = NULL;
    for (i = 0; i < collection->n; i++)
    {
        uId = collection->a[i]>>33;
        ori = collection->a[i]>>32&1;
        l = (uint32_t)(collection->a[i]);
        fprintf(stderr, "i: %u, uId: %u, ori: %u, l: %u\n", i, uId, ori, l);
        if(ug)
        {
            query = &(ug->u.a[uId]);
            index += query->n;
        }
    }
    fprintf(stderr, "index: %u\n", index);
}

// Assembly:
cmpl $0x0, 0xc(%rdi)
jne 0xcd908
retq
pushq %rbx
subq $0x10, %rsp
xorl %edx, %edx
cmpl $0x0, 0x10(%rdi)
je 0xcd928
leaq 0x10(%rdi), %rdx
leaq 0xc(%rsp), %rbx
movq %rbx, %rcx
callq 0x10c6b
movl (%rbx), %edx
movq 0x1c76b1(%rip), %rax    # 0x294fe0
movq (%rax), %rdi
leaq 0x1697cc(%rip), %rsi    # 0x237105
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
jmp 0x22b0
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Overlaps.cpp
// Function: reset_untig_hap_label(ma_ug_t*, unsigned int, unsigned char, unsigned char*)
void reset_untig_hap_label(ma_ug_t *g, uint32_t uId, uint8_t trio_flag, uint8_t* bin_res)
{
	uint32_t k;
    ma_utg_t *u = &g->u.a[uId];
    for (k = 0; k < u->n; k++) {
        if(bin_res[u->a[k]>>33] == AMBIGU) bin_res[u->a[k]>>33] = trio_flag;
    }
}

// Assembly:
movq 0x10(%rdi), %rdi
movl %esi, %eax
leaq (%rax,%rax,4), %rsi
movl 0x10(%rdi,%rsi,8), %eax
testl %eax, %eax
je 0xcdba3
leaq (%rdi,%rsi,8), %rsi
xorl %edi, %edi
movq 0x18(%rsi), %r8
movq (%r8,%rdi,8), %r8
shrq $0x21, %r8
cmpb $0x0, (%rcx,%r8)
jne 0xcdb98
movb %dl, (%rcx,%r8)
movl 0x10(%rsi), %eax
incq %rdi
movl %eax, %r8d
cmpq %r8, %rdi
jb 0xcdb7e
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Overlaps.cpp
// Function: get_graph_statistic(asg_t*)
long long get_graph_statistic(asg_t *g)
{
    long long num_arc = 0;
	uint32_t n_vtx = g->n_seq * 2, v;
    
	for (v = 0; v < n_vtx; ++v) 
    {
		if (g->seq[v>>1].del || g->seq[v>>1].c == ALTER_LABLE) continue;
        ///num_arc += asg_arc_n(g, v);
        num_arc += get_real_length(g, v, NULL);
    }

    return num_arc;
}

// Assembly:
movl 0x14(%rdi), %eax
addl %eax, %eax
je 0xcdc31
pushq %rbp
pushq %rbx
movq 0x20(%rdi), %rcx
movl %eax, %edx
xorl %esi, %esi
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
xorl %eax, %eax
movl %esi, %r9d
shrl %r9d
cmpl $0x0, (%rcx,%r9,8)
js 0xcdc26
cmpb $0x1, 0x4(%rcx,%r9,8)
je 0xcdc26
movq 0x28(%rdi), %r9
movq (%r9,%rsi,8), %r9
movq %r9, %r10
andq %r8, %r10
je 0xcdc20
movq 0x8(%rdi), %r11
shrq $0x20, %r9
leaq (%r9,%r9,2), %r9
leaq (%r11,%r9,8), %r9
addq $0xc, %r9
shlq $0x3, %r10
leaq (%r10,%r10,2), %r10
xorl %r11d, %r11d
xorl %ebx, %ebx
movl (%r9,%r11), %ebp
notl %ebp
shrl $0x1f, %ebp
addl %ebp, %ebx
addq $0x18, %r11
cmpq %r11, %r10
jne 0xcdc07
movslq %ebx, %r9
jmp 0xcdc23
xorl %r9d, %r9d
addq %r9, %rax
incq %rsi
cmpq %rdx, %rsi
jne 0xcdbc1
popq %rbx
popq %rbp
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Overlaps.cpp
// Function: cal_trio_vec(buf_t*, ma_ug_t*, float)
uint32_t cal_trio_vec(buf_t* b, ma_ug_t *ug, float thres)
{
    uint32_t i, father_occ = 0, mother_occ = 0, v, k, rId;
    if(ug == NULL)
    {
        for (i = 0; i < b->b.n; ++i)
        {
            if(R_INF.trio_flag[b->b.a[i]>>1]==FATHER)
            {
                father_occ++;
            }
            else if(R_INF.trio_flag[b->b.a[i]>>1]==MOTHER)
            {
                mother_occ++;
            }
        }
    }
    else
    {
        ma_utg_t* u = NULL;
        for (i = 0; i < b->b.n; ++i)
        {
            v = b->b.a[i]>>1;
            u = &(ug->u.a[v]);
            if(u->m == 0) continue;
            for (k = 0; k < u->n; k++)
            {
                rId = u->a[k]>>33;
                if(R_INF.trio_flag[rId]==FATHER)
                {
                    father_occ++;
                }
                else if(R_INF.trio_flag[rId]==MOTHER)
                {
                    mother_occ++;
                }
            }
        }
    }
    
    

    if(father_occ >= thres*(father_occ+mother_occ)) return FATHER;
    if(mother_occ >= thres*(father_occ+mother_occ)) return MOTHER;
    return AMBIGU;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq 0x38(%rdi), %rax
testq %rsi, %rsi
je 0xcde06
testq %rax, %rax
je 0xcde4c
movq 0x48(%rdi), %rdi
movq 0x10(%rsi), %rsi
leaq 0x1c848d(%rip), %rcx    # 0x296230
movq 0x28(%rcx), %r8
xorl %r9d, %r9d
xorl %ecx, %ecx
xorl %edx, %edx
movl (%rdi,%r9,4), %r10d
shrl %r10d
leaq (%r10,%r10,4), %r10
cmpl $0x0, 0xc(%rsi,%r10,8)
je 0xcddf9
leaq (%rsi,%r10,8), %r11
movl 0x10(%r11), %r10d
testq %r10, %r10
je 0xcddf9
movq 0x18(%r11), %r11
xorl %ebx, %ebx
movq (%r11,%rbx,8), %r14
shrq $0x21, %r14
movzbl (%r8,%r14), %ebp
cmpl $0x2, %ebp
je 0xcddef
cmpl $0x1, %ebp
jne 0xcddf1
incl %edx
jmp 0xcddf1
incl %ecx
incq %rbx
cmpq %rbx, %r10
jne 0xcddd4
incq %r9
movl %r9d, %r10d
cmpq %r10, %rax
ja 0xcddae
jmp 0xcde50
testq %rax, %rax
je 0xcde4c
leaq 0x1c841e(%rip), %rcx    # 0x296230
movq 0x28(%rcx), %rsi
movq 0x48(%rdi), %rdi
xorl %r8d, %r8d
xorl %ecx, %ecx
xorl %edx, %edx
movl (%rdi,%r8,4), %r9d
shrl %r9d
movzbl (%rsi,%r9), %r9d
cmpl $0x2, %r9d
je 0xcde3d
cmpl $0x1, %r9d
jne 0xcde3f
incl %edx
jmp 0xcde3f
incl %ecx
incq %r8
movl %r8d, %r9d
cmpq %r9, %rax
ja 0xcde21
jmp 0xcde50
xorl %edx, %edx
xorl %ecx, %ecx
movl %edx, %eax
cvtsi2ss %rax, %xmm1
addl %ecx, %edx
cvtsi2ss %rdx, %xmm2
movl %ecx, %eax
cvtsi2ss %rax, %xmm3
mulss %xmm0, %xmm2
xorl %ecx, %ecx
ucomiss %xmm2, %xmm3
setae %cl
addl %ecx, %ecx
ucomiss %xmm2, %xmm1
movl $0x1, %eax
cmovbl %ecx, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Overlaps.cpp
// Function: label_r_set(buf_t*, R_to_U*, ma_ug_t*, unsigned int)
void label_r_set(buf_t* b, R_to_U* ruIndex, ma_ug_t *ug, uint32_t flag)
{
    uint32_t uid, rid, qn;
    ma_utg_t *u = NULL;
    for (uid = 0; uid < b->b.n;uid++)
    {
        u = &(ug->u.a[b->b.a[uid]>>1]);
        ///each read
        for (rid = 0; rid < u->n; rid++)
        {
            qn = (u->a[rid]>>33);
            if(flag != (uint32_t)-1)
            {
                set_R_to_U(ruIndex, qn, b->b.a[uid]>>1, 1, NULL);
            }
            else
            {
                ruIndex->index[qn] = (uint32_t)-1;
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, (%rsp)
movq 0x38(%rdi), %rax
testq %rax, %rax
je 0xce4a7
movl %ecx, %ebx
movq %rsi, %r15
movq %rdi, %r12
xorl %r13d, %r13d
movq (%rsp), %rcx
movq 0x10(%rcx), %rcx
movq 0x48(%r12), %rdx
movl (%rdx,%r13,4), %edx
shrl %edx
leaq (%rdx,%rdx,4), %rdx
cmpl $0x0, 0x10(%rcx,%rdx,8)
je 0xce49f
leaq (%rcx,%rdx,8), %rbp
xorl %r14d, %r14d
movq 0x18(%rbp), %rax
movq (%rax,%r14,8), %rsi
shrq $0x21, %rsi
cmpl $-0x1, %ebx
je 0xce484
movq 0x48(%r12), %rax
movl (%rax,%r13,4), %edx
shrl %edx
movq %r15, %rdi
movl $0x1, %ecx
xorl %r8d, %r8d
callq 0xa27e9
jmp 0xce48f
movq 0x8(%r15), %rax
movl $0xffffffff, (%rax,%rsi,4) # imm = 0xFFFFFFFF
incq %r14
movl 0x10(%rbp), %eax
cmpq %rax, %r14
jb 0xce456
movq 0x38(%r12), %rax
incl %r13d
cmpq %r13, %rax
ja 0xce431
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Overlaps.cpp
// Function: get_unitig_trio_flag(ma_utg_t*, unsigned int, unsigned int*, unsigned int*, unsigned int*)
void get_unitig_trio_flag(ma_utg_t* nsu, uint32_t flag, uint32_t* require, 
uint32_t* non_require, uint32_t* ambigious)
{
    uint32_t k, rId;
    (*require) = (*non_require) = (*ambigious) = 0;
    for (k = 0; k < nsu->n; k++)
    {
        rId = nsu->a[k]>>33;
        if(R_INF.trio_flag[rId] == AMBIGU || R_INF.trio_flag[rId] == DROP)
        {
            (*ambigious)++;
            continue;
        } 
        if(R_INF.trio_flag[rId] == flag)
        {
            (*require)++;
            continue;
        } 
        if(R_INF.trio_flag[rId] != flag)
        {
            (*non_require)++;
            continue;
        } 
    }
}

// Assembly:
xorl %eax, %eax
movl %eax, (%r8)
movl %eax, (%rcx)
movl %eax, (%rdx)
cmpl %eax, 0x10(%rdi)
je 0xd069f
pushq %rbx
movq 0x18(%rdi), %rax
leaq 0x1c5bce(%rip), %r9     # 0x296230
movq 0x28(%r9), %r9
xorl %r10d, %r10d
movq (%rax,%r10,8), %r11
shrq $0x21, %r11
movzbl (%r9,%r11), %ebx
movq %r8, %r11
testl %ebx, %ebx
je 0xd068f
movq %r8, %r11
cmpl $0x5, %ebx
je 0xd068f
movq %rdx, %r11
cmpl %esi, %ebx
je 0xd068f
movq %rcx, %r11
incl (%r11)
incq %r10
movl 0x10(%rdi), %r11d
cmpq %r11, %r10
jb 0xd0669
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Overlaps.cpp
// Function: destroy_rd_hamming_fly_simp_t(rd_hamming_fly_simp_t*)
void destroy_rd_hamming_fly_simp_t(rd_hamming_fly_simp_t *p)
{
    ///asg_destroy(p->ng); ///free(p->rs);
    ma_ug_destroy(p->fg); 
    free(p->vs); 
    free(p->srt->a); 
    free(p->srt); 
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
callq 0xa0761
movq 0x28(%rbx), %rdi
callq 0x2220
movq 0x20(%rbx), %rax
movq 0x10(%rax), %rdi
callq 0x2220
movq 0x20(%rbx), %rdi
popq %rbx
jmp 0x2220
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Overlaps.cpp
// Function: dbg_asys_gfa0(void*, long, int)
static void dbg_asys_gfa0(void *data, long i, int tid) // callback for kt_for()
{
	asg_t *g = (asg_t *)data; asg_arc_t *s = &(g->arc[i]), *ra; 
    if(s->del) return;
    uint64_t rn, ri, v, w;
    ra = asg_arc_a(g, (s->v^1)); rn = asg_arc_n(g, (s->v^1));
    for (ri = 0; ri < rn; ri++) {
        if(ra[ri].del) continue;
        if(ra[ri].v == ((s->ul>>32)^1)) break;
    }
    if(ri >= rn) {
        v = s->ul>>32; w = s->v;
        fprintf(stderr, "[M::%s] v::utg%.6lul(%c)\tw::utg%.6lul(%c)\n", __func__, (v>>1) + 1, "+-"[(v&1)], (w>>1) + 1, "+-"[(w&1)]);
        exit(1);
    }
}

// Assembly:
pushq %rax
movq 0x8(%rdi), %rcx
leaq (%rsi,%rsi,2), %rdx
cmpl $0x0, 0xc(%rcx,%rdx,8)
js 0xd3290
movq %rdi, %rax
leaq (%rcx,%rdx,8), %rdi
movq 0x28(%rax), %rax
movl 0x8(%rdi), %esi
movq %rsi, %rdx
xorq $0x1, %rdx
movq (%rax,%rdx,8), %rdx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
andq %rdx, %rax
je 0xd328b
shrq $0x20, %rdx
shlq $0x3, %rax
leaq (%rax,%rax,2), %rax
leaq (%rdx,%rdx,2), %rdx
leaq (%rcx,%rdx,8), %rcx
addq $0xc, %rcx
xorl %edx, %edx
cmpl $0x0, (%rcx,%rdx)
js 0xd3282
movl 0x4(%rdi), %r8d
xorl -0x4(%rcx,%rdx), %r8d
cmpl $0x1, %r8d
je 0xd3290
addq $0x18, %rdx
cmpq %rdx, %rax
jne 0xd326d
callq 0x10d62
popq %rax
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Overlaps.cpp
// Function: dbg_asys_gfa1(void*, long, int)
static void dbg_asys_gfa1(void *data, long i, int tid) // callback for kt_for()
{
	asg_t *g = (asg_t *)data; asg_arc_t *av, *ra; 
    uint64_t rn, ri, v, w, an, k;
    v = i<<1; av = asg_arc_a(g, v); an = asg_arc_n(g, v);
    for (k = 0; k < an; k++) {
        if(av[k].del) continue;
        ra = asg_arc_a(g, (av[k].v^1)); rn = asg_arc_n(g, (av[k].v^1));
        for (ri = 0; ri < rn; ri++) {
            if(ra[ri].del) continue;
            if(ra[ri].v == ((av[k].ul>>32)^1)) break;
        }
        if(ri >= rn) {
            w = av[k].v;
            fprintf(stderr, "[M::%s] v::utg%.6lul(%c)\tw::utg%.6lul(%c)\n", __func__, (v>>1) + 1, "+-"[(v&1)], (w>>1) + 1, "+-"[(w&1)]);
            exit(1);
        }

    }

    v = (i<<1) + 1; av = asg_arc_a(g, v); an = asg_arc_n(g, v);
    for (k = 0; k < an; k++) {
        if(av[k].del) continue;
        ra = asg_arc_a(g, (av[k].v^1)); rn = asg_arc_n(g, (av[k].v^1));
        for (ri = 0; ri < rn; ri++) {
            if(ra[ri].del) continue;
            if(ra[ri].v == ((av[k].ul>>32)^1)) break;
        }
        if(ri >= rn) {
            w = av[k].v;
            fprintf(stderr, "[M::%s] v::utg%.6lul(%c)\tw::utg%.6lul(%c)\n", __func__, (v>>1) + 1, "+-"[(v&1)], (w>>1) + 1, "+-"[(w&1)]);
            exit(1);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq 0x8(%rdi), %rax
movq 0x28(%rdi), %rcx
movq %rsi, %rdx
shlq $0x4, %rdx
movq (%rcx,%rdx), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movq %rdi, %r8
andq %rdx, %r8
je 0xd3338
shrq $0x20, %rdi
leaq (%rdi,%rdi,2), %rdi
leaq (%rax,%rdi,8), %r9
leaq 0xc(%rax), %r10
xorl %r11d, %r11d
leaq (%r11,%r11,2), %rdi
cmpl $0x0, 0xc(%r9,%rdi,8)
js 0xd3330
leaq (%r9,%rdi,8), %rbx
movl 0x8(%rbx), %edi
movq %rdi, %r14
xorq $0x1, %r14
movq (%rcx,%r14,8), %r15
movq %r15, %r14
andq %rdx, %r14
je 0xd33ce
shrq $0x20, %r15
shlq $0x3, %r14
leaq (%r14,%r14,2), %r14
leaq (%r15,%r15,2), %r15
leaq (%r10,%r15,8), %r15
xorl %r12d, %r12d
cmpl $0x0, (%r15,%r12)
js 0xd3322
movl 0x4(%rbx), %ebp
xorl -0x4(%r15,%r12), %ebp
cmpl $0x1, %ebp
je 0xd3330
addq $0x18, %r12
cmpq %r12, %r14
jne 0xd330e
jmp 0xd33ce
incq %r11
cmpq %r8, %r11
jne 0xd32cd
leaq (%rsi,%rsi), %rdi
movq 0x8(%rcx,%rdi,8), %rdi
andq %rdi, %rdx
je 0xd33c5
shrq $0x20, %rdi
leaq (%rdi,%rdi,2), %rdi
leaq (%rax,%rdi,8), %r8
addq $0xc, %rax
xorl %r9d, %r9d
movl $0xffffffff, %r10d      # imm = 0xFFFFFFFF
leaq (%r9,%r9,2), %rdi
cmpl $0x0, 0xc(%r8,%rdi,8)
js 0xd33bd
leaq (%r8,%rdi,8), %r11
movl 0x8(%r11), %edi
movq %rdi, %rbx
xorq $0x1, %rbx
movq (%rcx,%rbx,8), %r14
movq %r14, %rbx
andq %r10, %rbx
je 0xd33d3
shrq $0x20, %r14
shlq $0x3, %rbx
leaq (%rbx,%rbx,2), %rbx
leaq (%r14,%r14,2), %r14
leaq (%rax,%r14,8), %r14
xorl %r15d, %r15d
cmpl $0x0, (%r14,%r15)
js 0xd33b2
movl 0x4(%r11), %ebp
xorl -0x4(%r14,%r15), %ebp
cmpl $0x1, %ebp
je 0xd33bd
addq $0x18, %r15
cmpq %r15, %rbx
jne 0xd339d
jmp 0xd33d3
incq %r9
cmpq %rdx, %r9
jne 0xd335f
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x10dc1
callq 0x10e15
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Overlaps.cpp
// Function: set_drop_trio_flag(ma_ug_t*)
void set_drop_trio_flag(ma_ug_t *ug)
{
    ma_utg_t* u = NULL;
    asg_t* nsg = ug->g;
    uint32_t k, rId;
    uint32_t v, n_vtx = nsg->n_seq;
    for (v = 0; v < n_vtx; ++v) 
    {
        if(nsg->seq[v].del) continue;
        if(nsg->seq[v].c == ALTER_LABLE) continue;
        u = &(ug->u.a[v]);
        if(u->m == 0) continue;
        for (k = 0; k < u->n; k++)
        {
            rId = u->a[k]>>33;
            if(R_INF.trio_flag[rId] != AMBIGU) continue;
            R_INF.trio_flag[rId] = DROP;
        }
    }
}

// Assembly:
pushq %rbx
movq 0x18(%rdi), %rax
movl 0x14(%rax), %ecx
andq $0x7fffffff, %rcx       # imm = 0x7FFFFFFF
je 0xd543c
xorl %edx, %edx
leaq 0x1c0e5e(%rip), %rsi    # 0x296230
movq 0x20(%rax), %r8
cmpl $0x0, (%r8,%rdx,8)
js 0xd5434
cmpb $0x1, 0x4(%r8,%rdx,8)
je 0xd5434
movq 0x10(%rdi), %r8
leaq (%rdx,%rdx,4), %r9
cmpl $0x0, 0xc(%r8,%r9,8)
je 0xd5434
leaq (%r8,%r9,8), %r8
movl 0x10(%r8), %r9d
testl %r9d, %r9d
je 0xd5434
movq 0x28(%rsi), %r10
xorl %r11d, %r11d
movq 0x18(%r8), %rbx
movq (%rbx,%r11,8), %rbx
shrq $0x21, %rbx
cmpb $0x0, (%r10,%rbx)
jne 0xd5429
movb $0x5, (%r10,%rbx)
movq 0x28(%rsi), %r10
movl 0x10(%r8), %r9d
incq %r11
movl %r9d, %ebx
cmpq %rbx, %r11
jb 0xd5409
incq %rdx
cmpq %rcx, %rdx
jne 0xd53d2
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Overlaps.cpp
// Function: update_hap_label(ma_ug_t*, asg_t*)
void update_hap_label(ma_ug_t *ug, asg_t* read_g)
{
    uint32_t v, n_vtx, k;
    uint64_t rId;

    if(ug == NULL)
    {
        n_vtx = read_g->n_seq;
        for (v = 0; v < n_vtx; ++v) 
        {
            if(read_g->seq[v].del) continue;
            if(read_g->seq[v].c != HAP_LABLE) continue;
            read_g->seq[v].c = PRIMARY_LABLE;
        }
        return;
    }


    asg_t* nsg = ug->g;
    n_vtx = nsg->n_seq;
    ma_utg_t* u = NULL;
    for (v = 0; v < n_vtx; ++v) 
    {
        if(nsg->seq[v].del) continue;
        if(nsg->seq[v].c != HAP_LABLE) continue;
        u = &((ug)->u.a[v]);
        if(u->m == 0) continue;
        for (k = 0; k < u->n; k++)
        {
            rId = u->a[k]>>33;
            read_g->seq[rId].c = HAP_LABLE;
        }
    }
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0xd68b6
movq 0x18(%rdi), %rcx
movl 0x14(%rcx), %eax
andq $0x7fffffff, %rax       # imm = 0x7FFFFFFF
je 0xd68e1
movq 0x20(%rcx), %rcx
xorl %edx, %edx
cmpl $0x0, (%rcx,%rdx,8)
js 0xd68ac
cmpb $0x2, 0x4(%rcx,%rdx,8)
jne 0xd68ac
movq 0x10(%rdi), %r8
leaq (%rdx,%rdx,4), %r9
cmpl $0x0, 0xc(%r8,%r9,8)
je 0xd68ac
leaq (%r8,%r9,8), %r9
movl 0x10(%r9), %r8d
testq %r8, %r8
je 0xd68ac
movq 0x18(%r9), %r9
movq 0x20(%rsi), %r10
xorl %r11d, %r11d
movq (%r9,%r11,8), %rbx
shrq $0x21, %rbx
movb $0x2, 0x4(%r10,%rbx,8)
incq %r11
cmpq %r11, %r8
jne 0xd6896
incq %rdx
cmpq %rax, %rdx
jne 0xd6861
jmp 0xd68e1
movl 0x14(%rsi), %eax
andq $0x7fffffff, %rax       # imm = 0x7FFFFFFF
je 0xd68e1
movq 0x20(%rsi), %rcx
xorl %edx, %edx
cmpl $0x0, (%rcx,%rdx,8)
js 0xd68d9
cmpb $0x2, 0x4(%rcx,%rdx,8)
jne 0xd68d9
movb $0x0, 0x4(%rcx,%rdx,8)
incq %rdx
cmpq %rdx, %rax
jne 0xd68c7
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Overlaps.cpp
// Function: purge_dump(ma_ug_t*)
void purge_dump(ma_ug_t* ug)
{
    asg_t* nsg = ug->g;
    uint32_t v, n_vtx = nsg->n_seq, k, rId;
    ma_utg_t *u = NULL;
    for (v = 0; v < n_vtx; ++v) {
        if (nsg->seq[v].del) continue;
        u = &((ug)->u.a[v]);
        if(u->m == 0) continue;
        for (k = 0; k < u->n; k++){
            rId = u->a[k]>>33;
            if(R_INF.trio_flag[rId] != AMBIGU && R_INF.trio_flag[rId] != DROP) break;
        }
        if(k >= u->n){
            if(u->m != 0){
                u->circ = u->end = u->len = u->m = u->n = u->start = 0;
                free(u->a);
                u->a = NULL;
            }
            asg_seq_del(nsg, v);
        }
    }
    asg_cleanup(nsg);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x18(%rdi), %rbx
movl 0x14(%rbx), %r15d
andq $0x7fffffff, %r15       # imm = 0x7FFFFFFF
je 0xd6cf9
movq %rdi, %r14
xorl %r12d, %r12d
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
movq 0x20(%rbx), %rax
cmpl $0x0, (%rax,%r12,8)
js 0xd6ced
movq 0x10(%r14), %rax
leaq (%r12,%r12,4), %rcx
cmpl $0x0, 0xc(%rax,%rcx,8)
je 0xd6ced
leaq (%rax,%rcx,8), %rbp
movl 0x10(%rbp), %eax
movq 0x18(%rbp), %rdi
testq %rax, %rax
je 0xd6c20
leaq 0x1bf637(%rip), %rcx    # 0x296230
movq 0x28(%rcx), %rcx
xorl %edx, %edx
movq (%rdi,%rdx,8), %rsi
shrq $0x21, %rsi
movzbl (%rcx,%rsi), %esi
cmpl $0x5, %esi
je 0xd6c18
testl %esi, %esi
jne 0xd6ced
incq %rdx
cmpq %rdx, %rax
jne 0xd6bff
movl $0x0, 0x10(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, (%rbp)
callq 0x2220
movq $0x0, 0x18(%rbp)
movq 0x20(%rbx), %rax
orl $0x80000000, (%rax,%r12,8) # imm = 0x80000000
leaq (%r12,%r12), %rax
movb $0x1, %cl
xorl %edx, %edx
orq %rax, %rdx
movq 0x28(%rbx), %rsi
movq (%rsi,%rdx,8), %rdi
movq %rdi, %rsi
andq %r13, %rsi
je 0xd6cda
shrq $0x20, %rdi
leaq (%rdi,%rdi,2), %rdi
shlq $0x3, %rdi
addq 0x8(%rbx), %rdi
xorl %r8d, %r8d
leaq (%r8,%r8,2), %r9
orb $-0x80, 0xf(%rdi,%r9,8)
movl 0x8(%rdi,%r9,8), %r9d
xorq $0x1, %r9
movq 0x28(%rbx), %r10
movq (%r10,%r9,8), %r10
movq %r10, %r9
andq %r13, %r9
je 0xd6cd2
movq 0x8(%rbx), %r11
shrq $0x20, %r10
shlq $0x3, %r9
leaq (%r9,%r9,2), %r9
leaq (%r10,%r10,2), %r10
leaq (%r11,%r10,8), %r10
addq $0xc, %r10
xorl %r11d, %r11d
movl -0x4(%r10,%r11), %ebp
xorl %edx, %ebp
cmpl $0x1, %ebp
jne 0xd6cc9
orb $-0x80, 0x3(%r10,%r11)
addq $0x18, %r11
cmpq %r11, %r9
jne 0xd6cb7
incq %r8
cmpq %rsi, %r8
jne 0xd6c75
movl $0x1, %edx
testb $0x1, %cl
movl $0x0, %ecx
jne 0xd6c4f
incq %r12
cmpq %r15, %r12
jne 0xd6bc0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xa0a7d
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Overlaps.cpp
// Function: discard_small_ctg(ma_ug_t**, asg_t*, kvec_asg_arc_t_warp*, int, unsigned int, unsigned int)
void discard_small_ctg(ma_ug_t **ug, asg_t* rg, kvec_asg_arc_t_warp* edge, int32_t max_rg_cut, uint32_t is_renew0, uint32_t is_renew1)
{
    if(is_renew0) renew_utg(ug, rg, edge);
    uint32_t i, cnt = 0; ma_utg_t* u = NULL;
    for (i = 0; i < (*ug)->u.n; i++) {
        if(((int32_t)(*ug)->u.a[i].n) > max_rg_cut) continue;
        u = &(((*ug))->u.a[i]);
        asg_seq_del((*ug)->g, i);
        if(u->m!=0) {
            u->m = u->n = 0; free(u->a); u->a = NULL; u->len = u->circ = 0; u->start = u->end = 0;
        }
        cnt++;
    }

    if(cnt && is_renew1) renew_utg(ug, rg, edge);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r9d, %ebp
movl %ecx, %r12d
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
testl %r8d, %r8d
je 0xd6d3f
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0xbb7a4
movq (%r15), %rax
movq (%rax), %rcx
testq %rcx, %rcx
je 0xd6eb9
movl %ebp, 0x8(%rsp)
movq %r14, 0x10(%rsp)
movq %rbx, 0x18(%rsp)
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
xorl %edx, %edx
xorl %ebx, %ebx
xorl %r14d, %r14d
movl %r12d, 0xc(%rsp)
movq %r15, 0x20(%rsp)
movq 0x10(%rax), %rsi
leaq (%rdx,%rdx,4), %rdi
cmpl %r12d, 0x10(%rsi,%rdi,8)
jg 0xd6e79
movq 0x18(%rax), %rax
movq 0x20(%rax), %rcx
orl $0x80000000, (%rcx,%rdx,8) # imm = 0x80000000
leaq (%rsi,%rdi,8), %r13
leal (%r14,%r14), %ecx
movb $0x1, %dl
xorl %esi, %esi
orq %rcx, %rsi
movq 0x28(%rax), %rdi
movq (%rdi,%rsi,8), %r8
movq %r8, %rdi
andq %rbp, %rdi
je 0xd6e2d
shrq $0x20, %r8
leaq (%r8,%r8,2), %r8
shlq $0x3, %r8
addq 0x8(%rax), %r8
xorl %r9d, %r9d
leaq (%r9,%r9,2), %r10
orb $-0x80, 0xf(%r8,%r10,8)
movl 0x8(%r8,%r10,8), %r10d
xorq $0x1, %r10
movq 0x28(%rax), %r11
movq (%r11,%r10,8), %r11
movq %r11, %r10
andq %rbp, %r10
je 0xd6e25
movq 0x8(%rax), %r15
shrq $0x20, %r11
shlq $0x3, %r10
leaq (%r10,%r10,2), %r10
leaq (%r11,%r11,2), %r11
leaq (%r15,%r11,8), %r11
addq $0xc, %r11
xorl %r15d, %r15d
movl -0x4(%r11,%r15), %r12d
xorl %esi, %r12d
cmpl $0x1, %r12d
jne 0xd6e1c
orb $-0x80, 0x3(%r11,%r15)
addq $0x18, %r15
cmpq %r15, %r10
jne 0xd6e08
incq %r9
cmpq %rdi, %r9
jne 0xd6dc6
movl $0x1, %esi
testb $0x1, %dl
movl $0x0, %edx
jne 0xd6da0
cmpl $0x0, 0xc(%r13)
je 0xd6e67
xorl %r15d, %r15d
movq %r15, 0xc(%r13)
movq 0x18(%r13), %rdi
callq 0x2220
movq %r15, 0x18(%r13)
movq %r15, (%r13)
movl $0x0, 0x8(%r13)
incl %ebx
movq 0x20(%rsp), %r15
movq (%r15), %rax
movq (%rax), %rcx
movl 0xc(%rsp), %r12d
incl %r14d
movq %r14, %rdx
cmpq %r14, %rcx
ja 0xd6d72
testl %ebx, %ebx
sete %al
cmpl $0x0, 0x8(%rsp)
sete %cl
orb %al, %cl
movq 0x18(%rsp), %rdx
movq 0x10(%rsp), %rsi
jne 0xd6eb9
movq %r15, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xbb7a4
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Overlaps.cpp
// Function: debug_untig_length(ma_ug_t*, unsigned int, char const*)
int debug_untig_length(ma_ug_t *g, uint32_t tipsLen, const char* name)
{
	uint32_t i;

	for (i = 0; i < g->u.n; ++i) {
		ma_utg_t *u = &g->u.a[i];
        if(u->m == 0) continue;
        if(u->n <= tipsLen)
        {
            fprintf(stderr, "i: %u, u->n: %u, tipsLen: %u, %s\n", i, u->n, tipsLen, name);
        }
	}

	return 0;
}

// Assembly:
movq (%rdi), %rax
testq %rax, %rax
je 0xd9e6b
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
movl $0x1, %r12d
movq 0x1bb1d1(%rip), %r13    # 0x294fe0
leaq 0x15d8e2(%rip), %r15    # 0x2376f8
xorl %ecx, %ecx
movq 0x10(%r14), %rdx
leaq (%rcx,%rcx,4), %rcx
cmpl $0x0, 0xc(%rdx,%rcx,8)
je 0xd9e32
leaq (%rdx,%rcx,8), %rcx
movl 0x10(%rcx), %ecx
cmpl %ebp, %ecx
jbe 0xd9e3f
movl %r12d, %ecx
incl %r12d
cmpq %rcx, %rax
ja 0xd9e18
jmp 0xd9e5d
leal -0x1(%r12), %edx
movq (%r13), %rdi
movq %r15, %rsi
movl %ebp, %r8d
movq %rbx, %r9
xorl %eax, %eax
callq 0x22b0
movq (%r14), %rax
jmp 0xd9e32
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Overlaps.cpp
// Function: update_recover_atg_cov()
void update_recover_atg_cov()
{
    if(asm_opt.recover_atg_cov_min == -1024) {
        asm_opt.recover_atg_cov_max = (asm_opt.hom_global_coverage_set?
            (asm_opt.hom_global_coverage):(((double)asm_opt.hom_global_coverage)/((double)HOM_PEAK_RATE)));         
        asm_opt.recover_atg_cov_min = asm_opt.recover_atg_cov_max * 0.85;
        asm_opt.recover_atg_cov_max = INT32_MAX;
    }
}

// Assembly:
leaq 0x1bb4cc(%rip), %rax    # 0x295758
cmpl $0xfffffc00, 0x13c(%rax) # imm = 0xFFFFFC00
jne 0xda2d5
cmpl $0x0, 0x148(%rax)
cvtsi2sdl 0x144(%rax), %xmm0
jne 0xda2b1
divsd 0x15baaf(%rip), %xmm0   # 0x235d60
cvttpd2dq %xmm0, %xmm0
cvtdq2pd %xmm0, %xmm0
mulsd 0x15babf(%rip), %xmm0   # 0x235d80
cvttsd2si %xmm0, %ecx
movl %ecx, 0x13c(%rax)
movl $0x7fffffff, 0x140(%rax) # imm = 0x7FFFFFFF
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Overlaps.cpp
// Function: delete_ug_node(ma_ug_t*, unsigned long)
void delete_ug_node(ma_ug_t *ug, uint64_t nid)
{
    asg_seq_del(ug->g, nid);
    if(ug->u.a[nid].m!=0) {
        ug->u.a[nid].m = ug->u.a[nid].n = 0;
        free(ug->u.a[nid].a); ug->u.a[nid].a = NULL;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0x18(%rdi), %rax
movq 0x20(%rax), %rcx
movl %esi, %edx
orl $0x80000000, (%rcx,%rdx,8) # imm = 0x80000000
leal (%rsi,%rsi), %ecx
movb $0x1, %dl
xorl %edi, %edi
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
orq %rcx, %rdi
movq 0x28(%rax), %r9
movq (%r9,%rdi,8), %r10
movq %r10, %r9
andq %r8, %r9
je 0xda6ca
shrq $0x20, %r10
leaq (%r10,%r10,2), %r10
shlq $0x3, %r10
addq 0x8(%rax), %r10
xorl %r11d, %r11d
leaq (%r11,%r11,2), %r14
orb $-0x80, 0xf(%r10,%r14,8)
movl 0x8(%r10,%r14,8), %r14d
xorq $0x1, %r14
movq 0x28(%rax), %r15
movq (%r15,%r14,8), %r15
movq %r15, %r14
andq %r8, %r14
je 0xda6c2
movq 0x8(%rax), %r12
shrq $0x20, %r15
shlq $0x3, %r14
leaq (%r14,%r14,2), %r14
leaq (%r15,%r15,2), %r15
leaq (%r12,%r15,8), %r15
addq $0xc, %r15
xorl %r12d, %r12d
movl -0x4(%r15,%r12), %ebp
xorl %edi, %ebp
cmpl $0x1, %ebp
jne 0xda6b9
orb $-0x80, 0x3(%r15,%r12)
addq $0x18, %r12
cmpq %r12, %r14
jne 0xda6a7
incq %r11
cmpq %r9, %r11
jne 0xda665
movl $0x1, %edi
testb $0x1, %dl
movl $0x0, %edx
jne 0xda63f
movq 0x10(%rbx), %rax
leaq (%rsi,%rsi,4), %rcx
cmpl $0x0, 0xc(%rax,%rcx,8)
je 0xda719
leaq (%rax,%rcx,8), %rcx
xorl %edx, %edx
movl %edx, 0x10(%rcx)
shlq $0x3, %rsi
leaq (%rsi,%rsi,4), %r14
movl %edx, 0xc(%rax,%r14)
movq 0x18(%rax,%r14), %rdi
callq 0x2220
movq 0x10(%rbx), %rax
movq $0x0, 0x18(%rax,%r14)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Overlaps.cpp
// Function: dedup_exact_ug(dedup_idx_t*, dedup_idx_t*, ma_sub_t*, ma_hit_t_alloc*, R_to_U*, unsigned char*, unsigned char)
uint64_t dedup_exact_ug(dedup_idx_t *ref, dedup_idx_t *qry, ma_sub_t *cov, ma_hit_t_alloc *src, R_to_U *rui, uint8_t *ff, uint8_t trio_f)
{
    // fprintf(stderr, "[M::%s] Start\n", __func__);
    uint64_t k, n_base = 0; int64_t f;
    for (k = 0; k < qry->ug->u.n; k++) {
        if((qry->ug->u.a[k].n == 0) || (qry->ug->u.a[k].m == 0) || (qry->ug->g->seq[k].del)) continue;
        if(if_primary_unitig(&(qry->ug->u.a[k]), qry->rg, cov, src, rui, ff)) continue;
        f = cal_exact_ug_o(ref, &(qry->ug->u.a[k]), trio_f);
        if(f == INT32_MIN) continue;
        if(f == -1) {///delete qry
            delete_ug_node(qry->ug, k); n_base += qry->ug->u.a[k].len;
        } else if(f >= 0) {///delete ref
            delete_ug_node(ref->ug, f); n_base += ref->ug->u.a[f].len;
        }
    }
    // fprintf(stderr, "[M::%s] End\n", __func__);
    return n_base;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, 0x30(%rsp)
movq %rdi, 0x20(%rsp)
movq (%rsi), %rax
cmpq $0x0, (%rax)
je 0xda842
movq %r9, %r14
movq %r8, %r15
movq %rcx, %r12
movq %rsi, %r13
movzbl 0x70(%rsp), %ecx
movq %rcx, 0x28(%rsp)
xorl %ebx, %ebx
xorl %ebp, %ebp
movq $0x0, 0x8(%rsp)
movq %r8, 0x18(%rsp)
movq %r12, 0x10(%rsp)
movq 0x10(%rax), %rdi
cmpl $0x0, 0x10(%rdi,%rbx)
je 0xda82c
cmpl $0x0, 0xc(%rdi,%rbx)
je 0xda82c
movq 0x18(%rax), %rax
movq 0x20(%rax), %rax
cmpl $0x0, (%rax,%rbp,8)
js 0xda82c
addq %rbx, %rdi
movq 0x8(%r13), %rsi
movq 0x30(%rsp), %rdx
movq %r12, %rcx
movq %r15, %r8
movq %r14, %r9
callq 0xcffc4
testb %al, %al
jne 0xda82c
movq (%r13), %rax
movq 0x10(%rax), %rsi
addq %rbx, %rsi
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rdx
callq 0xda2d6
cmpq $-0x80000000, %rax      # imm = 0x80000000
je 0xda82c
movq %r14, %r12
movq %r13, %r15
movq %rbp, %r14
cmpq $-0x1, %rax
je 0xda7fc
movq 0x20(%rsp), %r15
movq %rax, %r14
testq %rax, %rax
js 0xda81f
movq (%r15), %rdi
movq %r14, %rsi
callq 0xda616
movq (%r15), %rax
movq 0x10(%rax), %rax
leaq (%r14,%r14,4), %rcx
movl (%rax,%rcx,8), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
addq %rax, 0x8(%rsp)
movq %r12, %r14
movq 0x18(%rsp), %r15
movq 0x10(%rsp), %r12
incq %rbp
movq (%r13), %rax
addq $0x28, %rbx
cmpq (%rax), %rbp
jb 0xda774
jmp 0xda84b
movq $0x0, 0x8(%rsp)
movq 0x8(%rsp), %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Overlaps.cpp
// Function: push_ma_utg_t(ma_ug_t*, ma_utg_t*)
void push_ma_utg_t(ma_ug_t *ug, ma_utg_t *u)
{
    ma_utg_t *p; 
    ///graph
    asg_seq_set(ug->g, ug->u.n, u->len, 0); ug->g->seq[ug->u.n].c = 0;

    //unitig
    kv_pushp(ma_utg_t, ug->u, &p); memset(p, 0, sizeof((*p)));
    *p = *u; p->a = NULL; p->s = NULL;
    MALLOC(p->a, p->m); memcpy(p->a, u->a, sizeof((*(p->a)))*p->m);
    if(u->s) {
        MALLOC(p->s, p->len); memcpy(p->s, u->s, sizeof((*(p->s)))*p->len);
    }
    assert(ug->g->n_seq == ug->u.n);
    if(p->n) {
        p->circ = 0; p->start = (p->a[0]>>32); p->end = (p->a[p->n-1]>>32)^1;
    }    
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x18(%rdi), %rdi
movl (%rbx), %esi
movl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
andl (%r14), %edx
xorl %ecx, %ecx
callq 0xa0887
movq (%rbx), %rcx
movq 0x18(%rbx), %rax
movq 0x20(%rax), %rax
movb $0x0, 0x4(%rax,%rcx,8)
cmpq 0x8(%rbx), %rcx
jne 0xda8c9
leaq (%rcx,%rcx), %rax
testq %rcx, %rcx
movl $0x2, %ecx
cmovneq %rax, %rcx
movq %rcx, 0x8(%rbx)
movq 0x10(%rbx), %rdi
shlq $0x3, %rcx
leaq (%rcx,%rcx,4), %rsi
callq 0x2370
movq %rax, 0x10(%rbx)
movq (%rbx), %rcx
jmp 0xda8cd
movq 0x10(%rbx), %rax
leaq 0x1(%rcx), %rdx
movq %rdx, (%rbx)
leaq (%rcx,%rcx,4), %rcx
leaq (%rax,%rcx,8), %r13
xorl %ebp, %ebp
movq %rbp, 0x20(%r13)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r13)
movups %xmm0, (%r13)
movups (%r14), %xmm0
movups %xmm0, (%r13)
movq 0x10(%r14), %rax
movq %rax, 0x10(%r13)
movq %rbp, 0x20(%r13)
movl 0xc(%r13), %r12d
shlq $0x3, %r12
movq %r12, %rdi
callq 0x2280
movq %rax, %r15
movq %rax, 0x18(%r13)
movq 0x18(%r14), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0x2160
cmpq %rbp, 0x20(%r14)
je 0xda956
movl (%r13), %r12d
andl $0x7fffffff, %r12d      # imm = 0x7FFFFFFF
movq %r12, %rdi
callq 0x2280
movq %rax, 0x20(%r13)
movq 0x20(%r14), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0x2160
movq 0x18(%rbx), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cmpq %rax, (%rbx)
jne 0xda999
movl 0x10(%r13), %eax
testl %eax, %eax
je 0xda98a
andb $0x7f, 0x3(%r13)
movl 0x4(%r15), %ecx
movl %ecx, 0x4(%r13)
decl %eax
movl 0x4(%r15,%rax,8), %eax
xorl $0x1, %eax
movl %eax, 0x8(%r13)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x15cebc(%rip), %rdi    # 0x23785c
leaq 0x15b4ea(%rip), %rsi    # 0x235e91
leaq 0x15cec6(%rip), %rcx    # 0x237874
movl $0x5404, %edx           # imm = 0x5404
callq 0x2110
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Overlaps.cpp
// Function: update_ctg_trans_cc(kv_u_trans_t*)
void update_ctg_trans_cc(kv_u_trans_t *os)
{
    uint64_t k, m; u_trans_t *z;
    kt_for(asm_opt.thread_num, worker_for_ctg_trans_cc, os, os->idx.n);
    for (k = m = 0; k < os->n; k++) {
        if(!(os->a[k].del)) os->a[m++] = os->a[k];
    }
    os->n = m;
    for (k = 0; k < m; k++) {
        kv_pushp(u_trans_t, *os, &z);
        *z = os->a[k];
        z->qn = os->a[k].tn; z->qs = os->a[k].ts; z->qe = os->a[k].te; 
        z->tn = os->a[k].qn; z->ts = os->a[k].qs; z->te = os->a[k].qe; 
    }
    kt_u_trans_t_idx(os, os->idx.n);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x1b9e39(%rip), %rax    # 0x295758
movl 0x7c(%rax), %edi
movq 0x18(%rbx), %rcx
leaq 0x121(%rip), %rsi       # 0xdba4e
movq %rbx, %rdx
callq 0x108f2c
movq (%rbx), %rdx
testq %rdx, %rdx
je 0xdba38
xorl %eax, %eax
xorl %ecx, %ecx
xorl %r14d, %r14d
movq 0x10(%rbx), %rsi
cmpb $0x0, 0x28(%rsi,%rax)
js 0xdb97e
leaq (%rsi,%rax), %rdx
leaq (%r14,%r14,2), %rdi
incq %r14
shlq $0x4, %rdi
movups (%rdx), %xmm0
movups 0x10(%rdx), %xmm1
movups 0x20(%rdx), %xmm2
movups %xmm2, 0x20(%rsi,%rdi)
movups %xmm1, 0x10(%rsi,%rdi)
movups %xmm0, (%rsi,%rdi)
movq (%rbx), %rdx
incq %rcx
addq $0x30, %rax
cmpq %rdx, %rcx
jb 0xdb948
movq %r14, (%rbx)
testq %r14, %r14
je 0xdba38
movq 0x10(%rbx), %rax
xorl %r15d, %r15d
movl $0x2, %r12d
movq (%rbx), %rcx
cmpq 0x8(%rbx), %rcx
jne 0xdb9d2
leaq (%rcx,%rcx), %rdx
testq %rcx, %rcx
cmoveq %r12, %rdx
movq %rdx, 0x8(%rbx)
shlq $0x4, %rdx
leaq (%rdx,%rdx,2), %rsi
movq %rax, %rdi
callq 0x2370
movq %rax, 0x10(%rbx)
movq (%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, (%rbx)
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
movups (%rax,%r15), %xmm0
movups 0x10(%rax,%r15), %xmm1
movups 0x20(%rax,%r15), %xmm2
movups %xmm2, 0x20(%rax,%rcx)
movups %xmm1, 0x10(%rax,%rcx)
movups %xmm0, (%rax,%rcx)
movq 0x10(%rbx), %rdx
movl 0x14(%rdx,%r15), %esi
movl %esi, 0x8(%rax,%rcx)
movq 0xc(%rdx,%r15), %rsi
movq %rsi, (%rax,%rcx)
movl 0x8(%rdx,%r15), %esi
movl %esi, 0x14(%rax,%rcx)
movq (%rdx,%r15), %rsi
movq %rsi, 0xc(%rax,%rcx)
addq $0x30, %r15
movq %rdx, %rax
decq %r14
jne 0xdb9a3
movl 0x18(%rbx), %esi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0xc4edd
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Overlaps.cpp
// Function: get_scaf_res_t(scaf_res_t*, unsigned int, unsigned int, unsigned int, unsigned int*, unsigned int*, unsigned int*, unsigned int*, uc_block_t**)
uint32_t get_scaf_res_t(scaf_res_t *pa, uint32_t uid, uint32_t s, uint32_t e, uint32_t *in, uint32_t *rs, uint32_t *re, uint32_t *rn, uc_block_t **ra)
{
    // fprintf(stderr, "s::%u, e::%u, uid::%u, pa->n::%u\n", s, e, uid, (uint32_t)pa->n);
    if(uid >= pa->n) return 0;
    ul_vec_t *idx = &(pa->a[uid]); uint32_t k, z, a_n, os, oe, z0; uc_block_t *a; 
    (*rs) = (*re) = (uint32_t)-1; (*rn) = 0; (*ra) = NULL;
    
    for (k = (*in); k < idx->bb.n; k++) {
        a = idx->bb.a + idx->bb.a[k].ts; a_n = idx->bb.a[k].te - idx->bb.a[k].ts;
        os = MAX(s, idx->bb.a[k].qs); 
        oe = MIN(e, idx->bb.a[k].qe);
        // fprintf(stderr, "k::%u, os::%u, oe::%u, a_n::%u\n", k, os, oe, a_n);
        if(os >= oe) continue;
        for(z = 0; z < a_n && a[z].qe <= os; z++);
        if(z >= a_n) continue;
        for(z0 = z; z < a_n && a[z].qs < oe; z++);
        if(z <= z0 ) continue;
        *rs = os; *re = oe; *rn = z - z0; *ra = a + z0; (*in) = k + 1;
        return 1;
    }
    return 0;
}

// Assembly:
movl %esi, %esi
xorl %eax, %eax
cmpq %rsi, 0x8(%rdi)
jbe 0xdbda3
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq 0x48(%rsp), %r11
movq 0x40(%rsp), %rbx
movq 0x38(%rsp), %r14
movq (%rdi), %r10
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movl %edi, (%r14)
movl %edi, (%r9)
movl $0x0, (%rbx)
movq $0x0, (%r11)
movl (%r8), %edi
imulq $0x58, %rsi, %rsi
movq 0x20(%r10,%rsi), %rbx
cmpq %rdi, %rbx
jbe 0xdbd99
movq %r9, -0x10(%rsp)
movq %r8, -0x8(%rsp)
leaq (%r10,%rsi), %rax
addq $0x20, %rax
movq 0x10(%rax), %rax
leaq 0x8(%rax), %r9
leaq 0x4(%rax), %r15
leaq (%rdi,%rdi,8), %r8
movl 0xc(%rax,%r8,4), %esi
movl 0x10(%rax,%r8,4), %ebp
movl 0x4(%rax,%r8,4), %r12d
movl 0x8(%rax,%r8,4), %r13d
cmpl %edx, %r12d
cmovbel %edx, %r12d
cmpl %ecx, %r13d
cmovael %ecx, %r13d
cmpl %r13d, %r12d
setb %r8b
subl %esi, %ebp
setne %r10b
andb %r8b, %r10b
cmpb $0x1, %r10b
jne 0xdbd8c
movl %esi, %r8d
leaq (%r8,%r8,8), %rsi
leaq (%rax,%rsi,4), %rsi
movl %ebp, %r11d
shlq $0x2, %r8
leaq (%r8,%r8,8), %r14
leaq (%r9,%r14), %r8
addq %r15, %r14
xorl %r10d, %r10d
cmpl %r12d, (%r8)
ja 0xdbd69
incq %r10
addq $0x24, %r8
addq $0x24, %r14
cmpq %r10, %r11
jne 0xdbd52
jmp 0xdbd8c
movq %r10, %r8
cmpl %r10d, %ebp
jbe 0xdbd8c
cmpl %r13d, (%r14)
jae 0xdbd84
incq %r8
addq $0x24, %r14
cmpq %r11, %r8
jb 0xdbd71
jmp 0xdbd87
movl %r8d, %ebp
cmpl %r10d, %ebp
ja 0xdbda4
incl %edi
cmpq %rdi, %rbx
ja 0xdbcf6
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq -0x10(%rsp), %rax
movl %r12d, (%rax)
movq 0x38(%rsp), %rax
movl %r13d, (%rax)
subl %r10d, %ebp
movq 0x40(%rsp), %rax
movl %ebp, (%rax)
movl %r10d, %eax
leaq (%rax,%rax,8), %rax
leaq (%rsi,%rax,4), %rax
movq 0x48(%rsp), %rcx
movq %rax, (%rcx)
incl %edi
movq -0x8(%rsp), %rax
movl %edi, (%rax)
movl $0x1, %eax
jmp 0xdbd99
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Overlaps.cpp
// Function: is_noisy_ov(unsigned long, unsigned long, unsigned long, unsigned long, double, u_trans_t*, unsigned long)
uint64_t is_noisy_ov(uint64_t s, uint64_t e, uint64_t len, uint64_t bd, double cov_rate, u_trans_t *a, uint64_t a_n)
{
    uint64_t w, k, zs, ze, oz, tot;
    if(e - s < (bd<<1)) {
        w = (e + s)>>1;
        s = ((w>=bd)?(w-bd):(0)); 
        e = ((w+bd<=len)?(w+bd):(len));
    }
    if(s >= e) return 0;
    for(k = tot = 0; k < a_n; k++) {
        if(a[k].qs >= e) break;
        if(a[k].qe <= s) continue;
        zs = MAX(s, a[k].qs); ze = MIN(e, a[k].qe);
        oz = ((ze > zs)? (ze - zs):(0));
        tot += oz;
    }
    if((tot > 0) && (tot >= ((e - s)*cov_rate))) return 1;
    return 0;
}

// Assembly:
movq %rsi, %rax
subq %rdi, %rax
leaq (%rcx,%rcx), %r10
cmpq %r10, %rax
jae 0xdc2e4
addq %rdi, %rsi
shrq %rsi
xorl %edi, %edi
movq %rsi, %rax
subq %rcx, %rax
cmovaeq %rax, %rdi
addq %rcx, %rsi
cmpq %rdx, %rsi
cmovaeq %rdx, %rsi
movq %rsi, %rax
subq %rdi, %rax
jbe 0xdc38c
testq %r9, %r9
je 0xdc38c
addq $0x4, %r8
xorl %ecx, %ecx
movl -0x4(%r8), %edx
cmpq %rdx, %rsi
jbe 0xdc336
movl (%r8), %r10d
cmpq %r10, %rdi
jae 0xdc32d
cmpq %rdx, %rdi
cmovaq %rdi, %rdx
cmpq %r10, %rsi
cmovbq %rsi, %r10
subq %rdx, %r10
movl $0x0, %edx
cmovaeq %r10, %rdx
addq %rdx, %rcx
addq $0x30, %r8
decq %r9
jne 0xdc2ff
testq %rcx, %rcx
je 0xdc38c
movq %rcx, %xmm1
movq 0x154f38(%rip), %xmm2   # 0x231280
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x154f3c(%rip), %xmm3   # 0x231290
subpd %xmm3, %xmm1
movapd %xmm1, %xmm4
unpckhpd %xmm1, %xmm4            # xmm4 = xmm4[1],xmm1[1]
addsd %xmm1, %xmm4
movq %rax, %xmm1
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
subpd %xmm3, %xmm1
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
mulsd %xmm0, %xmm2
movl $0x1, %eax
ucomisd %xmm2, %xmm4
jae 0xdc38e
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Overlaps.cpp
// Function: dedup_tang_flank(unsigned int*, unsigned int*, unsigned int*, unsigned int*, unsigned int*, unsigned int*)
void dedup_tang_flank(uint32_t *va, uint32_t *vd, uint32_t *vn0, uint32_t *wa, uint32_t *wd, uint32_t *wn0)
{
    uint64_t k, z, vn = (*vn0), wn = (*wn0);
    uint32_t vp, wp;
    for (k = 0; k < vn && k < wn; k++) {
        if(k < vn) {
            vp = va[vn-k-1]>>1;
            for (z = k; (z < wn) && (vp != (wa[z]>>1)); z++);
            if(z < wn) wn = z;
        }
        if(k < wn) {
            wp = wa[k]>>1;
            for (z = k; (z < vn) && (wp != (va[vn-z-1]>>1)); z++);
            if(z < vn) vn = z;
        }
    }
    if(vn < (*vn0)) {
        z = (*vn0) - vn;
        for (k = 0; k < vn; k++) {
            va[k] = va[k + z]; vd[k] = vd[k + z];
        }
    }
    (*vn0) = vn; (*wn0) = wn;
}

// Assembly:
movl (%rdx), %r8d
testq %r8, %r8
setne %r10b
movl (%r9), %eax
testl %eax, %eax
setne %r11b
andb %r10b, %r11b
cmpb $0x1, %r11b
jne 0xdd061
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl %eax, %eax
leaq -0x4(%rdi), %r11
movl $0x1, %ebx
xorl %r14d, %r14d
movq %r8, %r10
movq %r14, %r15
notq %r15
leaq (%rdi,%r10,4), %r12
movl (%r12,%r15,4), %ebp
cmpq %rbx, %rax
movq %rbx, %r12
cmovaq %rax, %r12
movq %r14, %r15
movl (%rcx,%r15,4), %r13d
xorl %ebp, %r13d
cmpl $0x2, %r13d
jb 0xdcfca
incq %r15
cmpq %rax, %r15
jb 0xdcfb2
movq %r12, %r15
cmpq %rax, %r15
cmovbq %r15, %rax
cmpq %rax, %r14
jae 0xdd00c
movq %r14, %r15
cmpq %r10, %r14
jae 0xdd005
movl (%rcx,%r14,4), %ebp
leaq (%r11,%r10,4), %r12
movq %r14, %r15
movl (%r12), %r13d
xorl %ebp, %r13d
cmpl $0x2, %r13d
jb 0xdd005
incq %r15
addq $-0x4, %r12
cmpq %r10, %r15
jb 0xdcfe9
movq %r10, %r15
cmpq %r10, %r15
cmovbq %r15, %r10
incq %r14
cmpq %r10, %r14
jae 0xdd024
incq %rbx
addq $-0x4, %r11
cmpq %rax, %r14
jb 0xdcf97
cmpq %r8, %r10
jae 0xdd069
testq %r10, %r10
je 0xdd066
shlq $0x2, %r8
leaq (,%r10,4), %rcx
subq %rcx, %r8
leaq (%rsi,%r8), %rcx
addq %rdi, %r8
xorl %r11d, %r11d
movl (%r8,%r11,4), %ebx
movl %ebx, (%rdi,%r11,4)
movl (%rcx,%r11,4), %ebx
movl %ebx, (%rsi,%r11,4)
incq %r11
cmpq %r11, %r10
jne 0xdd047
jmp 0xdd069
movq %r8, %r10
jmp 0xdd073
xorl %r10d, %r10d
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
movl %r10d, (%rdx)
movl %eax, (%r9)
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Overlaps.cpp
// Function: cal_arr_N50(unsigned int*, unsigned int, char const*)
void cal_arr_N50(uint32_t *a, uint32_t n, const char *cmd)
{
    uint64_t i, s, len;
    for (i = len = 0; i < n; i++) len += a[i];
    radix_sort_arch32(a, a + n);

    i = n; s = 0;
    while (i > 0) {
        s += a[--i];
        if(s >= (len>>1)) {
            fprintf(stderr, "CMD::%s[M::%s::] N50: %u, Size::%lu\n", cmd, __func__, a[i], len);
            break;
        }
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, %r15
movl %esi, %r12d
xorl %r14d, %r14d
testl %esi, %esi
je 0xde662
xorl %eax, %eax
movl (%r15,%rax,4), %ecx
addq %rcx, %r14
incq %rax
cmpq %rax, %r12
jne 0xde653
leaq (%r15,%r12,4), %rsi
movq %r15, %rdi
callq 0x9decc
movq %r14, %rax
shrq %rax
xorl %ecx, %ecx
subq $0x1, %r12
jb 0xde6b8
movl (%r15,%r12,4), %r8d
addq %r8, %rcx
cmpq %rax, %rcx
jb 0xde676
movq 0x1b6951(%rip), %rax    # 0x294fe0
movq (%rax), %rdi
leaq 0x1594d0(%rip), %rsi    # 0x237b69
leaq 0x1594ee(%rip), %rcx    # 0x237b8e
movq %rbx, %rdx
movq %r14, %r9
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x22b0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Overlaps.cpp
// Function: set_fsk(unsigned char*, unsigned char, ul_vec_t*)
void set_fsk(uint8_t *fsk, uint8_t mm, ul_vec_t *idx)
{
    uint64_t k, m, a_n; uc_block_t *a; 
    for (k = 0; k < idx->bb.n; k++) {
        a = idx->bb.a + idx->bb.a[k].ts; a_n = idx->bb.a[k].te - idx->bb.a[k].ts;
        for(m = 0; m < a_n; m++) fsk[a[m].hid] = mm;
    }
}

// Assembly:
movq 0x20(%rdx), %rcx
testq %rcx, %rcx
je 0xde71e
xorl %eax, %eax
movq 0x30(%rdx), %r9
leaq (%rax,%rax,8), %r8
movl 0xc(%r9,%r8,4), %r10d
movl 0x10(%r9,%r8,4), %r8d
subl %r10d, %r8d
je 0xde716
leaq (%r10,%r10,8), %rcx
cmpl $0x1, %r8d
adcl $0x0, %r8d
leaq (%r9,%rcx,4), %rcx
shlq $0x2, %r8
leaq (%r8,%r8,8), %r8
xorl %r9d, %r9d
movl (%rcx,%r9), %r10d
movb %sil, (%rdi,%r10)
addq $0x24, %r9
cmpq %r9, %r8
jne 0xde701
movq 0x20(%rdx), %rcx
incq %rax
cmpq %rcx, %rax
jb 0xde6cf
retq