LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: gen_srt_cov_interval(unsigned long*, unsigned long)
uint64_t gen_srt_cov_interval(uint64_t *b, uint64_t b_n)
{
    uint64_t i, m, start, end; int64_t dp, old_dp;
    radix_sort_srt64(b, b + b_n);
    for (i = m = 0, dp = 0, start = 0; i < b_n; ++i) {
        old_dp = dp;
        if (b[i]&1) --dp;
        else ++dp;

        if (old_dp < 1 && dp >= 1) {///old_dp < dp, b.a[j] is qs
            start = b[i]>>1;
        } else if (old_dp >= 1 && dp < 1){
            end = b[i]>>1;
            b[m] = start; b[m] <<= 32; b[m] += end; m++;
        } 
    }

    return m;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq (%rdi,%rsi,8), %rsi
callq 0x1ee586
testq %rbx, %rbx
je 0x20bfe8
xorl %ecx, %ecx
xorl %edx, %edx
xorl %eax, %eax
xorl %esi, %esi
movq %rdx, %r8
movq (%r14,%rcx,8), %rdi
movl %edi, %edx
andl $0x1, %edx
negq %rdx
orq $0x1, %rdx
addq %r8, %rdx
testq %r8, %r8
setle %r9b
testq %rdx, %rdx
setg %r10b
andb %r9b, %r10b
cmpb $0x1, %r10b
jne 0x20bfb3
shrq %rdi
movq %rdi, %rsi
jmp 0x20bfde
testq %r8, %r8
setg %r8b
testq %rdx, %rdx
setle %r9b
andb %r8b, %r9b
cmpb $0x1, %r9b
jne 0x20bfde
shrq %rdi
movq %rsi, %r8
shlq $0x20, %r8
addq %rdi, %r8
movq %r8, (%r14,%rax,8)
incq %rax
incq %rcx
cmpq %rcx, %rbx
jne 0x20bf7e
jmp 0x20bfea
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: is_het_ulg_edge(ul_resolve_t*, unsigned int, unsigned int)
uint32_t is_het_ulg_edge(ul_resolve_t *uidx, uint32_t uv, uint32_t uw)
{
    ma_ug_t *iug = uidx->uovl.i_ug; bubble_type *bub = uidx->bub; uint32_t qid, tid;
    qid = iug->u.a[uv>>1].a[((uv&1)?(0):(iug->u.a[uv>>1].n-1))]>>33;
    tid = iug->u.a[uw>>1].a[((uw&1)?(iug->u.a[uw>>1].n-1):(0))]>>33;

    if(!ulg_type(uidx->uovl, qid)) return (!IF_HOM(ulg_id(uidx->uovl, qid), *bub));
    if(!ulg_type(uidx->uovl, tid)) return (!IF_HOM(ulg_id(uidx->uovl, tid), *bub));

    if(uidx->uovl.item_idx[qid] == (uint32_t)-1) return (uint32_t)-1;
    ul2ul_item_t *o = &(uidx->uovl.a[uidx->uovl.item_idx[qid]]); 
    ul2ul_t *z; uint64_t k, n_hom, n_het; ul_str_t *str;
    for (k = 0, z = NULL; k < o->cn; k++) {
        if(o->a[k].hid != tid) continue;
        z = &(o->a[k]);
        break;
    }
    if(!z) return (uint32_t)-1;
    str = &(uidx->pstr.str.a[ulg_id(uidx->uovl, qid)]);

    for (k = z->qs_k, n_hom = n_het = 0; k < z->qe_k; k++) {
        if(IF_HOM((((uint32_t)str->a[k])>>1), *bub)) {
            n_hom++;
        } else {
            n_het++; break;
        }
    }
    
    if(n_het) return 1;
    if(n_hom) return 0;
    return (uint32_t)-1;
}

// Assembly:
movq 0x230(%rdi), %rax
movq 0x10(%rax), %rax
movl %esi, %ecx
shrl %ecx
leaq (%rcx,%rcx,4), %r8
movq 0x18(%rax,%r8,8), %rcx
testb $0x1, %sil
jne 0x20c8fd
leaq (%rax,%r8,8), %rsi
movl 0x10(%rsi), %esi
decl %esi
jmp 0x20c8ff
xorl %esi, %esi
movq (%rcx,%rsi,8), %rcx
shrq $0x21, %rcx
movl %edx, %esi
shrl %esi
leaq (%rsi,%rsi,4), %rsi
testb $0x1, %dl
jne 0x20c919
xorl %r9d, %r9d
jmp 0x20c924
leaq (%rax,%rsi,8), %rdx
movl 0x10(%rdx), %r9d
decl %r9d
movq 0x28(%rdi), %rdx
movq 0x208(%rdi), %r8
cmpq %r8, %rcx
jae 0x20c9a3
movq 0x18(%rax,%rsi,8), %rax
movq (%rax,%r9,8), %rsi
shrq $0x21, %rsi
cmpq %r8, %rsi
jae 0x20c9a0
movq 0x220(%rdi), %rax
movl (%rax,%rcx,4), %r8d
movl $0xffffffff, %r9d       # imm = 0xFFFFFFFF
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %r9, %r8
je 0x20ca02
movq 0x1f0(%rdi), %r9
shlq $0x5, %r8
movl 0x1c(%r9,%r8), %r10d
testq %r10, %r10
je 0x20ca02
addq %r8, %r9
movq (%r9), %r8
shlq $0x3, %r10
leaq (%r10,%r10,4), %r10
xorl %r9d, %r9d
cmpl %esi, (%r8,%r9)
je 0x20c9bf
addq $0x28, %r9
cmpq %r9, %r10
jne 0x20c98f
jmp 0x20ca02
movq %rsi, %rcx
subq %r8, %rcx
movq (%rdx), %rax
movq 0x80(%rdx), %rdx
movl (%rax,%rcx,4), %ecx
incq %rdx
xorl %eax, %eax
cmpq %rcx, %rdx
setae %al
retq
movl 0x14(%r8,%r9), %esi
movl 0x18(%r8,%r9), %r8d
cmpl %r8d, %esi
jae 0x20ca02
movq 0x1d0(%rdi), %rax
movq (%rdx), %rdi
movq 0x80(%rdx), %rdx
shlq $0x5, %rcx
movq 0x10(%rax,%rcx), %rcx
incq %rdx
movl (%rcx,%rsi,8), %eax
shrl %eax
movl (%rdi,%rax,4), %eax
cmpq %rax, %rdx
jae 0x20ca03
incq %rsi
xorl %eax, %eax
cmpq %rsi, %r8
jne 0x20c9eb
retq
movl $0x1, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: is_ul_edge(ul_resolve_t*, unsigned int, unsigned int)
uint32_t is_ul_edge(ul_resolve_t *uidx, uint32_t uv, uint32_t uw)
{
    ma_ug_t *iug = uidx->uovl.i_ug; uint32_t qid, tid;
    qid = iug->u.a[uv>>1].a[((uv&1)?(0):(iug->u.a[uv>>1].n-1))]>>33;
    tid = iug->u.a[uw>>1].a[((uw&1)?(iug->u.a[uw>>1].n-1):(0))]>>33;
    if((qid != tid) && (!ulg_type(uidx->uovl, qid)) && (!ulg_type(uidx->uovl, tid))) return 0;
    return 1;
}

// Assembly:
movq 0x230(%rdi), %rax
movq 0x10(%rax), %rax
movl %esi, %ecx
shrl %ecx
leaq (%rcx,%rcx,4), %r8
movq 0x18(%rax,%r8,8), %rcx
testb $0x1, %sil
jne 0x20d2eb
leaq (%rax,%r8,8), %rsi
movl 0x10(%rsi), %esi
decl %esi
jmp 0x20d2ed
xorl %esi, %esi
movq (%rcx,%rsi,8), %rcx
shrq $0x21, %rcx
movl %edx, %esi
shrl %esi
leaq (%rsi,%rsi,4), %r8
movq 0x18(%rax,%r8,8), %rsi
testb $0x1, %dl
jne 0x20d30b
xorl %eax, %eax
jmp 0x20d314
leaq (%rax,%r8,8), %rax
movl 0x10(%rax), %eax
decl %eax
movq (%rsi,%rax,8), %rdx
shrq $0x21, %rdx
cmpl %edx, %ecx
jne 0x20d326
movl $0x1, %eax
retq
movq 0x208(%rdi), %rsi
cmpq %rsi, %rcx
jb 0x20d320
xorl %eax, %eax
cmpq %rsi, %rdx
jb 0x20d320
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: get_ul_spec_ovlp(ul2ul_idx_t*, unsigned long, unsigned long)
ul2ul_t* get_ul_spec_ovlp(ul2ul_idx_t *z, uint64_t qid, uint64_t tid)
{
    // uint64_t x = (is_qul?(qid):(qid+z->uln));
    if(z->item_idx[qid] == (uint32_t)-1) return NULL;
    ul2ul_item_t *o = &(z->a[z->item_idx[qid]]); uint64_t k;
    for (k = 0; k < o->cn; k++) {
        if(o->a[k].hid != tid) continue;
        return &(o->a[k]);
    }
    return NULL;
}

// Assembly:
movq 0x30(%rdi), %rax
movl (%rax,%rsi,4), %eax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpq %rcx, %rax
je 0x20e46a
movq (%rdi), %rsi
shlq $0x5, %rax
movl 0x1c(%rsi,%rax), %ecx
testq %rcx, %rcx
je 0x20e46a
addq %rax, %rsi
movq (%rsi), %rax
movl (%rax), %esi
cmpq %rdx, %rsi
je 0x20e46c
addq $0x28, %rax
decq %rcx
jne 0x20e45a
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: is_het_bridge(ul_resolve_t*, unsigned long*, long, long)
uint32_t is_het_bridge(ul_resolve_t *uidx, uint64_t *p_a, int64_t p_n, int64_t match_bound)
{
    bubble_type *bub = uidx->bub; int64_t z;
    for (z = match_bound; z >= 0 && IF_HOM((p_a[z]>>1), *bub); z--) {
        // if(is_debug){
        //     fprintf(stderr, "+[M::%s::] match_bound::%ld, p_n::%ld, (p_a[%ld]>>1)::%lu, IF_HOM::%u\n", 
        //     __func__, match_bound, p_n, z, (p_a[z]>>1), IF_HOM((p_a[z]>>1), *bub));
        // }
    } 
    if(z < 0) return 0;
    for (z = match_bound + 1; z < p_n && IF_HOM((p_a[z]>>1), *bub); z++) {
        // if(is_debug){
        //     fprintf(stderr, "-[M::%s::] match_bound::%ld, p_n::%ld, (p_a[%ld]>>1)::%lu, IF_HOM::%u\n", 
        //     __func__, match_bound, p_n, z, (p_a[z]>>1), IF_HOM((p_a[z]>>1), *bub));
        // }
    }
    // if(is_debug) {
    //     fprintf(stderr, "*[M::%s::] z::%ld, p_n::%ld\n", __func__, z, p_n);
    // }
    if(z >= p_n) return 0;
    return 1;
}

// Assembly:
xorl %eax, %eax
testq %rcx, %rcx
js 0x20fdf1
movq 0x28(%rdi), %r8
movq (%r8), %rdi
movq 0x80(%r8), %r8
incq %r8
leaq 0x1(%rcx), %r9
movq -0x8(%rsi,%r9,8), %r10
andq $-0x2, %r10
movl (%rdi,%r10,2), %r10d
cmpq %r10, %r8
jae 0x20fdf2
decq %r9
testq %r9, %r9
jg 0x20fdd7
retq
incq %rcx
movq %rcx, %r9
cmpq %rdx, %rcx
jge 0x20fe11
movq (%rsi,%r9,8), %rax
andq $-0x2, %rax
movl (%rdi,%rax,2), %eax
leaq 0x1(%r9), %rcx
cmpq %rax, %r8
jb 0x20fdf5
xorl %eax, %eax
cmpq %rdx, %r9
setl %al
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: check_ulg_to_del(ul_resolve_t*, ma_ug_t*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, asg64_v*, asg64_v*)
uint32_t check_ulg_to_del(ul_resolve_t *uidx, ma_ug_t *ug, uint32_t v, uint32_t w, uint32_t kv, uint32_t kw, 
uint32_t max_ext, uint32_t max_ext_hifi, uint32_t topo_level, uint32_t collapse, asg64_v *b, asg64_v *ub)
{
    uint32_t to_del = 0;
    if(collapse) topo_level = 3; 
    if(topo_level == 0) {
        to_del = 1;
    } else if(topo_level == 2) {
        if (kv > 1 && kw > 1) to_del = 1;
    } else {
        if (kv > 1 && kw > 1) {
            to_del = 1;
        } else if (kw == 1) {
            if (usg_topocut_aux(uidx, ug, w^1, max_ext, max_ext_hifi, b, ub)) to_del = 1;                    
        } else if (kv == 1) {
            if (usg_topocut_aux(uidx, ug, v^1, max_ext, max_ext_hifi, b, ub)) to_del = 1;   
        }
    }

    return to_del;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
cmpl $0x0, 0x38(%rsp)
movl $0x3, %r10d
jne 0x210827
movl 0x30(%rsp), %r10d
movl $0x1, %eax
testl %r10d, %r10d
je 0x2108a1
cmpl $0x2, %r10d
jne 0x21084c
cmpl $0x2, %r8d
setae %al
cmpl $0x2, %r9d
setae %cl
andb %al, %cl
movzbl %cl, %eax
jmp 0x2108a1
cmpl $0x2, %r8d
setae %r10b
cmpl $0x2, %r9d
setae %r11b
testb %r11b, %r10b
jne 0x2108a1
movq 0x48(%rsp), %r14
movq 0x40(%rsp), %r11
movl 0x28(%rsp), %r10d
movl 0x20(%rsp), %ebx
cmpl $0x1, %r9d
jne 0x210885
xorl $0x1, %ecx
movq %r14, (%rsp)
movl %ecx, %edx
jmp 0x210894
xorl %eax, %eax
cmpl $0x1, %r8d
jne 0x2108a1
xorl $0x1, %edx
movq %r14, (%rsp)
movl %ebx, %ecx
movl %r10d, %r8d
movq %r11, %r9
callq 0x20ca09
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: worker_update_ul_arc_supports(void*, long, int)
static void worker_update_ul_arc_supports(void *data, long i, int tid) // callback for kt_for()
{
    ul_resolve_t *uidx = (ul_resolve_t *)data; integer_t *buf = &(uidx->str_b.buf[tid]);
    uint64_t *x = &(uidx->uovl.iug_tra->a[i]); asg_arc_t *ve = &(uidx->uovl.i_ug->g->arc[*x]);
    asg64_v b_v, b_r; uint64_t w_v, w_r;
    b_v.a = buf->u.a; b_v.n = buf->u.n; b_v.m = buf->u.m; 
    b_r.a = buf->o.a; b_r.n = buf->o.n; b_r.m = buf->o.m; 

    b_v.n = b_r.n = 0;
    get_ul_arc_supports(uidx, ve, &b_v, &b_r, 1, &w_v, &w_r);

    buf->u.a = b_v.a; buf->u.n = b_v.n; buf->u.m = b_v.m; 
    buf->o.a = b_r.a; buf->o.n = b_r.n; buf->o.m = b_r.m; 

    (*x) |= (w_v<<32);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %rbx
movslq %edx, %rax
imulq $0x328, %rax, %rbp      # imm = 0x328
movq 0x290(%rdi), %rax
movq 0x10(%rax), %r13
movq 0x1d8(%rdi), %r12
movq 0x230(%rdi), %rax
movq 0x18(%rax), %rax
movq (%r13,%rsi,8), %rcx
leaq (%rcx,%rcx,2), %rsi
shlq $0x3, %rsi
addq 0x8(%rax), %rsi
movq 0xa0(%r12,%rbp), %rax
leaq 0x40(%rsp), %r14
movq %rax, 0x10(%r14)
movq 0x98(%r12,%rbp), %rax
movq %rax, 0x8(%r14)
movq 0x88(%r12,%rbp), %rax
leaq 0x20(%rsp), %r15
movq %rax, 0x10(%r15)
movq 0x80(%r12,%rbp), %rax
movq %rax, 0x8(%r15)
xorl %eax, %eax
movq %rax, (%r15)
movq %rax, (%r14)
leaq 0x18(%rsp), %rax
movq %rax, (%rsp)
leaq 0x10(%rsp), %r9
movl $0x1, %r8d
movq %r14, %rdx
movq %r15, %rcx
callq 0x20fe1a
movq 0x10(%r14), %rax
movq %rax, 0xa0(%r12,%rbp)
movaps (%r14), %xmm0
movups %xmm0, 0x90(%r12,%rbp)
movq 0x10(%r15), %rax
movq %rax, 0x88(%r12,%rbp)
movaps (%r15), %xmm0
movups %xmm0, 0x78(%r12,%rbp)
leaq 0x10(%rsp), %rax
movq (%rax), %rax
shlq $0x20, %rax
orq %rax, (%r13,%rbx,8)
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: ulg_bub_pop_cut_aux(ul_resolve_t*, ma_ug_t*, unsigned int, buf_t*, unsigned int, unsigned int, asg64_v*, asg64_v*)
uint64_t ulg_bub_pop_cut_aux(ul_resolve_t *uidx, ma_ug_t *ug, uint32_t v0, buf_t *x, uint32_t max_ext, uint32_t max_ext_hifi, asg64_v *b, asg64_v *ub)
{
    uint32_t i, v, u, bn = b->n, n_ext, ul_occ, r = 0; binfo_t *t;
    v = x->S.a[0]; 
    do {
		u = x->a[v].p; // u->v
        x->a[v].d = (uint32_t)-1;
		v = u;
	} while (v != v0);

    for (i = n_ext = 0; i < x->b.n; ++i) { // clear the states of visited vertices
		t = &x->a[x->b.a[i]];
        if(t->d == (uint32_t)-1) continue;
        get_iug_u_raw_occ(uidx, x->b.a[i]>>1, &ul_occ, NULL); 
        n_ext += ul_occ; kv_push(uint64_t, *b, x->b.a[i]);
	}

    if(n_ext <= max_ext) {
        if(get_remove_hifi_occ(uidx, max_ext_hifi, b->a + bn, b->n - bn, ub, NULL)) r = 1;
    }
    b->n = bn;
    return r;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, %r10d
movq %rcx, %r12
movq %rdi, %r14
movq 0x58(%rsp), %r8
movq 0x50(%rsp), %r13
movl (%r13), %ebx
movq (%rcx), %rax
movq 0x18(%rcx), %rcx
movl (%rcx), %ecx
movl %ecx, %ecx
leaq (%rcx,%rcx,8), %rsi
leaq (%rsi,%rsi,2), %rsi
addq %rcx, %rsi
movl (%rax,%rsi), %ecx
movl $0xffffffff, 0x4(%rax,%rsi) # imm = 0xFFFFFFFF
cmpl %edx, %ecx
jne 0x21108d
movq 0x38(%r12), %rax
testq %rax, %rax
je 0x21116d
movl %r10d, 0x8(%rsp)
movl %r9d, 0xc(%rsp)
movq %rbx, 0x10(%rsp)
movq 0x48(%r12), %rcx
xorl %ebp, %ebp
movl $0x1, %r15d
xorl %ebx, %ebx
movq (%r12), %rsi
movl (%rcx,%rbp,4), %edx
leaq (%rdx,%rdx,8), %rdi
leaq (%rdi,%rdi,2), %rdi
addq %rdx, %rdi
cmpl $-0x1, 0x4(%rsi,%rdi)
je 0x211149
shrl %edx
movq 0x258(%r14), %rax
addl (%rax,%rdx,4), %ebx
movq (%r13), %rdx
movq 0x10(%r13), %rax
cmpq 0x8(%r13), %rdx
jne 0x211135
leaq (%rdx,%rdx), %rsi
testq %rdx, %rdx
movl $0x2, %ecx
cmoveq %rcx, %rsi
movq %rsi, 0x8(%r13)
shlq $0x3, %rsi
movq %rax, %rdi
callq 0x2370
movq %rax, 0x10(%r13)
movq 0x48(%r12), %rcx
movq (%r13), %rdx
movl (%rcx,%rbp,4), %esi
leaq 0x1(%rdx), %rdi
movq %rdi, (%r13)
movq %rsi, (%rax,%rdx,8)
movq 0x38(%r12), %rax
movl %r15d, %ebp
incl %r15d
cmpq %rbp, %rax
ja 0x2110d5
cmpl 0x8(%rsp), %ebx
movq 0x10(%rsp), %rbx
movq 0x58(%rsp), %r8
movl 0xc(%rsp), %r9d
jbe 0x21116d
xorl %eax, %eax
jmp 0x211199
movl %r9d, %esi
leaq (,%rbx,8), %rdx
addq 0x10(%r13), %rdx
movq (%r13), %rcx
subq %rbx, %rcx
movq %r14, %rdi
xorl %r9d, %r9d
callq 0x22c98c
movq %rax, %rcx
xorl %eax, %eax
testq %rcx, %rcx
setne %al
movq %rbx, (%r13)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: get_ug_integer_seq_occ(ul_resolve_t*, unsigned long*, unsigned long, asg64_v*)
uint64_t get_ug_integer_seq_occ(ul_resolve_t *uidx, uint64_t *u_a, uint64_t u_n, asg64_v *b)
{
    uint32_t bn = b->n, k, occ; ma_ug_t *raw = uidx->l1_ug;
    gen_ug_integer_seq_on_fly(uidx, u_a, u_n, b);
    for (k = bn, occ = 0; k < b->n; k++) occ += raw->u.a[b->a[k]>>1].n;
    b->n = bn;
    return occ;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rcx, %rbx
movl (%rcx), %r14d
movq 0x18(%rdi), %r15
callq 0x20e46d
movq (%rbx), %rcx
xorl %eax, %eax
cmpq %r14, %rcx
jbe 0x2122b2
movq 0x10(%r15), %rdx
movq 0x10(%rbx), %rsi
leal 0x1(%r14), %edi
movq %r14, %r8
movq (%rsi,%r8,8), %r8
shrq %r8
leaq (%r8,%r8,4), %r8
addl 0x10(%rdx,%r8,8), %eax
movl %edi, %r8d
incl %edi
cmpq %r8, %rcx
ja 0x212296
movl %eax, %eax
movq %r14, (%rbx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: ul_occ_check(ul_resolve_t*, ma_ug_t*, unsigned int, unsigned int, unsigned int, float, asg64_v*, asg64_v*)
uint32_t ul_occ_check(ul_resolve_t *uidx, ma_ug_t *ug, uint32_t qocc_ul, uint32_t qocc_hifi, uint32_t tv, float occ_rate, asg64_v *b, asg64_v *ub)
{
    uint32_t bn = b->n, z, tocc_ul, tocc_hifi, ul;
    get_ul_path_info(uidx, ug, tv, NULL, NULL, NULL, NULL, NULL, b);
    for (z = bn, tocc_ul = 0; z < b->n; z++) {
        get_iug_u_raw_occ(uidx, b->a[z]>>1, &ul, NULL); tocc_ul += ul;
    }
    tocc_hifi = get_ug_integer_seq_occ(uidx, b->a + bn, b->n - bn, ub);
    b->n = bn;
    if((qocc_ul <= (tocc_ul*occ_rate)) && (qocc_hifi <= (tocc_hifi*occ_rate))) return 1;
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, %r14
movss %xmm0, 0x24(%rsp)
movl %ecx, %ebx
movl %edx, %ebp
movq %rdi, %r12
movl (%r9), %r13d
movq %r9, 0x10(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, (%rsp)
xorl %r15d, %r15d
movl %r8d, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x20d67b
movq (%r14), %rcx
movq %rcx, %rdx
subq %r13, %rdx
jbe 0x212345
movq 0x10(%r14), %rax
movq 0x258(%r12), %rsi
leal 0x1(%r13), %edi
movabsq $0x1fffffffe, %r8       # imm = 0x1FFFFFFFE
movq %r13, %r9
movq (%rax,%r9,8), %r9
andq %r8, %r9
addl (%rsi,%r9,2), %r15d
movl %edi, %r9d
incl %edi
cmpq %r9, %rcx
ja 0x212323
movl %r15d, %ecx
xorps %xmm0, %xmm0
cvtsi2ss %rcx, %xmm0
jmp 0x21234c
movq 0x10(%r14), %rax
xorps %xmm0, %xmm0
movss %xmm0, 0x20(%rsp)
leaq (%rax,%r13,8), %rsi
movq %r12, %rdi
movq 0x60(%rsp), %rcx
callq 0x212269
movl %ebp, %ecx
xorps %xmm0, %xmm0
cvtsi2ss %rcx, %xmm0
movq %r13, (%r14)
movss 0x24(%rsp), %xmm2
movss 0x20(%rsp), %xmm1
mulss %xmm2, %xmm1
ucomiss %xmm0, %xmm1
jb 0x2123a5
movl %ebx, %ecx
xorps %xmm0, %xmm0
cvtsi2ss %rcx, %xmm0
xorps %xmm1, %xmm1
cvtsi2ss %rax, %xmm1
mulss %xmm2, %xmm1
movl $0x1, %eax
ucomiss %xmm0, %xmm1
jae 0x2123a7
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: push_usg_t_node(usg_t*, unsigned long)
usg_seq_t *push_usg_t_node(usg_t *ng, uint64_t id)
{
    if(id >= ng->m) {
        uint64_t m = ng->m;
        kv_resize(usg_seq_t, *ng, id + 1); 
        memset(ng->a + m, 0, (ng->m - m)*(sizeof((*ng->a))));
    }
    if(id >= ng->n) ng->n = id + 1;

    return ng->a + id;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq 0x10(%rdi), %r15
cmpq %rsi, %r15
ja 0x2136f5
leaq 0x1(%r14), %rcx
movq (%rbx), %rax
cmpq %rcx, %r15
jae 0x2136dd
movq %r14, %rcx
shrq %rcx
orq %r14, %rcx
movq %rcx, %rdx
shrq $0x2, %rdx
orq %rcx, %rdx
movq %rdx, %rcx
shrq $0x4, %rcx
orq %rdx, %rcx
movq %rcx, %rdx
shrq $0x8, %rdx
orq %rcx, %rdx
movq %rdx, %rcx
shrq $0x10, %rcx
orq %rdx, %rcx
incq %rcx
movq %rcx, 0x10(%rbx)
imulq $0x78, %rcx, %rsi
movq %rax, %rdi
callq 0x2370
movq %rax, (%rbx)
movq 0x10(%rbx), %rcx
jmp 0x2136e0
movq %r15, %rcx
imulq $0x78, %r15, %rdi
addq %rax, %rdi
subq %r15, %rcx
imulq $0x78, %rcx, %rdx
xorl %esi, %esi
callq 0x20e0
cmpq %r14, 0x8(%rbx)
ja 0x213703
leaq 0x1(%r14), %rax
movq %rax, 0x8(%rbx)
imulq $0x78, %r14, %rax
addq (%rbx), %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: usg_real_tip(usg_t*, unsigned int, double)
uint32_t usg_real_tip(usg_t *g, uint32_t v0, double rate)
{
    usg_arc_t *av, *aw; uint32_t nv, nw, i, k, ov, ow;
    av = usg_arc_a(g, v0); 
    nv = usg_arc_n(g, v0);
    for (i = 0; i < nv; i++) {
        if(av[i].del) continue;
        aw = usg_arc_a(g, (av[i].v^1)); 
        nw = usg_arc_n(g, (av[i].v^1)); 
        for (k = ov = ow = 0; k < nw; k++) {
            if(aw[k].del) continue;
            if((aw[k].v>>1) == (v0>>1)) {
                if(aw[k].ol > ov) ov = aw[k].ol;
            } else {
                if(aw[k].ol > ow) ow = aw[k].ol;
            }
        }
        if(ow == 0 || ov >= ow) return 0;
        if(ov > (ow*rate)) return 0;
    }
    return 1;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq (%rdi), %rcx
movl %esi, %edx
shrl %edx
andl $0x1, %esi
imulq $0x78, %rdx, %rax
addq %rcx, %rax
leaq (%rsi,%rsi,2), %rdi
movl 0x10(%rax,%rdi,8), %esi
testq %rsi, %rsi
je 0x213b5a
movq 0x20(%rax,%rdi,8), %rdi
xorl %r8d, %r8d
movq %r8, %rax
shlq $0x5, %rax
cmpl $0x0, 0xc(%rdi,%rax)
js 0x213b4e
addq %rdi, %rax
movl 0x8(%rax), %eax
movl %eax, %r10d
notl %r10d
shrl %eax
andl $0x1, %r10d
imulq $0x78, %rax, %r9
addq %rcx, %r9
leaq (%r10,%r10,2), %r10
movl 0x10(%r9,%r10,8), %eax
testq %rax, %rax
je 0x213b64
movq 0x20(%r9,%r10,8), %r11
shlq $0x5, %rax
xorl %ebx, %ebx
xorl %r9d, %r9d
xorl %r10d, %r10d
movl 0xc(%r11,%rbx), %ebp
testl %ebp, %ebp
js 0x213b1f
movl 0x8(%r11,%rbx), %r14d
shrl %r14d
cmpl %edx, %r14d
jne 0x213b18
cmpl %r10d, %ebp
cmoval %ebp, %r10d
jmp 0x213b1f
cmpl %r9d, %ebp
cmoval %ebp, %r9d
addq $0x20, %rbx
cmpq %rbx, %rax
jne 0x213af9
xorl %eax, %eax
testl %r9d, %r9d
je 0x213b5f
cmpl %r9d, %r10d
jae 0x213b5f
xorps %xmm1, %xmm1
cvtsi2sd %r10d, %xmm1
xorps %xmm2, %xmm2
cvtsi2sd %r9d, %xmm2
mulsd %xmm0, %xmm2
ucomisd %xmm2, %xmm1
ja 0x213b5f
incq %r8
cmpq %rsi, %r8
jne 0x213aaf
movl $0x1, %eax
popq %rbx
popq %r14
popq %rbp
retq
xorl %eax, %eax
jmp 0x213b5f
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: usg_seq_del(usg_t*, unsigned int)
static inline void usg_seq_del(usg_t *g, uint32_t s)
{
	uint32_t i, nv, v; usg_arc_t *av, *p;
	g->a[s].del = 1;
    // fprintf(stderr, "\n#[M::%s::] s::%u\n",  __func__, s);
    v = s<<1; av = usg_arc_a(g, v); nv = usg_arc_n(g, v);
    for (i = 0; i < nv; ++i) {
        av[i].del = 1;
        p = get_usg_arc(g, av[i].v^1, v^1); 
        // if(!p) {
        //     fprintf(stderr, "**+**[M::%s::] v>>1::%u, v&1::%u, av[i].v>>1::%u, av[i].v&1::%u\n", 
        //                                                 __func__, v>>1, v&1, av[i].v>>1, av[i].v&1);
        // }
        p->del = 1;
    }

	v = (s<<1)+1; av = usg_arc_a(g, v); nv = usg_arc_n(g, v);
    for (i = 0; i < nv; ++i) {
        av[i].del = 1;
        p = get_usg_arc(g, av[i].v^1, v^1); 
        // if(!p) {
        //     fprintf(stderr, "**-**[M::%s::] v>>1::%u, v&1::%u, av[i].v>>1::%u, av[i].v&1::%u\n", 
        //                                                 __func__, v>>1, v&1, av[i].v>>1, av[i].v&1);
        // }
        p->del = 1;
    }

    // g->a[s].arc[0].n = g->a[s].arc[1].n = 0;
}

// Assembly:
pushq %r14
pushq %rbx
movq (%rdi), %r8
movl %esi, %eax
imulq $0x78, %rax, %rax
movb $0x1, 0x70(%r8,%rax)
leal (%rsi,%rsi), %eax
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
imulq $0x78, %rsi, %rcx
movl 0x10(%r8,%rcx), %edx
testq %rdx, %rdx
je 0x2143bb
movq 0x20(%r8,%rcx), %rsi
movl %eax, %r8d
orl $0x1, %r8d
xorl %r9d, %r9d
movq %r9, %r10
shlq $0x5, %r10
orb $-0x80, 0xf(%rsi,%r10)
movl 0x8(%rsi,%r10), %r10d
movl %r10d, %r11d
notl %r11d
shrl %r10d
andl $0x1, %r11d
imulq $0x78, %r10, %r10
addq (%rdi), %r10
leaq (%r11,%r11,2), %r11
movq 0x20(%r10,%r11,8), %r10
cmpl %r8d, 0x8(%r10)
jne 0x214390
xorl %r11d, %r11d
jmp 0x2143a6
leaq 0x28(%r10), %rbx
xorl %r11d, %r11d
incq %r11
leaq 0x20(%rbx), %r14
cmpl %r8d, (%rbx)
movq %r14, %rbx
jne 0x214397
shlq $0x5, %r11
orb $-0x80, 0xf(%r10,%r11)
incq %r9
cmpq %rdx, %r9
jne 0x214356
movq (%rdi), %r8
movl 0x28(%r8,%rcx), %edx
testq %rdx, %rdx
je 0x21442e
movq 0x38(%r8,%rcx), %rcx
xorl %esi, %esi
movq %rsi, %r8
shlq $0x5, %r8
orb $-0x80, 0xf(%rcx,%r8)
movl 0x8(%rcx,%r8), %r8d
movl %r8d, %r9d
notl %r9d
shrl %r8d
andl $0x1, %r9d
imulq $0x78, %r8, %r8
addq (%rdi), %r8
leaq (%r9,%r9,2), %r9
movq 0x20(%r8,%r9,8), %r8
cmpl %eax, 0x8(%r8)
jne 0x214406
xorl %r9d, %r9d
jmp 0x21441c
leaq 0x28(%r8), %r10
xorl %r9d, %r9d
incq %r9
leaq 0x20(%r10), %r11
cmpl %eax, (%r10)
movq %r11, %r10
jne 0x21440d
shlq $0x5, %r9
orb $-0x80, 0xf(%r8,%r9)
incq %rsi
cmpq %rdx, %rsi
jne 0x2143cc
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: usg_naive_topocut_aux(usg_t*, unsigned int, int, unsigned char*, asg64_v*, asg64_v*)
int usg_naive_topocut_aux(usg_t *g, uint32_t v, int max_ext, uint8_t *f, asg64_v *b0, asg64_v *b1)
{
    int32_t n_ext; usg_arc_t *av; uint32_t w = v, v0 = v, nv, i, kv, tip; 
    for (n_ext = tip = 0; n_ext < max_ext; v = w) {
        tip = 0;
        av = usg_arc_a(g, v^1); nv = usg_arc_n(g, v^1);
        for (i = kv = 0; i < nv && kv <= 1; i++) {
            if (av[i].del) continue;
            kv++; 
        }
        if(kv!=1) break;
        n_ext += g->a[v>>1].occ;

        av = usg_arc_a(g, v); nv = usg_arc_n(g, v);
        for (i = kv = 0; i < nv && kv <= 1; i++) {
            if (av[i].del) continue;
            kv++; w = av[i].v;
        }
        if(kv!=1) {
            if(kv > 1) tip = 1;
            break;
        }
    }

    if(n_ext < max_ext && tip) {
        n_ext = usg_tip_detect(g, v0, max_ext, f, b0, b1);
    }
	return n_ext;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %r9, -0x8(%rsp)
movq %r8, -0x10(%rsp)
xorl %eax, %eax
movl %esi, %r10d
cmpl %edx, %eax
jge 0x214884
movq (%rdi), %r8
movl %r10d, %r11d
shrl %r11d
movl %r10d, %ebp
andl $0x1, %ebp
movl %ebp, %r15d
xorl $0x1, %r15d
imulq $0x78, %r11, %r14
leaq (%r8,%r14), %rbx
leaq (%r15,%r15,2), %r11
movl 0x10(%rbx,%r11,8), %r15d
testq %r15, %r15
je 0x214884
movq 0x20(%rbx,%r11,8), %r12
addq $0xc, %r12
xorl %r11d, %r11d
movl $0x1, %r13d
movl %r11d, %r9d
movl (%r12), %r11d
notl %r11d
shrl $0x1f, %r11d
addl %r9d, %r11d
cmpq %r15, %r13
jae 0x214810
addq $0x20, %r12
incq %r13
cmpl $0x2, %r11d
jb 0x2147ed
cmpl $0x1, %r11d
jne 0x214884
addl 0x4(%r8,%r14), %eax
movl %ebp, %r8d
leaq (%r8,%r8,2), %r9
movl 0x10(%rbx,%r9,8), %r11d
testq %r11, %r11
je 0x214884
movq 0x20(%rbx,%r9,8), %r14
addq $0xc, %r14
xorl %ebx, %ebx
movl $0x1, %r15d
cmpl $0x0, (%r14)
js 0x214849
incl %ebx
movl -0x4(%r14), %r10d
cmpq %r11, %r15
jae 0x21485a
addq $0x20, %r14
incq %r15
cmpl $0x2, %ebx
jb 0x21483d
cmpl $0x1, %ebx
je 0x2147a3
testl %ebx, %ebx
je 0x214884
cmpl %edx, %eax
jge 0x214884
movq -0x10(%rsp), %r8
movq -0x8(%rsp), %r9
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x214432
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: usg_max_bub(usg_t*, buf_t*, asg64_v*)
uint64_t usg_max_bub(usg_t *g, buf_t *b, asg64_v *nb)
{
    usg_arc_t *av, *aw; uint64_t cLen = 0, mLen = 0;
    uint32_t n_vtx = g->n<<1, k, v, w, kv, nv, kw, nw, p_bub;
    for (v = 0; v < n_vtx; ++v) {
        if(b->a[v>>1].s || g->a[v>>1].del) continue;

        av = usg_arc_a(g, v); nv = usg_arc_n(g, v);
        for (k = kv = 0; k < nv && kv <= 1; k++) {
            if(av[k].del) continue;
            w = av[k].v^1; kv++;
        }

        if(kv == 1) {
            aw = usg_arc_a(g, w); nw = usg_arc_n(g, w);
            for (k = kw = 0; k < nw && kw <= 1; k++) {
                if(aw[k].del) continue;
                kw++;
            }
            if(kw == 1) continue;
        }

        cLen = dfs_max_bub(g, b, v^1, nb, &p_bub);
        if(p_bub == 0) continue;///no bubble
        if(cLen > mLen) mLen = cLen;
    }

    for (k = 0; k < g->n; ++k) b->a[k].s = 0;

    b->S.n = b->b.n = 0;
    return mLen;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, 0x10(%rsp)
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %rax
xorl %ebp, %ebp
movl %eax, %r13d
xorl %r15d, %r15d
addl %eax, %r13d
je 0x215cb4
movq (%rbx), %rax
movl %ebp, %ecx
shrl %ecx
leaq (%rcx,%rcx,8), %rdx
leaq (%rdx,%rdx,2), %rdx
addq %rcx, %rdx
cmpl $0x0, 0x18(%rax,%rdx)
js 0x215ca5
movq (%r14), %rax
imulq $0x78, %rcx, %rdx
cmpb $0x0, 0x70(%rax,%rdx)
jne 0x215ca5
addq %rax, %rdx
movl %ebp, %ecx
andl $0x1, %ecx
leaq (%rcx,%rcx,2), %rsi
movl 0x10(%rdx,%rsi,8), %ecx
testq %rcx, %rcx
je 0x215c7b
movq 0x20(%rdx,%rsi,8), %rdx
addq $0xc, %rdx
xorl %esi, %esi
movl $0x1, %edi
cmpl $0x0, (%rdx)
js 0x215c15
movl -0x4(%rdx), %r12d
xorl $0x1, %r12d
incl %esi
cmpq %rcx, %rdi
jae 0x215c26
addq $0x20, %rdx
incq %rdi
cmpl $0x2, %esi
jb 0x215c06
cmpl $0x1, %esi
jne 0x215c7b
movl %r12d, %ecx
shrl %ecx
movl %r12d, %edx
andl $0x1, %edx
imulq $0x78, %rcx, %rcx
addq %rcx, %rax
leaq (%rdx,%rdx,2), %rdx
movl 0x10(%rax,%rdx,8), %ecx
testq %rcx, %rcx
je 0x215c7b
movq 0x20(%rax,%rdx,8), %rax
addq $0xc, %rax
xorl %esi, %esi
movl $0x1, %edx
movl %esi, %edi
movl (%rax), %esi
notl %esi
shrl $0x1f, %esi
addl %edi, %esi
cmpq %rcx, %rdx
jae 0x215c76
addq $0x20, %rax
incq %rdx
cmpl $0x2, %esi
jb 0x215c5a
cmpl $0x1, %esi
je 0x215ca5
movl %ebp, %edx
xorl $0x1, %edx
movq %r14, %rdi
movq %rbx, %rsi
movq 0x10(%rsp), %rcx
leaq 0xc(%rsp), %r8
callq 0x2157ef
cmpq %r15, %rax
cmovbeq %r15, %rax
cmpl $0x0, 0xc(%rsp)
cmovneq %rax, %r15
incl %ebp
cmpl %r13d, %ebp
jne 0x215bae
movq 0x8(%r14), %rax
testq %rax, %rax
je 0x215ce0
movl $0x1, %eax
xorl %ecx, %ecx
movq (%rbx), %rdx
leaq (%rcx,%rcx,8), %rsi
leaq (%rsi,%rsi,2), %rsi
addq %rcx, %rsi
andl $0x7fffffff, 0x18(%rdx,%rsi) # imm = 0x7FFFFFFF
movl %eax, %ecx
incl %eax
cmpq %rcx, 0x8(%r14)
ja 0x215cc0
xorl %eax, %eax
movq %rax, 0x38(%rbx)
movq %rax, 0x8(%rbx)
movq %r15, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: is_junction_circle(usg_t*, unsigned int, unsigned int)
uint32_t is_junction_circle(usg_t *g, uint32_t v, uint32_t w)
{
    uint32_t k, nv, cov, op, cov_w; usg_arc_t *av;
    av = usg_arc_a(g, v); nv = usg_arc_n(g, v);

    for (k = 0; k < nv; k++){
        if(av[k].del) continue;
        if(av[k].v == (w^1)) return 1;///circle
        op = get_usg_unitig(g, av[k].v, &cov, NULL, NULL, NULL, NULL);
        if(op == LOOP || cov == (w^1)) return 1;///circle
        if(op == MUL_INPUT) {
            undel_arcs(g, cov, &cov_w);
            if(cov_w == (w^1)) return 1;///circle
        }
    }

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq (%rdi), %rcx
movl %esi, %eax
shrl %eax
andl $0x1, %esi
imulq $0x78, %rax, %rax
addq %rcx, %rax
leaq (%rsi,%rsi,2), %rsi
movl 0x10(%rax,%rsi,8), %edi
testq %rdi, %rdi
je 0x2166f2
movq 0x20(%rax,%rsi,8), %rsi
xorl $0x1, %edx
xorl %r8d, %r8d
movq %rdi, -0x8(%rsp)
movq %rsi, -0x10(%rsp)
movq %r8, %rax
shlq $0x5, %rax
cmpl $0x0, 0xc(%rsi,%rax)
js 0x2166e6
addq %rsi, %rax
movl 0x8(%rax), %ebp
movl $0x1, %eax
cmpl %edx, %ebp
je 0x2166f4
movl %ebp, %ebx
movl %ebx, %esi
shrl %esi
movl %ebx, %edi
andl $0x1, %edi
imulq $0x78, %rsi, %rsi
addq %rcx, %rsi
leaq (%rdi,%rdi,2), %rdi
movl 0x10(%rsi,%rdi,8), %r10d
movq 0x20(%rsi,%rdi,8), %r11
xorl %r15d, %r15d
testq %r10, %r10
je 0x216694
movq %r10, %r12
shlq $0x5, %r12
xorl %esi, %esi
movl 0xc(%r11,%rsi), %edi
notl %edi
shrl $0x1f, %edi
addl %edi, %r15d
addq $0x20, %rsi
cmpq %rsi, %r12
jne 0x2165ff
cmpl $0x1, %r15d
jne 0x216691
xorl %r15d, %r15d
cmpl $0x0, 0xc(%r11,%r15)
js 0x21662b
movl 0x8(%r11,%r15), %r14d
addq $0x20, %r15
cmpq %r15, %r12
jne 0x21661e
movl %r14d, %edi
notl %edi
movl %r14d, %esi
shrl %esi
andl $0x1, %edi
imulq $0x78, %rsi, %rsi
addq %rcx, %rsi
leaq (%rdi,%rdi,2), %rdi
movl 0x10(%rsi,%rdi,8), %r12d
movb $0x1, %r15b
testq %r12, %r12
je 0x216694
movq 0x20(%rsi,%rdi,8), %r13
shlq $0x5, %r12
xorl %esi, %esi
xorl %edi, %edi
movl 0xc(%r13,%rsi), %r9d
notl %r9d
shrl $0x1f, %r9d
addl %r9d, %edi
addq $0x20, %rsi
cmpq %rsi, %r12
jne 0x216666
cmpl $0x1, %edi
jne 0x216694
movl %r14d, %ebx
cmpl %ebp, %r14d
jne 0x2165cc
jmp 0x2166f4
xorl %r15d, %r15d
cmpl %edx, %ebx
je 0x2166f4
testb %r15b, %r15b
je 0x2166c9
testq %r10, %r10
movq -0x8(%rsp), %rdi
je 0x2166d5
shlq $0x5, %r10
xorl %ebx, %ebx
movl -0x14(%rsp), %esi
cmpl $0x0, 0xc(%r11,%rbx)
js 0x2166be
movl 0x8(%r11,%rbx), %esi
addq $0x20, %rbx
cmpq %rbx, %r10
jne 0x2166b1
jmp 0x2166d9
movq -0x8(%rsp), %rdi
movq -0x10(%rsp), %rsi
jmp 0x2166e6
movl -0x14(%rsp), %esi
movl %esi, -0x14(%rsp)
cmpl %edx, %esi
movq -0x10(%rsp), %rsi
je 0x2166f4
incq %r8
cmpq %rdi, %r8
jne 0x2165a5
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: check_hybrid_connect(usg_t*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int)
inline usg_arc_t* get_usg_arc(usg_t *g, uint32_t v, uint32_t w)
{
    usg_arc_t *av = usg_arc_a(g, v); uint32_t nv = usg_arc_n(g, v), k;
    for (k = 0; k < nv; k++) {
        if(av[k].v == w) break;
    }

    if(k < nv) return (&av[k]);
    return NULL;    
}

// Assembly:
movq (%rdi), %rdi
movl %edx, %eax
shrl %eax
andl $0x1, %edx
imulq $0x78, %rax, %r9
addq %rdi, %r9
leaq (%rdx,%rdx,2), %rdx
movl 0x10(%r9,%rdx,8), %eax
testq %rax, %rax
je 0x217acf
movq 0x20(%r9,%rdx,8), %rdx
shlq $0x5, %rax
xorl %r9d, %r9d
cmpl %r8d, 0x8(%rdx,%r9)
je 0x217a68
addq $0x20, %r9
cmpq %r9, %rax
jne 0x217a56
jmp 0x217acf
movq 0x18(%rdx,%r9), %r8
xorl %eax, %eax
testl %r8d, %r8d
je 0x217ad1
testl %r8d, %r8d
je 0x217ad1
movq (%rdx,%r9), %rax
movq %rax, %rdx
shrq $0x20, %rdx
shrq $0x21, %rax
andl $0x1, %edx
imulq $0x78, %rax, %rax
addq %rax, %rdi
leaq (%rdx,%rdx,2), %rax
movq 0x50(%rdi,%rax,8), %rax
movq %r8, %rdx
shrq $0x20, %rdx
movl %r8d, %edi
leaq (%rdx,%rdx,2), %rdx
leaq (%rax,%rdx,4), %rax
addq $0x8, %rax
shlq $0x2, %rdi
leaq (%rdi,%rdi,2), %rdx
xorl %edi, %edi
cmpl %esi, -0x4(%rax,%rdi)
jne 0x217ac6
cmpl %ecx, (%rax,%rdi)
je 0x217ad2
addq $0xc, %rdi
cmpq %rdi, %rdx
jne 0x217abb
xorl %eax, %eax
retq
movl $0x1, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: usg_arc_occ(usg_t*, unsigned int)
uint32_t usg_arc_occ(usg_t *ng, uint32_t v)
{
    usg_arc_t *p; uint32_t nv, kv, i;
    p = usg_arc_a(ng, v); nv = usg_arc_n(ng, v);
    for (i = kv = 0; i < nv; i++) {
        if(p[i].del) continue;
        kv++;
    }
    return kv;
}

// Assembly:
movl %esi, %eax
shrl %eax
imulq $0x78, %rax, %rax
addq (%rdi), %rax
andl $0x1, %esi
leaq (%rsi,%rsi,2), %rdx
movl 0x10(%rax,%rdx,8), %ecx
testq %rcx, %rcx
je 0x217b15
movq 0x20(%rax,%rdx,8), %rdx
shlq $0x5, %rcx
xorl %esi, %esi
xorl %eax, %eax
movl 0xc(%rdx,%rsi), %edi
notl %edi
shrl $0x1f, %edi
addl %edi, %eax
addq $0x20, %rsi
cmpq %rsi, %rcx
jne 0x217b00
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: get_ug_occ_v(unsigned int)
uint64_t get_ug_occ_v(uint32_t i_ug_occ)
{
    uint64_t v = (uint64_t)-1;
    if(!(i_ug_occ&((uint32_t)0x80000000))) return v;
    if(!(i_ug_occ&3)) return v;
    if((i_ug_occ&1)&&(i_ug_occ&2)) {
        v = (((i_ug_occ<<1)>>3)<<1);
        v <<= 32; v |= ((((i_ug_occ<<1)>>3)<<1)|1);
        return v;
    }
    if(i_ug_occ&1) {
        v <<= 32; v |= (((i_ug_occ<<1)>>3)<<1);
        return v;
    }
    if(i_ug_occ&2) {
        v <<= 32; v |= ((((i_ug_occ<<1)>>3)<<1)|1);
        return v;
    }
    return v;
}

// Assembly:
testl %edi, %edi
setns %al
movl %edi, %ecx
andl $0x3, %ecx
sete %dl
orb %al, %dl
movq $-0x1, %rax
jne 0x218501
cmpl $0x3, %ecx
jne 0x2184d6
shrl %edi
andl $0x3ffffffe, %edi       # imm = 0x3FFFFFFE
movq %rdi, %rax
shlq $0x20, %rax
addq %rdi, %rax
incq %rax
retq
testb $0x1, %dil
jne 0x2184ec
testb $0x2, %dil
je 0x218501
shrl %edi
andl $0x3fffffff, %edi       # imm = 0x3FFFFFFF
jmp 0x2184f4
shrl %edi
andl $0x3ffffffe, %edi       # imm = 0x3FFFFFFE
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
orq %rdi, %rax
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: ava_pass_unique_bridge(unsigned long*, unsigned long*, unsigned long, unsigned long)
uint32_t ava_pass_unique_bridge(uint64_t *idx, uint64_t *integer_seq, uint64_t s, uint64_t e)
{
    uint64_t k;
    for (k = s + 1; k < e; k++) {///note: here is [s, e]
        if((idx[integer_seq[k]]&((uint64_t)0x8000000000000000)) || 
                        (idx[integer_seq[k]^1]&((uint64_t)0x8000000000000000))) {
            return 0;
        }
    }
    if((idx[integer_seq[s]]&((uint64_t)0x8000000000000000)) || 
                        (idx[integer_seq[e]^1]&((uint64_t)0x8000000000000000))) {
        return 0;
    }
    return 1;
}

// Assembly:
leaq 0x1(%rdx), %r8
xorl %eax, %eax
cmpq %rcx, %r8
jae 0x218f89
movq (%rsi,%r8,8), %r9
cmpq $0x0, (%rdi,%r9,8)
js 0x218f88
xorq $0x1, %r9
incq %r8
cmpq $0x0, (%rdi,%r9,8)
jns 0x218f6a
retq
movq (%rsi,%rdx,8), %rax
cmpq $0x0, (%rdi,%rax,8)
js 0x218fa7
movq (%rsi,%rcx,8), %rcx
xorq $0x1, %rcx
xorl %eax, %eax
cmpq $0x0, (%rdi,%rcx,8)
setns %al
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: debug_sysm_usg_t(usg_t*, char const*)
void debug_sysm_usg_t(usg_t *ng, const char *cmd) 
{
    uint32_t v, i; usg_arc_t *p, *q; uint32_t nv;
    for (v = 0; v < (ng->n<<1); v++) {
        p = usg_arc_a(ng, v); nv = usg_arc_n(ng, v);
        for (i = 0; i < nv; i++) {
            q = get_usg_arc(ng, p[i].v^1, v^1);
            if((!q) || (p[i].del != q->del)) {
                fprintf(stderr, "[M::%s::%s] utg%.6dl(%c)%u -> utg%.6dl(%c)%u, p->del::%u, q->del::%u\n", 
                __func__, cmd, 
                (int32_t)(v>>1)+1, "+-"[v&1], v, 
                (int32_t)(p[i].v>>1)+1, "+-"[p[i].v&1], p[i].v, 
                p[i].del, q?q->del:1);
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, 0x8(%rsp)
movq 0x8(%rdi), %rax
leaq (,%rax,2), %rcx
testq %rcx, %rcx
je 0x219ac5
xorl %r13d, %r13d
movq %rdi, (%rsp)
movl %r13d, %esi
shrl %esi
movl %r13d, %edx
imulq $0x78, %rsi, %rcx
addq (%rdi), %rcx
andl $0x1, %edx
movq %rdx, 0x18(%rsp)
leaq (%rdx,%rdx,2), %rdx
movl 0x10(%rcx,%rdx,8), %ebx
testq %rbx, %rbx
je 0x219ab5
movq 0x20(%rcx,%rdx,8), %rbp
incl %esi
movq %rsi, 0x10(%rsp)
xorl %r12d, %r12d
movq %r12, %rcx
shlq $0x5, %rcx
leaq (%rcx,%rbp), %rax
movl 0x8(%rbp,%rcx), %r11d
movl %r11d, %r10d
shrl %r10d
movl %r11d, %ecx
andl $0x1, %ecx
movq %rcx, %rsi
xorq $0x1, %rsi
imulq $0x78, %r10, %rdx
addq (%rdi), %rdx
leaq (%rsi,%rsi,2), %r8
movl 0x10(%rdx,%r8,8), %esi
movl $0x1, %r15d
testq %rsi, %rsi
je 0x219a4b
movq 0x20(%rdx,%r8,8), %rdx
shlq $0x5, %rsi
xorl %r9d, %r9d
movl 0x8(%rdx,%r9), %r8d
xorl %r13d, %r8d
cmpl $0x1, %r8d
je 0x219a2e
addq $0x20, %r9
cmpq %r9, %rsi
jne 0x219a15
jmp 0x219a4b
movl 0xc(%rdx,%r9), %esi
xorl 0xc(%rax), %esi
js 0x219a42
incq %r12
cmpq %rbx, %r12
jne 0x2199cb
jmp 0x219ab1
movl 0xc(%rdx,%r9), %r15d
shrl $0x1f, %r15d
movq 0x7b58e(%rip), %rdx     # 0x294fe0
movq (%rdx), %rdi
leaq 0x18877(%rip), %rdx     # 0x2322d3
movq 0x18(%rsp), %rsi
movsbl (%rsi,%rdx), %r9d
incl %r10d
movsbl (%rcx,%rdx), %ecx
movq %rcx, 0x20(%rsp)
movl 0xc(%rax), %r14d
shrl $0x1f, %r14d
leaq 0x2ef8d(%rip), %rsi     # 0x248a0e
leaq 0x2efcc(%rip), %rdx     # 0x248a54
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %r8
xorl %eax, %eax
pushq %r15
pushq %r14
pushq %r11
pushq 0x38(%rsp)
pushq %r10
pushq %r13
callq 0x22b0
addq $0x30, %rsp
movq (%rsp), %rdi
jmp 0x219a38
movq 0x8(%rdi), %rax
incl %r13d
leaq (%rax,%rax), %rcx
cmpq %r13, %rcx
ja 0x219994
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/gfa_ut.cpp
// Function: prt_thread_info(unsigned long*, unsigned long, unsigned long*, unsigned long, char const*)
void prt_thread_info(uint64_t *interval, uint64_t interval_n, uint64_t *cluster, uint64_t cluster_n, 
const char *nn)
{
    char* gfa_name = NULL; MALLOC(gfa_name, strlen(nn)+70);
    sprintf(gfa_name, "%s.thread_info.log", nn);
    FILE* fp = fopen(gfa_name, "w"); free(gfa_name);
    if (!fp) return;
    uint64_t k;
    if(interval) {
        for (k = 0; k < interval_n; k++) fprintf(fp,"it_val::[%lu, %u)\n", interval[k]>>32, (uint32_t)interval[k]);
    }
    if(cluster) {
        for (k = 0; k < cluster_n; k++) fprintf(fp,"cluster::%lu\tit_id::%u)\n", cluster[k]>>32, (uint32_t)cluster[k]);
    }
    fclose(fp);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r15
movq %rcx, (%rsp)
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %r13
movq %r8, %rdi
callq 0x2090
leaq 0x46(%rax), %rdi
callq 0x2280
movq %rax, %rbp
leaq 0x2ddfe(%rip), %rsi     # 0x248bbc
movq %rax, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x2050
leaq 0x2d910(%rip), %rsi     # 0x2486e2
movq %rbp, %rdi
callq 0x2210
movq %rax, %r15
movq %rbp, %rdi
callq 0x2220
testq %r15, %r15
je 0x21ae7b
testq %r13, %r13
sete %al
testq %r12, %r12
sete %cl
orb %al, %cl
jne 0x21ae28
leaq 0x2ddca(%rip), %rbp     # 0x248bcf
xorl %ebx, %ebx
movq (%r13,%rbx,8), %rcx
movq %rcx, %rdx
shrq $0x20, %rdx
movq %r15, %rdi
movq %rbp, %rsi
xorl %eax, %eax
callq 0x22b0
incq %rbx
cmpq %rbx, %r12
jne 0x21ae07
testq %r14, %r14
sete %al
movq (%rsp), %r13
testq %r13, %r13
sete %cl
orb %al, %cl
jne 0x21ae65
leaq 0x2dd9f(%rip), %r12     # 0x248be2
xorl %ebx, %ebx
movq (%r14,%rbx,8), %rcx
movq %rcx, %rdx
shrq $0x20, %rdx
movq %r15, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x22b0
incq %rbx
cmpq %rbx, %r13
jne 0x21ae45
movq %r15, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2190
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/gfa_ut.cpp
// Function: prt_intg_info(unsigned long*, unsigned long, unsigned long*, char const*)
void prt_intg_info(uint64_t *int_idx, uint64_t int_idx_n, uint64_t *int_a, const char *nn)
{
    char* gfa_name = NULL; MALLOC(gfa_name, strlen(nn)+70);
    sprintf(gfa_name, "%s.intg_info.log", nn);
    FILE* fp = fopen(gfa_name, "w"); free(gfa_name);
    if (!fp) return;
    uint64_t k, i, s, e;
    for (i = 0; i < int_idx_n; i++) {///scan all integer contigs
        s = int_idx[i]>>32; e = s + ((uint32_t)int_idx[i]); 
        assert(e > s + 1);//the length is at least 2
        fprintf(fp,"idx::[%lu, %lu)\n", s, e);
        for (k = s; k < e; k++) {
            fprintf(fp,"%lu\n", int_a[k]);
        }
    }
    fclose(fp);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r15
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, 0x10(%rsp)
movq %rcx, %rdi
callq 0x2090
leaq 0x46(%rax), %rdi
callq 0x2280
movq %rax, %r13
leaq 0x2dd3a(%rip), %rsi     # 0x248bfb
movq %rax, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x2050
leaq 0x2d80d(%rip), %rsi     # 0x2486e2
movq %r13, %rdi
callq 0x2210
movq %rax, %r12
movq %r13, %rdi
callq 0x2220
testq %r12, %r12
je 0x21af6a
movq %r14, 0x8(%rsp)
testq %r14, %r14
je 0x21af54
leaq 0x21983(%rip), %rbp     # 0x23c881
xorl %r14d, %r14d
movq 0x10(%rsp), %rax
movq (%rax,%r14,8), %r13
movl %r13d, %r15d
cmpq $0x1, %r15
jbe 0x21af79
shrq $0x20, %r13
addq %r13, %r15
movq %r12, %rdi
leaq 0x2dd35(%rip), %rsi     # 0x248c59
movq %r13, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x22b0
movq (%rbx,%r13,8), %rdx
movq %r12, %rdi
movq %rbp, %rsi
xorl %eax, %eax
callq 0x22b0
incq %r13
cmpq %r15, %r13
jb 0x21af31
incq %r14
cmpq 0x8(%rsp), %r14
jne 0x21af01
movq %r12, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2190
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2dc8c(%rip), %rdi     # 0x248c0c
leaq 0x2a682(%rip), %rsi     # 0x245609
leaq 0x2dc88(%rip), %rcx     # 0x248c16
movl $0x3219, %edx           # imm = 0x3219
callq 0x2110
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: get_arc_support(ul_resolve_t*, unsigned long, unsigned long)
uint64_t get_arc_support(ul_resolve_t *uidx, uint64_t v, uint64_t w)
{
    uint64_t *hid_a, hid_n; ul_str_idx_t *str_idx = &(uidx->pstr);
    uint64_t z, vz, occ = 0; ul_str_t *str; int64_t s, s_n;
    hid_a = str_idx->occ.a + str_idx->idx.a[v>>1];
    hid_n = str_idx->idx.a[(v>>1)+1] - str_idx->idx.a[v>>1];

    for (z = occ = 0; z < hid_n; z++) {
        str = &(str_idx->str.a[hid_a[z]>>32]); s_n = str->cn;
        if(s_n < 2) continue;
        vz = (uint32_t)(str->a[(uint32_t)hid_a[z]]);
        assert((v>>1) == (vz>>1)); 

        if(v == vz) {
            for(s = ((uint32_t)hid_a[z]) + 1; s < s_n; s++) {
                if(((uint32_t)(str->a[s])) == w) {
                    occ++; break;
                }
            }
        } else {
            for(s = ((int32_t)((uint32_t)hid_a[z]))-1; s >= 0; s--) {
                if(((uint32_t)(str->a[s])) == (w^1)) {
                    occ++; break;
                }
            }
        }
    }
    return occ;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq 0x1a0(%rdi), %rax
movq %rsi, %rcx
shrq %rcx
movq (%rax,%rcx,8), %r8
movq 0x8(%rax,%rcx,8), %r9
subq %r8, %r9
jne 0x21ba0e
xorl %eax, %eax
jmp 0x21bab2
shlq $0x3, %r8
addq 0x1b8(%rdi), %r8
movq 0x1d0(%rdi), %rdi
xorl %r10d, %r10d
xorl %eax, %eax
movq (%r8,%r10,8), %rbx
movq %rbx, %r11
shrq $0x1b, %r11
andq $-0x20, %r11
movl 0x18(%rdi,%r11), %r14d
andl $0x7fffffff, %r14d      # imm = 0x7FFFFFFF
cmpl $0x2, %r14d
jb 0x21baa6
addq %rdi, %r11
movq 0x10(%r11), %r11
movl %ebx, %r15d
movq (%r11,%r15,8), %r15
movl %r15d, %r12d
shrl %r12d
cmpq %r12, %rcx
jne 0x21babe
movl %r15d, %r15d
cmpq %rsi, %r15
jne 0x21ba81
incl %ebx
cmpq %r14, %rbx
jae 0x21baa6
movl (%r11,%rbx,8), %r15d
cmpq %rdx, %r15
je 0x21baa3
incq %rbx
cmpq %rbx, %r14
jne 0x21ba6e
jmp 0x21baa6
decl %ebx
movslq %ebx, %rbx
testq %rbx, %rbx
js 0x21baa6
incq %rbx
movl -0x8(%r11,%rbx,8), %r14d
xorq %rdx, %r14
cmpq $0x1, %r14
je 0x21baa3
decq %rbx
jg 0x21ba8e
jmp 0x21baa6
incq %rax
incq %r10
cmpq %r9, %r10
jne 0x21ba25
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x2c58a(%rip), %rdi     # 0x24804f
leaq 0x29b3d(%rip), %rsi     # 0x245609
leaq 0x2d39e(%rip), %rcx     # 0x248e71
movl $0x3303, %edx           # imm = 0x3303
callq 0x2110
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: ava_pass_unique_bridge_cov(ul_resolve_t*, usg_t*, asg64_v*, unsigned long, unsigned long, unsigned long*, unsigned long)
uint32_t ava_pass_unique_bridge_cov(ul_resolve_t *uidx, usg_t *g, asg64_v *b64, uint64_t g_s, uint64_t g_e, uint64_t *integer_seq, uint64_t tip_l)
{
    if((tip_l == 0) && (g_e - g_s == 1)) return 1; ///if only one path, go through in anyway 
    uint64_t i, is_del = 0; unique_bridge_check_t uaux;

    uaux.uidx = uidx; uaux.integer_seq = integer_seq; 
    uaux.gidx = b64->a + g_s; uaux.gidx_n = g_e - g_s;
    uaux.interval_idx = b64->a; uaux.ng = g;
    ///if tip_l == 0, it is more likely to be right, so give more chance by double checking
    // if(!tip_l) uaux.is_double_check = 1;
    // else uaux.is_double_check = 0;

    kt_for(uidx->str_b.n_thread, worker_unique_bridge_check_s, (&uaux), g_e-g_s);///seq->n > 1

    for (i = g_s; i < g_e; i++) {///available intervals within the same cluster
        if(b64->a[i]&((uint64_t)0x8000000000000000)) {
            b64->a[i] -= ((uint64_t)0x8000000000000000); is_del = 1;
        }
    }
    return (!is_del);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x70, %rsp
movq %rcx, %r14
movq %rdx, %r15
movq %r8, %rcx
subq %r14, %rcx
movq %rcx, %rdx
xorq $0x1, %rdx
movl $0x1, %eax
orq 0x90(%rsp), %rdx
je 0x21bda3
movq %r8, %rbx
leaq 0x8(%rsp), %rdx
movq %rdi, (%rdx)
movq %r9, 0x8(%rdx)
movq 0x10(%r15), %rax
leaq (%rax,%r14,8), %r8
movq %r8, 0x10(%rdx)
movq %rcx, 0x20(%rdx)
movq %rax, 0x18(%rdx)
movq %rsi, 0x30(%rdx)
movl 0x1e0(%rdi), %edi
leaq 0x46(%rip), %rsi        # 0x21bdad
callq 0x108f2c
movl $0x1, %eax
cmpq %r14, %rbx
jbe 0x21bda3
movq 0x10(%r15), %rax
xorl %ecx, %ecx
movq (%rax,%r14,8), %rdx
testq %rdx, %rdx
jns 0x21bd93
btrq $0x3f, %rdx
movq %rdx, (%rax,%r14,8)
movl $0x1, %ecx
incq %r14
cmpq %r14, %rbx
jne 0x21bd7c
xorl %eax, %eax
testq %rcx, %rcx
sete %al
addq $0x70, %rsp
popq %rbx
popq %r14
popq %r15
retq