LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: debug_sysm_usg_t(usg_t*, char const*)
void debug_sysm_usg_t(usg_t *ng, const char *cmd) 
{
    uint32_t v, i; usg_arc_t *p, *q; uint32_t nv;
    for (v = 0; v < (ng->n<<1); v++) {
        p = usg_arc_a(ng, v); nv = usg_arc_n(ng, v);
        for (i = 0; i < nv; i++) {
            q = get_usg_arc(ng, p[i].v^1, v^1);
            if((!q) || (p[i].del != q->del)) {
                fprintf(stderr, "[M::%s::%s] utg%.6dl(%c)%u -> utg%.6dl(%c)%u, p->del::%u, q->del::%u\n", 
                __func__, cmd, 
                (int32_t)(v>>1)+1, "+-"[v&1], v, 
                (int32_t)(p[i].v>>1)+1, "+-"[p[i].v&1], p[i].v, 
                p[i].del, q?q->del:1);
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, 0x10(%rsp)
movq 0x8(%rdi), %rax
shlq %rax
testq %rax, %rax
je 0x20e7b9
xorl %r13d, %r13d
movq %rdi, 0x8(%rsp)
movl %r13d, %eax
shrl %eax
movl %r13d, %ecx
movq %rax, (%rsp)
imulq $0x78, %rax, %rax
addq (%rdi), %rax
andl $0x1, %ecx
movq %rcx, 0x18(%rsp)
leaq (%rcx,%rcx,2), %rcx
movl 0x10(%rax,%rcx,8), %ebx
testq %rbx, %rbx
je 0x20e7a6
movq 0x20(%rax,%rcx,8), %rbp
movq (%rsp), %rax
incl %eax
movq %rax, (%rsp)
xorl %r12d, %r12d
movq %r12, %rax
shlq $0x5, %rax
movl 0x8(%rbp,%rax), %r10d
movl %r10d, %edx
notl %edx
movl %r10d, %ecx
shrl %ecx
imulq $0x78, %rcx, %rcx
addq (%rdi), %rcx
andl $0x1, %edx
leaq (%rdx,%rdx,2), %rsi
movl 0x10(%rcx,%rsi,8), %edx
testq %rdx, %rdx
je 0x20e6ff
movq 0x20(%rcx,%rsi,8), %rcx
movl 0x8(%rcx), %esi
xorl %r13d, %esi
cmpl $0x1, %esi
je 0x20e701
addq $0x20, %rcx
decq %rdx
jne 0x20e6eb
xorl %ecx, %ecx
addq %rbp, %rax
testq %rcx, %rcx
je 0x20e71e
movl 0xc(%rcx), %edx
xorl 0xc(%rax), %edx
js 0x20e71e
incq %r12
cmpq %rbx, %r12
jne 0x20e6b9
jmp 0x20e7a6
movl $0x1, %r15d
testq %rcx, %rcx
je 0x20e731
movl 0xc(%rcx), %r15d
shrl $0x1f, %r15d
movl %r10d, %r11d
shrl %r11d
incl %r11d
movl %r10d, %ecx
andl $0x1, %ecx
movl 0xc(%rax), %r14d
shrl $0x1f, %r14d
movq 0x7b891(%rip), %rax     # 0x289fe0
movq (%rax), %rdi
leaq 0x17a6a(%rip), %rax     # 0x2261c3
movq 0x18(%rsp), %rdx
movsbl (%rdx,%rax), %r9d
movsbl (%rcx,%rax), %eax
movq %rax, 0x20(%rsp)
leaq 0x2dfb7(%rip), %rsi     # 0x23c72a
leaq 0x2dff6(%rip), %rdx     # 0x23c770
movq 0x10(%rsp), %rcx
movq (%rsp), %r8
xorl %eax, %eax
pushq %r15
pushq %r14
pushq %r10
pushq 0x38(%rsp)
pushq %r11
pushq %r13
callq 0x22b0
addq $0x30, %rsp
movq 0x8(%rsp), %rdi
jmp 0x20e711
incl %r13d
movq 0x8(%rdi), %rax
addq %rax, %rax
cmpq %r13, %rax
ja 0x20e67b
addq $0x28, %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_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 0x2cf47(%rip), %rsi     # 0x23c8d8
movq %rax, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x2050
leaq 0x2ca59(%rip), %rsi     # 0x23c3fe
movq %rbp, %rdi
callq 0x2210
movq %rax, %r15
movq %rbp, %rdi
callq 0x2220
testq %r15, %r15
je 0x20fa4e
testq %r13, %r13
sete %al
testq %r12, %r12
sete %cl
orb %al, %cl
jne 0x20f9fb
leaq 0x2cf13(%rip), %rbp     # 0x23c8eb
xorl %ebx, %ebx
movq (%r13,%rbx,8), %rcx
movq %rcx, %rdx
shrq $0x20, %rdx
movq %r15, %rdi
movq %rbp, %rsi
xorl %eax, %eax
callq 0x22b0
incq %rbx
cmpq %rbx, %r12
jne 0x20f9da
testq %r14, %r14
sete %al
movq (%rsp), %r13
testq %r13, %r13
sete %cl
orb %al, %cl
jne 0x20fa38
leaq 0x2cee8(%rip), %r12     # 0x23c8fe
xorl %ebx, %ebx
movq (%r14,%rbx,8), %rcx
movq %rcx, %rdx
shrq $0x20, %rdx
movq %r15, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x22b0
incq %rbx
cmpq %rbx, %r13
jne 0x20fa18
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_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: prt_intg_info(unsigned long*, unsigned long, unsigned long*, char const*)
void prt_intg_info(uint64_t *int_idx, uint64_t int_idx_n, uint64_t *int_a, const char *nn)
{
    char* gfa_name = NULL; MALLOC(gfa_name, strlen(nn)+70);
    sprintf(gfa_name, "%s.intg_info.log", nn);
    FILE* fp = fopen(gfa_name, "w"); free(gfa_name);
    if (!fp) return;
    uint64_t k, i, s, e;
    for (i = 0; i < int_idx_n; i++) {///scan all integer contigs
        s = int_idx[i]>>32; e = s + ((uint32_t)int_idx[i]); 
        assert(e > s + 1);//the length is at least 2
        fprintf(fp,"idx::[%lu, %lu)\n", s, e);
        for (k = s; k < e; k++) {
            fprintf(fp,"%lu\n", int_a[k]);
        }
    }
    fclose(fp);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r15
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, 0x10(%rsp)
movq %rcx, %rdi
callq 0x2090
leaq 0x46(%rax), %rdi
callq 0x2280
movq %rax, %r13
leaq 0x2ce83(%rip), %rsi     # 0x23c917
movq %rax, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x2050
leaq 0x2c956(%rip), %rsi     # 0x23c3fe
movq %r13, %rdi
callq 0x2210
movq %rax, %r12
movq %r13, %rdi
callq 0x2220
testq %r12, %r12
je 0x20fb3d
movq %r14, 0x8(%rsp)
testq %r14, %r14
je 0x20fb27
leaq 0x20ba4(%rip), %rbp     # 0x230675
xorl %r14d, %r14d
movq 0x10(%rsp), %rax
movq (%rax,%r14,8), %r13
movl %r13d, %r15d
cmpq $0x1, %r15
jbe 0x20fb4c
shrq $0x20, %r13
addq %r13, %r15
movq %r12, %rdi
leaq 0x2ce7e(%rip), %rsi     # 0x23c975
movq %r13, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x22b0
movq (%rbx,%r13,8), %rdx
movq %r12, %rdi
movq %rbp, %rsi
xorl %eax, %eax
callq 0x22b0
incq %r13
cmpq %r15, %r13
jb 0x20fb04
incq %r14
cmpq 0x8(%rsp), %r14
jne 0x20fad4
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 0x2cdd5(%rip), %rdi     # 0x23c928
leaq 0x297cb(%rip), %rsi     # 0x239325
leaq 0x2cdd1(%rip), %rcx     # 0x23c932
movl $0x3219, %edx           # imm = 0x3219
callq 0x2110
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: get_arc_support(ul_resolve_t*, unsigned long, unsigned long)
uint64_t get_arc_support(ul_resolve_t *uidx, uint64_t v, uint64_t w)
{
    uint64_t *hid_a, hid_n; ul_str_idx_t *str_idx = &(uidx->pstr);
    uint64_t z, vz, occ = 0; ul_str_t *str; int64_t s, s_n;
    hid_a = str_idx->occ.a + str_idx->idx.a[v>>1];
    hid_n = str_idx->idx.a[(v>>1)+1] - str_idx->idx.a[v>>1];

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

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

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq 0x1a0(%rdi), %rax
movq %rsi, %rcx
shrq %rcx
movq (%rax,%rcx,8), %r8
movq 0x8(%rax,%rcx,8), %r9
subq %r8, %r9
jne 0x210600
xorl %eax, %eax
jmp 0x2106a4
shlq $0x3, %r8
addq 0x1b8(%rdi), %r8
movq 0x1d0(%rdi), %rdi
xorl %r10d, %r10d
xorl %eax, %eax
movq (%r8,%r10,8), %rbx
movq %rbx, %r11
shrq $0x1b, %r11
andq $-0x20, %r11
movl 0x18(%rdi,%r11), %r14d
andl $0x7fffffff, %r14d      # imm = 0x7FFFFFFF
cmpl $0x2, %r14d
jb 0x210698
addq %rdi, %r11
movq 0x10(%r11), %r11
movl %ebx, %r15d
movq (%r11,%r15,8), %r15
movl %r15d, %r12d
shrl %r12d
cmpq %r12, %rcx
jne 0x2106b0
movl %r15d, %r15d
cmpq %rsi, %r15
jne 0x210673
incl %ebx
cmpq %r14, %rbx
jae 0x210698
movl (%r11,%rbx,8), %r15d
cmpq %rdx, %r15
je 0x210695
incq %rbx
cmpq %rbx, %r14
jne 0x210660
jmp 0x210698
decl %ebx
movslq %ebx, %rbx
testq %rbx, %rbx
js 0x210698
incq %rbx
movl -0x8(%r11,%rbx,8), %r14d
xorq %rdx, %r14
cmpq $0x1, %r14
je 0x210695
decq %rbx
jg 0x210680
jmp 0x210698
incq %rax
incq %r10
cmpq %r9, %r10
jne 0x210617
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x2b6b4(%rip), %rdi     # 0x23bd6b
leaq 0x28c67(%rip), %rsi     # 0x239325
leaq 0x2c4c8(%rip), %rcx     # 0x23cb8d
movl $0x3303, %edx           # imm = 0x3303
callq 0x2110
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: ava_pass_unique_bridge_cov(ul_resolve_t*, usg_t*, asg64_v*, unsigned long, unsigned long, unsigned long*, unsigned long)
uint32_t ava_pass_unique_bridge_cov(ul_resolve_t *uidx, usg_t *g, asg64_v *b64, uint64_t g_s, uint64_t g_e, uint64_t *integer_seq, uint64_t tip_l)
{
    if((tip_l == 0) && (g_e - g_s == 1)) return 1; ///if only one path, go through in anyway 
    uint64_t i, is_del = 0; unique_bridge_check_t uaux;

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

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

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

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x70, %rsp
movq %rcx, %r14
movq %rdx, %r15
movq %r8, %rcx
subq %r14, %rcx
movq %rcx, %rdx
xorq $0x1, %rdx
movl $0x1, %eax
orq 0x90(%rsp), %rdx
je 0x2109dc
movq %r8, %rbx
leaq 0x8(%rsp), %rdx
movq %rdi, (%rdx)
movq %r9, 0x8(%rdx)
movq 0x10(%r15), %rax
leaq (%rax,%r14,8), %r8
movq %r8, 0x10(%rdx)
movq %rcx, 0x20(%rdx)
movq %rax, 0x18(%rdx)
movq %rsi, 0x30(%rdx)
movl 0x1e0(%rdi), %edi
leaq 0x46(%rip), %rsi        # 0x2109e6
callq 0x1047b4
movl $0x1, %eax
cmpq %r14, %rbx
jbe 0x2109dc
movq 0x10(%r15), %rax
xorl %ecx, %ecx
movq (%rax,%r14,8), %rdx
testq %rdx, %rdx
jns 0x2109cc
btrq $0x3f, %rdx
movq %rdx, (%rax,%r14,8)
movl $0x1, %ecx
incq %r14
cmpq %r14, %rbx
jne 0x2109b5
xorl %eax, %eax
testq %rcx, %rcx
sete %al
addq $0x70, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/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
movq $0x0, (%r9)
movq (%rdi,%rcx,8), %rax
movq %rax, %rcx
xorq %r8, %rcx
cmpq $0x2, %rcx
jae 0x214035
movq %r9, %rbx
movq %rdi, %r15
movq 0x8(%r9), %rcx
cmpq %r8, %rax
jne 0x213fa1
movq %rdx, %r13
movq %rdx, %rax
subq %r14, %rax
cmpq %rax, %rcx
jae 0x213f75
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)
cmpq %r14, %r13
jle 0x21402b
movq 0x10(%rbx), %rax
movq (%r15,%r14,8), %rcx
movq (%rbx), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, (%rbx)
movq %rcx, (%rax,%rdx,8)
incq %r14
cmpq %r14, %r13
jne 0x213f82
jmp 0x21402b
movq %rsi, %r12
movq %r14, %rax
subq %rsi, %rax
cmpq %rax, %rcx
jae 0x214000
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)
cmpq %r12, %r14
jl 0x21402b
movq 0x10(%rbx), %rax
incq %r14
movq -0x8(%r15,%r14,8), %rcx
xorq $0x1, %rcx
movq (%rbx), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, (%rbx)
movq %rcx, (%rax,%rdx,8)
decq %r14
cmpq %r12, %r14
jg 0x21400c
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x29076(%rip), %rdi     # 0x23d0b2
leaq 0x252e2(%rip), %rsi     # 0x239325
leaq 0x29081(%rip), %rcx     # 0x23d0cb
movl $0x36dd, %edx           # imm = 0x36DD
callq 0x2110
// File: /workspace/github_cpp_makefile_star2_O1/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
movq $0x0, (%rbp)
movq (%rdi,%rcx,8), %rax
movq %rax, %rcx
xorq %r8, %rcx
cmpq $0x2, %rcx
jae 0x2147a7
movq %r9, %rbx
movq %rdi, %r15
movq 0x8(%rbp), %rcx
cmpq %r8, %rax
jne 0x2146e9
movq %rdx, %r13
movq %rdx, %rax
subq %r14, %rax
cmpq %rax, %rcx
jae 0x21469e
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)
cmpq %r14, %r13
jle 0x21478e
movq 0x10(%rbp), %rcx
movq (%r15,%r14,8), %rax
movq (%rbp), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, (%rbp)
movq %rax, (%rcx,%rdx,8)
movq (%rbp), %rax
cmpq $0x2, %rax
jb 0x2146dc
movq -0x8(%rcx,%rax,8), %rdx
xorq $0x1, %rdx
cmpb $0x0, (%rbx,%rdx)
jne 0x214798
incq %r14
cmpq %r14, %r13
jne 0x2146ab
jmp 0x21478e
movq %rsi, %r12
movq %r14, %rax
subq %rsi, %rax
cmpq %rax, %rcx
jae 0x214748
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)
cmpq %r12, %r14
jl 0x21478e
movq 0x10(%rbp), %rcx
incq %r14
movq -0x8(%r15,%r14,8), %rax
xorq $0x1, %rax
movq (%rbp), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, (%rbp)
movq %rax, (%rcx,%rdx,8)
movq (%rbp), %rax
cmpq $0x2, %rax
jb 0x214786
movq -0x8(%rcx,%rax,8), %rdx
xorq $0x1, %rdx
cmpb $0x0, (%rbx,%rdx)
jne 0x214798
decq %r14
cmpq %r12, %r14
jg 0x214754
movq $0x0, (%rbp)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x28904(%rip), %rdi     # 0x23d0b2
leaq 0x24b70(%rip), %rsi     # 0x239325
leaq 0x28a58(%rip), %rcx     # 0x23d214
movl $0x375f, %edx           # imm = 0x375F
callq 0x2110
// File: /workspace/github_cpp_makefile_star2_O1/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 %rcx, %r15
movq %rdx, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdi, 0x10(%rsp)
movq 0x70(%rsp), %rcx
movq 0x68(%rsp), %rdx
movq 0x60(%rsp), %r10
xorl %eax, %eax
movq %rax, (%rcx)
movq %rax, (%rdx)
movq %r9, 0x8(%rsp)
cmpq %r10, %r9
jae 0x214c71
movq %r8, %r14
movq $-0x1, %r12
movq 0x8(%rsp), %rbx
movq (%r15,%rbx,8), %rbp
movq %rbp, %rax
xorq $0x1, %rax
cmpb $0x0, (%r14,%rax)
je 0x214bf1
movq $-0x1, %r13
cmpq $-0x1, %r12
je 0x214bf4
subq $0x8, %rsp
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %r15, %rcx
movq 0x10(%rsp), %r8
movq %r10, %r9
movsd 0x109e3(%rip), %xmm0    # 0x225548
pushq %r14
pushq 0x80(%rsp)
pushq 0x80(%rsp)
pushq 0xa0(%rsp)
pushq 0xa0(%rsp)
pushq %rax
pushq %rbx
callq 0x2147c6
addq $0x40, %rsp
testq %rax, %rax
je 0x214bea
movq 0x88(%rsp), %rdi
movq 0x8(%rdi), %rax
cmpq %rax, (%rdi)
jne 0x214bd1
leaq (%rax,%rax), %rsi
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rsi
movq %rsi, 0x8(%rdi)
movq 0x10(%rdi), %rdi
shlq $0x3, %rsi
callq 0x2370
movq 0x88(%rsp), %rdi
movq %rax, 0x10(%rdi)
movq (%rdi), %rax
movq 0x10(%rdi), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, (%rdi)
shlq $0x20, %r12
orq %rbx, %r12
movq %r12, (%rcx,%rax,8)
movq 0x60(%rsp), %r10
jmp 0x214bf4
movq %r12, %r13
cmpb $0x0, (%r14,%rbp)
je 0x214c62
subq $0x8, %rsp
movq 0x18(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq %r15, %rcx
movq 0x10(%rsp), %r8
movq %r10, %r9
movsd 0x10927(%rip), %xmm0    # 0x225548
pushq %r14
pushq 0x80(%rsp)
pushq 0x80(%rsp)
pushq 0xa0(%rsp)
pushq 0xa0(%rsp)
pushq %rbp
pushq %rbx
callq 0x2147c6
movq 0xa0(%rsp), %r10
addq $0x40, %rsp
cmpq $0x1, %rax
movl $0x0, %r13d
sbbq %r13, %r13
orq %rbx, %r13
incq %rbx
movq %r13, %r12
cmpq %rbx, %r10
jne 0x214b18
addq $0x28, %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: 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
subq $0x18, %rsp
movq %rsi, 0x10(%rsp)
movq %rdx, 0x8(%rsp)
testq %rdx, %rdx
je 0x21508e
movq %rcx, %rbx
movq 0x74fca(%rip), %r12     # 0x289fe0
xorl %r13d, %r13d
movq 0x10(%rsp), %rax
movq (%rax,%r13,8), %r15
movl %r15d, %ecx
cmpq $0x1, %rcx
jbe 0x21509d
shrq $0x20, %r15
leaq (%r15,%rcx), %rbp
movq (%r12), %rdi
leaq 0x28449(%rip), %rsi     # 0x23d487
leaq 0x28457(%rip), %rdx     # 0x23d49c
xorl %eax, %eax
callq 0x22b0
decq %r15
leaq 0x2810f(%rip), %r14     # 0x23d165
movq (%r12), %rdi
movq 0x8(%rbx,%r15,8), %rdx
shrq %rdx
incl %edx
movq %r14, %rsi
xorl %eax, %eax
callq 0x22b0
incq %r15
cmpq %rbp, %r15
jb 0x215056
movq (%r12), %rsi
movl $0xa, %edi
callq 0x2270
incq %r13
cmpq 0x8(%rsp), %r13
jne 0x215019
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x27884(%rip), %rdi     # 0x23c928
leaq 0x2427a(%rip), %rsi     # 0x239325
leaq 0x28370(%rip), %rcx     # 0x23d422
movl $0x3816, %edx           # imm = 0x3816
callq 0x2110
// File: /workspace/github_cpp_makefile_star2_O1/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 $0x78, %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, 0x58(%rsp)
movq 0x90(%rbx,%rcx), %rdx
movq %rdx, 0x48(%rsp)
movq 0x98(%rbx,%rcx), %rdx
movq %rdx, 0x50(%rsp)
movq 0x88(%rbx,%rcx), %rdx
movq %rdx, 0x40(%rsp)
movq 0x78(%rbx,%rcx), %rdx
movq %rdx, 0x30(%rsp)
movq 0x80(%rbx,%rcx), %rdx
movq %rdx, 0x38(%rsp)
movq 0x310(%rbx,%rcx), %rdx
movq %rdx, 0x70(%rsp)
movq 0x300(%rbx,%rcx), %rdx
movq %rdx, 0x60(%rsp)
movq 0x308(%rbx,%rcx), %rdx
movq %rdx, 0x68(%rsp)
xorl %edx, %edx
movq %rdx, 0x30(%rsp)
movq %rdx, 0x48(%rsp)
movq 0x38(%rax), %rdx
movq (%rdx,%rsi,8), %r9
movl %r9d, %esi
cmpq $0x1, %rsi
jbe 0x215505
addq %rcx, %rbx
shrq $0x20, %r9
addq %r9, %rsi
movq 0x28(%rax), %r8
movq 0x48(%rax), %rcx
movups 0x58(%rax), %xmm0
leaq 0x60(%rsp), %r14
movq %r14, 0x28(%rsp)
movups %xmm0, 0x18(%rsp)
leaq 0x30(%rsp), %r15
movq %r15, 0x10(%rsp)
leaq 0x48(%rsp), %r12
movq %r12, 0x8(%rsp)
movq %rsi, (%rsp)
callq 0x214402
movq 0x10(%r12), %rax
movq %rax, 0xa0(%rbx)
movq (%r12), %rax
movq %rax, 0x90(%rbx)
movq 0x8(%r12), %rax
movq %rax, 0x98(%rbx)
movq 0x10(%r15), %rax
movq %rax, 0x88(%rbx)
movq (%r15), %rax
movq %rax, 0x78(%rbx)
movq 0x8(%r15), %rax
movq %rax, 0x80(%rbx)
movq 0x10(%r14), %rax
movq %rax, 0x310(%rbx)
movq (%r14), %rax
movq %rax, 0x300(%rbx)
movq 0x8(%r14), %rax
movq %rax, 0x308(%rbx)
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x2741c(%rip), %rdi     # 0x23c928
leaq 0x23e12(%rip), %rsi     # 0x239325
leaq 0x28e10(%rip), %rcx     # 0x23e32a
movl $0x37b8, %edx           # imm = 0x37B8
callq 0x2110
// File: /workspace/github_cpp_makefile_star2_O1/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 0x215e7b
movl 0x10(%rdi), %edx
movl 0x14(%rdi), %edi
leaq (%rdi,%rsi), %r8
movl $0x1, %eax
cmpq %rdx, %r8
jle 0x215e7a
addq %rsi, %rsi
addq %rdi, %rsi
subq %rdx, %rsi
movq %rsi, (%rcx)
movl $0x2, %eax
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: reload_uu(all_ul_t*, ma_ug_t*, char*, char const*)
void reload_uu(all_ul_t *x, ma_ug_t *raw_g, char* file_name, const char *bin_file)
{
    char* gfa_name = NULL; MALLOC(gfa_name, strlen(asm_opt.output_file_name)+50);
	sprintf(gfa_name, "%s.%s", asm_opt.output_file_name, bin_file);
    clear_all_ul_t(x);
    load_all_ul_t(x, gfa_name, &R_INF, raw_g);
    // filter_ul_ug(raw_g);//no filter since we would like to use all alignments
    gen_ul_vec_rid_t(x, NULL, raw_g);
    free(gfa_name);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %r12
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x73e59(%rip), %rax     # 0x28a758
movq 0x10(%rax), %r13
movq %r13, %rdi
callq 0x2090
leaq 0x32(%rax), %rdi
callq 0x2280
movq %rax, %r15
leaq 0x16504(%rip), %rsi     # 0x22ce22
movq %rax, %rdi
movq %r13, %rdx
movq %r12, %rcx
xorl %eax, %eax
callq 0x2050
movq %r14, %rdi
callq 0x1dd4ab
leaq 0x748f3(%rip), %rdx     # 0x28b230
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rcx
callq 0x1dc0e1
movq %r14, %rdi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x1d6bbe
movq %r15, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x2220
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: fill_scaffolds(usc_t*, unsigned long, ma_ug_t*, long, char const*)
void fill_scaffolds(usc_t *a, uint64_t a_n, ma_ug_t *raw_g, int64_t min_arc_len, const char *bin_file)
{   
    scaf_mul_t ss; uint32_t k, occ = 0;
    reload_uu(&UL_INF, raw_g, asm_opt.output_file_name, bin_file);
    // reload_uovl(&UL_INF, asm_opt.output_file_name);
    // filter_ul_ug(raw_g);
    // free(UL_INF.ridx.idx.a); UL_INF.ridx.idx.n = UL_INF.ridx.idx.m = 0;
    // free(UL_INF.ridx.occ.a); UL_INF.ridx.occ.n = UL_INF.ridx.occ.m = 0;
    // gen_ul_vec_rid_t(&UL_INF, NULL, raw_g);
    ss.a = a; ss.a_n = a_n; ss.ug = raw_g;
    kt_for(asm_opt.thread_num, gen_scaffold_id, &ss, a_n);
    for (k = 0; k < a_n; k++) {
        if(a[k].ulid == ((uint32_t)-1)) continue;
        // if(a[k].raw_eof + min_arc_len <= a[k].raw_sof) {///has an overlap longer than min_arc_len; 
        if(a[k].raw_eof <= a[k].raw_sof) {
            continue;///no need ul, could directly use hifi
        }
        // if(a[k].raw_eof <= a[k].raw_sof) continue;///no need UL reads
        // fprintf(stderr, "[M::%s] ulid::%u(%c), dd::%u\n", 
        // __func__, a[k].ulid>>1, "+-"[a[k].ulid&1], UL_INF.a[a[k].ulid>>1].dd);
        UL_INF.a[a[k].ulid>>1].dd = 4;///load
        occ++;
    }

    // fprintf(stderr, "[M::%s] occ::%u\n", __func__, occ);
    if(occ) load_scaf_base(&UL_INF, asm_opt.output_file_name, bin_file);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %r8, %rbx
movq %rdx, %r13
movq %rsi, %r14
movq %rdi, %r15
leaq 0x7498f(%rip), %r12     # 0x28b318
movq %r12, %rdi
movq %rdx, %rsi
movq %r8, %rcx
callq 0x2168e6
leaq 0x8(%rsp), %rdx
movq %r15, (%rdx)
movq %r14, 0x8(%rdx)
movq %r13, 0x10(%rdx)
leaq 0x73daa(%rip), %r13     # 0x28a758
movl 0x7c(%r13), %edi
leaq 0x73(%rip), %rsi        # 0x216a2c
movq %r14, %rcx
callq 0x1047b4
testq %r14, %r14
je 0x216a1e
movq 0x48(%r12), %rax
addq $0x14, %r15
xorl %ecx, %ecx
movl $0x1, %edx
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl -0x10(%r15), %edi
cmpq %rsi, %rdi
je 0x2169fa
movl (%r15), %r8d
cmpl -0x4(%r15), %r8d
jbe 0x2169fa
shrl %edi
imulq $0x58, %rdi, %rdi
movb $0x4, 0x50(%rax,%rdi)
incl %ecx
movl %edx, %edi
addq $0x18, %r15
incl %edx
cmpq %r14, %rdi
jb 0x2169db
testl %ecx, %ecx
je 0x216a1e
movq 0x10(%r13), %rsi
leaq 0x74902(%rip), %rdi     # 0x28b318
movq %rbx, %rdx
callq 0x215b04
addq $0x20, %rsp
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: gen_spec_rc_edge(asg_t*, ug_opt_t*, unsigned int, unsigned int, asg_arc_t*, ma_hit_t**)
int32_t gen_spec_rc_edge(asg_t *rg, ug_opt_t *uopt, uint32_t v, uint32_t w, asg_arc_t *t, ma_hit_t **te)
{
    uint32_t k, qn, tn; int32_t r; ma_hit_t_alloc *s = &(uopt->reverse_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; if(te) (*te) = &(s->buffer[k]);
        return 1;
    }
    return -1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r12
movq %rdi, 0x28(%rsp)
movq 0x10(%rsi), %r10
movl %edx, %eax
shrl %eax
leaq (%rax,%rax,2), %rsi
movl 0xc(%r10,%rsi,8), %edi
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testq %rdi, %rdi
je 0x217231
movq %r8, 0x10(%rsp)
movq %r9, 0x18(%rsp)
leaq (%r10,%rsi,8), %rax
movq %rax, 0x8(%rsp)
movq (%rax), %rbx
movl %ecx, (%rsp)
movl %ecx, %r15d
shrl %r15d
leaq 0x735b6(%rip), %rcx     # 0x28a758
movss 0x158(%rcx), %xmm0
movss %xmm0, 0x4(%rsp)
movl %edx, %eax
movq %rax, 0x20(%rsp)
shlq $0x3, %rdi
leaq (%rdi,%rdi,4), %r14
xorl %ebp, %ebp
movl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
movl 0xc(%rbx), %eax
cmpl %r15d, %eax
jne 0x21721c
movl 0x4(%rbx), %ecx
movq 0x28(%rsp), %rdx
movq 0x20(%rdx), %rdx
movl (%rdx,%rcx,8), %esi
andl %r13d, %esi
movl (%rdx,%rax,8), %edx
andl %r13d, %edx
movl 0x40(%r12), %ecx
movl 0x44(%r12), %r8d
movq %rbx, %rdi
movss 0x4(%rsp), %xmm0
leaq 0x30(%rsp), %r9
callq 0x1eb21b
testl %eax, %eax
js 0x21721c
movq 0x20(%rsp), %rax
cmpl %eax, 0x34(%rsp)
jne 0x21721c
movl (%rsp), %eax
cmpl %eax, 0x38(%rsp)
je 0x217240
addq $-0x28, %rbp
addq $0x28, %rbx
movq %r14, %rax
addq %rbp, %rax
jne 0x2171c7
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x40(%rsp), %rax
movq 0x10(%rsp), %rcx
movq %rax, 0x10(%rcx)
movups 0x30(%rsp), %xmm0
movups %xmm0, (%rcx)
andl $0xc000, %eax           # imm = 0xC000
movw %ax, 0x10(%rcx)
movl $0x1, %eax
movq 0x18(%rsp), %rcx
testq %rcx, %rcx
je 0x217231
movq 0x8(%rsp), %rdx
movq (%rdx), %rdx
subq %rbp, %rdx
movq %rdx, (%rcx)
jmp 0x217231
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: push_scaff_node(ma_hit_t_alloc*, unsigned long, unsigned long, unsigned long, asg_t*)
void push_scaff_node(ma_hit_t_alloc *src, uint64_t v, uint64_t w, uint64_t ol, asg_t *ng)
{
    uint64_t vl = ng->seq[v>>1].len, wl = ng->seq[w>>1].len; 
    ma_hit_t arc, arc1;
    arc.qns = (v>>1)<<32; 
    if(!(v&1)) {
        arc.qns += vl - ol; arc.qe = vl;
    } else {
        arc.qns += 0; arc.qe = ol;
    }
    arc.tn = w>>1;
    if(!(w&1)) {
        arc.ts = 0; arc.te = ol;
    } else {
        arc.ts = wl - ol; arc.te = wl;
    }

    arc.rev = (v^w)&1; arc.el = 0;
    arc.ml = arc.no_l_indel = arc.bl = 0;

    add_ma_hit_t_alloc(&(src[v>>1]), &arc);
    set_reverse_overlap(&arc1, &arc);
    add_ma_hit_t_alloc(&(src[w>>1]), &arc1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, %rbx
movq 0x20(%r8), %r9
movq %rsi, %rax
shrq %rax
movl (%r9,%rax,8), %r8d
movq %rdx, %r12
shrq %r12
movl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
andl (%r9,%r12,8), %edi
movq %rax, %r9
shlq $0x20, %r9
movq %r9, 0x8(%rsp)
testb $0x1, %sil
jne 0x2177af
andl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
subq %rcx, %r9
addq %r8, %r9
movq %r9, 0x8(%rsp)
jmp 0x2177b7
movq %r9, 0x8(%rsp)
movl %ecx, %r8d
movl %r8d, 0x10(%rsp)
movl %r12d, 0x14(%rsp)
testb $0x1, %dl
jne 0x2177d2
movl $0x0, 0x18(%rsp)
movl %ecx, %edi
jmp 0x2177dd
movl %edi, %r8d
subl %ecx, %r8d
movl %r8d, 0x18(%rsp)
leaq 0x8(%rsp), %r14
movl %edi, 0x14(%r14)
xorl %esi, %edx
shll $0x1f, %edx
movabsq $-0x7fffffffc0000001, %rcx # imm = 0x800000003FFFFFFF
andq 0x18(%r14), %rcx
orq %rdx, %rcx
movw $0x0, 0x20(%r14)
movq %rcx, 0x18(%r14)
leaq (%rax,%rax,2), %rax
leaq (%rbx,%rax,8), %rdi
movq %r14, %rsi
callq 0x9fdd9
leaq 0x30(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0xa052a
leaq (%r12,%r12,2), %rax
leaq (%rbx,%rax,8), %rdi
movq %r15, %rsi
callq 0x9fdd9
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: prt_usg_t(ul_resolve_t*, usg_t*, char const*)
void prt_usg_t(ul_resolve_t *uidx, usg_t *ng, const char *cmd)
{
    ma_ug_t *ug = gen_debug_hybrid_ug(uidx, ng);
    print_debug_gfa(uidx->sg, ug, uidx->uopt->coverage_cut, cmd, 
    uidx->uopt->sources, uidx->uopt->ruIndex, uidx->uopt->max_hang, uidx->uopt->min_ovlp, 0, 0, 0);
    ma_ug_destroy(ug);
    // exit(1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rdi, %r15
callq 0x219943
movq %rax, %rbx
movq (%r15), %rax
movq 0x20(%r15), %rdi
movq (%rax), %rdx
movq 0x8(%rax), %r8
movq 0x30(%rax), %r9
movl 0x40(%rax), %r10d
movl 0x44(%rax), %eax
subq $0x8, %rsp
xorl %r11d, %r11d
movq %rbx, %rsi
movq %r14, %rcx
pushq %r11
pushq %r11
pushq %r11
pushq %rax
pushq %r10
callq 0xa632
addq $0x30, %rsp
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0xa0004
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: usg_bub_dis(usg_t*, buf_t*)
uint64_t usg_bub_dis(usg_t *g, buf_t *b)
{
    usg_arc_t *av = NULL; uint64_t cLen = 0, mLen = 0;
    uint32_t n_vtx = g->n<<1, k, v, w, kv, nv, 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) {
            av = usg_arc_a(g, w); nv = usg_arc_n(g, w);
            for (k = kv = 0; k < nv && kv <= 1; k++) {
                if(av[k].del) continue;
                w = av[k].v^1; kv++;
            }
            if(kv == 1) continue;
        }

        cLen = dfs_usg_t_dis(g, b, v^1, &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
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl 0x8(%rdi), %ebp
xorl %r13d, %r13d
addl %ebp, %ebp
je 0x21a1bc
xorl %r15d, %r15d
movq (%rbx), %rax
movl %r13d, %ecx
shrl %ecx
leaq (%rcx,%rcx,8), %rdx
leaq (%rdx,%rdx,2), %rdx
addq %rcx, %rdx
cmpl $0x0, 0x18(%rax,%rdx)
js 0x21a1ae
movq (%r14), %rax
imulq $0x78, %rcx, %rsi
cmpb $0x0, 0x70(%rax,%rsi)
jne 0x21a1ae
addq %rax, %rsi
movl %r13d, %ecx
andl $0x1, %ecx
leaq (%rcx,%rcx,2), %rdi
movl 0x10(%rsi,%rdi,8), %edx
xorl %ecx, %ecx
testq %rdx, %rdx
je 0x21a12b
movq 0x20(%rsi,%rdi,8), %rsi
addq $0xc, %rsi
movl $0x1, %edi
cmpl $0x0, (%rsi)
js 0x21a114
movl -0x4(%rsi), %r12d
xorl $0x1, %r12d
incl %ecx
cmpq %rdx, %rdi
jae 0x21a125
addq $0x20, %rsi
incq %rdi
cmpl $0x2, %ecx
jb 0x21a105
cmpl $0x1, %ecx
sete %cl
testb %cl, %cl
je 0x21a188
movl %r12d, %ecx
shrl %ecx
movl %r12d, %edx
andl $0x1, %edx
imulq $0x78, %rcx, %rcx
addq %rcx, %rax
leaq (%rdx,%rdx,2), %rsi
movl 0x10(%rax,%rsi,8), %edx
xorl %ecx, %ecx
testq %rdx, %rdx
je 0x21a184
movq 0x20(%rax,%rsi,8), %rax
addq $0xc, %rax
movl $0x1, %esi
cmpl $0x0, (%rax)
js 0x21a16d
movl -0x4(%rax), %r12d
xorl $0x1, %r12d
incl %ecx
cmpq %rdx, %rsi
jae 0x21a17e
addq $0x20, %rax
incq %rsi
cmpl $0x2, %ecx
jb 0x21a15e
cmpl $0x1, %ecx
sete %cl
testb %cl, %cl
jne 0x21a1ae
movl %r13d, %edx
xorl $0x1, %edx
movq %r14, %rdi
movq %rbx, %rsi
leaq 0x4(%rsp), %rcx
callq 0x219d3c
cmpq %r15, %rax
cmovbeq %r15, %rax
cmpl $0x0, 0x4(%rsp)
cmovneq %rax, %r15
incl %r13d
cmpl %ebp, %r13d
jne 0x21a0af
jmp 0x21a1bf
xorl %r15d, %r15d
cmpq $0x0, 0x8(%r14)
je 0x21a1ed
movl $0x1, %eax
xorl %ecx, %ecx
movq (%rbx), %rdx
leaq (%rcx,%rcx,8), %rsi
leaq (%rsi,%rsi,2), %rsi
addq %rcx, %rsi
andl $0x7fffffff, 0x18(%rdx,%rsi) # imm = 0x7FFFFFFF
movl %eax, %ecx
incl %eax
cmpq %rcx, 0x8(%r14)
ja 0x21a1cd
xorl %eax, %eax
movq %rax, 0x38(%rbx)
movq %rax, 0x8(%rbx)
movq %r15, %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: extracr_clean_arc(usg_t*, unsigned int, asg64_v*, asg64_v*)
void extracr_clean_arc(usg_t *g, uint32_t v, asg64_v *b, asg64_v *ub)
{
    usg_arc_t *av; uint32_t i, kv, nv; uint64_t x, kocc[2];
    av = usg_arc_a(g, v); nv = usg_arc_n(g, v);
    if (nv < 2) return;
    for (i = kv = kocc[0] = kocc[1] = 0; i < nv; ++i) {
        if(av[i].del) continue;
        kv++; 
        if((av[i].ou>>1) > 0) { ///if av[i].ou == 1, ignore it
            if(kocc[1] < (av[i].ou>>1)) kocc[1] = (av[i].ou>>1);
        } else if(av[i].ou == 0) { 
            kocc[0]++;
        }            
    }
    if(kv < 2 || kocc[0] == 0 || kocc[1] == 0) return;
    for (i = 0; i < nv; ++i) {
        if(av[i].del || av[i].ou) continue;
        // if(max_drop_len && av[i].ol >= (*max_drop_len)) continue;
        x = av[i].ol; x <<= 32;
        kv_push(uint64_t, *b, ((x)|((uint64_t)(ub->n))));
        kv_push(uint64_t, *ub, ((((uint64_t)(v))<<32)|((uint64_t)(i))));   
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movl %esi, %eax
shrl %eax
movl %esi, %ecx
imulq $0x78, %rax, %rax
addq (%rdi), %rax
andl $0x1, %ecx
leaq (%rcx,%rcx,2), %rcx
movq 0x10(%rax,%rcx,8), %rdx
testl $0xfffffffe, %edx       # imm = 0xFFFFFFFE
je 0x21a878
movl %esi, %r15d
movq 0x20(%rax,%rcx,8), %r12
movl %edx, %r13d
leaq 0x10(%r12), %rdx
xorl %eax, %eax
movq %r13, %rsi
xorl %ecx, %ecx
xorl %edi, %edi
cmpl $0x0, -0x4(%rdx)
js 0x21a79c
incl %edi
movl (%rdx), %r8d
cmpq $0x2, %r8
jae 0x21a792
xorl $0x1, %r8d
addq %r8, %rax
jmp 0x21a79c
shrl %r8d
cmpq %r8, %rcx
cmovbeq %r8, %rcx
addq $0x20, %rdx
decq %rsi
jne 0x21a778
cmpl $0x2, %edi
jb 0x21a878
testq %rax, %rax
je 0x21a878
testq %rcx, %rcx
je 0x21a878
shlq $0x20, %r15
addq $0x10, %r12
movslq -0x4(%r12), %rbp
testq %rbp, %rbp
js 0x21a868
cmpl $0x0, (%r12)
jne 0x21a868
movq 0x8(%r14), %rax
cmpq %rax, (%r14)
jne 0x21a80f
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)
shlq $0x20, %rbp
orq (%rbx), %rbp
movq (%r14), %rax
movq 0x10(%r14), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, (%r14)
movq %rbp, (%rcx,%rax,8)
movq 0x8(%rbx), %rax
cmpq %rax, (%rbx)
jne 0x21a856
leaq (%rax,%rax), %rsi
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rsi
movq %rsi, 0x8(%rbx)
movq 0x10(%rbx), %rdi
shlq $0x3, %rsi
callq 0x2370
movq %rax, 0x10(%rbx)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, (%rbx)
movq %r15, (%rcx,%rax,8)
addq $0x20, %r12
incq %r15
decq %r13
jne 0x21a7c8
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: gen_hybrid_ug(ul_resolve_t*, usg_t*)
ma_ug_t *gen_hybrid_ug(ul_resolve_t *uidx, usg_t *ng)
{
    // fprintf(stderr, "[M::%s::] ng->n::%u\n", __func__, (uint32_t)ng->n);
    ma_ug_t *ug = ma_ug_hybrid_gen(ng); 
    // fprintf(stderr, "[M::%s::] ug->g->n_seq::%u\n", __func__, (uint32_t)ug->g->n_seq);
    uint32_t i; ma_utg_t *u; kvec_asg_arc_t_warp e; kv_init(e.a); e.i = 0;
    for (i = 0; i < ug->u.n; i++) {
        ug->g->seq[i].c = PRIMARY_LABLE;
        u = &(ug->u.a[i]);
        if(u->m == 0) continue;
        // fprintf(stderr, "+[M::%s::] i::%u\n", __func__, i);
        merge_hybrid_utg_content(u, uidx->l1_ug, uidx->sg, ng, &e);
        // fprintf(stderr, "-[M::%s::] i::%u\n", __func__, i);
        ug->g->seq[i].len = u->len;
    }
    kv_destroy(e.a);
    return ug;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %r15
movq %rsi, 0x10(%rsp)
movq %rsi, %rdi
callq 0x20f140
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movq %rax, 0x8(%rsp)
movq (%rax), %rax
movq %rax, 0x18(%rsp)
testq %rax, %rax
je 0x21b77d
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rbx
movq 0x18(%rax), %r12
movl $0x1, %r14d
xorl %ebp, %ebp
movq 0x20(%r12), %rax
movb $0x0, 0x4(%rax,%rbp,8)
leaq (,%rbp,4), %rax
addq %rbp, %rax
cmpl $0x0, 0xc(%rbx,%rax,8)
je 0x21b770
leaq (%rbx,%rax,8), %r13
movq 0x18(%r15), %rsi
movq 0x20(%r15), %rdx
movq %r13, %rdi
movq 0x10(%rsp), %rcx
leaq 0x20(%rsp), %r8
callq 0x213850
movl (%r13), %eax
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
andl %ecx, %eax
movq 0x20(%r12), %rcx
movl (%rcx,%rbp,8), %edx
movl $0x80000000, %esi       # imm = 0x80000000
andl %esi, %edx
orl %eax, %edx
movl %edx, (%rcx,%rbp,8)
movl %r14d, %ebp
incl %r14d
cmpq %rbp, 0x18(%rsp)
ja 0x21b717
movq 0x30(%rsp), %rdi
callq 0x2220
movq 0x8(%rsp), %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: renew_ul2_utg(ul_resolve_t*)
void renew_ul2_utg(ul_resolve_t *uidx)
{
    ul2ul_idx_t *z = &(uidx->uovl);
    if(uidx->uovl.cc.iug_a) {
        uint32_t k;
        for (k = 0; k < z->i_ug->u.n; k++) free(uidx->uovl.cc.iug_a[k].a);
    }
    renew_utg(&(z->i_ug), z->i_g, NULL); 
    free(z->i_ug->g->seq_vis); CALLOC(z->i_ug->g->seq_vis, z->i_ug->g->n_seq*2);
    renew_u2g_cov(uidx, uidx->uopt->te); 
    renew_u2g_bg(uidx);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpq $0x0, 0x260(%rdi)
je 0x21c3e0
movq 0x230(%rbx), %rax
cmpq $0x0, (%rax)
je 0x21c3e0
movl $0x1, %ebp
xorl %eax, %eax
movq 0x260(%rbx), %rcx
leaq (%rax,%rax,2), %rax
movq 0x10(%rcx,%rax,8), %rdi
callq 0x2220
movl %ebp, %eax
movq 0x230(%rbx), %rcx
incl %ebp
cmpq %rax, (%rcx)
ja 0x21c3bb
leaq 0x230(%rbx), %rdi
movq 0x228(%rbx), %rsi
xorl %edx, %edx
callq 0xba760
movq 0x230(%rbx), %rax
movq 0x18(%rax), %rax
movq 0x30(%rax), %rdi
callq 0x2220
movq 0x230(%rbx), %rax
movq 0x18(%rax), %r14
movl 0x14(%r14), %edi
addl %edi, %edi
movl $0x1, %esi
callq 0x2120
movq %rax, 0x30(%r14)
movq (%rbx), %rax
movq 0x70(%rax), %rsi
movq %rbx, %rdi
callq 0x21d355
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x21d8d9
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: get_ulg_spec_ovlp(ul_resolve_t*, unsigned long, unsigned long)
ul2ul_t* get_ulg_spec_ovlp(ul_resolve_t *uidx, uint64_t uv, uint64_t uw)
{
    ma_ug_t *iug = uidx->uovl.i_ug; uint32_t qid, tid;
    qid = iug->u.a[uv>>1].a[((uv&1)?(0):(iug->u.a[uv>>1].n-1))]>>33;
    tid = iug->u.a[uw>>1].a[((uw&1)?(iug->u.a[uw>>1].n-1):(0))]>>33;

    if(uidx->uovl.item_idx[qid] == (uint32_t)-1) return NULL;
    ul2ul_item_t *o = &(uidx->uovl.a[uidx->uovl.item_idx[qid]]); uint64_t k;
    for (k = 0; k < o->cn; k++) {
        if(o->a[k].hid != tid) continue;
        return &(o->a[k]);
    }
    return NULL;
}

// Assembly:
movq 0x230(%rdi), %rax
movq 0x10(%rax), %rax
movq %rsi, %rcx
shrq %rcx
leaq (%rcx,%rcx,4), %r8
movq 0x18(%rax,%r8,8), %rcx
testb $0x1, %sil
jne 0x21cd02
leaq (%rax,%r8,8), %rsi
movl 0x10(%rsi), %esi
decl %esi
jmp 0x21cd04
xorl %esi, %esi
movq (%rcx,%rsi,8), %r8
shrq $0x21, %r8
movq %rdx, %rcx
shrq %rcx
leaq (%rcx,%rcx,4), %rcx
testb $0x1, %dl
jne 0x21cd1f
xorl %esi, %esi
jmp 0x21cd28
leaq (%rax,%rcx,8), %rdx
movl 0x10(%rdx), %esi
decl %esi
movq 0x220(%rdi), %rdx
movl (%rdx,%r8,4), %r8d
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
cmpq %rdx, %r8
je 0x21cd72
movq 0x1f0(%rdi), %rdi
shlq $0x5, %r8
movl 0x1c(%rdi,%r8), %edx
testq %rdx, %rdx
je 0x21cd72
movq 0x18(%rax,%rcx,8), %rax
movq (%rax,%rsi,8), %rcx
shrq $0x21, %rcx
addq %r8, %rdi
movq (%rdi), %rax
cmpl %ecx, (%rax)
je 0x21cd74
addq $0x28, %rax
decq %rdx
jne 0x21cd65
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: worker_integer_postprecess(void*, long, int)
static void worker_integer_postprecess(void *data, long i, int tid) // callback for kt_for()
{
    ul_resolve_t *uidx = (ul_resolve_t *)data;
    integer_ml_t *sl = &(uidx->str_b); 
    integer_t *buf = &(sl->buf[tid]);
    ul2ul_item_t *it = get_ul_ovlp(&(uidx->uovl), i, 1);
    if(!it) return;
    assert(uidx->pstr.str.a[i].cn > 1);
    // uc_block_t *uls; uint64_t uls_n; uint32_t v;
    // uint64_t *srt_a, srt_n, is_circle = ((uidx->psrt.idx.a[i]&((uint64_t)(0x100000000)))?1:0);
    // srt_a = uidx->psrt.srt.a + (uint32_t)uidx->psrt.idx.a[i]; srt_n = uidx->psrt.idx.a[i]>>33;
    // if(srt_n == 0) return;
    // integer_candidate(uidx, srt_a, srt_n, is_circle, buf);
    integer_gen_ovlp(uidx, buf, i, it, uidx->uovl.uln);
}

// Assembly:
movq %rsi, %rax
movq 0x220(%rdi), %rcx
movl (%rcx,%rsi,4), %ecx
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
cmpq %rsi, %rcx
je 0x21e69c
shlq $0x5, %rcx
addq 0x1f0(%rdi), %rcx
jmp 0x21e69e
xorl %ecx, %ecx
testq %rcx, %rcx
je 0x21e6d4
movq 0x1d0(%rdi), %rsi
movq %rax, %r8
shlq $0x5, %r8
testl $0x7ffffffe, 0x18(%rsi,%r8) # imm = 0x7FFFFFFE
je 0x21e6d5
movslq %edx, %rdx
imulq $0x328, %rdx, %rsi      # imm = 0x328
addq 0x1d8(%rdi), %rsi
movl %eax, %edx
jmp 0x1faf24
retq
pushq %rax
leaq 0x1faf1(%rip), %rdi     # 0x23e1ce
leaq 0x1ac41(%rip), %rsi     # 0x239325
leaq 0x1fd34(%rip), %rcx     # 0x23e41f
movl $0x1b36, %edx           # imm = 0x1B36
callq 0x2110
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: str_occ_w(ul_str_t*, ul_vec_t*, ma_ug_t*)
uint64_t str_occ_w(ul_str_t *str, ul_vec_t *raw, ma_ug_t *ug)
{
    uint64_t occ, k; uc_block_t *z;
    for (k = occ = 0; k < str->cn; k++) {
        z = &(raw->bb.a[str->a[k]>>32]);
        assert(((z->hid<<1)+z->rev)==((uint32_t)str->a[k]));
        occ += ug_occ_w(z->ts, z->te, &(ug->u.a[z->hid]));
    }
    return occ;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl 0x18(%rdi), %r15d
andq $0x7fffffff, %r15       # imm = 0x7FFFFFFF
je 0x21ea65
movq %rdx, %rbx
movq 0x30(%rsi), %r12
movq 0x10(%rdi), %r13
xorl %r14d, %r14d
xorl %ebp, %ebp
movq (%r13,%rbp,8), %rdx
movq %rdx, %rax
shrq $0x20, %rax
leaq (%rax,%rax,8), %rcx
movl (%r12,%rcx,4), %eax
movl 0x20(%r12,%rcx,4), %esi
shrl $0x5, %esi
andl $0x1, %esi
leal (%rsi,%rax,2), %esi
cmpl %edx, %esi
jne 0x21ea7a
leaq (%r12,%rcx,4), %rcx
movl 0xc(%rcx), %edi
movl 0x10(%rcx), %esi
leaq (%rax,%rax,4), %rdx
shlq $0x3, %rdx
addq 0x10(%rbx), %rdx
callq 0x1f2d50
addq %rax, %r14
incq %rbp
cmpq %rbp, %r15
jne 0x21ea17
jmp 0x21ea68
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1f462(%rip), %rdi     # 0x23dee3
leaq 0x1a89d(%rip), %rsi     # 0x239325
leaq 0x1f480(%rip), %rcx     # 0x23df0f
movl $0x41f3, %edx           # imm = 0x41F3
callq 0x2110