LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/rcut.cpp
// Function: print_hap_p(kv_gg_status*)
void print_hap_p(kv_gg_status *s)
{
	fprintf(stderr, "\n[M::%s]\n", __func__);
	uint32_t i, h;
	mcg_node_t m;
	for (i = 0; i < s->n; i++)
	{
		fprintf(stderr,"utg%.6ul\t", i + 1);
		m = s->a[i].s; h = 0;
		while (m) {
			h++;
			if(m&1) fprintf(stderr, "h%u\t", h);
			m>>=1;
		}
		fprintf(stderr,"\n");
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x26a9ae(%rip), %r14    # 0x289fe0
movq (%r14), %rdi
leaq 0x210c83(%rip), %rsi    # 0x2302bf
leaq 0x211be9(%rip), %rdx    # 0x23122c
xorl %eax, %eax
callq 0x22b0
cmpq $0x0, 0x8(%rbx)
je 0x1f6c4
leaq 0x211be0(%rip), %r15    # 0x231238
xorl %r13d, %r13d
xorl %r12d, %r12d
movq (%r14), %rdi
incl %r12d
leaq 0x210bee(%rip), %rsi    # 0x230259
movl %r12d, %edx
xorl %eax, %eax
callq 0x22b0
movq (%rbx), %rax
shlq $0x5, %r13
movl (%rax,%r13), %ebp
testl %ebp, %ebp
je 0x1f6b0
pushq $0x1
popq %r13
testb $0x1, %bpl
jne 0x1f69e
movl %ebp, %eax
shrl %eax
incl %r13d
cmpl $0x1, %ebp
movl %eax, %ebp
ja 0x1f688
jmp 0x1f6b0
movq (%r14), %rdi
movq %r15, %rsi
movl %r13d, %edx
xorl %eax, %eax
callq 0x22b0
jmp 0x1f68e
movq (%r14), %rsi
pushq $0xa
popq %rdi
callq 0x2270
movl %r12d, %r13d
cmpq %r13, 0x8(%rbx)
ja 0x1f65e
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/rcut.cpp
// Function: write_mc_gg_dump(kv_u_trans_t*, unsigned int, kv_gg_status*, unsigned short, char const*)
void write_mc_gg_dump(kv_u_trans_t *ta, uint32_t un, kv_gg_status *s, uint16_t hapN, const char* fn)
{
	fprintf(stderr, "\n[M::%s]\n", __func__);
	char *buf = (char*)calloc(strlen(fn) + 50, 1);
    sprintf(buf, "%s.hic.dbg.dump.bin", fn);
    FILE* fp = fopen(buf, "w");

	fwrite(&ta->n, sizeof(ta->n), 1, fp);
    fwrite(ta->a, sizeof(u_trans_t), ta->n, fp);

    fwrite(&ta->idx.n, sizeof(ta->idx.n), 1, fp);
    fwrite(ta->idx.a, sizeof(uint64_t), ta->idx.n, fp);

	fwrite(&un, sizeof(un), 1, fp);

	fwrite(&(s->n), sizeof(s->n), 1, fp);
    fwrite(s->a, sizeof(mc_gg_status), s->n, fp);

	fwrite(&hapN, sizeof(hapN), 1, fp);

	fclose(fp);
    free(buf);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbx
movq %rdx, %r14
movq %rdi, %rbp
leaq 0x4(%rsp), %rax
movl %esi, (%rax)
leaq 0x2(%rsp), %rax
movw %cx, (%rax)
movq 0x26a8e3(%rip), %rax    # 0x289fe0
movq (%rax), %rdi
leaq 0x210bb8(%rip), %rsi    # 0x2302bf
leaq 0x211b2f(%rip), %rdx    # 0x23123d
xorl %eax, %eax
callq 0x22b0
movq %rbx, %rdi
callq 0x2090
leaq 0x32(%rax), %rdi
pushq $0x1
popq %r12
movq %r12, %rsi
callq 0x2120
movq %rax, %r15
leaq 0x211b17(%rip), %rsi    # 0x23124e
movq %rax, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x2050
leaq 0x21ccb3(%rip), %rsi    # 0x23c3fe
movq %r15, %rdi
callq 0x2210
movq %rax, %rbx
pushq $0x8
popq %r13
movq %rbp, %rdi
movq %r13, %rsi
movq %r12, %rdx
movq %rax, %rcx
callq 0x2410
movq (%rbp), %rdx
movq 0x10(%rbp), %rdi
pushq $0x30
popq %rsi
movq %rbx, %rcx
callq 0x2410
leaq 0x18(%rbp), %rdi
movq %r13, %rsi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x2410
movq 0x18(%rbp), %rdx
movq 0x28(%rbp), %rdi
movq %r13, %rsi
movq %rbx, %rcx
callq 0x2410
pushq $0x4
popq %rsi
leaq 0x4(%rsp), %rdi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x2410
leaq 0x8(%r14), %rdi
movq %r13, %rsi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x2410
movq (%r14), %rdi
movq 0x8(%r14), %rdx
pushq $0x20
popq %rsi
movq %rbx, %rcx
callq 0x2410
pushq $0x2
popq %rsi
leaq 0x2(%rsp), %rdi
movq %r12, %rdx
movq %rbx, %rcx
callq 0x2410
movq %rbx, %rdi
callq 0x2190
movq %r15, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2220
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/horder.cpp
// Function: print_N50(ma_ug_t*)
void print_N50(ma_ug_t* ug)
{
    kvec_t(uint64_t) b; kv_init(b);
    uint64_t i, s, len;
    for (i = s = 0; i < ug->u.n; ++i) 
    {
        kv_push(uint64_t, b, ug->u.a[i].len);
        s += ug->u.a[i].len;
    }
    len = s;
    
    radix_sort_ho64(b.a, b.a+b.n);
    fprintf(stderr, "[M::%s::] Genome Size: %lu, # Contigs: %u, Largest Contig: %lu\n", 
    __func__, len, (uint32_t)ug->u.n, b.a[b.n-1]);
    i = b.n; s = 0;
    while (i > 0)
    {
        i--;
        s += b.a[i];
        if(s >= (len>>1))
        {
            fprintf(stderr, "[M::%s::] N50: %lu\n", __func__, b.a[i]);
            break;
        }
    }
    
    kv_destroy(b);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r15
xorl %r13d, %r13d
cmpq $0x0, (%rdi)
movl $0x0, %r14d
movl $0x0, %ebx
je 0x203de
xorl %r12d, %r12d
movl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
xorl %ebx, %ebx
xorl %r14d, %r14d
xorl %r13d, %r13d
xorl %eax, %eax
cmpq %rax, %r13
jne 0x203b9
leaq (%rax,%rax), %rbp
testq %rax, %rax
pushq $0x2
popq %rax
cmoveq %rax, %rbp
leaq (,%rbp,8), %rsi
movq %rbx, %rdi
callq 0x2370
movl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
movq %rax, %rbx
movq %rbp, %rax
movq 0x10(%r15), %rcx
movl (%rcx,%r12), %edx
andq %rsi, %rdx
movq %rdx, (%rbx,%r13,8)
incq %r13
movl (%rcx,%r12), %ecx
andq %rsi, %rcx
addq %rcx, %r14
addq $0x28, %r12
cmpq (%r15), %r13
jb 0x2038b
leaq (%rbx,%r13,8), %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x16c477
movq 0x269bec(%rip), %rbp    # 0x289fe0
movq (%rbp), %rdi
movl (%r15), %r8d
decq %r13
movq -0x8(%r12), %r9
leaq 0x2110e7(%rip), %rsi    # 0x2314f1
leaq 0x211120(%rip), %rdx    # 0x231531
xorl %r15d, %r15d
movq %r14, %rcx
xorl %eax, %eax
callq 0x22b0
shrq %r14
cmpq $-0x1, %r13
je 0x2044f
movq (%rbx,%r13,8), %rcx
addq %rcx, %r15
decq %r13
cmpq %r14, %r15
jb 0x20421
movq (%rbp), %rdi
leaq 0x2110fa(%rip), %rsi    # 0x23153b
leaq 0x2110e9(%rip), %rdx    # 0x231531
xorl %eax, %eax
callq 0x22b0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2220
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/horder.cpp
// Function: print_N50_layout(ma_ug_t*, sc_lay_t*)
void print_N50_layout(ma_ug_t* ug, sc_lay_t* sl)
{
    kvec_t(uint64_t) b; kv_init(b);
    lay_t *p = NULL;
    uint64_t i, k, s, ulen, len, occ = 0;
    for (i = s = 0; i < sl->n; ++i) 
    {
        p = &(sl->a[i]);
        for (k = ulen = 0; k < p->n; k+=2)
        {
            ulen += ug->u.a[p->a[k]>>1].len;
        }
        occ += p->n;
        
        kv_push(uint64_t, b, ulen);
        s += ulen;
    }
    len = s;
    
    radix_sort_ho64(b.a, b.a+b.n);
    fprintf(stderr, "[M::%s::] Scaffold Size: %lu, # Scaffolds: %u (occ-%lu), Largest Scaffold: %lu\n", 
    __func__, len, (uint32_t)sl->n, occ, b.a[b.n-1]);
    i = b.n; s = 0;
    while (i > 0)
    {
        i--;
        s += b.a[i];
        if(s >= (len>>1))
        {
            fprintf(stderr, "[M::%s::] N50: %lu\n", __func__, b.a[i]);
            break;
        }
    }
    
    kv_destroy(b);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r12
xorl %ebp, %ebp
cmpq $0x0, 0x8(%rsi)
movq %rdi, 0x10(%rsp)
movl $0x0, %r14d
movl $0x0, %edi
movl $0x0, %r15d
je 0x20538
xorl %r15d, %r15d
xorl %edi, %edi
xorl %r14d, %r14d
xorl %ebp, %ebp
xorl %eax, %eax
movq %r12, 0x8(%rsp)
movq (%r12), %rdx
imulq $0x18, %rbp, %rcx
movq 0x8(%rdx,%rcx), %r13
testq %r13, %r13
je 0x204f3
addq %rcx, %rdx
movq 0x10(%rsp), %rcx
movq 0x10(%rcx), %rcx
movq (%rdx), %rdx
xorl %ebx, %ebx
xorl %esi, %esi
movl (%rdx,%rsi,4), %r8d
shrl %r8d
imulq $0x28, %r8, %r8
movl (%rcx,%r8), %r8d
andl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
addq %r8, %rbx
addq $0x2, %rsi
cmpq %r13, %rsi
jb 0x204cf
jmp 0x204f5
xorl %ebx, %ebx
cmpq %rax, %rbp
jne 0x20520
leaq (%rax,%rax), %r12
testq %rax, %rax
pushq $0x2
popq %rax
cmoveq %rax, %r12
leaq (,%r12,8), %rsi
callq 0x2370
movq %rax, %rdi
movq %r12, %rax
movq 0x8(%rsp), %r12
addq %r13, %r15
movq %rbx, (%rdi,%rbp,8)
incq %rbp
addq %rbx, %r14
cmpq 0x8(%r12), %rbp
jb 0x204aa
leaq (%rdi,%rbp,8), %r13
movq %r13, %rsi
movq %rdi, %rbx
callq 0x16c477
movq 0x269a92(%rip), %rax    # 0x289fe0
movq (%rax), %rdi
movl 0x8(%r12), %r8d
decq %rbp
movq -0x8(%r13), %rax
movq %rax, (%rsp)
leaq 0x210fe7(%rip), %rsi    # 0x23154f
leaq 0x211030(%rip), %rdx    # 0x23159f
xorl %r12d, %r12d
movq %r14, %rcx
movq %r15, %r9
xorl %eax, %eax
callq 0x22b0
movq %rbx, %rdi
shrq %r14
cmpq $-0x1, %rbp
je 0x205bc
movq (%rdi,%rbp,8), %rcx
addq %rcx, %r12
decq %rbp
cmpq %r14, %r12
jb 0x20585
movq 0x269a3f(%rip), %rax    # 0x289fe0
movq (%rax), %rdi
leaq 0x210f90(%rip), %rsi    # 0x23153b
leaq 0x210fed(%rip), %rdx    # 0x23159f
xorl %eax, %eax
callq 0x22b0
movq %rbx, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2220
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/horder.cpp
// Function: verbose_misjoin(unsigned long*, unsigned long)
void verbose_misjoin(uint64_t *a, uint64_t a_n)
{
    radix_sort_ho64(a, a + a_n);
    uint64_t k, l, i, len, s, C[2], N[2];
    C[0] = C[1] = N[0] = N[1] = 0;
    for (k = 1, l = 0; k <= a_n; ++k) 
    {   
        if (k == a_n || (a[k]>>63) != (a[l]>>63))
        {
            for (i = l, s = 0; i < k; i++) s += ((a[i]<<1)>>1);
            len = s;

            i = k; s = 0;
            while (i > l)
            {
                i--;
                s += ((a[i]<<1)>>1);
                if(s >= (len>>1))
                {
                    N[a[l]>>63] = ((a[i]<<1)>>1);
                    C[a[l]>>63] = k - l;
                    // fprintf(stderr, "[M::%s::] N50: %lu\n", __func__, b.a[i]);
                    break;
                }
            }
            
            l = k;
        }
    }

    fprintf(stderr, "[M::stat] # misjoined unitigs: %lu (N50: %lu); # corrected unitigs: %lu (N50: %lu)\n", 
    C[0], N[0], C[1], N[1]);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq (%rdi,%rsi,8), %rsi
callq 0x16c477
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movaps %xmm0, 0x10(%rsp)
testq %rbx, %rbx
je 0x208a7
movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF
leaq 0x1(%rbx), %rdx
cmpq $0x3, %rdx
pushq $0x2
popq %rcx
cmovaeq %rdx, %rcx
pushq $0x1
popq %rdx
xorl %esi, %esi
cmpq %rbx, %rdx
je 0x20847
movq (%r14,%rsi,8), %rdi
xorq (%r14,%rdx,8), %rdi
jns 0x2089f
movq %rdx, %rdi
xorl %r8d, %r8d
subq %rsi, %rdi
jbe 0x2086a
movq %rsi, %r9
movq (%r14,%r9,8), %r10
andq %rax, %r10
addq %r10, %r8
incq %r9
cmpq %r9, %rdx
jne 0x20855
shrq %r8
movq %rdx, %r9
xorl %r11d, %r11d
cmpq %rsi, %r9
jbe 0x2089c
movq -0x8(%r14,%r9,8), %r10
andq %rax, %r10
decq %r9
addq %r10, %r11
cmpq %r8, %r11
jb 0x20870
movq (%r14,%rsi,8), %rsi
shrq $0x3f, %rsi
shll $0x3, %esi
movq %r10, (%rsp,%rsi)
movq %rdi, 0x10(%rsp,%rsi)
movq %rdx, %rsi
incq %rdx
cmpq %rcx, %rdx
jne 0x20838
movq 0x269732(%rip), %rax    # 0x289fe0
movq (%rax), %rdi
movq 0x10(%rsp), %rdx
movq 0x18(%rsp), %r8
movq (%rsp), %rcx
movq 0x8(%rsp), %r9
leaq 0x210e04(%rip), %rsi    # 0x2316cf
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r14
jmp 0x22b0
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/horder.cpp
// Function: renew_scaffold(horder_t*)
void renew_scaffold(horder_t *h)
{
    double index_time = yak_realtime();
    while (1)
    {
        update_u_hits(&(h->u_hits), &(h->r_hits), h->ug, h->r_g);
        if(!break_scaffold(h, 5, 15, (uint64_t)-1, (uint64_t)-1, 2500000, 1, NULL)) break;
        print_N50(h->ug);
    }
    fprintf(stderr, "[M::%s::%.3f] \n", __func__, yak_realtime()-index_time);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x1303c7
movsd %xmm0, (%rsp)
leaq 0x70(%rbx), %r14
leaq 0x18(%rbx), %r15
pushq $0x5
popq %r12
pushq $0xf
popq %r13
pushq $-0x1
popq %rbp
movq 0xc8(%rbx), %rdx
movq 0xd0(%rbx), %rcx
movq %r14, %rdi
movq %r15, %rsi
callq 0x16f95a
movl $0x2625a0, %r9d         # imm = 0x2625A0
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %rbp, %rcx
movq %rbp, %r8
pushq $0x0
pushq $0x1
callq 0x1745a3
popq %rcx
popq %rdx
testq %rax, %rax
je 0x21d3b
movq 0xc8(%rbx), %rdi
callq 0x20357
jmp 0x21cef
movq 0x26829e(%rip), %rax    # 0x289fe0
movq (%rax), %rbx
callq 0x1303c7
subsd (%rsp), %xmm0
leaq 0x20daf4(%rip), %rsi    # 0x22f84a
leaq 0x20fbb8(%rip), %rdx    # 0x231915
movq %rbx, %rdi
movb $0x1, %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x22b0
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/horder.cpp
// Function: print_scaffold(ma_ug_t*, asg_t*, ma_sub_t*, char*, ma_hit_t_alloc*, ma_hit_t_alloc*, long long, float, long long, R_to_U*, float, float, int, int)
void print_scaffold(ma_ug_t *ug, asg_t *sg, ma_sub_t* coverage_cut, char* output_file_name, 
ma_hit_t_alloc* sources, ma_hit_t_alloc* reverse_sources, 
long long tipsLen, float tip_drop_ratio, long long stops_threshold, R_to_U* ruIndex, 
float chimeric_rate, float drop_ratio, int max_hang, int min_ovlp)
{
    char* gfa_name = (char*)malloc(strlen(output_file_name)+100);
    sprintf(gfa_name, "%s.%s.p_ctg.gfa", output_file_name, "stg");
    fprintf(stderr, "Writing %s to disk... \n", gfa_name);
    FILE* output_file = NULL;
    output_file = fopen(gfa_name, "w");


    kvec_asg_arc_t_warp new_rtg_edges;
    kv_init(new_rtg_edges.a);
    ma_ug_seq_scaffold(ug, sg, coverage_cut, sources, &new_rtg_edges, max_hang, min_ovlp, 0, 1);
    ma_ug_print(ug, sg, coverage_cut, sources, ruIndex, "stg", output_file);
    fclose(output_file);

    sprintf(gfa_name, "%s.%s.p_ctg.noseq.gfa", output_file_name, "stg");
    output_file = fopen(gfa_name, "w");
    ma_ug_print_simple(ug, sg, coverage_cut, sources, ruIndex, "stg", output_file);
    fclose(output_file);

    free(gfa_name);
    kv_destroy(new_rtg_edges.a);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %r8, 0x20(%rsp)
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %r13
movl 0xb0(%rsp), %r15d
movq %rcx, %rdi
movq %rcx, 0x28(%rsp)
callq 0x2090
leaq 0x64(%rax), %rdi
callq 0x2280
movq %rax, %rbp
leaq 0x20977e(%rip), %rsi    # 0x22b53a
leaq 0x20fb61(%rip), %rcx    # 0x231924
movq %rax, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x2050
movq 0x268209(%rip), %rax    # 0x289fe0
movq (%rax), %rdi
leaq 0x208aa2(%rip), %rsi    # 0x22a883
movq %rbp, %rdx
xorl %eax, %eax
callq 0x22b0
leaq 0x21a60c(%rip), %rsi    # 0x23c3fe
movq %rbp, %rdi
callq 0x2210
movq %rax, %rbx
xorps %xmm0, %xmm0
leaq 0x30(%rsp), %rax
movaps %xmm0, (%rax)
andq $0x0, 0x10(%rax)
movq %rax, %r8
andq $0x0, 0x8(%rsp)
movl %r15d, (%rsp)
movl $0x1, 0x10(%rsp)
movq %r13, %r15
movq %r13, %rdi
movq %r12, %r13
movq %r12, %rsi
movq %r14, %r12
movq %r14, %rdx
movq 0x20(%rsp), %r14
movq %r14, %rcx
movl 0xa8(%rsp), %r9d
callq 0xb5e81
movq %rbx, (%rsp)
movq %r15, %rdi
movq %r13, %rsi
movq %r12, %rdx
movq %r14, %rcx
movq 0xa0(%rsp), %r8
leaq 0x20fabc(%rip), %r14    # 0x231924
movq %r14, %r9
callq 0xb6f6d
movq %rbx, %rdi
callq 0x2190
leaq 0x2096df(%rip), %rsi    # 0x22b55e
movq %rbp, %rdi
movq 0x28(%rsp), %rdx
movq %r14, %rcx
xorl %eax, %eax
callq 0x2050
movq %rbp, %rdi
leaq 0x21a563(%rip), %rsi    # 0x23c3fe
callq 0x2210
movq %rax, %rbx
movq %rax, (%rsp)
movq %r15, %rdi
movq %r13, %rsi
movq %r12, %rdx
movq 0x20(%rsp), %rcx
movq 0xa0(%rsp), %r8
movq %r14, %r9
callq 0xb7f45
movq %rbx, %rdi
callq 0x2190
movq %rbp, %rdi
callq 0x2220
leaq 0x30(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0x2220
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/horder.cpp
// Function: renew_scaffold_utg(horder_t*, sc_lay_t*, ma_ug_t*)
void renew_scaffold_utg(horder_t *h, sc_lay_t *sl, ma_ug_t* i_ug)
{
    double index_time = yak_realtime();
    h_covs b; kv_init(b);
    while (1)
    {
        update_u_hits(&(h->u_hits), &(h->r_hits), h->ug, h->r_g);
        if(!break_scaffold(h, 5, 15, 15, 25, 2500000, 1, &b)) break;
        update_sc_lay(sl, &b);
        update_ug_by_layout(h, sl, i_ug);
        print_N50(h->ug);
    }
    fprintf(stderr, "[M::%s::%.3f] \n", __func__, yak_realtime()-index_time);
    kv_destroy(b);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, 0x8(%rsp)
movq %rsi, %r14
movq %rdi, %r15
callq 0x1303c7
movsd %xmm0, (%rsp)
leaq 0x70(%r15), %r12
leaq 0x18(%r15), %r13
xorpd %xmm0, %xmm0
leaq 0x10(%rsp), %rbp
andq $0x0, 0x10(%rbp)
movapd %xmm0, (%rbp)
pushq $0xf
popq %rbx
movq 0xc8(%r15), %rdx
movq 0xd0(%r15), %rcx
movq %r12, %rdi
movq %r13, %rsi
callq 0x16f95a
movl $0x2625a0, %r9d         # imm = 0x2625A0
movq %r15, %rdi
pushq $0x5
popq %rsi
movq %rbx, %rdx
movq %rbx, %rcx
pushq $0x19
popq %r8
pushq %rbp
pushq $0x1
callq 0x1745a3
popq %rcx
popq %rdx
testq %rax, %rax
je 0x223c0
movq %r14, %rdi
movq %rbp, %rsi
callq 0x177e0e
movq %r15, %rdi
movq %r14, %rsi
movq 0x8(%rsp), %rdx
callq 0x1768f1
movq 0xc8(%r15), %rdi
callq 0x20357
jmp 0x22359
movq 0x267c19(%rip), %rax    # 0x289fe0
movq (%rax), %rbx
callq 0x1303c7
subsd (%rsp), %xmm0
leaq 0x20d46f(%rip), %rsi    # 0x22f84a
leaq 0x20f8ab(%rip), %rdx    # 0x231c8d
movq %rbx, %rdi
movb $0x1, %al
callq 0x22b0
movq 0x10(%rsp), %rdi
callq 0x2220
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/horder.cpp
// Function: horder_utg(kvec_pe_hit*, unsigned long, unsigned long, asg_t*, ma_ug_t*, bubble_type*, ug_opt_t*)
spg_t *horder_utg(kvec_pe_hit *i_hits, uint64_t i_hits_uid_bits, uint64_t i_hits_pos_mode, 
asg_t *i_rg, ma_ug_t* i_ug, bubble_type* bub, ug_opt_t *opt)
{
    horder_t *h = NULL; CALLOC(h, 1);
    sc_lay_t sl; kv_init(sl);
    get_r_hits(i_hits, &(h->r_hits), i_rg, i_ug, bub, i_hits_uid_bits, i_hits_pos_mode);
    h->r_g = copy_read_graph(i_rg);
    horder_clean_sg_by_utg(h->r_g, i_ug);///udate rg by ug
    h->ug = copy_untig_graph(i_ug); asg_destroy(h->ug->g); h->ug->g = NULL;
    cpy_u_hits(&(h->u_hits), i_hits, h->ug->u.n);

    update_scg(h, NULL);
    layout_scg(h, ((double)1)/((double)0.75), 19, &sl);
    renew_scaffold_utg(h, &sl, i_ug);
    
    spg_t *scg = scf_g(&sl, i_ug);
    destory_sc_lay_t(&sl);
    destory_horder_t(&h);
    return scg;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r9, 0x10(%rsp)
movq %r8, %r14
movq %rcx, %rbp
movq %rdx, %rbx
movq %rsi, 0x8(%rsp)
movq %rdi, %r15
leaq 0x18(%rsp), %r13
andq $0x0, (%r13)
pushq $0x1
popq %rdi
movl $0xe0, %esi
callq 0x2120
movq %rax, %r12
movq %rax, (%r13)
leaq 0x18(%rax), %rsi
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %r13
movaps %xmm0, (%r13)
andq $0x0, 0x10(%r13)
movq %rbx, (%rsp)
movq %r15, %rdi
movq %rbp, %rdx
movq %r14, %rcx
movq 0x10(%rsp), %r8
movq 0x8(%rsp), %r9
callq 0x16f282
movq %rbp, %rdi
callq 0xc802c
movq %rax, 0xd0(%r12)
movq %rax, %rdi
movq %r14, %rsi
callq 0x16fe2e
movq %r14, %rdi
callq 0xc815c
movq %rax, 0xc8(%r12)
movq 0x18(%rax), %rdi
callq 0x9fcdb
movq 0xc8(%r12), %rax
andq $0x0, 0x18(%rax)
leaq 0x70(%r12), %rdi
movl (%rax), %edx
movq %r15, %rsi
callq 0x177d6d
movq %r12, %rdi
callq 0x20a44
movsd 0x20edef(%rip), %xmm0   # 0x2312c8
pushq $0x13
popq %rsi
movq %r12, %rdi
movq %r13, %rdx
callq 0x219c2
movq %r12, %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x22318
movq %r13, %rdi
movq %r14, %rsi
callq 0x1780c9
movq %rax, %rbx
movq %r13, %rdi
callq 0x1769db
leaq 0x18(%rsp), %rdi
callq 0x1781e6
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/horder.cpp
// Function: ha_aware_order(kvec_pe_hit*, asg_t*, ma_ug_t*, ma_ug_t*, kv_u_trans_t*, ug_opt_t*, unsigned int)
void ha_aware_order(kvec_pe_hit *r_hits, asg_t *rg, ma_ug_t *ug_fa, ma_ug_t *ug_mo, kv_u_trans_t *ref, 
ug_opt_t *opt, uint32_t round)
{
    horder_t *h = NULL; CALLOC(h, 1);
    h->r_hits = *r_hits;
    h->r_g = rg;
    scaffold_ug(h, ug_fa, opt, round, asm_opt.output_file_name, FATHER);
    scaffold_ug(h, ug_mo, opt, round, asm_opt.output_file_name, MOTHER);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %rbx
movq %rcx, (%rsp)
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
movl 0x40(%rsp), %ebp
pushq $0x1
popq %rdi
movl $0xe0, %esi
callq 0x2120
movq %rax, %r14
leaq 0x18(%rax), %rdi
pushq $0xb
popq %rcx
movq %r13, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %r12, 0xd0(%rax)
leaq 0x2680c5(%rip), %r12    # 0x28a758
movq 0x10(%r12), %r8
pushq $0x1
popq %r9
movq %rax, %rdi
movq %r15, %rsi
movq %rbx, %rdx
movl %ebp, %ecx
callq 0x220ba
movq 0x10(%r12), %r8
pushq $0x2
popq %r9
movq %r14, %rdi
movq (%rsp), %rsi
movq %rbx, %rdx
movl %ebp, %ecx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x220ba
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/ecovlp.cpp
// Function: cal_ec_multiple(ec_ovec_buf_t*, unsigned long, unsigned long, unsigned long*)
uint64_t cal_ec_multiple(ec_ovec_buf_t *b, uint64_t n_thre, uint64_t n_a, uint64_t *r_base)
{
    double tt0 = yak_realtime_0();
    uint64_t k, num_base = 0, num_correct = 0; (*r_base) = 0;

    if(!(scc.a)) {
        scc.n = scc.m = n_a; CALLOC(scc.a, n_a); CALLOC(scc.f, n_a);
    }

    if(!(scb.a)) {
        scb.n = scb.m = n_a; CALLOC(scb.a, n_a);
    }

    for (k = 0; k < n_thre; ++k) b->a[k].cnt[0] = b->a[k].cnt[1] = 0;

    kt_for(n_thre, worker_hap_ec, b, n_a);///debug_for_fix

    for (k = 0; k < n_thre; ++k) {
        num_base += b->a[k].cnt[0];
        num_correct += b->a[k].cnt[1];
    }

    // fprintf(stderr, "\n[M::%s] # reads->%lu\n", __func__, n_a);
    // fprintf(stderr, "[M::%s] # input bases->%lu\n", __func__, num_base);
    // fprintf(stderr, "[M::%s] # corrected bases->%lu\n", __func__, num_correct);
    // fprintf(stderr, "[M::%s::%.3f] running time\n", __func__, yak_realtime_0()-tt0);
    fprintf(stderr, "[M::pec::%.3f] # bases: %lu; # corrected bases: %lu\n", yak_realtime_0()-tt0, num_base, num_correct);

    (*r_base) = num_base;
    return num_correct;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r15
callq 0x130403
andq $0x0, (%rbx)
movsd %xmm0, (%rsp)
cmpq $0x0, 0x2689fe(%rip)    # 0x28b548
jne 0x22b7e
movq %r12, 0x2689ed(%rip)    # 0x28b540
movq %r12, 0x2689de(%rip)    # 0x28b538
pushq $0x18
popq %rsi
movq %r12, %rdi
callq 0x2120
movq %rax, 0x2689dc(%rip)    # 0x28b548
pushq $0x1
popq %rsi
movq %r12, %rdi
callq 0x2120
movq %rax, 0x2689d2(%rip)    # 0x28b550
cmpq $0x0, 0x2689e2(%rip)    # 0x28b568
jne 0x22ba8
movq %r12, 0x2689d1(%rip)    # 0x28b560
movq %r12, 0x2689c2(%rip)    # 0x28b558
pushq $0x18
popq %rsi
movq %r12, %rdi
callq 0x2120
movq %rax, 0x2689c0(%rip)    # 0x28b568
testq %r14, %r14
je 0x22bcb
movl $0xc0, %eax
addq (%r15), %rax
xorpd %xmm0, %xmm0
movq %r14, %rcx
movupd %xmm0, (%rax)
addq $0x5c0, %rax            # imm = 0x5C0
decq %rcx
jne 0x22bbc
leaq 0x1674b5(%rip), %rsi    # 0x18a087
movl %r14d, %edi
movq %r15, %rdx
movq %r12, %rcx
callq 0x1047b4
testq %r14, %r14
jne 0x22bed
xorl %r12d, %r12d
xorl %r15d, %r15d
jmp 0x22c0d
movl $0xc8, %eax
addq (%r15), %rax
xorl %r15d, %r15d
xorl %r12d, %r12d
addq -0x8(%rax), %r12
addq (%rax), %r15
addq $0x5c0, %rax            # imm = 0x5C0
decq %r14
jne 0x22bfb
movq 0x2673cc(%rip), %rax    # 0x289fe0
movq (%rax), %r14
callq 0x130403
subsd (%rsp), %xmm0
leaq 0x210700(%rip), %rsi    # 0x233328
movq %r14, %rdi
movq %r12, %rdx
movq %r15, %rcx
movb $0x1, %al
callq 0x22b0
movq %r12, (%rbx)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/ecovlp.cpp
// Function: cal_update_ec_multiple(ec_ovec_buf_t*, unsigned long, unsigned long)
void cal_update_ec_multiple(ec_ovec_buf_t *b, uint64_t n_thre, uint64_t n_a)
{
    double tt0 = yak_realtime_0();
    uint64_t k, num_ec_o = 0, num_nec_o = 0; 

    for (k = 0; k < n_thre; ++k) b->a[k].cnt[0] = b->a[k].cnt[1] = 0;

    kt_for(n_thre, worker_update_dc_ec, b, n_a);///debug_for_fix

    for (k = 0; k < n_thre; ++k) {
        num_ec_o += b->a[k].cnt[0]; num_nec_o += b->a[k].cnt[1];
    }

    fprintf(stderr, "[M::pec::%.3f] # exact o: %lu; # non-exact o: %lu\n", yak_realtime_0()-tt0, num_ec_o, num_nec_o);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
callq 0x130403
movsd %xmm0, 0x8(%rsp)
testq %rbx, %rbx
je 0x22c8a
movl $0xc0, %eax
addq (%r14), %rax
xorpd %xmm0, %xmm0
movq %rbx, %rcx
movupd %xmm0, (%rax)
addq $0x5c0, %rax            # imm = 0x5C0
decq %rcx
jne 0x22c7b
leaq 0x1678e8(%rip), %rsi    # 0x18a579
movl %ebx, %edi
movq %r14, %rdx
movq %r15, %rcx
callq 0x1047b4
testq %rbx, %rbx
jne 0x22cab
xorl %r15d, %r15d
xorl %r14d, %r14d
jmp 0x22ccb
movl $0xc8, %eax
addq (%r14), %rax
xorl %r14d, %r14d
xorl %r15d, %r15d
addq -0x8(%rax), %r15
addq (%rax), %r14
addq $0x5c0, %rax            # imm = 0x5C0
decq %rbx
jne 0x22cb9
movq 0x26730e(%rip), %rax    # 0x289fe0
movq (%rax), %rbx
callq 0x130403
subsd 0x8(%rsp), %xmm0
leaq 0x210676(%rip), %rsi    # 0x23335d
movq %rbx, %rdi
movq %r15, %rdx
movq %r14, %rcx
movb $0x1, %al
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x22b0
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/ecovlp.cpp
// Function: cal_ec_r(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long*, unsigned long*)
void cal_ec_r(uint64_t n_thre, uint64_t round, uint64_t n_round, uint64_t n_a, uint64_t is_sv, uint64_t *tot_b, uint64_t *tot_e)
{
    // write_ec_reads("ec0.fa");

    // fprintf(stderr, "[M::%s]\tn_thre::%lu, round::%lu, n_round::%lu, n_a::%lu, is_sv::%lu\n", __func__, n_thre, round, n_round, n_a, is_sv);

    ec_ovec_buf_t *b = NULL; uint64_t k, is_cr = (round&1);
    (*tot_b) = (*tot_e) = 0;


    b = gen_ec_ovec_buf_t(n_thre);
    (*tot_e) += cal_ec_multiple(b, n_thre, n_a, tot_b); ///exit(1);
    sl_ec_r(n_thre, n_a);

    for (k = 0; k < n_round; k++) {
        (*tot_e) += cal_sec_ec_multiple(b, n_thre, n_a, k);
        sl_ec_r(n_thre, n_a);
    }

    cal_update_ec_multiple(b, n_thre, n_a);///update overlaps

    // if(is_sv) kt_for(n_thre, worker_hap_dc_ec, b, n_a);///update overlaps
    

    if((!is_sv) || (is_sv && is_cr)) {
        kt_for(n_thre, worker_hap_post_rev, b, n_a);
    }

    // cal_sec_ec_multiple(b, n_thre, n_a, -1);

    // gen_sec_ec_multiple(b, n_thre, n_a);

    destroy_ec_ovec_buf_t(b);

    // write_ec_reads("ec16.fa");

    // uint64_t z;
    // for (z = 0; z < scc.n; z++) {
    //     if(scc.f[z]) continue;
    //     fprintf(stderr, "[M::%s]\tid::%lu::%.*s\n", __func__, z, (int)Get_NAME_LENGTH(R_INF, z), Get_NAME((R_INF), z));
    // }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %r12
movq %r8, 0x8(%rsp)
movq %rcx, %rbx
movq %rdx, %rbp
movq %rsi, 0x10(%rsp)
movq 0x50(%rsp), %r13
andq $0x0, (%r13)
movq %rdi, %r15
andq $0x0, (%r9)
callq 0x179027
movq %rax, %r14
movq %rax, %rdi
movq %r15, %rsi
movq %rbx, %rdx
movq %r12, %rcx
callq 0x22b20
addq %rax, (%r13)
movq %r15, %rdi
movq %rbx, %rsi
callq 0x18b89c
testq %rbp, %rbp
je 0x230e8
xorl %r12d, %r12d
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
movq %r12, %rcx
callq 0x18aade
addq %rax, (%r13)
movq %r15, %rdi
movq %rbx, %rsi
callq 0x18b89c
incq %r12
cmpq %r12, %rbp
jne 0x230c0
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x22c4a
cmpq $0x0, 0x8(%rsp)
setne %al
testb $0x1, 0x10(%rsp)
sete %cl
testb %al, %cl
jne 0x23120
leaq 0x16883f(%rip), %rsi    # 0x18b951
movl %r15d, %edi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x1047b4
movq %r14, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1793c1
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/ecovlp.cpp
// Function: handle_chemical_r(unsigned long, unsigned long)
void handle_chemical_r(uint64_t n_thre, uint64_t n_a)
{
    ec_ovec_buf_t *b = NULL; uint64_t k, chem_n = 0, dedup = 0;
    b = gen_ec_ovec_buf_t(n_thre);
    for (k = 0; k < n_thre; ++k) {
        b->a[k].cnt[0] = 0; b->a[k].cnt[1] = 0;
    }

    kt_for(n_thre, worker_hap_dc_ec_chemical_r, b, n_a);

    for (k = 0; k < n_thre; ++k) {
        chem_n += b->a[k].cnt[0]; 
        b->a[k].cnt[0] = 0; b->a[k].cnt[1] = 1;
    }

    kt_for(n_thre, worker_hap_dc_ec_chemical_r, b, n_a);
    
    for (k = 0; k < n_thre; ++k) {
        dedup += b->a[k].cnt[0]; 
        b->a[k].cnt[1] = 2;
    }

    kt_for(n_thre, worker_hap_dc_ec_chemical_r, b, n_a);

    fprintf(stderr, "[M::%s] # chimeric reads: %lu, # arcs:: %lu\n", __func__, chem_n, dedup);

    destroy_ec_ovec_buf_t(b);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x179027
movq %rax, %rbx
testq %r15, %r15
je 0x2316e
movl $0xc0, %eax
addq (%rbx), %rax
xorps %xmm0, %xmm0
movq %r15, %rcx
movups %xmm0, (%rax)
addq $0x5c0, %rax            # imm = 0x5C0
decq %rcx
jne 0x23160
leaq 0x1695fb(%rip), %rsi    # 0x18c770
movl %r15d, %edi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x1047b4
testq %r15, %r15
jne 0x2318d
xorl %r12d, %r12d
jmp 0x231b5
movl $0xc0, %eax
addq (%rbx), %rax
xorl %r12d, %r12d
movq %r15, %rcx
addq (%rax), %r12
andq $0x0, (%rax)
movq $0x1, 0x8(%rax)
addq $0x5c0, %rax            # imm = 0x5C0
decq %rcx
jne 0x2319b
leaq 0x1695b4(%rip), %rsi    # 0x18c770
movl %r15d, %edi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x1047b4
testq %r15, %r15
jne 0x231d4
xorl %r13d, %r13d
jmp 0x231f8
movl $0xc8, %eax
addq (%rbx), %rax
xorl %r13d, %r13d
movq %r15, %rcx
addq -0x8(%rax), %r13
movq $0x2, (%rax)
addq $0x5c0, %rax            # imm = 0x5C0
decq %rcx
jne 0x231e2
leaq 0x169571(%rip), %rsi    # 0x18c770
movl %r15d, %edi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x1047b4
movq 0x266dcc(%rip), %rax    # 0x289fe0
movq (%rax), %rdi
leaq 0x21034c(%rip), %rsi    # 0x23356a
leaq 0x210372(%rip), %rdx    # 0x233597
movq %r12, %rcx
movq %r13, %r8
xorl %eax, %eax
callq 0x22b0
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x1793c1
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/ecovlp.cpp
// Function: handle_chemical_arc(unsigned long, unsigned long)
void handle_chemical_arc(uint64_t n_thre, uint64_t n_a)
{
    ec_ovec_buf_t *b = NULL; uint64_t k, chem_n = 0;
    b = gen_ec_ovec_buf_t(n_thre);
    for (k = 0; k < n_thre; ++k) {
        b->a[k].cnt[0] = 0; b->a[k].cnt[1] = 0;
    }

    kt_for(n_thre, worker_hap_dc_ec_chemical_arc, b, n_a);

    for (k = 0; k < n_thre; ++k) {
        chem_n += b->a[k].cnt[0]; 
        b->a[k].cnt[0] = 0; b->a[k].cnt[1] = 1;
    }

    kt_for(n_thre, worker_hap_dc_ec_chemical_arc, b, n_a);

    fprintf(stderr, "[M::%s] # chimeric reads: %lu\n", __func__, chem_n);

    destroy_ec_ovec_buf_t(b);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
callq 0x179027
movq %rax, %rbx
testq %r15, %r15
je 0x2327a
movl $0xc0, %eax
addq (%rbx), %rax
xorps %xmm0, %xmm0
movq %r15, %rcx
movups %xmm0, (%rax)
addq $0x5c0, %rax            # imm = 0x5C0
decq %rcx
jne 0x2326c
leaq 0x16962b(%rip), %rsi    # 0x18c8ac
movl %r15d, %edi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x1047b4
testq %r15, %r15
jne 0x23299
xorl %r12d, %r12d
jmp 0x232c1
movl $0xc0, %eax
addq (%rbx), %rax
xorl %r12d, %r12d
movq %r15, %rcx
addq (%rax), %r12
andq $0x0, (%rax)
movq $0x1, 0x8(%rax)
addq $0x5c0, %rax            # imm = 0x5C0
decq %rcx
jne 0x232a7
leaq 0x1695e4(%rip), %rsi    # 0x18c8ac
movl %r15d, %edi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x1047b4
movq 0x266d03(%rip), %rax    # 0x289fe0
movq (%rax), %rdi
leaq 0x2102c2(%rip), %rsi    # 0x2335a9
leaq 0x2102da(%rip), %rdx    # 0x2335c8
movq %r12, %rcx
xorl %eax, %eax
callq 0x22b0
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x1793c1
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/ecovlp.cpp
// Function: gen_chemical_arc_rf(unsigned long, unsigned long)
uint8_t* gen_chemical_arc_rf(uint64_t n_thre, uint64_t n_a)
{
    ec_ovec_buf_t *b = NULL; uint64_t k, chem_n = 0; uint8_t *ra = NULL;
    b = gen_ec_ovec_buf_t(n_thre);
    for (k = 0; k < n_thre; ++k) {
        b->a[k].cnt[0] = 0; b->a[k].cnt[1] = 0;
    }
    MALLOC(ra, n_a); ///memset(ra, -1, sizeof((*ra))*n_a); 
    b->cr = ra;

    kt_for(n_thre, worker_hap_dc_ec_chemical_arc_mark, b, n_a);

    for (k = 0; k < n_thre; ++k) {
        chem_n += b->a[k].cnt[0]; 
        b->a[k].cnt[0] = 0; b->a[k].cnt[1] = 1;
    }

    kt_for(n_thre, worker_hap_dc_ec_chemical_arc_mark, b, n_a);

    fprintf(stderr, "[M::%s] # chimeric reads: %lu\n", __func__, chem_n);

    b->cr = NULL; destroy_ec_ovec_buf_t(b);
    return ra;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %r15
callq 0x179027
movq %rax, %rbx
testq %r15, %r15
je 0x23343
movl $0xc0, %eax
addq (%rbx), %rax
xorps %xmm0, %xmm0
movq %r15, %rcx
movups %xmm0, (%rax)
addq $0x5c0, %rax            # imm = 0x5C0
decq %rcx
jne 0x23335
movq %r14, %rdi
callq 0x2280
movq %rax, %r12
movq %rax, 0x10(%rbx)
leaq 0x1696be(%rip), %rsi    # 0x18ca17
movl %r15d, %edi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x1047b4
testq %r15, %r15
jne 0x23371
xorl %r13d, %r13d
jmp 0x23399
movl $0xc0, %eax
addq (%rbx), %rax
xorl %r13d, %r13d
movq %r15, %rcx
addq (%rax), %r13
andq $0x0, (%rax)
movq $0x1, 0x8(%rax)
addq $0x5c0, %rax            # imm = 0x5C0
decq %rcx
jne 0x2337f
leaq 0x169677(%rip), %rsi    # 0x18ca17
movl %r15d, %edi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x1047b4
movq 0x266c2b(%rip), %rax    # 0x289fe0
movq (%rax), %rdi
leaq 0x2101ea(%rip), %rsi    # 0x2335a9
leaq 0x210216(%rip), %rdx    # 0x2335dc
movq %r13, %rcx
xorl %eax, %eax
callq 0x22b0
andq $0x0, 0x10(%rbx)
movq %rbx, %rdi
callq 0x1793c1
movq %r12, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/tovlp.cpp
// Function: print_u_trans(kv_u_trans_t*)
void print_u_trans(kv_u_trans_t *ta)
{
    uint32_t i;
    u_trans_t *p = NULL;
    for (i = 0; i < ta->n; i++)
    {
        p = &(ta->a[i]);
        fprintf(stderr, "q-utg%.6ul\tqs(%u)\tqe(%u)\tt-utg%.6ul\tts(%u)\tte(%u)\trev(%u)\tw(%f)\tf(%u)\n", 
        p->qn+1, p->qs, p->qe, p->tn+1, p->ts, p->te, p->rev, p->nw, p->f);
    }
    fprintf(stderr, "[M::%s::] \n", __func__);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpq $0x0, (%rdi)
je 0x244a6
movq %rdi, %rbx
pushq $0x1
popq %rbp
xorl %eax, %eax
movq 0x265ba6(%rip), %r15    # 0x289fe0
leaq 0x20d021(%rip), %r14    # 0x231462
movq 0x10(%rbx), %rsi
imulq $0x30, %rax, %rax
movq (%r15), %rdi
movl 0x8(%rsi,%rax), %edx
incl %edx
movl (%rsi,%rax), %ecx
movl 0x4(%rsi,%rax), %r8d
movl 0x14(%rsi,%rax), %r9d
incl %r9d
movl 0xc(%rsi,%rax), %r10d
movl 0x10(%rsi,%rax), %r11d
movzbl 0x28(%rsi,%rax), %r12d
movl %r12d, %r13d
shrl $0x6, %r13d
andl $0x1, %r13d
movsd 0x20(%rsi,%rax), %xmm0
andl $0x3f, %r12d
movq %r14, %rsi
movb $0x1, %al
pushq %r12
pushq %r13
pushq %r11
pushq %r10
callq 0x22b0
addq $0x20, %rsp
movl %ebp, %eax
incl %ebp
cmpq %rax, (%rbx)
ja 0x24441
movq 0x265b33(%rip), %rax    # 0x289fe0
movq (%rax), %rdi
leaq 0x20bfe9(%rip), %rsi    # 0x2304a0
leaq 0x20f365(%rip), %rdx    # 0x233823
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x22b0
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/inter.cpp
// Function: uidx_build(ma_ug_t*, mg_idxopt_t*)
void uidx_build(ma_ug_t *ug, mg_idxopt_t *opt)
{
    int flag = asm_opt.flag;
    asm_opt.flag |= HA_F_NO_HPC;
    ha_flt_tab = ha_ft_ug_gen(&asm_opt, &(ug->u), opt->is_HPC, opt->k, opt->w, 1, opt->hap_n*5);
    ha_idx = ha_pt_ug_gen(&asm_opt, ha_flt_tab, &(ug->u), opt->is_HPC, opt->k, opt->w, 1);
    asm_opt.flag = flag;
	fprintf(stderr, "[M::%s] Index has been built.\n", __func__);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %r14
leaq 0x26600e(%rip), %rbx    # 0x28a758
movl (%rbx), %ebp
movl %ebp, %eax
orl $0x1, %eax
movl %eax, (%rbx)
movl 0x10(%rsi), %edx
movl (%rsi), %r8d
movl 0x4(%rsi), %ecx
imull $0x5, 0x14(%rsi), %eax
movl %eax, (%rsp)
pushq $0x1
popq %r9
movq %rbx, %rdi
movq %r14, %rsi
callq 0x13fa7
leaq 0x266cb7(%rip), %rcx    # 0x28b430
movq %rax, (%rcx)
movl 0x10(%r15), %ecx
movl (%r15), %r9d
movl 0x4(%r15), %r8d
movl $0x1, (%rsp)
movq %rbx, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x14340
leaq 0x266c95(%rip), %rcx    # 0x28b438
movq %rax, (%rcx)
movl %ebp, (%rbx)
movq 0x265831(%rip), %rax    # 0x289fe0
movq (%rax), %rdi
leaq 0x20f18b(%rip), %rsi    # 0x233944
leaq 0x20f1b0(%rip), %rdx    # 0x233970
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x22b0
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/inter.cpp
// Function: print_debug_gchain(ul_idx_t const*, mg_lchain_t*, long, ul_vec_t*)
void print_debug_gchain(const ul_idx_t *uref, mg_lchain_t *a, int64_t a_n, ul_vec_t *rch)
{
	int64_t k;
	fprintf(stderr, "\n[M::%s] a_n->%ld\n", __func__, a_n);
	for (k = 0; k < a_n; k++) {
		fprintf(stderr, "[M::%s::k->%ld] utg%.6d%c(%c), qs->%d, qe->%d, rs->%u, re->%u, qlen->%u\n", __func__, k, 
		(int32_t)(a[k].v>>1)+1, "lc"[uref->ug->u.a[(a[k].v>>1)].circ], "+-"[(a[k].v&1)],
		a[k].off<0?-1:a[k].qs, a[k].off<0?-1:a[k].qe, a[k].rs, a[k].re, rch->rlen);
	}
	
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, 0x10(%rsp)
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, (%rsp)
movq 0x264ca9(%rip), %rax    # 0x289fe0
movq (%rax), %rdi
leaq 0x211b2c(%rip), %rsi    # 0x236e6d
leaq 0x211b38(%rip), %rdx    # 0x236e80
movq %rbx, %rcx
xorl %eax, %eax
callq 0x22b0
movq %rbx, 0x8(%rsp)
testq %rbx, %rbx
jle 0x25416
addq $0x18, %r15
pushq $-0x1
popq %rcx
xorl %r13d, %r13d
movl -0x18(%r15), %eax
movl %ecx, %r10d
testl %eax, %eax
js 0x25379
movl -0x4(%r15), %r10d
movl %ecx, %r11d
testl %eax, %eax
js 0x25383
movl (%r15), %r11d
movq 0x264c56(%rip), %rax    # 0x289fe0
movq (%rax), %rdi
movl -0x10(%r15), %eax
movl %eax, %ecx
shrl %ecx
imulq $0x28, %rcx, %rdx
movl %ecx, %r8d
incl %r8d
movq (%rsp), %rcx
movq (%rcx), %rcx
movq 0x10(%rcx), %rcx
movl (%rcx,%rdx), %ecx
shrl $0x1f, %ecx
leaq 0x203274(%rip), %rdx    # 0x22862b
movsbl (%rcx,%rdx), %r9d
andl $0x1, %eax
leaq 0x200dfd(%rip), %rcx    # 0x2261c3
movsbl (%rax,%rcx), %ebp
movl -0xc(%r15), %ebx
movl -0x8(%r15), %r12d
movq 0x10(%rsp), %rax
movl 0x18(%rax), %r14d
leaq 0x211ab1(%rip), %rsi    # 0x236e93
leaq 0x211a97(%rip), %rdx    # 0x236e80
movq %r13, %rcx
xorl %eax, %eax
pushq %r14
pushq %r12
pushq %rbx
pushq %r11
pushq %r10
pushq %rbp
callq 0x22b0
addq $0x30, %rsp
incq %r13
addq $0x28, %r15
cmpq %r13, 0x8(%rsp)
pushq $-0x1
popq %rcx
jne 0x2536a
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/inter.cpp
// Function: work_ul_gchains_consensus(uldat_t*)
uint64_t work_ul_gchains_consensus(uldat_t *sl)
{
	utepdat_t s; uint64_t i; memset(&s, 0, sizeof(s));
	s.id = 0; s.uopt = sl->uopt; s.rg = sl->rg; s.opt = sl->opt; ///s.ug = sl->ug; s.uu = sl->uu; 
	//  CALLOC(s.buf, sl->n_thread); CALLOC(s.gdp, sl->n_thread); CALLOC(s.mzs, sl->n_thread); 
	CALLOC(s.hab, sl->n_thread); CALLOC(s.ll, sl->n_thread); ///CALLOC(s.sps, sl->n_thread); 

	for (i = 0; i < sl->n_thread; ++i) {
		s.hab[i] = ha_ovec_init(0, 0, 1); ///s.buf[i] = mg_tbuf_init();
	}

	// detect_outlier_len("+++work_ul_gchains");

	//debug
    // overall_zdbg = init_mul_debug_prt_t(UL_INF.n);

	kt_for(sl->n_thread, worker_for_contain_consensus, &s, UL_INF.n);

	// detect_outlier_len("---work_ul_gchains");

	for (i = 0; i < sl->n_thread; ++i) {
		s.sum_len += s.hab[i]->num_read_base; s.n += s.hab[i]->num_correct_base;
		// hc_gdpchain_destroy(&(s.gdp[i])); kv_destroy(s.mzs[i]); mg_tbuf_destroy(s.buf[i]); 
		ha_ovec_destroy(s.hab[i]); hc_glchain_destroy(&(s.ll[i])); ///kv_destroy(s.sps[i]);
	}

	// free(s.buf); free(s.gdp); free(s.mzs); 
	free(s.hab); free(s.ll); ///free(s.sps);
	fprintf(stderr, "[M::%s::] # try:%d, # done:%d\n", __func__, s.sum_len, s.n); 
	return s.sum_len;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xd8, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
movl $0xd0, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x20e0
movq 0x28(%rbx), %rax
movq %rax, 0x28(%r14)
movq 0x20(%rbx), %rax
movq %rax, 0x20(%r14)
movq 0x10(%rbx), %rax
movq %rax, (%r14)
movq 0x58(%rbx), %r15
pushq $0x8
popq %rsi
movq %r15, %rdi
callq 0x2120
movq %rax, 0x80(%r14)
pushq $0x68
popq %rsi
movq %r15, %rdi
callq 0x2120
movq %rax, 0x88(%r14)
movq 0x58(%rbx), %rdi
testq %rdi, %rdi
je 0x25fc1
xorl %r14d, %r14d
pushq $0x1
popq %rbp
xorl %edi, %edi
xorl %esi, %esi
movl %ebp, %edx
callq 0x39240
movq 0x88(%rsp), %rcx
movq %rax, (%rcx,%r14,8)
incq %r14
movq 0x58(%rbx), %rdi
cmpq %rdi, %r14
jb 0x25f9e
leaq 0x265350(%rip), %rax    # 0x28b318
movq 0x50(%rax), %rcx
leaq 0x1af3f9(%rip), %rsi    # 0x1d53cc
leaq 0x8(%rsp), %rdx
callq 0x1047b4
cmpq $0x0, 0x58(%rbx)
je 0x2602c
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x88(%rsp), %rax
movq (%rax,%r15,8), %rdi
movl 0xf0(%rdi), %eax
addl %eax, 0x48(%rsp)
movl 0xf8(%rdi), %eax
addl %eax, 0x40(%rsp)
callq 0x395cd
movq 0x90(%rsp), %rdi
addq %r14, %rdi
callq 0x19912e
incq %r15
addq $0x68, %r14
cmpq 0x58(%rbx), %r15
jb 0x25fea
movq 0x88(%rsp), %rdi
callq 0x2220
movq 0x90(%rsp), %rdi
callq 0x2220
movq 0x263f93(%rip), %rax    # 0x289fe0
movq (%rax), %rdi
movl 0x40(%rsp), %r8d
movl 0x48(%rsp), %ecx
leaq 0x211830(%rip), %rsi    # 0x237890
leaq 0x211923(%rip), %rdx    # 0x23798a
xorl %eax, %eax
callq 0x22b0
movslq 0x48(%rsp), %rax
addq $0xd8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/inter.cpp
// Function: print_all_ul_t_stat(all_ul_t*)
void print_all_ul_t_stat(all_ul_t *x)
{
	uint64_t k, i, ucov_occ = 0, cov_occ = 0, ucov_len = 0, cov_len = 0;
	ul_vec_t *p = NULL;
	for (k = 0; k < x->n; k++) {
		p = &(x->a[k]);
		for (i = 0; i < p->bb.n; i++) {
			if(p->bb.a[i].base/**.hid&x->mm**/) {
				ucov_occ++;
				ucov_len += (p->bb.a[i].qe-(p->bb.a[i].hid&FLANK_M)) - 
					(p->bb.a[i].qs+((p->bb.a[i].hid>>15)&FLANK_M));
			} else {
				cov_occ++;
			}
		}
		cov_len += p->rlen;
	}
	cov_len -= ucov_len;
	fprintf(stderr, "[M::%s::] ==>cov_occ:%lu, ucov_occ:%lu\n", __func__, cov_occ, ucov_occ);
	fprintf(stderr, "[M::%s::] ==>cov_len:%lu, ucov_len:%lu\n", __func__, cov_len, ucov_len);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq 0x50(%rdi), %rax
testq %rax, %rax
jne 0x263ab
xorl %r8d, %r8d
xorl %ecx, %ecx
xorl %r14d, %r14d
xorl %ebx, %ebx
jmp 0x2641c
movq 0x48(%rdi), %rdx
xorl %ebx, %ebx
movl $0x7fff, %esi           # imm = 0x7FFF
xorl %r14d, %r14d
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %edi, %edi
imulq $0x58, %rdi, %r10
leaq (%rdx,%r10), %r9
movq 0x20(%rdx,%r10), %r10
testq %r10, %r10
je 0x2640d
movq 0x30(%r9), %r11
testb $0x40, 0x20(%r11)
jne 0x263e2
incq %rcx
jmp 0x26404
incq %r8
movl (%r11), %ebp
movl 0x8(%r11), %r15d
movl %ebp, %r12d
andl %esi, %r12d
shrl $0xf, %ebp
addl 0x4(%r11), %r12d
andl %esi, %ebp
addl %ebp, %r12d
subl %r12d, %r15d
addq %r15, %r14
addq $0x24, %r11
decq %r10
jne 0x263d6
movl 0x18(%r9), %r9d
addq %r9, %rbx
incq %rdi
cmpq %rax, %rdi
jne 0x263c0
subq %r14, %rbx
movq 0x263bba(%rip), %r12    # 0x289fe0
movq (%r12), %rdi
leaq 0x21188c(%rip), %rsi    # 0x237cbd
leaq 0x2118ad(%rip), %r15    # 0x237ce5
movq %r15, %rdx
xorl %eax, %eax
callq 0x22b0
movq (%r12), %rdi
leaq 0x2118ac(%rip), %rsi    # 0x237cf9
movq %r15, %rdx
movq %rbx, %rcx
movq %r14, %r8
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x22b0
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/inter.cpp
// Function: print_ovlp_src_bl_stat(all_ul_t*, ug_opt_t const*)
void print_ovlp_src_bl_stat(all_ul_t *x, const ug_opt_t *uopt)
{
	uint64_t k, z, tc, ta;
	ma_hit_t_alloc* src = uopt->sources;
	for (k = tc = ta = 0; k < R_INF.total_reads; k++) {
		if(x->ridx.idx.a[k+1] - x->ridx.idx.a[k] == 0) continue;
		tc++;
		for (z = 0; z < src[k].length; z++) {
			if(src[k].buffer[z].bl) {
				ta++;
				break;
			}
		}
	}
	
	fprintf(stderr, "[M::%s::] ==> # HiFi reads:%lu, # covered HiFi reads:%lu, # chained HiFi reads:%lu\n", 
	__func__, R_INF.total_reads, tc, ta);

	uint64_t tt[4] = {0};
	for (k = 0; k < x->n; k++) {
		tt[x->a[k].dd]++;
		// if(x->a[k].dd == 1) {
		// 	fprintf(stderr, "(%lu) %.*s\n", k, (int32_t)x->nid.a[k].n, x->nid.a[k].a);
		// }
	}

	fprintf(stderr, "[M::%s::] ==> # passed UL reads:%lu, # fully corrected UL reads:%lu, # almost fully corrected UL reads:%lu, # UL reads have primary chains:%lu\n", 
	__func__, tt[0]+tt[1]+tt[2]+tt[3], tt[1], tt[2], tt[3]);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
leaq 0x264dba(%rip), %rax    # 0x28b230
movq 0x50(%rax), %rcx
testq %rcx, %rcx
jne 0x26487
xorl %r8d, %r8d
xorl %r9d, %r9d
jmp 0x264df
movq 0x8(%rsi), %rax
movq 0x28(%rbx), %rdx
xorl %esi, %esi
xorl %r9d, %r9d
xorl %r8d, %r8d
movl 0x4(%rdx,%rsi,4), %edi
cmpl (%rdx,%rsi,4), %edi
je 0x264d7
incq %r8
imulq $0x18, %rsi, %rdi
movl 0xc(%rax,%rdi), %r10d
testq %r10, %r10
je 0x264d7
addq %rax, %rdi
movq (%rdi), %rdi
imulq $0x28, %r10, %r10
xorl %r11d, %r11d
testl $0x7fffffff, 0x1c(%rdi,%r11) # imm = 0x7FFFFFFF
jne 0x264d4
addq $0x28, %r11
cmpq %r11, %r10
jne 0x264be
jmp 0x264d7
incq %r9
incq %rsi
cmpq %rcx, %rsi
jne 0x26497
movq 0x263afa(%rip), %r14    # 0x289fe0
movq (%r14), %rdi
leaq 0x211831(%rip), %rsi    # 0x237d21
leaq 0x21187e(%rip), %rdx    # 0x237d75
xorl %eax, %eax
callq 0x22b0
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movq 0x50(%rbx), %rax
testq %rax, %rax
je 0x2652d
movq 0x48(%rbx), %rcx
addq $0x50, %rcx
movzbl (%rcx), %edx
incq 0x10(%rsp,%rdx,8)
addq $0x58, %rcx
decq %rax
jne 0x2651c
movq (%r14), %rdi
movq 0x18(%rsp), %r8
movq 0x20(%rsp), %r9
movq 0x10(%rsp), %rcx
addq %r8, %rcx
movq 0x28(%rsp), %rax
addq %r9, %rcx
addq %rax, %rcx
movq %rax, (%rsp)
leaq 0x211834(%rip), %rsi    # 0x237d8c
leaq 0x211816(%rip), %rdx    # 0x237d75
xorl %eax, %eax
callq 0x22b0
addq $0x38, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/inter.cpp
// Function: print_ul_alignment(ma_ug_t*, all_ul_t*, unsigned int, char const*)
void print_ul_alignment(ma_ug_t *ug, all_ul_t *aln, uint32_t id, const char* cmd)
{
	uc_block_t *a = NULL; int64_t k, a_n;
	a = aln->a[id].bb.a; a_n = aln->a[id].bb.n;
	fprintf(stderr, "\n%s::[M::%s::ul_id->%u::a_n->%ld]\n", cmd, __func__, id, a_n);
	for (k = 0; k < a_n; k++) {
		fprintf(stderr, "[k->%ld::utg%.6d%c(len->%u)]\tts::%u\tte::%u\t%c\tqs::%u\tqe::%u\tpchain::%u\tpidx::%u\taidx::%u\tpdis::%u\n", 
			k, a[k].hid + 1, "lc"[ug->u.a[a[k].hid].circ], ug->u.a[a[k].hid].len, 
			a[k].ts, a[k].te, "+-"[a[k].rev], a[k].qs, a[k].qe, a[k].pchain, a[k].pidx, a[k].aidx, a[k].pdis);
		
	}
	
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %edx, %r8d
movq %rdi, %rbx
movq 0x48(%rsi), %rax
movl %edx, %edx
imulq $0x58, %rdx, %rdx
movq 0x20(%rax,%rdx), %r14
movq 0x30(%rax,%rdx), %r13
movq 0x263a43(%rip), %rbp    # 0x289fe0
movq (%rbp), %rdi
leaq 0x211874(%rip), %rsi    # 0x237e1c
leaq 0x211890(%rip), %rax    # 0x237e3f
movq %rcx, %rdx
movq %rax, %rcx
movq %r14, %r9
xorl %eax, %eax
callq 0x22b0
testq %r14, %r14
jle 0x2669f
addq $0x20, %r13
xorl %r12d, %r12d
movq %rbx, 0x10(%rsp)
movq %r14, 0x8(%rsp)
movq (%rbp), %rdi
movl -0x20(%r13), %eax
movl -0x1c(%r13), %ecx
movq %rcx, 0x30(%rsp)
leal 0x1(%rax), %ecx
movq 0x10(%rbx), %rdx
imulq $0x28, %rax, %rax
movl (%rdx,%rax), %r9d
movl %r9d, %eax
shrl $0x1f, %eax
leaq 0x202025(%rip), %rdx    # 0x22862b
movsbl (%rax,%rdx), %r8d
andl $0x7fffffff, %r9d       # imm = 0x7FFFFFFF
movl -0x14(%r13), %eax
movq %rax, 0x28(%rsp)
movl -0x10(%r13), %eax
movq %rax, 0x20(%rsp)
movzbl (%r13), %ebx
btl $0x5, %ebx
leaq 0x1ffb8f(%rip), %rax    # 0x2261c3
adcq $0x0, %rax
movsbl (%rax), %eax
movq %rax, 0x18(%rsp)
movl -0x18(%r13), %r14d
andl $0x1f, %ebx
movl -0xc(%r13), %r10d
movl -0x4(%r13), %r11d
movl -0x8(%r13), %r15d
subq $0x8, %rsp
leaq 0x2117f4(%rip), %rsi    # 0x237e52
movq %r12, %rdx
xorl %eax, %eax
pushq %r15
pushq %r11
pushq %r10
pushq %rbx
movq 0x38(%rsp), %rbx
pushq %r14
movq 0x38(%rsp), %r14
pushq 0x60(%rsp)
pushq 0x50(%rsp)
pushq 0x60(%rsp)
pushq 0x70(%rsp)
callq 0x22b0
addq $0x50, %rsp
incq %r12
addq $0x24, %r13
cmpq %r12, %r14
jne 0x265d9
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq