LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: follow_limit_path(asg_t*, unsigned int, unsigned int*, unsigned int*, asg64_v*, unsigned int)
uint32_t follow_limit_path(asg_t *g, uint32_t s, uint32_t *e, uint32_t *occ, asg64_v *b, uint32_t lim)
{
    
    uint32_t v = s, w = 0;
    uint32_t kv, kw;
    (*occ) = 0;


    while (1) {
        (*occ)++;
        kv = get_arcs(g, v, &w, 1);        
        (*e) = v;

        ///if(b) kv_push(uint32_t, b->b, v>>1);
        if(b) kv_push(uint64_t, *b, v);

        if(kv == 0) return END_TIPS;
        if(kv == 2) return TWO_OUTPUT;
        if(kv > 2) return MUL_OUTPUT;
        if((*occ) > lim) return LONG_TIPS;
        w = g->arc[w].v;
        ///up to here, kv=1
        ///kw must >= 1
        kw = get_arcs(g, w^1, NULL, 0);
        v = w;

        if(kw == 2) return TWO_INPUT;
        if(kw > 2) return MUL_INPUT;
        if(v == s) return LOOP;
    }

    return LONG_TIPS;   
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r9d, 0xc(%rsp)
movq %r8, %r14
movq %rcx, %r15
movq %rdx, 0x10(%rsp)
movl %esi, %ebp
movq %rdi, %r13
xorl %eax, %eax
leaq 0x8(%rsp), %rcx
movl %eax, (%rcx)
movl %eax, (%r15)
movl %esi, %ebx
incl (%r15)
movq %r13, %rdi
movl %ebx, %esi
leaq 0x8(%rsp), %rdx
movl $0x1, %ecx
callq 0x1e50d4
movl %eax, %r12d
movq 0x10(%rsp), %rax
movl %ebx, (%rax)
testq %r14, %r14
je 0x1e527a
movq 0x8(%r14), %rax
cmpq %rax, (%r14)
jne 0x1e5266
leaq (%rax,%rax), %rsi
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rsi
movq %rsi, 0x8(%r14)
movq 0x10(%r14), %rdi
shlq $0x3, %rsi
callq 0x2370
movq %rax, 0x10(%r14)
movl %ebx, %eax
movq (%r14), %rcx
movq 0x10(%r14), %rdx
leaq 0x1(%rcx), %rsi
movq %rsi, (%r14)
movq %rax, (%rdx,%rcx,8)
testl %r12d, %r12d
je 0x1e52fe
cmpl $0x2, %r12d
je 0x1e5321
ja 0x1e5306
movl 0xc(%rsp), %eax
cmpl %eax, (%r15)
ja 0x1e530e
movq 0x8(%r13), %rax
movl 0x8(%rsp), %ecx
leaq (%rcx,%rcx,2), %rcx
movl 0x8(%rax,%rcx,8), %ebx
movl %ebx, 0x8(%rsp)
movq %rbx, %rcx
xorq $0x1, %rcx
movq 0x28(%r13), %rdx
movq (%rdx,%rcx,8), %rcx
movq %rcx, %rdx
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
andq %rsi, %rdx
je 0x1e52e5
shrq $0x20, %rcx
xorl %esi, %esi
movl %ecx, %edi
leaq (%rdi,%rdi,2), %rdi
movl 0xc(%rax,%rdi,8), %edi
notl %edi
shrl $0x1f, %edi
addl %edi, %esi
incq %rcx
decq %rdx
jne 0x1e52ca
jmp 0x1e52e7
xorl %esi, %esi
cmpl $0x2, %esi
je 0x1e5313
ja 0x1e531b
cmpl %ebp, %ebx
jne 0x1e5212
movl $0x7, %r12d
jmp 0x1e5321
movl $0x5, %r12d
jmp 0x1e5321
movl $0x4, %r12d
jmp 0x1e5321
xorl %r12d, %r12d
jmp 0x1e5321
movl $0x1, %r12d
jmp 0x1e5321
movl $0x3, %r12d
movl %r12d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: recover_contain_g(asg_t*, ma_hit_t_alloc*, R_to_U*, long, long, long)
void recover_contain_g(asg_t *g, ma_hit_t_alloc *src, R_to_U* ruIndex, int64_t max_hang, int64_t min_ovlp, int64_t ul_occ)
{
    sset_aux s; s.g = g; s.src = src; s.ruIndex = ruIndex;
    s.max_hang = max_hang; s.min_ovlp = min_ovlp; s.ul_occ = ul_occ;
    kt_for(asm_opt.thread_num, update_sg_contain, &s, g->n_seq);
    uint32_t k;
    for (k = 0; k < g->n_seq; k++) {
        if(g->seq_vis[k]) g->seq[k].del = 0;
    }
    memset(g->seq_vis, 0, (sizeof(*(g->seq_vis))*(g->n_seq<<1)));
}

// Assembly:
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %rax
movq %rdi, (%rax)
movq %rsi, 0x8(%rax)
movq %rdx, 0x18(%rax)
movq %rcx, 0x20(%rax)
movq %r8, 0x28(%rax)
movq %r9, 0x30(%rax)
leaq 0xa45da(%rip), %rcx     # 0x28a758
movl 0x7c(%rcx), %edi
movl 0x14(%rbx), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
leaq 0x50(%rip), %rsi        # 0x1e61e1
movq %rax, %rdx
callq 0x1047b4
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
andl 0x14(%rbx), %ecx
je 0x1e61cb
xorl %eax, %eax
movq 0x30(%rbx), %rcx
cmpb $0x0, (%rcx,%rax)
je 0x1e61ba
movq 0x20(%rbx), %rcx
andl $0x7fffffff, (%rcx,%rax,8) # imm = 0x7FFFFFFF
incq %rax
movl 0x14(%rbx), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpq %rcx, %rax
jb 0x1e61a5
movq 0x30(%rbx), %rdi
addl %ecx, %ecx
movslq %ecx, %rdx
xorl %esi, %esi
callq 0x20e0
addq $0x40, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: normalize_gou0(void*, long, int)
static void normalize_gou0(void *data, long i, int tid)
{
    sset_aux *sl = (sset_aux *)data;
    asg_t *g = sl->g;
    asg_arc_t *e = &(g->arc[i]);
    if(e->v > (e->ul>>32)) return;
    uint32_t k, v = e->v^1, w = (e->ul>>32)^1, ou;
    uint32_t nv = asg_arc_n(g, v);
    asg_arc_t *av = asg_arc_a(g, v);
    for (k = 0; k < nv; ++k) {
        if (av[k].v == w) {
            ou = MAX(av[k].ou, e->ou);
            av[k].ou = e->ou = ou;
            break;
        }
    }
}

// Assembly:
movq (%rdi), %rdi
movq 0x8(%rdi), %rax
leaq (%rsi,%rsi,2), %rcx
movl 0x8(%rax,%rcx,8), %esi
movq (%rax,%rcx,8), %rdx
shrq $0x20, %rdx
cmpq %rsi, %rdx
jb 0x1e64cb
xorq $0x1, %rsi
movq 0x28(%rdi), %rdi
movq (%rdi,%rsi,8), %rsi
testl %esi, %esi
je 0x1e64cb
leaq (%rax,%rcx,8), %rcx
movq %rsi, %rdi
shrq $0x20, %rdi
leaq (%rdi,%rdi,2), %rdi
leaq (%rax,%rdi,8), %rax
addq $0x10, %rax
movl -0x8(%rax), %edi
xorl %edx, %edi
cmpl $0x1, %edi
je 0x1e64cc
addq $0x18, %rax
decl %esi
jne 0x1e64b9
retq
movzwl (%rax), %edx
movl $0x3fff, %esi           # imm = 0x3FFF
andl %esi, %edx
movzwl 0x10(%rcx), %edi
andl %edi, %esi
cmpw %si, %dx
cmoval %edx, %esi
andl $0xc000, %edi           # imm = 0xC000
orl %esi, %edi
movw %di, 0x10(%rcx)
movl $0xffffc000, %ecx       # imm = 0xFFFFC000
andl (%rax), %ecx
orl %esi, %ecx
movw %cx, (%rax)
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: update_sg_uo_t(void*, long, int)
static void update_sg_uo_t(void *data, long i, int tid)
{
	sset_aux *sl = (sset_aux *)data;
	ma_hit_t_alloc *src = sl->src; asg_t *g = sl->g;
	asg_arc_t *e = &(g->arc[i]); uint32_t k, qn, tn;
    ma_hit_t_alloc *x = &(src[e->ul>>33]);
    e->ou = 0;
    if(e->del) return;
	for (k = 0; k < x->length; k++) {
		qn = Get_qn(x->buffer[k]);
		tn = Get_tn(x->buffer[k]);
		if(qn == (e->ul>>33) && tn == (e->v>>1)) {
			e->ou = (x->buffer[k].bl>OU_MASK?OU_MASK:x->buffer[k].bl);
			break;
		}
	}
	assert(k < x->length);
}

// Assembly:
pushq %rax
movq (%rdi), %rax
movq 0x8(%rax), %rdx
leaq (%rsi,%rsi,2), %r9
movq (%rdx,%r9,8), %rsi
shrq $0x21, %rsi
leaq (%rsi,%rsi,2), %rax
shlq $0x3, %rax
addq 0x8(%rdi), %rax
movzwl 0x10(%rdx,%r9,8), %ecx
andl $0xc000, %ecx           # imm = 0xC000
movw %cx, 0x10(%rdx,%r9,8)
cmpl $0x0, 0xc(%rdx,%r9,8)
js 0x1e65a0
movl 0xc(%rax), %r8d
testq %r8, %r8
je 0x1e656b
leaq (%rdx,%r9,8), %rdi
movq (%rax), %r9
xorl %edx, %edx
cmpl %esi, 0x4(%r9)
jne 0x1e655a
movl 0x8(%rdi), %r10d
shrl %r10d
cmpl %r10d, 0xc(%r9)
je 0x1e656f
incq %rdx
addq $0x28, %r9
cmpq %rdx, %r8
jne 0x1e6547
movl %r8d, %edx
jmp 0x1e659b
xorl %edx, %edx
jmp 0x1e659b
movq 0x18(%r9), %rsi
movq %rsi, %r8
shrq $0x20, %r8
movl $0x3fff, %r9d           # imm = 0x3FFF
andl %r9d, %r8d
movabsq $0x7fffc00000000000, %r10 # imm = 0x7FFFC00000000000
testq %r10, %rsi
cmovnel %r9d, %r8d
orl %r8d, %ecx
movw %cx, 0x10(%rdi)
cmpl 0xc(%rax), %edx
jae 0x1e65a2
popq %rax
retq
leaq 0x52970(%rip), %rdi     # 0x238f19
leaq 0x52d75(%rip), %rsi     # 0x239325
leaq 0x57bf0(%rip), %rcx     # 0x23e1a7
movl $0x31f, %edx            # imm = 0x31F
callq 0x2110
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: is_dedup_weak_arc(asg_arc_t*, unsigned int, unsigned int, ma_hit_t_alloc*)
uint32_t is_dedup_weak_arc(asg_arc_t *av, uint32_t an, uint32_t ak, ma_hit_t_alloc *rev)
{
    uint32_t k, w, m; ma_hit_t_alloc *z = NULL;
    for (k = 0; k < an; k++) {
        if((k == ak) || (av[k].del) || (!av[k].strong)) continue;
        if(av[k].ol > av[ak].ol) {
            z = &(rev[av[k].v>>1]); w = (av[ak].v^(av[k].v&1));
            for (m = 0; m < z->length; m++) {
                if((z->buffer[m].tn<<1|(z->buffer[m].rev)) == w) break;
            }
            if(m < z->length) return 1;
        }
    }

    return 0;
}

// Assembly:
testl %esi, %esi
je 0x1e8bab
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %eax
leaq (%rax,%rax,2), %rdx
leaq (%rdi,%rdx,8), %rdx
movl %esi, %esi
xorl %r8d, %r8d
movl $0x7fffffff, %r9d       # imm = 0x7FFFFFFF
cmpq %rax, %r8
je 0x1e8b94
leaq (%r8,%r8,2), %r11
movl 0xc(%rdi,%r11,8), %r10d
testl %r10d, %r10d
js 0x1e8b94
leaq (%rdi,%r11,8), %r11
testb $0x40, 0x11(%r11)
je 0x1e8b94
movl 0xc(%rdx), %ebx
andl %r9d, %ebx
cmpl %ebx, %r10d
jle 0x1e8b94
movl 0x8(%r11), %r10d
movl %r10d, %r11d
shrl %r11d
leaq (%r11,%r11,2), %rbx
movl 0xc(%rcx,%rbx,8), %r11d
testl %r11d, %r11d
setne %bpl
je 0x1e8b94
leaq (%rcx,%rbx,8), %rbx
andl $0x1, %r10d
xorl 0x8(%rdx), %r10d
movq (%rbx), %rbx
movl 0xc(%rbx), %r14d
movl 0x18(%rbx), %r15d
shrdl $0x1f, %r14d, %r15d
cmpl %r10d, %r15d
je 0x1e8b8f
addq $0x40, %rbx
leal -0x1(%r11), %r14d
xorl %ebp, %ebp
cmpl %ebp, %r14d
je 0x1e8b94
movl -0xc(%rbx), %r15d
movl (%rbx), %r12d
shrdl $0x1f, %r15d, %r12d
addq $0x28, %rbx
incl %ebp
cmpl %r10d, %r12d
jne 0x1e8b6c
cmpl %r11d, %ebp
setb %bpl
testb %bpl, %bpl
jne 0x1e8bae
incq %r8
cmpq %rsi, %r8
jne 0x1e8af4
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
retq
movl $0x1, %eax
jmp 0x1e8ba2
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: iter_flex_asg(flex_asg_t*, flex_asg_e_retrive_t*, unsigned int)
asg_arc_t *iter_flex_asg(flex_asg_t *fg, flex_asg_e_retrive_t *rr, uint32_t v)
{
    asg_arc_t *av; uint32_t nv; asg_arc_t *z;
    av = asg_arc_a(fg->g, v); nv = asg_arc_n(fg->g, v);
    while(rr->i[0] < nv) {
        return &(av[rr->i[0]++]);
    }

    if(rr->i[0] >= nv && rr->i[0] != ((uint32_t)-1)) {
        rr->i[0] = ((uint32_t)-1); rr->i[1] = fg->idx[v];
    }
    while (rr->i[1] != ((uint32_t)-1)) {
        z = &(fg->a[rr->i[1]]); rr->i[1] = fg->pi.a[rr->i[1]];
        return z;
    }
    return NULL;
}

// Assembly:
movq 0x30(%rdi), %rcx
movq 0x28(%rcx), %rax
movl %edx, %edx
movq (%rax,%rdx,8), %r8
movl (%rsi), %eax
cmpl %r8d, %eax
jae 0x1ea85a
shrq $0x20, %r8
leaq (%r8,%r8,2), %rdx
shlq $0x3, %rdx
addq 0x8(%rcx), %rdx
leal 0x1(%rax), %ecx
movl %ecx, (%rsi)
leaq (%rax,%rax,2), %rax
leaq (%rdx,%rax,8), %rax
retq
cmpl $-0x1, %eax
je 0x1ea86f
movl $0xffffffff, (%rsi)     # imm = 0xFFFFFFFF
movq 0x38(%rdi), %rax
movl (%rax,%rdx,4), %eax
movl %eax, 0x4(%rsi)
movl 0x4(%rsi), %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, %rcx
je 0x1ea893
leaq (%rcx,%rcx,2), %rax
shlq $0x3, %rax
addq 0x58(%rdi), %rax
movq 0x50(%rdi), %rdx
movl (%rdx,%rcx,4), %ecx
movl %ecx, 0x4(%rsi)
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: push_flex_asg_t(flex_asg_t*, asg_arc_t*)
void push_flex_asg_t(flex_asg_t *fg, asg_arc_t *z)
{
    asg_arc_t *av; uint32_t nv, k, v = z->ul>>32;
    av = asg_arc_a(fg->g, v); nv = asg_arc_n(fg->g, v);
    for (k = 0; k < nv; k++) {
        if(av[k].del) {
            av[k] = *z; 
            if(!(fg->need_srt)) {
                if(k > 0 && av[k].ul < av[k-1].ul) fg->need_srt = 1;
                if(k+1 < nv && av[k].ul > av[k+1].ul) fg->need_srt = 1;
            }
            return;
        }
    }

    k = fg->n; fg->need_srt = 1;
    kv_push(asg_arc_t, *fg, *z); 
    kv_push(uint32_t, fg->pi, fg->idx[v]); fg->idx[v] = k;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %r15
shrq $0x20, %r15
movq 0x30(%rdi), %rcx
movq 0x28(%rcx), %rax
movq (%rax,%r15,8), %rax
testl %eax, %eax
je 0x1eae3d
movq %rax, %rdx
shrq $0x20, %rdx
leaq (%rdx,%rdx,2), %rdx
shlq $0x3, %rdx
addq 0x8(%rcx), %rdx
movl %eax, %edi
negl %edi
movl $0x1, %esi
movq %rdx, %rcx
cmpl $0x0, 0xc(%rcx)
js 0x1eaef0
addq $0x18, %rcx
leal (%rdi,%rsi), %r8d
incl %r8d
incl %esi
cmpl $0x1, %r8d
jne 0x1eae20
movq 0x60(%rbx), %r12
movq 0x68(%rbx), %rax
movq $0x1, 0x20(%rbx)
cmpq %rax, %r12
jne 0x1eae7b
leaq (%rax,%rax), %rcx
testq %rax, %rax
movl $0x2, %eax
cmovneq %rcx, %rax
movq %rax, 0x68(%rbx)
movq 0x58(%rbx), %rdi
shlq $0x3, %rax
leaq (%rax,%rax,2), %rsi
callq 0x2370
movq %rax, 0x58(%rbx)
movq 0x58(%rbx), %rax
movq 0x60(%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x60(%rbx)
leaq (%rcx,%rcx,2), %rcx
movq 0x10(%r14), %rdx
movq %rdx, 0x10(%rax,%rcx,8)
movups (%r14), %xmm0
movups %xmm0, (%rax,%rcx,8)
movq 0x48(%rbx), %rax
cmpq %rax, 0x40(%rbx)
jne 0x1eaecf
leaq (%rax,%rax), %rcx
testq %rax, %rax
movl $0x2, %esi
cmovneq %rcx, %rsi
movq %rsi, 0x48(%rbx)
movq 0x50(%rbx), %rdi
shlq $0x2, %rsi
callq 0x2370
movq %rax, 0x50(%rbx)
movq 0x38(%rbx), %rax
movq 0x40(%rbx), %rcx
movl (%rax,%r15,4), %edx
movq 0x50(%rbx), %rsi
leaq 0x1(%rcx), %rdi
movq %rdi, 0x40(%rbx)
movl %edx, (%rsi,%rcx,4)
movl %r12d, (%rax,%r15,4)
jmp 0x1eaf39
movq 0x10(%r14), %rdi
movq %rdi, 0x10(%rcx)
movups (%r14), %xmm0
movups %xmm0, (%rcx)
cmpq $0x0, 0x20(%rbx)
jne 0x1eaf39
cmpl $0x1, %esi
je 0x1eaf24
movq (%rcx), %rdi
leal -0x2(%rsi), %r8d
leaq (%r8,%r8,2), %r8
cmpq (%rdx,%r8,8), %rdi
jae 0x1eaf24
movq $0x1, 0x20(%rbx)
cmpl %eax, %esi
jae 0x1eaf39
movq (%rcx), %rax
cmpq 0x18(%rcx), %rax
jbe 0x1eaf39
movq $0x1, 0x20(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: flex_asg_t_cleanup(flex_asg_t*)
void flex_asg_t_cleanup(flex_asg_t *fg)
{
    asg_arc_t *p; uint32_t i;
    if(fg->n) {
        for (i = 0; i < fg->n; i++) {
            if(fg->a[i].del) continue;
            p = asg_arc_pushp(fg->g);
            *p = fg->a[i];
        }
        free(fg->g->idx);
        fg->g->idx = 0;
        fg->g->is_srt = 0;
    } else if(fg->need_srt){
        fg->g->is_srt = 0;
    }
    asg_cleanup(fg->g);
    // asg_symm(fg->g);
    // asg_arc_del_trans_ul(fg->g, fg->gap_fuzz);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpq $0x0, 0x60(%rdi)
je 0x1ebd25
cmpq $0x0, 0x60(%rbx)
je 0x1ebd0a
movl $0x1, %ebp
xorl %eax, %eax
movl $0x7fffffff, %r14d      # imm = 0x7FFFFFFF
movl $0x10, %r15d
movq 0x58(%rbx), %rcx
leaq (%rax,%rax,2), %r12
cmpl $0x0, 0xc(%rcx,%r12,8)
js 0x1ebcfc
movq 0x30(%rbx), %r13
movl 0x4(%r13), %ecx
andl %r14d, %ecx
movl (%r13), %eax
cmpl %eax, %ecx
jne 0x1ebcbc
leal (%rax,%rax), %ecx
testl %eax, %eax
cmovel %r15d, %ecx
movl %ecx, (%r13)
movq 0x8(%r13), %rdi
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rsi
callq 0x2370
movq %rax, 0x8(%r13)
movq 0x8(%r13), %rax
movl 0x4(%r13), %ecx
movl %ecx, %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
leal 0x1(%rcx), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl $0x80000000, %ecx       # imm = 0x80000000
orl %esi, %ecx
movl %ecx, 0x4(%r13)
leaq (%rdx,%rdx,2), %rcx
movq 0x58(%rbx), %rdx
movups (%rdx,%r12,8), %xmm0
movups %xmm0, (%rax,%rcx,8)
movq 0x10(%rdx,%r12,8), %rdx
movq %rdx, 0x10(%rax,%rcx,8)
movl %ebp, %eax
incl %ebp
cmpq %rax, 0x60(%rbx)
ja 0x1ebc77
movq 0x30(%rbx), %rax
movq 0x28(%rax), %rdi
callq 0x2220
movq 0x30(%rbx), %rax
movq $0x0, 0x28(%rax)
jmp 0x1ebd30
cmpq $0x0, 0x20(%rbx)
je 0x1ebd34
movq 0x30(%rbx), %rax
andb $0x7f, 0x7(%rax)
movq 0x30(%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xa02fa
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: label_contain_dup(asg_t*, R_to_U*, unsigned int, asg64_v*, asg64_v*)
void label_contain_dup(asg_t *g, R_to_U* rI, uint32_t v0, asg64_v *b, asg64_v *dump)
{
    asg_arc_t *av; uint32_t nv, v, i;
    if(!is_contain_r((*rI), (v0>>1))) return;
    b->n = 0; kv_push(uint64_t, *b, v0);
    while (b->n) {
        v = kv_pop(*b);
        if(g->seq_vis[v]&1) continue;
        kv_push(uint64_t, *dump, v);
        g->seq_vis[v] |= 1;
        av = asg_arc_a(g, v); 
        nv = asg_arc_n(g, v);
        for (i = 0; i < nv; ++i) {
            if(av[i].del || (g->seq_vis[av[i].v]&1) || (!is_contain_r((*rI), (av[i].v>>1)))) continue;
            kv_push(uint64_t, *b, av[i].v);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, (%rsp)
movl %edx, %eax
shrl %eax
cmpq %rax, (%rsi)
jbe 0x1ec0a6
movq %rcx, %r14
movq %rsi, %r15
movq 0x8(%rsi), %rcx
cmpl $0x0, (%rcx,%rax,4)
js 0x1ec0a6
movl %edx, %ebp
movq %rdi, %r12
movq $0x0, (%r14)
cmpq $0x0, 0x8(%r14)
jne 0x1ebf6e
movq $0x2, 0x8(%r14)
movq 0x10(%r14), %rdi
movl $0x10, %esi
callq 0x2370
movq %rax, 0x10(%r14)
movl %ebp, %eax
movq (%r14), %rcx
movq 0x10(%r14), %rdx
leaq 0x1(%rcx), %rsi
movq %rsi, (%r14)
movq %rax, (%rdx,%rcx,8)
movq (%r14), %rax
testq %rax, %rax
je 0x1ec0a6
movq 0x10(%r14), %rcx
leaq -0x1(%rax), %rdx
movq %rdx, (%r14)
movl -0x8(%rcx,%rax,8), %ebx
movq 0x30(%r12), %rax
testb $0x1, (%rax,%rbx)
jne 0x1ebf82
movq (%rsp), %r13
movq 0x8(%r13), %rax
cmpq %rax, (%r13)
jne 0x1ebfdb
leaq (%rax,%rax), %rsi
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rsi
movq %rsi, 0x8(%r13)
movq 0x10(%r13), %rdi
shlq $0x3, %rsi
callq 0x2370
movq %rax, 0x10(%r13)
movq (%r13), %rax
movq 0x10(%r13), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, (%r13)
movq %rbx, (%rcx,%rax,8)
movq 0x30(%r12), %rax
orb $0x1, (%rax,%rbx)
movq 0x28(%r12), %rax
movq (%rax,%rbx,8), %rax
testl %eax, %eax
je 0x1ebf82
movq 0x8(%r12), %rcx
movq %rax, %rdx
shrq $0x20, %rdx
movl %eax, %eax
leaq (%rdx,%rdx,2), %rdx
leaq (%rcx,%rdx,8), %rbp
addq $0x8, %rbp
shlq $0x3, %rax
leaq (%rax,%rax,2), %r13
xorl %ebx, %ebx
cmpl $0x0, 0x4(%rbp,%rbx)
js 0x1ec098
movq 0x30(%r12), %rcx
movl (%rbp,%rbx), %eax
testb $0x1, (%rcx,%rax)
jne 0x1ec098
shrl %eax
cmpq %rax, (%r15)
jbe 0x1ec098
movq 0x8(%r15), %rcx
cmpl $0x0, (%rcx,%rax,4)
js 0x1ec098
movq 0x8(%r14), %rax
cmpq %rax, (%r14)
jne 0x1ec082
leaq (%rax,%rax), %rsi
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rsi
movq %rsi, 0x8(%r14)
movq 0x10(%r14), %rdi
shlq $0x3, %rsi
callq 0x2370
movq %rax, 0x10(%r14)
movl (%rbp,%rbx), %eax
movq (%r14), %rcx
movq 0x10(%r14), %rdx
leaq 0x1(%rcx), %rsi
movq %rsi, (%r14)
movq %rax, (%rdx,%rcx,8)
addq $0x18, %rbx
cmpq %rbx, %r13
jne 0x1ec02d
jmp 0x1ebf82
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: asg_iterative_semi_circ(asg_t*, ma_hit_t_alloc*, asg64_v*, unsigned int, unsigned int, telo_end_t*)
void asg_iterative_semi_circ(asg_t *g, ma_hit_t_alloc* src, asg64_v *in, uint32_t normal_len, uint32_t pop_chimer, telo_end_t *te)
{
    uint64_t occ = 0, s = 1;
    while (s) {
        s = asg_cut_semi_circ(g, LIM_LEN, 0);
        if(pop_chimer) s = s + asg_cut_chimeric_bub(g, src, in, normal_len, 0, te);
        occ += s;
    }

    // stats_sysm(g);
    if(occ) asg_cleanup(g);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, 0x10(%rsp)
movl %r8d, %ebp
movl %ecx, 0xc(%rsp)
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbx
xorl %r14d, %r14d
movq %rbx, %rdi
movl $0x64, %esi
xorl %edx, %edx
callq 0x1ed416
movl %eax, %r15d
testl %ebp, %ebp
je 0x1edafe
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
movl 0xc(%rsp), %ecx
xorl %r8d, %r8d
movq 0x10(%rsp), %r9
callq 0x1ed663
movl %eax, %eax
addq %rax, %r15
addq %r15, %r14
testq %r15, %r15
jne 0x1edac9
testq %r14, %r14
je 0x1edb21
movq %rbx, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xa02fa
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: prt_spec_edge(asg_t*, ma_hit_t_alloc*, unsigned int, unsigned int, unsigned int, ug_opt_t*, char const*)
void prt_spec_edge(asg_t *rg, ma_hit_t_alloc *src, uint32_t tot_rid, uint32_t vid, uint32_t wid, ug_opt_t *uopt, const char *cmd)
{
    if(vid >= tot_rid) return;
    uint32_t k, qn, tn; int32_t r; asg_arc_t p; ma_hit_t_alloc *s = &(src[vid]); 
    for (k = 0; k < s->length; k++) {
        qn = Get_qn(s->buffer[k]); tn = Get_tn(s->buffer[k]);
        if(qn == vid && tn == wid) {
            r = ma_hit2arc(&(s->buffer[k]), rg->seq[qn].len, rg->seq[tn].len, uopt->max_hang, asm_opt.max_hang_rate, uopt->min_ovlp, &p);
            fprintf(stderr, "[M::%s::]%s\tqn::%u(%c)\tq::[%u,\t%u)\t%c\ttn::%u(%c)\tt::[%u,\t%u)\n", 
                    __func__, cmd, qn, (r>=0)?("+-"[(p.ul>>32)&1]):('*'), Get_qs(s->buffer[k]), Get_qe(s->buffer[k]), 
                    "+-"[s->buffer[k].rev], 
                    tn, (r>=0)?("+-"[p.v&1]):('*'), Get_ts(s->buffer[k]), Get_te(s->buffer[k]));
        }
    }
}

// Assembly:
cmpl %edx, %ecx
jae 0x1ee340
movl %ecx, %eax
leaq (%rax,%rax,2), %rax
cmpl $0x0, 0xc(%rsi,%rax,8)
je 0x1ee340
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %r10
leaq (%rsi,%rax,8), %r13
xorl %r15d, %r15d
xorl %ebx, %ebx
movq %r9, 0x10(%rsp)
movl %r8d, 0x4(%rsp)
movl %ecx, (%rsp)
movq %rdi, 0x8(%rsp)
movq (%r13), %r14
movq (%r14,%r15), %rbp
movq %rbp, %r12
shrq $0x20, %r12
cmpl %ecx, %r12d
jne 0x1ee21a
movl 0xc(%r14,%r15), %edx
cmpl %r8d, %edx
je 0x1ee22f
incq %rbx
movl 0xc(%r13), %eax
addq $0x28, %r15
cmpq %rax, %rbx
jb 0x1ee1fc
jmp 0x1ee332
leaq (%r14,%r15), %rdi
movq 0x20(%r10), %rax
movl (%rax,%r12,8), %esi
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
andl %ecx, %esi
movq %rdx, 0x28(%rsp)
movl (%rax,%rdx,8), %edx
andl %ecx, %edx
leaq 0x9c505(%rip), %rax     # 0x28a758
movss 0x158(%rax), %xmm0
movl 0x40(%r9), %ecx
movl 0x44(%r9), %r8d
leaq 0x30(%rsp), %r9
callq 0x1eb21b
movl $0x2a, %r11d
movl $0x2a, %r9d
testl %eax, %eax
js 0x1ee293
btq $0x20, 0x30(%rsp)
leaq 0x37f38(%rip), %rcx     # 0x2261c3
adcq $0x0, %rcx
movsbl (%rcx), %r9d
movq 0x9bd46(%rip), %rcx     # 0x289fe0
movq (%rcx), %rdi
movl 0x8(%r14,%r15), %ecx
movq %rcx, 0x20(%rsp)
movl 0x18(%r14,%r15), %ecx
shrl $0x1f, %ecx
leaq 0x37f0d(%rip), %rdx     # 0x2261c3
movsbl (%rcx,%rdx), %ecx
movq %rcx, 0x18(%rsp)
testl %eax, %eax
js 0x1ee2d6
movl 0x38(%rsp), %eax
andl $0x1, %eax
leaq 0x37ef2(%rip), %rcx     # 0x2261c3
movsbl (%rax,%rcx), %r11d
movl 0x10(%r14,%r15), %r10d
movl 0x14(%r14,%r15), %r14d
subq $0x8, %rsp
leaq 0x4b68f(%rip), %rsi     # 0x23997a
leaq 0x4b6c6(%rip), %rdx     # 0x2399b8
movq 0x88(%rsp), %rcx
movl %r12d, %r8d
xorl %eax, %eax
pushq %r14
pushq %r10
pushq %r11
pushq 0x48(%rsp)
pushq 0x40(%rsp)
pushq 0x50(%rsp)
pushq %rbp
callq 0x22b0
addq $0x40, %rsp
movq 0x10(%rsp), %r9
movl 0x4(%rsp), %r8d
movl (%rsp), %ecx
movq 0x8(%rsp), %r10
jmp 0x1ee21a
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: gen_spec_edge(asg_t*, ug_opt_t*, unsigned int, unsigned int, asg_arc_t*)
int32_t gen_spec_edge(asg_t *rg, ug_opt_t *uopt, uint32_t v, uint32_t w, asg_arc_t *t)
{
    uint32_t k, qn, tn; int32_t r; ma_hit_t_alloc *s = &(uopt->sources[v>>1]); asg_arc_t p;
    for (k = 0; k < s->length; k++) {
        qn = Get_qn(s->buffer[k]); tn = Get_tn(s->buffer[k]);
        if(tn != (w>>1)) continue;
        r = ma_hit2arc(&(s->buffer[k]), rg->seq[qn].len, rg->seq[tn].len, uopt->max_hang, asm_opt.max_hang_rate, uopt->min_ovlp, &p);
        if(r < 0) continue;
        if((p.ul>>32) != v || p.v != w) continue;
        *t = p; t->ou = 0;
        return 1;
    }
    return -1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, %r12
movq 0x8(%rsi), %rdi
movl %edx, %esi
shrl %esi
leaq (%rsi,%rsi,2), %rsi
movl 0xc(%rdi,%rsi,8), %r15d
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testq %r15, %r15
je 0x1ee42c
movq %r8, 0x10(%rsp)
leaq (%rdi,%rsi,8), %rax
movq (%rax), %r13
movl %ecx, 0x8(%rsp)
movl %ecx, %ebp
shrl %ebp
leaq 0x9c3c9(%rip), %rax     # 0x28a758
movss 0x158(%rax), %xmm0
movss %xmm0, 0xc(%rsp)
movl %edx, %eax
movq %rax, 0x18(%rsp)
movl $0x7fffffff, %ebx       # imm = 0x7FFFFFFF
movl 0xc(%r13), %eax
cmpl %ebp, %eax
jne 0x1ee3f8
movl 0x4(%r13), %ecx
movq 0x20(%r12), %rdx
movl (%rdx,%rcx,8), %esi
andl %ebx, %esi
movl (%rdx,%rax,8), %edx
andl %ebx, %edx
movl 0x40(%r14), %ecx
movl 0x44(%r14), %r8d
movq %r13, %rdi
movss 0xc(%rsp), %xmm0
leaq 0x20(%rsp), %r9
callq 0x1eb21b
testl %eax, %eax
js 0x1ee3f8
movq 0x18(%rsp), %rax
cmpl %eax, 0x24(%rsp)
jne 0x1ee3f8
movl 0x8(%rsp), %eax
cmpl %eax, 0x28(%rsp)
je 0x1ee408
addq $0x28, %r13
decq %r15
jne 0x1ee3a9
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x1ee42c
movq 0x30(%rsp), %rax
movq 0x10(%rsp), %rcx
movq %rax, 0x10(%rcx)
movups 0x20(%rsp), %xmm0
movups %xmm0, (%rcx)
andl $0xc000, %eax           # imm = 0xC000
movw %ax, 0x10(%rcx)
movl $0x1, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: init_flex_asg_t(asg_t*, ma_hit_t_alloc*, long, long, long, long)
flex_asg_t *init_flex_asg_t(asg_t *g, ma_hit_t_alloc* src, int64_t min_ovlp, int64_t max_hang, int64_t max_hang_rate, int64_t gap_fuzz)
{
    flex_asg_t *z; CALLOC(z, 1);
    z->g = g; z->src = src; z->min_ovlp = min_ovlp; z->gap_fuzz = gap_fuzz;
    z->max_hang = max_hang; z->max_hang_rate = max_hang_rate; 
    MALLOC(z->idx, (z->g->n_seq<<1)); memset(z->idx, -1, (z->g->n_seq<<1)*sizeof(*(z->idx)));
    return z;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %rbx
movq %r8, (%rsp)
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbp
movl $0x1, %edi
movl $0x70, %esi
callq 0x2120
movq %rax, %r14
movq %rbp, 0x30(%rax)
movq %r13, (%rax)
movq %r12, 0x8(%rax)
movq %rbx, 0x28(%rax)
movq %r15, 0x10(%rax)
movq (%rsp), %rax
movq %rax, 0x18(%r14)
movl 0x14(%rbp), %eax
addl %eax, %eax
movslq %eax, %rbx
shlq $0x2, %rbx
movq %rbx, %rdi
callq 0x2280
movq %rax, 0x38(%r14)
movq %rax, %rdi
movl $0xff, %esi
movq %rbx, %rdx
callq 0x20e0
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: clear_path_dp_t(path_dp_t*, asg_t*)
void clear_path_dp_t(path_dp_t *x, asg_t *g)
{
    uint32_t n_vx = g->n_seq<<1;
    x->ref.n = x->pat.n = x->pat_cor.n = 0; 
    kv_resize(uint8_t, x->g_flt, n_vx); x->g_flt.n = n_vx;
    memset(x->g_flt.a, 0, sizeof(*(x->g_flt.a))*x->g_flt.n);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movl 0x14(%rsi), %ebx
addl %ebx, %ebx
xorl %eax, %eax
movq %rax, 0x30(%rdi)
movq %rax, 0x18(%rdi)
movq %rax, (%rdi)
cmpq %rbx, 0x50(%rdi)
jae 0x1f073a
leaq -0x1(%rbx), %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, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x50(%r14)
movq 0x58(%r14), %rdi
callq 0x2370
movq %rax, 0x58(%r14)
movq %rbx, 0x48(%r14)
movq 0x58(%r14), %rdi
xorl %esi, %esi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x20e0
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: clear_ubuf_t(ubuf_t*, asg_t*, all_ul_t*, int)
void clear_ubuf_t(ubuf_t *x, asg_t *g, all_ul_t *ul_idx, int32_t up_dp)
{
    uint32_t n_vx = g->n_seq<<1;
    x->a.n = x->S.n = x->T.n = x->b.n = x->e.n = 0;
    kv_resize(uinfo_t, x->a, n_vx); x->a.n = n_vx; memset(x->a.a, 0, sizeof(*(x->a.a))*x->a.n);
    if(up_dp) clear_path_dp_t(&(x->dp), g);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
movl 0x14(%rsi), %r15d
addl %r15d, %r15d
xorl %eax, %eax
movq %rax, 0x60(%rdi)
movq %rax, 0x48(%rdi)
movq %rax, 0x30(%rdi)
movq %rax, 0x18(%rdi)
movq %rax, (%rdi)
cmpq %r15, 0x8(%rdi)
jae 0x1f07d1
leaq -0x1(%r15), %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, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x8(%r14)
movq 0x10(%r14), %rdi
shlq $0x5, %rsi
callq 0x2370
movq %rax, 0x10(%r14)
movq %r15, (%r14)
movq 0x10(%r14), %rdi
shlq $0x5, %r15
xorl %esi, %esi
movq %r15, %rdx
callq 0x20e0
testl %ebp, %ebp
je 0x1f0806
addq $0x90, %r14
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1f06d2
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: get_ul_read_weight(all_ul_t*, unsigned int*, uinfo_t*, ul_vec_t*, unsigned int, unsigned int, unsigned int)
uint64_t get_ul_read_weight(all_ul_t *ul, uint32_t *prg, uinfo_t *g_idx, ul_vec_t *p, uint32_t ii, uint32_t v, uint32_t w)
{
    assert((!p->bb.a[ii].base)&&(p->bb.a[ii].hid == (v>>1))&&(p->bb.a[ii].el)&&(p->bb.a[ii].pchain));
    if(p->bb.a[ii].aidx == (uint32_t)-1) return 0; ///not connected
    uc_block_t *li = NULL, *lk = NULL; uint32_t li_v, lk_v;
    li = &(p->bb.a[ii]); li_v = (((uint32_t)(li->hid))<<1)|((uint32_t)(li->rev)); //li_v^=1;
    if(li_v != v) return 0;

    for (lk = &(p->bb.a[li->aidx]), w^=1; lk; ) {
        lk_v = (((uint32_t)(lk->hid))<<1)|((uint32_t)(lk->rev)); //lk_v^=1;
        while (lk_v != (w^1)) {
            if(g_idx[w].p==(uint32_t)-1) break;
            w = g_idx[w].p;
        }

        if(lk_v == (w^1)) {

        }

        lk = ((lk->aidx==(uint32_t)-1)?NULL:&(p->bb.a[lk->aidx]));
        
    }
    return 1;
}

// Assembly:
movq 0x30(%rcx), %rcx
movl %r8d, %eax
leaq (%rax,%rax,8), %rdx
movzbl 0x20(%rcx,%rdx,4), %eax
testb $0x40, %al
jne 0x1f0857
testb $0x1f, %al
je 0x1f0857
testb %al, %al
jns 0x1f0857
leaq (%rcx,%rdx,4), %rdx
movl (%rdx), %ecx
movl %r9d, %esi
shrl %esi
cmpl %esi, %ecx
jne 0x1f0857
cmpl $-0x1, 0x1c(%rdx)
je 0x1f0854
shrl $0x5, %eax
andl $0x1, %eax
leal (%rax,%rcx,2), %ecx
xorl %eax, %eax
cmpl %r9d, %ecx
sete %al
retq
xorl %eax, %eax
retq
pushq %rax
leaq 0x49312(%rip), %rdi     # 0x239b71
leaq 0x48abf(%rip), %rsi     # 0x239325
leaq 0x4935d(%rip), %rcx     # 0x239bca
movl $0xd22, %edx            # imm = 0xD22
callq 0x2110
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: ulg_len_check(asg_t*, unsigned int, uc_block_t*)
uint64_t ulg_len_check(asg_t *g, uint32_t v, uc_block_t *p)
{
    // if(!(((v&1) && (p->ts==0)) || (((v&1)==0) && (p->te==g->seq[v>>1].len)))) {
    //     fprintf(stderr, "\n[M::%s::] v>>1:%u, v&1:%u, ts:%u, te:%u, tlen:%u, qs:%u, qe:%u, pidx:%u, aidx:%u, flag:%u\n", 
    //     __func__, v>>1, v&1, p->ts, p->te, g->seq[v>>1].len, p->qs, p->qe, p->pidx, p->aidx, flag);
    // }
    // assert(((v&1) && (p->ts==0)) || (((v&1)==0) && (p->te==g->seq[v>>1].len)));
    if(!(((v&1) && (p->ts==0)) || (((v&1)==0) && (p->te==g->seq[v>>1].len)))) return 0;
    // if((v&1) && (p->ts!=0)) return 0;
    // if(((v&1)==0) && (p->te!=g->seq[v>>1].len)) return 0;
    if(p->ts==0 && p->te==g->seq[v>>1].len) return 1;
    int32_t ol = arc_first(g, v).ol;///max len
    int32_t tl = p->te - p->ts;
    tl -= ol;
    if(tl > 20000 || tl > (g->seq[v>>1].len*0.2)) return 1;
    return 0;
}

// Assembly:
testb $0x1, %sil
jne 0x1f089a
movq 0x20(%rdi), %rax
movl %esi, %ecx
shrl %ecx
movl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
andl (%rax,%rcx,8), %r8d
cmpl %r8d, 0x10(%rdx)
je 0x1f08a0
jmp 0x1f091d
cmpl $0x0, 0xc(%rdx)
jne 0x1f091d
movl 0xc(%rdx), %ecx
testl %ecx, %ecx
jne 0x1f08c6
movq 0x20(%rdi), %rax
movl %esi, %r8d
shrl %r8d
movl $0x7fffffff, %r9d       # imm = 0x7FFFFFFF
andl (%rax,%r8,8), %r9d
movl $0x1, %eax
cmpl %r9d, 0x10(%rdx)
je 0x1f091f
movq 0x8(%rdi), %rax
movq 0x28(%rdi), %r8
movl %esi, %r9d
movl 0x4(%r8,%r9,8), %r8d
leaq (%r8,%r8,2), %r9
movl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
movl 0xc(%rax,%r9,8), %eax
andl %r8d, %eax
movl 0x10(%rdx), %edx
addl %ecx, %eax
subl %eax, %edx
movl $0x1, %eax
cmpl $0x4e20, %edx           # imm = 0x4E20
jg 0x1f091f
cvtsi2sd %edx, %xmm0
movq 0x20(%rdi), %rcx
shrl %esi
andl (%rcx,%rsi,8), %r8d
cvtsi2sd %r8d, %xmm1
mulsd 0x34b69(%rip), %xmm1    # 0x225480
ucomisd %xmm1, %xmm0
ja 0x1f091f
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: update_l_coord(asg_t*, unsigned long, unsigned int, uc_block_t*, unsigned long*, unsigned long*)
void update_l_coord(asg_t *g, uint64_t o_s, uint32_t v, uc_block_t *p, uint64_t *s, uint64_t *e)
{
    // if(!(((v&1) && (p->ts==0)) || (((v&1)==0) && (p->te==g->seq[v>>1].len)))) {
    //     fprintf(stderr, "\n[M::%s::] v>>1:%u, v&1:%u, ts:%u, te:%u, tlen:%u\n", 
    //     __func__, v>>1, v&1, p->ts, p->te, g->seq[v>>1].len);
    // }
    // assert(((v&1) && (p->ts==0)) || (((v&1)==0) && (p->te==g->seq[v>>1].len)));
    // assert((v&1) && (p->ts==0));
    // assert(((v&1)==0) && (p->te==g->seq[v>>1].len));
    if(((v&1)==0)) {
        (*s) = o_s + p->ts; (*e) = o_s + p->te;
    } else {
        (*s) = o_s + g->seq[v>>1].len - p->te;
        (*e) = o_s + g->seq[v>>1].len - p->ts;
    }
}

// Assembly:
testb $0x1, %dl
jne 0x1f0936
movl 0xc(%rcx), %eax
addq %rsi, %rax
movq %rax, (%r8)
movl 0x10(%rcx), %eax
addq %rsi, %rax
jmp 0x1f0964
movq 0x20(%rdi), %rax
shrl %edx
movl (%rax,%rdx,8), %edi
movl $0x7fffffff, %r10d      # imm = 0x7FFFFFFF
andq %r10, %rdi
addq %rsi, %rdi
movl 0x10(%rcx), %r11d
subq %r11, %rdi
movq %rdi, (%r8)
movl (%rax,%rdx,8), %eax
andq %r10, %rax
addq %rsi, %rax
movl 0xc(%rcx), %ecx
subq %rcx, %rax
movq %rax, (%r9)
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: get_arch_len(asg_t*, unsigned int, unsigned int)
uint32_t get_arch_len(asg_t *g, uint32_t v, uint32_t w)
{

    uint32_t i, an; asg_arc_t *av; 
    av = asg_arc_a(g, v); an = asg_arc_n(g, v);     
    for (i = 0; i < an; i++) {
        if(av[i].del) continue;
        if(av[i].v == w) return ((uint32_t)av[i].ul);
    }
    return (uint32_t)-1;
}

// Assembly:
movq 0x28(%rdi), %rax
movl %esi, %ecx
movq (%rax,%rcx,8), %rsi
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %esi, %esi
je 0x1f0f38
movq 0x8(%rdi), %rcx
movq %rsi, %rdi
shrq $0x20, %rdi
movl %esi, %r8d
leaq (%rdi,%rdi,2), %rsi
leaq (%rcx,%rsi,8), %rdi
addq $0xc, %rdi
shlq $0x3, %r8
leaq (%r8,%r8,2), %r9
xorl %r8d, %r8d
cmpl $0x0, (%rdi,%r8)
js 0x1f0f2f
cmpl %edx, -0x4(%rdi,%r8)
je 0x1f0f39
addq $0x18, %r8
cmpq %r8, %r9
jne 0x1f0f21
retq
leaq (%rcx,%rsi,8), %rax
movl (%r8,%rax), %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: node_check(unsigned int, unsigned int, unsigned int, unsigned int, double, unsigned int)
uint64_t node_check(uint32_t ul_v, uint32_t g_v, uint32_t ul_v_len, uint32_t g_v_len, double diff_len, uint32_t ul_weight)
{
    if(ul_v != g_v) return 0;
    uint32_t x = ((ul_v_len >= g_v_len)? (ul_v_len - g_v_len): (g_v_len - ul_v_len));
    if(x > g_v_len*diff_len) return 0;
    if(g_v_len == 0) {
        return ul_weight;
    } else {
        return (((double)(g_v_len-x))/((double)g_v_len))*ul_weight;
    }
}

// Assembly:
cmpl %esi, %edi
jne 0x1f1827
movl %edx, %eax
subl %ecx, %eax
negl %eax
subl %ecx, %edx
cmovbl %eax, %edx
cvtsi2sd %rdx, %xmm2
movl %ecx, %eax
cvtsi2sd %rax, %xmm1
mulsd %xmm1, %xmm0
ucomisd %xmm0, %xmm2
jbe 0x1f182a
xorl %eax, %eax
retq
testl %ecx, %ecx
je 0x1f186b
subl %edx, %ecx
xorps %xmm0, %xmm0
cvtsi2sd %rcx, %xmm0
movl %r8d, %eax
xorps %xmm2, %xmm2
cvtsi2sd %rax, %xmm2
divsd %xmm1, %xmm0
mulsd %xmm0, %xmm2
cvttsd2si %xmm2, %rcx
movq %rcx, %rdx
sarq $0x3f, %rdx
subsd 0x33a09(%rip), %xmm2    # 0x225268
cvttsd2si %xmm2, %rax
andq %rdx, %rax
orq %rcx, %rax
retq
movl %r8d, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: print_dp_matrix(path_dp_t*)
void print_dp_matrix(path_dp_t *dp)
{
    uint64_t i, j;
    for (i = 0; i < dp->n; i++) {//pat
        for (j = 0; j < dp->m; j++) {//mat
            fprintf(stderr, "%ld<%u>,\t", dp->m_score.a[ul_dp_idx(*dp, i, j)], dp->m_dir.a[ul_dp_idx(*dp, i, j)]);
        }
        fprintf(stderr, "\n");
    }
    
}

// Assembly:
cmpq $0x0, 0x90(%rdi)
je 0x1f1904
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0x98750(%rip), %r15     # 0x289fe0
leaq 0x484ec(%rip), %r14     # 0x239d83
xorl %r12d, %r12d
movq 0x98(%rbx), %rax
testq %rax, %rax
je 0x1f18e2
xorl %r13d, %r13d
movq (%r15), %rdi
movq 0x88(%rbx), %rcx
imulq %r12, %rax
leaq (%rax,%r13), %rdx
movq (%rcx,%rdx,8), %rdx
addq 0x70(%rbx), %rax
movzbl (%r13,%rax), %ecx
movq %r14, %rsi
xorl %eax, %eax
callq 0x22b0
incq %r13
movq 0x98(%rbx), %rax
cmpq %rax, %r13
jb 0x1f18a9
movq (%r15), %rsi
movl $0xa, %edi
callq 0x2270
incq %r12
cmpq 0x90(%rbx), %r12
jb 0x1f189a
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: get_eul_weight(bubble_type*, unsigned int, unsigned int, uinfo_t*, ubuf_t*, all_ul_t*, asg_t*)
uint64_t get_eul_weight(bubble_type* bub, uint32_t v, uint32_t w, uinfo_t *g_idx, ubuf_t *b, all_ul_t *ul, asg_t *g)
{
    uint64_t *a, to = 0; int64_t a_n, l, k;
    a = ul->ridx.occ.a + ul->ridx.idx.a[v>>1];
	a_n = ul->ridx.idx.a[(v>>1)+1] - ul->ridx.idx.a[v>>1]; 
    b->dp.pat.n = b->dp.pat_cor.n = b->dp.ref.n = 0;
    for (l = 0, k = 1; k <= a_n; k++) {
        if((k == a_n) || ((a[k]>>32) != (a[l]>>32))) {
            // if((v == 106 && w == 103) || (v == 24 && w == 23)) {
            //     fprintf(stderr, "+[M::%s::] l->%ld, k->%ld, a_n->%ld\n", __func__, l, k, a_n);
            // }
            to += ul_dp(bub, ul, b, a + l, k - l, g, v, w, 1);
            // if((v == 106 && w == 103) || (v == 24 && w == 23)) { 
            //     fprintf(stderr, "-[M::%s::] l->%ld, k->%ld, a_n->%ld\n", __func__, l, k, a_n);
            // }
            to += ul_dp(bub, ul, b, a + l, k - l, g, v, w, 0);
            // if((v == 106 && w == 103) || (v == 24 && w == 23)) {
            //     fprintf(stderr, "*[M::%s::] l->%ld, k->%ld, a_n->%ld\n", __func__, l, k, a_n);
            // }
            l = k;
        }
    }

    return to;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdx, 0x28(%rsp)
movq %rdi, 0x18(%rsp)
movq 0x28(%r9), %rax
movq %rsi, 0x20(%rsp)
movl %esi, %ecx
shrl %ecx
movl (%rax,%rcx,4), %edx
movl 0x4(%rax,%rcx,4), %esi
movq %rdx, %rcx
shlq $0x3, %rcx
movq %r9, 0x38(%rsp)
addq 0x40(%r9), %rcx
movq %rcx, 0x10(%rsp)
xorl %eax, %eax
movq %rax, 0x90(%r8)
movq %rax, 0xc0(%r8)
movq %r8, 0x30(%rsp)
movq %rax, 0xa8(%r8)
subl %edx, %esi
movq %rsi, 0x8(%rsp)
je 0x1f2234
xorl %esi, %esi
movq 0x8(%rsp), %rcx
cmpq $0x1, %rcx
movl $0x0, %edx
sbbq %rcx, %rdx
movq %rdx, 0x40(%rsp)
movl $0x1, %r13d
xorl %eax, %eax
movq 0x38(%rsp), %rbx
movq 0x30(%rsp), %rbp
movq 0x28(%rsp), %r15
cmpq %r13, 0x8(%rsp)
je 0x1f219a
movq 0x10(%rsp), %rdx
movq (%rdx,%rsi,8), %rcx
xorq (%rdx,%r13,8), %rcx
shrq $0x20, %rcx
je 0x1f221c
movq 0x10(%rsp), %rcx
leaq (%rcx,%rsi,8), %rcx
movq %rcx, 0x50(%rsp)
movq %r13, %r14
subq %rsi, %r14
subq $0x8, %rsp
movq 0x20(%rsp), %rdi
movq %rax, 0x50(%rsp)
movq %rbx, %rsi
movq %rbp, %rdx
movq %r14, %r8
movq 0x98(%rsp), %r9
pushq $0x1
pushq %r15
pushq 0x38(%rsp)
callq 0x1f1eac
addq $0x20, %rsp
movq %rax, %r12
addq 0x48(%rsp), %r12
subq $0x8, %rsp
movq 0x20(%rsp), %rdi
movq %rbx, %rsi
movq %rbp, %rdx
movq 0x58(%rsp), %rcx
movq %r14, %r8
movq 0x98(%rsp), %r9
pushq $0x0
pushq %r15
pushq 0x38(%rsp)
callq 0x1f1eac
addq $0x20, %rsp
addq %r12, %rax
movq %r13, %rsi
movq 0x40(%rsp), %rcx
addq %r13, %rcx
incq %rcx
incq %r13
cmpq $0x1, %rcx
jne 0x1f217c
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: phrase_exact_chains(ul_resolve_t*, unsigned long*, long, asg_t*, unsigned long, unsigned long)
void phrase_exact_chains(ul_resolve_t *uidx, uint64_t *a, int64_t a_n, asg_t *bg, uint64_t bub_id, uint64_t inner_beg)
{
    int64_t k, l;
    for (k = l = 0; k < a_n; k++) {
        if(k+1 >= a_n) continue;
        if((arc_first(bg, a[k]>>32)).el) continue;
        get_chain_ul_cov(uidx, a+l, k+1-l, bub_id, inner_beg + l);
        l = k + 1;
    }
    if(l < a_n) get_chain_ul_cov(uidx, a+l, a_n-l, bub_id, inner_beg + l);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
testq %rdx, %rdx
jle 0x1f2c5a
movq %rcx, %r12
movq %rbx, %r13
negq %r13
movl $0x1, %ebp
xorl %eax, %eax
cmpq %rbx, %rbp
jge 0x1f2c44
movq 0x8(%r12), %rcx
movq 0x28(%r12), %rdx
movl -0x4(%r15,%rbp,8), %esi
movl 0x4(%rdx,%rsi,8), %edx
leaq (%rdx,%rdx,2), %rdx
cmpb $0x0, 0x12(%rcx,%rdx,8)
jne 0x1f2c44
leaq (%r15,%rax,8), %rsi
movq %rbp, %rdx
subq %rax, %rdx
movq %r14, %rdi
callq 0x1f28fe
movq %rbp, %rax
leaq 0x1(,%rbp), %rcx
addq %r13, %rcx
incq %rbp
cmpq $0x1, %rcx
jne 0x1f2c0c
jmp 0x1f2c5c
xorl %eax, %eax
subq %rax, %rbx
jle 0x1f2c7e
leaq (%r15,%rax,8), %rsi
movq %r14, %rdi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1f28fe
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: resolve_dip_bub_chains(ul_resolve_t*)
void resolve_dip_bub_chains(ul_resolve_t *uidx)
{
    bubble_type *bub = uidx->bub; 
    uint32_t i; int32_t k, l, un; ma_utg_t *u; 
    for (i = 0; i < bub->b_ug->u.n; i++) {
        u = &(bub->b_ug->u.a[i]); un = u->n;
        if(un <= 1) continue;///single bubble
        for (l = -1, k = 0; k <= un; k++) {
            if((k == un) || ((u->a[k]>>33) >= bub->f_bub)) {///not a complete bubble
                // if(k < un) {
                //     fprintf(stderr, "++++++[M::%s::] l->%d, k->%d, bid->%lu, f_bub->%lu\n", 
                //     __func__, l, k, (u->a[k]>>33), bub->f_bub);
                // }
                if(k - l > 1) {///at least a complete bubble
                    // fprintf(stderr, "\n[M::%s::] l->%d, k->%d\n", __func__, l, k);
                    phrase_exact_chains(uidx, u->a+l+1, k-l-1, bub->b_g, i, l+1);
                }
                l = k;
            }
        }

    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, (%rsp)
movq 0x28(%rdi), %r14
movq 0xc0(%r14), %rax
cmpq $0x0, (%rax)
je 0x1f2d41
xorl %r15d, %r15d
movq 0x10(%rax), %rax
leaq (%r15,%r15,4), %rcx
movslq 0x10(%rax,%rcx,8), %r12
cmpq $0x2, %r12
jl 0x1f2d2e
leaq (%rax,%rcx,8), %r13
leal 0x1(%r12), %ebp
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
xorl %ebx, %ebx
cmpq %rbx, %r12
je 0x1f2cf1
movq 0x18(%r13), %rcx
movq (%rcx,%rbx,8), %rcx
shrq $0x21, %rcx
cmpq 0x80(%r14), %rcx
jb 0x1f2d26
movl %ebx, %ecx
subl %eax, %ecx
cmpl $0x1, %ecx
jle 0x1f2d24
movq 0x18(%r13), %rcx
movslq %eax, %rdx
leaq (%rcx,%rdx,8), %rsi
addq $0x8, %rsi
movl %eax, %edx
notl %edx
addl %ebx, %edx
movq 0xb8(%r14), %rcx
incl %eax
movslq %eax, %r9
movq (%rsp), %rdi
callq 0x1f2be3
movl %ebx, %eax
incq %rbx
cmpq %rbx, %rbp
jne 0x1f2cd7
incl %r15d
movq 0xc0(%r14), %rax
cmpq %r15, (%rax)
ja 0x1f2cb4
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: ug_occ_w(unsigned long, unsigned long, ma_utg_t*)
uint64_t ug_occ_w(uint64_t is, uint64_t ie, ma_utg_t *u)
{
    if(is == 0 && ie == u->len) return u->n;
    uint64_t l, i, us, ue, occ;
    for (i = l = occ = 0; i < u->n; i++) {
		us = l; ue = l + Get_READ_LENGTH(R_INF, (u->a[i]>>33));
        // if(is == 15390 && ie == 31730) {
        //     fprintf(stderr, "[M::%s::i->%lu] is->%lu, ie->%lu, us->%lu, ue->%lu, u->len->%u\n", 
        //     __func__, i, is, ie, us, ue, u->len);
        // }
		if(is <= us && ie >= ue) occ++;
		if(us >= ie) break;
		l += (uint32_t)u->a[i];
	}
    return occ;
}

// Assembly:
testq %rdi, %rdi
jne 0x1f2d65
movl (%rdx), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cmpq %rsi, %rax
jne 0x1f2d65
movl 0x10(%rdx), %eax
retq
movl 0x10(%rdx), %ecx
testq %rcx, %rcx
je 0x1f2db8
leaq 0x984bc(%rip), %rax     # 0x28b230
movq 0x18(%rax), %r8
xorl %eax, %eax
xorl %r9d, %r9d
xorl %r10d, %r10d
cmpq %rdi, %r9
jb 0x1f2d9f
movq 0x18(%rdx), %r11
movq (%r11,%r10,8), %r11
shrq $0x21, %r11
movq (%r8,%r11,8), %r11
addq %r9, %r11
cmpq %r11, %rsi
sbbq $-0x1, %rax
cmpq %rsi, %r9
jae 0x1f2db7
movq 0x18(%rdx), %r11
movl (%r11,%r10,8), %r11d
addq %r11, %r9
incq %r10
cmpq %r10, %rcx
jne 0x1f2d80
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: init_ul_resolve_t(asg_t*, ma_ug_t*, bubble_type*, all_ul_t*, ug_opt_t*, unsigned char*)
ul_resolve_t *init_ul_resolve_t(asg_t *sg, ma_ug_t *init_ug, bubble_type* bub, all_ul_t *idx, ug_opt_t *uopt, uint8_t *r_het)
{
    ul_resolve_t *p = NULL; CALLOC(p, 1);
    p->sg = sg; p->init_ug = init_ug; p->bub = bub; p->idx = idx; p->r_het = r_het; p->uopt = uopt;
    p->l1_ug = copy_untig_graph(p->init_ug);  
    init_integer_ml_t(&p->str_b, p, asm_opt.thread_num);
    // init_ul_path_srt_t(p);
    init_ul_str_idx_t(p);
    return p;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, (%rsp)
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbp
movl $0x1, %edi
movl $0x2b0, %esi            # imm = 0x2B0
callq 0x2120
movq %rax, %rbx
movq %rbp, 0x20(%rax)
movq %r13, 0x8(%rax)
movq %r12, 0x28(%rax)
movq %r15, 0x30(%rax)
movq (%rsp), %rax
movq %rax, 0x58(%rbx)
movq %r14, (%rbx)
movq %r13, %rdi
callq 0xc815c
movq %rax, 0x18(%rbx)
leaq 0x975af(%rip), %rax     # 0x28a758
movslq 0x7c(%rax), %rdi
xorps %xmm0, %xmm0
movups %xmm0, 0x1d8(%rbx)
movq %rdi, 0x1e0(%rbx)
movl $0x328, %esi            # imm = 0x328
callq 0x2120
movq %rax, 0x1d8(%rbx)
movq %rbx, %rdi
callq 0x1f2dbb
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: append_connective(integer_aln_t*, ul_chain_t*, long, unsigned long, unsigned long*)
int64_t append_connective(integer_aln_t *aln, ul_chain_t *idx, int64_t str_i, uint64_t occ_thres, uint64_t *res)
{
    int64_t k, kl = idx->e - idx->s, str_k = -1, fp = 0; integer_aln_t *a = aln + idx->s; 
    assert(idx->sc <= (uint64_t)kl);
    for (k = idx->sc; k < kl; k++) {
        str_k = (uint32_t)a[k].tn_rev_qk;
        if(str_k >= str_i) break;
    }
    idx->sc = k;
    if(k >= kl || str_k != str_i) return 0;

    for (k -= 1; k >= 0; k--) {
        str_k = (uint32_t)a[k].tn_rev_qk;
        if(res[str_k] < occ_thres) {
            res[str_k]++;
            if(res[str_k] == occ_thres) fp++;
        }
    }
    return fp;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl (%rsi), %r10d
movl 0x4(%rsi), %eax
subl %r10d, %eax
movq 0x10(%rsi), %r9
cmpq %rax, %r9
ja 0x1f489c
leaq (%r10,%r10,2), %r10
setl %bl
movq $-0x1, %r11
jge 0x1f483c
leaq (%rdi,%r10,8), %r11
leaq (%r9,%r9,2), %r14
movl 0x10(%r11,%r14,8), %r11d
cmpq %rdx, %r11
jge 0x1f483c
incq %r9
leaq (,%r10,8), %rbx
leaq (%rbx,%r14,8), %rbx
leaq (%rdi,%rbx), %r14
addq $0x28, %r14
movq %r9, %rbx
cmpq %r9, %rax
je 0x1f4833
movl (%r14), %r11d
leaq 0x1(%rbx), %r9
addq $0x18, %r14
cmpq %rdx, %r11
jl 0x1f4816
decq %r9
jmp 0x1f4836
movq %rax, %r9
cmpq %rax, %rbx
setl %bl
movq %r9, 0x10(%rsi)
xorl %eax, %eax
testb %bl, %bl
je 0x1f4894
cmpq %rdx, %r11
jne 0x1f4894
testq %r9, %r9
jle 0x1f4894
leaq (%r9,%r9,2), %rax
incq %r9
shlq $0x3, %r10
leaq (%r10,%rax,8), %rax
leaq (%rdi,%rax), %rdx
addq $-0x8, %rdx
xorl %eax, %eax
movl (%rdx), %esi
movq (%r8,%rsi,8), %rdi
cmpq %rcx, %rdi
jae 0x1f4887
incq %rdi
movq %rdi, (%r8,%rsi,8)
xorl %esi, %esi
cmpq %rcx, %rdi
sete %sil
addq %rsi, %rax
decq %r9
addq $-0x18, %rdx
cmpq $0x1, %r9
jg 0x1f4869
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x45829(%rip), %rdi     # 0x23a0cc
leaq 0x44a7b(%rip), %rsi     # 0x239325
leaq 0x45833(%rip), %rcx     # 0x23a0e4
movl $0x1241, %edx           # imm = 0x1241
callq 0x2110