LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/horder.cpp
// Function: get_trio_unitig_graph(asg_t*, unsigned char, ug_opt_t*)
ma_ug_t* get_trio_unitig_graph(asg_t *sg, uint8_t flag, ug_opt_t *opt)
{
    kvec_asg_arc_t_warp new_rtg_edges;
    kv_init(new_rtg_edges.a);

    ma_ug_t *ug = NULL;
    ug = ma_ug_gen(sg);

    adjust_utg_by_trio(&ug, sg, flag, TRIO_THRES, opt->sources, opt->reverse_sources, 
    opt->coverage_cut, opt->tipsLen, opt->tip_drop_ratio, opt->stops_threshold, 
    opt->ruIndex, opt->chimeric_rate, opt->drop_ratio, opt->max_hang, opt->min_ovlp,
    opt->gap_fuzz, &new_rtg_edges, opt->b_mask_t);

    kv_destroy(new_rtg_edges.a);
    return ug;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r15
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r12
movaps %xmm0, (%r12)
andq $0x0, 0x10(%r12)
callq 0x76d91
leaq 0x8(%rsp), %r14
movq %rax, (%r14)
movq (%rbx), %r9
movq 0x8(%rbx), %rcx
movq 0x10(%rbx), %r8
movss 0x20(%rbx), %xmm1
movss 0x38(%rbx), %xmm2
movss 0x3c(%rbx), %xmm3
movl 0x40(%rbx), %eax
movl 0x44(%rbx), %r10d
movl 0x50(%rbx), %r11d
movss 0xb4f03(%rip), %xmm0    # 0x1e7cb4
movq %r14, %rdi
movq %r15, %rsi
movl %ebp, %edx
pushq 0x60(%rbx)
pushq %r12
pushq %r11
pushq %r10
pushq %rax
pushq 0x30(%rbx)
pushq 0x28(%rbx)
pushq 0x18(%rbx)
callq 0x99c56
addq $0x40, %rsp
movq 0x10(%r12), %rdi
callq 0x2220
movq (%r14), %rax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/horder.cpp
// Function: asg_arc_unique_del(asg_t*, unsigned int, unsigned int, int)
static inline void asg_arc_unique_del(asg_t *g, uint32_t v, uint32_t w, int del)
{
	uint32_t i, nv = asg_arc_n(g, v);
	asg_arc_t *av = asg_arc_a(g, v);
	for (i = 0; i < nv; ++i)
    {
        if (av[i].v == w)
        {
            av[i].del = !!del;
            break;
        }
    }
}

// Assembly:
movq 0x8(%rdi), %rax
movq 0x28(%rdi), %rcx
movl %esi, %esi
movq (%rcx,%rsi,8), %rcx
movl %ecx, %esi
shrq $0x20, %rcx
imulq $0x18, %rsi, %rsi
addq $0x18, %rsi
imulq $0x18, %rcx, %rcx
leaq (%rcx,%rax), %rdi
addq $-0xc, %rdi
xorl %r8d, %r8d
leaq 0x18(%r8), %r9
cmpq %r9, %rsi
je 0x133130
cmpl %edx, 0x14(%rdi,%r8)
movq %r9, %r8
jne 0x133114
addq %rax, %rcx
andb $0x7f, -0x9(%r9,%rcx)
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/horder.cpp
// Function: get_hic_breakpoint(unsigned long*, unsigned long, long, h_covs*, long, long, unsigned long*, unsigned long*)
void get_hic_breakpoint(uint64_t *b, uint64_t b_n, int64_t cutoff, h_covs *res, 
int64_t cov_s_pos, int64_t cov_e_pos, uint64_t *s, uint64_t *e)
{
    uint64_t i;
    (*s) = (*e) = (uint64_t)-1;
    res->n = 0;
    get_hic_cov_interval(b, b_n, cutoff, &cov_s_pos, &cov_e_pos, res);
    if(res->n == 0) return;///res keeps all intervals with >= cutoff coverage
    int64_t max = -1, max_cur = 0;
    int64_t max_s_idx, max_e_idx, cur_s_idx;
    for (i = 0; i < res->n; i++)//all intervals have cov >= cutoff
    {
        if(i > 0 && (res->a[i].s - res->a[i-1].e) > 0)//cov < cutoff
        {
            max_cur += (res->a[i].s - res->a[i-1].e);//at least positive
            if(max < max_cur)
            {
                max_s_idx = (max < 0? res->a[i-1].e:cur_s_idx);
                max_e_idx = res->a[i].s;
                max = max_cur;
                cur_s_idx = max_s_idx;
            }
        }

        //cov >= cutoff
        max_cur -= (res->a[i].e - res->a[i].s);
        if(max_cur < 0)
        {
            max_cur = 0;
            cur_s_idx = res->a[i].e;
        }
    }

    if(max > 0)
    {
        (*s) = max_s_idx;
        (*e) = max_e_idx;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %rbx
movq 0x58(%rsp), %r14
leaq 0x10(%rsp), %rcx
movq %r8, (%rcx)
leaq 0x8(%rsp), %r8
movq %r9, (%r8)
orq $-0x1, (%r14)
movq 0x50(%rsp), %r15
orq $-0x1, (%r15)
andq $0x0, 0x8(%rbx)
movq %rbx, %r9
callq 0x133131
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x133379
movq (%rbx), %rcx
pushq $-0x1
popq %rsi
xorl %edx, %edx
movq %rcx, %rdi
xorl %r8d, %r8d
xorl %ebx, %ebx
cmpq %r8, %rax
je 0x13336e
testq %r8, %r8
je 0x13334a
movq -0x10(%rdi), %r13
movq (%rdi), %r12
movq %r12, %rbp
subq %r13, %rbp
je 0x13334d
addq %rbp, %rbx
cmpq %rbx, %rsi
jge 0x13334d
testq %rsi, %rsi
cmovsq %r13, %r10
movq %rbx, %rsi
movq %r10, %r9
movq %r12, %r11
jmp 0x13334d
movq (%rcx), %r12
movq 0x8(%rdi), %r13
subq %r13, %r12
addq %rbx, %r12
testq %r12, %r12
cmovleq %rdx, %r12
cmovsq %r13, %r10
incq %r8
addq $0x18, %rdi
movq %r12, %rbx
jmp 0x133317
testq %rsi, %rsi
jle 0x133379
movq %r9, (%r15)
movq %r11, (%r14)
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/horder.cpp
// Function: update_r_break(unsigned long, unsigned long, h_covs*)
int64_t update_r_break(uint64_t rs, uint64_t re, h_covs *hits)
{
    uint64_t i, hs, he;
    int64_t dp, old_dp, max_dp = 0;
    for (i = 0, dp = 0; i < hits->n; ++i) 
    {
        if(hits->a[i].s&1)
        {
            hs = hits->a[i].e;
            he = hits->a[i].s>>1;
        }
        else
        {
            hs = hits->a[i].s>>1;
            he = hits->a[i].e;
        }
        if(hs <= rs && he >= re)
        {
            old_dp = dp;
            ///if a[j] is qe
            if (hits->a[i].s&1) --dp;
            else ++dp;
            ///hits->a[i].s is qe
            if (old_dp > dp && max_dp < old_dp)
            {
                 max_dp = old_dp;
            }
        }
    }

    return max_dp;
}

// Assembly:
pushq %rbx
movq 0x8(%rdx), %rcx
movabsq $0x8, %r8
xorl %r9d, %r9d
xorl %eax, %eax
subq $0x1, %rcx
jb 0x133761
movq (%rdx), %rbx
movq -0x8(%rbx,%r8), %r10
testb $0x1, %r10b
jne 0x133725
movq %r10, %r11
shrq %r11
movq (%rbx,%r8), %rbx
jmp 0x13372f
movq (%rbx,%r8), %r11
movq %r10, %rbx
shrq %rbx
cmpq %rdi, %r11
ja 0x13375b
cmpq %rsi, %rbx
jb 0x13375b
andl $0x1, %r10d
movq %r10, %r11
negq %r11
orq $0x1, %r11
addq %r9, %r11
cmpq %r9, %rax
cmovgq %rax, %r9
testq %r10, %r10
cmovneq %r9, %rax
movq %r11, %r9
addq $0x18, %r8
jmp 0x133705
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/horder.cpp
// Function: get_utg_len(ma_ug_t*)
uint64_t get_utg_len(ma_ug_t *ug)
{   
    uint64_t i, s;
    for (i = s = 0; i < ug->u.n; ++i) 
    {
        if(!ug->u.a[i].a) continue;
        s += ug->u.a[i].len;
    }

    return s;
}

// Assembly:
movq (%rdi), %rcx
xorl %edx, %edx
xorl %eax, %eax
subq $0x1, %rcx
jb 0x133fc8
movq 0x10(%rdi), %rsi
cmpq $0x0, 0x18(%rsi,%rdx)
je 0x133fc2
movl (%rsi,%rdx), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
addq %rsi, %rax
addq $0x28, %rdx
jmp 0x133fa4
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/horder.cpp
// Function: update_nus(ma_utg_t*, ma_ug_t*, h_cov_t*, unsigned long)
void update_nus(ma_utg_t *u, ma_ug_t *ug, h_cov_t *a, uint64_t a_n)
{
    uint64_t i, k, offset;
    for (i = offset = 0; i < u->n; i++)
    {   
        for (k = 0; k < a_n; k++)
        {
            if(a[k].s == i)
            {
                a[k].s = offset; a[k].e += offset;
                if(k + 1 == a_n) return;
            } 
            
        }
        offset += (u->a[i] != (uint64_t)-1? (uint32_t)u->a[i]:GAP_LEN);
    }
}

// Assembly:
movl 0x10(%rdi), %eax
xorl %esi, %esi
pushq $0x64
popq %r8
xorl %r9d, %r9d
cmpq %rax, %rsi
je 0x134620
xorl %r10d, %r10d
cmpq %rcx, %r10
je 0x134605
imulq $0x18, %r10, %r11
cmpq %rsi, (%rdx,%r11)
jne 0x134600
addq %rdx, %r11
movq %r9, (%r11)
addq %r9, 0x8(%r11)
incq %r10
cmpq %rcx, %r10
jne 0x1345dd
jmp 0x134620
incq %r10
jmp 0x1345dd
movq 0x18(%rdi), %r10
movq (%r10,%rsi,8), %r10
cmpq $-0x1, %r10
movl %r10d, %r10d
cmoveq %r8, %r10
addq %r10, %r9
incq %rsi
jmp 0x1345d5
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/horder.cpp
// Function: get_r_edge(asg_t*, unsigned long, unsigned long, unsigned long*)
asg_arc_t *get_r_edge(asg_t *rg, uint64_t v, uint64_t w, uint64_t *id)
{
    asg_arc_t *av = asg_arc_a(rg, v);
    uint64_t nv = asg_arc_n(rg, v), k;
    if(id) (*id) = (uint64_t)-1;
    for (k = 0; k < nv; k++)
    {
        if(av[k].del) continue;
        if(av[k].v == w) 
        {
            if(id) (*id) = (rg->idx[v]>>32) + k;
            return &(av[k]);
        }
    }
    return NULL;
}

// Assembly:
movq 0x28(%rdi), %r8
movq (%r8,%rsi,8), %rax
movl %eax, %r9d
shrq $0x20, %rax
imulq $0x18, %rax, %rax
addq 0x8(%rdi), %rax
testq %rcx, %rcx
je 0x134caf
orq $-0x1, (%rcx)
negq %r9
xorl %edi, %edi
cmpq %rdi, %r9
je 0x134cd1
cmpl $0x0, 0xc(%rax)
js 0x134cc8
movl 0x8(%rax), %r10d
cmpq %rdx, %r10
je 0x134cd4
decq %rdi
addq $0x18, %rax
jmp 0x134cb4
xorl %eax, %eax
retq
testq %rcx, %rcx
je 0x134ce4
movl 0x4(%r8,%rsi,8), %edx
subq %rdi, %rdx
movq %rdx, (%rcx)
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/horder.cpp
// Function: update_unitig_ends(asg_t*, asg_arc_t*, unsigned long, unsigned long, unsigned long)
void update_unitig_ends(asg_t *g, asg_arc_t *arc, uint64_t puid, uint64_t nuid_0, uint64_t nuid_1)
{
    uint64_t nv, k, v, idx, ridx;
    

    v = puid<<1;
    idx = g->idx[v]>>32; nv = asg_arc_n(g, v);
    for (k = 0; k < nv; k++)
    {
        arc[idx+k].ul = ((uint32_t)arc[idx+k].ul) + (nuid_0<<32);
        get_r_edge(g, g->arc[idx+k].v^1, v^1, &ridx);
        arc[ridx].v = nuid_0^1;
    }


    v = (puid<<1)+1;
    idx = g->idx[v]>>32; nv = asg_arc_n(g, v);
    for (k = 0; k < nv; k++)
    {
        arc[idx+k].ul = ((uint32_t)arc[idx+k].ul) + (nuid_1<<32);
        get_r_edge(g, g->arc[idx+k].v^1, v^1, &ridx);
        arc[ridx].v = nuid_1^1;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, 0x18(%rsp)
movq %rcx, %rbp
movq %rsi, %r14
movq %rdi, %r15
leaq (%rdx,%rdx), %rax
movq %rax, 0x20(%rsp)
movq 0x28(%rdi), %rax
leaq 0x1(,%rdx,2), %rsi
movq %rsi, 0x8(%rsp)
shlq $0x4, %rdx
movq %rax, 0x10(%rsp)
movq (%rax,%rdx), %rax
movl %eax, %ebx
shrq $0x20, %rax
movq %rcx, %r13
shlq $0x20, %r13
xorl $0x1, %ebp
imulq $0x18, %rax, %r12
subq $0x1, %rbx
jb 0x134d7a
movl (%r14,%r12), %eax
orq %r13, %rax
movq %rax, (%r14,%r12)
movq 0x8(%r15), %rax
movl 0x8(%rax,%r12), %esi
xorq $0x1, %rsi
movq %r15, %rdi
movq 0x8(%rsp), %rdx
movq %rsp, %rcx
callq 0x134c8f
imulq $0x18, (%rsp), %rax
movl %ebp, 0x8(%r14,%rax)
addq $0x18, %r12
jmp 0x134d3c
movq 0x10(%rsp), %rax
movq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movl %eax, %ebx
shrq $0x20, %rax
movq 0x18(%rsp), %r12
movq %r12, %r13
shlq $0x20, %r13
xorl $0x1, %r12d
imulq $0x18, %rax, %rbp
subq $0x1, %rbx
jb 0x134ddf
movl (%r14,%rbp), %eax
orq %r13, %rax
movq %rax, (%r14,%rbp)
movq 0x8(%r15), %rax
movl 0x8(%rax,%rbp), %esi
xorq $0x1, %rsi
movq %r15, %rdi
movq 0x20(%rsp), %rdx
movq %rsp, %rcx
callq 0x134c8f
imulq $0x18, (%rsp), %rax
movl %r12d, 0x8(%r14,%rax)
addq $0x18, %rbp
jmp 0x134da2
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/horder.cpp
// Function: get_switch_ovlp_hits(unsigned long*, unsigned long, unsigned long, unsigned long, u_trans_hit_t*, h_covs*, unsigned long*)
int get_switch_ovlp_hits(uint64_t *i, uint64_t pid, uint64_t ls, uint64_t le, u_trans_hit_t *hit, 
h_covs *join, uint64_t *idx)
{
    uint64_t os, oe;
    hit->qSpre = hit->qEpre = hit->qScur = hit->qEcur = hit->qn = (uint32_t)-1;
    hit->tSpre = hit->tEpre = hit->tScur = hit->tEcur = hit->tn = (uint32_t)-1;

    while ((*i) < ((uint32_t)idx[pid]))
    {
        os = join->a[(idx[pid]>>32)+(*i)].s;
        oe = join->a[(idx[pid]>>32)+(*i)].e;
        if(OVL(os, oe, ls, le) == 0)
        {
            (*i)++;
            continue;
        }
        
        hit->qn = (uint32_t)(join->a[(idx[pid]>>32)+(*i)].dp);
        hit->qScur = MAX(os, ls); hit->qEcur = MIN(oe, le);
        hit->qSpre = hit->qScur - os; hit->qEpre = hit->qEcur - os;
        (*i)++;
        return 1;
    }

    return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq 0x28(%rsp), %r10
pcmpeqd %xmm0, %xmm0
movdqu %xmm0, 0x10(%r8)
orq $-0x1, 0x20(%r8)
movdqu %xmm0, (%r8)
movq (%rdi), %rax
imulq $0x18, %rax, %r11
addq $0x10, %r11
movq (%r10,%rsi,8), %rbx
movl %ebx, %r14d
cmpq %r14, %rax
jae 0x134e5e
shrq $0x20, %rbx
imulq $0x18, %rbx, %r15
addq (%r9), %r15
movq -0x8(%r11,%r15), %rbx
cmpq %rcx, %rbx
jb 0x134e3d
movq %rcx, %rbx
movq -0x10(%r11,%r15), %r14
movq %r14, %r12
cmpq %rdx, %r14
ja 0x134e4d
movq %rdx, %r12
cmpq %r12, %rbx
ja 0x134e62
incq %rax
movq %rax, (%rdi)
addq $0x18, %r11
jmp 0x134e19
xorl %eax, %eax
jmp 0x134e8a
movl (%r11,%r15), %ecx
movl %ecx, 0x10(%r8)
movl %r12d, 0x8(%r8)
movl %ebx, 0xc(%r8)
subl %r14d, %r12d
movl %r12d, (%r8)
subl %r14d, %ebx
movl %ebx, 0x4(%r8)
incq %rax
movq %rax, (%rdi)
movl $0x1, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movabsq $0x7fffffffffffffff, %r15 # imm = 0x7FFFFFFFFFFFFFFF
leaq (%rdi,%rsi,8), %rsi
callq 0x12f210
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movaps %xmm0, 0x10(%rsp)
pushq $0x1
popq %rax
xorl %ecx, %ecx
cmpq %rbx, %rax
ja 0x135601
je 0x1355a5
movq (%r14,%rcx,8), %rdx
xorq (%r14,%rax,8), %rdx
jns 0x1355fc
movq %rcx, %rsi
xorl %edx, %edx
cmpq %rax, %rsi
jae 0x1355be
movq (%r14,%rsi,8), %rdi
andq %r15, %rdi
addq %rdi, %rdx
incq %rsi
jmp 0x1355aa
shrq %rdx
movq %rax, %rsi
xorl %r8d, %r8d
cmpq %rcx, %rsi
jbe 0x1355f9
movq -0x8(%r14,%rsi,8), %rdi
andq %r15, %rdi
decq %rsi
addq %rdi, %r8
cmpq %rdx, %r8
jb 0x1355c7
movq (%r14,%rcx,8), %rdx
shrq $0x3f, %rdx
shll $0x3, %edx
movq %rdi, (%rsp,%rdx)
movq %rax, %rsi
subq %rcx, %rsi
movq %rsi, 0x10(%rsp,%rdx)
movq %rax, %rcx
incq %rax
jmp 0x135594
movq 0x11d9d8(%rip), %rax    # 0x252fe0
movq (%rax), %rdi
movq 0x10(%rsp), %rdx
movq 0x18(%rsp), %r8
movq (%rsp), %rcx
movq 0x8(%rsp), %r9
leaq 0xba1ba(%rip), %rsi     # 0x1ef7df
xorl %eax, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x22b0
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/horder.cpp
// Function: get_Ns(ma_utg_t*, h_covs*)
void get_Ns(ma_utg_t *u, h_covs *Ns)
{
    uint64_t i, offset;
    h_cov_t *p = NULL;
    Ns->n = 0;
    for (i = offset = 0; i < u->n; i++)
    {
        if(u->a[i] == (uint64_t)-1)
        {
            kv_pushp(h_cov_t, *Ns, &p);
            p->s = offset;
            p->e = offset + GAP_LEN;
            p->dp = i;
        }
        offset += (u->a[i] != (uint64_t)-1? (uint32_t)u->a[i]:GAP_LEN);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
andq $0x0, 0x8(%rsi)
xorl %ecx, %ecx
pushq $0x2
popq %r15
pushq $0x64
popq %r12
xorl %r13d, %r13d
xorl %ebp, %ebp
movl 0x10(%r14), %eax
cmpq %rax, %r13
jae 0x136920
movq 0x18(%r14), %rdx
movq (%rdx,%r13,8), %rax
cmpq $-0x1, %rax
jne 0x13690e
movq (%rbx), %rax
cmpq 0x10(%rbx), %rcx
jne 0x1368ed
leaq (%rcx,%rcx), %rdx
testq %rcx, %rcx
cmoveq %r15, %rdx
movq %rdx, 0x10(%rbx)
imulq $0x18, %rdx, %rsi
movq %rax, %rdi
callq 0x2370
movq %rax, (%rbx)
movq 0x8(%rbx), %rcx
movq 0x18(%r14), %rdx
imulq $0x18, %rcx, %rsi
incq %rcx
movq %rcx, 0x8(%rbx)
movq %rbp, (%rax,%rsi)
leaq 0x64(%rbp), %rdi
movq %rdi, 0x8(%rax,%rsi)
movq %r13, 0x10(%rax,%rsi)
movq (%rdx,%r13,8), %rax
cmpq $-0x1, %rax
movl %eax, %eax
cmoveq %r12, %rax
addq %rax, %rbp
incq %r13
jmp 0x1368a7
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/horder.cpp
// Function: get_sub_cov(kvec_pe_hit*, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, int)
uint64_t get_sub_cov(kvec_pe_hit *hits, uint64_t sidx, uint64_t eidx, uint64_t ulen, 
uint64_t rs, uint64_t re, uint64_t limit_s, uint64_t limit_e, int unique_only)
{
    uint64_t i, p0s, p0e, p1s, p1e, span_s, span_e, cnt = 0;


    for (i = sidx; i < eidx; i++)///keep all hic hits that contain interval we want
    {
        if(get_hit_suid(*hits, i) != get_hit_euid(*hits, i)) continue;
        if(unique_only && hits->a.a[i].id == 0) continue;
        p0s = get_hit_spos(*hits, i);
        p0e = get_hit_spos_e(*hits, i);
        p1s = get_hit_epos(*hits, i);
        p1e = get_hit_epos_e(*hits, i);

        span_s = MIN(MIN(p0s, p0e), MIN(p1s, p1e));
        span_s = MIN(span_s, ulen-1);
        span_e = MAX(MAX(p0s, p0e), MAX(p1s, p1e));
        span_e = MIN(span_e, ulen-1) + 1;

        //if(span_e - span_s <= ulen*BREAK_CUTOFF)//need it or not?
        if(span_s <= rs && span_e >= re)
        {
            if(span_s >= limit_s && span_e <= limit_e) cnt++;
        } 
    }

    return cnt;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %r10
movl 0x48(%rsp), %r11d
decq %r10
movq %rsi, %r15
shlq $0x5, %r15
orq $0x18, %r15
xorl %eax, %eax
cmpq %rdx, %rsi
jae 0x136beb
movq 0x10(%rdi), %r13
movq -0x18(%r13,%r15), %rbx
leaq (%rbx,%rbx), %r12
movb 0x48(%rdi), %bpl
xorl %ecx, %ecx
subb %bpl, %cl
shrq %cl, %r12
movq -0x10(%r13,%r15), %rbp
leaq (,%rbp,2), %r14
shrq %cl, %r14
cmpq %r14, %r12
jne 0x136bdf
testl %r11d, %r11d
je 0x136b11
cmpq $0x0, -0x8(%r13,%r15)
je 0x136bdf
movq 0x50(%rdi), %r12
movq %r12, %rcx
andq %rbx, %rcx
testq %rbx, %rbx
js 0x136b35
movq (%r13,%r15), %rbx
movq %rbx, %r14
shrq $0x20, %r14
leaq (%rcx,%r14), %r13
decq %r13
jmp 0x136b52
leaq 0x1(%rcx), %r14
movq (%r13,%r15), %rbx
movq %rbx, %r13
shrq $0x20, %r13
subq %r13, %r14
movl $0x0, %r13d
cmovaeq %r14, %r13
andq %rbp, %r12
testq %rbp, %rbp
js 0x136b65
movl %ebx, %ebx
leaq (%r12,%rbx), %rbp
decq %rbp
jmp 0x136b78
leaq 0x1(%r12), %r14
movl %ebx, %ebx
subq %rbx, %r14
movl $0x0, %ebp
cmovaeq %r14, %rbp
cmpq %rbp, %r12
movq %rbp, %r14
cmovbq %r12, %r14
cmovaq %r12, %rbp
cmpq %r13, %rcx
movq %r13, %rbx
cmovbq %rcx, %rbx
cmovaq %rcx, %r13
cmpq %r14, %rbx
cmovaeq %r14, %rbx
cmpq %r10, %rbx
jb 0x136ba3
movq %r10, %rbx
cmpq %rbp, %r13
cmovaq %r13, %rbp
cmpq %r10, %rbp
jb 0x136bb2
movq %r10, %rbp
incq %rbp
cmpq %r8, %rbx
setbe %cl
cmpq %r9, %rbp
setae %r14b
cmpq 0x38(%rsp), %rbx
setae %bl
andb %cl, %bl
andb %r14b, %bl
cmpq 0x40(%rsp), %rbp
setbe %cl
andb %bl, %cl
movzbl %cl, %ecx
addq %rcx, %rax
incq %rsi
addq $0x20, %r15
jmp 0x136ac5
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/horder.cpp
// Function: generate_haplotypes(horder_t*, ug_opt_t*)
void generate_haplotypes(horder_t *h, ug_opt_t *opt)
{
    uint64_t i;
    ma_ug_t *ug_1 = NULL, *ug_2 = NULL;

    ug_1 = get_trio_unitig_graph(h->r_g, FATHER, opt);
    ug_2 = get_trio_unitig_graph(h->r_g, MOTHER, opt);
    // kv_push(uint64_t, h->occ, ug_1->u.n);
    // kv_push(uint64_t, h->occ, ug_2->u.n);

    h->ug = ug_1; 
    
    ///update unitigs
    ma_utg_t *pu = NULL;
    for (i = 0; i < ug_2->u.n; i++)
    {
        kv_pushp(ma_utg_t, h->ug->u, &pu);
        *pu = ug_2->u.a[i];
        ug_2->u.a[i].a = NULL;
        ug_2->u.a[i].s = NULL;
    }

    ug_1 = NULL;
    ma_ug_destroy(ug_2);
    asg_destroy(h->ug->g);
    h->ug->g = NULL;

    // MALLOC(h->hf.a, h->ug->u.n); h->hf.n = h->hf.m = h->ug->u.n;
    // for (i = 0; i < h->ug->u.n; i++) h->hf.a[i] = (i < h->occ.a[0]? 0 : 1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq 0xd0(%rdi), %rdi
pushq $0x1
popq %rsi
movq %r14, %rdx
callq 0x132d50
movq %rax, %r15
movq 0xd0(%rbx), %rdi
pushq $0x2
popq %rsi
movq %r14, %rdx
callq 0x132d50
movq %rax, %r14
movq %r15, 0xc8(%rbx)
xorl %r15d, %r15d
pushq $0x2
popq %r12
xorps %xmm2, %xmm2
xorl %r13d, %r13d
cmpq (%r14), %r13
jae 0x1377f6
movq 0xc8(%rbx), %rcx
movq (%rcx), %rdx
cmpq 0x8(%rcx), %rdx
jne 0x1377af
leaq (%rdx,%rdx), %rax
testq %rdx, %rdx
cmoveq %r12, %rax
movq %rax, 0x8(%rcx)
movq 0x10(%rcx), %rdi
imulq $0x28, %rax, %rsi
callq 0x2370
xorps %xmm2, %xmm2
movq 0xc8(%rbx), %rcx
movq %rax, 0x10(%rcx)
movq (%rcx), %rdx
jmp 0x1377b3
movq 0x10(%rcx), %rax
leaq 0x1(%rdx), %rsi
movq %rsi, (%rcx)
imulq $0x28, %rdx, %rcx
movq 0x10(%r14), %rdx
movq 0x20(%rdx,%r15), %rsi
movq %rsi, 0x20(%rax,%rcx)
movups (%rdx,%r15), %xmm0
movups 0x10(%rdx,%r15), %xmm1
movups %xmm1, 0x10(%rax,%rcx)
movups %xmm0, (%rax,%rcx)
movq 0x10(%r14), %rax
incq %r13
movups %xmm2, 0x18(%rax,%r15)
addq $0x28, %r15
jmp 0x137767
movq %r14, %rdi
callq 0x6921d
movq 0xc8(%rbx), %rax
movq 0x18(%rax), %rdi
callq 0x68f68
movq 0xc8(%rbx), %rax
andq $0x0, 0x18(%rax)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/horder.cpp
// Function: osg_seq_set(osg_t*, int, int)
void osg_seq_set(osg_t *g, int sid, int del)
{
	///just malloc size
	if (sid >= (int)g->m_seq) {
		g->m_seq = sid + 1;
		kv_roundup32(g->m_seq);
		g->seq = (osg_seq_t*)realloc(g->seq, g->m_seq * sizeof(osg_seq_t));
	}

	if (sid >= g->n_seq) g->n_seq = sid + 1;
    g->seq[sid].del = !!del;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edx, %ebx
movl %esi, %r15d
movq %rdi, %r14
cmpl %esi, 0x10(%rdi)
jg 0x1378aa
movl %r15d, %eax
shrl %eax
orl %r15d, %eax
movl %eax, %ecx
shrl $0x2, %ecx
orl %eax, %ecx
movl %ecx, %eax
shrl $0x4, %eax
orl %ecx, %eax
movl %eax, %ecx
shrl $0x8, %ecx
orl %eax, %ecx
movl %ecx, %eax
shrl $0x10, %eax
orl %ecx, %eax
incl %eax
movl %eax, 0x10(%r14)
movq 0x18(%r14), %rdi
imulq $0x28, %rax, %rsi
callq 0x2370
movq %rax, 0x18(%r14)
movl 0x14(%r14), %eax
movl %eax, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpl %r15d, %ecx
jg 0x1378c9
andl $0x80000000, %eax       # imm = 0x80000000
addl %r15d, %eax
incl %eax
movl %eax, 0x14(%r14)
movslq %r15d, %rax
imulq $0x28, %rax, %rax
testl %ebx, %ebx
movq 0x18(%r14), %rcx
setne 0x20(%rcx,%rax)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/horder.cpp
// Function: osg_arc_rm(osg_t*)
void osg_arc_rm(osg_t *g)
{
	uint32_t e, n;
	///just clean arc requiring: 1. arc it self must be available 2. both the query and target are available
	for (e = n = 0; e < g->n_arc; ++e) {
		//u and v is the read id
		uint32_t u = g->arc[e].u, v = g->arc[e].v;
		if (!g->arc[e].del && !g->seq[u>>1].del && !g->seq[v>>1].del)
			g->arc[n++] = g->arc[e];
	}
	if (n < g->n_arc) { // arc index is out of sync
		if (g->idx) free(g->idx);
		g->idx = 0;
	}
	g->n_arc = n;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %eax, %eax
xorl %ecx, %ecx
xorl %ebp, %ebp
movl 0x4(%rbx), %edx
movl %edx, %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
cmpq %rsi, %rcx
jae 0x137952
movq 0x8(%rbx), %rdx
cmpl $0x0, 0x8(%rdx,%rax)
js 0x137949
movl 0x4(%rdx,%rax), %edi
movq 0x18(%rbx), %rsi
shrl %edi
imulq $0x28, %rdi, %rdi
cmpb $0x0, 0x20(%rsi,%rdi)
jne 0x137949
movl (%rdx,%rax), %edi
shrl %edi
imulq $0x28, %rdi, %rdi
cmpb $0x0, 0x20(%rsi,%rdi)
jne 0x137949
leaq (%rdx,%rax), %rsi
movl %ebp, %edi
incl %ebp
shlq $0x5, %rdi
movups (%rsi), %xmm0
movups 0x10(%rsi), %xmm1
movups %xmm1, 0x10(%rdx,%rdi)
movups %xmm0, (%rdx,%rdi)
incq %rcx
addq $0x20, %rax
jmp 0x1378ed
cmpl %esi, %ebp
jae 0x137967
movq 0x20(%rbx), %rdi
callq 0x2220
andq $0x0, 0x20(%rbx)
movl 0x4(%rbx), %edx
andl $0x7fffffff, %ebp       # imm = 0x7FFFFFFF
andl $0x80000000, %edx       # imm = 0x80000000
orl %ebp, %edx
movl %edx, 0x4(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/horder.cpp
// Function: osg_arc_index_core(unsigned long, unsigned long, osg_arc_t const*)
uint64_t *osg_arc_index_core(size_t max_seq, size_t n, const osg_arc_t *a)
{
	size_t i, last;
	uint64_t *idx;
	idx = (uint64_t*)calloc(max_seq * 2, 8);

	for (i = 1, last = 0; i <= n; ++i)
		if (i == n || a[i-1].u != a[i].u)
			idx[a[i-1].u] = (uint64_t)last<<32 | (i - last), last = i;
	return idx;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
addq %rdi, %rdi
pushq $0x8
popq %rsi
callq 0x2120
movq %r14, %rcx
shlq $0x5, %rcx
addq %rbx, %rcx
addq $-0x1c, %rcx
addq $0x24, %rbx
pushq $0x1
popq %rdx
xorl %esi, %esi
cmpq %r14, %rdx
ja 0x1379dc
jne 0x1379b6
movl (%rcx), %edi
jmp 0x1379bd
movl -0x20(%rbx), %edi
cmpl (%rbx), %edi
je 0x1379d3
movq %rdx, %r8
subq %rsi, %r8
shlq $0x20, %rsi
orq %r8, %rsi
movl %edi, %edi
movq %rsi, (%rax,%rdi,8)
movq %rdx, %rsi
incq %rdx
addq $0x20, %rbx
jmp 0x1379ab
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/horder.cpp
// Function: osg_cleanup(osg_t*)
void osg_cleanup(osg_t *g)
{
	osg_arc_rm(g);
	if (!g->is_srt) {
        radix_sort_osg(g->arc, g->arc + g->n_arc);
		g->is_srt = 1;
	}

	if (g->idx == 0) osg_arc_index(g);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x1378e1
movslq 0x4(%rbx), %rsi
testq %rsi, %rsi
js 0x137a37
movq 0x8(%rbx), %rdi
shlq $0x5, %rsi
addq %rdi, %rsi
callq 0x12f4b6
orb $-0x80, 0x7(%rbx)
cmpq $0x0, 0x20(%rbx)
je 0x137a40
popq %rbx
retq
movq %rbx, %rdi
popq %rbx
jmp 0x1379e4
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/horder.cpp
// Function: get_max_weight(unsigned int, unsigned int, osg_t*)
double get_max_weight(uint32_t u, uint32_t v, osg_t *g)
{
    double max = 0;
    uint32_t i, nv;
	osg_arc_t *av = NULL;

    nv = asg_arc_n(g, u);
    av = asg_arc_a(g, u);
    for (i = 0; i < nv; i++)
    {
        if(av[i].v == v) continue;
        max = MAX(max, av[i].w);
    }
    
    nv = asg_arc_n(g, v);
    av = asg_arc_a(g, v);
    for (i = 0; i < nv; i++)
    {
        if(av[i].v == u) continue;
        max = MAX(max, av[i].w);
    }

    return max;
}

// Assembly:
movq 0x8(%rdx), %rax
movq 0x20(%rdx), %rcx
movl %edi, %edx
movq (%rcx,%rdx,8), %r8
movl %r8d, %edx
shlq $0x5, %rdx
shrq $0x1b, %r8
andq $-0x20, %r8
addq %rax, %r8
addq $0x10, %r8
xorpd %xmm0, %xmm0
xorl %r9d, %r9d
cmpq %r9, %rdx
je 0x137aa9
cmpl %esi, -0x10(%r8,%r9)
je 0x137aa3
movsd (%r8,%r9), %xmm1
movapd %xmm1, %xmm2
cmplesd %xmm0, %xmm2
movapd %xmm2, %xmm3
andnpd %xmm1, %xmm3
andpd %xmm0, %xmm2
orpd %xmm3, %xmm2
movapd %xmm2, %xmm0
addq $0x20, %r9
jmp 0x137a74
movl %esi, %edx
movq (%rcx,%rdx,8), %rdx
movl %edx, %ecx
shlq $0x5, %rcx
shrq $0x1b, %rdx
andq $-0x20, %rdx
addq %rdx, %rax
addq $0x10, %rax
xorl %edx, %edx
cmpq %rdx, %rcx
je 0x137af9
cmpl %edi, -0x10(%rax,%rdx)
je 0x137af3
movsd (%rax,%rdx), %xmm1
movapd %xmm1, %xmm2
cmplesd %xmm0, %xmm2
movapd %xmm2, %xmm3
andnpd %xmm1, %xmm3
andpd %xmm0, %xmm2
orpd %xmm3, %xmm2
movapd %xmm2, %xmm0
addq $0x20, %rdx
jmp 0x137ac6
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/horder.cpp
// Function: get_update_trans_idx(horder_t*, trans_col_t*)
kv_u_trans_t *get_update_trans_idx(horder_t *h, trans_col_t *t_idx)
{
    uint64_t i, k, l;
    uint32_t uid/**, q_n, t_n**/;
    ma_ug_t *ug = h->ug;
    asg_t *rg = h->r_g;
    kv_u_trans_t *idx = NULL; CALLOC(idx, 1);
    u_trans_hit_idx iter;
    u_trans_hit_t hit;
    kvec_t(u_hit_t) b; kv_init(b);
    uint64_t *b_idx = NULL; CALLOC(b_idx, t_idx->ref->idx.n);
    /**u_hit_t *q, *t;**/
    u_hit_t *p = NULL;
    for (i = 0; i < ug->u.n; i++)
    {
        uid = i<<1;
        reset_u_trans_hit_idx(&iter, &uid, 1, ug, rg, t_idx->idx, 0, ug->u.a[i].len); 
        while(get_u_trans_hit(&iter, &hit))///get [qScur, qEcur), [qSpre, qEpre)
        {
            kv_pushp(u_hit_t, b, &p);
            p->Scur = hit.qScur;
            p->Ecur = hit.qEcur;
            p->Spre = hit.qSpre;
            p->Epre = hit.qEpre;
            p->uPre = hit.qn;
            p->uCur = uid;
        }
    }

    radix_sort_u_hit(b.a, b.a + b.n);
    for (k = 1, l = 0; k <= b.n; ++k) 
    {   
        if (k == b.n || (b.a[k].uPre>>1) != (b.a[l].uPre>>1))
        {            
            b_idx[b.a[l].uPre>>1] = (uint64_t)l << 32 | (k - l);
            l = k;
        }
    }

    /**
    for (i = 0; i < t_idx->ref->idx.n; i++)
    {
        q_n = (uint32_t)b_idx[i];
        q = b.a + (b_idx[i]>>32);
        if(!q_n) continue;
    }
    **/
    
    // for (i = 0; i < b.n; i++)
    // {
        
    // }
    
    
    free(b_idx);
    kv_destroy(b);
    return idx;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rsi, 0x20(%rsp)
movq 0xc8(%rdi), %r14
movq 0xd0(%rdi), %rax
movq %rax, 0x10(%rsp)
pushq $0x1
popq %rdi
pushq $0x30
popq %rsi
callq 0x2120
movq %rax, 0x8(%rsp)
xorl %ecx, %ecx
leaq 0x60(%rsp), %rbp
xorl %r13d, %r13d
xorl %ebx, %ebx
xorl %r15d, %r15d
movq %r14, 0x18(%rsp)
cmpq (%r14), %rcx
jae 0x138468
leal (%rcx,%rcx), %eax
movl %eax, 0x4(%rsp)
movq 0x20(%rsp), %rax
movq 0x8(%rax), %r9
movq 0x10(%r14), %rax
movq %rcx, 0x28(%rsp)
imulq $0x28, %rcx, %rcx
movl (%rax,%rcx), %eax
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
andl %ecx, %eax
movq %rbp, %rdi
leaq 0x4(%rsp), %rsi
pushq $0x1
popq %rdx
movq %r14, %rcx
movq 0x10(%rsp), %r8
pushq %rax
pushq $0x0
callq 0x81cbd
popq %rax
popq %rcx
imulq $0x18, %r15, %r12
addq $0x14, %r12
movq %rbp, %rdi
leaq 0x30(%rsp), %rsi
callq 0x81cf5
testl %eax, %eax
je 0x138456
cmpq %rbx, %r15
jne 0x138430
leaq (%rbx,%rbx), %r14
testq %rbx, %rbx
pushq $0x2
popq %rax
cmoveq %rax, %r14
imulq $0x18, %r14, %rsi
movq %r13, %rdi
callq 0x2370
movq %rax, %r13
movq %r14, %rbx
incq %r15
movaps 0x30(%rsp), %xmm0
movups %xmm0, -0x14(%r13,%r12)
movl 0x40(%rsp), %eax
movl %eax, (%r13,%r12)
movl 0x4(%rsp), %eax
movl %eax, -0x4(%r13,%r12)
addq $0x18, %r12
jmp 0x1383fa
movq 0x28(%rsp), %rcx
incq %rcx
movq 0x18(%rsp), %r14
jmp 0x1383a5
imulq $0x18, %r15, %rsi
addq %r13, %rsi
movq %r13, %rdi
callq 0x130942
movq %r13, %rdi
callq 0x2220
movq 0x8(%rsp), %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/horder.cpp
// Function: osg_arc_pushp(osg_t*)
static inline osg_arc_t *osg_arc_pushp(osg_t *g)
{
	if (g->n_arc == g->m_arc) {
		g->m_arc = g->m_arc? g->m_arc<<1 : 16;
		g->arc = (osg_arc_t*)realloc(g->arc, g->m_arc * sizeof(osg_arc_t));
	}
	return &g->arc[g->n_arc++];
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl 0x4(%rdi), %edx
movl %edx, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpl (%rdi), %ecx
jne 0x138b5b
leal (%rcx,%rcx), %eax
testl %ecx, %ecx
pushq $0x10
popq %rsi
cmovnel %eax, %esi
movl %esi, (%rbx)
movq 0x8(%rbx), %rdi
shlq $0x5, %rsi
callq 0x2370
movq %rax, 0x8(%rbx)
movl 0x4(%rbx), %edx
movl %edx, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
jmp 0x138b5f
movq 0x8(%rbx), %rax
leal 0x1(%rdx), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl $0x80000000, %edx       # imm = 0x80000000
orl %esi, %edx
movl %edx, 0x4(%rbx)
movl %ecx, %ecx
shlq $0x5, %rcx
addq %rax, %rcx
movq %rcx, %rax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/horder.cpp
// Function: get_osg_arc(osg_t*, unsigned int, unsigned int)
osg_arc_t *get_osg_arc(osg_t *g, uint32_t u, uint32_t v)
{
    osg_arc_t *au = asg_arc_a(g, u);
    uint32_t i, nu = asg_arc_n(g, u);
    for (i = 0; i < nu; i++)
    {
        if(au[i].del) continue;
        if(au[i].v == v) return &(au[i]);
    }
    
    return NULL;
}

// Assembly:
movq 0x20(%rdi), %rax
movl %esi, %ecx
movq (%rax,%rcx,8), %rax
movl %eax, %ecx
shrq $0x1b, %rax
andq $-0x20, %rax
addq 0x8(%rdi), %rax
subq $0x1, %rcx
jb 0x13947d
cmpl $0x0, 0x8(%rax)
js 0x139477
cmpl %edx, (%rax)
je 0x13947f
addq $0x20, %rax
jmp 0x139467
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/horder.cpp
// Function: get_vis_occ(unsigned char*, unsigned int)
uint32_t get_vis_occ(uint8_t *vis, uint32_t n)
{
    uint32_t i, occ;
    n <<= 1;
    for (i = occ = 0; i < n; i++)
    {
        if(vis[i]) occ++;
    }
    return occ;
}

// Assembly:
addl %esi, %esi
xorl %ecx, %ecx
xorl %eax, %eax
cmpq %rcx, %rsi
je 0x13982c
cmpb $0x1, (%rdi,%rcx)
sbbl $-0x1, %eax
incq %rcx
jmp 0x13981b
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/horder.cpp
// Function: get_sl_occ(sc_lay_t*)
uint32_t get_sl_occ(sc_lay_t *sl)
{
    uint32_t i, occ;
    for (i = occ = 0; i < sl->n; i++)
    {
        occ += sl->a[i].n;
    }
    return occ;
}

// Assembly:
movq 0x8(%rdi), %rcx
xorl %edx, %edx
xorl %eax, %eax
movl %edx, %edx
cmpq %rdx, %rcx
jbe 0x13984c
movq (%rdi), %rsi
imulq $0x18, %rdx, %r8
addl 0x8(%rsi,%r8), %eax
incl %edx
jmp 0x139835
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/horder.cpp
// Function: get_nuid(sc_lay_t*, unsigned long*)
uint64_t get_nuid(sc_lay_t *sl, uint64_t *p)
{
    uint64_t k, ouid[2];
    for (k = 0; k < sl->n; k++)
    {
        ouid[0] = sl->a[k].a[0]; 
        ouid[1] = sl->a[k].a[sl->a[k].n - 1];
        if((*p) == ouid[0])
        {
            (*p) = (k<<1);
            return 1;
        } 

        if((*p) == ouid[1])
        {
            (*p) = (k<<1)+1;
            return 1;
        }
    }

    return 0;
}

// Assembly:
pushq %rbx
movq 0x8(%rdi), %rdx
movabsq $0x1, %rcx
movabsq $0x4, %r8
xorl %eax, %eax
subq $0x1, %rdx
jb 0x139ce3
movq (%rdi), %r9
movq -0x8(%r9,%r8,2), %r10
movl (%r10), %ebx
movq (%rsi), %r11
cmpq %rbx, %r11
je 0x139cd3
movq (%r9,%r8,2), %r9
movl -0x4(%r10,%r9,4), %r9d
cmpq %r9, %r11
je 0x139cd6
addq $0x2, %rcx
addq $0xc, %r8
jmp 0x139ca2
decq %rcx
movq %rcx, (%rsi)
movabsq $0x1, %rax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/horder.cpp
// Function: update_avoids(horder_t*, sc_lay_t*)
void update_avoids(horder_t *h, sc_lay_t *sl)
{
    uint64_t i, m, ps, pe;
    for (i = m = 0; i < h->avoid.n; i++)
    {
        ps = h->avoid.a[i]>>32; 
        pe = (uint32_t)h->avoid.a[i];
        if(get_nuid(sl, &ps) && get_nuid(sl, &pe))
        {
            h->avoid.a[m] = (ps<<32)|pe;
            m++;
        }
    }
    h->avoid.n = m;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
xorl %r13d, %r13d
leaq 0x10(%rsp), %r15
xorl %ebp, %ebp
cmpq (%rbx), %r13
jae 0x139d5c
movq 0x10(%rbx), %r12
movq (%r12,%r13,8), %rax
movl %eax, %ecx
shrq $0x20, %rax
movq %rax, 0x10(%rsp)
movq %rcx, 0x8(%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x139c87
testq %rax, %rax
je 0x139d57
movq %r14, %rdi
leaq 0x8(%rsp), %rsi
callq 0x139c87
testq %rax, %rax
je 0x139d57
movq 0x10(%rsp), %rax
shlq $0x20, %rax
orq 0x8(%rsp), %rax
movq %rax, (%r12,%rbp,8)
incq %rbp
incq %r13
jmp 0x139d03
movq %rbp, (%rbx)
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/horder.cpp
// Function: update_ug_by_layout(horder_t*, sc_lay_t*, ma_ug_t*)
void update_ug_by_layout(horder_t *h, sc_lay_t *sl, ma_ug_t* i_ug)
{
    uint32_t i;
    lay_t *p = NULL;
    ma_utg_t *pu = NULL;
    ma_ug_t *sug = NULL;
    kvec_t_u64_warp n_avoids; kv_init(n_avoids.a);
    sug = (ma_ug_t*)calloc(1, sizeof(ma_ug_t));
    for (i = 0; i < sl->n; i++)
    {
        p = &(sl->a[i]);
        kv_pushp(ma_utg_t, sug->u, &pu);
        generate_scaffold(pu, p, i_ug?i_ug:h->ug, h->r_g);
    }
    ma_ug_destroy(h->ug);
    h->ug = sug;
    kv_destroy(n_avoids.a);
    update_avoids(h, sl);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, 0x8(%rsp)
movq %rsi, 0x10(%rsp)
movq %rdi, (%rsp)
pushq $0x1
popq %rdi
pushq $0x38
popq %rsi
callq 0x2120
movq %rax, %r12
xorl %r13d, %r13d
xorl %ebx, %ebx
xorl %r15d, %r15d
xorl %r14d, %r14d
movl %r14d, %r14d
movq 0x10(%rsp), %rax
cmpq %r14, 0x8(%rax)
jbe 0x139e36
imulq $0x18, %r14, %rbp
addq (%rax), %rbp
cmpq %rbx, %r15
jne 0x139df1
leaq (%rbx,%rbx), %r15
testq %rbx, %rbx
pushq $0x2
popq %rax
cmoveq %rax, %r15
movq %r15, 0x8(%r12)
imulq $0x28, %r15, %rsi
movq %r13, %rdi
callq 0x2370
movq %rax, %r13
movq %rax, 0x10(%r12)
movq (%r12), %rax
movq %r15, %rbx
jmp 0x139df4
movq %r15, %rax
leaq 0x1(%rax), %r15
movq %r15, (%r12)
movq 0x8(%rsp), %rcx
movq %rcx, %rdx
testq %rcx, %rcx
jne 0x139e14
movq (%rsp), %rcx
movq 0xc8(%rcx), %rdx
imulq $0x28, %rax, %rdi
addq %r13, %rdi
movq (%rsp), %rax
movq 0xd0(%rax), %rcx
movq %rbp, %rsi
callq 0x139912
incl %r14d
jmp 0x139da3
movq (%rsp), %r14
movq 0xc8(%r14), %rdi
movq %rax, %rbx
callq 0x6921d
movq %r12, 0xc8(%r14)
movq %r14, %rdi
movq %rbx, %rsi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x139ce5
// File: /workspace/github_cpp_makefile_star2_O2/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 0xefea7
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 0x13292a
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 0x137220
popq %rcx
popq %rdx
testq %rax, %rax
je 0x13a410
movq 0xc8(%rbx), %rdi
callq 0x131810
jmp 0x13a3c4
movq 0x118bc9(%rip), %rax    # 0x252fe0
movq (%rax), %rbx
callq 0xefea7
subsd (%rsp), %xmm0
leaq 0xb355f(%rip), %rsi     # 0x1ed98a
leaq 0xb55f3(%rip), %rdx     # 0x1efa25
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_O2/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 0xaf199(%rip), %rsi     # 0x1e962a
leaq 0xb559c(%rip), %rcx     # 0x1efa34
movq %rax, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x2050
movq 0x118b34(%rip), %rax    # 0x252fe0
movq (%rax), %rdi
leaq 0xae4bd(%rip), %rsi     # 0x1e8973
movq %rbp, %rdx
xorl %eax, %eax
callq 0x22b0
leaq 0xc01da(%rip), %rsi     # 0x1fa6a1
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 0x7be9b
movq %rbx, (%rsp)
movq %r15, %rdi
movq %r13, %rsi
movq %r12, %rdx
movq %r14, %rcx
movq 0xa0(%rsp), %r8
leaq 0xb54f7(%rip), %r14     # 0x1efa34
movq %r14, %r9
callq 0x7cd23
movq %rbx, %rdi
callq 0x2190
leaq 0xaf0fa(%rip), %rsi     # 0x1e964e
movq %rbp, %rdi
movq 0x28(%rsp), %rdx
movq %r14, %rcx
xorl %eax, %eax
callq 0x2050
movq %rbp, %rdi
leaq 0xc0131(%rip), %rsi     # 0x1fa6a1
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 0x7de8f
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_O2/chhylp123[P]hifiasm/horder.cpp
// Function: output_hic_rtg(ma_ug_t*, asg_t*, ug_opt_t*, char*)
void output_hic_rtg(ma_ug_t *ug, asg_t *rg, ug_opt_t *opt, char* output_file_name)
{
    char* gfa_name = (char*)malloc(strlen(output_file_name)+50);
    sprintf(gfa_name, "%s.all.noseq.gfa", output_file_name);
    FILE* output_file = fopen(gfa_name, "w");
    ma_ug_print_simple(ug, rg, opt->coverage_cut, opt->sources, opt->ruIndex, "utg", output_file);
    fclose(output_file);
    free(gfa_name);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rcx, %r13
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r15
movq %rcx, %rdi
callq 0x2090
leaq 0x32(%rax), %rdi
callq 0x2280
movq %rax, %r14
leaq 0xb50ae(%rip), %rsi     # 0x1efac4
movq %rax, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0x2050
leaq 0xbfc77(%rip), %rsi     # 0x1fa6a1
movq %r14, %rdi
callq 0x2210
movq %rax, %r13
movq (%r12), %rdx
movq 0x8(%r12), %rcx
movq 0x30(%r12), %r8
movq %rax, (%rsp)
leaq 0xb322d(%rip), %r9      # 0x1edc7b
movq %r15, %rdi
movq %rbx, %rsi
callq 0x7de8f
movq %r13, %rdi
callq 0x2190
movq %r14, %rdi
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x2220
// File: /workspace/github_cpp_makefile_star2_O2/chhylp123[P]hifiasm/horder.cpp
// Function: cpy_u_hits(kvec_pe_hit*, kvec_pe_hit*, unsigned int)
void cpy_u_hits(kvec_pe_hit *u_hits, kvec_pe_hit *i_hits, uint32_t u_n)
{
    uint64_t i;
    memset(u_hits, 0, sizeof(kvec_pe_hit));
    u_hits->pos_mode = i_hits->pos_mode;
    u_hits->uID_bits = i_hits->uID_bits;
    u_hits->a.n = u_hits->a.m = i_hits->a.n;
    MALLOC(u_hits->a.a, u_hits->a.n);
    memcpy(u_hits->a.a, i_hits->a.a, u_hits->a.n*sizeof(pe_hit));
    for (i = 0; i < u_hits->a.n; i++) u_hits->a.a[i].id = 1;
    idx_hits(u_hits, u_n);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rdi)
movups %xmm0, 0x30(%rdi)
movups %xmm0, 0x20(%rdi)
movups %xmm0, 0x10(%rdi)
andq $0x0, 0x50(%rdi)
movups %xmm0, (%rdi)
movups 0x48(%rsi), %xmm0
movups %xmm0, 0x48(%rdi)
movq (%rsi), %r13
movq %r13, 0x8(%rdi)
movq %r13, (%rdi)
movq %r13, %r12
shlq $0x5, %r12
movq %r12, %rdi
callq 0x2280
movq %rax, %r14
movq %rax, 0x10(%rbx)
movq 0x10(%r15), %rsi
movq %rax, %rdi
movq %r12, %rdx
callq 0x2160
addq $0x10, %r14
subq $0x1, %r13
jb 0x13bcd2
movq $0x1, (%r14)
addq $0x20, %r14
jmp 0x13bcbf
movl %ebp, %esi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x131b3a
// File: /workspace/github_cpp_makefile_star2_O2/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 0xefea7
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 0x13292a
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 0x137220
popq %rcx
popq %rdx
testq %rax, %rax
je 0x13c022
movq %r14, %rdi
movq %rbp, %rsi
callq 0x13bcea
movq %r15, %rdi
movq %r14, %rsi
movq 0x8(%rsp), %rdx
callq 0x139d6e
movq 0xc8(%r15), %rdi
callq 0x131810
jmp 0x13bfbb
movq 0x116fb7(%rip), %rax    # 0x252fe0
movq (%rax), %rbx
callq 0xefea7
subsd (%rsp), %xmm0
leaq 0xb194d(%rip), %rsi     # 0x1ed98a
leaq 0xb3d59(%rip), %rdx     # 0x1efd9d
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_O2/chhylp123[P]hifiasm/horder.cpp
// Function: scf_g(sc_lay_t*, ma_ug_t*)
spg_t *scf_g(sc_lay_t *sl, ma_ug_t* ug)
{
    spg_t *scg = NULL; CALLOC(scg, 1); scg->ug = ug;    
    uint64_t i, k;
    lay_t *p = NULL;
    for (i = 0; i < sl->n; i++){
        p = &(sl->a[i]);
        kv_push(uint64_t, scg->idx, (uint64_t)scg->dst.n << 32 | (p->n>>1));
        for (k = 0; k < p->n; k+=2) kv_push(uint32_t, scg->dst, p->a[k]);        
    }
    return scg;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r15
movq %rdi, %rbp
pushq $0x1
popq %rdi
pushq $0x38
popq %rsi
callq 0x2120
movq %rax, %r14
movq %r15, (%rax)
xorl %edi, %edi
pushq $0x2
popq %r12
xorl %r13d, %r13d
xorl %eax, %eax
xorl %r15d, %r15d
movq %rbp, 0x8(%rsp)
cmpq 0x8(%rbp), %r15
jae 0x13c16d
imulq $0x18, %r15, %rbx
addq (%rbp), %rbx
cmpq %rax, %r15
jne 0x13c0dc
leaq (%rax,%rax), %rbp
testq %rax, %rax
cmoveq %r12, %rbp
movq %rbp, 0x10(%r14)
leaq (,%rbp,8), %rsi
callq 0x2370
movq %rax, 0x18(%r14)
movq %rbp, (%rsp)
jmp 0x13c0e3
movq %rax, (%rsp)
movq %rdi, %rax
movq %r13, %rdx
shlq $0x20, %rdx
movq 0x8(%rbx), %rcx
shrq %rcx
orq %rdx, %rcx
leaq 0x1(%r15), %rbp
movq %rbp, 0x8(%r14)
movq %rax, 0x10(%rsp)
movq %rcx, (%rax,%r15,8)
xorl %r15d, %r15d
cmpq 0x8(%rbx), %r15
jae 0x13c157
movq 0x30(%r14), %rax
cmpq 0x28(%r14), %r13
jne 0x13c13b
leaq (,%r13,2), %rsi
testq %r13, %r13
cmoveq %r12, %rsi
movq %rsi, 0x28(%r14)
shlq $0x2, %rsi
movq %rax, %rdi
callq 0x2370
movq %rax, 0x30(%r14)
movq (%rbx), %rcx
movl (%rcx,%r15,4), %ecx
leaq 0x1(%r13), %rdx
movq %rdx, 0x20(%r14)
movl %ecx, (%rax,%r13,4)
addq $0x2, %r15
movq %rdx, %r13
jmp 0x13c108
movq %rbp, %r15
movq 0x8(%rsp), %rbp
movq 0x10(%rsp), %rdi
movq (%rsp), %rax
jmp 0x13c09f
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq