LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/Overlaps.cpp
// Function: write_trans_chain(trans_chain*, char const*)
void write_trans_chain(trans_chain* t_ch, const char *fn)
{
    char *buf = (char*)calloc(strlen(fn) + 25, 1);
    sprintf(buf, "%s.hic.trans.bin", fn);
    FILE* fp = fopen(buf, "w");

    fwrite(&t_ch->r_num, sizeof(t_ch->r_num), 1, fp);
    fwrite(t_ch->ir_het, sizeof(uint8_t), t_ch->r_num, fp);
    
    uint32_t i;
    fwrite(&t_ch->bed.n, sizeof(t_ch->bed.n), 1, fp);
    for (i = 0; i < t_ch->bed.n; i++)
    {
        fwrite(&t_ch->bed.a[i].n, sizeof(t_ch->bed.a[i].n), 1, fp);
        fwrite(t_ch->bed.a[i].a, sizeof(bed_interval), t_ch->bed.a[i].n, fp);
    }

    fwrite(&t_ch->k_trans.n, sizeof(t_ch->k_trans.n), 1, fp);
    fwrite(t_ch->k_trans.a, sizeof(u_trans_t), t_ch->k_trans.n, fp);

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


    fclose(fp);
    free(buf);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x2090
leaq 0x19(%rax), %rdi
pushq $0x1
popq %rbp
movq %rbp, %rsi
callq 0x2120
movq %rax, %r15
leaq 0x1648a3(%rip), %rsi    # 0x1e898f
xorl %r12d, %r12d
movq %rax, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x2050
leaq 0x17659e(%rip), %rsi    # 0x1fa6a1
movq %r15, (%rsp)
movq %r15, %rdi
callq 0x2210
movq %rax, %r15
leaq 0x18(%rbx), %rdi
pushq $0x4
popq %rsi
movq %rbp, %rdx
movq %rax, %rcx
callq 0x2410
movq 0x10(%rbx), %rdi
movl 0x18(%rbx), %edx
movq %rbp, %rsi
movq %r15, %rcx
callq 0x2410
leaq 0x20(%rbx), %r13
pushq $0x8
popq %rsi
movq %r13, %rdi
movq %rbp, %rdx
movq %r15, %rcx
callq 0x2410
pushq $0x10
popq %r14
movl %r12d, %r12d
cmpq %r12, (%r13)
jbe 0x8418e
imulq $0x18, %r12, %rbp
movq 0x30(%rbx), %rdi
addq %rbp, %rdi
pushq $0x8
popq %rsi
pushq $0x1
popq %rdx
movq %r15, %rcx
callq 0x2410
movq 0x30(%rbx), %rax
movq (%rax,%rbp), %rdx
movq 0x10(%rax,%rbp), %rdi
movq %r14, %rsi
movq %r15, %rcx
callq 0x2410
incl %r12d
jmp 0x8414f
leaq 0x138(%rbx), %rdi
pushq $0x8
popq %r14
pushq $0x1
popq %r12
movq %r14, %rsi
movq %r12, %rdx
movq %r15, %rcx
callq 0x2410
movq 0x138(%rbx), %rdx
movq 0x148(%rbx), %rdi
pushq $0x30
popq %rsi
movq %r15, %rcx
callq 0x2410
leaq 0x150(%rbx), %rdi
movq %r14, %rsi
movq %r12, %rdx
movq %r15, %rcx
callq 0x2410
movq 0x150(%rbx), %rdx
movq 0x160(%rbx), %rdi
movq %r14, %rsi
movq %r15, %rcx
callq 0x2410
movq %r15, %rdi
callq 0x2190
movq (%rsp), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2220
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/Overlaps.cpp
// Function: get_bub_pop_max_dist_advance(asg_t*, buf_t*)
uint64_t get_bub_pop_max_dist_advance(asg_t *g, buf_t *b)
{
    asg_arc_t *av = NULL;
    uint32_t n_vtx = g->n_seq<<1, k, v, w, kv, nv, p_bub;
    uint64_t cLen = 0, mLen = 0;
    
    
    for (v = 0; v < n_vtx; ++v) 
    {
        if(b->a[v>>1].s) continue;
        if(g->seq[v>>1].del) continue;


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

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

    for (k = 0; k < g->n_seq; ++k) 
    {
        // if(b->a[k].s == 0 && !g->seq[k].del)
        // {   
        //     uint32_t convex;
        //     long long nodeLen, baseLen, max_stop_nodeLen, max_stop_baseLen;
        //     if(get_unitig(g, NULL, k<<1, &convex, &nodeLen, &baseLen, &max_stop_nodeLen, 
        //                                                             &max_stop_baseLen, 1, NULL) != LOOP)
        //     {
        //         fprintf(stderr, "ERROR 1\n");
        //     }
        // } 
        b->a[k].s = 0;
    }

    // for (; k < n_vtx; ++k)
    // {
    //     if(b->a[k].s == 1) fprintf(stderr, "ERROR 2\n");
    // }
    
    ///fprintf(stderr, "mLen: %lu, tLen: %lu\n", mLen, tLen);
    b->S.n = b->b.n = 0;
    return mLen;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl 0x14(%rdi), %r13d
addl %r13d, %r13d
xorl %r12d, %r12d
xorl %r15d, %r15d
cmpq %r13, %r12
je 0x84a43
movq (%rbx), %rcx
movl %r12d, %eax
shrl %eax
imulq $0x1c, %rax, %rdx
cmpl $0x0, 0x18(%rcx,%rdx)
js 0x84a3b
movq 0x20(%r14), %rcx
cmpl $0x0, (%rcx,%rax,8)
js 0x84a3b
movq 0x8(%r14), %rcx
movq 0x28(%r14), %rax
movq (%rax,%r12,8), %rax
movl %eax, %edx
movq %rax, %rsi
shrq $0x20, %rsi
imulq $0x18, %rdx, %rax
imulq $0x18, %rsi, %rdx
addq %rdx, %rcx
addq $0xc, %rcx
xorl %edx, %edx
xorl %esi, %esi
cmpq %rdx, %rax
je 0x849ff
cmpl $0x0, (%rcx,%rdx)
js 0x849f9
movl -0x4(%rcx,%rdx), %ebp
xorl $0x1, %ebp
incl %esi
addq $0x18, %rdx
jmp 0x849e5
cmpl $0x1, %esi
jne 0x84a15
movq %r14, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0xc2e7a
cmpl $0x1, %eax
je 0x84a3b
movl %r12d, %edx
xorl $0x1, %edx
movq %r14, %rdi
movq %rbx, %rsi
leaq 0x4(%rsp), %rcx
callq 0xa8bc5
cmpq %r15, %rax
cmovbeq %r15, %rax
cmpl $0x0, 0x4(%rsp)
cmovneq %rax, %r15
incq %r12
jmp 0x84993
pushq $0x18
popq %rax
xorl %ecx, %ecx
movl 0x14(%r14), %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
cmpq %rdx, %rcx
jae 0x84a6a
movq (%rbx), %rdx
andl $0x7fffffff, (%rdx,%rax) # imm = 0x7FFFFFFF
incq %rcx
addq $0x1c, %rax
jmp 0x84a48
andq $0x0, 0x38(%rbx)
andq $0x0, 0x8(%rbx)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/Overlaps.cpp
// Function: update_dump_trio(unsigned char*, unsigned int, unsigned char*, ma_ug_t*)
void update_dump_trio(uint8_t* trio_flag, uint32_t rn, uint8_t *rf, ma_ug_t *ug)
{
    uint32_t k, i, x;
    ma_utg_t *p = NULL; 
    if(ug) {
        for (i = 0; i < ug->u.n; ++i) { // the Segment lines in GFA
            p = &ug->u.a[i];
            if(p->m == 0) continue;
            for (k = 0; k < p->n; k++) {
                x = p->a[k]>>33;
                if(trio_flag[x] == FATHER || trio_flag[x] == MOTHER) {
                    rf[x] = trio_flag[x];
                } else if(rf[x] != FATHER && rf[x] != MOTHER) {
                    rf[x] = DROP;
                }
            }
        }
    } else {
        for (i = 0; i < rn; i++) {
            if(rf[i]) {
                rf[i] <<= 1; rf[i] += 1;
            } else {
                rf[i] = trio_flag[i]; rf[i] <<= 1;
            }

            if(trio_flag[i] == FATHER || trio_flag[i] == MOTHER) {
                trio_flag[i] = ((rf[i]&1)?MOTHER:FATHER);
            } else {
                trio_flag[i] = ((rf[i]&1)?DROP:AMBIGU);
            }
        }
    }    
}

// Assembly:
testq %rcx, %rcx
je 0x86904
xorl %eax, %eax
movl %eax, %eax
cmpq %rax, (%rcx)
jbe 0x8695a
movq 0x10(%rcx), %rsi
imulq $0x28, %rax, %r8
cmpl $0x0, 0xc(%rsi,%r8)
je 0x86900
addq %r8, %rsi
xorl %r8d, %r8d
movl 0x10(%rsi), %r9d
cmpq %r9, %r8
jae 0x86900
movq 0x18(%rsi), %r9
movq (%r9,%r8,8), %r9
shrq $0x21, %r9
movb (%rdi,%r9), %r10b
leal -0x1(%r10), %r11d
cmpb $0x2, %r11b
jb 0x868f7
movb (%rdx,%r9), %r11b
decb %r11b
movb $0x5, %r10b
cmpb $0x2, %r11b
jb 0x868fb
movb %r10b, (%rdx,%r9)
incq %r8
jmp 0x868c4
incl %eax
jmp 0x868a3
movl %esi, %eax
xorl %ecx, %ecx
cmpq %rcx, %rax
je 0x8695a
movb (%rdx,%rcx), %sil
testb %sil, %sil
je 0x8691e
addb %sil, %sil
incb %sil
jmp 0x86925
movb (%rdi,%rcx), %sil
addb %sil, %sil
movb %sil, (%rdx,%rcx)
movb (%rdi,%rcx), %r8b
decb %r8b
andb $0x1, %sil
movl %esi, %r9d
negb %r9b
andb $0x5, %r9b
incb %sil
cmpb $0x2, %r8b
movzbl %sil, %esi
movzbl %r9b, %r8d
cmovbl %esi, %r8d
movb %r8b, (%rdi,%rcx)
incq %rcx
jmp 0x86908
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/Overlaps.cpp
// Function: update_poly_trio(unsigned int, unsigned int*, unsigned int)
void update_poly_trio(uint32_t mm, uint32_t *hapS, uint32_t rn)
{
    uint32_t i;
    for (i = 0; i < rn; i++) {
        if(R_INF.trio_flag[i] == DROP) continue;
        R_INF.trio_flag[i] = AMBIGU;
        if(!hapS[i]) continue;
        R_INF.trio_flag[i] = (hapS[i]&mm?FATHER:MOTHER);
    }    
}

// Assembly:
movl %edx, %eax
xorl %ecx, %ecx
leaq 0x1cd8ca(%rip), %rdx    # 0x254230
cmpq %rcx, %rax
je 0x869a2
movq 0x28(%rdx), %r8
cmpb $0x5, (%r8,%rcx)
je 0x8699d
movb $0x0, (%r8,%rcx)
movl (%rsi,%rcx,4), %r8d
testl %r8d, %r8d
je 0x8699d
andl %edi, %r8d
cmpl $0x1, %r8d
movl $0x0, %r8d
adcb $0x1, %r8b
movq 0x28(%rdx), %r9
movb %r8b, (%r9,%rcx)
incq %rcx
jmp 0x86966
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/Overlaps.cpp
// Function: debug_hapS(unsigned int*, unsigned int)
void debug_hapS(uint32_t *hapS, uint32_t rn)
{
    uint32_t i, p, tot, nt, max_tot = 0, *occ = NULL, *freq = NULL;
    for (i = 0; i < rn; i++) {
        for (p = hapS[i], tot = 0; p; p>>=1, tot++);   
        max_tot = MAX(max_tot, tot); 
    }
    fprintf(stderr, "[M::%s:] ==> %u haplotypes in total\n", __func__, max_tot);
    if(max_tot){
        CALLOC(occ, max_tot+1);
        CALLOC(freq, max_tot+1);
        for (i = 0; i < rn; i++) {
            for (p = hapS[i], tot = nt = 0; p; p>>=1, tot++){
                if(p&1) occ[tot+1]++, nt++;
            }
            freq[nt]++;
        }
        for (i = 1; i <= max_tot; i++) {
            fprintf(stderr, "[M::%s:] ==> # reads in hap%u: %u\n", __func__, i, occ[i]);
        }
        for (i = 0; i <= max_tot; i++) {
            fprintf(stderr, "[M::%s:] ==> # reads within %u haplotypes: %u\n", __func__, i, freq[i]);
        }
        free(occ); free(freq);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movl %esi, %ebp
xorl %eax, %eax
xorl %ebx, %ebx
cmpq %rbp, %rax
je 0x869d6
movl (%r14,%rax,4), %edx
xorl %ecx, %ecx
testl %edx, %edx
je 0x869cc
shrl %edx
incl %ecx
jmp 0x869c2
cmpl %ecx, %ebx
cmovbel %ecx, %ebx
incq %rax
jmp 0x869b7
movq 0x1cc603(%rip), %rax    # 0x252fe0
movq (%rax), %rdi
leaq 0x161ff0(%rip), %rsi    # 0x1e89d7
leaq 0x16200e(%rip), %rdx    # 0x1e89fc
movl %ebx, %ecx
xorl %eax, %eax
callq 0x22b0
testl %ebx, %ebx
je 0x86ae8
leal 0x1(%rbx), %r12d
pushq $0x4
popq %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0x2120
movq %rax, %r15
movq %r12, %rdi
movq %r13, %rsi
callq 0x2120
movq %rax, %r12
movq %r15, %rax
addq $0x4, %rax
xorl %ecx, %ecx
cmpq %rbp, %rcx
je 0x86a5b
movl (%r14,%rcx,4), %esi
xorl %edx, %edx
movq %rax, %rdi
testl %esi, %esi
je 0x86a50
testb $0x1, %sil
je 0x86a48
incl (%rdi)
incl %edx
shrl %esi
addq $0x4, %rdi
jmp 0x86a3a
movl %edx, %edx
incl (%r12,%rdx,4)
incq %rcx
jmp 0x86a2c
pushq $0x1
popq %rbp
leaq 0x161fa2(%rip), %r14    # 0x1e8a07
leaq 0x161f90(%rip), %r13    # 0x1e89fc
cmpl %ebx, %ebp
ja 0x86a93
movq 0x1cc569(%rip), %rax    # 0x252fe0
movq (%rax), %rdi
movl %ebp, %eax
movl (%r15,%rax,4), %r8d
movq %r14, %rsi
movq %r13, %rdx
movl %ebp, %ecx
xorl %eax, %eax
callq 0x22b0
incl %ebp
jmp 0x86a6c
leaq 0x161f90(%rip), %r14    # 0x1e8a2a
leaq 0x161f5b(%rip), %r13    # 0x1e89fc
xorl %ebp, %ebp
cmpl %ebx, %ebp
ja 0x86aca
movq 0x1cc532(%rip), %rax    # 0x252fe0
movq (%rax), %rdi
movl %ebp, %eax
movl (%r12,%rax,4), %r8d
movq %r14, %rsi
movq %r13, %rdx
movl %ebp, %ecx
xorl %eax, %eax
callq 0x22b0
incl %ebp
jmp 0x86aa3
movq %r15, %rdi
callq 0x2220
movq %r12, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2220
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/Overlaps.cpp
// Function: output_poly_trio(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, int, int, bub_label_t*, unsigned int)
void output_poly_trio(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, int gap_fuzz, int is_bench, 
bub_label_t* b_mask_t, uint32_t hapN)
{
    uint32_t i;
    uint32_t *hapS = ha_polybin_list(&asm_opt);
    // debug_hapS(hapS, sg->n_seq);
    char *fp = NULL; MALLOC(fp, 100);
    for (i = 0; i < hapN; i++){
        update_poly_trio(1<<i, hapS, sg->n_seq);
        sprintf(fp, "hap%u", i+1);
        output_trio_unitig_graph(sg, coverage_cut, output_file_name, FATHER, sources, reverse_sources, tipsLen, tip_drop_ratio, 
        stops_threshold, ruIndex, chimeric_rate, drop_ratio, max_hang, min_ovlp, gap_fuzz, is_bench, b_mask_t, fp, NULL, NULL);
    }
    free(fp); free(hapS);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movss %xmm2, 0x78(%rsp)
movss %xmm1, 0x74(%rsp)
movss %xmm0, 0x70(%rsp)
movq %r9, 0xb0(%rsp)
movq %r8, 0xa8(%rsp)
movq %rcx, 0xa0(%rsp)
movq %rdx, 0x98(%rsp)
movq %rsi, 0x90(%rsp)
movq %rdi, %rbp
movl 0x128(%rsp), %eax
movl %eax, 0x7c(%rsp)
movq 0x120(%rsp), %rax
movq %rax, 0x88(%rsp)
movl 0x118(%rsp), %eax
movl %eax, 0x6c(%rsp)
movl 0x110(%rsp), %eax
movl %eax, 0x68(%rsp)
movl 0x108(%rsp), %eax
movl %eax, 0x64(%rsp)
movl 0x100(%rsp), %eax
movl %eax, 0x60(%rsp)
movq 0xf8(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0xf0(%rsp), %r13
leaq 0x1ccbad(%rip), %rdi    # 0x253758
callq 0xc4e9b
movq %rax, %rbx
pushq $0x64
popq %rdi
callq 0x2280
movq %rax, %r14
pushq $0x1
popq %r15
xorl %r12d, %r12d
cmpl %r12d, 0x7c(%rsp)
je 0x86c9b
movl %r15d, %edi
movl %r12d, %ecx
shll %cl, %edi
movl 0x14(%rbp), %edx
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
andl %eax, %edx
movq %rbx, %rsi
callq 0x8695b
incl %r12d
movq %r14, %rdi
leaq 0x161e62(%rip), %rsi    # 0x1e8a59
movl %r12d, %edx
xorl %eax, %eax
callq 0x2050
xorps %xmm0, %xmm0
movups %xmm0, 0x48(%rsp)
movq %r14, 0x40(%rsp)
movq 0x88(%rsp), %rax
movq %rax, 0x38(%rsp)
movl 0x6c(%rsp), %eax
movl %eax, 0x30(%rsp)
movl 0x68(%rsp), %eax
movl %eax, 0x28(%rsp)
movl 0x64(%rsp), %eax
movl %eax, 0x20(%rsp)
movl 0x60(%rsp), %eax
movl %eax, 0x18(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x10(%rsp)
movq %r13, 0x8(%rsp)
movq 0xb0(%rsp), %rax
movq %rax, (%rsp)
movq %rbp, %rdi
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rdx
movl %r15d, %ecx
movq 0xa0(%rsp), %r8
movq 0xa8(%rsp), %r9
movss 0x70(%rsp), %xmm0
movss 0x74(%rsp), %xmm1
movss 0x78(%rsp), %xmm2
callq 0x86cbc
jmp 0x86bc5
movq %r14, %rdi
callq 0x2220
movq %rbx, %rdi
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2220
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/Overlaps.cpp
// Function: write_dbug(ma_ug_t*, _IO_FILE*)
void write_dbug(ma_ug_t* ug, FILE* fp)
{
    ma_utg_t *u = NULL;
    uint32_t t, i;
    fwrite(&(ug->u.n), sizeof(ug->u.n), 1, fp);
    for (i = 0; i < ug->u.n; i++)
    {
        u = &(ug->u.a[i]);
        t = u->len;
        fwrite(&t, sizeof(t), 1, fp);
        t = u->circ;
        fwrite(&t, sizeof(t), 1, fp);
        fwrite(&(u->start), sizeof(u->start), 1, fp);
        fwrite(&(u->end), sizeof(u->end), 1, fp);
        fwrite(&(u->n), sizeof(u->n), 1, fp);
        fwrite(u->a, sizeof(uint64_t), u->n, fp);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
pushq $0x8
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x2410
xorl %eax, %eax
movq %r14, 0x10(%rsp)
pushq $0x4
popq %rbp
movl %eax, %r13d
cmpq %r13, (%r14)
jbe 0x874e9
movq 0x10(%rsp), %rax
movq 0x10(%rax), %r14
imulq $0x28, %r13, %r12
leaq (%r14,%r12), %r15
addq $0x4, %r15
movl -0x4(%r15), %eax
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
andl %ecx, %eax
movl %eax, 0xc(%rsp)
leaq 0xc(%rsp), %rdi
pushq $0x4
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x2410
movl -0x4(%r15), %eax
shrl $0x1f, %eax
movl %eax, 0xc(%rsp)
leaq 0xc(%rsp), %rdi
movq %rbp, %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x2410
movq %r15, %rdi
movq %rbp, %rsi
pushq $0x1
popq %r15
movq %r15, %rdx
movq %rbx, %rcx
callq 0x2410
leaq (%r14,%r12), %rdi
addq $0x8, %rdi
movq %rbp, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x2410
leaq (%r14,%r12), %r15
addq $0x10, %r15
movq 0x10(%rsp), %r14
movq %r15, %rdi
movq %rbp, %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x2410
movq 0x8(%r15), %rdi
movl (%r15), %edx
pushq $0x8
popq %rsi
movq %rbx, %rcx
callq 0x2410
leal 0x1(%r13), %eax
jmp 0x87424
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/Overlaps.cpp
// Function: filter_u_trans(kv_u_trans_t*, unsigned char, unsigned char, unsigned char, unsigned char)
void filter_u_trans(kv_u_trans_t *ta, uint8_t keep_bub, uint8_t keep_topo, uint8_t keep_read, uint8_t keep_base)
{
    if(keep_bub && keep_topo && keep_read && keep_base) return;
    uint32_t i, m;
    for (i = m = 0; i < ta->n; i++) {
        if((!keep_bub) && (ta->a[i].f == RC_0)) continue;
        if((!keep_topo) && (ta->a[i].f == RC_1)) continue;
        if((!keep_read) && (ta->a[i].f == RC_2)) continue;
        if((!keep_base) && (ta->a[i].f == RC_3)) continue;
        ta->a[m++] = ta->a[i];
    }
    ta->n = m;
}

// Assembly:
testl %esi, %esi
setne %al
testl %edx, %edx
setne %r9b
andb %al, %r9b
testl %ecx, %ecx
setne %al
andb %r9b, %al
testl %r8d, %r8d
setne %r9b
testb %r9b, %al
jne 0x875bf
pushq %rbx
xorl %eax, %eax
xorl %r9d, %r9d
movl %eax, %eax
movl %r9d, %r10d
cmpq %rax, (%rdi)
jbe 0x875bb
movq 0x10(%rdi), %r11
testb %sil, %sil
jne 0x87547
imulq $0x30, %rax, %rbx
testb $0x3f, 0x28(%r11,%rbx)
je 0x875b4
testb %dl, %dl
jne 0x8755c
imulq $0x30, %rax, %rbx
movb 0x28(%r11,%rbx), %bl
andb $0x3f, %bl
cmpb $0x1, %bl
je 0x875b4
testb %cl, %cl
jne 0x87571
imulq $0x30, %rax, %rbx
movb 0x28(%r11,%rbx), %bl
andb $0x3f, %bl
cmpb $0x2, %bl
je 0x875b4
testb %r8b, %r8b
jne 0x87587
imulq $0x30, %rax, %rbx
movb 0x28(%r11,%rbx), %bl
andb $0x3f, %bl
cmpb $0x3, %bl
je 0x875b4
imulq $0x30, %rax, %rbx
incl %r9d
imulq $0x30, %r10, %r10
movups (%r11,%rbx), %xmm0
movups 0x10(%r11,%rbx), %xmm1
movups 0x20(%r11,%rbx), %xmm2
movups %xmm2, 0x20(%r11,%r10)
movups %xmm1, 0x10(%r11,%r10)
movups %xmm0, (%r11,%r10)
incl %eax
jmp 0x87524
movq %r10, (%rdi)
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/Overlaps.cpp
// Function: ovlp_rocc(u_trans_t*, ma_ug_t*, asg_t*, double, unsigned int)
uint32_t ovlp_rocc(u_trans_t *p, ma_ug_t *ug, asg_t *rg, double cov_rate, uint32_t cov_cutoff)
{
    ma_utg_t *u = NULL; uint32_t s, e, rs, re, occ, k, l;
    u = &(ug->u.a[p->qn]); s = p->qs; e = p->qe;
    if((e-s) >= (u->len*cov_rate)) return 1;
    for (k = l = occ = 0; k < u->n && occ < cov_cutoff; k++) {
        rs = l; re = l + rg->seq[u->a[k]>>33].len;
        if(rs >= e) break;
        if(s <= rs && e >= re) occ++;
        l += (uint32_t)u->a[k];
    }
    if(occ >= cov_cutoff) return 1;

    u = &(ug->u.a[p->tn]); s = p->ts; e = p->te;
    if((e-s) >= (u->len*cov_rate)) return 1;
    for (k = l = occ = 0; k < u->n && occ < cov_cutoff; k++) {
        rs = l; re = l + rg->seq[u->a[k]>>33].len;
        if(rs >= e) break;
        if(s <= rs && e >= re) occ++;
        l += (uint32_t)u->a[k];
    }
    if(occ >= cov_cutoff) return 1;
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq 0x10(%rsi), %rsi
movl 0x8(%rdi), %eax
imulq $0x28, %rax, %r8
movl (%rdi), %r9d
movl 0x4(%rdi), %r10d
movl %r10d, %eax
subl %r9d, %eax
cvtsi2sd %rax, %xmm1
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
andl (%rsi,%r8), %eax
cvtsi2sd %eax, %xmm2
mulsd %xmm0, %xmm2
movl $0x1, %eax
ucomisd %xmm2, %xmm1
jae 0x878a7
addq %rsi, %r8
movl 0x10(%r8), %r11d
xorl %ebx, %ebx
xorl %ebp, %ebp
xorl %r14d, %r14d
cmpq %r11, %rbx
jae 0x87806
cmpl %ecx, %ebp
jae 0x87806
cmpl %r10d, %r14d
jae 0x87806
movq 0x20(%rdx), %r15
movq 0x18(%r8), %r12
movq (%r12,%rbx,8), %r12
movq %r12, %r13
shrq $0x21, %r13
movl (%r15,%r13,8), %r15d
andl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
addl %r14d, %r15d
cmpl %r14d, %r9d
setbe %r13b
cmpl %r15d, %r10d
setae %r15b
andb %r13b, %r15b
movzbl %r15b, %r15d
addl %r15d, %ebp
addl %r14d, %r12d
incq %rbx
movl %r12d, %r14d
jmp 0x877b4
cmpl %ecx, %ebp
jae 0x878a7
movl 0x14(%rdi), %r8d
imulq $0x28, %r8, %r9
movl 0xc(%rdi), %r8d
movl 0x10(%rdi), %edi
movl %edi, %r10d
subl %r8d, %r10d
cvtsi2sd %r10, %xmm1
movl $0x7fffffff, %r10d      # imm = 0x7FFFFFFF
andl (%rsi,%r9), %r10d
cvtsi2sd %r10d, %xmm2
mulsd %xmm0, %xmm2
ucomisd %xmm2, %xmm1
jae 0x878a7
addq %r9, %rsi
movl 0x10(%rsi), %eax
xorl %r9d, %r9d
xorl %r10d, %r10d
xorl %r11d, %r11d
cmpq %rax, %r9
jae 0x8789f
cmpl %ecx, %r10d
jae 0x8789f
cmpl %edi, %r11d
jae 0x8789f
movq 0x20(%rdx), %rbx
movq 0x18(%rsi), %r14
movq (%r14,%r9,8), %r14
movq %r14, %r15
shrq $0x21, %r15
movl (%rbx,%r15,8), %ebx
andl $0x7fffffff, %ebx       # imm = 0x7FFFFFFF
addl %r11d, %ebx
cmpl %r11d, %r8d
setbe %bpl
cmpl %ebx, %edi
setae %bl
andb %bpl, %bl
movzbl %bl, %ebx
addl %ebx, %r10d
addl %r11d, %r14d
incq %r9
movl %r14d, %r11d
jmp 0x87850
xorl %eax, %eax
cmpl %ecx, %r10d
setae %al
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/Overlaps.cpp
// Function: is_connect_arc(u_trans_t*, u_trans_t*, ma_ug_t*, double)
uint32_t is_connect_arc(u_trans_t *li, u_trans_t *lj, ma_ug_t *ug, double diff_ec_ul)
{
    if(li->qs >= lj->qs && li->qe >= lj->qe) {
        int64_t dq = infer_utrans_ovlp_len(li, lj, ug);
        uint32_t v = (li->tn<<1)|li->rev, w = (lj->tn<<1)|lj->rev;
        int64_t dt = -1, dif, mm; uint32_t nv, i; asg_arc_t *av;
        nv = asg_arc_n(ug->g, v); av = asg_arc_a(ug->g, v);
		for (i = 0; i < nv; i++) {
			if(av[i].del || av[i].v != w) continue;
			dt = av[i].ol;
			break;
		}

        if(dt < 0) return 0;
	    dif = (dq>dt? dq-dt:dt-dq);
	    mm = MAX(dq, dt); mm *= diff_ec_ul; if(mm < 8) mm = 8;
        if(dif <= mm) return 1;
    }
    return 0;
}

// Assembly:
movl (%rdi), %eax
xorl %ecx, %ecx
cmpl (%rsi), %eax
jb 0x87b5d
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %r15
movl 0x4(%rdi), %eax
cmpl 0x4(%rsi), %eax
jb 0x87b54
movq %rdx, %rbx
movsd %xmm0, 0x8(%rsp)
movq %r15, %rdi
movq %r14, %rsi
callq 0x878ce
movl 0x14(%r15), %ecx
movl 0x28(%r15), %edx
shrl $0x6, %edx
andl $0x1, %edx
leal (%rdx,%rcx,2), %ecx
movl 0x14(%r14), %edx
movl 0x28(%r14), %esi
shrl $0x6, %esi
andl $0x1, %esi
leal (%rsi,%rdx,2), %edx
movq 0x18(%rbx), %rsi
movq 0x8(%rsi), %rdi
movq 0x28(%rsi), %rsi
movq (%rsi,%rcx,8), %rcx
movl %ecx, %esi
shrq $0x20, %rcx
imulq $0x18, %rsi, %rsi
imulq $0x18, %rcx, %rcx
addq %rcx, %rdi
addq $0xc, %rdi
xorl %ecx, %ecx
xorl %r8d, %r8d
cmpq %r8, %rsi
je 0x87b54
movslq (%rdi,%r8), %r9
testq %r9, %r9
js 0x87b17
cmpl %edx, -0x4(%rdi,%r8)
je 0x87b1d
addq $0x18, %r8
jmp 0x87b02
movq %rax, %rcx
subq %r9, %rcx
cmovgq %rax, %r9
movq %rcx, %rax
negq %rax
cmovsq %rcx, %rax
cvtsi2sd %r9, %xmm0
mulsd 0x8(%rsp), %xmm0
cvttsd2si %xmm0, %rcx
cmpq $0x9, %rcx
pushq $0x8
popq %rdx
cmovgeq %rcx, %rdx
xorl %ecx, %ecx
cmpq %rdx, %rax
setbe %cl
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
movl %ecx, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/Overlaps.cpp
// Function: dbg_prt_utg_trans(kv_u_trans_t*, ma_ug_t*, char const*)
void dbg_prt_utg_trans(kv_u_trans_t *ta, ma_ug_t *ug, const char *o_n)
{
    char* gfa_name = (char*)malloc(strlen(o_n)+100); 
    FILE *fn = NULL; sprintf(gfa_name, "%s.tran.dbg.ovlp.log", o_n);
    u_trans_t *p = NULL; uint32_t i; fn = fopen(gfa_name, "w");
    for (i = 0; i < ta->n; i++) {
        p = &(ta->a[i]);
        fprintf(fn, "utg%.6u%c\t%u\t%u\t%u\t%c\tutg%.6u%c\t%u\t%u\t%u\tw(%f)\tf(%u)\n", 
        p->qn+1, "lc"[ug->u.a[p->qn].circ], ug->u.a[p->qn].len, p->qs, p->qe, "+-"[p->rev],
        p->tn+1, "lc"[ug->u.a[p->tn].circ], ug->u.a[p->tn].len, p->ts, p->te, p->nw, p->f);
    }
    fclose(fn); free(gfa_name); fprintf(stderr, "[M::%s::] done\n", __func__);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r12
movq %rsi, 0x10(%rsp)
movq %rdi, %r14
movq %rdx, %rdi
callq 0x2090
leaq 0x64(%rax), %rdi
callq 0x2280
movq %rax, %r15
leaq 0x160742(%rip), %rsi    # 0x1e8ba2
xorl %ebx, %ebx
movq %rax, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0x2050
leaq 0x17222b(%rip), %rsi    # 0x1fa6a1
movq %r15, 0x8(%rsp)
movq %r15, %rdi
callq 0x2210
movq %rax, (%rsp)
movl %ebx, %r13d
cmpq %r13, (%r14)
jbe 0x8856c
movq 0x10(%r14), %rax
imulq $0x30, %r13, %rsi
movl 0x8(%rax,%rsi), %ecx
leal 0x1(%rcx), %edx
movq 0x10(%rsp), %rdi
movq 0x10(%rdi), %rdi
imulq $0x28, %rcx, %rcx
movl (%rdi,%rcx), %r8d
movl %r8d, %ecx
shrl $0x1f, %ecx
leaq 0x15e1cb(%rip), %r9     # 0x1e668b
movsbl (%rcx,%r9), %ecx
movl $0x7fffffff, %r9d       # imm = 0x7FFFFFFF
andl %r9d, %r8d
movl (%rax,%rsi), %r9d
movl 0x4(%rax,%rsi), %r10d
movq %r10, 0x20(%rsp)
movzbl 0x28(%rax,%rsi), %r12d
btl $0x6, %r12d
leaq 0x15bd35(%rip), %r11    # 0x1e4223
adcq $0x0, %r11
movsbl (%r11), %r10d
movq %r10, 0x18(%rsp)
movl 0x14(%rax,%rsi), %ebp
leal 0x1(%rbp), %ebx
imulq $0x28, %rbp, %rbp
movl (%rdi,%rbp), %ebp
movl 0xc(%rax,%rsi), %r15d
movsd 0x20(%rax,%rsi), %xmm0
movq %r14, %r10
movl 0x10(%rax,%rsi), %r14d
movl %ebp, %eax
shrl $0x1f, %eax
leaq 0x15e163(%rip), %rsi    # 0x1e668b
movsbl (%rax,%rsi), %r11d
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
andl %eax, %ebp
andl $0x3f, %r12d
movq (%rsp), %rdi
leaq 0x160674(%rip), %rsi    # 0x1e8bb7
movb $0x1, %al
pushq %r12
pushq %r14
movq %r10, %r14
pushq %r15
pushq %rbp
pushq %r11
pushq %rbx
pushq 0x48(%rsp)
pushq 0x58(%rsp)
callq 0x22b0
addq $0x40, %rsp
leal 0x1(%r13), %ebx
jmp 0x88487
movq (%rsp), %rdi
callq 0x2190
movq 0x8(%rsp), %rdi
callq 0x2220
movq 0x1caa5a(%rip), %rax    # 0x252fe0
movq (%rax), %rdi
leaq 0x16065d(%rip), %rsi    # 0x1e8bed
leaq 0x160666(%rip), %rdx    # 0x1e8bfd
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x22b0
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/Overlaps.cpp
// Function: kt_u_trans_t_idx(kv_u_trans_t*, unsigned int)
void kt_u_trans_t_idx(kv_u_trans_t *ta, uint32_t n)
{
    radix_sort_u_trans(ta->a, ta->a + ta->n);
    kv_resize(uint64_t, ta->idx, n);
    ta->idx.n = n;
    memset(ta->idx.a, 0, ta->idx.n*sizeof(uint64_t));
    uint32_t st, i;
    for (st = 0, i = 1; i <= ta->n; ++i)
    {
        if (i == ta->n || ta->a[i].qn != ta->a[st].qn)
        {
            ta->idx.a[ta->a[st].qn] = (uint64_t)st << 32 | (i - st);
            st = i;
        }
    }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
imulq $0x30, (%rbx), %rsi
addq %rdi, %rsi
callq 0x67522
movl %ebp, %r14d
cmpq %r14, 0x20(%rbx)
jae 0x88aaa
leaq -0x1(%r14), %rax
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x10, %rcx
orq %rax, %rcx
leaq 0x1(%rcx), %rax
movq %rax, 0x20(%rbx)
movq 0x28(%rbx), %rdi
leaq 0x8(,%rcx,8), %rsi
callq 0x2370
movq %rax, %rdi
movq %rax, 0x28(%rbx)
jmp 0x88aae
movq 0x28(%rbx), %rdi
movq %r14, 0x18(%rbx)
shlq $0x3, %r14
xorl %ebp, %ebp
xorl %esi, %esi
movq %r14, %rdx
callq 0x20e0
pushq $0x1
popq %rax
movl %eax, %edx
cmpq %rdx, (%rbx)
jb 0x88b0b
movq 0x10(%rbx), %rsi
movl %ebp, %ecx
jne 0x88ade
imulq $0x30, %rcx, %rdx
movl 0x8(%rsi,%rdx), %edx
jmp 0x88af0
imulq $0x30, %rdx, %rdi
imulq $0x30, %rcx, %rdx
movl 0x8(%rsi,%rdx), %edx
cmpl %edx, 0x8(%rsi,%rdi)
je 0x88b07
shlq $0x20, %rcx
movl %eax, %esi
subl %ebp, %esi
orq %rcx, %rsi
movq 0x28(%rbx), %rcx
movl %edx, %edx
movq %rsi, (%rcx,%rdx,8)
movl %eax, %ebp
incl %eax
jmp 0x88ac5
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/Overlaps.cpp
// Function: refine_hic_trans(ug_opt_t*, kv_u_trans_t*, asg_t*, ma_ug_t*)
void refine_hic_trans(ug_opt_t *opt, kv_u_trans_t *ta, asg_t *sg, ma_ug_t *ug)
{
    filter_u_trans(ta, asm_opt.is_bub_trans, asm_opt.is_topo_trans, asm_opt.is_read_trans, asm_opt.is_base_trans);
    if(asm_opt.is_base_trans) {
        trans_base_infer(ug, sg, opt, ta, NULL);
    } 
    // dbg_prt_utg_trans(ta, ug, "pre");
    clean_u_trans_t_idx_filter_adv(ta, ug, sg, 0.95, 0);
    // dbg_prt_utg_trans(ta, ug, "after");
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %r14
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r12
leaq 0x1c9425(%rip), %r13    # 0x253758
movzbl 0x24d(%r13), %esi
movzbl 0x24c(%r13), %edx
movzbl 0x24b(%r13), %ecx
movzbl 0x24a(%r13), %r8d
movq %r15, %rdi
callq 0x874f8
cmpb $0x0, 0x24a(%r13)
je 0x8a379
movq %r14, %rdi
movq %rbx, %rsi
movq %r12, %rdx
movq %r15, %rcx
xorl %r8d, %r8d
callq 0x1a028d
movsd 0x159167(%rip), %xmm0   # 0x1e34e8
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
xorl %ecx, %ecx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x8922a
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/Overlaps.cpp
// Function: set_rset(ma_ug_t*, unsigned int, unsigned char*, unsigned char)
void set_rset(ma_ug_t *ug, uint32_t uid, uint8_t *ff, uint8_t s)
{
    if(ug->g->seq[uid].del) return;
    ma_utg_t* u; uint32_t k, v, nv, w, z; 
    asg_arc_t *av = NULL;

    u = &(ug->u.a[uid]);
    for (k = 0; k < u->n; k++) ff[u->a[k]>>33] = s;

    v = uid<<1; 
    nv = asg_arc_n(ug->g, v);
    av = asg_arc_a(ug->g, v);
    for (k = 0; k < nv; k++) {
        w = av[k].v;
        if(av[k].del) continue;
        if(ug->g->seq[w>>1].del) continue;
        u = &(ug->u.a[w>>1]);
        for (z = 0; z < u->n; z++) ff[u->a[z]>>33] = s;
    }
        
    v = (uid<<1)+1; 
    nv = asg_arc_n(ug->g, v);
    av = asg_arc_a(ug->g, v);
    for (k = 0; k < nv; k++) {
        w = av[k].v;
        if(av[k].del) continue;
        if(ug->g->seq[w>>1].del) continue;
        u = &(ug->u.a[w>>1]);
        for (z = 0; z < u->n; z++) ff[u->a[z]>>33] = s;
    }
}

// Assembly:
pushq %rbx
movq 0x18(%rdi), %rax
movq 0x20(%rax), %r8
movl %esi, %eax
cmpl $0x0, (%r8,%rax,8)
js 0x8a4c8
imulq $0x28, %rax, %rax
addq 0x10(%rdi), %rax
xorl %r8d, %r8d
movl 0x10(%rax), %r9d
cmpq %r9, %r8
jae 0x8a3d9
movq 0x18(%rax), %r9
movq (%r9,%r8,8), %r9
shrq $0x21, %r9
movb %cl, (%rdx,%r9)
incq %r8
jmp 0x8a3bb
addl %esi, %esi
movq 0x18(%rdi), %r9
movq 0x28(%r9), %rax
movq (%rax,%rsi,8), %r8
movl %r8d, %eax
shrq $0x20, %r8
imulq $0x18, %r8, %r8
addq 0x8(%r9), %r8
xorl %r9d, %r9d
cmpq %rax, %r9
je 0x8a450
imulq $0x18, %r9, %r10
cmpl $0x0, 0xc(%r8,%r10)
js 0x8a44b
addq %r8, %r10
movl 0x8(%r10), %r10d
movq 0x18(%rdi), %r11
movq 0x20(%r11), %r11
shrl %r10d
cmpl $0x0, (%r11,%r10,8)
js 0x8a44b
imulq $0x28, %r10, %r10
addq 0x10(%rdi), %r10
xorl %r11d, %r11d
movl 0x10(%r10), %ebx
cmpq %rbx, %r11
jae 0x8a44b
movq 0x18(%r10), %rbx
movq (%rbx,%r11,8), %rbx
shrq $0x21, %rbx
movb %cl, (%rdx,%rbx)
incq %r11
jmp 0x8a42e
incq %r9
jmp 0x8a3f9
movq 0x18(%rdi), %r8
movq 0x28(%r8), %rax
movl %esi, %esi
movq 0x8(%rax,%rsi,8), %rsi
movl %esi, %eax
shrq $0x20, %rsi
imulq $0x18, %rsi, %rsi
addq 0x8(%r8), %rsi
xorl %r8d, %r8d
cmpq %rax, %r8
je 0x8a4c8
imulq $0x18, %r8, %r9
cmpl $0x0, 0xc(%rsi,%r9)
js 0x8a4c3
addq %rsi, %r9
movl 0x8(%r9), %r9d
movq 0x18(%rdi), %r10
movq 0x20(%r10), %r10
shrl %r9d
cmpl $0x0, (%r10,%r9,8)
js 0x8a4c3
imulq $0x28, %r9, %r9
addq 0x10(%rdi), %r9
xorl %r10d, %r10d
movl 0x10(%r9), %r11d
cmpq %r11, %r10
jae 0x8a4c3
movq 0x18(%r9), %r11
movq (%r11,%r10,8), %r11
shrq $0x21, %r11
movb %cl, (%rdx,%r11)
incq %r10
jmp 0x8a4a5
incq %r8
jmp 0x8a470
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/Overlaps.cpp
// Function: check_nc_status(asg_t*, ma_hit_t_alloc*, unsigned char*, unsigned int)
uint32_t check_nc_status(asg_t *sg, ma_hit_t_alloc *src, uint8_t *ff, uint32_t id)
{
    uint32_t i, tn; ma_hit_t *h;
    for (i = 0; i < src[id].length; i++) {
        h = &(src[id].buffer[i]); tn = Get_tn((*h));
        if(sg->seq[tn].del) continue;
        if(!ff[tn]) continue;
        if((Get_qs((*h)) == 0) && (Get_qe((*h)) == sg->seq[id].len)) return 1;
    }
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %ecx, %ecx
imulq $0x18, %rcx, %rax
leaq (%rsi,%rax), %r8
movl 0xc(%rsi,%rax), %esi
movabsq $0xc, %r9
xorl %eax, %eax
movl $0x7fffffff, %r11d      # imm = 0x7FFFFFFF
movl $0x1, %r10d
xorl %ebx, %ebx
cmpq %rsi, %rbx
jae 0x8a53a
movq (%r8), %r14
movl (%r14,%r9), %r12d
movq 0x20(%rdi), %r15
cmpl $0x0, (%r15,%r12,8)
js 0x8a52e
cmpb $0x0, (%rdx,%r12)
je 0x8a52e
cmpl $0x0, -0xc(%r14,%r9)
jne 0x8a52e
movl (%r15,%rcx,8), %ebp
andl %r11d, %ebp
cmpl %ebp, -0x4(%r14,%r9)
je 0x8a537
incq %rbx
addq $0x28, %r9
jmp 0x8a4fa
movl %r10d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/Overlaps.cpp
// Function: gen_cov_rg(ma_ug_t*, asg_t*, ma_hit_t_alloc*)
uint64_t *gen_cov_rg(ma_ug_t *ug, asg_t *sg, ma_hit_t_alloc *src)
{
    uint32_t i, k, rid, j, tn; uint8_t *ff; 
    uint64_t C_bases, *cc; ma_hit_t *h; ma_utg_t *u;
    CALLOC(cc, sg->n_seq); CALLOC(ff, sg->n_seq);

    for (i = 0; i < ug->g->n_seq; i++) {
        if(ug->g->seq[i].del) continue;
        set_rset(ug, i, ff, 1);

        u = &(ug->u.a[i]);
        for (k = 0; k < u->n; k++) {
            C_bases = 0; rid = u->a[k]>>33;
            for (j = 0; j < src[rid].length; j++) {
                h = &(src[rid].buffer[j]);
                tn = Get_tn((*h));
                if((!sg->seq[tn].del) && (!ff[tn])) continue;
                if((sg->seq[tn].del) && (!check_nc_status(sg, src, ff, tn))) continue;
                C_bases += (Get_qe((*h)) - Get_qs((*h)));
            }
            if(C_bases > cc[rid]) cc[rid] = C_bases;
        }

        set_rset(ug, i, ff, 0);
    }
    free(ff);

    return cc;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdx, 0x18(%rsp)
movq %rsi, %r14
movq %rdi, %r15
movl 0x14(%rsi), %r13d
movl $0x7fffffff, %ebx       # imm = 0x7FFFFFFF
andq %rbx, %r13
pushq $0x8
popq %rsi
movq %r13, %rdi
callq 0x2120
movq %rax, 0x8(%rsp)
pushq $0x1
popq %rsi
movq %r13, %rdi
callq 0x2120
movq %r15, 0x10(%rsp)
movq 0x18(%r15), %rcx
movq %rcx, 0x20(%rsp)
movl 0x14(%rcx), %ecx
andq %rbx, %rcx
movq %rcx, 0x28(%rsp)
xorl %esi, %esi
movq %rax, (%rsp)
cmpq 0x28(%rsp), %rsi
je 0x8a6d4
movq 0x20(%rsp), %rcx
movq 0x20(%rcx), %rcx
cmpl $0x0, (%rcx,%rsi,8)
js 0x8a6cc
movq 0x10(%rsp), %rbx
movq %rbx, %rdi
movq %rsi, %r15
movq (%rsp), %rdx
pushq $0x1
popq %rcx
callq 0x8a39a
movq (%rsp), %rdx
movq 0x10(%rbx), %rax
movq %r15, 0x30(%rsp)
imulq $0x28, %r15, %rcx
leaq (%rax,%rcx), %rsi
movq %rsi, 0x38(%rsp)
movl 0x10(%rax,%rcx), %eax
movq %rax, 0x40(%rsp)
xorl %ecx, %ecx
cmpq 0x40(%rsp), %rcx
je 0x8a6ae
movq 0x38(%rsp), %rax
movq 0x18(%rax), %rax
movq %rcx, 0x50(%rsp)
movq (%rax,%rcx,8), %rax
shrq $0x21, %rax
movq %rax, 0x48(%rsp)
imulq $0x18, %rax, %rax
movq 0x18(%rsp), %rcx
leaq (%rcx,%rax), %rbp
movl 0xc(%rcx,%rax), %eax
imulq $0x28, %rax, %r15
xorl %ebx, %ebx
xorl %r12d, %r12d
cmpq %rbx, %r15
je 0x8a688
movq (%rbp), %r13
movl 0xc(%r13,%rbx), %ecx
movq 0x20(%r14), %rax
cmpl $0x0, (%rax,%rcx,8)
js 0x8a66d
cmpb $0x0, (%rdx,%rcx)
je 0x8a667
movl 0x8(%r13,%rbx), %eax
subl (%r13,%rbx), %eax
addq %rax, %r12
addq $0x28, %rbx
jmp 0x8a63c
movq %r14, %rdi
movq 0x18(%rsp), %rsi
movq (%rsp), %rdx
callq 0x8a4ca
movq (%rsp), %rdx
testl %eax, %eax
jne 0x8a65a
jmp 0x8a667
movq 0x8(%rsp), %rax
movq 0x48(%rsp), %rcx
cmpq (%rax,%rcx,8), %r12
jbe 0x8a6a1
movq 0x8(%rsp), %rax
movq %r12, (%rax,%rcx,8)
movq 0x50(%rsp), %rcx
incq %rcx
jmp 0x8a5fc
movq 0x10(%rsp), %rdi
movq 0x30(%rsp), %rbx
movl %ebx, %esi
movq (%rsp), %rdx
xorl %ecx, %ecx
callq 0x8a39a
movq %rbx, %rsi
movq (%rsp), %rax
incq %rsi
jmp 0x8a5a2
movq %rax, %rdi
callq 0x2220
movq 0x8(%rsp), %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/Overlaps.cpp
// Function: fill_cov_arr(ma_ug_t*, asg_t*, ma_hit_t_alloc*, unsigned char*, unsigned long, unsigned long*)
void fill_cov_arr(ma_ug_t *ug, asg_t *sg, ma_hit_t_alloc *src, uint8_t *ff, uint64_t uid, uint64_t *res)
{
    ma_hit_t *h; ma_utg_t *u;
    uint64_t C_bases, k, j, rid, tn;
    set_rset(ug, uid, ff, 1);

    u = &(ug->u.a[uid]);
    for (k = 0; k < u->n; k++) {
        C_bases = 0; rid = u->a[k]>>33;
        for (j = 0; j < src[rid].length; j++) {
            h = &(src[rid].buffer[j]);
            tn = Get_tn((*h));
            if((!sg->seq[tn].del) && (!ff[tn])) continue;
            if((sg->seq[tn].del) && (!check_nc_status(sg, src, ff, tn))) continue;
            C_bases += (Get_qe((*h)) - Get_qs((*h)));
        }
        res[k] = C_bases;
    }

    set_rset(ug, uid, ff, 0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r9, 0x28(%rsp)
movq %r8, %r14
movq %rcx, %rbx
movq %rdx, 0x8(%rsp)
movq %rsi, %rbp
movq %rdi, %r15
pushq $0x1
popq %rcx
movl %r14d, %esi
movq %rbx, %rdx
callq 0x8a39a
movq %rbx, %rdx
movq %r15, 0x10(%rsp)
movq 0x10(%r15), %rax
movq %r14, 0x18(%rsp)
imulq $0x28, %r14, %rcx
leaq (%rax,%rcx), %rsi
movq %rsi, 0x20(%rsp)
movl 0x10(%rax,%rcx), %eax
movq %rax, 0x30(%rsp)
xorl %ecx, %ecx
cmpq 0x30(%rsp), %rcx
je 0x8a7f6
movq 0x20(%rsp), %rax
movq 0x18(%rax), %rax
movq %rcx, 0x38(%rsp)
movq (%rax,%rcx,8), %rax
shrq $0x21, %rax
imulq $0x18, %rax, %rax
movq 0x8(%rsp), %rcx
leaq (%rcx,%rax), %r13
movl 0xc(%rcx,%rax), %eax
imulq $0x28, %rax, %rdi
xorl %r12d, %r12d
xorl %r15d, %r15d
movq %rdi, 0x40(%rsp)
cmpq %r12, %rdi
je 0x8a7e0
movq (%r13), %rbx
movl 0xc(%rbx,%r12), %ecx
movq 0x20(%rbp), %rax
cmpl $0x0, (%rax,%rcx,8)
js 0x8a7bc
cmpb $0x0, (%rdx,%rcx)
je 0x8a7b6
movl 0x8(%rbx,%r12), %eax
subl (%rbx,%r12), %eax
addq %rax, %r15
addq $0x28, %r12
jmp 0x8a78c
movq %rbp, %rdi
movq 0x8(%rsp), %rsi
movq %rbp, %r14
movq %rdx, %rbp
callq 0x8a4ca
movq 0x40(%rsp), %rdi
movq %rbp, %rdx
movq %r14, %rbp
testl %eax, %eax
jne 0x8a7aa
jmp 0x8a7b6
movq 0x28(%rsp), %rax
movq 0x38(%rsp), %rcx
movq %r15, (%rax,%rcx,8)
incq %rcx
jmp 0x8a74b
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
xorl %ecx, %ecx
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x8a39a
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/Overlaps.cpp
// Function: trans_sec_cut_filter_mmhap(kv_u_trans_t*, ma_ug_t*, asg_t*, ma_hit_t_alloc*)
void trans_sec_cut_filter_mmhap(kv_u_trans_t *ta, ma_ug_t *ug, asg_t *sg, ma_hit_t_alloc* src)
{
    uint64_t k, hom_cov, het_cov, hom_cut; 
    asg64_v b64; kv_init(b64);
    uint64_t *cc = gen_cov_rg(ug, sg, src);
    if(asm_opt.hom_global_coverage_set) {
        hom_cov = asm_opt.hom_global_coverage;
    } else {
        hom_cov = ((double)asm_opt.hom_global_coverage)/((double)HOM_PEAK_RATE);
    }
    het_cov = hom_cov/asm_opt.polyploidy;
    hom_cut = hom_cov + (het_cov*(0.5+(((double)asm_opt.polyploidy)*0.05)));

    fprintf(stderr, "+[M::%s]\thom_cov::%lu\thet_cov::%lu\thom_cut::%lu\n", __func__, 
        hom_cov, het_cov, hom_cut);

    for (k = 0; k < ug->g->n_seq; k++) {
        purge_ovlp_cov(k, ta, ug, sg, &b64, cc, hom_cut);
    }
    free(cc); kv_destroy(b64);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rax
movaps %xmm0, (%rax)
andq $0x0, 0x10(%rax)
movq %rsi, %rdi
movq %rdx, %rsi
movq %rcx, %rdx
callq 0x8a543
leaq 0x1c7f96(%rip), %rdx    # 0x253758
movslq 0x144(%rdx), %rsi
cvtsi2sd %esi, %xmm1
divsd 0x15c48b(%rip), %xmm1   # 0x1e7c60
cvttsd2si %xmm1, %rdi
movsd 0x157ab6(%rip), %xmm0   # 0x1e3298
subsd %xmm0, %xmm1
cvttsd2si %xmm1, %r8
movq %rdi, %rcx
sarq $0x3f, %rcx
andq %r8, %rcx
orq %rdi, %rcx
cmpl $0x0, 0x148(%rdx)
cmovneq %rsi, %rcx
movq %rax, %r13
movslq 0x1bc(%rdx), %rsi
xorl %ebp, %ebp
movq %rcx, %rax
xorl %edx, %edx
divq %rsi
movq %rcx, %xmm1
movq 0x157a4c(%rip), %xmm2   # 0x1e3270
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x157a50(%rip), %xmm3   # 0x1e3280
subpd %xmm3, %xmm1
movapd %xmm1, %xmm4
unpckhpd %xmm1, %xmm4            # xmm4 = xmm4[1],xmm1[1]
addsd %xmm1, %xmm4
movq %rax, %xmm1
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
subpd %xmm3, %xmm1
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
cvtsi2sd %esi, %xmm3
mulsd 0x157cb7(%rip), %xmm3   # 0x1e3518
addsd %xmm1, %xmm2
addsd 0x157cdb(%rip), %xmm3   # 0x1e3548
mulsd %xmm2, %xmm3
addsd %xmm4, %xmm3
cvttsd2si %xmm3, %rdx
movq %rdx, %rsi
sarq $0x3f, %rsi
subsd %xmm0, %xmm3
cvttsd2si %xmm3, %r12
andq %rsi, %r12
orq %rdx, %r12
movq 0x1c7749(%rip), %rdx    # 0x252fe0
movq (%rdx), %rdi
leaq 0x15d496(%rip), %rsi    # 0x1e8d37
leaq 0x15d4c0(%rip), %rdx    # 0x1e8d68
movq %rax, %r8
movq %r12, %r9
xorl %eax, %eax
callq 0x22b0
movq 0x18(%r14), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cmpq %rax, %rbp
jae 0x8b8e7
movq %r12, (%rsp)
movl %ebp, %edi
movq %r15, %rsi
movq %r14, %rdx
movq %rbx, %rcx
leaq 0x10(%rsp), %r8
movq %r13, %r9
callq 0x8b521
incq %rbp
jmp 0x8b8b5
movq %r13, %rdi
callq 0x2220
movq 0x20(%rsp), %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2220
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/Overlaps.cpp
// Function: trans_sec_cut_filter_mmhap_adv(kv_u_trans_t*, ma_ug_t*, asg_t*, ma_hit_t_alloc*, ug_rid_cov_t*)
void trans_sec_cut_filter_mmhap_adv(kv_u_trans_t *ta, ma_ug_t *ug, asg_t *sg, ma_hit_t_alloc* src, ug_rid_cov_t *in)
{
    uint64_t k; asg64_v b64; kv_init(b64);
    ug_rid_cov_t *cc = ((in)?(in):(gen_ug_rid_cov_t(ug, sg, src)));

    fprintf(stderr, "+[M::%s]\thom_cov::%lu\thet_cov::%lu\thom_cut::%lu\n", __func__, 
        cc->hom_cov, cc->het_cov, cc->hom_max);

    for (k = 0; k < ug->g->n_seq; k++) {
        purge_ovlp_cov_adv(k, ta, &b64, cc, cc->hom_max);
    }

    if(!in) {destory_ug_rid_cov_t(cc); free(cc);} kv_destroy(b64);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %rbx
movq %rsi, %r14
movq %rdi, %r15
andq $0x0, 0x10(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq %r8, %r12
testq %r8, %r8
jne 0x8bb61
movq %r14, %rdi
movq %rdx, %rsi
movq %rcx, %rdx
callq 0x8a9be
movq %rax, %r12
movq 0x1c7478(%rip), %rax    # 0x252fe0
movq (%rax), %rdi
movq 0x38(%r12), %r9
movq 0x40(%r12), %rcx
movq 0x48(%r12), %r8
leaq 0x15d1b6(%rip), %rsi    # 0x1e8d37
leaq 0x15d1fb(%rip), %rdx    # 0x1e8d83
xorl %r13d, %r13d
xorl %eax, %eax
callq 0x22b0
movq %rsp, %rbp
movq 0x18(%r14), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cmpq %rax, %r13
jae 0x8bbc1
movq 0x38(%r12), %r8
movl %r13d, %edi
movq %r15, %rsi
movq %rbp, %rdx
movq %r12, %rcx
callq 0x8b907
incq %r13
jmp 0x8bb95
testq %rbx, %rbx
jne 0x8bbd6
movq %r12, %rdi
callq 0x8abfa
movq %r12, %rdi
callq 0x2220
movq 0x10(%rsp), %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2220
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/Overlaps.cpp
// Function: gen_ug_rid_cov_t_by_ovlp(kv_u_trans_t*, ug_rid_cov_t*)
void gen_ug_rid_cov_t_by_ovlp(kv_u_trans_t *ta, ug_rid_cov_t *cc)
{
    uint64_t z, k, id, n; u_trans_t *a; 
    for (z = 0; z < cc->ug->g->n_seq; z++) {
        id = z; a = u_trans_a(*ta, id); n = u_trans_n(*ta, id); 
        for (k = 0; k < n; k++) {
            append_cov_line_ug_rid_cov_t(id, cc->cov.a+cc->idx[id], &(a[k]), cc, ((uint64_t)-1), -1);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
xorl %r13d, %r13d
pushq $-0x1
popq %r15
movq (%rbx), %rax
movq 0x18(%rax), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cmpq %rax, %r13
jae 0x8bc67
movq 0x28(%r14), %rax
movq (%rax,%r13,8), %rax
movl %eax, %ebp
shrq $0x20, %rax
imulq $0x30, %rax, %r12
addq 0x10(%r14), %r12
subq $0x1, %rbp
jb 0x8bc62
movq 0x10(%rbx), %rax
movq (%rax,%r13,8), %rsi
shlq $0x3, %rsi
addq 0x28(%rbx), %rsi
movq %r12, %rdx
movq %rbx, %rcx
movq %r15, %r8
movsd 0x157929(%rip), %xmm0   # 0x1e3580
callq 0x8af8f
addq $0x30, %r12
jmp 0x8bc30
incq %r13
jmp 0x8bc06
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/Overlaps.cpp
// Function: worker_for_trans_sec_simple_cut(void*, long, int)
static void worker_for_trans_sec_simple_cut(void *data, long i, int tid) // callback for kt_for()
{
    u_trans_clean_t *s = (u_trans_clean_t*)data;
    kv_u_trans_t *ta = s->ta; u_trans_t *a, *za;
    uint32_t id = i, n, k, z, zn; 

    a = u_trans_a(*ta, id); n = u_trans_n(*ta, id);
    for (k = 0; k < n; k++) {
        if((!a[k].del)) continue;
        za = u_trans_a(*ta, a[k].tn); zn = u_trans_n(*ta, a[k].tn);
        for (z = 0; z < zn; z++) {
            if(za[z].tn == id) break;
        }
        assert(z < zn);
        if(za[z].del) { ///both a[k] and za[z] have been deleted
            if(a[k].qn < a[k].tn) a[k].occ = za[z].occ = ((uint32_t)-1);
            continue; 
        }
        ///a[k].del == 1 && za[z].del == 0
        if(za[z].qe-za[z].qs >= 3000000) {
            a[k].occ = za[z].occ = 0;
        } else {
            a[k].occ = za[z].occ = ((uint32_t)-1);
        }
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq 0x18(%rdi), %rcx
movq 0x10(%rcx), %rax
movq 0x28(%rcx), %rcx
movl %esi, %edx
movq (%rcx,%rdx,8), %rdi
movl %edi, %edx
shrq $0x20, %rdi
imulq $0x30, %rdi, %rdi
addq %rax, %rdi
addq $0x14, %rax
xorl %r8d, %r8d
pushq $-0x30
popq %r9
cmpq %rdx, %r8
je 0x8c2df
imulq $0x30, %r8, %r10
cmpb $0x0, 0x28(%rdi,%r10)
jns 0x8c2d7
addq %rdi, %r10
movl 0x14(%r10), %ebx
movq (%rcx,%rbx,8), %r11
movl %r11d, %r14d
shrq $0x20, %r11
imulq $0x30, %r11, %r11
addq %rax, %r11
imulq $0x30, %r14, %r15
movq %r9, %r12
leaq 0x30(%r12), %r14
cmpq %r14, %r15
je 0x8c2eb
cmpl %esi, 0x30(%r11,%r12)
movq %r14, %r12
jne 0x8c283
cmpb $0x0, 0x14(%r14,%r11)
js 0x8c2be
movl -0x10(%r14,%r11), %ebx
subl -0x14(%r11,%r14), %ebx
cmpl $0x2dc6c0, %ebx         # imm = 0x2DC6C0
jb 0x8c2cc
andl $0x0, 0x4(%r11,%r14)
andl $0x0, 0x18(%r10)
jmp 0x8c2d7
cmpl %ebx, 0x8(%r10)
jae 0x8c2d7
orl $-0x1, 0x4(%r14,%r11)
jmp 0x8c2d2
orl $-0x1, 0x4(%r11,%r14)
orl $-0x1, 0x18(%r10)
incq %r8
jmp 0x8c24e
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x15ed9e(%rip), %rdi    # 0x1eb090
leaq 0x15ba98(%rip), %rsi    # 0x1e7d91
leaq 0x15ed97(%rip), %rcx    # 0x1eb097
movl $0x3ef4, %edx           # imm = 0x3EF4
callq 0x2110