LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_decode_date_time
int
kmip_decode_date_time(KMIP *ctx, enum tag t, int64 *value)
{
    CHECK_BUFFER_FULL(ctx, 16);
    
    int32 tag_type = 0;
    uint32 length = 0;
    
    kmip_decode_int32_be(ctx, &tag_type);
    CHECK_TAG_TYPE(ctx, tag_type, t, KMIP_TYPE_DATE_TIME);
    
    kmip_decode_length(ctx, &length);
    CHECK_LENGTH(ctx, length, 8);
    
    kmip_decode_int64_be(ctx, value);
    
    return(KMIP_OK);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x10(%rdi), %rax
subq 0x8(%rdi), %rax
addq (%rdi), %rax
cmpq $0xf, %rax
ja 0x112db
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0x11336
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0x112c1
jmp 0x1135d
movq %rdx, %r14
movl %esi, %ebp
xorl %eax, %eax
leaq 0x4(%rsp), %r15
movl %eax, (%r15)
movl %eax, (%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6a10
movl (%r15), %eax
movl %eax, %ecx
sarl $0x8, %ecx
cmpl %ebp, %ecx
jne 0x11367
cmpb $0x9, %al
jne 0x113b6
movq %rsp, %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x64b0
cmpl $0x8, (%r15)
jne 0x11402
movq %rbx, %rdi
movq %r14, %rsi
callq 0x6860
xorl %eax, %eax
jmp 0x1144c
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0xec0d(%rip), %rsi      # 0x1ff54
movl $0x63, %edx
callq 0x66f0
movl $0x21e8, 0x9c(%rbx,%r14) # imm = 0x21E8
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
jmp 0x1144c
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0x11385
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0x1136e
jmp 0x113ac
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0xebbe(%rip), %rsi      # 0x1ff54
movl $0x63, %edx
callq 0x66f0
movl $0x21ee, 0x9c(%rbx,%r14) # imm = 0x21EE
movl $0xfffffffc, %eax       # imm = 0xFFFFFFFC
jmp 0x1144c
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0x113d4
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0x113bd
jmp 0x113fb
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0xeb6f(%rip), %rsi      # 0x1ff54
movl $0x63, %edx
callq 0x66f0
movl $0x21ee, 0x9c(%rbx,%r14) # imm = 0x21EE
movl $0xfffffffb, %eax       # imm = 0xFFFFFFFB
jmp 0x1144c
leaq 0x38(%rbx), %rdi
xorl %r14d, %r14d
cmpl $0x0, 0x64(%rdi,%r14)
je 0x11420
addq $0x68, %r14
cmpq $0x820, %r14            # imm = 0x820
jne 0x11409
jmp 0x11447
addq %r14, %rdi
movq %rdi, 0x860(%rbx)
leaq 0xeb23(%rip), %rsi      # 0x1ff54
movl $0x63, %edx
callq 0x66f0
movl $0x21f1, 0x9c(%rbx,%r14) # imm = 0x21F1
movl $0xfffffffa, %eax       # imm = 0xFFFFFFFA
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/OpenKMIP[P]libkmip/src/kmip.c
// Function: kmip_decode_credential_value
int
kmip_decode_credential_value(KMIP *ctx, enum credential_type type, void **value)
{
    int result = 0;
    
    switch(type)
    {
        case KMIP_CRED_USERNAME_AND_PASSWORD:
        *value = ctx->calloc_func(ctx->state, 1, sizeof(UsernamePasswordCredential));
        CHECK_NEW_MEMORY(ctx, *value, sizeof(UsernamePasswordCredential), "UsernamePasswordCredential structure");
        result = kmip_decode_username_password_credential(ctx, (UsernamePasswordCredential *)*value);
        break;
        
        case KMIP_CRED_DEVICE:
        *value = ctx->calloc_func(ctx->state, 1, sizeof(DeviceCredential));
        CHECK_NEW_MEMORY(ctx, *value, sizeof(DeviceCredential), "DeviceCredential structure");
        result = kmip_decode_device_credential(ctx, (DeviceCredential *)*value);
        break;
        
        case KMIP_CRED_ATTESTATION:
        *value = ctx->calloc_func(ctx->state, 1, sizeof(AttestationCredential));
        CHECK_NEW_MEMORY(ctx, *value, sizeof(AttestationCredential), "AttestationCredential structure");
        result = kmip_decode_attestation_credential(ctx, (AttestationCredential*)*value);
        break;
        
        default:
        kmip_push_error_frame(ctx, __func__, __LINE__);
        return(KMIP_NOT_IMPLEMENTED);
        break;
    }
    CHECK_RESULT(ctx, result);
    
    return(KMIP_OK);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rdi, %rbx
cmpl $0x3, %esi
je 0x1b49e
cmpl $0x2, %esi
je 0x1b472
cmpl $0x1, %esi
jne 0x1b4d7
movq 0x890(%rbx), %rdi
movl $0x1, %esi
movl $0x10, %edx
callq *0x868(%rbx)
movq %rax, (%r14)
testq %rax, %rax
je 0x1b523
movq %rbx, %rdi
movq %rax, %rsi
callq 0x66c0
jmp 0x1b4c8
movq 0x890(%rbx), %rdi
movl $0x1, %esi
movl $0x30, %edx
callq *0x868(%rbx)
movq %rax, (%r14)
testq %rax, %rax
je 0x1b4e3
movq %rbx, %rdi
movq %rax, %rsi
callq 0x6700
jmp 0x1b4c8
movq 0x890(%rbx), %rdi
movl $0x1, %esi
movl $0x20, %edx
callq *0x868(%rbx)
movq %rax, (%r14)
testq %rax, %rax
je 0x1b503
movq %rbx, %rdi
movq %rax, %rsi
callq 0x6770
movl %eax, %ebp
movl $0x29e8, %edx           # imm = 0x29E8
testl %eax, %eax
jne 0x1b541
xorl %ebp, %ebp
jmp 0x1b550
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl $0x29e4, %edx           # imm = 0x29E4
jmp 0x1b541
leaq 0x6c0b(%rip), %rdx      # 0x220f5
movl $0x30, %esi
movq %rbx, %rdi
callq 0x6ba0
movl $0xfffffff4, %ebp       # imm = 0xFFFFFFF4
movl $0x29d9, %edx           # imm = 0x29D9
jmp 0x1b541
leaq 0x6c06(%rip), %rdx      # 0x22110
movl $0x20, %esi
movq %rbx, %rdi
callq 0x6ba0
movl $0xfffffff4, %ebp       # imm = 0xFFFFFFF4
movl $0x29df, %edx           # imm = 0x29DF
jmp 0x1b541
leaq 0x6b89(%rip), %rdx      # 0x220b3
movl $0x10, %esi
movq %rbx, %rdi
callq 0x6ba0
movl $0xfffffff4, %ebp       # imm = 0xFFFFFFF4
movl $0x29d3, %edx           # imm = 0x29D3
leaq 0x6b90(%rip), %rsi      # 0x220d8
movq %rbx, %rdi
callq 0x6de0
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]oatk/syncmer.c
// Function: ha_hist_line
static void ha_hist_line(int c, int x, int exceed, int64_t cnt)
{
    int j;
    if (c >= 0)
        fprintf(stderr, "[M::%s] %5d: ", __func__, c);
    else 
        fprintf(stderr, "[M::%s] %5s: ", __func__, "rest");
    for (j = 0; j < x; ++j) fputc('*', stderr);
    if (exceed) fputc('>', stderr);
    fprintf(stderr, " %lld\n", (long long)cnt);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %rbx
movl %edx, %ebp
movl %esi, %r14d
movl %edi, %ecx
movq 0x216c8(%rip), %r12     # 0x23ff0
movq (%r12), %rdi
testl %ecx, %ecx
js 0x2947
leaq 0x1baf8(%rip), %rsi     # 0x1e42f
leaq 0x1baff(%rip), %rdx     # 0x1e43d
xorl %eax, %eax
callq 0x2290
jmp 0x2963
leaq 0x1bafc(%rip), %rsi     # 0x1e44a
leaq 0x1bae8(%rip), %rdx     # 0x1e43d
leaq 0x1bafc(%rip), %rcx     # 0x1e458
xorl %eax, %eax
callq 0x2290
testl %r14d, %r14d
jle 0x297d
pushq $0x2a
popq %r15
movq (%r12), %rsi
movl %r15d, %edi
callq 0x2210
decl %r14d
jne 0x296c
testl %ebp, %ebp
je 0x298d
movq (%r12), %rsi
pushq $0x3e
popq %rdi
callq 0x2210
movq (%r12), %rdi
leaq 0x1bac5(%rip), %rsi     # 0x1e45d
movq %rbx, %rdx
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x2290
// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]oatk/syncasm.c
// Function: scg_meta_clean
void scg_meta_clean(scg_meta_t *meta)
{
    if (!meta) return;
    scg_destroy(meta->scg);
    syncmer_db_destroy(meta->scm_db);
    sr_db_destroy(meta->sr_db);
    scg_ra_v_destroy(meta->ra_db);
}

// Assembly:
testq %rdi, %rdi
je 0x4973
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
callq 0x4908
movq 0x10(%rbx), %rdi
callq 0xe802
movq 0x18(%rbx), %rdi
callq 0xe77c
movq 0x20(%rbx), %rdi
popq %rbx
jmp 0x18cbc
retq
// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]oatk/syncasm.c
// Function: scg_is_empty
int scg_is_empty(scg_t *scg)
{
    uint64_t i, n, n_scm;
    syncmer_t *scm;
    scm = scg_a_scm(scg);
    n_scm = scg_n_scm(scg);
    for (i = 0, n = n_scm; i < n; ++i)
        if (scm[i].del) --n_scm;
    return n_scm == 0;
}

// Assembly:
movq (%rdi), %rcx
movq (%rcx), %rax
testq %rax, %rax
je 0x572b
movq 0x10(%rcx), %rcx
addq $0x10, %rcx
movq %rax, %rdx
movl (%rcx), %esi
sarl $0x1f, %esi
movslq %esi, %rsi
addq %rsi, %rdx
addq $0x20, %rcx
decq %rax
jne 0x570e
xorl %eax, %eax
testq %rdx, %rdx
sete %al
retq
movl $0x1, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]oatk/syncasm.c
// Function: scg_stat
void scg_stat(scg_t *scg, FILE *fo, uint64_t *stats)
{
    uint64_t i, n, n_scm, u_scm, n_utg, n_arc;
    syncmer_t *scm;
    asmg_t *utg_asmg;

    scm = scg_a_scm(scg);
    u_scm = scg_n_scm(scg);
    utg_asmg = scg->utg_asmg;
    n_utg = utg_asmg->n_vtx;
    n_arc = utg_asmg->n_arc;

    n_scm = 0;
    for (i = 0, n = u_scm; i < n; ++i)
        if (scm[i].del)
            --u_scm;
    for (i = 0, n = n_arc; i < n; ++i)
        if (utg_asmg->arc[i].del)
            --n_arc;
    for (i = 0, n = n_utg; i < n; ++i) {
        if (utg_asmg->vtx[i].del)
            --n_utg;
        else
            n_scm += utg_asmg->vtx[i].n;
    }

    if (fo != 0) {
        fprintf(fo, "[M::%s] number unitigs  : %lu\n", __func__, n_utg);
        fprintf(fo, "[M::%s] number syncmers : %lu\n", __func__, n_scm);
        fprintf(fo, "[M::%s] number arcs     : %lu\n", __func__, n_arc);
    }

    if (stats != 0) {
        stats[0] = n_scm;
        stats[1] = u_scm;
        stats[2] = n_utg;
        stats[3] = n_arc;
    }

    return;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbp
movq %rsi, %rbx
movq (%rdi), %rsi
movq 0x8(%rdi), %rax
movq (%rsi), %rdx
movq 0x18(%rax), %rcx
testq %rdx, %rdx
je 0x5776
movq 0x10(%rsi), %rsi
addq $0x10, %rsi
movq %rdx, %r14
movl (%rsi), %edi
sarl $0x1f, %edi
movslq %edi, %rdi
addq %rdi, %r14
addq $0x20, %rsi
decq %rdx
jne 0x5760
jmp 0x5779
movq %rdx, %r14
movq (%rax), %r15
testq %rcx, %rcx
je 0x57a4
movq 0x28(%rax), %rdx
addq $0x20, %rdx
movq %rcx, %r12
movl (%rdx), %esi
addl %esi, %esi
sarl $0x1f, %esi
movslq %esi, %rsi
addq %rsi, %r12
addq $0x30, %rdx
decq %rcx
jne 0x578c
jmp 0x57a7
movq %rcx, %r12
testq %r15, %r15
je 0x57d4
movq 0x10(%rax), %rax
addq $0x20, %rax
xorl %r13d, %r13d
movq %r15, %rcx
testb $0x40, 0x3(%rax)
jne 0x57c6
addq -0x20(%rax), %r13
jmp 0x57c9
decq %r15
addq $0x28, %rax
decq %rcx
jne 0x57ba
jmp 0x57d7
xorl %r13d, %r13d
testq %rbx, %rbx
je 0x582d
leaq 0x1806d(%rip), %rsi     # 0x1d850
leaq 0x18085(%rip), %rdx     # 0x1d86f
movq %rbx, %rdi
movq %r15, %rcx
xorl %eax, %eax
callq 0x2290
leaq 0x1807a(%rip), %rsi     # 0x1d878
movq %rbx, %rdi
leaq 0x18067(%rip), %rdx     # 0x1d86f
movq %r13, %rcx
xorl %eax, %eax
callq 0x2290
leaq 0x1807e(%rip), %rsi     # 0x1d897
movq %rbx, %rdi
leaq 0x1804c(%rip), %rdx     # 0x1d86f
movq %r12, %rcx
xorl %eax, %eax
callq 0x2290
testq %rbp, %rbp
je 0x5842
movq %r13, (%rbp)
movq %r14, 0x8(%rbp)
movq %r15, 0x10(%rbp)
movq %r12, 0x18(%rbp)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]oatk/syncasm.c
// Function: scg_update_utg_cov
void scg_update_utg_cov(scg_t *scg)
{
    uint64_t i, n;
    scg_utg_t *s;
    asmg_t *utg_asmg = scg->utg_asmg;
    for (i = 0, n = utg_asmg->n_vtx; i < n; ++i) {
        s = &utg_asmg->vtx[i];
        s->cov = utg_avg_cov(scg, s);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x8(%rdi), %r14
movq (%r14), %r15
testq %r15, %r15
je 0x5a7f
movq %rdi, %rbx
xorl %r12d, %r12d
movl $0xc0000000, %ebp       # imm = 0xC0000000
movq 0x10(%r14), %r13
leaq (%r12,%r13), %rsi
movq %rbx, %rdi
callq 0x5a8e
cvttsd2si %xmm0, %rax
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
movl 0x20(%r13,%r12), %ecx
andl %ebp, %ecx
orl %eax, %ecx
movl %ecx, 0x20(%r13,%r12)
addq $0x28, %r12
decq %r15
jne 0x5a4e
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]oatk/syncasm.c
// Function: utg_avg_cov
static inline double utg_avg_cov(scg_t *scg, const scg_utg_t *s)
{
    if (s->del) return .0;

    uint64_t i, u;
    double *cov, avg_cov;
    syncmer_t *scm;
    
    scm = scg_a_scm(scg);
    MYCALLOC(cov, s->n);
    // try to use single copy syncmers
    for (i = 0; i < s->n; ++i) {
        u = s->a[i]>>1;
        if (scm_utg_n(scg, u) == 1)
            cov[i] = scm[u].cov;
    }
    qsort(cov, s->n, sizeof(double), dbl_cmpfunc);
    i = 0;
    while (i < s->n && cov[i] < DBL_EPSILON) ++i;

    if (i == s->n) {
        // using all syncmers
        MYBZERO(cov, s->n);
        for (i = 0; i < s->n; ++i)
            cov[i] = scm[s->a[i]>>1].cov;
        qsort(cov, s->n, sizeof(double), dbl_cmpfunc);
        i = 0;
    }
    // calculate average using [Q1-IQR, Q3+IQR]
    avg_cov = average_IQR(&cov[i], s->n - i, 1);
    
    free(cov);
    
    return avg_cov;
}

// Assembly:
testb $0x40, 0x23(%rsi)
jne 0x5be8
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r12
movq (%rdi), %rax
movq 0x10(%rax), %r13
movq (%rsi), %r15
movl $0x8, %esi
movq %r15, %rdi
callq 0x2250
movq %rax, %r14
testq %r15, %r15
je 0x5b10
movq 0x8(%rbx), %rax
movq 0x18(%r12), %rcx
xorl %edx, %edx
movl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
movq (%rax,%rdx,8), %rdi
shrq %rdi
movq 0x8(%rcx,%rdi,8), %r8
subq (%rcx,%rdi,8), %r8
cmpq $0x10, %r8
jne 0x5b08
shlq $0x5, %rdi
movl 0x10(%r13,%rdi), %edi
andl %esi, %edi
xorps %xmm0, %xmm0
cvtsi2sd %edi, %xmm0
movsd %xmm0, (%r14,%rdx,8)
incq %rdx
cmpq %rdx, %r15
jne 0x5ada
leaq 0x4d98(%rip), %rcx      # 0xa8af
movl $0x8, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x20d0
movq (%rbx), %r15
xorl %eax, %eax
testq %r15, %r15
je 0x5b4c
movsd 0x17c8f(%rip), %xmm0    # 0x1d7c8
ucomisd (%r14,%rax,8), %xmm0
jbe 0x5b4c
incq %rax
cmpq %rax, %r15
jne 0x5b39
movq %r15, %rax
cmpq %r15, %rax
jne 0x5bb4
leaq (,%r15,8), %rdx
movq %r14, %rdi
xorl %esi, %esi
callq 0x21e0
testq %r15, %r15
je 0x5b9b
movq 0x8(%rbx), %rax
xorl %ecx, %ecx
movl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
movq (%rax,%rcx,8), %rsi
shlq $0x4, %rsi
andq $-0x20, %rsi
movl 0x10(%r13,%rsi), %esi
andl %edx, %esi
xorps %xmm0, %xmm0
cvtsi2sd %esi, %xmm0
movsd %xmm0, (%r14,%rcx,8)
incq %rcx
cmpq %rcx, %r15
jne 0x5b73
leaq 0x4d0d(%rip), %rcx      # 0xa8af
movl $0x8, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x20d0
xorl %eax, %eax
leaq (%r14,%rax,8), %rdi
movl (%rbx), %esi
subl %eax, %esi
movl $0x1, %edx
callq 0xa8cc
movsd %xmm0, 0x8(%rsp)
movq %r14, %rdi
callq 0x2060
movsd 0x8(%rsp), %xmm0
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
xorps %xmm0, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]oatk/syncasm.c
// Function: process_mergeable_unitigs
void process_mergeable_unitigs(scg_t *g)
{
    // postprocessing for mergeable utgs
    asmg_t *utg_asmg;

    // make utgs from the unitig graph
    utg_asmg = asmg_unitigging(g->utg_asmg);

    // update utg
    asmg_destroy(g->utg_asmg);
    g->utg_asmg = utg_asmg;

    scg_scm_utg_index(g);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
callq 0x16fea
movq %rax, %r14
movq 0x8(%rbx), %rdi
callq 0x14f4c
movq %r14, 0x8(%rbx)
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x4e30
// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]oatk/syncasm.c
// Function: average_IQR
static double average_IQR(double *a, int n, int sorted)
{
    if (n == 0) return 0.;

    double Q1, Q3, IQR, s;
    int i, n0;
    if (!sorted) qsort(a, n, sizeof(double), dbl_cmpfunc);
    Q1 = quantile(a, n, 0.25, 1);
    Q3 = quantile(a, n, 0.75, 1);
    IQR = Q3 - Q1;
    Q1 -= 1.5 * IQR;
    Q3 += 1.5 * IQR;
    n0 = 0;
    s = 0.;
    for (i = 0; i < n; ++i) {
        if (a[i] >= Q1 && a[i] <= Q3) {
            ++n0;
            s += a[i];
        }
    }
#ifdef DEBUG_UTG_RA_COV
    fprintf(stderr, "[DEBUG_UTG_RA_COV::%s] %d single copy syncmers:",
            __func__, n);
    for (i = 0; i < n; ++i) fprintf(stderr, " %.0f", a[i]);
    fputc('\n', stderr);
    fprintf(stderr, "[DEBUG_UTG_RA_COV::%s] %d outliers out of range [%.3f %.3f] removed\n",
            __func__, n - n0, Q1, Q3);
#endif
    return n0? s / n0 : 0.;
}

// Assembly:
testl %esi, %esi
je 0xa995
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
testl %edx, %edx
jne 0xa8f7
movslq %ebp, %rsi
leaq -0x3b(%rip), %rcx       # 0xa8af
movl $0x8, %edx
movq %rbx, %rdi
callq 0x20d0
movsd 0x12ee9(%rip), %xmm0    # 0x1d7e8
movq %rbx, %rdi
movl %ebp, %esi
callq 0xcbba
movsd %xmm0, (%rsp)
movsd 0x12eda(%rip), %xmm0    # 0x1d7f0
movq %rbx, %rdi
movl %ebp, %esi
callq 0xcbba
movapd %xmm0, %xmm1
xorpd %xmm0, %xmm0
testl %ebp, %ebp
jle 0xa999
movapd %xmm1, %xmm2
movsd (%rsp), %xmm4
subsd %xmm4, %xmm2
movsd 0x12eb7(%rip), %xmm3    # 0x1d7f8
mulsd %xmm2, %xmm3
addsd %xmm4, %xmm3
mulsd 0x12eaf(%rip), %xmm2    # 0x1d800
addsd %xmm1, %xmm2
movl %ebp, %ecx
xorpd %xmm1, %xmm1
xorl %edx, %edx
xorl %eax, %eax
movsd (%rbx,%rdx,8), %xmm4
movapd %xmm3, %xmm5
cmplepd %xmm4, %xmm5
movapd %xmm4, %xmm6
cmplepd %xmm2, %xmm6
andpd %xmm5, %xmm6
movq %xmm6, %rsi
testb $0x1, %sil
je 0xa989
addsd %xmm4, %xmm1
subl %esi, %eax
incq %rdx
cmpq %rdx, %rcx
jne 0xa95f
jmp 0xa99f
xorps %xmm0, %xmm0
retq
xorl %eax, %eax
xorpd %xmm1, %xmm1
testl %eax, %eax
leaq 0x8(%rsp), %rsp
popq %rbx
popq %rbp
je 0xa9b9
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
divsd %xmm0, %xmm1
movapd %xmm1, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]oatk/syncasm.c
// Function: quantile
static double quantile(double *a, int n, double q, int sorted)
{
    if (q < 0 || q > 1.0 || n <= 0) {
        fprintf(stderr, "[E::%s] numeric error", __func__);
        exit(EXIT_FAILURE);
    }
    if (n == 1) return a[0];
    if (!sorted) qsort(a, n, sizeof(double), dbl_cmpfunc);
    double fractpart, intpart;
    fractpart = modf(q * (n - 1), &intpart);
    int i = lround(intpart);
    if (i == n - 1) return a[i];
    return a[i] + (a[i + 1] - a[i]) * fractpart;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
testl %esi, %esi
jle 0xcc6c
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
ja 0xcc6c
ucomisd 0x10bf0(%rip), %xmm0    # 0x1d7d0
ja 0xcc6c
movl %esi, %ebp
movq %rdi, %rbx
cmpl $0x1, %esi
jne 0xcbf6
movsd (%rbx), %xmm0
jmp 0xcc63
decl %ebp
xorps %xmm1, %xmm1
cvtsi2sd %ebp, %xmm1
mulsd %xmm0, %xmm1
leaq 0x8(%rsp), %r14
movapd %xmm1, %xmm0
movq %r14, %rdi
callq 0x21a0
movsd %xmm0, (%rsp)
movsd (%r14), %xmm0
callq 0x2110
cmpl %eax, %ebp
jne 0xcc30
movl %eax, %eax
movsd (%rbx,%rax,8), %xmm0
jmp 0xcc63
shlq $0x20, %rax
movq %rax, %rcx
sarq $0x1d, %rcx
movsd (%rbx,%rcx), %xmm1
movabsq $0x100000000, %rcx      # imm = 0x100000000
addq %rax, %rcx
sarq $0x1d, %rcx
movsd (%rbx,%rcx), %xmm0
subsd %xmm1, %xmm0
mulsd (%rsp), %xmm0
addsd %xmm1, %xmm0
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
callq 0x28e7
// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]oatk/syncasm.c
// Function: lcs_backtrace
static void lcs_backtrace(int **L, uint64_t *s_scm, int s_n, uint64_t *u_scm, int u_n, int offset, lcs_block_t *t)
{
    if (s_n == 0 || u_n == 0)
        return;
    if ((s_scm[s_n] >> 1) == (u_scm[u_n] >> 1)) {
        kv_push(uint64_t, *t, (uint64_t) (s_n - 1 + offset) << 32 | 1);
        return lcs_backtrace(L, s_scm, s_n - 1, u_scm, u_n - 1, offset, t);
    }
    if (L[s_n][u_n - 1] > L[s_n - 1][u_n])
        return lcs_backtrace(L, s_scm, s_n, u_scm, u_n - 1, offset, t);
    return lcs_backtrace(L, s_scm, s_n - 1, u_scm, u_n, offset, t);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %r14d
movl %r8d, %ebp
movq %rcx, %r15
movl %edx, %r13d
movq %rsi, %r12
movq %rdi, %r11
movq 0x40(%rsp), %rbx
testl %r13d, %r13d
je 0xcd41
testl %ebp, %ebp
je 0xcd41
movslq %r13d, %rax
movslq %ebp, %rsi
movq (%r15,%rsi,8), %rdx
xorq (%r12,%rax,8), %rdx
cmpq $0x1, %rdx
ja 0xcd20
movq 0x8(%rbx), %rax
cmpq %rax, (%rbx)
jne 0xccf1
leaq (%rax,%rax), %rsi
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rsi
movq %rsi, 0x8(%rbx)
movq 0x10(%rbx), %rdi
shlq $0x3, %rsi
movq %r11, %rbx
callq 0x2360
movq %rbx, %r11
movq 0x40(%rsp), %rbx
movq %rax, 0x10(%rbx)
leal (%r14,%r13), %eax
decl %eax
movl %r13d, %r8d
decl %r8d
shlq $0x20, %rax
incq %rax
movq (%rbx), %rdx
movq 0x10(%rbx), %rsi
leaq 0x1(%rdx), %rdi
movq %rdi, (%rbx)
movq %rax, (%rsi,%rdx,8)
decl %ebp
movl %r8d, %r13d
jmp 0xcc93
movq (%r11,%rax,8), %rdx
movl -0x4(%rdx,%rsi,4), %edx
movq -0x8(%r11,%rax,8), %rax
cmpl (%rax,%rsi,4), %edx
jg 0xcd3a
decl %r13d
jmp 0xcc93
decl %ebp
jmp 0xcc93
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]oatk/syncmer.c
// Function: MurmurHash64A
uint64_t MurmurHash64A(const void *key, uint32_t len, uint64_t seed)
{
    const uint64_t m = 0xc6a4a7935bd1e995LLU;
    const int r = 47;

    uint64_t h = seed ^ (len * m);

    const uint64_t *data = (const uint64_t *)key;
    const uint64_t *end = (len >> 3) + data;

    while(data != end) {
        uint64_t k = *data++;

        k *= m;
        k ^= k >> r;
        k *= m;

        h ^= k;
        h *= m;
    }

    const unsigned char *data2 = (const unsigned char *) data;

    switch(len & 7) {
        case 7: h ^= (uint64_t) (data2[6]) << 48;
        case 6: h ^= (uint64_t) (data2[5]) << 40;
        case 5: h ^= (uint64_t) (data2[4]) << 32;
        case 4: h ^= (uint64_t) (data2[3]) << 24;
        case 3: h ^= (uint64_t) (data2[2]) << 16;
        case 2: h ^= (uint64_t) (data2[1]) << 8;
        case 1: h ^= (uint64_t) (data2[0]);
                h *= m;
    };

    h ^= h >> r;
    h *= m;
    h ^= h >> r;

    return h;
}

// Assembly:
movabsq $-0x395b586ca42e166b, %rax # imm = 0xC6A4A7935BD1E995
movl %esi, %r8d
imulq %rax, %r8
xorq %rdx, %r8
cmpl $0x8, %esi
jae 0xcd6e
movq %r8, %rcx
jmp 0xcd9f
movl %esi, %edx
shrl $0x3, %edx
shll $0x3, %edx
movq (%rdi), %r9
imulq %rax, %r9
addq $0x8, %rdi
movq %r9, %rcx
shrq $0x2f, %rcx
xorq %r9, %rcx
imulq %rax, %rcx
xorq %r8, %rcx
imulq %rax, %rcx
movq %rcx, %r8
addq $-0x8, %rdx
jne 0xcd76
andl $0x7, %esi
leaq 0x10fc7(%rip), %rdx     # 0x1dd70
movslq (%rdx,%rsi,4), %rsi
addq %rdx, %rsi
jmpq *%rsi
movzbl 0x6(%rdi), %edx
shlq $0x30, %rdx
xorq %rdx, %rcx
movzbl 0x5(%rdi), %edx
shlq $0x28, %rdx
xorq %rdx, %rcx
movzbl 0x4(%rdi), %edx
shlq $0x20, %rdx
xorq %rdx, %rcx
movzbl 0x3(%rdi), %edx
shll $0x18, %edx
xorq %rdx, %rcx
movzbl 0x2(%rdi), %edx
shll $0x10, %edx
xorq %rdx, %rcx
movzbl 0x1(%rdi), %edx
shll $0x8, %edx
xorq %rdx, %rcx
movzbl (%rdi), %edx
xorq %rcx, %rdx
imulq %rax, %rdx
movq %rdx, %rcx
movq %rcx, %rdx
shrq $0x2f, %rdx
xorq %rcx, %rdx
imulq %rax, %rdx
movq %rdx, %rax
shrq $0x2f, %rax
xorq %rdx, %rax
retq
// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]oatk/syncmer.c
// Function: sr_db_clean
void sr_db_clean(sr_db_t *sr_db)
{
    if (!sr_db) return;
    size_t i;
    for (i = 0; i < sr_db->n; ++i)
        sr_destroy(&sr_db->a[i]);
    kv_destroy(*sr_db);
    free(sr_db->stats);
}

// Assembly:
testq %rdi, %rdi
je 0xd2bc
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpq $0x0, (%rdi)
je 0xd2a5
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x10(%rbx), %rdi
addq %r14, %rdi
callq 0xe702
incq %r15
addq $0x58, %r14
cmpq (%rbx), %r15
jb 0xd28d
movq 0x10(%rbx), %rdi
callq 0x2060
movq 0x20(%rbx), %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x2060
retq
// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]oatk/syncmer.c
// Function: sr_db_init
void sr_db_init(sr_db_t *sr_db, int k, int s)
{
    if (!sr_db) return;
    kv_init(*sr_db);
    sr_db->k = k;
    sr_db->s = s;
    sr_db->stats = 0;
}

// Assembly:
testq %rdi, %rdi
je 0xd2d8
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
xorl %eax, %eax
movq %rax, 0x10(%rdi)
movl %esi, 0x18(%rdi)
movl %edx, 0x1c(%rdi)
movq %rax, 0x20(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]oatk/syncmer.c
// Function: do_analysis
static void do_analysis(p_data_t *dat, pthread_t *threads, int n_threads, sr_db_t *sr_db)
{
    int t;
    for (t = 1; t < n_threads; ++t)
        pthread_create(threads + t, NULL, sr_read_analysis_thread, &dat[t]);

    sr_read_analysis_thread(dat);

    for (t = 1; t < n_threads; ++t)
        pthread_join(threads[t], NULL);

    for (t = 0; t < n_threads; ++t) {
        kv_pushn(sr_t, *sr_db, dat[t].sr_db->a, dat[t].sr_db->n);
        dat[t].n_reads = 0;
        dat[t].sr_db->n = 0;
    }

    return;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %rbx
movq %rsi, 0x10(%rsp)
movq %rdi, %r14
movl %edx, %ebp
movl %edx, 0xc(%rsp)
cmpl $0x2, %edx
jl 0xd32f
leaq 0x30(%r14), %r12
movq 0x10(%rsp), %rax
leaq 0x8(%rax), %r13
leaq -0x1(%rbp), %r15
movq %r13, %rdi
xorl %esi, %esi
leaq 0x3a27(%rip), %rdx      # 0x10d41
movq %r12, %rcx
callq 0x2370
addq $0x30, %r12
addq $0x8, %r13
decq %r15
jne 0xd30e
movq %r14, %rdi
callq 0x10d41
movl 0xc(%rsp), %r12d
cmpl $0x2, %r12d
movq 0x10(%rsp), %r13
jl 0xd361
movl $0x1, %r15d
movq (%r13,%r15,8), %rdi
xorl %esi, %esi
callq 0x24b0
incq %r15
cmpq %r15, %rbp
jne 0xd34d
testl %r12d, %r12d
jle 0xd41a
shlq $0x4, %rbp
leaq (,%rbp,2), %r15
addq %rbp, %r15
xorl %r12d, %r12d
movq 0x28(%r14,%r12), %rax
movq (%rax), %rax
addq (%rbx), %rax
cmpq 0x8(%rbx), %rax
jbe 0xd3d9
decq %rax
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x10, %rcx
orq %rax, %rcx
incq %rcx
movq %rcx, 0x8(%rbx)
movq 0x10(%rbx), %rdi
imulq $0x58, %rcx, %rsi
callq 0x2360
movq %rax, 0x10(%rbx)
imulq $0x58, (%rbx), %rdi
addq 0x10(%rbx), %rdi
movq 0x28(%r14,%r12), %rax
movq 0x10(%rax), %rsi
imulq $0x58, (%rax), %rdx
callq 0x22c0
movq 0x28(%r14,%r12), %rax
movq (%rax), %rcx
addq %rcx, (%rbx)
movl $0x0, (%r14,%r12)
movq $0x0, (%rax)
addq $0x30, %r12
cmpq %r12, %r15
jne 0xd37c
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]oatk/syncmer.c
// Function: kh_ctab_stat
static double kh_ctab_stat(kh_ctab_t *ctab, int *uniq, int *singleton)
{
    khint_t k;
    double sum;
    int s, c, n;
    sum = .0;
    n = c = 0;
    if (kh_size(ctab) == 0)
        goto do_assign;

    for (k = (khint_t) 0; k != kh_end(ctab); ++k) {
        if (kh_exist(ctab, k)) {
            s = kh_key(ctab, k);
            c = kh_val(ctab, k);
            sum += (double) s * c;
            n += c;
        }
    }
    k = kh_ctab_get(ctab, 1);
    if (k < kh_end(ctab))
        c = kh_val(ctab, k);

do_assign:
    if (uniq) *uniq = n;
    if (singleton) *singleton = c;
    
    return sum / n;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
cmpl $0x0, 0x4(%rdi)
je 0xdfa5
movq 0x10(%rdi), %r9
xorl %r10d, %r10d
xorpd %xmm0, %xmm0
xorl %r8d, %r8d
xorl %eax, %eax
movl $0x0, %r11d
testq %r9, %r9
je 0xdf11
movb (%rdi), %cl
movl $0x1, %r11d
shll %cl, %r11d
cmpl %r11d, %r10d
je 0xdf54
movq 0x8(%rdi), %rcx
movl %r10d, %r11d
shrl $0x5, %r11d
movl (%rcx,%r11,4), %ecx
btl %r10d, %ecx
jae 0xdf4f
movl %r10d, %ecx
movl 0x4(%r9,%rcx,8), %r8d
xorps %xmm1, %xmm1
cvtsi2sdl (%r9,%rcx,8), %xmm1
xorps %xmm2, %xmm2
cvtsi2sd %r8d, %xmm2
mulsd %xmm1, %xmm2
addsd %xmm2, %xmm0
addl %r8d, %eax
incl %r10d
jmp 0xdefb
xorl %r10d, %r10d
movl $0x0, %r11d
testq %r9, %r9
je 0xdfb3
movb (%rdi), %cl
movl $0x1, %r11d
shll %cl, %r11d
negb %cl
movl $0x3c9420a0, %ebx       # imm = 0x3C9420A0
shrl %cl, %ebx
leal -0x1(%r11), %ecx
movq 0x8(%rdi), %r14
movl %ebx, %ebp
movl %ebp, %r15d
shrl $0x5, %r15d
movl (%r14,%r15,4), %r15d
btl %ebp, %r15d
jae 0xdfb3
movl %ebp, %r15d
cmpl $0x1, (%r9,%r15,8)
je 0xdfb0
incl %ebp
andl %ecx, %ebp
cmpl %ebx, %ebp
jne 0xdf80
jmp 0xdfb3
xorl %r8d, %r8d
xorpd %xmm0, %xmm0
xorl %eax, %eax
jmp 0xdfd0
movl %ebp, %r11d
testq %r9, %r9
je 0xdfc3
movb (%rdi), %cl
movl $0x1, %r10d
shll %cl, %r10d
cmpl %r10d, %r11d
jae 0xdfd0
movl %r11d, %ecx
movl 0x4(%r9,%rcx,8), %r8d
testq %rsi, %rsi
je 0xdfd7
movl %eax, (%rsi)
testq %rdx, %rdx
je 0xdfdf
movl %r8d, (%rdx)
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
divsd %xmm1, %xmm0
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]oatk/syncmer.c
// Function: syncmer_s_cmpfunc
static int syncmer_s_cmpfunc(const void *a, const void *b)
{
    uint64_t x, y;
    uint64_t s, t;
    x = ((syncmer_t *) a)->s;
    y = ((syncmer_t *) b)->s;
    s = ((syncmer_t *) a)->h;
    t = ((syncmer_t *) b)->h;
    return x == y? ((s > t) - (s < t)) : ((x > y) - (x < y));
}

// Assembly:
movq 0x8(%rsi), %rax
cmpq %rax, 0x8(%rdi)
jne 0xe001
movq (%rdi), %rax
cmpq (%rsi), %rax
seta %al
setb %cl
movzbl %al, %eax
movzbl %cl, %ecx
subl %ecx, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]oatk/syncmer.c
// Function: kh_ctab_cnt
static int64_t *kh_ctab_cnt(kh_ctab_t *ctab, int max_n)
{
    int64_t *cnt;
    int s, c;
    khint_t k;

    MYCALLOC(cnt, max_n + 1);
    for (k = (khint_t) 0; k != kh_end(ctab); ++k) {
        if (kh_exist(ctab, k)) {
            s = kh_key(ctab, k);
            c = kh_val(ctab, k);
            if (s < max_n)
                cnt[s] = c;
            else
                cnt[max_n] += c;
        }
    }

    return cnt;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
leal 0x1(%rbx), %eax
movslq %eax, %rdi
movl $0x8, %esi
callq 0x2250
movq 0x10(%r14), %rdx
movslq %ebx, %rsi
xorl %edi, %edi
movl $0x0, %r8d
testq %rdx, %rdx
je 0xe049
movb (%r14), %cl
movl $0x1, %r8d
shll %cl, %r8d
cmpl %r8d, %edi
je 0xe080
movq 0x8(%r14), %rcx
movl %edi, %r8d
shrl $0x5, %r8d
movl (%rcx,%r8,4), %ecx
btl %edi, %ecx
jae 0xe07c
movl %edi, %r8d
movslq (%rdx,%r8,8), %rcx
movslq 0x4(%rdx,%r8,8), %r8
cmpl %ebx, %ecx
jge 0xe078
movq %r8, (%rax,%rcx,8)
jmp 0xe07c
addq %r8, (%rax,%rsi,8)
incl %edi
jmp 0xe032
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]oatk/syncmer.c
// Function: kh_ctab_print
static void kh_ctab_print(kh_ctab_t *ctab, const char *h, FILE *fo, int more)
{
    khint_t k;
    uint32_t i, n = kh_size(ctab);
    int64_t hist[n];
    int s, c;
    i = 0;
    for (k = (khint_t) 0; k != kh_end(ctab); ++k) {
        if (kh_exist(ctab, k)) {
            s = kh_key(ctab, k);
            c = kh_val(ctab, k);
            hist[i++] = (int64_t) s << 32 | c;
        }
    }

    qsort(hist, n, sizeof(int64_t), int64_cmpfunc);
    hist_plot(hist, n, h, fo);

    if (more > 0) {
        for (i = 0; i < n; ++i)
            fprintf(fo, "[M::%s] [%s CNTS] %ld %d\n", __func__, h, hist[i] >> 32, (int) hist[i]);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %r13d
movq %rdx, %rbx
movq %rsi, %r14
movl 0x4(%rdi), %r15d
movq %rsp, %r12
leaq 0xf(,%r15,8), %rax
andq $-0x10, %rax
subq %rax, %r12
movq %r12, %rsp
movq 0x10(%rdi), %rax
xorl %edx, %edx
xorl %esi, %esi
movl $0x0, %r8d
testq %rax, %rax
je 0xe5e4
movb (%rdi), %cl
movl $0x1, %r8d
shll %cl, %r8d
cmpl %r8d, %esi
je 0xe61b
movq 0x8(%rdi), %rcx
movl %esi, %r8d
shrl $0x5, %r8d
movl (%rcx,%r8,4), %ecx
btl %esi, %ecx
jae 0xe617
movl %esi, %ecx
movslq 0x4(%rax,%rcx,8), %r8
movl (%rax,%rcx,8), %ecx
shlq $0x20, %rcx
orq %r8, %rcx
movl %edx, %r8d
incl %edx
movq %rcx, (%r12,%r8,8)
incl %esi
jmp 0xe5ce
leaq 0x3937(%rip), %rcx      # 0x11f59
movl $0x8, %edx
movq %r12, %rdi
movq %r15, %rsi
callq 0x20d0
movq %r12, %rdi
movl %r15d, %esi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x11f6c
testl %r13d, %r13d
setg %al
testl %r15d, %r15d
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0xe68a
movq %r14, %r13
xorl %r14d, %r14d
movq (%r12,%r14,8), %r9
movq %r9, %r8
sarq $0x20, %r8
movq %rbx, %rdi
leaq 0xfdf3(%rip), %rsi      # 0x1e464
leaq 0xfe06(%rip), %rdx      # 0x1e47e
movq %r13, %rcx
xorl %eax, %eax
callq 0x2290
incq %r14
cmpq %r14, %r15
jne 0xe65c
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]oatk/syncmer.c
// Function: sr_db_validate
int sr_db_validate(sr_db_t *sr_db)
{
    if (sr_db->n > MAX_RD_NUM) {
        fprintf(stderr, "[E::%s] read number exceeds the limit %llu\n", __func__, MAX_RD_NUM);
        return 1;
    }
    size_t i;
    for (i = 0; i < sr_db->n; ++i) {
        sr_t *s = &sr_db->a[i];
        if (s->n > MAX_RD_SCM) {
            fprintf(stderr, "[E::%s] syncmer number (%u) on read exceeds the limit %llu: %s\n", __func__, s->n, MAX_RD_SCM, s->sname);
            return 2;
        }
    }
    return 0;
}

// Assembly:
pushq %rax
movq (%rdi), %rdx
movq %rdx, %rax
shrq $0x20, %rax
jne 0xe6c6
xorl %eax, %eax
testq %rdx, %rdx
je 0xe6c4
movq 0x10(%rdi), %rsi
addq $0x38, %rsi
movl (%rsi), %ecx
testl %ecx, %ecx
js 0xe6d2
addq $0x58, %rsi
decq %rdx
jne 0xe6b5
popq %rcx
retq
callq 0x29aa
movl $0x1, %eax
jmp 0xe6c4
movq 0x15917(%rip), %rax     # 0x23ff0
movq (%rax), %rdi
movq -0x30(%rsi), %r9
leaq 0xfb00(%rip), %rsi      # 0x1e1e7
leaq 0xfaea(%rip), %rdx      # 0x1e1d8
movl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
xorl %eax, %eax
callq 0x2290
movl $0x2, %eax
jmp 0xe6c4
// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]oatk/syncmer.c
// Function: sr_destroy
void sr_destroy(sr_t *sr)
{
    if (!sr) return;
    if (sr->sname) free(sr->sname);
    if (sr->hoco_s) free(sr->hoco_s);
    if (sr->ho_rl) free(sr->ho_rl);
    if (sr->ho_l_rl) free(sr->ho_l_rl);
    if (sr->n_nucl) free(sr->n_nucl);
    if (sr->s_mer) free(sr->s_mer);
    if (sr->k_mer) free(sr->k_mer);
    if (sr->m_pos) free(sr->m_pos);
}

// Assembly:
testq %rdi, %rdi
je 0xe77b
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
je 0xe719
callq 0x2060
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0xe727
callq 0x2060
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0xe735
callq 0x2060
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0xe743
callq 0x2060
movq 0x30(%rbx), %rdi
testq %rdi, %rdi
je 0xe751
callq 0x2060
movq 0x48(%rbx), %rdi
testq %rdi, %rdi
je 0xe75f
callq 0x2060
movq 0x50(%rbx), %rdi
testq %rdi, %rdi
je 0xe76d
callq 0x2060
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
popq %rbx
jne 0x2060
retq
// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]oatk/syncmer.c
// Function: syncmer_db_clean
void syncmer_db_clean(syncmer_db_t *scm_db)
{
    if (!scm_db) return;
    size_t i;
    for (i = 0; i < scm_db->n; ++i)
        free(scm_db->a[i].m_pos);
    kv_destroy(*scm_db);
    free(scm_db->c);
    free(scm_db->h);
}

// Assembly:
testq %rdi, %rdi
je 0xe801
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpq $0x0, (%rdi)
je 0xe7e1
movl $0x18, %r14d
xorl %r15d, %r15d
movq 0x10(%rbx), %rax
movq (%rax,%r14), %rdi
callq 0x2060
incq %r15
addq $0x20, %r14
cmpq (%rbx), %r15
jb 0xe7c8
movq 0x10(%rbx), %rdi
callq 0x2060
movq 0x18(%rbx), %rdi
callq 0x2060
movq 0x20(%rbx), %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x2060
retq
// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]oatk/syncmer.c
// Function: print_aligned_syncmers_on_seq
void print_aligned_syncmers_on_seq(sr_t *sr, int w, uint32_t beg, uint32_t end, FILE *fo)
{
    uint32_t i, j, l, n, p;
    kstring_t s = {0, 0, 0};
    l = sr->hoco_l;
    n = sr->n;
    end = MIN(end, n);
    get_hoco_seq(sr, &s);
    fprintf(fo, "%.*s\n", (int) s.l, s.s);
    for (i = beg; i < end; ++i) {
        p = sr->m_pos[i]>>1;
        if (p == MAX_RD_LEN) continue;
        for (j = 0; j < p; ++j) fputc('*', fo);
        fprintf(fo, "%.*s", w, &s.s[p]);
        for (j = p + w; j < l; ++j) fputc('*', fo);
        fputc('\n', fo);
    }
    free(s.s);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r8, %rbx
movl %ecx, %ebp
movl %edx, %r12d
movl %esi, 0xc(%rsp)
movq %rdi, %r14
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %r15
movaps %xmm0, (%r15)
movq $0x0, 0x10(%r15)
movl 0x10(%rdi), %r13d
movl 0x38(%rdi), %eax
cmpl %ecx, %eax
cmovbl %eax, %ebp
movq %r15, %rsi
callq 0xec53
movl (%r15), %edx
movq 0x10(%r15), %rcx
leaq 0xfe33(%rip), %rsi      # 0x1e9bf
movq %rbx, %rdi
movq %rcx, 0x10(%rsp)
xorl %eax, %eax
callq 0x2290
cmpl %r12d, %ebp
jbe 0xec3b
movl %r12d, %r12d
movl %ebp, %ecx
movq %rcx, 0x18(%rsp)
movq 0x40(%r14), %rax
movl (%rax,%r12,4), %eax
movl %eax, %ebp
shrl %ebp
cmpl $0x7fffffff, %ebp       # imm = 0x7FFFFFFF
je 0xec2f
movq %r14, %r15
cmpl $0x2, %eax
jb 0xebdf
movl %ebp, %r14d
movl $0x2a, %edi
movq %rbx, %rsi
callq 0x2210
decl %r14d
jne 0xebcd
movq 0x10(%rsp), %rax
leaq (%rax,%rbp), %rcx
movq %rbx, %rdi
leaq 0xf662(%rip), %rsi      # 0x1e254
movl 0xc(%rsp), %r14d
movl %r14d, %edx
xorl %eax, %eax
callq 0x2290
addl %r14d, %ebp
cmpl %r13d, %ebp
jae 0xec1a
movl $0x2a, %edi
movq %rbx, %rsi
callq 0x2210
incl %ebp
jmp 0xec04
movl $0xa, %edi
movq %rbx, %rsi
callq 0x2210
movq %r15, %r14
movq 0x18(%rsp), %rcx
incq %r12
cmpq %rcx, %r12
jne 0xebae
movq 0x10(%rsp), %rdi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2060
// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]oatk/syncmer.c
// Function: get_kmer_seq
void get_kmer_seq(uint8_t *hoco_s, uint32_t pos, int l, uint32_t rev, uint8_t *kmer_s)
{
    int i, j;
    uint8_t t;
    uint32_t p;
    for (i = 0; i < l; ++i) {
        p = pos + i;
        kmer_s[i] = (hoco_s[p/4]>>(((p&3)^3)<<1))&3;
    }
    if (rev) {
        for (i = 0, j = l - 1; i < j; ++i, --j) {
            t = kmer_s[i];
            kmer_s[i] = (kmer_s[j]^3)&3;
            kmer_s[j] = (t^3)&3;
        }
        if (i == j) kmer_s[i] = (kmer_s[i]^3)&3;
    }
}

// Assembly:
pushq %rbx
movl %ecx, %eax
testl %edx, %edx
jle 0xedc2
movl %edx, %r9d
movl %esi, %r10d
addl %esi, %esi
xorl %r11d, %r11d
leal (%r10,%r11), %ecx
shrl $0x2, %ecx
movzbl (%rdi,%rcx), %ebx
movl %esi, %ecx
notb %cl
andb $0x6, %cl
shrl %cl, %ebx
andb $0x3, %bl
movb %bl, (%r8,%r11)
incq %r11
addl $0x2, %esi
cmpq %r11, %r9
jne 0xed9c
testl %eax, %eax
je 0xee21
cmpl $0x2, %edx
jl 0xee0a
movl %edx, %ecx
addq $-0x2, %rcx
xorl %eax, %eax
movb (%r8,%rax), %sil
notb %sil
movb 0x1(%r8,%rcx), %dil
notb %dil
andb $0x3, %dil
movb %dil, (%r8,%rax)
andb $0x3, %sil
movb %sil, 0x1(%r8,%rcx)
incq %rax
leaq -0x1(%rcx), %rsi
cmpq %rcx, %rax
movq %rsi, %rcx
jl 0xedd3
movl %eax, %ecx
notl %ecx
addl %ecx, %edx
jmp 0xee0e
decl %edx
xorl %eax, %eax
cmpl %edx, %eax
jne 0xee21
movl %eax, %eax
movb (%r8,%rax), %cl
notb %cl
andb $0x3, %cl
movb %cl, (%r8,%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]oatk/syncmer.c
// Function: get_kmer_dna_seq
void get_kmer_dna_seq(uint8_t *hoco_s, uint32_t pos, int l, uint32_t rev, char *dna_seq)
{
    int i, j;
    uint32_t p;
    for (i = 0; i < l; ++i) {
        p = pos + i;
        dna_seq[i] = char_nt4_table[(hoco_s[p/4]>>(((p&3)^3)<<1))&3];
    }
    if (rev) {
        char t;
        for (i = 0, j = l - 1; i < j; ++i, --j) {
            t = dna_seq[i];
            dna_seq[i] = seq_nt4_comp_table[(int) dna_seq[j]];
            dna_seq[j] = seq_nt4_comp_table[(int) t];
        }
        if (i == j) dna_seq[i] = seq_nt4_comp_table[(int) dna_seq[j]];
    }
}

// Assembly:
pushq %r14
pushq %rbx
movl %ecx, %eax
testl %edx, %edx
jle 0xee6b
movl %edx, %r9d
movl %esi, %r10d
addl %esi, %esi
xorl %r11d, %r11d
leaq 0xf0d2(%rip), %rbx      # 0x1df10
leal (%r10,%r11), %ecx
shrl $0x2, %ecx
movzbl (%rdi,%rcx), %r14d
movl %esi, %ecx
notb %cl
andb $0x6, %cl
shrl %cl, %r14d
andl $0x3, %r14d
movb (%r14,%rbx), %cl
movb %cl, (%r8,%r11)
incq %r11
addl $0x2, %esi
cmpq %r11, %r9
jne 0xee3e
testl %eax, %eax
je 0xeed6
cmpl $0x2, %edx
jl 0xeeb6
movl %edx, %ecx
addq $-0x2, %rcx
xorl %eax, %eax
leaq 0xf00d(%rip), %rsi      # 0x1de90
movsbq (%r8,%rax), %rdi
movsbq 0x1(%r8,%rcx), %r9
movb (%r9,%rsi), %r9b
movb %r9b, (%r8,%rax)
movb (%rdi,%rsi), %dil
movb %dil, 0x1(%r8,%rcx)
incq %rax
leaq -0x1(%rcx), %rdi
cmpq %rcx, %rax
movq %rdi, %rcx
jl 0xee83
movl %eax, %ecx
notl %ecx
addl %ecx, %edx
jmp 0xeeba
decl %edx
xorl %eax, %eax
cmpl %edx, %eax
jne 0xeed6
movslq %edx, %rcx
movsbq (%r8,%rcx), %rcx
leaq 0xefc3(%rip), %rdx      # 0x1de90
movb (%rcx,%rdx), %cl
movl %eax, %eax
movb %cl, (%r8,%rax)
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]oatk/levdist.c
// Function: wf_tb_destroy
void wf_tb_destroy(wf_tb_t *wf_tb)
{
    if (wf_tb) {
        size_t i;
        for (i = 0; i < wf_tb->n; ++i)
            free(wf_tb->a[i].a);
        free(wf_tb->a);
    }
    free(wf_tb);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
testq %rdi, %rdi
je 0x13920
cmpq $0x0, 0x8(%rbx)
je 0x13917
movl $0x8, %r14d
xorl %r15d, %r15d
movq 0x10(%rbx), %rax
movq (%rax,%r14), %rdi
callq 0x2060
incq %r15
addq $0x10, %r14
cmpq 0x8(%rbx), %r15
jb 0x138fd
movq 0x10(%rbx), %rdi
callq 0x2060
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x2060
// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]oatk/levdist.c
// Function: wf_config_destroy
void wf_config_destroy(wf_config_t *conf, int clean_seq)
{
    if (clean_seq) {
        free(conf->ts);
        free(conf->qs);
    }
    if (conf->wf_diag) {
        free(conf->wf_diag->a);
        free(conf->wf_diag);
    }
    wf_tb_destroy(conf->wf_tb);
    free(conf->cigar);
    free(conf);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
testl %esi, %esi
je 0x13946
movq (%rbx), %rdi
callq 0x2060
movq 0x8(%rbx), %rdi
callq 0x2060
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0x13961
movq 0x10(%rax), %rdi
callq 0x2060
movq 0x18(%rbx), %rdi
callq 0x2060
movq 0x20(%rbx), %rdi
callq 0x138e0
movq 0x40(%rbx), %rdi
callq 0x2060
movq %rbx, %rdi
popq %rbx
jmp 0x2060
// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]oatk/levdist.c
// Function: wf_ed_core
void wf_ed_core(wf_config_t *conf)
{
    char *ts, *qs;
    int32_t s, n, tl, ql, t_end, q_end, is_ext, bw;
    wf_diag1_t *a;
    wf_tb_t *tb;

    ts = conf->ts;
    qs = conf->qs;
    tl = conf->tl;
    ql = conf->ql;
    t_end = conf->t_end;
    q_end = conf->q_end;

    s = conf->score;
    n = conf->wf_diag->n;
    if (conf->wf_diag->m < 2 * (tl + ql + 2)) {
        conf->wf_diag->m = 2 * (tl + ql + 2);
        MYREALLOC(conf->wf_diag->a, conf->wf_diag->m);
    }
    a = conf->wf_diag->a;
    n = conf->wf_diag->n;
    tb = conf->wf_tb;
    
    is_ext = conf->is_ext;
    bw = conf->bw;

    int na = n;
    while (1) {
        na = wf_step_basic(tb, is_ext, bw, tl, ts, ql, qs, n, a, &t_end, &q_end);
        if (na < 0) break;
        ++s;
        n = na;
        if (bw >= 0 && s > bw) break;
    }
    
    if (tb) {
        free(conf->cigar);
        conf->cigar = wf_traceback(t_end, ts, q_end, qs, tb, &conf->n_cigar);
    }
    conf->t_end = t_end + 1;
    conf->q_end = q_end + 1;
    conf->score = s;
    conf->wf_diag->a = a;
    conf->wf_diag->n = n;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
movq (%rdi), %rax
movq %rax, 0x18(%rsp)
movq 0x8(%rdi), %rax
movq %rax, 0x20(%rsp)
movl 0x10(%rdi), %ecx
movl 0x14(%rdi), %edx
movl 0x34(%rdi), %eax
movl %eax, 0x10(%rsp)
movl 0x38(%rdi), %eax
movl %eax, 0xc(%rsp)
movl 0x30(%rdi), %r12d
movq 0x18(%rdi), %rax
movq %rcx, 0x40(%rsp)
movq %rdx, 0x38(%rsp)
addl %edx, %ecx
leal 0x4(,%rcx,2), %ecx
movslq %ecx, %rcx
cmpq %rcx, 0x8(%rax)
jae 0x139f3
movq %rcx, 0x8(%rax)
movq 0x10(%rax), %rdi
shlq $0x2, %rcx
leaq (%rcx,%rcx,2), %rsi
callq 0x2360
movq 0x18(%rbx), %rcx
movq %rax, 0x10(%rcx)
movq 0x18(%rbx), %rax
movq 0x20(%rbx), %rdi
movq 0x10(%rax), %rcx
movq %rcx, 0x28(%rsp)
movl (%rax), %ebp
movl 0x28(%rbx), %eax
movl %eax, 0x14(%rsp)
movq %rbx, 0x30(%rsp)
movl 0x2c(%rbx), %r15d
subq $0x8, %rsp
movq %rdi, %r14
movl 0x1c(%rsp), %esi
movl %r15d, %edx
movq 0x48(%rsp), %rcx
movq 0x20(%rsp), %r8
movq 0x40(%rsp), %r9
leaq 0x14(%rsp), %rax
pushq %rax
leaq 0x20(%rsp), %rax
pushq %rax
pushq 0x40(%rsp)
pushq %rbp
pushq 0x48(%rsp)
callq 0x13af0
addq $0x30, %rsp
testl %eax, %eax
js 0x13a76
movl %eax, %ebx
testl %r15d, %r15d
sets %al
leal 0x1(%r12), %r13d
cmpl %r15d, %r12d
setl %cl
orb %al, %cl
movl %ebx, %ebp
movl %r13d, %r12d
movq %r14, %rdi
jne 0x13a16
jmp 0x13a7e
movl %ebp, %ebx
movl %r12d, %r13d
movq %r14, %rdi
testq %rdi, %rdi
movq 0x30(%rsp), %r14
je 0x13ab6
movq %rdi, %r15
movq 0x40(%r14), %rdi
callq 0x2060
movl 0x10(%rsp), %edi
movl 0xc(%rsp), %edx
leaq 0x3c(%r14), %r9
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rcx
movq %r15, %r8
callq 0x14010
movq %rax, 0x40(%r14)
movl 0x10(%rsp), %eax
incl %eax
movl %eax, 0x34(%r14)
movl 0xc(%rsp), %eax
incl %eax
movl %eax, 0x38(%r14)
movl %r13d, 0x30(%r14)
movq 0x18(%r14), %rax
movq 0x28(%rsp), %rcx
movq %rcx, 0x10(%rax)
movslq %ebx, %rcx
movq %rcx, (%rax)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]oatk/levdist.c
// Function: wf_ed
uint32_t *wf_ed(int32_t tl, const char *ts, int32_t ql, const char *qs, int32_t is_ext, int32_t bw, int32_t *score, int32_t *t_endl, int32_t *q_endl, int32_t *n_cigar)
{
    int32_t s = 0, n = 1, t_end = -1, q_end = -1, i;
    wf_diag1_t *a;
    uint32_t *cigar = 0;
    wf_tb_t tb = {0, 0, 0};
    assert(tl > 0 && ql > 0);
    MYMALLOC(a, 2 * (tl + ql + 2)); // without CIGAR, this would be all the memory needed
    a[0].d = 0, a[0].k = -1;
    while (1) {
        n = wf_step_basic(n_cigar? &tb : 0, is_ext, bw, tl, ts, ql, qs, n, a, &t_end, &q_end);
        if (n < 0) break;
        ++s;
    }
    free(a);
    if (n_cigar) { // generate CIGAR
        cigar = wf_traceback(t_end, ts, q_end, qs, &tb, n_cigar);
        for (i = 0; i < tb.n; ++i) free(tb.a[i].a);
        free(tb.a);
    }
    *score = s, *t_endl = t_end + 1, *q_endl = q_end + 1;
    return cigar;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %r9d, 0x14(%rsp)
movl %r8d, 0x10(%rsp)
movq %rcx, 0x20(%rsp)
movq %rdx, 0x8(%rsp)
movq %rsi, 0x18(%rsp)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, 0x4(%rsp)
movl %eax, (%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movq $0x0, 0x40(%rsp)
testl %edi, %edi
jle 0x14383
cmpl $0x0, 0x8(%rsp)
jle 0x14383
movl %edi, %ecx
movq 0xa8(%rsp), %rbx
movq 0x8(%rsp), %rax
addl %ecx, %eax
leal 0x4(,%rax,2), %eax
shlq $0x2, %rax
leaq (%rax,%rax,2), %rdi
movq %rcx, 0x50(%rsp)
callq 0x2320
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
movq %rax, 0x28(%rsp)
movq %rcx, (%rax)
testq %rbx, %rbx
leaq 0x30(%rsp), %r14
cmoveq %rbx, %r14
movl $0x1, %eax
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq 0x20(%rsp), %r15
movq 0x18(%rsp), %r13
movl 0x14(%rsp), %r12d
movl 0x10(%rsp), %ebx
subq $0x8, %rsp
movq %r14, %rdi
movl %ebx, %esi
movl %r12d, %edx
movq 0x58(%rsp), %rcx
movq %r13, %r8
movq 0x10(%rsp), %r9
leaq 0x8(%rsp), %r10
pushq %r10
leaq 0x14(%rsp), %r10
pushq %r10
pushq 0x40(%rsp)
pushq %rax
pushq %r15
callq 0x13af0
addq $0x30, %rsp
incl %ebp
testl %eax, %eax
jns 0x14299
movq 0x28(%rsp), %rdi
callq 0x2060
movq 0xa8(%rsp), %r9
testq %r9, %r9
je 0x14346
movl 0x4(%rsp), %edi
movl (%rsp), %edx
leaq 0x30(%rsp), %r14
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rcx
movq %r14, %r8
callq 0x14010
movq %rax, %rbx
cmpq $0x0, 0x8(%r14)
je 0x1433a
movl $0x8, %r14d
xorl %r15d, %r15d
movq 0x40(%rsp), %rax
movq (%rax,%r14), %rdi
callq 0x2060
incq %r15
addq $0x10, %r14
cmpq %r15, 0x38(%rsp)
ja 0x1431e
movq 0x40(%rsp), %rdi
callq 0x2060
jmp 0x14348
xorl %ebx, %ebx
movq 0x90(%rsp), %rax
movl %ebp, (%rax)
movl 0x4(%rsp), %eax
incl %eax
movq 0x98(%rsp), %rcx
movl %eax, (%rcx)
movl (%rsp), %eax
incl %eax
movq 0xa0(%rsp), %rcx
movl %eax, (%rcx)
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa63b(%rip), %rdi      # 0x1e9c5
leaq 0xa645(%rip), %rsi      # 0x1e9d6
leaq 0xa648(%rip), %rcx      # 0x1e9e0
movl $0x13e, %edx            # imm = 0x13E
callq 0x21d0
// File: /workspace/github_c_makefile_star2_O1/c-zhou[P]oatk/levdist.c
// Function: wf_print_cigar
void wf_print_cigar(uint32_t *cigar, int32_t n_cigar, FILE *fo)
{
    if (!cigar || !n_cigar)
        return;

    int32_t i;
    fprintf(fo, "CIGAR_STR [%d]: ", n_cigar);
    for (i = 0; i < n_cigar; ++i) {
        fprintf(fo, "%d%c", cigar[i]>>4, "MIDNSHP=XB"[cigar[i]&0xf]);
    }
    fputc('\n', fo);
}

// Assembly:
testq %rdi, %rdi
sete %al
testl %esi, %esi
sete %cl
orb %al, %cl
jne 0x1442f
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
leaq 0xa691(%rip), %rsi      # 0x1ea5c
movq %rdx, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0x2290
testl %ebp, %ebp
jle 0x14414
movl %ebp, %r12d
leaq 0xa68d(%rip), %r13      # 0x1ea72
leaq 0xa681(%rip), %r15      # 0x1ea6d
xorl %ebp, %ebp
movl (%r14,%rbp,4), %eax
movl %eax, %edx
shrl $0x4, %edx
andl $0xf, %eax
movsbl (%rax,%r13), %ecx
movq %rbx, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x2290
incq %rbp
cmpq %rbp, %r12
jne 0x143ee
movl $0xa, %edi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2210
retq