LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Correct.cpp
// Function: cigar_gen(overlap_region*, Candidates_list*, ul_ov_t*, unsigned long, unsigned long, unsigned long, ul_idx_t const*, hpc_t*, All_reads*, char*, UC_Read*, bit_extz_t*, double, long, unsigned long, ul_ov_t*)
uint64_t cigar_gen(overlap_region *z, Candidates_list *cl, ul_ov_t *ov, uint64_t on, uint64_t qn, uint64_t wl,  
const ul_idx_t *uref, hpc_t *hpc_g, All_reads *rref, char* qstr, UC_Read *tu, bit_extz_t *exz, double e_rate, 
int64_t ql, uint64_t rid, ul_ov_t *des)
{
    if(on <= 0) return 0;
    uint64_t i; 
    // des[0] = ov[0]; 
    // for (i = m = 1; i < on; i++) {
    //     fusion_merge();
    // }
    

    for (i = 0; i < on; i++) {
        assert((i<=0)||(ov[i].qs > ov[i-1].qe));
        sub_ciagar_gen(z, cl, ov[i].qs, ov[i].qe, wl, uref, hpc_g, rref, qstr, tu, exz, e_rate, ql, rid);
    }
    return on;
    // uint64_t i, qs = (uint64_t)-1, qe = (uint64_t)-1;
    // for (i = 0; i < on && ov[i].qn == qn; i++) {
    //     assert((i<=0)||(ov[i].qs >= ov[i-1].qe));
    //     if(ov[i].qs <= qe && qe != (uint64_t)-1) {
    //         qe = ov[i].qe;
    //     } else {
    //         if(qs != (uint64_t)-1) sub_ciagar_gen(z, cl, qs, qe, wl, uref, hpc_g, rref, qstr, tu, exz, e_rate, ql, rid);
    //         qs = ov[i].qs; qe = ov[i].qe;
    //     }
    // }
    // if(qs != (uint64_t)-1) sub_ciagar_gen(z, cl, qs, qe, wl, uref, hpc_g, rref, qstr, tu, exz, e_rate, ql, rid);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movsd %xmm0, 0x10(%rsp)
movq %rcx, %rbx
movq %rdx, 0x8(%rsp)
testq %rcx, %rcx
je 0x616d5
movq %r9, %r14
movq %rdi, %r12
movq 0x50(%rsp), %r13
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %rbp
xorl %r15d, %r15d
testq %r15, %r15
je 0x61676
movl -0x4(%rbp), %eax
cmpl -0x1c(%rbp), %eax
ja 0x6167e
jmp 0x616e7
movq 0x8(%rsp), %rax
movl 0x4(%rax), %eax
movl %eax, %edx
movl (%rbp), %ecx
subq $0x10, %rsp
movq %r12, %rdi
movq %r14, %r8
movq %r13, %r9
movsd 0x20(%rsp), %xmm0
pushq 0x90(%rsp)
pushq 0x90(%rsp)
pushq 0x90(%rsp)
pushq 0x90(%rsp)
pushq 0x90(%rsp)
pushq 0x90(%rsp)
callq 0x6131c
addq $0x40, %rsp
incq %r15
addq $0x1c, %rbp
cmpq %r15, %rbx
jne 0x61667
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1d1198(%rip), %rdi    # 0x232886
leaq 0x1d005e(%rip), %rsi    # 0x231753
leaq 0x1d11aa(%rip), %rcx    # 0x2328a6
movl $0x3993, %edx           # imm = 0x3993
callq 0x2110
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Correct.cpp
// Function: gen_weight_khits0(unsigned int, unsigned int, k_mer_hit*, long, long, unsigned long)
int64_t gen_weight_khits0(uint32_t qs, uint32_t qe, k_mer_hit *a, int64_t an, int64_t k, uint64_t dp)///[qs, qe)
{
    for (; k >= 0 && a[k].self_offset >= qs; k--); 
    for (k = ((k>=0)?k:0); k < an && a[k].self_offset < qe; k++) {
        if((a[k].self_offset >= qs) && (a[k].self_offset < qe) && (!is_alnw(a[k]))) {
            a[k].readID = dp;
        }
    }
    return k;
}

// Assembly:
testq %r8, %r8
js 0x61a5e
movq %r8, %rax
shlq $0x4, %r8
addq %rdx, %r8
addq $0x8, %r8
cmpl %edi, (%r8)
jb 0x61a60
leaq -0x1(%rax), %r10
addq $-0x10, %r8
testq %rax, %rax
movq %r10, %rax
jg 0x61a49
xorl %eax, %eax
cmpq %rcx, %rax
jge 0x61ab2
andl $0x7fffffff, %r9d       # imm = 0x7FFFFFFF
movq %rax, %r8
shlq $0x4, %r8
addq %r8, %rdx
movl 0x8(%rdx), %r8d
cmpl %esi, %r8d
jae 0x61ab2
cmpl %edi, %r8d
jb 0x61aa3
movl (%rdx), %r8d
movl %r8d, %r10d
notl %r10d
testl $0x7fffffff, %r10d      # imm = 0x7FFFFFFF
je 0x61aa3
andl $0x80000000, %r8d       # imm = 0x80000000
orl %r9d, %r8d
movl %r8d, (%rdx)
incq %rax
addq $0x10, %rdx
cmpq %rax, %rcx
jne 0x61a76
movq %rcx, %rax
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Correct.cpp
// Function: gen_weight_khits(asg64_v*, k_mer_hit*, long)
void gen_weight_khits(asg64_v* idx, k_mer_hit *a, int64_t an)
{
    int64_t i, idx_n = idx->n, dp, old_dp, beg, end, k;
    // fprintf(stderr, "[M::%s::] idx->n::%ld\n", __func__, (int64_t)idx->n);
    for (i = k = 0, dp = old_dp = 0, beg = 0, end = -1; i < idx_n; ++i) {///[beg, end) but coordinates in idx is [, ]
        ///if idx->a.a[] is qe
        old_dp = dp;
        if ((idx->a[i]>>32)&1) {
            --dp; end = (idx->a[i]>>33)+1;
        }else {
            //meet a new overlap; the overlaps are pushed by the x_pos_s
            ++dp; end = (idx->a[i]>>33);
        }
        // fprintf(stderr, "[M::%s::] beg::%ld, end::%ld, old_dp::%ld\n", __func__, beg, end, old_dp);
        if(end > beg) k = gen_weight_khits0(beg, end, a, an, k, old_dp);
        beg = end;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
movq (%rdi), %rbp
testq %rbp, %rbp
jle 0x61b47
movq %rdi, %rsi
xorl %eax, %eax
movabsq $0x100000000, %r15      # imm = 0x100000000
xorl %edi, %edi
xorl %r12d, %r12d
xorl %r14d, %r14d
movq %rsi, (%rsp)
movq 0x10(%rsi), %rcx
movq (%rcx,%r14,8), %rcx
movq %rcx, %r13
andq %r15, %r13
shrq $0x21, %rcx
btq $0x20, %r13
movl $0x0, %ebx
sbbq %rbx, %rbx
shrq $0x20, %r13
addq %rcx, %r13
cmpq %rdi, %r13
jbe 0x61b35
movl %r13d, %esi
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %rcx
movq %rax, %r8
movq %r12, %r9
callq 0x61a36
movq (%rsp), %rsi
orq $0x1, %rbx
addq %rbx, %r12
incq %r14
movq %r13, %rdi
cmpq %r14, %rbp
jne 0x61aee
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Correct.cpp
// Function: prt_khit(Candidates_list*, overlap_region_alloc*, overlap_region*, unsigned long, char const*)
void prt_khit(Candidates_list *cl, overlap_region_alloc* ol, overlap_region *z, uint64_t utg_id, const char *cmd)
{
    uint64_t k, cid; int64_t i; 
    if(!z) {
        for (k = 0; k < ol->length; k++) {
            z = &(ol->list[k]);
            if(z->y_id == utg_id) break;
        }
    }
    if((z) || (z->y_id == utg_id)) {
            fprintf(stderr, "[M::%s::cmd->%s] ******\n", __func__, (char *)cmd);
        for (i = z->shared_seed, cid = cl->list[i].readID; i < cl->length && cl->list[i].readID == cid; i++) {
            fprintf(stderr, "[M::%s::i->%lu] qoff::%u, toff::%u, cid::%lu, cl->length::%lld\n", __func__, i, 
                        cl->list[i].self_offset, cl->list[i].offset, cid, cl->length);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rdi, %rbx
testq %rdx, %rdx
jne 0x61bc6
movq 0x10(%rsi), %rax
testq %rax, %rax
je 0x61ba3
movq (%rsi), %rdx
imulq $0xa8, %rax, %rsi
leaq (%rdx,%rsi), %r14
addq $-0xa8, %r14
movl 0x10(%rdx), %esi
cmpq %rcx, %rsi
je 0x61bc3
addq $0xa8, %rdx
decq %rax
jne 0x61b8a
testq %r14, %r14
jne 0x61bc6
movl 0x10, %eax
cmpq %rcx, %rax
je 0x61bbe
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r14d, %r14d
jmp 0x61bc6
movq %rdx, %r14
movq 0x233413(%rip), %r13    # 0x294fe0
movq (%r13), %rdi
leaq 0x1d0e75(%rip), %rsi    # 0x232a4d
leaq 0x1d0e87(%rip), %rdx    # 0x232a66
movq %r8, %rcx
xorl %eax, %eax
callq 0x22b0
movslq 0x24(%r14), %r14
movq 0x8(%rbx), %r10
cmpq %r14, %r10
jle 0x61baf
movq %r14, %rbp
shlq $0x4, %rbp
movq (%rbx), %rax
movl (%rax,%rbp), %r15d
andl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
orq $0x8, %rbp
movl $0x7fffffff, %r12d      # imm = 0x7FFFFFFF
movq (%rbx), %rax
movl -0x8(%rax,%rbp), %ecx
andl %r12d, %ecx
cmpl %r15d, %ecx
jne 0x61baf
movq (%r13), %rdi
movl -0x4(%rax,%rbp), %r9d
movl (%rax,%rbp), %r8d
leaq 0x1d0e37(%rip), %rsi    # 0x232a6f
leaq 0x1d0e27(%rip), %rdx    # 0x232a66
movq %r14, %rcx
xorl %eax, %eax
pushq %r10
pushq %r15
callq 0x22b0
addq $0x10, %rsp
incq %r14
movq 0x8(%rbx), %r10
addq $0x10, %rbp
cmpq %r10, %r14
jl 0x61c15
jmp 0x61baf
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Correct.cpp
// Function: cigar_gen_cns(overlap_region*, Candidates_list*, ul_ov_t*, unsigned long, unsigned long, unsigned long, ul_idx_t const*, hpc_t*, All_reads*, char*, UC_Read*, bit_extz_t*, double, long, unsigned long, asg64_v*, ul_ov_t*)
uint64_t cigar_gen_cns(overlap_region *z, Candidates_list *cl, ul_ov_t *ov, uint64_t on, uint64_t qn, uint64_t wl,  
const ul_idx_t *uref, hpc_t *hpc_g, All_reads *rref, char* qstr, UC_Read *tu, bit_extz_t *exz, double e_rate, 
int64_t ql, uint64_t rid, asg64_v* iidx, ul_ov_t *des)
{
    if(on <= 0 || iidx->n <= 0) return 0;
    uint64_t i; 
    for (i = 0; i < on; i++) {
        assert((i<=0)||(ov[i].qs > ov[i-1].qe));
        sub_ciagar_gen(z, cl, ov[i].qs, ov[i].qe, wl, uref, hpc_g, rref, qstr, tu, exz, e_rate, ql, rid);
    }
    return on;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movsd %xmm0, 0x10(%rsp)
movq %rdx, 0x8(%rsp)
testq %rcx, %rcx
je 0x61ec5
movq 0x90(%rsp), %rax
cmpq $0x0, (%rax)
je 0x61ec5
movq %r9, %r14
movq %rcx, %rbx
movq %rdi, %r12
movq 0x50(%rsp), %r13
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %rbp
xorl %r15d, %r15d
testq %r15, %r15
je 0x61e64
movl -0x4(%rbp), %eax
cmpl -0x1c(%rbp), %eax
ja 0x61e6c
jmp 0x61ed9
movq 0x8(%rsp), %rax
movl 0x4(%rax), %eax
movl %eax, %edx
movl (%rbp), %ecx
subq $0x10, %rsp
movq %r12, %rdi
movq %r14, %r8
movq %r13, %r9
movsd 0x20(%rsp), %xmm0
pushq 0x90(%rsp)
pushq 0x90(%rsp)
pushq 0x90(%rsp)
pushq 0x90(%rsp)
pushq 0x90(%rsp)
pushq 0x90(%rsp)
callq 0x6131c
addq $0x40, %rsp
incq %r15
addq $0x1c, %rbp
cmpq %r15, %rbx
jne 0x61e55
jmp 0x61ec7
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1d09a6(%rip), %rdi    # 0x232886
leaq 0x1cf86c(%rip), %rsi    # 0x231753
leaq 0x1d0bc1(%rip), %rcx    # 0x232aaf
movl $0x3a3e, %edx           # imm = 0x3A3E
callq 0x2110
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Correct.cpp
// Function: k_hits_bcheck(All_reads*, ul_idx_t const*, overlap_region_alloc*, Candidates_list*, unsigned long, unsigned long*, unsigned long, char*, char*, char*)
uint64_t k_hits_bcheck(All_reads *rref, const ul_idx_t *uref, overlap_region_alloc* ol, Candidates_list *cl, 
uint64_t khit, uint64_t *a, uint64_t a_n, char* qstr, char *str0, char *str1)
{
    if(a_n < 2) return 1;
    uint64_t k, e; char *ref0, *ref1; overlap_region *z;

    e = cl->list[(uint32_t)a[0]].offset; 
    if(e >= khit) e-=khit;
    else return 0;
    z = &(ol->list[cl->list[(uint32_t)a[0]].readID]);
    ref0 = retrive_str_piece_exz(rref, uref, str0, e, khit, z->y_pos_strand, z->y_id);
    // fprintf(stderr, "\n[M::%s::] qstr::%.*s\n", __func__, 
    // (int32_t)khit, qstr+cl->list[(uint32_t)a[0]].self_offset-khit);
    // fprintf(stderr, "[M::%s::qoff->%u::toff->%u::%c] tstr0::%.*s\n", __func__, 
    // cl->list[(uint32_t)a[0]].self_offset, cl->list[(uint32_t)a[0]].offset, "+-"[z->y_pos_strand], (int32_t)khit, ref0);

    for (k = 1; k < a_n; k++) {
        e = cl->list[(uint32_t)a[k]].offset; 
        if(e >= khit) e-=khit;
        else return 0;
        z = &(ol->list[cl->list[(uint32_t)a[k]].readID]);
        ref1 = retrive_str_piece_exz(rref, uref, str1, e, khit, z->y_pos_strand, z->y_id);
        // fprintf(stderr, "[M::%s::qoff->%u::toff->%u::%c] tstr1::%.*s\n", __func__, 
        // cl->list[(uint32_t)a[k]].self_offset, cl->list[(uint32_t)a[k]].offset, "+-"[z->y_pos_strand], (int32_t)khit, ref1);
        if(memcmp(ref0, ref1, khit)) return 0;
    }
    return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
movl $0x1, %eax
cmpq $0x2, 0x50(%rsp)
jb 0x61faa
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r15
movq (%rcx), %rax
movl (%r9), %esi
shlq $0x4, %rsi
movl 0x4(%rax,%rsi), %ecx
subq %r8, %rcx
jae 0x61fb9
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdi, %rbp
movq 0x60(%rsp), %rdx
addq %rsi, %rax
movq 0x10(%rsp), %rsi
movq (%rsi), %rsi
movl (%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
imulq $0xa8, %rax, %rax
movl 0x10(%rsi,%rax), %edi
movl 0x1c(%rsi,%rax), %r9d
movq %rdi, (%rsp)
movq %rbp, %rdi
movq 0x8(%rsp), %rsi
movq %r14, %r8
callq 0x61ef8
movq %rax, %r12
movl $0x1, %r13d
movq (%r15), %rax
movl (%rbx,%r13,8), %edx
shlq $0x4, %rdx
movl 0x4(%rax,%rdx), %ecx
subq %r14, %rcx
jb 0x61fa8
addq %rdx, %rax
movq 0x10(%rsp), %rdx
movq (%rdx), %rdx
movl (%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
imulq $0xa8, %rax, %rax
movl 0x10(%rdx,%rax), %esi
movl 0x1c(%rdx,%rax), %r9d
movq %rsi, (%rsp)
movq %rbp, %rdi
movq 0x8(%rsp), %rsi
movq 0x68(%rsp), %rdx
movq %r14, %r8
callq 0x61ef8
movq %r12, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x21a0
testl %eax, %eax
jne 0x61fa8
incq %r13
cmpq %r13, 0x50(%rsp)
jne 0x62000
movl $0x1, %eax
jmp 0x61faa
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Correct.cpp
// Function: cal_exz_global(char*, int, char*, int, int, bit_extz_t*)
void cal_exz_global(char *pstr, int32_t pn, char *tstr, int32_t tn, int32_t thre, bit_extz_t *ez)
{
    int32_t bd, nword;
    bd = (((thre)<<1)+1); nword = ((bd>>bitw)+(!!(bd&bitz)));

    if(nword <= 1) {
        ed_band_cal_global_64_w_trace(pstr, pn, tstr, tn, thre, ez);
    } else if(nword == 2) {
        ed_band_cal_global_128_w_trace(pstr, pn, tstr, tn, thre, ez);
    } else {
        ed_band_cal_global_infi_w_trace(pstr, pn, tstr, tn, thre, &nword, ez);
    }
}

// Assembly:
subq $0x18, %rsp
leal (%r8,%r8), %r10d
sarl $0x6, %r10d
leal 0x1(%r10), %eax
movl %eax, 0x14(%rsp)
testl %r10d, %r10d
jle 0x63d91
cmpl $0x2, %eax
jne 0x63d9a
addq $0x18, %rsp
jmp 0x8d92c
addq $0x18, %rsp
jmp 0x8bd1f
movq %r9, (%rsp)
leaq 0x14(%rsp), %r9
callq 0x903b7
addq $0x18, %rsp
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Correct.cpp
// Function: cal_exz_global_simi(char*, int, char*, int, int, bit_extz_t*)
void cal_exz_global_simi(char *pstr, int32_t pn, char *tstr, int32_t tn, int32_t thre, bit_extz_t *ez)
{
    int32_t bd, nword;
    bd = (((thre)<<1)+1); nword = ((bd>>bitw)+(!!(bd&bitz)));

    if(nword <= 1) {
        ed_band_cal_global_64_w(pstr, pn, tstr, tn, thre, ez);
    } else if(nword == 2) {
        ed_band_cal_global_128_w(pstr, pn, tstr, tn, thre, ez);
    } else {
        ed_band_cal_global_infi_w(pstr, pn, tstr, tn, thre, &nword, ez);
    }
}

// Assembly:
subq $0x18, %rsp
leal (%r8,%r8), %r10d
sarl $0x6, %r10d
leal 0x1(%r10), %eax
movl %eax, 0x14(%rsp)
testl %r10d, %r10d
jle 0x63dd4
cmpl $0x2, %eax
jne 0x63ddd
addq $0x18, %rsp
jmp 0x93b47
addq $0x18, %rsp
jmp 0x938ba
movq %r9, (%rsp)
leaq 0x14(%rsp), %r9
callq 0x941d1
addq $0x18, %rsp
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Correct.cpp
// Function: cal_exz_extension_0(char*, int, char*, int, int, bit_extz_t*)
void cal_exz_extension_0(char *pstr, int32_t pn, char *tstr, int32_t tn, int32_t thre, bit_extz_t *ez)
{
    int32_t bd, nword;
    bd = (((thre)<<1)+1); nword = ((bd>>bitw)+(!!(bd&bitz)));

    if(nword <= 1) {
        ed_band_cal_extension_64_0_w_trace(pstr, pn, tstr, tn, thre, ez);
    } else if(nword == 2) {
        ed_band_cal_extension_128_0_w_trace(pstr, pn, tstr, tn, thre, ez);
    } else {
        ed_band_cal_extension_infi_0_w_trace(pstr, pn, tstr, tn, thre, &nword, ez);
    }
}

// Assembly:
subq $0x18, %rsp
leal (%r8,%r8), %r10d
sarl $0x6, %r10d
leal 0x1(%r10), %eax
movl %eax, 0x14(%rsp)
testl %r10d, %r10d
jle 0x63e17
cmpl $0x2, %eax
jne 0x63e20
addq $0x18, %rsp
jmp 0x8e2c4
addq $0x18, %rsp
jmp 0x8c25a
movq %r9, (%rsp)
leaq 0x14(%rsp), %r9
callq 0x90fb4
addq $0x18, %rsp
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Correct.cpp
// Function: cal_exz_extension_0_simi(char*, int, char*, int, int, bit_extz_t*)
void cal_exz_extension_0_simi(char *pstr, int32_t pn, char *tstr, int32_t tn, int32_t thre, bit_extz_t *ez)
{
    int32_t bd, nword;
    bd = (((thre)<<1)+1); nword = ((bd>>bitw)+(!!(bd&bitz)));

    if(nword <= 1) {
        ed_band_cal_extension_64_0_w(pstr, pn, tstr, tn, thre, ez);
    } else if(nword == 2) {
        ed_band_cal_extension_128_0_w(pstr, pn, tstr, tn, thre, ez);
    } else {
        ed_band_cal_extension_infi_0_w(pstr, pn, tstr, tn, thre, &nword, ez);
    }
}

// Assembly:
subq $0x18, %rsp
leal (%r8,%r8), %r10d
sarl $0x6, %r10d
leal 0x1(%r10), %eax
movl %eax, 0x14(%rsp)
testl %r10d, %r10d
jle 0x63e5a
cmpl $0x2, %eax
jne 0x63e63
addq $0x18, %rsp
jmp 0x94fc1
addq $0x18, %rsp
jmp 0x94a7e
movq %r9, (%rsp)
leaq 0x14(%rsp), %r9
callq 0x957ce
addq $0x18, %rsp
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Correct.cpp
// Function: cal_exz_extension_1(char*, int, char*, int, int, bit_extz_t*)
void cal_exz_extension_1(char *pstr, int32_t pn, char *tstr, int32_t tn, int32_t thre, bit_extz_t *ez)
{
    int32_t bd, nword;
    bd = (((thre)<<1)+1); nword = ((bd>>bitw)+(!!(bd&bitz)));

    if(nword <= 1) {
        ed_band_cal_extension_64_1_w_trace(pstr, pn, tstr, tn, thre, ez);
    } else if(nword == 2) {
        ed_band_cal_extension_128_1_w_trace(pstr, pn, tstr, tn, thre, ez);
    } else {
        ed_band_cal_extension_infi_1_w_trace(pstr, pn, tstr, tn, thre, &nword, ez);
    }
}

// Assembly:
subq $0x18, %rsp
leal (%r8,%r8), %r10d
sarl $0x6, %r10d
leal 0x1(%r10), %eax
movl %eax, 0x14(%rsp)
testl %r10d, %r10d
jle 0x63e9d
cmpl $0x2, %eax
jne 0x63ea6
addq $0x18, %rsp
jmp 0x8ee5b
addq $0x18, %rsp
jmp 0x8ca6d
movq %r9, (%rsp)
leaq 0x14(%rsp), %r9
callq 0x91dd5
addq $0x18, %rsp
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Correct.cpp
// Function: cal_exz_extension_1_simi(char*, int, char*, int, int, bit_extz_t*)
void cal_exz_extension_1_simi(char *pstr, int32_t pn, char *tstr, int32_t tn, int32_t thre, bit_extz_t *ez)
{
    int32_t bd, nword;
    bd = (((thre)<<1)+1); nword = ((bd>>bitw)+(!!(bd&bitz)));

    if(nword <= 1) {
        ed_band_cal_extension_64_1_w(pstr, pn, tstr, tn, thre, ez);
    } else if(nword == 2) {
        ed_band_cal_extension_128_1_w(pstr, pn, tstr, tn, thre, ez);
    } else {
        ed_band_cal_extension_infi_1_w(pstr, pn, tstr, tn, thre, &nword, ez);
    }
}

// Assembly:
subq $0x18, %rsp
leal (%r8,%r8), %r10d
sarl $0x6, %r10d
leal 0x1(%r10), %eax
movl %eax, 0x14(%rsp)
testl %r10d, %r10d
jle 0x63ee0
cmpl $0x2, %eax
jne 0x63ee9
addq $0x18, %rsp
jmp 0x96855
addq $0x18, %rsp
jmp 0x9627f
movq %r9, (%rsp)
leaq 0x14(%rsp), %r9
callq 0x970bb
addq $0x18, %rsp
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Correct.cpp
// Function: cal_exz_semi(char*, int, char*, int, int, int, bit_extz_t*)
void cal_exz_semi(char *pstr, int32_t pn, char *tstr, int32_t tn, int32_t thre, int32_t aux_beg, bit_extz_t *ez)
{
    int32_t bd, nword;
    bd = (((thre)<<1)+1); nword = ((bd>>bitw)+(!!(bd&bitz)));

    if(nword <= 1) {
        ed_band_cal_semi_64_w_absent_diag_trace(pstr, pn, tstr, tn, thre, aux_beg, ez);
    } else if(nword == 2) {
        ed_band_cal_semi_128_w_absent_diag_trace(pstr, pn, tstr, tn, thre, aux_beg, ez);
    } else {
        ed_band_cal_semi_infi_w_absent_diag_trace(pstr, pn, tstr, tn, thre, aux_beg, &nword, ez);
    }
}

// Assembly:
pushq %rax
movq 0x10(%rsp), %rax
leal (%r8,%r8), %r11d
sarl $0x6, %r11d
leal 0x1(%r11), %r10d
movl %r10d, 0x4(%rsp)
testl %r11d, %r11d
jle 0x63f24
cmpl $0x2, %r10d
jne 0x63f30
popq %rax
jmp 0x8fa96
subq $0x8, %rsp
pushq %rax
callq 0x8d32c
jmp 0x63f3d
leaq 0x4(%rsp), %r10
pushq %rax
pushq %r10
callq 0x92d6f
addq $0x10, %rsp
popq %rax
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Correct.cpp
// Function: cal_exz_semi_simi(char*, int, char*, int, int, int, bit_extz_t*)
void cal_exz_semi_simi(char *pstr, int32_t pn, char *tstr, int32_t tn, int32_t thre, int32_t aux_beg, bit_extz_t *ez)
{
    int32_t bd, nword;
    bd = (((thre)<<1)+1); nword = ((bd>>bitw)+(!!(bd&bitz)));

    if(nword <= 1) {
        ed_band_cal_semi_64_w_absent_diag(pstr, pn, tstr, tn, thre, aux_beg, ez);
    } else if(nword == 2) {
        ed_band_cal_semi_128_w_absent_diag(pstr, pn, tstr, tn, thre, aux_beg, ez);
    } else {
        ed_band_cal_semi_infi_w_absent_diag(pstr, pn, tstr, tn, thre, aux_beg, &nword, ez);
    }
}

// Assembly:
pushq %rax
movq 0x10(%rsp), %rax
leal (%r8,%r8), %r11d
sarl $0x6, %r11d
leal 0x1(%r11), %r10d
movl %r10d, 0x4(%rsp)
testl %r11d, %r11d
jle 0x63f6b
cmpl $0x2, %r10d
jne 0x63f77
popq %rax
jmp 0x97bd8
subq $0x8, %rsp
pushq %rax
callq 0x8b419
jmp 0x63f84
leaq 0x4(%rsp), %r10
pushq %rax
pushq %r10
callq 0x981b8
addq $0x10, %rsp
popq %rax
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Correct.cpp
// Function: adjust_ext_offset_fixed_t(long*, long*, long*, long*, long, long, long, long, long, long)
void adjust_ext_offset_fixed_t(int64_t *qs, int64_t *qe, int64_t *ts, int64_t *te, 
int64_t qmin, int64_t qmax, int64_t tmin, int64_t tmax, int64_t thre, int64_t mode)
{
    int64_t qoff, toff;
    if(mode == 1) {///forward extension
        qoff = qmax - (*qs); toff = tmax - (*ts);
        if(qoff <= toff) {
            (*qe) = qmax; (*te) = (*ts) + qoff + thre;
        } else {
            (*te) = tmax; (*qe) = (*qs) + toff + thre;
        }
    } else if(mode == 2) {///backward extension
        qoff = (*qe) - qmin; toff = (*te) - tmin;
        if(qoff <= toff) {
            (*qs) = qmin; (*ts) = (*te) - qoff - thre;
        } else {
            (*ts) = tmin; (*qs) = (*qe) - toff - thre;
        }
    }
    if((*qs) < qmin) (*qs) = qmin;
    if((*ts) < tmin) (*ts) = tmin;
    if((*qe) > qmax) (*qe) = qmax;
    if((*te) > tmax) (*te) = tmax;
}

// Assembly:
pushq %r14
pushq %rbx
movq 0x30(%rsp), %rbx
movq 0x28(%rsp), %r11
movq 0x20(%rsp), %rax
movq 0x18(%rsp), %r10
cmpq $0x2, %rbx
je 0x64eed
cmpq $0x1, %rbx
jne 0x64f2c
movq %r9, %rbx
subq (%rdi), %rbx
movq %rax, %r14
subq (%rdx), %r14
cmpq %r14, %rbx
jle 0x64f0f
movq %rax, (%rcx)
addq %r11, %r14
addq (%rdi), %r14
movq %r14, (%rsi)
jmp 0x64f2c
movq (%rsi), %rbx
subq %r8, %rbx
movq (%rcx), %r14
subq %r10, %r14
cmpq %r14, %rbx
jle 0x64f1d
movq %r10, (%rdx)
movq (%rsi), %rbx
addq %r11, %r14
subq %r14, %rbx
movq %rbx, (%rdi)
jmp 0x64f2c
movq %r9, (%rsi)
addq %r11, %rbx
addq (%rdx), %rbx
movq %rbx, (%rcx)
jmp 0x64f2c
movq %r8, (%rdi)
movq (%rcx), %r14
addq %r11, %rbx
subq %rbx, %r14
movq %r14, (%rdx)
cmpq %r8, (%rdi)
jge 0x64f34
movq %r8, (%rdi)
cmpq %r10, (%rdx)
jge 0x64f3c
movq %r10, (%rdx)
cmpq %r9, (%rsi)
jle 0x64f44
movq %r9, (%rsi)
cmpq %rax, (%rcx)
jle 0x64f4c
movq %rax, (%rcx)
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Correct.cpp
// Function: push_unmap_alnw(overlap_region*, int, long, long, long, long)
void push_unmap_alnw(overlap_region *aux_o, int32_t qs, int64_t qe, int64_t ts, int64_t te, int64_t mode)
{
    window_list *p = NULL;
    kv_pushp(window_list, aux_o->w_list, &p);
    p->x_start = qs; p->x_end = qe;
    p->y_start = ts; p->y_end = te;
    p->error_threshold = mode; p->error = INT16_MAX;
    p->extra_begin = p->extra_end = -1;
    p->cidx = p->clen = 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movl %esi, %ebp
movq %rdi, %r13
movq 0x48(%rdi), %rcx
cmpq 0x50(%rdi), %rcx
jne 0x65bcb
leaq (%rcx,%rcx), %rax
testq %rcx, %rcx
movl $0x2, %esi
cmovneq %rax, %rsi
movq %rsi, 0x50(%r13)
movq 0x58(%r13), %rdi
shlq $0x5, %rsi
callq 0x2370
movq %rax, 0x58(%r13)
movq 0x48(%r13), %rcx
jmp 0x65bcf
movq 0x58(%r13), %rax
leaq 0x1(%rcx), %rdx
movq %rdx, 0x48(%r13)
shlq $0x5, %rcx
movl %ebp, (%rax,%rcx)
movl %r12d, 0x4(%rax,%rcx)
movl %r15d, 0x8(%rax,%rcx)
movl %r14d, 0xc(%rax,%rcx)
movw %bx, 0x16(%rax,%rcx)
movw $0x7fff, 0x14(%rax,%rcx) # imm = 0x7FFF
movl $0xffffffff, 0x10(%rax,%rcx) # imm = 0xFFFFFFFF
movq $0x0, 0x18(%rax,%rcx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Correct.cpp
// Function: push_replace_alnw(overlap_region*, int, long, long, long, long)
void push_replace_alnw(overlap_region *aux_o, int32_t qs, int64_t qe, int64_t ts, int64_t te, int64_t mode)
{
    window_list *p = NULL;
    kv_pushp(window_list, aux_o->w_list, &p);
    p->x_start = qs; p->x_end = qe;
    p->y_start = ts; p->y_end = te;
    p->error_threshold = mode; p->error = 0;
    p->extra_begin = p->extra_end = 0;
    p->cidx = p->clen = 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movl %esi, %ebp
movq %rdi, %r13
movq 0x48(%rdi), %rcx
cmpq 0x50(%rdi), %rcx
jne 0x65c6a
leaq (%rcx,%rcx), %rax
testq %rcx, %rcx
movl $0x2, %esi
cmovneq %rax, %rsi
movq %rsi, 0x50(%r13)
movq 0x58(%r13), %rdi
shlq $0x5, %rsi
callq 0x2370
movq %rax, 0x58(%r13)
movq 0x48(%r13), %rcx
jmp 0x65c6e
movq 0x58(%r13), %rax
leaq 0x1(%rcx), %rdx
movq %rdx, 0x48(%r13)
shlq $0x5, %rcx
movl %ebp, (%rax,%rcx)
movl %r12d, 0x4(%rax,%rcx)
movl %r15d, 0x8(%rax,%rcx)
movl %r14d, 0xc(%rax,%rcx)
movw %bx, 0x16(%rax,%rcx)
movw $0x0, 0x14(%rax,%rcx)
movl $0x0, 0x10(%rax,%rcx)
movq $0x0, 0x18(%rax,%rcx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Correct.cpp
// Function: set_exact_exz(bit_extz_t*, long, long, long, long)
void set_exact_exz(bit_extz_t *exz, int64_t qs, int64_t qe, int64_t ts, int64_t te)
{
    clear_align(*exz); exz->thre = 0; exz->cigar.n = 0;
    exz->err = 0; push_trace(&(exz->cigar), 0, qe - qs);
    exz->pl = te - ts; exz->ps = 0; exz->pe = exz->pl-1;
    exz->tl = qe - qs; exz->ts = 0; exz->te = exz->tl-1;
    exz->ps += ts; exz->pe += ts;
    exz->ts += qs; exz->te += qs;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r12
movq %rcx, (%rsp)
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
xorl %ecx, %ecx
movq %rcx, 0x28(%rdi)
movq %rcx, 0xa8(%rdi)
subl %r15d, %ebx
movl %ebx, %ebp
cmpl $0x3fff, %ebx           # imm = 0x3FFF
jb 0x66496
movq 0xb8(%r14), %rax
xorl %edx, %edx
movl $0x2, %r13d
movl %ebx, %ebp
cmpq 0xb0(%r14), %rdx
jne 0x66474
leaq (%rdx,%rdx), %rsi
testq %rdx, %rdx
cmoveq %r13, %rsi
movq %rsi, 0xb0(%r14)
addq %rsi, %rsi
movq %rax, %rdi
callq 0x2370
movq %rax, 0xb8(%r14)
movq 0xa8(%r14), %rdx
leaq 0x1(%rdx), %rcx
movq %rcx, 0xa8(%r14)
movw $0x3fff, (%rax,%rdx,2)  # imm = 0x3FFF
addl $0xffffc001, %ebp       # imm = 0xFFFFC001
movq %rcx, %rdx
cmpl $0x3ffe, %ebp           # imm = 0x3FFE
ja 0x66440
testl %ebp, %ebp
je 0x664ef
cmpq 0xb0(%r14), %rcx
jne 0x664d9
leaq (%rcx,%rcx), %rax
testq %rcx, %rcx
movl $0x2, %esi
cmovneq %rax, %rsi
movq %rsi, 0xb0(%r14)
movq 0xb8(%r14), %rdi
addq %rsi, %rsi
callq 0x2370
movq %rax, 0xb8(%r14)
movq 0xa8(%r14), %rcx
jmp 0x664e0
movq 0xb8(%r14), %rax
leaq 0x1(%rcx), %rdx
movq %rdx, 0xa8(%r14)
movw %bp, (%rax,%rcx,2)
movl %r12d, %eax
movq (%rsp), %rcx
subl %ecx, %eax
movl %eax, 0x18(%r14)
movl %ebx, 0x24(%r14)
movl %ecx, 0x10(%r14)
decl %r12d
movl %r12d, 0x14(%r14)
movl %r15d, 0x1c(%r14)
leal (%rbx,%r15), %eax
decl %eax
movl %eax, 0x20(%r14)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Correct.cpp
// Function: debug_iter_k_mer_hit(k_mer_hit*, long, unsigned long, unsigned long, long, long)
void debug_iter_k_mer_hit(k_mer_hit *ch_a, int64_t ch_n, uint64_t s, uint64_t e, int64_t ibeg, int64_t iend)
{
    int64_t i, beg = -1, end = -1;
    for (i = 0; i < ch_n; i++) {
        if((ch_a[i].self_offset >= s) && (ch_a[i].self_offset < e)) {
            if(beg == -1) beg = i;
            end = i+1;
        }
    }
    assert(ibeg==beg && iend==end);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
testq %rsi, %rsi
jle 0x66fd2
addq $0x8, %rdi
movq $-0x1, %rax
xorl %r11d, %r11d
movq $-0x1, %r10
movl (%rdi), %ebx
cmpq %rdx, %rbx
setae %bpl
cmpq %rcx, %rbx
setb %bl
leaq 0x1(%r11), %r14
cmpq $-0x1, %r10
cmovneq %r10, %r11
testb %bl, %bpl
cmovneq %r11, %r10
cmovneq %r14, %rax
addq $0x10, %rdi
movq %r14, %r11
cmpq %r14, %rsi
jne 0x66f9e
jmp 0x66fe0
movq $-0x1, %r10
movq $-0x1, %rax
cmpq %r8, %r10
jne 0x66fef
cmpq %r9, %rax
jne 0x66fef
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x1cbd75(%rip), %rdi    # 0x232d6b
leaq 0x1ca756(%rip), %rsi    # 0x231753
leaq 0x1cbd7e(%rip), %rcx    # 0x232d82
movl $0x3ff7, %edx           # imm = 0x3FF7
callq 0x2110
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Correct.cpp
// Function: cigar_gen_by_chain(overlap_region*, Chain_Data*, k_mer_hit*, long, ul_ov_t*, long, unsigned long, ul_idx_t const*, hpc_t*, All_reads*, char*, UC_Read*, bit_extz_t*, double, long, unsigned long)
void cigar_gen_by_chain(overlap_region *z, Chain_Data *dp, k_mer_hit *ch_a, int64_t ch_n, ul_ov_t *ov, int64_t on, uint64_t wl,  
const ul_idx_t *uref, hpc_t *hpc_g, All_reads *rref, char* qstr, UC_Read *tu, bit_extz_t *exz, double e_rate, 
int64_t ql, uint64_t rid)
{
    if(on <= 0) return;
    int64_t i, ch_i, tl, id = z->y_id; uint64_t pe = (uint64_t)-1;
    if(hpc_g) tl = hpc_len(*hpc_g, id);
    else if(uref) tl = uref->ug->u.a[id].len;
    else tl = Get_READ_LENGTH((*rref), id);
    // for (i = 0; i < wn; i++) z->w_list.a[i].clen = 0;///clean cigar
    // if(on > 1) {
    //     fprintf(stderr, "[M::%s::] rid::%lu, on::%ld\n", __func__, rid, on);
    // }
    // if(z->y_id == 126) prt_k_mer_hit(ch_a, ch_n);
    for (i = ch_i = 0; i < on; i++) {
        assert((i<=0)||(ov[i].qs > ov[i-1].qe));
        ch_i = sub_base_aln(z, dp, ch_a, ch_n, pe, ov[i].qs, ov[i].qe, wl, uref, hpc_g, rref, qstr, tu, exz, e_rate, ql, tl, ch_i, rid);
        pe = ov[i].qe;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movsd %xmm0, 0x20(%rsp)
movq %r8, (%rsp)
movq %rcx, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movq %r9, 0x8(%rsp)
testq %r9, %r9
jle 0x67770
movq %rdi, %r13
movq 0x70(%rsp), %rcx
movq 0x68(%rsp), %rdx
movl 0x10(%rdi), %eax
testq %rcx, %rcx
je 0x676b6
movq %rdx, %rbx
movq %rcx, %r12
movq (%rcx), %rcx
movq 0x10(%rcx), %rcx
leaq (%rax,%rax,4), %rax
movl (%rcx,%rax,8), %ebp
shrl %ebp
andl $0x3fffffff, %ebp       # imm = 0x3FFFFFFF
jmp 0x676e7
movq %rcx, %r12
testq %rdx, %rdx
je 0x676d7
movq %rdx, %rbx
movq (%rdx), %rcx
movq 0x10(%rcx), %rcx
leaq (%rax,%rax,4), %rax
movl (%rcx,%rax,8), %ebp
andl $0x7fffffff, %ebp       # imm = 0x7FFFFFFF
jmp 0x676e7
movq %rdx, %rbx
movq 0x78(%rsp), %rcx
movq 0x18(%rcx), %rcx
movq (%rcx,%rax,8), %rbp
movq (%rsp), %rax
leaq 0x8(%rax), %r14
xorl %r15d, %r15d
xorl %eax, %eax
testq %r15, %r15
je 0x67705
movl -0x4(%r14), %ecx
cmpl -0x1c(%r14), %ecx
ja 0x6770c
jmp 0x6777f
movq (%rsp), %rcx
movl 0x4(%rcx), %ecx
movl %ecx, %r9d
movl (%r14), %esi
subq $0x8, %rsp
movq %r13, %rdi
movq 0x18(%rsp), %rdx
movq 0x20(%rsp), %rcx
movsd 0x28(%rsp), %xmm0
pushq %rax
pushq %rbp
pushq 0xb0(%rsp)
pushq 0xb0(%rsp)
pushq 0xb0(%rsp)
pushq 0xb0(%rsp)
pushq 0xb0(%rsp)
pushq %r12
pushq %rbx
pushq 0xb0(%rsp)
pushq %rsi
callq 0x67256
addq $0x60, %rsp
incq %r15
addq $0x1c, %r14
cmpq %r15, 0x8(%rsp)
jne 0x676f4
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1cb100(%rip), %rdi    # 0x232886
leaq 0x1c9fc6(%rip), %rsi    # 0x231753
leaq 0x1cb738(%rip), %rcx    # 0x232ecc
movl $0x409c, %edx           # imm = 0x409C
callq 0x2110
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Correct.cpp
// Function: fusion_chain_ovlp(overlap_region*, k_mer_hit*, long, ul_ov_t*, long, unsigned long, long, long)
int64_t fusion_chain_ovlp(overlap_region *z, k_mer_hit *ch_a, int64_t ch_n, ul_ov_t *ov, int64_t on, uint64_t wl, int64_t ql, int64_t tl)
{
    int64_t i, srt, ch_i, m, os, oe, ovlp; ul_ov_t *p;
    for (i = ch_i = 0, srt = 1; i < on; i++) {
        // fprintf(stderr, "[M::%s::i->%ld] ovq::[%u, %u)\n", __func__, i, ov->qs, ov->qe);
        ov[i].sec = 6;///do not know the aln type
        ch_i = adjust_base_coordinates(z, ch_a, ch_n, &(ov[i]), wl, ql, tl, ch_i);
        if(i > 0 && ov[i].qs < ov[i-1].qe) srt = 0;
    }
    if(on <= 1) return on;

    if(!srt) radix_sort_uov_srt_qs(ov, ov+on);
    for (i = m = 1; i < on; i++) {
        p = &(ov[m-1]);
        os = MAX(p->qs, ov[i].qs); 
        oe = MIN(p->qe, ov[i].qe);
        ovlp = oe - os;
        if(ovlp >= 0) {//merge
            p->qe = MAX(p->qe, ov[i].qe);
            p->te = MAX(p->te, ov[i].te);
            p->tn = MAX(p->tn, ov[i].tn);
        } else {//new
            ov[m++] = ov[i]; 
        }
    }

    on = m;
    return on;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %rbx
testq %r8, %r8
jle 0x67a48
movq %rdx, %r15
movq %rsi, %r12
movl $0x1, %r13d
movq %rcx, 0x10(%rsp)
movq %rcx, %rbp
xorl %r14d, %r14d
xorl %eax, %eax
movl 0x18(%rbp), %ecx
movl $0xc0000000, %edx       # imm = 0xC0000000
andl %edx, %ecx
orl $0x6, %ecx
movl %ecx, 0x18(%rbp)
movq %rax, 0x8(%rsp)
movq %r12, %rsi
movq %r15, %rdx
movq %rbp, %rcx
movq 0x50(%rsp), %r9
callq 0x6779e
testq %r14, %r14
je 0x6798b
movl 0x4(%rbp), %ecx
cmpl -0x14(%rbp), %ecx
movl $0x0, %ecx
cmovbq %rcx, %r13
incq %r14
addq $0x1c, %rbp
cmpq %r14, %rbx
jne 0x6794f
cmpq $0x1, %rbx
je 0x67a48
testq %r13, %r13
movq 0x10(%rsp), %r14
jne 0x679c1
leaq (%rbx,%rbx,8), %rax
leaq (%rax,%rax,2), %rsi
addq %r14, %rsi
addq %rbx, %rsi
movq %r14, %rdi
callq 0x463ee
decq %rbx
leaq 0x30(%r14), %rax
movq %rbx, %rcx
movl $0x1, %ebx
leaq (%rbx,%rbx,8), %rdx
leaq (%rdx,%rdx,2), %rsi
addq %rbx, %rsi
leaq (%r14,%rsi), %rdx
movl -0x18(%r14,%rsi), %r8d
movl -0x14(%r14,%rsi), %esi
movl -0x10(%rax), %r9d
movl -0xc(%rax), %edi
cmpl %r9d, %r8d
cmoval %r8d, %r9d
cmpl %edi, %esi
movl %edi, %r8d
cmovbl %esi, %r8d
cmpl %r9d, %r8d
jae 0x67a1c
leaq -0x14(%rax), %rsi
incq %rbx
movups (%rsi), %xmm0
movups 0xc(%rsi), %xmm1
movups %xmm1, 0xc(%rdx)
movups %xmm0, (%rdx)
jmp 0x67a3f
cmpl %edi, %esi
cmoval %esi, %edi
movl %edi, -0x14(%rdx)
movl -0x8(%rdx), %esi
movl (%rax), %edi
cmpl %edi, %esi
cmoval %esi, %edi
movl -0x10(%rdx), %esi
movl %edi, -0x8(%rdx)
movl -0x8(%rax), %edi
cmpl %edi, %esi
cmoval %esi, %edi
movl %edi, -0x10(%rdx)
addq $0x1c, %rax
decq %rcx
jne 0x679d0
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Correct.cpp
// Function: retrieve_cigar_err_debug(bit_extz_t*, long, long)
int64_t retrieve_cigar_err_debug(bit_extz_t *ez, int64_t s, int64_t e)
{
    if(!ez->cigar.n) return 0;
    int64_t err = 0, xk = ez->ts; int64_t ws, we, os, oe, ovlp;
    uint32_t ck = 0, cl; uint16_t op;

    os = MAX(s, ez->ts); oe = MIN(e, ez->te+1);
    ovlp = ((oe>os)? (oe-os):0); 
    if(!ovlp) {
        fprintf(stderr, "[M::%s::] s::%ld, e::%ld, ez->ts::%u, ez->te::%u\n", 
        __func__, s, e, ez->ts, ez->te);
    }
    assert(ovlp);

    //some cigar will span s or e
    while (ck < ez->cigar.n && xk < e) {//[s, e)
        ws = xk; 
        ck = pop_trace(&(ez->cigar), ck, &op, &cl);
        if(op!=2) xk += cl;
        we = xk;
        os = MAX(s, ws); oe = MIN(e, we);
        ovlp = ((oe>os)? (oe-os):0);
        if((op==2) && (ws>=s) && (ws<e)) {
            ovlp = cl;
        }
        if((!ovlp) || (!op)) continue;
        err += ovlp;
    }
    return err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r8
movq 0xa8(%rdi), %rdx
testq %rdx, %rdx
je 0x6b4a2
movq %rsi, %rcx
movslq 0x1c(%rdi), %r9
cmpq %rsi, %r9
cmovgq %r9, %rsi
movslq 0x20(%rdi), %rax
leaq 0x1(%rax), %r10
cmpq %r8, %r10
cmovgeq %r8, %r10
cmpq %rsi, %r10
jle 0x6b4b3
movq 0xb8(%rdi), %rsi
xorl %edi, %edi
xorl %r14d, %r14d
xorl %r10d, %r10d
xorl %eax, %eax
movzwl (%rsi,%r14,2), %r11d
movl %r11d, %ebx
shrl $0xe, %ebx
movl %r11d, %ebp
andl $0x3fff, %ebp           # imm = 0x3FFF
incl %r10d
cmpq %r10, %rdx
jbe 0x6b42d
movzwl (%rsi,%r10,2), %r14d
movl %r14d, %r15d
shrl $0xe, %r15d
cmpl %ebx, %r15d
jne 0x6b432
andl $0x3fff, %r14d          # imm = 0x3FFF
addl %r14d, %ebp
incl %r10d
movq %r10, %r14
cmpq %r10, %rdx
ja 0x6b405
jmp 0x6b435
movq %r10, %r14
jmp 0x6b435
movl %r10d, %r14d
movl %ebp, %r12d
cmpw $0x2, %bx
movq %r12, %r15
cmoveq %rdi, %r15
addq %r9, %r15
cmpq %rcx, %r9
movq %rcx, %r13
cmovgq %r9, %r13
cmpq %r8, %r15
movq %r8, %rbp
cmovlq %r15, %rbp
subq %r13, %rbp
cmovleq %rdi, %rbp
cmpq %rcx, %r9
cmovlq %rbp, %r12
cmpw $0x2, %bx
cmovneq %rbp, %r12
movzwl %r11w, %r9d
cmpl $0x4000, %r9d           # imm = 0x4000
movl $0x0, %r9d
cmovaeq %r12, %r9
testq %r12, %r12
cmoveq %r12, %r9
addq %r9, %rax
cmpq %r14, %rdx
jbe 0x6b4a4
movq %r15, %r9
cmpq %r8, %r15
jl 0x6b3e9
jmp 0x6b4a4
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x229b26(%rip), %rdx    # 0x294fe0
movq (%rdx), %rdi
movl %eax, (%rsp)
leaq 0x1c8614(%rip), %rsi    # 0x233adb
leaq 0x1c863f(%rip), %rdx    # 0x233b0d
xorl %eax, %eax
callq 0x22b0
leaq 0x1dad98(%rip), %rdi    # 0x246274
leaq 0x1c6270(%rip), %rsi    # 0x231753
leaq 0x1c863c(%rip), %rcx    # 0x233b26
movl $0x4648, %edx           # imm = 0x4648
callq 0x2110
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Correct.cpp
// Function: retrieve_cigar_err(bit_extz_t*, long, long, long*, long*)
int64_t retrieve_cigar_err(bit_extz_t *ez, int64_t s, int64_t e, int64_t *xk, int64_t *ck)
{
    if(!ez->cigar.n) return 0;
    int64_t cn = ez->cigar.n, op, err = 0; int64_t ws, we, os, oe, ovlp;
    if(((*ck) < 0) || ((*ck) > cn)) {//(*ck) == cn is allowed
        (*ck) = 0; (*xk) = ez->ts; 
    }

    while ((*ck) > 0 && (*xk) > s) {
        --(*ck);
        op = ez->cigar.a[(*ck)]>>14;
        if(op!=2) (*xk) -= (ez->cigar.a[(*ck)]&(0x3fff));
    }

    //some cigar will span s or e
    while ((*ck) < cn && (*xk) < e) {//[s, e)
        ws = (*xk); 
        op = ez->cigar.a[(*ck)]>>14;
        if(op!=2) (*xk) += (ez->cigar.a[(*ck)]&(0x3fff));
        we = (*xk);
        os = MAX(s, ws); oe = MIN(e, we);
        ovlp = ((oe>os)? (oe-os):0);
        if((op==2) && (ws>=s) && (ws<e)) {
            ovlp = (ez->cigar.a[(*ck)]&(0x3fff));
        }

        // if(s == 22694 && e == 38018) {
        //     fprintf(stderr, "[M::%s]\tw::[%ld,\t%ld)\tc::%ld\top::%ld\terr::%ld\n", __func__, ws, we, (*ck), op, err + (op?ovlp:0));
        // } 
        (*ck)++;
        if((!ovlp) || (!op)) continue;
        err += ovlp;
    }

    // int64_t debug_err = retrieve_cigar_err_debug(ez, s, e);
    // if(!(err == debug_err)) {
    //     fprintf(stderr, "[M::%s::] err::%ld, debug_err::%ld, s::%ld, e::%ld, ez->ts::%u, ez->te::%u\n", 
    //     __func__, err, debug_err, s, e, ez->ts, ez->te);
    // }
    // assert(err == debug_err);
    return err;
}

// Assembly:
movq 0xa8(%rdi), %r9
testq %r9, %r9
je 0x6b7dd
movq (%r8), %r10
testq %r10, %r10
setns %al
cmpq %r9, %r10
setle %r11b
testb %r11b, %al
jne 0x6b709
movq $0x0, (%r8)
movslq 0x1c(%rdi), %rax
movq %rax, (%rcx)
movq (%r8), %r10
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
testq %r10, %r10
jle 0x6b751
cmpq %rsi, (%rcx)
jle 0x6b751
leaq -0x1(%r10), %r11
movq %r11, (%r8)
movq 0xb8(%rdi), %rax
movzwl -0x2(%rax,%r10,2), %eax
movl %eax, %ebx
andl $0xc000, %ebx           # imm = 0xC000
movq %r11, %r10
cmpl $0x8000, %ebx           # imm = 0x8000
je 0x6b713
andl $0x3fff, %eax           # imm = 0x3FFF
subq %rax, (%rcx)
movq (%r8), %r10
jmp 0x6b713
cmpq %r9, %r10
jge 0x6b7e0
xorl %r11d, %r11d
xorl %eax, %eax
movq (%rcx), %r12
cmpq %rdx, %r12
jge 0x6b7e2
movq 0xb8(%rdi), %r15
movzwl (%r15,%r10,2), %ebx
movl %ebx, %ebp
shrl $0xe, %ebp
movq %r12, %r14
cmpl $0x2, %ebp
je 0x6b793
movl %ebx, %r14d
andl $0x3fff, %r14d          # imm = 0x3FFF
addq %r12, %r14
movq %r14, (%rcx)
movq (%r8), %r10
cmpq %rsi, %r12
movq %rsi, %r13
cmovgq %r12, %r13
cmpq %rdx, %r14
jl 0x6b7a5
movq %rdx, %r14
subq %r13, %r14
jg 0x6b7ad
xorl %r14d, %r14d
cmpq %rsi, %r12
jl 0x6b7c3
cmpl $0x2, %ebp
jne 0x6b7c3
movzwl (%r15,%r10,2), %r14d
andl $0x3fff, %r14d          # imm = 0x3FFF
incq %r10
movq %r10, (%r8)
cmpl $0x4000, %ebx           # imm = 0x4000
cmovbq %r11, %r14
addq %r14, %rax
cmpq %r9, %r10
jl 0x6b75f
jmp 0x6b7e2
xorl %eax, %eax
retq
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Correct.cpp
// Function: query_gen_gov_idx(asg64_v*, unsigned long, unsigned long)
uint64_t query_gen_gov_idx(asg64_v *ovidx, uint64_t v, uint64_t w)
{
    uint64_t m, s, e;
    if(v > w) {
        m = v; v = w; w = m;
    }
    s = ovidx->a[v]>>32; e = s + (uint32_t)ovidx->a[v];
    for (m = s; m < e; m++) {
        if(ovidx->a[m] == w) return 1;
    }
    return 0;
}

// Assembly:
cmpq %rdx, %rsi
movq %rdx, %rcx
cmovaq %rsi, %rcx
cmovbq %rsi, %rdx
movq 0x10(%rdi), %rsi
movq (%rsi,%rdx,8), %rdx
movl %edx, %edi
testq %rdi, %rdi
je 0x6bb8a
shrq $0x20, %rdx
addq %rdx, %rdi
xorl %eax, %eax
cmpq %rcx, (%rsi,%rdx,8)
je 0x6bb8d
incq %rdx
cmpq %rdi, %rdx
jb 0x6bb7b
retq
xorl %eax, %eax
retq
movl $0x1, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Correct.cpp
// Function: push_sec_aln(overlap_region*, long, long, long)
void push_sec_aln(overlap_region *z, int64_t s, int64_t e, int64_t sec_err)
{
    window_list *p;
    if(z->align_length > 0) {
        p = z->w_list.a + z->w_list.n + z->align_length - 1;
        if((p->x_end == s) && ((!!(p->clen)) == (!!sec_err))) {
            p->x_end = e; p->clen += sec_err;
            return;
        }
    }
    if((z->w_list.n+z->align_length)==z->w_list.m) {
        z->w_list.m = z->w_list.m? z->w_list.m<<1 : 2; 
        z->w_list.a = (window_list*)realloc(z->w_list.a, sizeof(window_list)*z->w_list.m); 
    }
    p = &(z->w_list.a[z->w_list.n+z->align_length]); z->align_length++; memset(p, 0, sizeof((*p)));
    p->x_start = s; p->x_end = e; p->clen += sec_err;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movl 0x28(%rdi), %edx
testq %rdx, %rdx
je 0x6bbfa
movq 0x48(%r12), %rcx
movq %rcx, %rax
shlq $0x5, %rax
addq 0x58(%r12), %rax
movq %rdx, %rsi
shlq $0x5, %rsi
movslq -0x1c(%rsi,%rax), %rdi
cmpq %r15, %rdi
jne 0x6bc03
addq %rsi, %rax
movl -0x4(%rax), %edi
testl %edi, %edi
setne %r8b
testq %rbx, %rbx
sete %r9b
movq %rdx, %rsi
cmpb %r8b, %r9b
je 0x6bc06
movl %r14d, -0x1c(%rax)
addl %ebx, %edi
movl %edi, -0x4(%rax)
jmp 0x6bc7b
movq 0x48(%r12), %rcx
xorl %esi, %esi
jmp 0x6bc06
movq %rdx, %rsi
leaq (%rcx,%rsi), %rax
cmpq 0x50(%r12), %rax
jne 0x6bc47
leaq (%rax,%rax), %rcx
testq %rax, %rax
movl $0x2, %esi
cmovneq %rcx, %rsi
movq %rsi, 0x50(%r12)
movq 0x58(%r12), %rdi
shlq $0x5, %rsi
callq 0x2370
movq %rax, 0x58(%r12)
movq 0x48(%r12), %rcx
movl 0x28(%r12), %esi
movl %esi, %edx
jmp 0x6bc4c
movq 0x58(%r12), %rax
shlq $0x5, %rcx
addq %rax, %rcx
shlq $0x5, %rsi
incl %edx
movl %edx, 0x28(%r12)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rsi,%rcx)
movl $0x0, 0x18(%rsi,%rcx)
movl %r15d, (%rsi,%rcx)
movl %r14d, 0x4(%rsi,%rcx)
movl %ebx, 0x1c(%rsi,%rcx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Correct.cpp
// Function: reassign_sec_err(overlap_region*, asg64_v*, asg64_v*, unsigned long)
void reassign_sec_err(overlap_region* ol, asg64_v *ovidx, asg64_v *buf, uint64_t bid0)
{
    uint64_t bn = buf->n, bid = bid0, oid, mid, m, s, e;
    if(buf->a[bid]&id_set) return;
    kv_push(uint64_t, *buf, bid);
    while (buf->n > bn) {
        bid = buf->a[--buf->n];
        if(buf->a[bid]&id_set) continue;
        buf->a[bid]|=id_set;

        oid = id_get(buf->a[bid]);
        s = ovidx->a[oid]>>32; e = (uint32_t)ovidx->a[oid];
        for (m = s; m < e; m++) {
            mid = ol[(uint32_t)ovidx->a[m]].overlapLen;
            if(mid == (uint32_t)-1) continue;
            if(buf->a[mid]&id_set) continue;
            kv_push(uint64_t, *buf, mid);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x10(%rdx), %rax
cmpq $0x0, (%rax,%rcx,8)
js 0x6bea8
movq %rcx, %r12
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq (%rdx), %r13
cmpq 0x8(%rdx), %r13
jne 0x6bdd2
leaq (,%r13,2), %rcx
testq %r13, %r13
movl $0x2, %esi
cmovneq %rcx, %rsi
movq %rsi, 0x8(%rbx)
shlq $0x3, %rsi
movq %rax, %rdi
callq 0x2370
movq %rax, 0x10(%rbx)
movq (%rbx), %rcx
jmp 0x6bdd5
movq %r13, %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, (%rbx)
movq %r12, (%rax,%rcx,8)
movq (%rbx), %rcx
cmpq %r13, %rcx
jbe 0x6bea8
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movq %r13, (%rsp)
leaq -0x1(%rcx), %rdx
movq %rdx, (%rbx)
movq -0x8(%rax,%rcx,8), %rdx
movq (%rax,%rdx,8), %rcx
testq %rcx, %rcx
js 0x6be98
movq %rcx, %rsi
btsq $0x3f, %rsi
movq %rsi, (%rax,%rdx,8)
movl %ecx, %ecx
movq 0x10(%r14), %rdx
movq (%rdx,%rcx,8), %r13
movl %r13d, %ebp
shrq $0x20, %r13
cmpq %rbp, %r13
jae 0x6be98
movq 0x10(%r14), %rcx
movl (%rcx,%r13,8), %ecx
imulq $0xa8, %rcx, %rcx
movl 0x20(%r15,%rcx), %r12d
cmpq %rdi, %r12
je 0x6be90
cmpq $0x0, (%rax,%r12,8)
js 0x6be90
movq (%rbx), %rcx
cmpq 0x8(%rbx), %rcx
jne 0x6be85
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
movl $0x2, %ecx
cmoveq %rcx, %rsi
movq %rsi, 0x8(%rbx)
shlq $0x3, %rsi
movq %rax, %rdi
callq 0x2370
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movq %rax, 0x10(%rbx)
movq (%rbx), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, (%rbx)
movq %r12, (%rax,%rcx,8)
incq %r13
cmpq %r13, %rbp
jne 0x6be30
movq (%rbx), %rcx
movq (%rsp), %r13
cmpq %r13, %rcx
ja 0x6bdf5
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Correct.cpp
// Function: is_mask_ov(mask_ul_ov_t*, unsigned long*, unsigned long, unsigned long)
uint64_t is_mask_ov(mask_ul_ov_t *mk, uint64_t *bes_id, uint64_t bes_n, uint64_t sec_id)
{
    uint64_t s = mk->idx.a[sec_id]>>32, e = (uint32_t)(mk->idx.a[sec_id]), bk, si;
    bk = 0; si = s;
    while (bk < bes_n && si < e) {
        if (bes_id[bk] < mk->srt.a[si].tn) {
            bk++;
        } else if(mk->srt.a[si].tn < bes_id[bk]) {
            si++;
        } else {///bes_id[bk] == mk->srt.a[si].tn
            if(!(mk->srt.a[si].qs)) return 1;
            return 0;
        }
    }
    return 0;
}

// Assembly:
xorl %eax, %eax
testq %rdx, %rdx
je 0x6e3d3
movq 0x10(%rdi), %r8
movq (%r8,%rcx,8), %r8
movl %r8d, %ecx
shrq $0x20, %r8
cmpl %ecx, %r8d
jae 0x6e3d3
movq 0x18(%rdi), %rdi
xorl %eax, %eax
xorl %r9d, %r9d
leaq (%r8,%r8,8), %r10
leaq (%r10,%r10,2), %r11
addq %r8, %r11
leaq (%rdi,%r11), %r10
movl 0xc(%rdi,%r11), %r11d
cmpq %r11, (%rsi,%r9,8)
jae 0x6e3c4
incq %r9
jmp 0x6e3c9
jbe 0x6e3d4
incq %r8
cmpq %rdx, %r9
jae 0x6e3d3
cmpq %rcx, %r8
jb 0x6e3a5
retq
xorl %eax, %eax
cmpl $0x0, 0x4(%r10)
sete %al
retq
// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Correct.cpp
// Function: check_connect_ug(ul_idx_t const*, unsigned int, unsigned int, long, double, long)
uint64_t check_connect_ug(const ul_idx_t *uref, uint32_t v, uint32_t w, int64_t bw, double diff_ec_ul, int64_t dq)
{
	const asg_t *g = uref?uref->ug->g:NULL; int64_t dt = -1;
	uint32_t nv = asg_arc_n(g, v), i; asg_arc_t *av = asg_arc_a(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;
	int64_t diff = (dq>dt? dq-dt:dt-dq), mm = MAX(dq, dt);
	mm *= diff_ec_ul; if(mm < bw) mm = bw;
	if(diff <= mm) return 1;
	return 0;
}

// Assembly:
movq (%rdi), %rax
movq 0x18(%rax), %rdi
movq 0x28(%rdi), %rax
movl %esi, %esi
movq (%rax,%rsi,8), %rax
testl %eax, %eax
je 0x6edc3
movq 0x8(%rdi), %rsi
movq %rax, %rdi
shrq $0x20, %rdi
movl %eax, %eax
leaq (%rdi,%rdi,2), %rdi
leaq (%rsi,%rdi,8), %rsi
addq $0xc, %rsi
shlq $0x3, %rax
leaq (%rax,%rax,2), %rdi
xorl %eax, %eax
xorl %r9d, %r9d
movslq (%rsi,%r9), %r10
testq %r10, %r10
js 0x6edb9
cmpl %edx, -0x4(%rsi,%r9)
je 0x6edc6
addq $0x18, %r9
cmpq %r9, %rdi
jne 0x6eda9
retq
xorl %eax, %eax
retq
movq %r10, %rax
subq %r8, %rax
cmovgq %r10, %r8
movq %rax, %rdx
negq %rdx
cmovsq %rax, %rdx
cvtsi2sd %r8, %xmm1
mulsd %xmm0, %xmm1
cvttsd2si %xmm1, %rax
cmpq %rcx, %rax
cmovgq %rax, %rcx
xorl %eax, %eax
cmpq %rcx, %rdx
setle %al
retq