LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: worker_integert_clean(void*, long, int)
static void worker_integert_clean(void *data, long i, int tid) // callback for kt_for()
{
    ul_resolve_t *uidx = (ul_resolve_t *)data;
    ul2ul_item_t *it = get_ul_ovlp(&(uidx->uovl), ulg_id(uidx->uovl, (uint32_t)i), 
                                                            ulg_type(uidx->uovl, (uint32_t)i));
    if(!it) return;
    if((uint32_t)i >= uidx->uovl.uln) it->id = i;
    clean_srt_integer(uidx, i, it, &(uidx->uovl));
}

// Assembly:
movl %esi, %eax
movq 0x208(%rdi), %rcx
xorl %r8d, %r8d
cmpq %rcx, %rax
cmovaeq %rcx, %r8
movq %rax, %rdx
subq %r8, %rdx
cmpq %rcx, %rax
jb 0x1fec4f
addq 0x208(%rdi), %rdx
movq 0x220(%rdi), %r8
movl (%r8,%rdx,4), %edx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
cmpq %r8, %rdx
je 0x1fec72
shlq $0x5, %rdx
addq 0x1f0(%rdi), %rdx
jmp 0x1fec74
xorl %edx, %edx
testq %rdx, %rdx
je 0x1fec9a
cmpq %rcx, %rax
jb 0x1fc924
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
movl $0x80000000, %eax       # imm = 0x80000000
andl 0x18(%rdx), %eax
orl %esi, %eax
movl %eax, 0x18(%rdx)
jmp 0x1fc924
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: remove_integert_containment(ul_resolve_t*, unsigned int)
void remove_integert_containment(ul_resolve_t *uidx, uint32_t keep_raw_utg)
{
    ul2ul_idx_t *u2o = &(uidx->uovl); ul2ul_item_t *o;
    uint64_t k, kn = keep_raw_utg?u2o->uln:u2o->tot; 
    for (k = 0; k < kn; k++) {
        o = get_ul_ovlp(u2o, ulg_id(*u2o, k), ulg_type(*u2o, k));
        if(!o) continue;
        integer_containment_purge(uidx, k, o, u2o, keep_raw_utg);
    }

    kt_for(uidx->str_b.n_thread, worker_integert_clean, uidx, u2o->tot);///all ul + ug
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %eax, %eax
testl %esi, %esi
sete %al
shll $0x4, %eax
movq 0x208(%rdi,%rax), %r12
testq %r12, %r12
je 0x1fed34
movl %esi, %ebp
leaq 0x1f0(%rbx), %r14
xorl %r15d, %r15d
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
movq 0x208(%rbx), %rax
movl $0x0, %ecx
cmpq %rax, %r15
cmovaeq %rax, %rcx
jae 0x1fecef
movq %r15, %rax
subq %rcx, %rax
jmp 0x1fecfc
movq 0x208(%rbx), %rax
subq %rcx, %rax
addq %r15, %rax
movq 0x220(%rbx), %rcx
movl (%rcx,%rax,4), %edx
cmpq %r13, %rdx
je 0x1fed14
shlq $0x5, %rdx
addq (%r14), %rdx
jmp 0x1fed16
xorl %edx, %edx
testq %rdx, %rdx
je 0x1fed2c
movq %rbx, %rdi
movl %r15d, %esi
movq %r14, %rcx
movl %ebp, %r8d
callq 0x1fbf9a
incq %r15
cmpq %r15, %r12
jne 0x1fecd2
movl 0x1e0(%rbx), %edi
movq 0x218(%rbx), %rcx
leaq -0x11e(%rip), %rsi      # 0x1fec2a
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1047b4
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: output_integer_graph(ul_resolve_t*, ma_ug_t*, char const*, unsigned int)
void output_integer_graph(ul_resolve_t *uidx, ma_ug_t *iug, const char *nn, uint32_t is_seq)
{
    char* gfa_name = NULL; MALLOC(gfa_name, strlen(nn)+50);
	sprintf(gfa_name, "%s.integer.noseq.gfa", nn);
    FILE* fp = fopen(gfa_name, "w"); free(gfa_name);
	if (!fp) return;
    ma_integer_ug_print0(iug, uidx, 0, "itg", fp, is_seq);
    fclose(fp);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl %ecx, %ebx
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %r14
movq %rdx, %rdi
callq 0x2090
leaq 0x32(%rax), %rdi
callq 0x2280
movq %rax, %r13
leaq 0x3ba86(%rip), %rsi     # 0x23b9f1
movq %rax, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0x2050
leaq 0x3c47f(%rip), %rsi     # 0x23c3fe
movq %r13, %rdi
callq 0x2210
movq %rax, %r12
movq %r13, %rdi
callq 0x2220
testq %r12, %r12
je 0x1fffc0
leaq 0x3ba68(%rip), %rcx     # 0x23ba06
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %r8
movl %ebx, %r9d
callq 0x1ff628
movq %r12, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x2190
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: print_raw_uls_seq(ul_resolve_t*, char const*)
void print_raw_uls_seq(ul_resolve_t *uidx, const char *nn)
{
    char* gfa_name = NULL; MALLOC(gfa_name, strlen(nn)+70);
    sprintf(gfa_name, "%s.raw.integer.seq.log", nn);
    FILE* fp = fopen(gfa_name, "w"); free(gfa_name);
    if (!fp) return;
    ma_ug_t *ug = uidx->init_ug; all_ul_t *aln = uidx->idx;
    uint64_t id; uc_block_t *a = NULL; int64_t k, a_n;
    for (id = 0; id < aln->n; id++) {
        a = aln->a[id].bb.a; a_n = aln->a[id].bb.n; k = 0;
        if(a_n == 0) continue;
        fprintf(fp,"%.*s\tid::%lu\t", (int32_t)aln->nid.a[id].n, aln->nid.a[id].a, id);
        // for (k = 0; k < a_n && ug_occ_w(a[k].ts, a[k].te, &(ug->u.a[a[k].hid])) == 0; k++);
        for (; k < a_n; k++) {
            // if(ug_occ_w(a[k].ts, a[k].te, &(ug->u.a[a[k].hid])) == 0) break;
            fprintf(fp, "utg%.6d%c(%c)(n::%lu)\t", a[k].hid + 1, "lc"[ug->u.a[a[k].hid].circ], "+-"[a[k].rev], ug_occ_w(a[k].ts, a[k].te, &(ug->u.a[a[k].hid])));
        }
        fprintf(fp,"\n");
    }
    fclose(fp);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x2090
leaq 0x46(%rax), %rdi
callq 0x2280
movq %rax, %r15
leaq 0x3ba11(%rip), %rsi     # 0x23ba0a
movq %rax, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x2050
leaq 0x3c3f1(%rip), %rsi     # 0x23c3fe
movq %r15, %rdi
callq 0x2210
movq %rax, %rbx
movq %r15, %rdi
callq 0x2220
testq %rbx, %rbx
je 0x20014f
movq 0x30(%r14), %rdx
cmpq $0x0, 0x50(%rdx)
je 0x200139
movq 0x8(%r14), %r14
leaq 0x285e8(%rip), %r13     # 0x22862b
xorl %r8d, %r8d
movq %rdx, 0x18(%rsp)
movq %rbx, 0x10(%rsp)
movq 0x48(%rdx), %rax
imulq $0x58, %r8, %rcx
movq 0x20(%rax,%rcx), %r12
testq %r12, %r12
je 0x20012c
movq 0x30(%rax,%rcx), %r15
movq 0x10(%rdx), %rax
movq %r8, %rcx
shlq $0x4, %rcx
movl 0x8(%rax,%rcx), %edx
movq (%rax,%rcx), %rcx
movq %rbx, %rdi
leaq 0x3389f(%rip), %rsi     # 0x233927
movq %r8, 0x20(%rsp)
xorl %eax, %eax
callq 0x22b0
testq %r12, %r12
jle 0x200110
addq $0x20, %r15
movl -0x20(%r15), %eax
movl -0x14(%r15), %edi
leal 0x1(%rax), %ecx
movl %ecx, 0xc(%rsp)
movq 0x10(%r14), %rcx
leaq (%rax,%rax,4), %rax
leaq (%rcx,%rax,8), %rdx
movl (%rdx), %eax
shrl $0x1f, %eax
movsbl (%rax,%r13), %ebp
movzbl (%r15), %eax
btl $0x5, %eax
leaq 0x260f2(%rip), %rax     # 0x2261c3
adcq $0x0, %rax
movq %r14, %rbx
movsbl (%rax), %r14d
movl -0x10(%r15), %esi
callq 0x1f2d50
movq 0x10(%rsp), %rdi
leaq 0x3b930(%rip), %rsi     # 0x23ba21
movl 0xc(%rsp), %edx
movl %ebp, %ecx
movl %r14d, %r8d
movq %rbx, %r14
movq %rax, %r9
xorl %eax, %eax
callq 0x22b0
addq $0x24, %r15
decq %r12
jne 0x20009d
movl $0xa, %edi
movq 0x10(%rsp), %rbx
movq %rbx, %rsi
callq 0x2270
movq 0x18(%rsp), %rdx
movq 0x20(%rsp), %r8
incq %r8
cmpq 0x50(%rdx), %r8
jb 0x200050
movq %rbx, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2190
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: print_raw_uls_aln(ul_resolve_t*, char const*)
void print_raw_uls_aln(ul_resolve_t *uidx, const char *nn)
{
    char* gfa_name = NULL; MALLOC(gfa_name, strlen(nn)+70);
    sprintf(gfa_name, "%s.raw.aln.log", nn);
    FILE* fp = fopen(gfa_name, "w"); free(gfa_name);
    if (!fp) return;
    ma_ug_t *ug = uidx->init_ug; all_ul_t *aln = uidx->idx;
    uint64_t id; uc_block_t *a = NULL; int64_t k, a_n;
    for (id = 0; id < aln->n; id++) {
        a = aln->a[id].bb.a; a_n = aln->a[id].bb.n; k = 0;
        if(a_n == 0) continue;
        fprintf(fp,"%.*s\tid::%lu\tdd::%u\t", (int32_t)aln->nid.a[id].n, aln->nid.a[id].a, id, aln->a[id].dd);
        // for (k = 0; k < a_n && ug_occ_w(a[k].ts, a[k].te, &(ug->u.a[a[k].hid])) == 0; k++);
        for (; k < a_n; k++) {
            // if(ug_occ_w(a[k].ts, a[k].te, &(ug->u.a[a[k].hid])) == 0) break;
            fprintf(fp, "utg%.6d%c(%c)q::[%u, %u)\t", a[k].hid + 1, "lc"[ug->u.a[a[k].hid].circ], "+-"[a[k].rev], a[k].qs, a[k].qe);
        }
        fprintf(fp,"\n");
    }
    fclose(fp);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x2090
leaq 0x46(%rax), %rdi
callq 0x2280
movq %rax, %r15
leaq 0x3b8ab(%rip), %rsi     # 0x23ba38
movq %rax, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x2050
leaq 0x3c25d(%rip), %rsi     # 0x23c3fe
movq %r15, %rdi
callq 0x2210
movq %rax, %rbp
movq %r15, %rdi
callq 0x2220
testq %rbp, %rbp
je 0x2002d2
movq 0x30(%r14), %rdx
cmpq $0x0, 0x50(%rdx)
je 0x2002bc
movq 0x8(%r14), %rsi
leaq 0x28454(%rip), %r15     # 0x22862b
leaq 0x25fe5(%rip), %r12     # 0x2261c3
leaq 0x3b877(%rip), %rbx     # 0x23ba5c
xorl %r8d, %r8d
movq %rdx, 0x10(%rsp)
movq %rsi, 0x20(%rsp)
movq 0x48(%rdx), %rax
imulq $0x58, %r8, %rcx
movq 0x20(%rax,%rcx), %r14
testq %r14, %r14
je 0x2002af
leaq (%rax,%rcx), %rsi
movq 0x30(%rax,%rcx), %r13
movq 0x10(%rdx), %rax
movq %r8, %rcx
shlq $0x4, %rcx
movl 0x8(%rax,%rcx), %edx
movq (%rax,%rcx), %rcx
movzbl 0x50(%rsi), %r9d
movq %rbp, %rdi
leaq 0x3b814(%rip), %rsi     # 0x23ba47
movq %r8, 0x18(%rsp)
xorl %eax, %eax
callq 0x22b0
testq %r14, %r14
jle 0x200298
movl (%r13), %eax
movl 0x4(%r13), %r9d
leal 0x1(%rax), %edx
movq 0x20(%rsp), %rcx
movq 0x10(%rcx), %rcx
leaq (%rax,%rax,4), %rax
movl (%rcx,%rax,8), %eax
shrl $0x1f, %eax
movsbl (%rax,%r15), %ecx
movzbl 0x20(%r13), %eax
btl $0x5, %eax
movq %r12, %rax
adcq $0x0, %rax
movsbl (%rax), %r8d
movl 0x8(%r13), %eax
movl %eax, (%rsp)
movq %rbp, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0x22b0
addq $0x24, %r13
decq %r14
jne 0x200244
movl $0xa, %edi
movq %rbp, %rsi
callq 0x2270
movq 0x10(%rsp), %rdx
movq 0x18(%rsp), %r8
incq %r8
cmpq 0x50(%rdx), %r8
jb 0x2001f2
movq %rbp, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2190
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: gen_srt_cov_interval(unsigned long*, unsigned long)
uint64_t gen_srt_cov_interval(uint64_t *b, uint64_t b_n)
{
    uint64_t i, m, start, end; int64_t dp, old_dp;
    radix_sort_srt64(b, b + b_n);
    for (i = m = 0, dp = 0, start = 0; i < b_n; ++i) {
        old_dp = dp;
        if (b[i]&1) --dp;
        else ++dp;

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

    return m;
}

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

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

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

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

// Assembly:
movq 0x230(%rdi), %rax
movq 0x10(%rax), %rax
movl %esi, %ecx
shrl %ecx
leaq (%rcx,%rcx,4), %r8
movq 0x18(%rax,%r8,8), %rcx
testb $0x1, %sil
jne 0x20122d
leaq (%rax,%r8,8), %rsi
movl 0x10(%rsi), %esi
decl %esi
jmp 0x20122f
xorl %esi, %esi
movq (%rcx,%rsi,8), %rcx
shrq $0x21, %rcx
movl %edx, %esi
shrl %esi
leaq (%rsi,%rsi,4), %rsi
testb $0x1, %dl
jne 0x201249
xorl %r8d, %r8d
jmp 0x201254
leaq (%rax,%rsi,8), %rdx
movl 0x10(%rdx), %r8d
decl %r8d
movq 0x28(%rdi), %rdx
movq 0x208(%rdi), %r9
movq %rcx, %r10
subq %r9, %r10
jae 0x201324
movq 0x18(%rax,%rsi,8), %rax
movq (%rax,%r8,8), %rsi
shrq $0x21, %rsi
movq %rsi, %rax
subq %r9, %rax
jae 0x20133c
movq 0x220(%rdi), %rax
movl (%rax,%rcx,4), %r8d
movl $0xffffffff, %r9d       # imm = 0xFFFFFFFF
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %r9, %r8
je 0x201323
movq 0x1f0(%rdi), %r10
shlq $0x5, %r8
movl 0x1c(%r10,%r8), %r9d
testq %r9, %r9
je 0x2012cc
addq %r8, %r10
movq (%r10), %r8
cmpl %esi, (%r8)
je 0x2012cf
addq $0x28, %r8
decq %r9
jne 0x2012be
xorl %r8d, %r8d
testq %r8, %r8
je 0x201323
movl 0x14(%r8), %esi
movl 0x18(%r8), %r8d
cmpl %r8d, %esi
jae 0x201323
movq 0x1d0(%rdi), %rdi
movq (%rdx), %rax
movq 0x80(%rdx), %rdx
shlq $0x5, %rcx
movq 0x10(%rdi,%rcx), %rcx
incq %rdx
movq %rsi, %rdi
movl (%rcx,%rdi,8), %r9d
shrl %r9d
movl (%rax,%r9,4), %r9d
cmpq %r9, %rdx
jae 0x201355
incq %rdi
cmpq %rdi, %r8
jne 0x201301
xorl %eax, %eax
cmpl %esi, %r8d
sete %al
negl %eax
retq
movq (%rdx), %rax
movq 0x80(%rdx), %rcx
movl (%rax,%r10,4), %edx
incq %rcx
xorl %eax, %eax
cmpq %rdx, %rcx
jmp 0x201351
movq (%rdx), %rcx
movq 0x80(%rdx), %rdx
movl (%rcx,%rax,4), %ecx
incq %rdx
xorl %eax, %eax
cmpq %rcx, %rdx
setae %al
retq
movl $0x1, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: is_ul_edge(ul_resolve_t*, unsigned int, unsigned int)
uint32_t is_ul_edge(ul_resolve_t *uidx, uint32_t uv, uint32_t uw)
{
    ma_ug_t *iug = uidx->uovl.i_ug; uint32_t qid, tid;
    qid = iug->u.a[uv>>1].a[((uv&1)?(0):(iug->u.a[uv>>1].n-1))]>>33;
    tid = iug->u.a[uw>>1].a[((uw&1)?(iug->u.a[uw>>1].n-1):(0))]>>33;
    if((qid != tid) && (!ulg_type(uidx->uovl, qid)) && (!ulg_type(uidx->uovl, tid))) return 0;
    return 1;
}

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

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

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

    return to_del;
}

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

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

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

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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
movslq %edx, %rax
imulq $0x328, %rax, %rbp      # imm = 0x328
movq 0x290(%rdi), %rax
movq 0x10(%rax), %r13
movq 0x1d8(%rdi), %r12
movq 0x230(%rdi), %rax
movq 0x18(%rax), %rax
movq (%r13,%rsi,8), %rcx
leaq (%rcx,%rcx,2), %rsi
shlq $0x3, %rsi
addq 0x8(%rax), %rsi
movq 0xa0(%r12,%rbp), %rax
leaq 0x30(%rsp), %r14
movq %rax, 0x10(%r14)
movq 0x90(%r12,%rbp), %rax
movq %rax, (%r14)
movq 0x98(%r12,%rbp), %rax
movq %rax, 0x8(%r14)
movq 0x88(%r12,%rbp), %rax
leaq 0x18(%rsp), %r15
movq %rax, 0x10(%r15)
movq 0x78(%r12,%rbp), %rax
movq %rax, (%r15)
movq 0x80(%r12,%rbp), %rax
movq %rax, 0x8(%r15)
xorl %eax, %eax
movq %rax, (%r15)
movq %rax, (%r14)
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
leaq 0x8(%rsp), %r9
movl $0x1, %r8d
movq %r14, %rdx
movq %r15, %rcx
callq 0x204934
movq 0x10(%r14), %rax
movq %rax, 0xa0(%r12,%rbp)
movq (%r14), %rax
movq %rax, 0x90(%r12,%rbp)
movq 0x8(%r14), %rax
movq %rax, 0x98(%r12,%rbp)
movq 0x10(%r15), %rax
movq %rax, 0x88(%r12,%rbp)
movq (%r15), %rax
movq %rax, 0x78(%r12,%rbp)
movq 0x8(%r15), %rax
movq %rax, 0x80(%r12,%rbp)
leaq 0x8(%rsp), %rax
movq (%rax), %rax
shlq $0x20, %rax
orq %rax, (%r13,%rbx,8)
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: ulg_bub_pop_cut_aux(ul_resolve_t*, ma_ug_t*, unsigned int, buf_t*, unsigned int, unsigned int, asg64_v*, asg64_v*)
uint64_t ulg_bub_pop_cut_aux(ul_resolve_t *uidx, ma_ug_t *ug, uint32_t v0, buf_t *x, uint32_t max_ext, uint32_t max_ext_hifi, asg64_v *b, asg64_v *ub)
{
    uint32_t i, v, u, bn = b->n, n_ext, ul_occ, r = 0; binfo_t *t;
    v = x->S.a[0]; 
    do {
		u = x->a[v].p; // u->v
        x->a[v].d = (uint32_t)-1;
		v = u;
	} while (v != v0);

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

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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r9d, 0x8(%rsp)
movl %r8d, 0xc(%rsp)
movq %rcx, %r12
movq %rdi, %r14
movq 0x50(%rsp), %r13
movl (%r13), %edi
movq (%rcx), %rax
movq 0x18(%rcx), %rcx
movl (%rcx), %ecx
movl %ecx, %ecx
leaq (%rcx,%rcx,8), %rsi
leaq (%rsi,%rsi,2), %rsi
addq %rcx, %rsi
movl (%rax,%rsi), %ecx
movl $0xffffffff, 0x4(%rax,%rsi) # imm = 0xFFFFFFFF
cmpl %edx, %ecx
jne 0x205b86
movq %rdi, 0x10(%rsp)
cmpq $0x0, 0x38(%r12)
je 0x205c44
xorl %ebx, %ebx
movl $0x1, %ebp
xorl %r15d, %r15d
movq (%r12), %rcx
movq 0x48(%r12), %rax
movl (%rax,%rbx,4), %eax
leaq (%rax,%rax,8), %rdx
leaq (%rdx,%rdx,2), %rdx
addq %rax, %rdx
cmpl $-0x1, 0x4(%rcx,%rdx)
je 0x205c33
shrl %eax
movq 0x258(%r14), %rcx
addl (%rcx,%rax,4), %r15d
movq 0x8(%r13), %rax
cmpq %rax, (%r13)
jne 0x205c17
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 0x48(%r12), %rax
movl (%rax,%rbx,4), %eax
movq (%r13), %rcx
movq 0x10(%r13), %rdx
leaq 0x1(%rcx), %rsi
movq %rsi, (%r13)
movq %rax, (%rdx,%rcx,8)
movl %ebp, %ebx
incl %ebp
cmpq %rbx, 0x38(%r12)
ja 0x205bbd
jmp 0x205c47
xorl %r15d, %r15d
cmpl 0xc(%rsp), %r15d
jbe 0x205c57
xorl %eax, %eax
movq 0x10(%rsp), %rbx
jmp 0x205c8e
movl 0x8(%rsp), %esi
movq 0x10(%rsp), %rbx
leaq (,%rbx,8), %rdx
addq 0x10(%r13), %rdx
movq (%r13), %rcx
subq %rbx, %rcx
movq %r14, %rdi
movq 0x58(%rsp), %r8
xorl %r9d, %r9d
callq 0x22129a
movq %rax, %rcx
xorl %eax, %eax
testq %rcx, %rcx
setne %al
movq %rbx, (%r13)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: get_ug_integer_seq_occ(ul_resolve_t*, unsigned long*, unsigned long, asg64_v*)
uint64_t get_ug_integer_seq_occ(ul_resolve_t *uidx, uint64_t *u_a, uint64_t u_n, asg64_v *b)
{
    uint32_t bn = b->n, k, occ; ma_ug_t *raw = uidx->l1_ug;
    gen_ug_integer_seq_on_fly(uidx, u_a, u_n, b);
    for (k = bn, occ = 0; k < b->n; k++) occ += raw->u.a[b->a[k]>>1].n;
    b->n = bn;
    return occ;
}

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

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

    return ng->a + id;
}

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

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

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

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

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

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

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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %r9, -0x8(%rsp)
movq %r8, -0x10(%rsp)
xorl %eax, %eax
movl %esi, %r10d
cmpl %edx, %eax
jge 0x2094e4
movq (%rdi), %r8
movl %r10d, %r11d
shrl %r11d
movl %r10d, %r12d
andl $0x1, %r12d
movl %r12d, %r14d
xorl $0x1, %r14d
imulq $0x78, %r11, %rbx
leaq (%r8,%rbx), %r15
leaq (%r14,%r14,2), %r11
movl 0x10(%r15,%r11,8), %ebp
xorl %r14d, %r14d
testl %ebp, %ebp
je 0x2094ec
movq 0x20(%r15,%r11,8), %r13
addq $0xc, %r13
movl $0x1, %r11d
movl %r14d, %r9d
movl (%r13), %r14d
notl %r14d
shrl $0x1f, %r14d
addl %r9d, %r14d
cmpl %ebp, %r11d
jae 0x20948b
incl %r11d
addq $0x20, %r13
cmpl $0x2, %r14d
jb 0x209468
xorl %ebp, %ebp
cmpl $0x1, %r14d
jne 0x2094e4
movl %r12d, %r9d
leaq (%r9,%r9,2), %r11
movl 0x10(%r15,%r11,8), %r14d
testq %r14, %r14
je 0x2094d2
movq 0x20(%r15,%r11,8), %r15
addq $0xc, %r15
xorl %ebp, %ebp
movl $0x1, %r12d
cmpl $0x0, (%r15)
js 0x2094c1
incl %ebp
movl -0x4(%r15), %r10d
cmpq %r14, %r12
jae 0x2094d2
addq $0x20, %r15
incq %r12
cmpl $0x2, %ebp
jb 0x2094b5
addl 0x4(%r8,%rbx), %eax
cmpl $0x1, %ebp
je 0x20941e
testl %ebp, %ebp
jne 0x2094e9
xorl %r14d, %r14d
jmp 0x2094ec
movb $0x1, %r14b
cmpl %edx, %eax
setge %r8b
xorb $0x1, %r14b
orb %r8b, %r14b
jne 0x209514
movq -0x10(%rsp), %r8
movq -0x8(%rsp), %r9
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x209080
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: usg_max_bub(usg_t*, buf_t*, asg64_v*)
uint64_t usg_max_bub(usg_t *g, buf_t *b, asg64_v *nb)
{
    usg_arc_t *av, *aw; uint64_t cLen = 0, mLen = 0;
    uint32_t n_vtx = g->n<<1, k, v, w, kv, nv, kw, nw, p_bub;
    for (v = 0; v < n_vtx; ++v) {
        if(b->a[v>>1].s || g->a[v>>1].del) continue;

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

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

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

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

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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, 0x10(%rsp)
movq %rsi, %rbx
movq %rdi, %r14
movl 0x8(%rdi), %ebp
xorl %r13d, %r13d
xorl %r15d, %r15d
addl %ebp, %ebp
je 0x20a92e
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 0x20a922
movq (%r14), %rax
imulq $0x78, %rcx, %rsi
cmpb $0x0, 0x70(%rax,%rsi)
jne 0x20a922
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 0x20a8a6
movq 0x20(%rsi,%rdi,8), %rsi
addq $0xc, %rsi
movl $0x1, %edi
cmpl $0x0, (%rsi)
js 0x20a88f
movl -0x4(%rsi), %r12d
xorl $0x1, %r12d
incl %ecx
cmpq %rdx, %rdi
jae 0x20a8a0
addq $0x20, %rsi
incq %rdi
cmpl $0x2, %ecx
jb 0x20a880
cmpl $0x1, %ecx
sete %cl
testb %cl, %cl
je 0x20a8f7
movl %r12d, %ecx
shrl %ecx
movl %r12d, %edx
andl $0x1, %edx
imulq $0x78, %rcx, %rcx
addq %rcx, %rax
leaq (%rdx,%rdx,2), %rdx
movl 0x10(%rax,%rdx,8), %ecx
testl %ecx, %ecx
je 0x20a8f7
movq 0x20(%rax,%rdx,8), %rax
addq $0xc, %rax
xorl %esi, %esi
movl $0x1, %edx
movl %esi, %edi
movl (%rax), %esi
notl %esi
shrl $0x1f, %esi
addl %edi, %esi
cmpl %ecx, %edx
jae 0x20a8f2
incl %edx
addq $0x20, %rax
cmpl $0x2, %esi
jb 0x20a8d8
cmpl $0x1, %esi
je 0x20a922
movl %r13d, %edx
xorl $0x1, %edx
movq %r14, %rdi
movq %rbx, %rsi
movq 0x10(%rsp), %rcx
leaq 0xc(%rsp), %r8
callq 0x20a493
cmpq %r15, %rax
cmovbeq %r15, %rax
cmpl $0x0, 0xc(%rsp)
cmovneq %rax, %r15
incl %r13d
cmpl %ebp, %r13d
jne 0x20a82a
cmpq $0x0, 0x8(%r14)
je 0x20a95c
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 0x20a93c
xorl %eax, %eax
movq %rax, 0x38(%rbx)
movq %rax, 0x8(%rbx)
movq %r15, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: get_usg_arc_mm(usg_t*, usg_arc_t*, usg_arc_mm_t**)
uint32_t get_usg_arc_mm(usg_t *g, usg_arc_t *z, usg_arc_mm_t **res)
{
    uint32_t v = z->ul>>32; (*res) = NULL;
    if(((uint32_t)z->idx) == 0) return 0;

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

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

// Assembly:
movq (%rsi), %rcx
movq $0x0, (%rdx)
movq 0x18(%rsi), %rax
testl %eax, %eax
je 0x20aeb2
movq %rcx, %rsi
shrq $0x20, %rsi
shrq $0x21, %rcx
andl $0x1, %esi
imulq $0x78, %rcx, %rcx
addq (%rdi), %rcx
leaq (%rsi,%rsi,2), %rsi
movq %rax, %rdi
shrq $0x20, %rdi
leaq (%rdi,%rdi,2), %rdi
shlq $0x2, %rdi
addq 0x50(%rcx,%rsi,8), %rdi
movq %rdi, (%rdx)
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: is_junction_circle(usg_t*, unsigned int, unsigned int)
uint32_t is_junction_circle(usg_t *g, uint32_t v, uint32_t w)
{
    uint32_t k, nv, cov, op, cov_w; usg_arc_t *av;
    av = usg_arc_a(g, v); nv = usg_arc_n(g, v);

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

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq (%rdi), %rcx
movl %esi, %eax
shrl %eax
andl $0x1, %esi
imulq $0x78, %rax, %rax
addq %rcx, %rax
leaq (%rsi,%rsi,2), %rsi
movl 0x10(%rax,%rsi,8), %edi
movq %rdi, -0x8(%rsp)
testq %rdi, %rdi
je 0x20b378
movq 0x20(%rax,%rsi,8), %rsi
xorl $0x1, %edx
xorl %r8d, %r8d
movl %edx, -0x14(%rsp)
movq %rsi, -0x10(%rsp)
movq %r8, %rax
shlq $0x5, %rax
cmpl $0x0, 0xc(%rsi,%rax)
js 0x20b36a
addq %rsi, %rax
movl 0x8(%rax), %ebp
movl $0x1, %eax
cmpl %edx, %ebp
je 0x20b37a
movl %ebp, %r14d
movl %r14d, %ebx
movl %r14d, %esi
shrl %esi
movl %r14d, %edi
andl $0x1, %edi
imulq $0x78, %rsi, %rsi
addq %rcx, %rsi
leaq (%rdi,%rdi,2), %rdi
movl 0x10(%rsi,%rdi,8), %r10d
movq 0x20(%rsi,%rdi,8), %r11
xorl %r15d, %r15d
testq %r10, %r10
je 0x20b31e
movq %r10, %r12
shlq $0x5, %r12
xorl %esi, %esi
movl 0xc(%r11,%rsi), %edi
notl %edi
shrl $0x1f, %edi
addl %edi, %r15d
addq $0x20, %rsi
cmpq %rsi, %r12
jne 0x20b286
cmpl $0x1, %r15d
jne 0x20b31b
testq %r10, %r10
je 0x20b2bf
xorl %esi, %esi
cmpl $0x0, 0xc(%r11,%rsi)
js 0x20b2b6
movl 0x8(%r11,%rsi), %r14d
addq $0x20, %rsi
cmpq %rsi, %r12
jne 0x20b2a9
movl %r14d, %edi
notl %edi
movl %r14d, %esi
shrl %esi
andl $0x1, %edi
imulq $0x78, %rsi, %rsi
addq %rcx, %rsi
leaq (%rdi,%rdi,2), %rdi
movl 0x10(%rsi,%rdi,8), %r13d
movb $0x1, %r12b
xorl %r15d, %r15d
testq %r13, %r13
je 0x20b326
movq 0x20(%rsi,%rdi,8), %rsi
shlq $0x5, %r13
xorl %edi, %edi
movl 0xc(%rsi,%rdi), %edx
notl %edx
shrl $0x1f, %edx
addl %edx, %r15d
addq $0x20, %rdi
cmpq %rdi, %r13
jne 0x20b2f2
cmpl $0x1, %r15d
jne 0x20b323
cmpl %ebp, %r14d
jne 0x20b24e
movb $0x1, %r15b
jmp 0x20b31e
xorl %r15d, %r15d
xorl %r12d, %r12d
jmp 0x20b326
xorl %r15d, %r15d
movl -0x14(%rsp), %edx
cmpl %edx, %ebx
je 0x20b37a
testb %r15b, %r15b
jne 0x20b37a
testb %r12b, %r12b
je 0x20b365
testq %r10, %r10
je 0x20b359
shlq $0x5, %r10
xorl %esi, %esi
cmpl $0x0, 0xc(%r11,%rsi)
js 0x20b350
movl 0x8(%r11,%rsi), %r9d
addq $0x20, %rsi
cmpq %rsi, %r10
jne 0x20b343
cmpl %edx, %r9d
movq -0x10(%rsp), %rsi
jne 0x20b36a
jmp 0x20b37a
movq -0x10(%rsp), %rsi
incq %r8
cmpq -0x8(%rsp), %r8
jne 0x20b226
xorl %eax, %eax
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: check_hybrid_connect(usg_t*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int)
inline usg_arc_t* get_usg_arc(usg_t *g, uint32_t v, uint32_t w)
{
    usg_arc_t *av = usg_arc_a(g, v); uint32_t nv = usg_arc_n(g, v), k;
    for (k = 0; k < nv; k++) {
        if(av[k].v == w) break;
    }

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

// Assembly:
movq (%rdi), %rdi
movl %edx, %eax
shrl %eax
andl $0x1, %edx
imulq $0x78, %rax, %r9
addq %rdi, %r9
leaq (%rdx,%rdx,2), %r10
movl 0x10(%r9,%r10,8), %edx
xorl %eax, %eax
testq %rdx, %rdx
je 0x20c739
movq 0x20(%r9,%r10,8), %r9
cmpl %r8d, 0x8(%r9)
je 0x20c73c
addq $0x20, %r9
decq %rdx
jne 0x20c72a
xorl %r9d, %r9d
testq %r9, %r9
je 0x20c7b2
movq 0x18(%r9), %r10
xorl %eax, %eax
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
andq %r10, %rdx
je 0x20c784
movq (%r9), %r8
movq %r8, %r9
shrq $0x20, %r9
shrq $0x21, %r8
andl $0x1, %r9d
imulq $0x78, %r8, %r8
addq %r8, %rdi
leaq (%r9,%r9,2), %r9
movq %r10, %r8
shrq $0x20, %r8
leaq (%r8,%r8,2), %r8
shlq $0x2, %r8
addq 0x50(%rdi,%r9,8), %r8
jmp 0x20c78a
xorl %r8d, %r8d
xorl %r10d, %r10d
testl %r10d, %r10d
je 0x20c7b2
shlq $0x2, %rdx
leaq (%rdx,%rdx,2), %rax
xorl %edx, %edx
cmpl %esi, 0x4(%r8,%rdx)
jne 0x20c7a7
cmpl %ecx, 0x8(%r8,%rdx)
je 0x20c7b3
addq $0xc, %rdx
cmpq %rdx, %rax
jne 0x20c799
xorl %eax, %eax
retq
movl $0x1, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: usg_arc_occ(usg_t*, unsigned int)
uint32_t usg_arc_occ(usg_t *ng, uint32_t v)
{
    usg_arc_t *p; uint32_t nv, kv, i;
    p = usg_arc_a(ng, v); nv = usg_arc_n(ng, v);
    for (i = kv = 0; i < nv; i++) {
        if(p[i].del) continue;
        kv++;
    }
    return kv;
}

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

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

// Assembly:
leaq 0x1(%rdx), %r8
xorl %eax, %eax
cmpq %rcx, %r8
jae 0x20dc9f
movq (%rsi,%r8,8), %r9
cmpq $0x0, (%rdi,%r9,8)
js 0x20dc9e
xorq $0x1, %r9
incq %r8
cmpq $0x0, (%rdi,%r9,8)
jns 0x20dc80
retq
movq (%rsi,%rdx,8), %rax
cmpq $0x0, (%rdi,%rax,8)
js 0x20dcbd
movq (%rsi,%rcx,8), %rcx
xorq $0x1, %rcx
xorl %eax, %eax
cmpq $0x0, (%rdi,%rcx,8)
setns %al
retq
xorl %eax, %eax
retq