// File: /workspace/github_c_makefile_star2_O3/c-zhou[P]oatk/syncerr.c
// Function: read_error_correction_analysis_thread
static void read_error_correction_analysis_thread(void *_data, long i, int tid) // kt_for() callback
{
    ec_shared_t *shared = (ec_shared_t *) _data;
    sr_t *sr;
    asmg_t *asmg;
    syncmer_t *scms;
    uint32_t *m_pos, beg_pos, end_pos;
    uint64_t *k_mer, beg_utg, end_utg;
    int32_t j, l, r, n, n_scm, kmer_size, beg, end;
    int updated;
    double max_edist;
    long *stats;
    FILE *fo;
    wf_config_t *conf;
    dfs_info_t *dfs;
    kstring_t *seq, *c_seq;
    kvec64_t *c_kmer;
    kvec32_t *c_mpos;

    asmg = shared->g->utg_asmg;
    scms = shared->g->scm_db->a;
    kmer_size = shared->sr_db->k;
    sr = &shared->sr_db->a[i];
    k_mer = sr->k_mer;
    m_pos = sr->m_pos;
    n_scm = sr->n;
    max_edist = shared->max_edist;
    fo = shared->fo;
    stats = shared->cache[tid].stats;
    conf = shared->cache[tid].conf;
    dfs = shared->cache[tid].dfs;
    seq = shared->cache[tid].seq;
    c_seq = shared->cache[tid].c_seq;
    c_kmer = shared->cache[tid].c_kmer;
    c_mpos = shared->cache[tid].c_mpos;

#ifdef DEBUG_SYNCMER_CORRECTION
    // read information for debugging
    fprintf(stderr, "[DEBUG_SYNCMER_CORRECTION::%s] %lu %s %u %u:", __func__, 
            sr->sid, sr->sname, sr->hoco_l, sr->n);
    for (j = 0; j < n_scm; ++j) {
        if (j > 0) { // print arc coverage
            fprintf(stderr, " [%u]", asmg_arc(asmg, 
                        (k_mer[j-1]&MASK_ONE) | (m_pos[j-1]&1),
                        (k_mer[j]&MASK_ONE) | (m_pos[j]&1))->cov);
        }
        fprintf(stderr, " (%d u%lu%c %u)", j, k_mer[j]>>1, "+-"[m_pos[j]&1], scms[k_mer[j]>>1].cov);
    }
    fputc('\n', stderr);
    // position of syncmers on read
    fprintf(stderr, "[DEBUG_SYNCMER_CORRECTION::%s] %lu %s %u %u:", __func__,
            sr->sid, sr->sname, sr->hoco_l, sr->n);
    for (j = 0; j < n_scm; ++j) fprintf(stderr, " %u", m_pos[j]>>1);
    fputc('\n', stderr);
#endif

    // find error syncmer blocks and do correction
    int err_c1;
    // reset preallocated sequence and path for corrections
    c_seq->l = 0;
    c_kmer->n = 0;
    c_mpos->n = 0;
    updated = 1;
#ifdef DEBUG_SYNCMER_CORRECTION
    int err_block = 0, edist = 0;
#endif
    beg = -1; // beg is a bad syncmer
    while (1) {
        beg_pos = beg < 1? 0 : ((m_pos[beg - 1] >> 1) + kmer_size);
        beg_pos += MIN_ERR_SEQ_LEN;

        // find the rigth boundary - end is a good syncmer
        // the distance between beg and end syncmer is no less than MIN_ERR_SEQ_LEN
        // with this restriction a good syncmer could be included for error correction
        for (end = beg + 1; end < n_scm; ++end)
            if (!scms[k_mer[end]>>1].del && !(k_mer[end]&1) && (m_pos[end] >> 1) >= beg_pos) // good syncmer
                break;

#ifdef DEBUG_SYNCMER_CORRECTION
        fprintf(stderr, "[DEBUG_SYNCMER_CORRECTION::%s] RID %lu ERROR BLOCK %d: %d %d\n", __func__, sr->sid, ++err_block, beg, end);
#endif

        // do error correction for reads with at least one syncmer anchor
        if (beg >= 0 || end < n_scm) {
            // do graph search for error correction
            // with restrictions in distance and source and sink utg nodes
            // here assembly utgs are syncmer singletons, i.e., utg_id is scm_id
            // always guarantee the source utg exist
            if (beg < 0) {
                // no left boundary
                // start from end instead
                // also do reverse complementary
                beg = end; // now beg is a good syncmer
                beg_utg = (k_mer[beg]&MASK_ONE) | (!(m_pos[beg]&1));
                beg_pos = 0;
                end_utg = UINT64_MAX;
                l = m_pos[beg] >> 1;
                r = 1;
            } else {
                // beg >= 0
                // in fact beg > 0
                --beg; // now beg is a good syncmer
                beg_utg = (k_mer[beg]&MASK_ONE) | (m_pos[beg]&1);
                // beg is a correct syncmer
                // start from the next base after this sycnmer
                beg_pos = (m_pos[beg]>>1) + kmer_size;
                if (end >= n_scm) {
                    // no right boundary
                    end_utg = UINT64_MAX;
                    l = (int) sr->hoco_l - beg_pos;
                } else {
                    // bounded by correct syncmer
                    end_utg = (k_mer[end]&MASK_ONE) | (m_pos[end]&1);
                    l = (int) (m_pos[end]>>1) - beg_pos;
                }
                r = 0;
            }
            
            // the error sequence to correct
            assert(l >= 0);
            ks_resize(seq, l);
            get_kmer_dna_seq(sr->hoco_s, beg_pos, l, r, seq->s);
            seq->l = l;
            if (l >= MIN_ERR_SEQ_LEN) {
                // do error correction
                // edit distance configuration
                conf->ts = seq->s;
                conf->tl = seq->l;
                conf->score = 0;
                conf->qs = 0;
                conf->ql = 0;
                conf->is_ext = 1;
                conf->bw = ceil(l * max_edist);
                // TODO is this good?
                if (conf->bw < MIN_ERR_BASE)
                    conf->bw = MIN_ERR_BASE;
                if (!conf->wf_diag)
                    MYCALLOC(conf->wf_diag, 1);
                if (conf->wf_diag->m < l * 4) {
                    conf->wf_diag->m = l * 4;
                    MYREALLOC(conf->wf_diag->a, l * 4);
                }
                conf->wf_diag->n = 1;
                conf->wf_diag->a[0].d =  0;
                conf->wf_diag->a[0].k = -1;

                err_c1 = error_correction_by_graph_path_search(asmg, scms, beg_utg, end_utg, conf, dfs);

#ifdef DEBUG_SYNCMER_CORRECTION
                fprintf(stderr, "[DEBUG_SYNCMER_CORRECTION::%s] RID %lu ERROR BLOCK %d [%s] (PATH = %d): %u %d (u%lu%c u%lu%c) %.*s\n",
                        __func__, sr->sid, err_block, EC_STATUS[err_c1], dfs->n_path, 
                        beg_pos, l, beg_utg>>1, "+-"[beg_utg&1], end_utg>>1, "+-"[end_utg&1], l, seq->s);
#endif
                if (err_c1)
                    assert(beg_utg == dfs->opt_path.a[0] && (end_utg == UINT64_MAX || end_utg == dfs->opt_path.a[dfs->opt_path.n-1]));

                if (end_utg == UINT64_MAX) {
                    ++stats[0];
                    ++stats[1 + err_c1];
                } else {
                    ++stats[5];
                    ++stats[6 + err_c1];
                }
            } else {
                err_c1 = EC_FAILURE;
                ++stats[10];
#ifdef DEBUG_SYNCMER_CORRECTION
                fprintf(stderr, "[DEBUG_SYNCMER_CORRECTION::WARN::%s] RID %lu ERROR BLOCK %d FLANKING SYNCMER OVERLAPPED: %u %d (%lu%c %lu%c)\n",
                        __func__, sr->sid, err_block, beg_pos, l, beg_utg>>1, "+-"[beg_utg&1], end_utg>>1, "+-"[end_utg&1]);
                print_aligned_syncmers_on_seq(sr, kmer_size, 0, UINT32_MAX, stderr);
#endif
            }

            // update c_path
            if (err_c1 == EC_SUCCESS) {
                n = dfs->opt_path.n; // n > 0
                // append the corrected syncmer list
                if (r) {
                    // end_utg == UINT64_MAX
                    for (j = n - 1; j > 0; --j) {
                        kv_push(uint64_t, *c_kmer, (dfs->opt_path.a[j]&MASK_ONE) | 1);
                        kv_push(uint32_t, *c_mpos, UINT32_MAX ^ (dfs->opt_path.a[j]&1));
                    }
                } else {
                    for (j = 1; j < n - 1; ++j) {
                        kv_push(uint64_t, *c_kmer, (dfs->opt_path.a[j]&MASK_ONE) | 1);
                        kv_push(uint32_t, *c_mpos, MASK_ONE | (dfs->opt_path.a[j]&1));
                    }
                    if (end_utg == UINT64_MAX && n > 1) {
                        // j == n-1
                        kv_push(uint64_t, *c_kmer, (dfs->opt_path.a[j]&MASK_ONE) | 1);
                        kv_push(uint32_t, *c_mpos, MASK_ONE | (dfs->opt_path.a[j]&1));
                    }
                }
            } else {
                // append the original sycnmer list
                if (r) {
                    kv_pushn(uint64_t, *c_kmer, k_mer, beg);
                    kv_pushn(uint32_t, *c_mpos, m_pos, beg);
                } else if (beg + 1 < n_scm) {
                    kv_pushn(uint64_t, *c_kmer, &k_mer[beg + 1], end - beg - 1);
                    kv_pushn(uint32_t, *c_mpos, &m_pos[beg + 1], end - beg - 1);
                }
            }
            // update c_seq if necessary
            if (fo) {
                if (err_c1 == EC_SUCCESS || err_c1 == EC_AMBISNQ) {
                    // append the corrected sequence
                    if (r)
                        kputsn_rev(dfs->opt_seq.s, dfs->opt_seq.l, c_seq);
                    else
                        kputsn(dfs->opt_seq.s, dfs->opt_seq.l, c_seq);
                } else {
                    // append the original sequence
                    if (r)
                        kputsn_rev(seq->s, seq->l, c_seq);
                    else
                        kputsn(seq->s, seq->l, c_seq);
                }
            }

#ifdef DEBUG_SYNCMER_CORRECTION
            if (err_c1 == EC_SUCCESS || err_c1 == EC_AMBISNQ)
                edist += dfs->edist;
#endif
        } else {
            // no good syncmers on the read
#ifdef DEBUG_SYNCMER_CORRECTION
            pthread_mutex_lock(&mutex);
            fprintf(stderr, "[DEBUG_SYNCMER_CORRECTION::%s] %s RID %lu no correct syncmers L=%u N=%u:", __func__, sr->sname, sr->sid, sr->hoco_l, sr->n);
            for (j = 0; j < n_scm; ++j) fprintf(stderr, " %u", scms[k_mer[j]>>1].cov);
            fputc('\n', stderr);
            pthread_mutex_unlock(&mutex);
#endif
            updated = 0;
        }

        // end is always a good syncmer
        // find next bad syncmer as beg
        for (beg = end + 1; beg < n_scm; ++beg)
            if (scms[k_mer[beg]>>1].del || (k_mer[end]&1))
                // bad syncmer
                break;
        
        if (beg > n_scm) break;

        // append kmer and mpos between [end, beg-1]
        kv_pushn(uint64_t, *c_kmer, &k_mer[end], beg - end);
        kv_pushn(uint32_t, *c_mpos, &m_pos[end], beg - end);

        // append sequence between [end, beg-1]
        if (fo) {
            beg_pos = m_pos[end] >> 1;
            end_pos = m_pos[beg-1] >> 1;
            l = end_pos + kmer_size - beg_pos;
            ks_resize(c_seq, c_seq->l + l);
            get_kmer_dna_seq(sr->hoco_s, beg_pos, l, 0, &c_seq->s[c_seq->l]);
            c_seq->l += l;
        }
    }
    
    if (updated) {
        // here is to update syncmer seq for the read
        // TODO need to consider data consistency
        size_t s, n_c = c_kmer->n;
        MYREALLOC(sr->k_mer, n_c);
        memcpy(sr->k_mer, c_kmer->a, sizeof(uint64_t) * n_c);
        MYREALLOC(sr->m_pos, n_c);
        memcpy(sr->m_pos, c_mpos->a, sizeof(uint32_t) * n_c);
        MYREALLOC(sr->s_mer, n_c);
        for (s = 0; s < n_c; ++s)
            sr->s_mer[s] = scms[sr->k_mer[s]>>1].s;
        sr->n = n_c;
    }

    if (fo) {
        if (!updated) {
            l = sr->hoco_l;
            ks_resize(c_seq, l);
            get_kmer_dna_seq(sr->hoco_s, 0, l, 0, c_seq->s);
            c_seq->l = l;
        }
        pthread_mutex_lock(&mutex);
        fprintf(fo, ">%s\n%.*s\n", sr->sname, (int) c_seq->l, c_seq->s);
        pthread_mutex_unlock(&mutex);
    }

#ifdef DEBUG_SYNCMER_CORRECTION
    // read information for debugging
    fprintf(stderr, "[DEBUG_SYNCMER_CORRECTION::%s] ERROR CORRECTION RESULT - %lu %s %u %u:", __func__,
            sr->sid, sr->sname, sr->hoco_l, sr->n);
    n_scm = sr->n;
    k_mer = sr->k_mer;
    m_pos = sr->m_pos;
    for (j = 0; j < n_scm; ++j) {
        if (j > 0) { // print arc coverage
            fprintf(stderr, " [%u]", asmg_arc(asmg,
                        (k_mer[j-1]&MASK_ONE) | (m_pos[j-1]&1),
                        (k_mer[j]&MASK_ONE) | (m_pos[j]&1))->cov);
        }
        fprintf(stderr, " (%d u%lu%c %u)", j, k_mer[j]>>1, "+-"[m_pos[j]&1], scms[k_mer[j]>>1].cov);
    }
    fputc('\n', stderr);
    // position of syncmers on read
    fprintf(stderr, "[DEBUG_SYNCMER_CORRECTION::%s] ERROR CORRECTION RESULT - %lu %s %u %u:", __func__,
            sr->sid, sr->sname, sr->hoco_l, sr->n);
    for (j = 0; j < n_scm; ++j) fprintf(stderr, " %u", m_pos[j]>>1);
    fputc('\n', stderr);

    if (fo) {
        int score = 0, t_end = 0, q_end = 0, n_cigar = 0;
        l = sr->hoco_l;
        ks_resize(seq, l);
        get_kmer_dna_seq(sr->hoco_s, 0, l, 0, seq->s);
        seq->l = l;
        uint32_t *cigar = wf_ed(seq->l, seq->s, c_seq->l, c_seq->s, 1, -1, &score, &t_end, &q_end, &n_cigar);
        fprintf(stderr, "[DEBUG_SYNCMER_CORRECTION::%s] ERROR CORRECTION RESULT - ", __func__);
        wf_print_cigar(cigar, n_cigar, stderr);
        fprintf(stderr, "[DEBUG_SYNCMER_CORRECTION::%s] ED_ALIGNMENT: ED=%d BW=%d tL=%d t_EN=%d qL=%d q_EN=%d\n",
                __func__, score, -1, (int) seq->l, t_end, (int) c_seq->l, q_end);
        wf_print_alignment(seq->s, seq->l, c_seq->s, c_seq->l, cigar, n_cigar, 0, stderr);
        free(cigar);
        if (score != edist)
            fprintf(stderr, "[DEBUG_SYNCMER_CORRECTION::WARN::%s] RID %lu INCONSISTENT ERROR CORRECTION RESULT - EC=%d, EDIST=%d\n", 
                    __func__, sr->sid, score, edist);
    }
#endif

    return;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq (%rdi), %rax
movq 0x8(%rdi), %rcx
movq (%rcx), %r8
movq 0x8(%rcx), %rcx
movq %rcx, 0xd0(%rsp)
movq 0x10(%r8), %rcx
movq %rcx, 0xa0(%rsp)
movl 0x18(%rax), %r8d
movq 0x10(%rax), %rax
imulq $0x58, %rsi, %rcx
leaq (%rax,%rcx), %rsi
movq %rsi, 0x58(%rsp)
movq 0x50(%rax,%rcx), %rsi
movq %rsi, 0x18(%rsp)
movq 0x40(%rax,%rcx), %r9
movl 0x38(%rax,%rcx), %r12d
movsd 0x10(%rdi), %xmm0
movsd %xmm0, 0xc8(%rsp)
movq 0x20(%rdi), %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rdi), %rax
movslq %edx, %rcx
movq %rcx, %rdx
shlq $0x7, %rdx
leaq (%rdx,%rcx,8), %rcx
leaq (%rax,%rcx), %rdx
movq %rdx, 0xc0(%rsp)
leaq (%rax,%rcx), %rdx
addq $0x30, %rdx
movq -0x30(%rdx), %rsi
movq %rsi, 0xb8(%rsp)
leaq 0x60(%rax,%rcx), %rsi
movq %rsi, 0xb0(%rsp)
leaq 0x38(%rax,%rcx), %rsi
movq %rsi, 0x78(%rsp)
leaq 0x58(%rax,%rcx), %rax
movq %rax, 0xa8(%rsp)
movq -0x28(%rdx), %rax
movq %rax, 0x88(%rsp)
movq -0x8(%rdx), %rax
movq %rax, 0x50(%rsp)
movq -0x20(%rdx), %r13
movq -0x18(%rdx), %rcx
movq %rdx, 0x80(%rsp)
movq -0x10(%rdx), %rax
xorl %edx, %edx
movq %rdx, (%r13)
movq %rcx, 0x48(%rsp)
movq %rdx, (%rcx)
movq %rax, 0x30(%rsp)
movq %rdx, (%rax)
movq %r8, 0x90(%rsp)
leal 0xa(%r8), %eax
movl %eax, 0x70(%rsp)
movslq %r12d, %rbp
leal -0x1(%rbp), %eax
movl %eax, 0x6c(%rsp)
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
movl $0x1, %esi
movq %r13, 0x60(%rsp)
movq %r9, 0x28(%rsp)
movl %r12d, 0x4(%rsp)
movq %rbp, 0x98(%rsp)
movl %r15d, %eax
testl %r15d, %r15d
jle 0x134b1
movl -0x4(%r9,%rax,4), %edx
shrl %edx
addl 0x70(%rsp), %edx
jmp 0x134b6
movl $0xa, %edx
movq 0x18(%rsp), %r8
leal 0x1(%r15), %edi
movl $0x0, (%rsp)
cmpl %r12d, %edi
movl %esi, 0x24(%rsp)
jge 0x1355c
movslq %edi, %rdi
movq %rdi, %rsi
shlq $0x20, %rsi
leaq (%r8,%rdi,8), %r8
leaq (%r9,%rdi,4), %r9
movq %rbp, %r10
subq %rdi, %r10
movb $0x1, %cl
xorl %r11d, %r11d
movq (%r8,%r11,8), %rbx
movq %rbx, %r14
shlq $0x4, %r14
andq $-0x20, %r14
movq 0xa0(%rsp), %r12
cmpl $0x0, 0x10(%r12,%r14)
js 0x13522
andl $0x1, %ebx
jne 0x13522
movl (%r9,%r11,4), %ebx
shrl %ebx
cmpl %edx, %ebx
jae 0x13792
leaq (%r11,%rdi), %rcx
incq %rcx
cmpq %rbp, %rcx
setl %cl
movabsq $0x100000000, %rbx      # imm = 0x100000000
addq %rbx, %rsi
incq %r11
cmpq %r11, %r10
jne 0x134f0
movl 0x6c(%rsp), %eax
movl 0x4(%rsp), %r12d
movl %r12d, %edi
movq 0x18(%rsp), %r8
movq 0x28(%rsp), %r9
jmp 0x13561
movl %r15d, %eax
xorl %ecx, %ecx
testl %r15d, %r15d
js 0x13f36
movq %rax, 0x10(%rsp)
testb $0x1, %cl
movq %rdi, 0x40(%rsp)
je 0x13596
movslq %edi, %rax
movq (%r8,%rax,8), %rcx
andq $-0x2, %rcx
movl (%r9,%rax,4), %r14d
movl %r14d, %edx
andl $0x1, %edx
orq %rcx, %rdx
shrl %r14d
jmp 0x135a6
movq 0x58(%rsp), %rax
movl 0x10(%rax), %r14d
movq $-0x1, %rdx
movslq %r15d, %rax
movl -0x4(%r9,%rax,4), %r13d
movl %r13d, %r12d
shrl %r12d
addl 0x90(%rsp), %r12d
subl %r12d, %r14d
js 0x14361
movq %rdx, 0x38(%rsp)
decl %r15d
movq 0x18(%rsp), %rcx
movq -0x8(%rcx,%rax,8), %rax
andq $-0x2, %rax
andl $0x1, %r13d
orq %rax, %r13
xorl %ecx, %ecx
movb $0x1, %al
movl %eax, (%rsp)
movl %r14d, %ebx
movq 0x88(%rsp), %rbp
movq 0x10(%rbp), %r8
cmpq %rbx, 0x8(%rbp)
jae 0x13651
leaq -0x1(%rbx), %rax
movl %ecx, 0x74(%rsp)
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, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x8(%rbp)
movq %r8, %rdi
callq 0x2350
movl 0x74(%rsp), %ecx
movq %rax, %r8
movq %rax, 0x10(%rbp)
movq 0x58(%rsp), %rax
movq 0x18(%rax), %rdi
movl %r12d, %esi
movl %r14d, %edx
callq 0xf662
movq %rbx, (%rbp)
cmpl $0xa, %r14d
jb 0x13714
movq 0x10(%rbp), %rax
movq 0xb8(%rsp), %rbx
movq %rax, (%rbx)
movl %r14d, 0x10(%rbx)
xorl %eax, %eax
movl %eax, 0x30(%rbx)
movq $0x0, 0x8(%rbx)
movl %eax, 0x14(%rbx)
movl $0x1, 0x28(%rbx)
cvtsi2sd %r14d, %xmm0
mulsd 0xc8(%rsp), %xmm0
callq 0x24e0
cvttsd2si %xmm0, %eax
cmpl $0x7, %eax
movl $0x6, %ecx
cmovll %ecx, %eax
movl %eax, 0x2c(%rbx)
movq 0x18(%rbx), %rax
testq %rax, %rax
jne 0x136de
movl $0x1, %edi
movl $0x18, %esi
callq 0x2250
movq %rax, 0x18(%rbx)
shll $0x2, %r14d
cmpq %r14, 0x8(%rax)
movq 0x50(%rsp), %r12
movq 0x38(%rsp), %rbp
jae 0x13730
movq %r14, 0x8(%rax)
movq 0x10(%rax), %rdi
shlq $0x2, %r14
leaq (%r14,%r14,2), %rsi
callq 0x2350
movq %rax, %rcx
movq 0x18(%rbx), %rax
movq %rcx, 0x10(%rax)
jmp 0x13734
movq 0xc0(%rsp), %rax
incq 0x80(%rax)
xorl %r14d, %r14d
movq 0x60(%rsp), %r13
jmp 0x139b6
movq 0x10(%rax), %rcx
movq $0x1, (%rax)
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
movq %rax, (%rcx)
movq 0xd0(%rsp), %rdi
movq %r13, %rdx
movq %rbp, %rcx
movq %rbx, %r8
movq %r12, %r9
callq 0x12d44
movl %eax, %r14d
testl %eax, %eax
je 0x137be
movq 0x68(%r12), %rax
cmpq (%rax), %r13
movq 0x60(%rsp), %r13
jne 0x14380
cmpq $-0x1, %rbp
je 0x137dd
movq 0x58(%r12), %rcx
cmpq -0x8(%rax,%rcx,8), %rbp
je 0x137c9
jmp 0x14380
leaq (%rax,%r11), %rdx
movq %rdx, 0x10(%rsp)
leaq (%rax,%r11), %rdi
incq %rdi
testl %eax, %eax
movq 0x18(%rsp), %r8
js 0x14174
movq 0x10(%rsp), %rax
movq 0x28(%rsp), %r9
jmp 0x1356a
cmpq $-0x1, %rbp
movq 0x60(%rsp), %r13
je 0x137dd
xorl %edx, %edx
movq 0xa8(%rsp), %rax
movq 0xb0(%rsp), %rcx
jmp 0x137ec
movb $0x1, %dl
movq 0x80(%rsp), %rax
movq 0x78(%rsp), %rcx
incq (%rax)
movslq %r14d, %rax
incq (%rcx,%rax,8)
cmpl $0x1, %r14d
jne 0x139b6
movq 0x50(%rsp), %rax
movq 0x58(%rax), %rbx
cmpb $0x0, (%rsp)
je 0x13c04
movl $0x1, %r15d
cmpl $0x3, %ebx
movq 0x48(%rsp), %rbp
jl 0x138f2
movl %edx, 0x38(%rsp)
leal -0x1(%rbx), %eax
movl %eax, %r15d
movl $0x1, %r14d
movq (%rbp), %rdx
movq 0x10(%rbp), %rax
cmpq 0x8(%rbp), %rdx
jne 0x1386d
leaq (%rdx,%rdx), %rsi
testq %rdx, %rdx
movl $0x2, %ecx
cmoveq %rcx, %rsi
movq %rsi, 0x8(%rbp)
shlq $0x3, %rsi
movq %rax, %rdi
callq 0x2350
movq %rax, 0x10(%rbp)
movq (%rbp), %rdx
movq 0x50(%rsp), %r12
movq 0x68(%r12), %rcx
movq (%rcx,%r14,8), %rsi
orq $0x1, %rsi
leaq 0x1(%rdx), %rdi
movq %rdi, (%rbp)
movq %rsi, (%rax,%rdx,8)
movq 0x30(%rsp), %rbp
movq (%rbp), %rdx
movq 0x10(%rbp), %rax
cmpq 0x8(%rbp), %rdx
jne 0x138cb
leaq (%rdx,%rdx), %rsi
testq %rdx, %rdx
movl $0x2, %ecx
cmoveq %rcx, %rsi
movq %rsi, 0x8(%rbp)
shlq $0x2, %rsi
movq %rax, %rdi
callq 0x2350
movq %rax, 0x10(%rbp)
movq 0x68(%r12), %rcx
movq (%rbp), %rdx
movl (%rcx,%r14,8), %ecx
orl $-0x2, %ecx
leaq 0x1(%rdx), %rsi
movq %rsi, (%rbp)
movl %ecx, (%rax,%rdx,4)
incq %r14
cmpq %r14, %r15
movq 0x48(%rsp), %rbp
jne 0x13837
movl 0x38(%rsp), %edx
cmpl $0x2, %ebx
setge %al
andb %al, %dl
movl $0x1, %r14d
cmpb $0x1, %dl
jne 0x13ce0
movq (%rbp), %rdx
movq 0x10(%rbp), %rax
cmpq 0x8(%rbp), %rdx
jne 0x1393f
leaq (%rdx,%rdx), %rsi
testq %rdx, %rdx
movl $0x2, %ecx
cmoveq %rcx, %rsi
movq %rsi, 0x8(%rbp)
shlq $0x3, %rsi
movq %rax, %rdi
callq 0x2350
movq %rax, 0x10(%rbp)
movq (%rbp), %rdx
movq 0x50(%rsp), %r12
movq 0x68(%r12), %rcx
movq (%rcx,%r15,8), %rsi
orq $0x1, %rsi
leaq 0x1(%rdx), %rdi
movq %rdi, (%rbp)
movq %rsi, (%rax,%rdx,8)
movq 0x30(%rsp), %rbx
movq (%rbx), %rdx
movq 0x10(%rbx), %rax
cmpq 0x8(%rbx), %rdx
jne 0x1399b
leaq (%rdx,%rdx), %rsi
testq %rdx, %rdx
movl $0x2, %ecx
cmoveq %rcx, %rsi
movq %rsi, 0x8(%rbx)
shlq $0x2, %rsi
movq %rax, %rdi
callq 0x2350
movq %rax, 0x10(%rbx)
movq 0x68(%r12), %rcx
movq (%rbx), %rdx
movq 0x8(%rsp), %r12
movl (%rcx,%r15,8), %ecx
orl $-0x2, %ecx
leaq 0x1(%rdx), %rsi
movq %rsi, (%rbx)
movl %ecx, (%rax,%rdx,4)
jmp 0x13ce5
cmpb $0x0, (%rsp)
je 0x13af0
leal 0x1(%r15), %r12d
cmpl 0x4(%rsp), %r12d
jge 0x13ce0
movq 0x48(%rsp), %rbp
movq (%rbp), %rcx
movq 0x10(%rbp), %rax
movq 0x10(%rsp), %rdx
subl %r15d, %edx
movslq %edx, %rbx
leaq (%rcx,%rbx), %rdx
cmpq 0x8(%rbp), %rdx
jbe 0x13a45
decq %rdx
movq %rdx, %rcx
shrq %rcx
orq %rdx, %rcx
movq %rcx, %rdx
shrq $0x2, %rdx
orq %rcx, %rdx
movq %rdx, %rcx
shrq $0x4, %rcx
orq %rdx, %rcx
movq %rcx, %rdx
shrq $0x8, %rdx
orq %rcx, %rdx
movq %rdx, %rcx
shrq $0x10, %rcx
orq %rdx, %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%rbp)
leaq 0x8(,%rcx,8), %rsi
movq %rax, %rdi
callq 0x2350
movq %rax, 0x10(%rbp)
movq (%rbp), %rcx
leaq (%rax,%rcx,8), %rdi
movslq %r12d, %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x38(%rsp)
leaq (%rax,%rcx,8), %rsi
leaq (,%rbx,8), %rdx
callq 0x22b0
addq %rbx, (%rbp)
movq 0x30(%rsp), %r15
movq (%r15), %rcx
movq 0x10(%r15), %rax
leaq (%rcx,%rbx), %rdx
cmpq 0x8(%r15), %rdx
jbe 0x13ad4
decq %rdx
movq %rdx, %rcx
shrq %rcx
orq %rdx, %rcx
movq %rcx, %rdx
shrq $0x2, %rdx
orq %rcx, %rdx
movq %rdx, %rcx
shrq $0x4, %rcx
orq %rdx, %rcx
movq %rcx, %rdx
shrq $0x8, %rdx
orq %rcx, %rdx
movq %rdx, %rcx
shrq $0x10, %rcx
orq %rdx, %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%r15)
leaq 0x4(,%rcx,4), %rsi
movq %rax, %rdi
callq 0x2350
movq %rax, 0x10(%r15)
movq (%r15), %rcx
movq 0x8(%rsp), %r12
movq 0x28(%rsp), %rdx
leaq (%rax,%rcx,4), %rdi
movq 0x38(%rsp), %rax
leaq (%rdx,%rax,4), %rsi
jmp 0x13bef
movq 0x48(%rsp), %rbp
movq (%rbp), %rcx
movq 0x10(%rbp), %rax
movslq %r15d, %rbx
leaq (%rcx,%rbx), %rdx
cmpq 0x8(%rbp), %rdx
jbe 0x13b5e
decq %rdx
movq %rdx, %rcx
shrq %rcx
orq %rdx, %rcx
movq %rcx, %rdx
shrq $0x2, %rdx
orq %rcx, %rdx
movq %rdx, %rcx
shrq $0x4, %rcx
orq %rdx, %rcx
movq %rcx, %rdx
shrq $0x8, %rdx
orq %rcx, %rdx
movq %rdx, %rcx
shrq $0x10, %rcx
orq %rdx, %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%rbp)
leaq 0x8(,%rcx,8), %rsi
movq %rax, %rdi
callq 0x2350
movq %rax, 0x10(%rbp)
movq (%rbp), %rcx
movq 0x8(%rsp), %r12
movq 0x30(%rsp), %r15
leaq (%rax,%rcx,8), %rdi
leaq (,%rbx,8), %rdx
movq 0x18(%rsp), %rsi
callq 0x22b0
addq %rbx, (%rbp)
movq (%r15), %rcx
movq 0x10(%r15), %rax
leaq (%rcx,%rbx), %rdx
cmpq 0x8(%r15), %rdx
jbe 0x13be6
decq %rdx
movq %rdx, %rcx
shrq %rcx
orq %rdx, %rcx
movq %rcx, %rdx
shrq $0x2, %rdx
orq %rcx, %rdx
movq %rdx, %rcx
shrq $0x4, %rcx
orq %rdx, %rcx
movq %rcx, %rdx
shrq $0x8, %rdx
orq %rcx, %rdx
movq %rdx, %rcx
shrq $0x10, %rcx
orq %rdx, %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%r15)
leaq 0x4(,%rcx,4), %rsi
movq %rax, %rdi
callq 0x2350
movq %rax, 0x10(%r15)
movq (%r15), %rcx
movq 0x28(%rsp), %rsi
leaq (%rax,%rcx,4), %rdi
leaq (,%rbx,4), %rdx
callq 0x22b0
addq %rbx, (%r15)
jmp 0x13ce5
movl $0x1, %r14d
cmpl $0x2, %ebx
movq 0x48(%rsp), %rbp
jl 0x13ce0
andl $0x7fffffff, %ebx       # imm = 0x7FFFFFFF
incq %rbx
movq 0x30(%rsp), %r15
movq (%rbp), %rcx
movq 0x10(%rbp), %rax
cmpq 0x8(%rbp), %rcx
jne 0x13c5c
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
movl $0x2, %ecx
cmoveq %rcx, %rsi
movq %rsi, 0x8(%rbp)
shlq $0x3, %rsi
movq %rax, %rdi
callq 0x2350
movq %rax, 0x10(%rbp)
movq (%rbp), %rcx
movq 0x50(%rsp), %r12
movq 0x68(%r12), %rdx
movq -0x10(%rdx,%rbx,8), %rsi
orq $0x1, %rsi
leaq 0x1(%rcx), %rdi
movq %rdi, (%rbp)
movq %rsi, (%rax,%rcx,8)
movq (%r15), %rcx
movq 0x10(%r15), %rax
cmpq 0x8(%r15), %rcx
jne 0x13cb4
leaq (%rcx,%rcx), %rsi
testq %rcx, %rcx
movl $0x2, %ecx
cmoveq %rcx, %rsi
movq %rsi, 0x8(%r15)
shlq $0x2, %rsi
movq %rax, %rdi
callq 0x2350
movq %rax, 0x10(%r15)
movq 0x68(%r12), %rdx
movq (%r15), %rcx
movl -0x10(%rdx,%rbx,8), %edx
notl %edx
orl $-0x2, %edx
leaq 0x1(%rcx), %rsi
movq %rsi, (%r15)
movl %edx, (%rax,%rcx,4)
decq %rbx
cmpq $0x2, %rbx
ja 0x13c26
movq 0x10(%rsp), %rax
movq 0x8(%rsp), %r12
jmp 0x13cea
movq 0x8(%rsp), %r12
movq 0x10(%rsp), %rax
testq %r12, %r12
je 0x13dbc
decl %r14d
cmpl $0x1, %r14d
movq 0x18(%rsp), %rbp
movl 0x4(%rsp), %r12d
ja 0x13dd7
movq 0x50(%rsp), %rax
movq 0x28(%rax), %r15
movq 0x38(%rax), %r14
cmpb $0x0, (%rsp)
jne 0x13dec
movq (%r13), %rbx
movslq %r15d, %r12
leaq (%rbx,%r12), %rax
incq %rax
cmpq 0x8(%r13), %rax
jb 0x13d7e
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, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x8(%r13)
movq 0x10(%r13), %rdi
callq 0x2350
movq %rax, 0x10(%r13)
movq (%r13), %rbx
testl %r15d, %r15d
jle 0x13ea3
movslq %ebx, %rax
andl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
incq %r15
leaq 0xc135(%rip), %rsi      # 0x1fed0
movsbq -0x2(%r14,%r15), %rcx
movb (%rsi,%rcx), %cl
movq 0x10(%r13), %rdx
movb %cl, (%rdx,%rax)
incq %rax
decq %r15
cmpq $0x1, %r15
ja 0x13d9b
jmp 0x13e9f
movl 0x24(%rsp), %ecx
movl %ecx, (%rsp)
movq 0x18(%rsp), %r8
movl 0x4(%rsp), %r12d
movq 0x40(%rsp), %rdi
jmp 0x13f36
movq 0x88(%rsp), %rax
movq (%rax), %r15
movq 0x10(%rax), %r14
cmpb $0x0, (%rsp)
je 0x13e0d
movq (%r13), %rdi
movslq %r15d, %rbx
leaq (%rdi,%rbx), %rax
incq %rax
cmpq 0x8(%r13), %rax
jae 0x13ebb
movq 0x10(%r13), %rax
jmp 0x13f04
movq (%r13), %rbx
movslq %r15d, %r12
leaq (%rbx,%r12), %rax
incq %rax
cmpq 0x8(%r13), %rax
jb 0x13e6a
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, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x8(%r13)
movq 0x10(%r13), %rdi
callq 0x2350
movq %rax, 0x10(%r13)
movq (%r13), %rbx
testl %r15d, %r15d
jle 0x13ea3
movslq %ebx, %rax
andl $0x7fffffff, %r15d      # imm = 0x7FFFFFFF
incq %r15
leaq 0xc04d(%rip), %rsi      # 0x1fed0
movsbq -0x2(%r14,%r15), %rcx
movb (%rsi,%rcx), %cl
movq 0x10(%r13), %rdx
movb %cl, (%rdx,%rax)
incq %rax
decq %r15
cmpq $0x1, %r15
ja 0x13e83
movq (%r13), %rbx
addq %r12, %rbx
movq 0x18(%rsp), %r8
movl 0x4(%rsp), %r12d
movl 0x24(%rsp), %ecx
movq 0x40(%rsp), %rdi
jmp 0x13f22
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, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x8(%r13)
movq 0x10(%r13), %rdi
callq 0x2350
movq %rax, 0x10(%r13)
movq (%r13), %rdi
addq %rax, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x22b0
addq (%r13), %rbx
movl 0x24(%rsp), %ecx
movq 0x40(%rsp), %rdi
movq %rbp, %r8
movq %rbx, (%r13)
movq 0x10(%r13), %rax
movb $0x0, (%rax,%rbx)
movl %ecx, (%rsp)
movq 0x10(%rsp), %rax
leal 0x2(%rax), %r15d
movq %rdi, %rsi
movslq %edi, %r14
leaq (%r8,%r14,8), %rbx
cmpl %r12d, %r15d
movq 0xa0(%rsp), %rcx
movq 0x48(%rsp), %rbp
jge 0x13f87
movslq %eax, %r15
addq $0x2, %r15
movq (%r8,%r15,8), %rax
shlq $0x4, %rax
andq $-0x20, %rax
cmpl $0x0, 0x10(%rcx,%rax)
js 0x13f87
testb $0x1, (%rbx)
jne 0x13f87
incq %r15
cmpq %r15, 0x98(%rsp)
jne 0x13f5d
movl %r12d, %r15d
jmp 0x13f90
cmpl %r12d, %r15d
jg 0x141c5
movq (%rbp), %rcx
movq 0x10(%rbp), %rax
movl %r15d, %edx
subl %esi, %edx
movslq %edx, %r13
leaq (%rcx,%r13), %rdx
cmpq 0x8(%rbp), %rdx
jbe 0x13ffe
decq %rdx
movq %rdx, %rcx
shrq %rcx
orq %rdx, %rcx
movq %rcx, %rdx
shrq $0x2, %rdx
orq %rcx, %rdx
movq %rdx, %rcx
shrq $0x4, %rcx
orq %rdx, %rcx
movq %rcx, %rdx
shrq $0x8, %rdx
orq %rcx, %rdx
movq %rdx, %rcx
shrq $0x10, %rcx
orq %rdx, %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%rbp)
leaq 0x8(,%rcx,8), %rsi
movq %rax, %rdi
callq 0x2350
movq %rax, 0x10(%rbp)
movq (%rbp), %rcx
leaq (%rax,%rcx,8), %rdi
leaq (,%r13,8), %rdx
movq %rbx, %rsi
callq 0x22b0
addq %r13, (%rbp)
movq 0x30(%rsp), %r12
movq (%r12), %rcx
movq 0x10(%r12), %rax
leaq (%rcx,%r13), %rdx
cmpq 0x8(%r12), %rdx
jbe 0x14085
decq %rdx
movq %rdx, %rcx
shrq %rcx
orq %rdx, %rcx
movq %rcx, %rdx
shrq $0x2, %rdx
orq %rcx, %rdx
movq %rdx, %rcx
shrq $0x4, %rcx
orq %rdx, %rcx
movq %rcx, %rdx
shrq $0x8, %rdx
orq %rcx, %rdx
movq %rdx, %rcx
shrq $0x10, %rcx
orq %rdx, %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x8(%r12)
leaq 0x4(,%rcx,4), %rsi
movq %rax, %rdi
callq 0x2350
movq %rax, 0x10(%r12)
movq (%r12), %rcx
leaq (%rax,%rcx,4), %rdi
movq 0x28(%rsp), %rbp
leaq (,%r14,4), %rbx
addq %rbp, %rbx
leaq (,%r13,4), %rdx
movq %rbx, %rsi
callq 0x22b0
addq %r13, (%r12)
movq %rbp, %r9
movl (%rsp), %esi
cmpq $0x0, 0x8(%rsp)
movq 0x60(%rsp), %r13
movl 0x4(%rsp), %r12d
movq 0x98(%rsp), %rbp
je 0x1349c
movl (%rbx), %ebx
shrl %ebx
movslq %r15d, %rax
movl -0x4(%r9,%rax,4), %eax
shrl %eax
movq 0x90(%rsp), %rcx
subl %ebx, %ecx
addl %eax, %ecx
movq (%r13), %r8
movslq %ecx, %r14
leaq (%r8,%r14), %rcx
movq 0x10(%r13), %rax
cmpq %rcx, 0x8(%r13)
jae 0x1414b
decq %rcx
movq %rcx, %rdx
shrq %rdx
orq %rcx, %rdx
movq %rdx, %rcx
shrq $0x2, %rcx
orq %rdx, %rcx
movq %rcx, %rdx
shrq $0x4, %rdx
orq %rcx, %rdx
movq %rdx, %rcx
shrq $0x8, %rcx
orq %rdx, %rcx
movq %rcx, %rsi
shrq $0x10, %rsi
orq %rcx, %rsi
incq %rsi
movq %rsi, 0x8(%r13)
movq %rax, %rdi
callq 0x2350
movq %rax, 0x10(%r13)
movq (%r13), %r8
addq %rax, %r8
movq 0x58(%rsp), %rax
movq 0x18(%rax), %rdi
movl %ebx, %esi
movl %r14d, %edx
xorl %ecx, %ecx
callq 0xf662
addq %r14, (%r13)
movl (%rsp), %esi
movq 0x28(%rsp), %r9
jmp 0x1349c
movq %rsi, %rax
sarq $0x1d, %rax
movq (%r8,%rax), %rax
andq $-0x2, %rax
sarq $0x1e, %rsi
movq %rdi, %r15
movq 0x28(%rsp), %r9
movl (%r9,%rsi), %r14d
movl %r14d, %r13d
notl %r13d
andl $0x1, %r13d
orq %rax, %r13
shrl %r14d
movl $0x1, %ecx
movq $-0x1, 0x38(%rsp)
xorl %r12d, %r12d
movq %rdi, 0x40(%rsp)
movl $0x0, (%rsp)
jmp 0x135e9
cmpl $0x0, (%rsp)
je 0x14288
movq (%rbp), %r15
movq 0x58(%rsp), %r12
movq 0x50(%r12), %rdi
leaq (,%r15,8), %r14
movq %r14, %rsi
movq %rcx, %rbx
callq 0x2350
movq %rax, 0x50(%r12)
movq 0x10(%rbp), %rsi
movq %rax, %rdi
movq %r14, %rdx
movq %r14, %rbp
callq 0x22b0
movq 0x40(%r12), %rdi
leaq (,%r15,4), %r14
movq %r14, %rsi
callq 0x2350
movq %rax, 0x40(%r12)
movq 0x30(%rsp), %rcx
movq 0x10(%rcx), %rsi
movq %rax, %rdi
movq %r14, %rdx
callq 0x22b0
movq 0x48(%r12), %rdi
movq %rbp, %rsi
callq 0x2350
movq %rax, 0x48(%r12)
testq %r15, %r15
movq 0x8(%rsp), %r14
je 0x14275
movq 0x50(%r12), %rcx
xorl %edx, %edx
movq (%rcx,%rdx,8), %rsi
shlq $0x4, %rsi
andq $-0x20, %rsi
movq 0x8(%rbx,%rsi), %rsi
movq %rsi, (%rax,%rdx,8)
incq %rdx
cmpq %rdx, %r15
jne 0x14258
movl %r15d, 0x38(%r12)
testq %r14, %r14
jne 0x14309
jmp 0x1434f
movq 0x8(%rsp), %r14
testq %r14, %r14
movq 0x58(%rsp), %r12
je 0x1434f
movslq 0x10(%r12), %rbx
movq 0x10(%r13), %r8
cmpq %rbx, 0x8(%r13)
jae 0x142f5
leaq -0x1(%rbx), %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, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x8(%r13)
movq %r8, %rdi
callq 0x2350
movq %rax, %r8
movq %rax, 0x10(%r13)
movq 0x18(%r12), %rdi
xorl %esi, %esi
movl %ebx, %edx
xorl %ecx, %ecx
callq 0xf662
movq %rbx, (%r13)
leaq 0x11fa8(%rip), %rbx     # 0x262b8
movq %rbx, %rdi
callq 0x2500
movq 0x8(%r12), %rdx
movl (%r13), %ecx
movq 0x10(%r13), %r8
leaq 0xc71f(%rip), %rsi      # 0x20a4b
movq %r14, %rdi
xorl %eax, %eax
callq 0x2280
movq %rbx, %rdi
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x22f0
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xc62a(%rip), %rdi      # 0x20992
leaq 0xc62a(%rip), %rsi      # 0x20999
leaq 0xc62d(%rip), %rcx      # 0x209a3
movl $0x1ca, %edx            # imm = 0x1CA
callq 0x21d0
leaq 0xc65a(%rip), %rdi      # 0x209e1
leaq 0xc60b(%rip), %rsi      # 0x20999
leaq 0xc60e(%rip), %rcx      # 0x209a3
movl $0x1ed, %edx            # imm = 0x1ED
callq 0x21d0
nop