LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/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 %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq (%rcx), %r12
movl %r12d, %r14d
movq 0x18(%rdi), %r15
callq 0x1c1740
movq (%rbx), %rcx
xorl %eax, %eax
movl %r12d, %edx
cmpq %rdx, %rcx
jbe 0x1c4ae1
movq 0x10(%r15), %rsi
movq 0x10(%rbx), %rdi
movq (%rdi,%rdx,8), %rdi
shrq %rdi
imulq $0x28, %rdi, %rdi
addl 0x10(%rsi,%rdi), %eax
leal 0x1(%rdx), %r12d
jmp 0x1c4abc
movq %r14, (%rbx)
movl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/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, 0x20(%rsp)
movl %edx, %ebp
movq %rdi, %r12
movq (%r9), %rbx
movl %ebx, %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 0x1c0c77
movq (%r14), %rdx
movq 0x10(%r14), %rax
movabsq $0x1fffffffe, %rcx      # imm = 0x1FFFFFFFE
movl %ebx, %esi
cmpq %rsi, %rdx
jbe 0x1c4b67
movq 0x258(%r12), %rdi
movq (%rax,%rsi,8), %r8
andq %rcx, %r8
addl (%rdi,%r8,2), %r15d
leal 0x1(%rsi), %ebx
jmp 0x1c4b48
leaq (%rax,%r13,8), %rsi
subq %r13, %rdx
movq %r12, %rdi
movq 0x60(%rsp), %rcx
callq 0x1c4a9d
movl %ebp, %ecx
cvtsi2ss %rcx, %xmm0
movl %r15d, %ecx
cvtsi2ss %rcx, %xmm1
movq %r13, (%r14)
movss 0x24(%rsp), %xmm2
mulss %xmm2, %xmm1
ucomiss %xmm0, %xmm1
jb 0x1c4bb3
movl 0x20(%rsp), %ecx
cvtsi2ss %rcx, %xmm0
cvtsi2ss %rax, %xmm1
mulss %xmm2, %xmm1
ucomiss %xmm0, %xmm1
jae 0x1c4bb7
xorl %eax, %eax
jmp 0x1c4bba
pushq $0x1
popq %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/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 0x1c5c2e
leaq 0x1(%r14), %rcx
movq (%rbx), %rax
cmpq %rcx, %r15
jae 0x1c5c16
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 0x1c5c19
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 0x1c5c3c
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_O2/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 %r15
pushq %r14
pushq %rbx
movq (%rdi), %rcx
movl %esi, %edx
shrl %edx
andl $0x1, %esi
imulq $0x78, %rdx, %rax
addq %rcx, %rax
imulq $0x18, %rsi, %rdi
movq 0x20(%rdi,%rax), %rsi
movl 0x10(%rdi,%rax), %edi
xorl %r8d, %r8d
movl $0x1, %r9d
cmpq %rdi, %r8
je 0x1c6005
movq %r8, %rax
shlq $0x5, %rax
cmpl $0x0, 0xc(%rsi,%rax)
js 0x1c5ffd
addq %rsi, %rax
movl 0x8(%rax), %eax
movl %eax, %r10d
notl %r10d
shrl %eax
andl $0x1, %r10d
imulq $0x78, %rax, %r11
addq %rcx, %r11
imulq $0x18, %r10, %r10
movq 0x20(%r10,%r11), %rax
movl 0x10(%r10,%r11), %ebx
shlq $0x5, %rbx
xorl %r14d, %r14d
xorl %r10d, %r10d
xorl %r11d, %r11d
cmpq %r14, %rbx
je 0x1c5fdd
movl 0xc(%rax,%r14), %ebp
testl %ebp, %ebp
js 0x1c5fd7
movl 0x8(%rax,%r14), %r15d
shrl %r15d
cmpl %edx, %r15d
jne 0x1c5fd0
cmpl %r10d, %ebp
cmoval %ebp, %r10d
jmp 0x1c5fd7
cmpl %r11d, %ebp
cmoval %ebp, %r11d
addq $0x20, %r14
jmp 0x1c5fac
xorl %eax, %eax
testl %r11d, %r11d
je 0x1c6008
cmpl %r11d, %r10d
jae 0x1c6008
cvtsi2sd %r10d, %xmm1
cvtsi2sd %r11d, %xmm2
mulsd %xmm0, %xmm2
ucomisd %xmm2, %xmm1
ja 0x1c6008
incq %r8
jmp 0x1c5f5d
movl %r9d, %eax
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: usg_end(usg_t const*, unsigned int, unsigned long*)
static inline int usg_end(const usg_t *g, uint32_t v, uint64_t *lw)
{
    ///v^1 is the another direction of v
    uint32_t w, nv, nw, nw0, nv0 = usg_arc_n(g, v^1);
    int i, i0 = -1;
    usg_arc_t *aw, *av = usg_arc_a(g, v^1);

    ///if this arc has not been deleted
    for (i = nv = 0; i < (int)nv0; ++i)
        if (!av[i].del) i0 = i, ++nv;

    ///end without any out-degree
    if (nv == 0) return ASG_ET_TIP; // tip
    if (nv > 1) return ASG_ET_MULTI_OUT; // multiple outgoing arcs
    ///until here, nv == 1
    if (lw) *lw = ((uint64_t)(v^1))<<32 | av[i0].v;
    w = av[i0].v^1;
    nw0 = usg_arc_n(g, w); aw = usg_arc_a(g, w);
    for (i = nw = 0; i < (int)nw0; ++i)
        if (!aw[i].del) ++nw;

    if (nw != 1) return ASG_ET_MULTI_NEI;
    return ASG_ET_MERGEABLE;
}

// Assembly:
pushq %rbx
movq (%rdi), %rax
movl %esi, %ecx
xorl $0x1, %ecx
shrl %esi
movl %ecx, %edi
andl $0x1, %edi
imulq $0x78, %rsi, %rsi
addq %rax, %rsi
imulq $0x18, %rdi, %rdi
movl 0x10(%rdi,%rsi), %r8d
xorl %r9d, %r9d
testl %r8d, %r8d
cmovlel %r9d, %r8d
movq 0x20(%rdi,%rsi), %rsi
leaq 0xc(%rsi), %r10
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
xorl %r11d, %r11d
cmpq %r9, %r8
je 0x1c66e0
xorl %ebx, %ebx
cmpl $0x0, (%r10)
cmovnsl %r9d, %edi
setns %bl
addl %ebx, %r11d
incq %r9
addq $0x20, %r10
jmp 0x1c66c2
testl %r11d, %r11d
je 0x1c6707
cmpl $0x1, %r11d
jne 0x1c670e
testq %rdx, %rdx
je 0x1c6715
shlq $0x20, %rcx
movslq %edi, %rdi
shlq $0x5, %rdi
movl 0x8(%rsi,%rdi), %esi
orq %rsi, %rcx
movq %rcx, (%rdx)
jmp 0x1c6720
movl $0x1, %eax
jmp 0x1c676b
movl $0x2, %eax
jmp 0x1c676b
movslq %edi, %rcx
shlq $0x5, %rcx
movl 0x8(%rsi,%rcx), %esi
movl %esi, %ecx
notl %ecx
shrl %esi
andl $0x1, %ecx
imulq $0x78, %rsi, %rdx
addq %rdx, %rax
imulq $0x18, %rcx, %rdx
movl 0x10(%rdx,%rax), %ecx
movq 0x20(%rdx,%rax), %rax
xorl %edx, %edx
testl %ecx, %ecx
cmovlel %edx, %ecx
shlq $0x5, %rcx
xorl %esi, %esi
cmpq %rdx, %rcx
je 0x1c6760
movl 0xc(%rax,%rdx), %edi
notl %edi
shrl $0x1f, %edi
addl %edi, %esi
addq $0x20, %rdx
jmp 0x1c674a
xorl %eax, %eax
cmpl $0x1, %esi
setne %al
leal (%rax,%rax,2), %eax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rax
movl %esi, %ecx
imulq $0x78, %rcx, %rcx
movb $0x1, 0x70(%rax,%rcx)
leal (%rsi,%rsi), %ebp
leal 0x1(,%rsi,2), %r14d
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
imulq $0x78, %rsi, %rcx
movq 0x20(%rax,%rcx), %r12
movq %rcx, (%rsp)
movl 0x10(%rax,%rcx), %r13d
shlq $0x5, %r13
xorl %r15d, %r15d
cmpq %r15, %r13
je 0x1c67db
orb $-0x80, 0xf(%r12,%r15)
movl 0x8(%r12,%r15), %esi
xorl $0x1, %esi
movq %rbx, %rdi
movl %r14d, %edx
callq 0x1dee3b
orb $-0x80, 0xf(%rax)
addq $0x20, %r15
jmp 0x1c67b3
movq (%rbx), %rax
movq (%rsp), %rcx
movq 0x38(%rax,%rcx), %r14
movl 0x28(%rax,%rcx), %r15d
shlq $0x5, %r15
xorl %r12d, %r12d
cmpq %r12, %r15
je 0x1c681a
orb $-0x80, 0xf(%r14,%r12)
movl 0x8(%r14,%r12), %esi
xorl $0x1, %esi
movq %rbx, %rdi
movl %ebp, %edx
callq 0x1dee3b
orb $-0x80, 0xf(%rax)
addq $0x20, %r12
jmp 0x1c67f3
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/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 0x1c6c39
movq (%rdi), %r8
movl %r10d, %r11d
shrl %r11d
movl %r10d, %ebx
andl $0x1, %ebx
movl %ebx, %r12d
xorl $0x1, %r12d
imulq $0x78, %r11, %r15
leaq (%r8,%r15), %r14
imulq $0x18, %r12, %r11
movq 0x20(%r11,%r14), %r12
movl 0x10(%r11,%r14), %r13d
addq $0xc, %r12
xorl %ebp, %ebp
xorl %r11d, %r11d
cmpq %r13, %rbp
jae 0x1c6bc9
cmpl $0x1, %r11d
ja 0x1c6bc9
movl (%r12), %r9d
notl %r9d
shrl $0x1f, %r9d
addl %r9d, %r11d
incq %rbp
addq $0x20, %r12
jmp 0x1c6ba7
cmpl $0x1, %r11d
jne 0x1c6c39
movl 0x4(%r8,%r15), %r11d
movl %ebx, %r8d
imulq $0x18, %r8, %r8
movq 0x20(%r8,%r14), %rbx
movl 0x10(%r8,%r14), %r14d
addq $0xc, %rbx
xorl %r15d, %r15d
xorl %ebp, %ebp
cmpq %r14, %r15
jae 0x1c6c0c
cmpl $0x1, %ebp
ja 0x1c6c0c
cmpl $0x0, (%rbx)
js 0x1c6c03
incl %ebp
movl -0x4(%rbx), %r10d
incq %r15
addq $0x20, %rbx
jmp 0x1c6bee
addl %r11d, %eax
cmpl $0x1, %ebp
je 0x1c6b6a
testl %ebp, %ebp
je 0x1c6c39
cmpl %edx, %eax
jge 0x1c6c39
movq -0x10(%rsp), %r8
movq -0x8(%rsp), %r9
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1c6829
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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
movl 0x8(%rdi), %ebp
addl %ebp, %ebp
xorl %r13d, %r13d
xorl %r15d, %r15d
cmpl %ebp, %r13d
je 0x1c7db0
movq (%rbx), %rax
movl %r13d, %ecx
shrl %ecx
imulq $0x1c, %rcx, %rdx
cmpl $0x0, 0x18(%rax,%rdx)
js 0x1c7da8
movq (%r14), %rax
imulq $0x78, %rcx, %rdx
cmpb $0x0, 0x70(%rax,%rdx)
jne 0x1c7da8
addq %rax, %rdx
movl %r13d, %ecx
andl $0x1, %ecx
imulq $0x18, %rcx, %rsi
movq 0x20(%rdx,%rsi), %rcx
movl 0x10(%rdx,%rsi), %edx
addq $0xc, %rcx
xorl %esi, %esi
xorl %edi, %edi
cmpq %rdx, %rsi
jae 0x1c7d30
cmpl $0x1, %edi
ja 0x1c7d30
cmpl $0x0, (%rcx)
js 0x1c7d27
movl -0x4(%rcx), %r12d
xorl $0x1, %r12d
incl %edi
incq %rsi
addq $0x20, %rcx
jmp 0x1c7d0e
cmpl $0x1, %edi
jne 0x1c7d7d
movl %r12d, %ecx
shrl %ecx
movl %r12d, %edx
andl $0x1, %edx
imulq $0x78, %rcx, %rcx
addq %rcx, %rax
imulq $0x18, %rdx, %rdx
movq 0x20(%rdx,%rax), %rcx
movl 0x10(%rdx,%rax), %eax
addq $0xc, %rcx
xorl %edx, %edx
xorl %esi, %esi
cmpq %rax, %rdx
jae 0x1c7d78
cmpl $0x1, %esi
ja 0x1c7d78
movl (%rcx), %edi
notl %edi
shrl $0x1f, %edi
addl %edi, %esi
incq %rdx
addq $0x20, %rcx
jmp 0x1c7d5c
cmpl $0x1, %esi
je 0x1c7da8
movl %r13d, %edx
xorl $0x1, %edx
movq %r14, %rdi
movq %rbx, %rsi
movq 0x10(%rsp), %rcx
leaq 0xc(%rsp), %r8
callq 0x1c7981
cmpq %r15, %rax
cmovbeq %r15, %rax
cmpl $0x0, 0xc(%rsp)
cmovneq %rax, %r15
incl %r13d
jmp 0x1c7cbe
xorl %eax, %eax
movl %eax, %eax
cmpq %rax, 0x8(%r14)
jbe 0x1c7dcd
movq (%rbx), %rcx
imulq $0x1c, %rax, %rdx
andl $0x7fffffff, 0x18(%rcx,%rdx) # imm = 0x7FFFFFFF
incl %eax
jmp 0x1c7db2
andq $0x0, 0x38(%rbx)
andq $0x0, 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_O2/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: get_usg_arc_mm(usg_t*, usg_arc_t*, usg_arc_mm_t**)
uint32_t get_usg_arc_mm(usg_t *g, usg_arc_t *z, usg_arc_mm_t **res)
{
    uint32_t v = z->ul>>32; (*res) = NULL;
    if(((uint32_t)z->idx) == 0) return 0;

    // fprintf(stderr, "[M::%s::] g->n::%u, v>>1::%u, v&1::%u, idx::%u, idx_n::%u, arc_mm.n::%u\n", __func__, 
    // (uint32_t)g->n, v>>1, v&1, (uint32_t)(z->idx>>32), (uint32_t)(z->idx), (uint32_t)(g->a[v>>1].arc_mm[v&1].n));

    (*res) = g->a[v>>1].arc_mm[v&1].a + (z->idx>>32);
    return ((uint32_t)z->idx);
}

// Assembly:
movq (%rsi), %rcx
andq $0x0, (%rdx)
movq 0x18(%rsi), %rax
testl %eax, %eax
je 0x1c8242
movq %rcx, %rsi
shrq $0x20, %rsi
shrq $0x21, %rcx
imulq $0x78, %rcx, %rcx
addq (%rdi), %rcx
andl $0x1, %esi
imulq $0x18, %rsi, %rsi
movq %rax, %rdi
shrq $0x20, %rdi
imulq $0xc, %rdi, %rdi
addq 0x50(%rsi,%rcx), %rdi
movq %rdi, (%rdx)
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O2/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
subq $0x18, %rsp
movl %edx, %ebx
movq %rdi, %r14
movl %esi, %eax
shrl %eax
andl $0x1, %esi
imulq $0x78, %rax, %rax
addq (%rdi), %rax
imulq $0x18, %rsi, %rcx
movq 0x20(%rcx,%rax), %rbp
movl 0x10(%rcx,%rax), %r13d
xorl $0x1, %ebx
shlq $0x5, %r13
leaq 0x14(%rsp), %r12
xorl %r15d, %r15d
cmpq %r15, %r13
je 0x1c851b
cmpl $0x0, 0xc(%rbp,%r15)
js 0x1c8510
movl 0x8(%rbp,%r15), %esi
cmpl %ebx, %esi
je 0x1c8516
andq $0x0, (%rsp)
movq %r14, %rdi
movq %r12, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x1dee72
cmpl $0x7, %eax
je 0x1c8516
movl 0x14(%rsp), %esi
cmpl %ebx, %esi
je 0x1c8516
cmpl $0x3, %eax
jne 0x1c8510
movq %r14, %rdi
leaq 0x10(%rsp), %rdx
callq 0x1df024
cmpl %ebx, 0x10(%rsp)
je 0x1c8516
addq $0x20, %r15
jmp 0x1c84bd
pushq $0x1
popq %rax
jmp 0x1c851d
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: check_hybrid_connect(usg_t*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int)
uint32_t check_hybrid_connect(usg_t *ng, uint32_t i_uid, uint32_t v, uint32_t vidx, uint32_t w, uint32_t widx)
{
    usg_arc_mm_t *z_a = NULL; uint32_t z_n, k;
    usg_arc_t *z = get_usg_arc(ng, v, w);
    if(!z) return 0;
    z_n = get_usg_arc_mm(ng, z, &z_a);
    if(!z_n) return 0;
    for (k = 0; k < z_n; k++) {
        if(z_a[k].uid != i_uid || z_a[k].off != vidx) continue;
        return 1;
    }
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %ebx
movl %esi, %ebp
movq %rdi, %r15
andq $0x0, (%rsp)
movl %edx, %esi
movl %r8d, %edx
callq 0x1dee3b
xorl %r14d, %r14d
testq %rax, %rax
je 0x1c9586
movq %rsp, %rdx
movq %r15, %rdi
movq %rax, %rsi
callq 0x1c8206
testl %eax, %eax
je 0x1c9586
movq (%rsp), %rcx
movl %eax, %eax
imulq $0xc, %rax, %rax
xorl %r14d, %r14d
pushq $0x1
popq %rdx
xorl %esi, %esi
cmpq %rsi, %rax
je 0x1c9586
cmpl %ebp, 0x4(%rcx,%rsi)
jne 0x1c957d
cmpl %ebx, 0x8(%rcx,%rsi)
je 0x1c9583
addq $0xc, %rsi
jmp 0x1c956c
movl %edx, %r14d
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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
andl $0x1, %esi
imulq $0x78, %rax, %rax
addq (%rdi), %rax
imulq $0x18, %rsi, %rdx
movq 0x20(%rdx,%rax), %rcx
movl 0x10(%rdx,%rax), %edx
shlq $0x5, %rdx
xorl %esi, %esi
xorl %eax, %eax
cmpq %rsi, %rdx
je 0x1c95cd
movl 0xc(%rcx,%rsi), %edi
notl %edi
shrl $0x1f, %edi
addl %edi, %eax
addq $0x20, %rsi
jmp 0x1c95b7
retq
// File: /workspace/github_cpp_makefile_star2_O2/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
pushq $-0x1
popq %rax
jne 0x1c9ee4
cmpl $0x3, %ecx
jne 0x1c9eb9
shrl %edi
andl $0x3ffffffe, %edi       # imm = 0x3FFFFFFE
movq %rdi, %rax
shlq $0x20, %rax
addq %rdi, %rax
incq %rax
retq
testb $0x1, %dil
jne 0x1c9ecf
testb $0x2, %dil
je 0x1c9ee4
shrl %edi
andl $0x3fffffff, %edi       # imm = 0x3FFFFFFF
jmp 0x1c9ed7
shrl %edi
andl $0x3ffffffe, %edi       # imm = 0x3FFFFFFE
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
orq %rdi, %rax
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x1ca8d6
movq (%rsi,%r8,8), %r9
cmpq $0x0, (%rdi,%r9,8)
js 0x1ca8d5
xorq $0x1, %r9
incq %r8
cmpq $0x0, (%rdi,%r9,8)
jns 0x1ca8b7
retq
movq (%rsi,%rdx,8), %rax
cmpq $0x0, (%rdi,%rax,8)
js 0x1ca8f4
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_O2/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 $0x38, %rsp
movq %rsi, 0x8(%rsp)
movq %rdi, %r14
xorl %r13d, %r13d
movl %r13d, %eax
movq 0x8(%r14), %rcx
addq %rcx, %rcx
cmpq %rax, %rcx
jbe 0x1cb323
movl %r13d, %edx
shrl %edx
movl %r13d, %ecx
andl $0x1, %ecx
imulq $0x78, %rdx, %rax
addq (%r14), %rax
movq %rcx, 0x10(%rsp)
imulq $0x18, %rcx, %rcx
movq 0x20(%rcx,%rax), %r15
movl 0x10(%rcx,%rax), %ebx
movl %r13d, %ebp
xorl $0x1, %ebp
incl %edx
movq %rdx, 0x18(%rsp)
shlq $0x5, %rbx
xorl %r12d, %r12d
movq %r13, 0x20(%rsp)
cmpq %r12, %rbx
je 0x1cb31b
movl 0x8(%r15,%r12), %esi
xorl $0x1, %esi
movq %r14, %rdi
movl %ebp, %edx
callq 0x1dee3b
movl 0xc(%r15,%r12), %r10d
testq %rax, %rax
je 0x1cb28f
movl 0xc(%rax), %ecx
xorl %r10d, %ecx
js 0x1cb28f
addq $0x20, %r12
jmp 0x1cb25c
pushq $0x1
popq %rcx
testq %rax, %rax
je 0x1cb29d
movl 0xc(%rax), %ecx
shrl $0x1f, %ecx
movq %rcx, 0x28(%rsp)
movl 0x8(%r15,%r12), %r11d
movl %r11d, %r13d
shrl %r13d
incl %r13d
movl %r11d, %eax
andl $0x1, %eax
shrl $0x1f, %r10d
movq 0x87d1f(%rip), %rcx     # 0x252fe0
movq (%rcx), %rdi
leaq 0x18f58(%rip), %rcx     # 0x1e4223
movq 0x10(%rsp), %rdx
movsbl (%rdx,%rcx), %r9d
movsbl (%rax,%rcx), %eax
movq %rax, 0x30(%rsp)
leaq 0x2f6e8(%rip), %rsi     # 0x1fa9cd
leaq 0x2f727(%rip), %rdx     # 0x1faa13
movq 0x8(%rsp), %rcx
movq 0x18(%rsp), %r8
xorl %eax, %eax
pushq 0x28(%rsp)
pushq %r10
pushq %r11
pushq 0x48(%rsp)
pushq %r13
movq 0x48(%rsp), %r13
pushq %r13
callq 0x22b0
addq $0x30, %rsp
jmp 0x1cb289
incl %r13d
jmp 0x1cb20c
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/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 0x2e900(%rip), %rsi     # 0x1fab7b
movq %rax, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x2050
leaq 0x2e412(%rip), %rsi     # 0x1fa6a1
movq %rbp, %rdi
callq 0x2210
movq %rax, %r15
movq %rbp, %rdi
callq 0x2220
testq %r15, %r15
je 0x1cc322
testq %r13, %r13
je 0x1cc2d8
leaq 0x2e8db(%rip), %rbp     # 0x1fab8e
xorl %ebx, %ebx
cmpq %rbx, %r12
je 0x1cc2d8
movq (%r13,%rbx,8), %rcx
movq %rcx, %rdx
shrq $0x20, %rdx
movq %r15, %rdi
movq %rbp, %rsi
xorl %eax, %eax
callq 0x22b0
incq %rbx
jmp 0x1cc2b5
testq %r14, %r14
movq (%rsp), %r13
je 0x1cc30c
leaq 0x2e8b9(%rip), %r12     # 0x1faba1
xorl %ebx, %ebx
cmpq %rbx, %r13
je 0x1cc30c
movq (%r14,%rbx,8), %rcx
movq %rcx, %rdx
shrq $0x20, %rdx
movq %r15, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x22b0
incq %rbx
jmp 0x1cc2ea
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_O2/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, 0x10(%rsp)
movq %rdi, 0x8(%rsp)
movq %rcx, %rdi
callq 0x2090
leaq 0x46(%rax), %rdi
callq 0x2280
movq %rax, %r13
leaq 0x2e850(%rip), %rsi     # 0x1fabba
movq %rax, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x2050
leaq 0x2e323(%rip), %rsi     # 0x1fa6a1
movq %r13, %rdi
callq 0x2210
movq %rax, %r12
movq %r13, %rdi
callq 0x2220
testq %r12, %r12
je 0x1cc40d
leaq 0x223d4(%rip), %rbp     # 0x1ee771
xorl %r14d, %r14d
cmpq 0x10(%rsp), %r14
je 0x1cc3f7
movq 0x8(%rsp), %rax
movq (%rax,%r14,8), %r13
movl %r13d, %r15d
cmpq $0x1, %r15
jbe 0x1cc41c
shrq $0x20, %r13
addq %r13, %r15
movq %r12, %rdi
leaq 0x2e84e(%rip), %rsi     # 0x1fac18
movq %r13, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x22b0
cmpq %r15, %r13
jae 0x1cc3f2
movq (%rbx,%r13,8), %rdx
movq %r12, %rdi
movq %rbp, %rsi
xorl %eax, %eax
callq 0x22b0
incq %r13
jmp 0x1cc3d7
incq %r14
jmp 0x1cc3a0
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 0x2e7a8(%rip), %rdi     # 0x1fabcb
leaq 0x2b0af(%rip), %rsi     # 0x1f74d9
leaq 0x2e7a4(%rip), %rcx     # 0x1fabd5
movl $0x3219, %edx           # imm = 0x3219
callq 0x2110
// File: /workspace/github_cpp_makefile_star2_O2/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), %r10
leaq (,%r10,8), %r8
addq 0x1b8(%rdi), %r8
movq 0x8(%rax,%rcx,8), %r9
subq %r10, %r9
xorl %eax, %eax
xorl %r10d, %r10d
cmpq %r9, %r10
je 0x1cced7
movq 0x1d0(%rdi), %rbx
movq (%r8,%r10,8), %r11
movq %r11, %r15
shrq $0x1b, %r15
andq $-0x20, %r15
movl 0x18(%rbx,%r15), %r14d
andl $0x7fffffff, %r14d      # imm = 0x7FFFFFFF
cmpl $0x2, %r14d
jb 0x1ccecf
addq %r15, %rbx
movq 0x10(%rbx), %rbx
movl %r11d, %r15d
movq (%rbx,%r15,8), %r15
movl %r15d, %r12d
shrl %r12d
cmpq %r12, %rcx
jne 0x1ccee3
movl %r15d, %r15d
cmpq %rsi, %r15
jne 0x1cceb1
incl %r11d
cmpq %r14, %r11
jae 0x1ccecf
movl (%rbx,%r11,8), %r15d
incq %r11
cmpq %rdx, %r15
jne 0x1cce9e
jmp 0x1ccecc
decl %r11d
movslq %r11d, %r11
testq %r11, %r11
js 0x1ccecf
movl (%rbx,%r11,8), %r14d
xorq %rdx, %r14
decq %r11
cmpq $0x1, %r14
jne 0x1cceb7
incq %rax
incq %r10
jmp 0x1cce49
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x2d124(%rip), %rdi     # 0x1fa00e
leaq 0x2a5e8(%rip), %rsi     # 0x1f74d9
leaq 0x2df38(%rip), %rcx     # 0x1fae30
movl $0x3303, %edx           # imm = 0x3303
callq 0x2110
// File: /workspace/github_cpp_makefile_star2_O2/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 %r8, %rcx
subq %r14, %rcx
movq %rcx, %rax
xorq $0x1, %rax
orq 0x90(%rsp), %rax
jne 0x1cd0ef
pushq $0x1
popq %rax
jmp 0x1cd15b
movq %r8, %rbx
movq %rdx, %r15
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 0x3f(%rip), %rsi        # 0x1cd165
callq 0xc67c0
xorl %ecx, %ecx
pushq $0x1
popq %rax
cmpq %rbx, %r14
jae 0x1cd153
movq 0x10(%r15), %rdx
movq (%rdx,%r14,8), %rsi
testq %rsi, %rsi
jns 0x1cd14e
btrq $0x3f, %rsi
movq %rsi, (%rdx,%r14,8)
movq %rax, %rcx
incq %r14
jmp 0x1cd130
xorl %eax, %eax
testq %rcx, %rcx
sete %al
addq $0x70, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: gen_sub_integer_path(unsigned long*, long, long, long, unsigned long, asg64_v*)
void gen_sub_integer_path(uint64_t *int_a, int64_t s, int64_t e, int64_t it, uint64_t v, asg64_v *res)
{
    int64_t k; res->n = 0; assert((int_a[it]>>1) == (v>>1));
    if(int_a[it] == v) {///forward
        kv_resize(uint64_t, *res, (uint64_t)(e - it));
        for (k = it; k < e; k++) res->a[res->n++] = int_a[k];
    } else {//reverse
        kv_resize(uint64_t, *res, (uint64_t)(it - s));
        for (k = it; k >= s; k--) res->a[res->n++] = int_a[k]^1;
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %r14
andq $0x0, (%r9)
movq (%rdi,%rcx,8), %rax
movq %rax, %rcx
xorq %r8, %rcx
cmpq $0x2, %rcx
jae 0x1d0583
movq %r9, %rbx
movq %rdi, %r15
movq 0x8(%r9), %rcx
cmpq %r8, %rax
jne 0x1d04f6
movq %rdx, %r13
movq %rdx, %rax
subq %r14, %rax
cmpq %rax, %rcx
jae 0x1d04ec
decq %rax
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x10, %rcx
orq %rax, %rcx
leaq 0x1(%rcx), %rax
movq %rax, 0x8(%rbx)
movq 0x10(%rbx), %rdi
leaq 0x8(,%rcx,8), %rsi
callq 0x2370
movq %rax, 0x10(%rbx)
jmp 0x1d04ec
movq (%r15,%r14,8), %rax
movq (%rbx), %rcx
movq 0x10(%rbx), %rdx
leaq 0x1(%rcx), %rsi
movq %rsi, (%rbx)
movq %rax, (%rdx,%rcx,8)
incq %r14
cmpq %r13, %r14
jl 0x1d04d3
jmp 0x1d0579
movq %rsi, %r12
movq %r14, %rax
subq %rsi, %rax
cmpq %rax, %rcx
jae 0x1d0574
decq %rax
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x10, %rcx
orq %rax, %rcx
leaq 0x1(%rcx), %rax
movq %rax, 0x8(%rbx)
movq 0x10(%rbx), %rdi
leaq 0x8(,%rcx,8), %rsi
callq 0x2370
movq %rax, 0x10(%rbx)
jmp 0x1d0574
movq (%r15,%r14,8), %rax
xorq $0x1, %rax
movq (%rbx), %rcx
movq 0x10(%rbx), %rdx
leaq 0x1(%rcx), %rsi
movq %rsi, (%rbx)
movq %rax, (%rdx,%rcx,8)
decq %r14
cmpq %r12, %r14
jge 0x1d0557
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x2adcb(%rip), %rdi     # 0x1fb355
leaq 0x26f48(%rip), %rsi     # 0x1f74d9
leaq 0x2add6(%rip), %rcx     # 0x1fb36e
movl $0x36dd, %edx           # imm = 0x36DD
callq 0x2110
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: prt_sub_integer_path(asg64_v*, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long)
void prt_sub_integer_path(asg64_v *res, uint64_t it, uint64_t w0, uint64_t w1, uint64_t z_n, uint64_t z)
{
    uint64_t k;
    fprintf(stderr, "(it::%lu) res->n::%u, w0::%lu, w1::%lu, z_n::%lu, z::%lu\n", it, (uint32_t)res->n, 
    w0, w1, z_n, z);
    for (k = 0; k < res->n; k++) {
        fprintf(stderr, "(it::%lu) utg%.6dl,", it, (int32_t)(res->a[k]>>1)+1);
    }
    fprintf(stderr, "\n");
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %r9, %r10
movq %r8, %r11
movq %rcx, %r9
movq %rdx, %r8
movq %rsi, %rbx
movq %rdi, %r14
movq 0x82a1c(%rip), %r12     # 0x252fe0
movq (%r12), %rdi
movl (%r14), %ecx
leaq 0x2adf2(%rip), %rsi     # 0x1fb3c4
movq %rbx, %rdx
xorl %eax, %eax
pushq %r10
pushq %r11
callq 0x22b0
addq $0x10, %rsp
leaq 0x2ae13(%rip), %r15     # 0x1fb3fe
xorl %r13d, %r13d
movq (%r12), %rsi
cmpq (%r14), %r13
jae 0x1d0619
movq 0x10(%r14), %rax
movq (%rax,%r13,8), %rcx
shrq %rcx
incl %ecx
movq %rsi, %rdi
movq %r15, %rsi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x22b0
incq %r13
jmp 0x1d05ee
pushq $0xa
popq %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x2270
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: gen_sub_integer_path_ff(unsigned long*, long, long, long, unsigned long, unsigned char*, asg64_v*)
uint64_t gen_sub_integer_path_ff(uint64_t *int_a, int64_t s, int64_t e, int64_t it, uint64_t v, uint8_t *f, asg64_v *res)
{
    int64_t k; res->n = 0; assert((int_a[it]>>1) == (v>>1));
    if(int_a[it] == v) {///forward
        kv_resize(uint64_t, *res, (uint64_t)(e - it));
        for (k = it; k < e; k++) {
            res->a[res->n++] = int_a[k];
            if(res->n > 1 && f[res->a[res->n-1]^1]) return res->n;
        }
    } else {//reverse
        kv_resize(uint64_t, *res, (uint64_t)(it - s));
        for (k = it; k >= s; k--) {
            res->a[res->n++] = int_a[k]^1;
            if(res->n > 1 && f[res->a[res->n-1]^1]) return res->n;
        }
    }
    res->n = 0; return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r14
movq 0x40(%rsp), %rbp
andq $0x0, (%rbp)
movq (%rdi,%rcx,8), %rax
movq %rax, %rcx
xorq %r8, %rcx
cmpq $0x2, %rcx
jae 0x1d0d0c
movq %r9, %rbx
movq %rdi, %r15
movq 0x8(%rbp), %rcx
cmpq %r8, %rax
jne 0x1d0c54
movq %rdx, %r13
movq %rdx, %rax
subq %r14, %rax
cmpq %rax, %rcx
jae 0x1d0c4a
decq %rax
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x10, %rcx
orq %rax, %rcx
leaq 0x1(%rcx), %rax
movq %rax, 0x8(%rbp)
movq 0x10(%rbp), %rdi
leaq 0x8(,%rcx,8), %rsi
callq 0x2370
movq %rax, 0x10(%rbp)
jmp 0x1d0c4a
movq (%r15,%r14,8), %rax
movq (%rbp), %rdx
movq 0x10(%rbp), %rcx
leaq 0x1(%rdx), %rsi
movq %rsi, (%rbp)
movq %rax, (%rcx,%rdx,8)
movq (%rbp), %rax
cmpq $0x2, %rax
jb 0x1d0c47
movq -0x8(%rcx,%rax,8), %rcx
xorq $0x1, %rcx
cmpb $0x0, (%rbx,%rcx)
jne 0x1d0cfd
incq %r14
cmpq %r13, %r14
jl 0x1d0c12
jmp 0x1d0cf6
movq %rsi, %r12
movq %r14, %rax
subq %rsi, %rax
cmpq %rax, %rcx
jae 0x1d0cf1
decq %rax
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x10, %rcx
orq %rax, %rcx
leaq 0x1(%rcx), %rax
movq %rax, 0x8(%rbp)
movq 0x10(%rbp), %rdi
leaq 0x8(,%rcx,8), %rsi
callq 0x2370
movq %rax, 0x10(%rbp)
jmp 0x1d0cf1
movq (%r15,%r14,8), %rax
xorq $0x1, %rax
movq (%rbp), %rdx
movq 0x10(%rbp), %rcx
leaq 0x1(%rdx), %rsi
movq %rsi, (%rbp)
movq %rax, (%rcx,%rdx,8)
movq (%rbp), %rax
cmpq $0x2, %rax
jb 0x1d0cee
movq -0x8(%rcx,%rax,8), %rcx
xorq $0x1, %rcx
cmpb $0x0, (%rbx,%rcx)
jne 0x1d0cfd
decq %r14
cmpq %r12, %r14
jge 0x1d0cb9
andq $0x0, (%rbp)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2a642(%rip), %rdi     # 0x1fb355
leaq 0x267bf(%rip), %rsi     # 0x1f74d9
leaq 0x2a796(%rip), %rcx     # 0x1fb4b7
movl $0x375f, %edx           # imm = 0x375F
callq 0x2110
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: get_best_pair(ul_resolve_t*, usg_t*, unsigned long*, unsigned long*, unsigned char*, unsigned long, unsigned long, asg64_v*, asg64_v*, unsigned long*, unsigned long*, asg64_v*)
void get_best_pair(ul_resolve_t *uidx, usg_t *ng, uint64_t *int_idx, uint64_t *int_a, 
uint8_t *f, uint64_t s, uint64_t e, asg64_v *b0, asg64_v *b1, uint64_t *ridx_a, 
uint64_t *ridx, asg64_v *res)
{
    uint64_t pi, v, k, *pz;
    b0->n = b1->n = 0; 
    for (k = s, pi = (uint64_t)-1; k < e; k++) {
        v = int_a[k]; 
        if((f[v^1])) {
            if(pi != (uint64_t)-1) {
                if(is_best_pair(uidx, ng, int_idx, int_a, s, e, k, v^1, ridx_a, ridx, b0, b1, f, 0.51)) {
                    kv_pushp(uint64_t, *res, &pz); 
                    *pz = pi; (*pz) <<= 32; (*pz) |= k;
                } 
            }
            pi = (uint64_t)-1;    
        }
        if(f[v]) {
            pi = (uint64_t)-1;
            if(is_best_pair(uidx, ng, int_idx, int_a, s, e, k, v, ridx_a, ridx, b0, b1, f, 0.51)) {
                pi = k;//keep the shortest pi<->k
            } 
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r15
movq %rdx, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movq %rdi, 0x8(%rsp)
movq 0x70(%rsp), %rax
movq 0x68(%rsp), %rcx
movq 0x60(%rsp), %r12
andq $0x0, (%rax)
andq $0x0, (%rcx)
pushq $-0x1
popq %r13
movq %r9, 0x20(%rsp)
cmpq %r12, %rbx
jae 0x1d11ad
movq (%r15,%rbx,8), %rbp
movq %rbp, %rax
xorq $0x1, %rax
cmpb $0x0, (%r14,%rax)
je 0x1d113a
pushq $-0x1
popq %rcx
cmpq $-0x1, %r13
je 0x1d113d
subq $0x8, %rsp
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
movq %r15, %rcx
movq 0x28(%rsp), %r8
movq %r12, %r9
movsd 0x124e8(%rip), %xmm0    # 0x1e3598
pushq %r14
pushq 0x80(%rsp)
pushq 0x80(%rsp)
pushq 0xa0(%rsp)
pushq 0xa0(%rsp)
pushq %rax
pushq %rbx
callq 0x1d0d2b
movq 0xc8(%rsp), %rdi
addq $0x40, %rsp
pushq $-0x1
popq %rcx
testq %rax, %rax
je 0x1d113d
movq (%rdi), %rcx
movq 0x10(%rdi), %rax
cmpq 0x8(%rdi), %rcx
jne 0x1d1123
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
pushq $0x2
popq %rcx
cmoveq %rcx, %rsi
movq %rsi, 0x8(%rdi)
shlq $0x3, %rsi
movq %rax, %rdi
callq 0x2370
movq 0x88(%rsp), %rdi
movq %rax, 0x10(%rdi)
movq (%rdi), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, (%rdi)
shlq $0x20, %r13
orq %rbx, %r13
movq %r13, (%rax,%rcx,8)
pushq $-0x1
popq %rcx
jmp 0x1d113d
movq %r13, %rcx
cmpb $0x0, (%r14,%rbp)
je 0x1d11a2
subq $0x8, %rsp
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
movq %r15, %rcx
movq 0x28(%rsp), %r8
movq %r12, %r9
movsd 0x1242e(%rip), %xmm0    # 0x1e3598
pushq %r14
pushq 0x80(%rsp)
pushq 0x80(%rsp)
pushq 0xa0(%rsp)
pushq 0xa0(%rsp)
pushq %rbp
pushq %rbx
callq 0x1d0d2b
addq $0x40, %rsp
cmpq $0x1, %rax
movl $0x0, %ecx
sbbq %rcx, %rcx
orq %rbx, %rcx
incq %rbx
movq %rcx, %r13
jmp 0x1d105e
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: debug_prt_renew_aln(usg_t*, unsigned long*, unsigned long, unsigned long*, unsigned long, asg64_v*, unsigned long*)
void debug_prt_renew_aln(usg_t *ng, uint64_t *int_idx, uint64_t int_idx_n, uint64_t *int_a, uint64_t int_an, asg64_v *b64, uint64_t *ridx)
{
    uint64_t k, s, e, i;
    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(stderr, "\n[M::%s::] occ::%lu\n", __func__, e - s);
        for (k = s; k <= e; k++) {
            // fprintf(stderr, "utg%.6dl(%c),", (int32_t)(int_a[k]>>1)+1, "+-"[int_a[k]&1]);
            fprintf(stderr, "utg%.6dl,", (int32_t)(int_a[k]>>1)+1);
        }
        fprintf(stderr, "\n");
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, (%rsp)
movq 0x81ac7(%rip), %r13     # 0x252fe0
xorl %ebp, %ebp
cmpq %r14, %rbp
je 0x1d1587
movq (%rsp), %rax
movq (%rax,%rbp,8), %r12
movl %r12d, %ecx
cmpq $0x1, %rcx
jbe 0x1d1596
shrq $0x20, %r12
leaq (%r12,%rcx), %r15
movq (%r13), %rdi
leaq 0x2a1e6(%rip), %rsi     # 0x1fb72a
leaq 0x2a1f4(%rip), %rdx     # 0x1fb73f
xorl %eax, %eax
callq 0x22b0
movq (%r13), %rsi
cmpq %r15, %r12
ja 0x1d157a
movq (%rbx,%r12,8), %rdx
shrq %rdx
incl %edx
movq %rsi, %rdi
leaq 0x29e9a(%rip), %rsi     # 0x1fb408
xorl %eax, %eax
callq 0x22b0
incq %r12
jmp 0x1d1552
pushq $0xa
popq %rdi
callq 0x2270
incq %rbp
jmp 0x1d151b
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2962e(%rip), %rdi     # 0x1fabcb
leaq 0x25f35(%rip), %rsi     # 0x1f74d9
leaq 0x2a11a(%rip), %rcx     # 0x1fb6c5
movl $0x3816, %edx           # imm = 0x3816
callq 0x2110
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: worker_ul_aln_path(void*, long, int)
static void worker_ul_aln_path(void *data, long i, int tid) // callback for kt_for()
{
    unique_bridge_check_t *u_aux = (unique_bridge_check_t*)data;
    ul_resolve_t *uidx = u_aux->uidx; 
    integer_t *buf = &(uidx->str_b.buf[tid]);
    uint64_t s, e;
    // 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, res; 
    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; 
    res.a = buf->res_dump.a; res.n = buf->res_dump.n; res.m = buf->res_dump.m;

    b_v.n = b_r.n = 0; 
    s = u_aux->int_idx[i]>>32; ///the i-th integer contig/path 
    e = s + ((uint32_t)(u_aux->int_idx[i])); 
    assert(e > s + 1);//the length is at least 2

    get_best_path(uidx, u_aux->ng, u_aux->int_idx, u_aux->int_a, u_aux->f, s, e, &b_v, &b_r, u_aux->ridx_a, u_aux->ridx, &res);
    // 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; 
    buf->res_dump.a = res.a; buf->res_dump.n = res.n; buf->res_dump.m = res.m;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rax
movq (%rdi), %rdi
movq 0x1d8(%rdi), %rbx
movslq %edx, %rcx
imulq $0x328, %rcx, %rcx      # imm = 0x328
movq 0xa0(%rbx,%rcx), %rdx
movq %rdx, 0x60(%rsp)
movq 0x98(%rbx,%rcx), %rdx
movq %rdx, 0x58(%rsp)
movq 0x88(%rbx,%rcx), %rdx
movq %rdx, 0x40(%rsp)
movq 0x80(%rbx,%rcx), %rdx
movq %rdx, 0x38(%rsp)
movq 0x310(%rbx,%rcx), %rdx
movq %rdx, 0x80(%rsp)
movups 0x300(%rbx,%rcx), %xmm0
andq $0x0, 0x30(%rsp)
movaps %xmm0, 0x70(%rsp)
andq $0x0, 0x50(%rsp)
movq 0x38(%rax), %rdx
movq (%rdx,%rsi,8), %r9
movl %r9d, %esi
cmpq $0x1, %rsi
jbe 0x1d19a0
addq %rcx, %rbx
shrq $0x20, %r9
addq %r9, %rsi
movq 0x28(%rax), %r8
movq 0x48(%rax), %rcx
movups 0x58(%rax), %xmm0
leaq 0x70(%rsp), %r14
movq %r14, 0x28(%rsp)
movups %xmm0, 0x18(%rsp)
leaq 0x30(%rsp), %r15
movq %r15, 0x10(%rsp)
leaq 0x50(%rsp), %r12
movq %r12, 0x8(%rsp)
movq %rsi, (%rsp)
callq 0x1d09af
movq 0x10(%r12), %rax
movq %rax, 0xa0(%rbx)
movaps (%r12), %xmm0
movups %xmm0, 0x90(%rbx)
movq 0x10(%r15), %rax
movq %rax, 0x88(%rbx)
movaps (%r15), %xmm0
movups %xmm0, 0x78(%rbx)
movq 0x10(%r14), %rax
movq %rax, 0x310(%rbx)
movaps (%r14), %xmm0
movups %xmm0, 0x300(%rbx)
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x29224(%rip), %rdi     # 0x1fabcb
leaq 0x25b2b(%rip), %rsi     # 0x1f74d9
leaq 0x2ac18(%rip), %rcx     # 0x1fc5cd
movl $0x37b8, %edx           # imm = 0x37B8
callq 0x2110
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: reset_scaf_node_uinfo_srt_t(usc_t*, long, long, long*)
uint64_t reset_scaf_node_uinfo_srt_t(usc_t *z, int64_t min_arc_len, int64_t scaf_len, int64_t *nlen)
{
    (*nlen) = scaf_len + (min_arc_len<<1);
    if(z->ulid == ((uint32_t)-1)) return 0;///a scaffold node
    if(z->raw_eof + min_arc_len <= z->raw_sof) {///has an overlap longer than min_arc_len; 
        return 1;///a scaffold node; no need this node, could directly use existing nodes
    }
    int64_t s, e;
    s = z->raw_sof; e = z->raw_eof; 
    (*nlen) = (min_arc_len<<1) + (e - s);  ///(e - s)>=(-min_arc_len)
    return 2;
}

// Assembly:
leaq (%rdx,%rsi,2), %rax
movq %rax, (%rcx)
cmpl $-0x1, 0x4(%rdi)
je 0x1d2269
movl 0x10(%rdi), %eax
movl 0x14(%rdi), %edx
leaq (%rdx,%rsi), %rdi
cmpq %rax, %rdi
jle 0x1d226c
addq %rsi, %rsi
addq %rdx, %rsi
subq %rax, %rsi
movq %rsi, (%rcx)
pushq $0x2
jmp 0x1d226e
xorl %eax, %eax
retq
pushq $0x1
popq %rax
retq