// File: /workspace/github_c_makefile_star2_O0/c-zhou[P]oatk/path.c
// Function: asg_annotation
og_component_v *asg_annotation(hmm_annot_db_t *annot_db, asg_t *asg, int no_trn, int no_rrn, double max_eval,
        int n_core, int min_len, int min_score, int fix_og, int verbose)
{
    uint32_t i, j, k, n, m, v, nv, gid, imax, smax, score, n_seg, n_gene, m_gene, n_clust;
    uint32_t l_seeds[4], n_seeds[4], *comp_v;
    uint64_t *gene_score;
    double *a_s, *annot_score, *seg_score, g_n[4], c_means[4];
    OG_TYPE_t og_t, **og_seeds;
    og_component_t *component_s, *component_g;
    og_component_v *sequence_og, *subgraph_og, *component_v;
    clust_dp_t *comp_dps;
    clust_t *clusts;

    n_gene = annot_db->n;
    n_seg = asg->n_seg;

    if (n_gene == 0) return 0;
    
    m_gene = annot_db->n_gene;

    seg_score = get_sequence_annot_score(annot_db, asg, no_trn, no_rrn, max_eval, 0, verbose);
    sequence_og = annot_sequence_og_type(annot_db, asg, no_trn, no_rrn, max_eval, n_core, min_len, min_score, 0, verbose);
    subgraph_og = annot_subgraph_og_type(annot_db, asg, no_trn, no_rrn, max_eval, n_core, min_len, min_score, 0, verbose);

    MYCALLOC(annot_score, m_gene * 4);
    // collect best annotation score for each gene across the entire graph
    for (i = 0; i < n_seg; ++i) {
        component_s = &sequence_og->a[i];
        gene_score = component_s->g;
        for (j = 0; j < component_s->ng; ++j) {
            gid = gene_score[j] >> 34;
            og_t = (gene_score[j] >> 32) & 0x3;
            score = (uint32_t) gene_score[j];
            
            gid += m_gene * og_t;
            if (annot_score[gid] < (double) score)
                annot_score[gid] = score;
        }
    }

    // check if each subgraph is a mito-pltd mixture
    // separate organelle genomes for mixtures
    double g_diff = 0.85; // relaxation for gene socres
    MYCALLOC(component_v, 1);
    for (i = 0; i < subgraph_og->n; ++i) {
        component_g = &subgraph_og->a[i];
        comp_v = component_g->v;
        nv = component_g->nv;

        MYMALLOC(comp_dps, nv);
        for (j = 0; j < nv; ++j) {
            comp_dps[j].index = j;
            comp_dps[j].val = component_g->asmg->vtx[comp_v[j]].cov;
            comp_dps[j].size = component_g->asmg->vtx[comp_v[j]].len;
            comp_dps[j].clust = -1;
            comp_dps[j].og_type = OG_UNCLASSIFIED;
            MYBZERO(comp_dps[j].gene_num, 4);
        }

        // count genes with best annotation scores
        for (j = 0; j < nv; ++j) {
            component_s = &sequence_og->a[comp_v[j]];
            gene_score = component_s->g;
            // count genes with best annotation scores
            n = 0;
            for (k = 0; k < component_s->ng; ++k) {
                og_t = (gene_score[k] >> 32) & 0x3;
                gid = gene_score[k] >> 34;
                score = (uint32_t) gene_score[k];
                a_s = &annot_score[m_gene * og_t];
                if (score >= min_score &&
                        (double) score >= a_s[gid] * g_diff)
                    // the number of best genes
                    ++comp_dps[j].gene_num[og_t];
            }
        }
        
        // do clustering by sequence overage
        n_clust = dbscan_cluster(comp_dps, nv, DBSCAN_EPS, CLUSTV_EPS);
        clusts = make_cluster(comp_dps, nv, n_clust, min_len);

        // organelle type classification for each coverage cluster
        MYBZERO(l_seeds, 4);
        MYBZERO(n_seeds, 4);
        for (j = 0; j < n_clust; ++j) {
            a_s = clusts[j].og_score;
            MYBZERO(a_s, 4);
            MYBZERO(g_n, 4);
            for (m = 0, n = clusts[j].n_dps; m < n; ++m) {
                v = clusts[j].dps[m];
                for (k = 0; k < 4; ++k) {
                    a_s[k] += seg_score[comp_v[v] * 4 + k];
                    g_n[k] += comp_dps[v].gene_num[k];
                }
            }
            imax = max2(a_s, 4, &smax);
            og_t = a_s[imax] == a_s[smax]? OG_UNCLASSIFIED : imax;
            if (og_t == OG_PLTD && 
                    smax == OG_MITO &&
                    g_n[OG_MITO] > 0 &&
                    (a_s[OG_PLTD] < a_s[OG_MITO] * PLTD_TO_MITO_FST[0] ||
                     (a_s[OG_PLTD] < a_s[OG_MITO] * PLTD_TO_MITO_FST[1] && 
                      clusts[j].size > COMMON_MAX_PLTD_SIZE))) {
                // fix OG_TYPE
                og_t = OG_MITO;
                if (verbose > 2)
                    fprintf(stderr, "[M::%s] OG_TYPE changed from PLTD to MITO: CLUST=%d [M=%.3f N=%d L=%d] [MITO=%.3f PLTD=%.3f MINI=%.3f]\n",
                            __func__, j, clusts[j].mean, clusts[j].n_dps, clusts[j].size, a_s[OG_MITO], a_s[OG_PLTD], a_s[OG_MINI]);
            }
            for (m = 0, n = clusts[j].n_dps; m < n; ++m) {
                v = clusts[j].dps[m];
                if (comp_dps[v].gene_num[og_t] > 0) {
                    l_seeds[og_t] += component_g->asmg->vtx[comp_v[v]].len;
                    n_seeds[og_t] += 1;
                }
            }
            clusts[j].og_type = og_t;
        }

        if (verbose > 2) {
            fprintf(stderr, "[M::%s] subgraph sequence coverage clustering [CLUST=%d]:\n", __func__, n_clust);
            for (j = 0; j < n_clust; ++j) {
                a_s = clusts[j].og_score;
                fprintf(stderr, "[M::%s] CLUST=%d OG=%s [M=%.3f N=%d L=%d] [MITO=%.3f PLTD=%.3f MINI=%.3f]\n", 
                        __func__, j, OG_TYPES[clusts[j].og_type], clusts[j].mean, clusts[j].n_dps, clusts[j].size, 
                        a_s[OG_MITO], a_s[OG_PLTD], a_s[OG_MINI]);
            }
            fprintf(stderr, "[M::%s] subgraph sequence [NV=%d]:\n", __func__, nv);
            qsort(comp_dps, nv, sizeof(clust_dp_t), dpVal_cmpfunc);
            for (j = 0; j < nv; ++j) {
                v = comp_dps[j].index;
                og_t = sequence_og->a[comp_v[v]].type;
                fprintf(stderr, "[M::%s] %s [%s #MG=%d #PG=%d] COV=%.3f LEN=%d CLUST=%d\n", __func__,
                        asg->seg[comp_v[v]].name, OG_TYPES[og_t], comp_dps[j].gene_num[OG_MITO], comp_dps[j].gene_num[OG_PLTD], 
                        comp_dps[j].val, comp_dps[j].size, comp_dps[j].clust);
            }
            qsort(comp_dps, nv, sizeof(clust_dp_t), dpIdx_cmpfunc);
            fprintf(stderr, "[M::%s] subgraph organelle initial classification:\n", __func__);
            for (j = 0; j < 4; ++j)
                fprintf(stderr, "[M::%s] %s: SEED=%u SIZE=%u\n", __func__, OG_TYPES[j], n_seeds[j], l_seeds[j]);
        }

        if (l_seeds[OG_MITO] > 0 && l_seeds[OG_PLTD] > 0) {
            if (l_seeds[OG_MITO] > min_len && l_seeds[OG_PLTD] < min_len) {
                l_seeds[OG_PLTD] = 0;
                n_seeds[OG_PLTD] = 0;
            } else if (l_seeds[OG_MITO] < min_len && l_seeds[OG_PLTD] > min_len) {
                l_seeds[OG_MITO] = 0;
                n_seeds[OG_MITO] = 0;
            }
        }

        MYMALLOC(og_seeds, 4);
        MYCALLOC(og_seeds[0], nv * 4);
        for (j = 1; j < 4; ++j)
            og_seeds[j] = og_seeds[j-1] + nv;
        MYBZERO(c_means, 4);
        if (l_seeds[OG_MITO] > 0 && l_seeds[OG_PLTD] > 0) {
            // is a organelle mixture
            if (verbose > 2)
                fprintf(stderr, "[M::%s] processing subgraph as a organelle mixture\n", __func__);
            double min_mito, max_mito, min_pltd, max_pltd;
            min_mito = min_pltd = 0;
            max_mito = max_pltd = DBL_MAX;
            // TODO implement this subroutine to determine boundary of MITO and PLTD coverage
            find_coverage_bound_in_mixture_graph(clusts, n_clust, comp_dps, nv, COMMON_MAX_MITO_SIZE, COMMON_MAX_PLTD_SIZE, 
                    LOG4_5, &min_mito, &max_mito, &min_pltd, &max_pltd, verbose);
            l_seeds[OG_MITO] = find_seeds_in_pure_graph(clusts, n_clust, comp_dps, nv, OG_MITO, min_mito, max_mito, LOG4_5, 
                    min_len, COMMON_MAX_MITO_SIZE, &c_means[OG_MITO], og_seeds[OG_MITO], verbose);
            l_seeds[OG_PLTD] = find_seeds_in_pure_graph(clusts, n_clust, comp_dps, nv, OG_PLTD, min_pltd, max_pltd, LOG4_5, 
                    min_len, COMMON_MAX_PLTD_SIZE, &c_means[OG_PLTD], og_seeds[OG_PLTD], verbose);
        } else if (l_seeds[OG_MITO] > 0) {
            // pure mito
            if (verbose > 2)
                fprintf(stderr, "[M::%s] processing subgraph as a pure MITO\n", __func__);
            l_seeds[OG_MITO] = find_seeds_in_pure_graph(clusts, n_clust, comp_dps, nv, OG_MITO, 0, DBL_MAX, LOG4_5, 
                    min_len, COMMON_MAX_MITO_SIZE, &c_means[OG_MITO], og_seeds[OG_MITO], verbose);
        } else if (l_seeds[OG_PLTD] > 0) {
            // pure pltd
            // similar to mito
            // but also consider genome size
            if (verbose > 2)
                fprintf(stderr, "[M::%s] processing subgraph as a pure PLTD\n", __func__);
            l_seeds[OG_PLTD] = find_seeds_in_pure_graph(clusts, n_clust, comp_dps, nv, OG_PLTD, 0, DBL_MAX, LOG4_5, 
                    min_len, COMMON_MAX_PLTD_SIZE, &c_means[OG_PLTD], og_seeds[OG_PLTD], verbose);
        } else if (l_seeds[OG_MINI] > 0) {
            // is minicircle
            if (verbose > 2)
                fprintf(stderr, "[M::%s] processing subgraph as a MINICIRCLE\n", __func__);
            l_seeds[OG_MINI] = find_seeds_in_pure_graph(clusts, n_clust, comp_dps, nv, OG_MINI, 0, DBL_MAX, LOG4_5, 
                    min_len, COMMON_MAX_MINICIRCLE_SIZE, &c_means[OG_MINI], og_seeds[OG_MINI], verbose);
        }

        if (l_seeds[OG_MITO] > 0)
            slim_graph(asg, sequence_og, component_g, comp_dps, OG_MITO, og_seeds[OG_MITO],
                    c_means[OG_MITO], min_len, component_v, verbose); 
        if (l_seeds[OG_PLTD] > 0)
            slim_graph(asg, sequence_og, component_g, comp_dps, OG_PLTD, og_seeds[OG_PLTD],
                    c_means[OG_PLTD], min_len, component_v, verbose);
        if (l_seeds[OG_MINI] > 0)
            slim_graph(asg, sequence_og, component_g, comp_dps, OG_MINI, og_seeds[OG_MINI],
                    c_means[OG_MINI], min_len, component_v, verbose);

        free(og_seeds[0]);
        free(og_seeds);
        free(comp_dps);
        for (j = 0; j < n_clust; ++j)
            free(clusts[j].dps);
        free(clusts);
    }
    
    free(seg_score);
    free(annot_score);
    og_component_v_destroy(sequence_og);
    og_component_v_destroy(subgraph_og);

    if (fix_og) fix_og_misclassification(component_v, verbose);
    
    qsort(component_v->a, component_v->n, sizeof(og_component_t), og_cmpfunc_r);

    return component_v;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x1a0, %rsp            # imm = 0x1A0
movl 0x20(%rbp), %eax
movl 0x18(%rbp), %eax
movl 0x10(%rbp), %eax
movq %rdi, -0x20(%rbp)
movq %rsi, -0x28(%rbp)
movl %edx, -0x2c(%rbp)
movl %ecx, -0x30(%rbp)
movsd %xmm0, -0x38(%rbp)
movl %r8d, -0x3c(%rbp)
movl %r9d, -0x40(%rbp)
movq -0x20(%rbp), %rax
movq (%rax), %rax
movl %eax, -0x74(%rbp)
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movl %eax, -0x70(%rbp)
cmpl $0x0, -0x74(%rbp)
jne 0x1015a
movq $0x0, -0x18(%rbp)
jmp 0x113ac
movq -0x20(%rbp), %rax
movl 0x18(%rax), %eax
movl %eax, -0x78(%rbp)
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
movl -0x2c(%rbp), %edx
movl -0x30(%rbp), %ecx
movsd -0x38(%rbp), %xmm0
movl 0x20(%rbp), %r9d
xorl %r8d, %r8d
callq 0xda20
movq %rax, -0xc8(%rbp)
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
movl -0x2c(%rbp), %edx
movl -0x30(%rbp), %ecx
movsd -0x38(%rbp), %xmm0
movl -0x3c(%rbp), %r8d
movl -0x40(%rbp), %r9d
movl 0x10(%rbp), %r10d
movl 0x20(%rbp), %eax
xorl %r11d, %r11d
movl %r10d, (%rsp)
movl $0x0, 0x8(%rsp)
movl %eax, 0x10(%rsp)
callq 0xddf0
movq %rax, -0x138(%rbp)
movq -0x20(%rbp), %rdi
movq -0x28(%rbp), %rsi
movl -0x2c(%rbp), %edx
movl -0x30(%rbp), %ecx
movsd -0x38(%rbp), %xmm0
movl -0x3c(%rbp), %r8d
movl -0x40(%rbp), %r9d
movl 0x10(%rbp), %r10d
movl 0x20(%rbp), %eax
xorl %r11d, %r11d
movl %r10d, (%rsp)
movl $0x0, 0x8(%rsp)
movl %eax, 0x10(%rsp)
callq 0xeca0
movq %rax, -0x140(%rbp)
movl -0x78(%rbp), %eax
shll $0x2, %eax
movl %eax, %eax
movl %eax, %edi
movl $0x8, %esi
callq 0x2240
movq %rax, -0xc0(%rbp)
movl $0x0, -0x44(%rbp)
movl -0x44(%rbp), %eax
cmpl -0x70(%rbp), %eax
jae 0x10326
movq -0x138(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x44(%rbp), %ecx
shlq $0x6, %rcx
addq %rcx, %rax
movq %rax, -0x128(%rbp)
movq -0x128(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0xb0(%rbp)
movl $0x0, -0x48(%rbp)
movl -0x48(%rbp), %eax
movq -0x128(%rbp), %rcx
cmpl 0x28(%rcx), %eax
jae 0x10316
movq -0xb0(%rbp), %rax
movl -0x48(%rbp), %ecx
movq (%rax,%rcx,8), %rax
shrq $0x22, %rax
movl %eax, -0x60(%rbp)
movq -0xb0(%rbp), %rax
movl -0x48(%rbp), %ecx
movl 0x4(%rax,%rcx,8), %eax
andl $0x3, %eax
movl %eax, -0x114(%rbp)
movq -0xb0(%rbp), %rax
movl -0x48(%rbp), %ecx
movl (%rax,%rcx,8), %eax
movl %eax, -0x6c(%rbp)
movl -0x78(%rbp), %ecx
movl -0x114(%rbp), %eax
imull %eax, %ecx
movl -0x60(%rbp), %eax
addl %ecx, %eax
movl %eax, -0x60(%rbp)
movq -0xc0(%rbp), %rax
movl -0x60(%rbp), %ecx
movsd (%rax,%rcx,8), %xmm1
movl -0x6c(%rbp), %eax
cvtsi2sd %rax, %xmm0
ucomisd %xmm1, %xmm0
jbe 0x10306
movl -0x6c(%rbp), %eax
cvtsi2sd %rax, %xmm0
movq -0xc0(%rbp), %rax
movl -0x60(%rbp), %ecx
movsd %xmm0, (%rax,%rcx,8)
jmp 0x10308
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x1026f
jmp 0x10318
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x1022e
movsd 0x13202(%rip), %xmm0    # 0x23530
movsd %xmm0, -0x160(%rbp)
movl $0x1, %edi
movl $0x18, %esi
callq 0x2240
movq %rax, -0x148(%rbp)
movl $0x0, -0x44(%rbp)
movl -0x44(%rbp), %eax
movq -0x140(%rbp), %rcx
cmpq (%rcx), %rax
jae 0x11336
movq -0x140(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x44(%rbp), %ecx
shlq $0x6, %rcx
addq %rcx, %rax
movq %rax, -0x130(%rbp)
movq -0x130(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0xa8(%rbp)
movq -0x130(%rbp), %rax
movl 0x1c(%rax), %eax
movl %eax, -0x5c(%rbp)
movl -0x5c(%rbp), %eax
imulq $0x30, %rax, %rdi
callq 0x22f0
movq %rax, -0x150(%rbp)
movl $0x0, -0x48(%rbp)
movl -0x48(%rbp), %eax
cmpl -0x5c(%rbp), %eax
jae 0x104bf
movl -0x48(%rbp), %eax
movl %eax, %ecx
movl %ecx, %edx
movq -0x150(%rbp), %rax
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
movl %edx, (%rax,%rcx)
movq -0x130(%rbp), %rax
movq 0x38(%rax), %rax
movq 0x10(%rax), %rax
movq -0xa8(%rbp), %rcx
movl -0x48(%rbp), %edx
movl (%rcx,%rdx,4), %ecx
leaq (%rcx,%rcx,4), %rcx
movl 0x20(%rax,%rcx,8), %eax
andl $0x3fffffff, %eax       # imm = 0x3FFFFFFF
cvtsi2sd %eax, %xmm0
movq -0x150(%rbp), %rax
movl -0x48(%rbp), %ecx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movsd %xmm0, 0x8(%rax)
movq -0x130(%rbp), %rax
movq 0x38(%rax), %rax
movq 0x10(%rax), %rax
movq -0xa8(%rbp), %rcx
movl -0x48(%rbp), %edx
movl (%rcx,%rdx,4), %ecx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rax
movl %eax, %ecx
movq -0x150(%rbp), %rax
movl -0x48(%rbp), %edx
imulq $0x30, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0x10(%rax)
movq -0x150(%rbp), %rax
movl -0x48(%rbp), %ecx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movl $0xffffffff, 0x14(%rax) # imm = 0xFFFFFFFF
movq -0x150(%rbp), %rax
movl -0x48(%rbp), %ecx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movl $0x0, 0x28(%rax)
movq -0x150(%rbp), %rdi
movl -0x48(%rbp), %eax
imulq $0x30, %rax, %rax
addq %rax, %rdi
addq $0x18, %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x21c0
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x103bb
movl $0x0, -0x48(%rbp)
movl -0x48(%rbp), %eax
cmpl -0x5c(%rbp), %eax
jae 0x105fd
movq -0x138(%rbp), %rax
movq 0x10(%rax), %rax
movq -0xa8(%rbp), %rcx
movl -0x48(%rbp), %edx
movl (%rcx,%rdx,4), %ecx
shlq $0x6, %rcx
addq %rcx, %rax
movq %rax, -0x128(%rbp)
movq -0x128(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0xb0(%rbp)
movl $0x0, -0x50(%rbp)
movl $0x0, -0x4c(%rbp)
movl -0x4c(%rbp), %eax
movq -0x128(%rbp), %rcx
cmpl 0x28(%rcx), %eax
jae 0x105ed
movq -0xb0(%rbp), %rax
movl -0x4c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
shrq $0x20, %rax
andq $0x3, %rax
movl %eax, -0x114(%rbp)
movq -0xb0(%rbp), %rax
movl -0x4c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
shrq $0x22, %rax
movl %eax, -0x60(%rbp)
movq -0xb0(%rbp), %rax
movl -0x4c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x6c(%rbp)
movq -0xc0(%rbp), %rax
movl -0x78(%rbp), %ecx
imull -0x114(%rbp), %ecx
movl %ecx, %ecx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0xb8(%rbp)
movl -0x6c(%rbp), %eax
cmpl 0x10(%rbp), %eax
jb 0x105dd
movl -0x6c(%rbp), %eax
cvtsi2sd %rax, %xmm0
movq -0xb8(%rbp), %rax
movl -0x60(%rbp), %ecx
movsd (%rax,%rcx,8), %xmm1
mulsd -0x160(%rbp), %xmm1
ucomisd %xmm1, %xmm0
jb 0x105dd
movq -0x150(%rbp), %rax
movl -0x48(%rbp), %ecx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movl -0x114(%rbp), %ecx
movl 0x18(%rax,%rcx,4), %edx
addl $0x1, %edx
movl %edx, 0x18(%rax,%rcx,4)
jmp 0x105df
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0x10518
jmp 0x105ef
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x104c6
movq -0x150(%rbp), %rdi
movl -0x5c(%rbp), %esi
movsd 0x12f29(%rip), %xmm0    # 0x23538
movsd 0x12ea1(%rip), %xmm1    # 0x234b8
callq 0x113c0
movl %eax, -0x7c(%rbp)
movq -0x150(%rbp), %rdi
movl -0x5c(%rbp), %esi
movl -0x7c(%rbp), %edx
movl -0x40(%rbp), %ecx
callq 0x115b0
movq %rax, -0x158(%rbp)
leaq -0x90(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x21c0
leaq -0xa0(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x21c0
movl $0x0, -0x48(%rbp)
movl -0x48(%rbp), %eax
cmpl -0x7c(%rbp), %eax
jae 0x10a0c
movq -0x158(%rbp), %rax
movl -0x48(%rbp), %ecx
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
addq $0x20, %rax
movq %rax, -0xb8(%rbp)
movq -0xb8(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x21c0
leaq -0xf0(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x21c0
movl $0x0, -0x54(%rbp)
movq -0x158(%rbp), %rax
movl -0x48(%rbp), %ecx
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
movl %eax, -0x50(%rbp)
movl -0x54(%rbp), %eax
cmpl -0x50(%rbp), %eax
jae 0x1078a
movq -0x158(%rbp), %rax
movl -0x48(%rbp), %ecx
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
movl -0x54(%rbp), %ecx
movl (%rax,%rcx,4), %eax
movl %eax, -0x58(%rbp)
movl $0x0, -0x4c(%rbp)
cmpl $0x4, -0x4c(%rbp)
jae 0x1077a
movq -0xc8(%rbp), %rax
movq -0xa8(%rbp), %rcx
movl -0x58(%rbp), %edx
movl (%rcx,%rdx,4), %ecx
shll $0x2, %ecx
addl -0x4c(%rbp), %ecx
movl %ecx, %ecx
movsd (%rax,%rcx,8), %xmm0
movq -0xb8(%rbp), %rax
movl -0x4c(%rbp), %ecx
addsd (%rax,%rcx,8), %xmm0
movsd %xmm0, (%rax,%rcx,8)
movq -0x150(%rbp), %rax
movl -0x58(%rbp), %ecx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movl -0x4c(%rbp), %ecx
cvtsi2sdl 0x18(%rax,%rcx,4), %xmm0
movl -0x4c(%rbp), %eax
addsd -0xf0(%rbp,%rax,8), %xmm0
movsd %xmm0, -0xf0(%rbp,%rax,8)
movl -0x4c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x4c(%rbp)
jmp 0x10705
jmp 0x1077c
movl -0x54(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x54(%rbp)
jmp 0x106d4
movq -0xb8(%rbp), %rdi
movl $0x4, %esi
leaq -0x68(%rbp), %rdx
callq 0xe5d0
movl %eax, -0x64(%rbp)
movq -0xb8(%rbp), %rax
movl -0x64(%rbp), %ecx
movsd (%rax,%rcx,8), %xmm0
movq -0xb8(%rbp), %rax
movl -0x68(%rbp), %ecx
ucomisd (%rax,%rcx,8), %xmm0
jne 0x107ce
jp 0x107ce
xorl %eax, %eax
movl %eax, -0x184(%rbp)
jmp 0x107d7
movl -0x64(%rbp), %eax
movl %eax, -0x184(%rbp)
movl -0x184(%rbp), %eax
movl %eax, -0x114(%rbp)
cmpl $0x2, -0x114(%rbp)
jne 0x10919
cmpl $0x1, -0x68(%rbp)
jne 0x10919
movsd -0xe8(%rbp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x10919
movq -0xb8(%rbp), %rax
movsd 0x10(%rax), %xmm1
movq -0xb8(%rbp), %rax
movsd 0x8(%rax), %xmm0
mulsd 0x13e81(%rip), %xmm0    # 0x246b0
ucomisd %xmm1, %xmm0
ja 0x1087d
movq -0xb8(%rbp), %rax
movsd 0x10(%rax), %xmm1
movq -0xb8(%rbp), %rax
movsd 0x8(%rax), %xmm0
mulsd 0x13e63(%rip), %xmm0    # 0x246b8
ucomisd %xmm1, %xmm0
jbe 0x10919
movq -0x158(%rbp), %rax
movl -0x48(%rbp), %ecx
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
cmpl $0x3d090, 0x10(%rax)    # imm = 0x3D090
jbe 0x10919
movl $0x1, -0x114(%rbp)
cmpl $0x2, 0x20(%rbp)
jle 0x10917
movq 0x19760(%rip), %rax     # 0x29ff8
movq (%rax), %rdi
movl -0x48(%rbp), %ecx
movq -0x158(%rbp), %rax
movl -0x48(%rbp), %edx
imulq $0x48, %rdx, %rdx
addq %rdx, %rax
movsd 0x18(%rax), %xmm0
movq -0x158(%rbp), %rax
movl -0x48(%rbp), %edx
imulq $0x48, %rdx, %rdx
addq %rdx, %rax
movl 0x4(%rax), %r8d
movq -0x158(%rbp), %rax
movl -0x48(%rbp), %edx
imulq $0x48, %rdx, %rdx
addq %rdx, %rax
movl 0x10(%rax), %r9d
movq -0xb8(%rbp), %rax
movsd 0x8(%rax), %xmm1
movq -0xb8(%rbp), %rax
movsd 0x10(%rax), %xmm2
movq -0xb8(%rbp), %rax
movsd 0x18(%rax), %xmm3
leaq 0x13494(%rip), %rsi     # 0x23d9d
leaq 0x134f5(%rip), %rdx     # 0x23e05
movb $0x4, %al
callq 0x2290
jmp 0x10919
movl $0x0, -0x54(%rbp)
movq -0x158(%rbp), %rax
movl -0x48(%rbp), %ecx
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
movl 0x4(%rax), %eax
movl %eax, -0x50(%rbp)
movl -0x54(%rbp), %eax
cmpl -0x50(%rbp), %eax
jae 0x109e4
movq -0x158(%rbp), %rax
movl -0x48(%rbp), %ecx
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
movl -0x54(%rbp), %ecx
movl (%rax,%rcx,4), %eax
movl %eax, -0x58(%rbp)
movq -0x150(%rbp), %rax
movl -0x58(%rbp), %ecx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movl -0x114(%rbp), %ecx
cmpl $0x0, 0x18(%rax,%rcx,4)
jle 0x109d4
movq -0x130(%rbp), %rax
movq 0x38(%rax), %rax
movq 0x10(%rax), %rax
movq -0xa8(%rbp), %rcx
movl -0x58(%rbp), %edx
movl (%rcx,%rdx,4), %ecx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rdx
movl -0x114(%rbp), %eax
movl -0x90(%rbp,%rax,4), %ecx
addq %rdx, %rcx
movl %ecx, -0x90(%rbp,%rax,4)
movl -0x114(%rbp), %eax
movl -0xa0(%rbp,%rax,4), %ecx
addl $0x1, %ecx
movl %ecx, -0xa0(%rbp,%rax,4)
jmp 0x109d6
movl -0x54(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x54(%rbp)
jmp 0x10937
movl -0x114(%rbp), %ecx
movq -0x158(%rbp), %rax
movl -0x48(%rbp), %edx
imulq $0x48, %rdx, %rdx
addq %rdx, %rax
movl %ecx, 0x40(%rax)
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x10668
cmpl $0x2, 0x20(%rbp)
jle 0x10d1d
movq 0x195db(%rip), %rax     # 0x29ff8
movq (%rax), %rdi
movl -0x7c(%rbp), %ecx
leaq 0x133ea(%rip), %rsi     # 0x23e14
leaq 0x133d4(%rip), %rdx     # 0x23e05
movb $0x0, %al
callq 0x2290
movl $0x0, -0x48(%rbp)
movl -0x48(%rbp), %eax
cmpl -0x7c(%rbp), %eax
jae 0x10b1e
movq -0x158(%rbp), %rax
movl -0x48(%rbp), %ecx
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
addq $0x20, %rax
movq %rax, -0xb8(%rbp)
movq 0x1958a(%rip), %rax     # 0x29ff8
movq (%rax), %rdi
movl -0x48(%rbp), %ecx
movq -0x158(%rbp), %rax
movl -0x48(%rbp), %edx
imulq $0x48, %rdx, %rdx
addq %rdx, %rax
movl 0x40(%rax), %eax
movl %eax, %edx
leaq 0x190df(%rip), %rax     # 0x29b70
movq (%rax,%rdx,8), %r8
movq -0x158(%rbp), %rax
movl -0x48(%rbp), %edx
imulq $0x48, %rdx, %rdx
addq %rdx, %rax
movsd 0x18(%rax), %xmm0
movq -0x158(%rbp), %rax
movl -0x48(%rbp), %edx
imulq $0x48, %rdx, %rdx
addq %rdx, %rax
movl 0x4(%rax), %r9d
movq -0x158(%rbp), %rax
movl -0x48(%rbp), %edx
imulq $0x48, %rdx, %rdx
addq %rdx, %rax
movl 0x10(%rax), %eax
movq -0xb8(%rbp), %rdx
movsd 0x8(%rdx), %xmm1
movq -0xb8(%rbp), %rdx
movsd 0x10(%rdx), %xmm2
movq -0xb8(%rbp), %rdx
movsd 0x18(%rdx), %xmm3
leaq 0x13350(%rip), %rsi     # 0x23e4f
leaq 0x132ff(%rip), %rdx     # 0x23e05
movl %eax, (%rsp)
movb $0x4, %al
callq 0x2290
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x10a3f
movq 0x194d3(%rip), %rax     # 0x29ff8
movq (%rax), %rdi
movl -0x5c(%rbp), %ecx
leaq 0x13368(%rip), %rsi     # 0x23e9a
leaq 0x132cc(%rip), %rdx     # 0x23e05
movb $0x0, %al
callq 0x2290
movq -0x150(%rbp), %rdi
movl -0x5c(%rbp), %eax
movl %eax, %esi
movl $0x30, %edx
leaq 0xc68(%rip), %rcx       # 0x117c0
callq 0x20c0
movl $0x0, -0x48(%rbp)
movl -0x48(%rbp), %eax
cmpl -0x5c(%rbp), %eax
jae 0x10c82
movq -0x150(%rbp), %rax
movl -0x48(%rbp), %ecx
imulq $0x30, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %eax
movl %eax, -0x58(%rbp)
movq -0x138(%rbp), %rax
movq 0x10(%rax), %rax
movq -0xa8(%rbp), %rcx
movl -0x58(%rbp), %edx
movl (%rcx,%rdx,4), %ecx
shlq $0x6, %rcx
addq %rcx, %rax
movl (%rax), %eax
movl %eax, -0x114(%rbp)
movq 0x19444(%rip), %rax     # 0x29ff8
movq (%rax), %rdi
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rax
movq -0xa8(%rbp), %rcx
movl -0x58(%rbp), %edx
movl (%rcx,%rdx,4), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rcx
movl -0x114(%rbp), %eax
movl %eax, %edx
leaq 0x18f8b(%rip), %rax     # 0x29b70
movq (%rax,%rdx,8), %r8
movq -0x150(%rbp), %rax
movl -0x48(%rbp), %edx
imulq $0x30, %rdx, %rdx
addq %rdx, %rax
movl 0x1c(%rax), %r9d
movq -0x150(%rbp), %rax
movl -0x48(%rbp), %edx
imulq $0x30, %rdx, %rdx
addq %rdx, %rax
movl 0x20(%rax), %r11d
movq -0x150(%rbp), %rax
movl -0x48(%rbp), %edx
imulq $0x30, %rdx, %rdx
addq %rdx, %rax
movsd 0x8(%rax), %xmm0
movq -0x150(%rbp), %rax
movl -0x48(%rbp), %edx
imulq $0x30, %rdx, %rdx
addq %rdx, %rax
movl 0x10(%rax), %r10d
movq -0x150(%rbp), %rax
movl -0x48(%rbp), %edx
imulq $0x30, %rdx, %rdx
addq %rdx, %rax
movl 0x14(%rax), %eax
leaq 0x13265(%rip), %rsi     # 0x23ebe
leaq 0x131a5(%rip), %rdx     # 0x23e05
movl %r11d, (%rsp)
movl %r10d, 0x8(%rsp)
movl %eax, 0x10(%rsp)
movb $0x1, %al
callq 0x2290
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x10b64
movq -0x150(%rbp), %rdi
movl -0x5c(%rbp), %eax
movl %eax, %esi
movl $0x30, %edx
leaq 0xb86(%rip), %rcx       # 0x11820
callq 0x20c0
movq 0x19352(%rip), %rax     # 0x29ff8
movq (%rax), %rdi
leaq 0x13246(%rip), %rsi     # 0x23ef6
leaq 0x1314e(%rip), %rdx     # 0x23e05
movb $0x0, %al
callq 0x2290
movl $0x0, -0x48(%rbp)
cmpl $0x4, -0x48(%rbp)
jae 0x10d1b
movq 0x19326(%rip), %rax     # 0x29ff8
movq (%rax), %rdi
movl -0x48(%rbp), %eax
movl %eax, %ecx
leaq 0x18e8f(%rip), %rax     # 0x29b70
movq (%rax,%rcx,8), %rcx
movl -0x48(%rbp), %eax
movl -0xa0(%rbp,%rax,4), %r8d
movl -0x48(%rbp), %eax
movl -0x90(%rbp,%rax,4), %r9d
leaq 0x13228(%rip), %rsi     # 0x23f2a
leaq 0x130fc(%rip), %rdx     # 0x23e05
movb $0x0, %al
callq 0x2290
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x10cc5
jmp 0x10d1d
cmpl $0x0, -0x8c(%rbp)
jbe 0x10d89
cmpl $0x0, -0x88(%rbp)
jbe 0x10d89
movl -0x8c(%rbp), %eax
cmpl -0x40(%rbp), %eax
jbe 0x10d5b
movl -0x88(%rbp), %eax
cmpl -0x40(%rbp), %eax
jae 0x10d5b
movl $0x0, -0x88(%rbp)
movl $0x0, -0x98(%rbp)
jmp 0x10d87
movl -0x8c(%rbp), %eax
cmpl -0x40(%rbp), %eax
jae 0x10d85
movl -0x88(%rbp), %eax
cmpl -0x40(%rbp), %eax
jbe 0x10d85
movl $0x0, -0x8c(%rbp)
movl $0x0, -0x9c(%rbp)
jmp 0x10d87
jmp 0x10d89
movl $0x20, %edi
callq 0x22f0
movq %rax, -0x120(%rbp)
movl -0x5c(%rbp), %eax
shll $0x2, %eax
movl %eax, %eax
movl %eax, %edi
movl $0x4, %esi
callq 0x2240
movq %rax, %rcx
movq -0x120(%rbp), %rax
movq %rcx, (%rax)
movl $0x1, -0x48(%rbp)
cmpl $0x4, -0x48(%rbp)
jae 0x10dfe
movq -0x120(%rbp), %rax
movl -0x48(%rbp), %ecx
subl $0x1, %ecx
movl %ecx, %ecx
movq (%rax,%rcx,8), %rdx
movl -0x5c(%rbp), %eax
shlq $0x2, %rax
addq %rax, %rdx
movq -0x120(%rbp), %rax
movl -0x48(%rbp), %ecx
movq %rdx, (%rax,%rcx,8)
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x10dc2
leaq -0x110(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x21c0
cmpl $0x0, -0x8c(%rbp)
jbe 0x10fcc
cmpl $0x0, -0x88(%rbp)
jbe 0x10fcc
cmpl $0x2, 0x20(%rbp)
jle 0x10e50
movq 0x191c0(%rip), %rax     # 0x29ff8
movq (%rax), %rdi
leaq 0x13105(%rip), %rsi     # 0x23f47
leaq 0x12fbc(%rip), %rdx     # 0x23e05
movb $0x0, %al
callq 0x2290
xorps %xmm0, %xmm0
movsd %xmm0, -0x178(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x168(%rbp)
movsd 0x1262a(%rip), %xmm0    # 0x23498
movsd %xmm0, -0x180(%rbp)
movsd 0x1261a(%rip), %xmm0    # 0x23498
movsd %xmm0, -0x170(%rbp)
movq -0x158(%rbp), %rdi
movl -0x7c(%rbp), %esi
movq -0x150(%rbp), %rdx
movl -0x5c(%rbp), %ecx
movl 0x20(%rbp), %eax
movl $0x2dc6c0, %r8d         # imm = 0x2DC6C0
movl $0x3d090, %r9d          # imm = 0x3D090
movsd 0x1268f(%rip), %xmm0    # 0x23540
leaq -0x168(%rbp), %r14
leaq -0x170(%rbp), %rbx
leaq -0x178(%rbp), %r11
leaq -0x180(%rbp), %r10
movq %r14, (%rsp)
movq %rbx, 0x8(%rsp)
movq %r11, 0x10(%rsp)
movq %r10, 0x18(%rsp)
movl %eax, 0x20(%rsp)
callq 0x11860
movq -0x158(%rbp), %rdi
movl -0x7c(%rbp), %esi
movq -0x150(%rbp), %rdx
movl -0x5c(%rbp), %ecx
movsd -0x168(%rbp), %xmm0
movsd -0x170(%rbp), %xmm1
movl -0x40(%rbp), %r9d
leaq -0x110(%rbp), %r11
addq $0x8, %r11
movq -0x120(%rbp), %rax
movq 0x8(%rax), %r10
movl 0x20(%rbp), %eax
movl $0x1, %r8d
movsd 0x12608(%rip), %xmm2    # 0x23540
movl $0x2dc6c0, (%rsp)       # imm = 0x2DC6C0
movq %r11, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movl %eax, 0x18(%rsp)
callq 0x118a0
movl %eax, -0x8c(%rbp)
movq -0x158(%rbp), %rdi
movl -0x7c(%rbp), %esi
movq -0x150(%rbp), %rdx
movl -0x5c(%rbp), %ecx
movsd -0x178(%rbp), %xmm0
movsd -0x180(%rbp), %xmm1
movl -0x40(%rbp), %r9d
leaq -0x110(%rbp), %r11
addq $0x10, %r11
movq -0x120(%rbp), %rax
movq 0x10(%rax), %r10
movl 0x20(%rbp), %eax
movl $0x2, %r8d
movsd 0x12599(%rip), %xmm2    # 0x23540
movl $0x3d090, (%rsp)        # imm = 0x3D090
movq %r11, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movl %eax, 0x18(%rsp)
callq 0x118a0
movl %eax, -0x88(%rbp)
jmp 0x111b0
cmpl $0x0, -0x8c(%rbp)
jbe 0x1106d
cmpl $0x2, 0x20(%rbp)
jle 0x10ffe
movq 0x19012(%rip), %rax     # 0x29ff8
movq (%rax), %rdi
leaq 0x12f8b(%rip), %rsi     # 0x23f7b
leaq 0x12e0e(%rip), %rdx     # 0x23e05
movb $0x0, %al
callq 0x2290
movq -0x158(%rbp), %rdi
movl -0x7c(%rbp), %esi
movq -0x150(%rbp), %rdx
movl -0x5c(%rbp), %ecx
movl -0x40(%rbp), %r9d
leaq -0x110(%rbp), %r11
addq $0x8, %r11
movq -0x120(%rbp), %rax
movq 0x8(%rax), %r10
movl 0x20(%rbp), %eax
movl $0x1, %r8d
xorps %xmm0, %xmm0
movsd 0x12458(%rip), %xmm1    # 0x23498
movsd 0x124f8(%rip), %xmm2    # 0x23540
movl $0x2dc6c0, (%rsp)       # imm = 0x2DC6C0
movq %r11, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movl %eax, 0x18(%rsp)
callq 0x118a0
movl %eax, -0x8c(%rbp)
jmp 0x111ae
cmpl $0x0, -0x88(%rbp)
jbe 0x1110e
cmpl $0x2, 0x20(%rbp)
jle 0x1109f
movq 0x18f71(%rip), %rax     # 0x29ff8
movq (%rax), %rdi
leaq 0x12f16(%rip), %rsi     # 0x23fa7
leaq 0x12d6d(%rip), %rdx     # 0x23e05
movb $0x0, %al
callq 0x2290
movq -0x158(%rbp), %rdi
movl -0x7c(%rbp), %esi
movq -0x150(%rbp), %rdx
movl -0x5c(%rbp), %ecx
movl -0x40(%rbp), %r9d
leaq -0x110(%rbp), %r11
addq $0x10, %r11
movq -0x120(%rbp), %rax
movq 0x10(%rax), %r10
movl 0x20(%rbp), %eax
movl $0x2, %r8d
xorps %xmm0, %xmm0
movsd 0x123b7(%rip), %xmm1    # 0x23498
movsd 0x12457(%rip), %xmm2    # 0x23540
movl $0x3d090, (%rsp)        # imm = 0x3D090
movq %r11, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movl %eax, 0x18(%rsp)
callq 0x118a0
movl %eax, -0x88(%rbp)
jmp 0x111ac
cmpl $0x0, -0x84(%rbp)
jbe 0x111aa
cmpl $0x2, 0x20(%rbp)
jle 0x11140
movq 0x18ed0(%rip), %rax     # 0x29ff8
movq (%rax), %rdi
leaq 0x12ea1(%rip), %rsi     # 0x23fd3
leaq 0x12ccc(%rip), %rdx     # 0x23e05
movb $0x0, %al
callq 0x2290
movq -0x158(%rbp), %rdi
movl -0x7c(%rbp), %esi
movq -0x150(%rbp), %rdx
movl -0x5c(%rbp), %ecx
movl -0x40(%rbp), %r9d
leaq -0x110(%rbp), %r11
addq $0x18, %r11
movq -0x120(%rbp), %rax
movq 0x18(%rax), %r10
movl 0x20(%rbp), %eax
movl $0x3, %r8d
xorps %xmm0, %xmm0
movsd 0x12316(%rip), %xmm1    # 0x23498
movsd 0x123b6(%rip), %xmm2    # 0x23540
movl $0xc350, (%rsp)         # imm = 0xC350
movq %r11, 0x8(%rsp)
movq %r10, 0x10(%rsp)
movl %eax, 0x18(%rsp)
callq 0x118a0
movl %eax, -0x84(%rbp)
jmp 0x111ac
jmp 0x111ae
jmp 0x111b0
cmpl $0x0, -0x8c(%rbp)
jbe 0x1120b
movq -0x28(%rbp), %rdi
movq -0x138(%rbp), %rsi
movq -0x130(%rbp), %rdx
movq -0x150(%rbp), %rcx
movq -0x120(%rbp), %rax
movq 0x8(%rax), %r9
movsd -0x108(%rbp), %xmm0
movl -0x40(%rbp), %r11d
movq -0x148(%rbp), %r10
movl 0x20(%rbp), %eax
movl $0x1, %r8d
movl %r11d, (%rsp)
movq %r10, 0x8(%rsp)
movl %eax, 0x10(%rsp)
callq 0x11fe0
cmpl $0x0, -0x88(%rbp)
jbe 0x11266
movq -0x28(%rbp), %rdi
movq -0x138(%rbp), %rsi
movq -0x130(%rbp), %rdx
movq -0x150(%rbp), %rcx
movq -0x120(%rbp), %rax
movq 0x10(%rax), %r9
movsd -0x100(%rbp), %xmm0
movl -0x40(%rbp), %r11d
movq -0x148(%rbp), %r10
movl 0x20(%rbp), %eax
movl $0x2, %r8d
movl %r11d, (%rsp)
movq %r10, 0x8(%rsp)
movl %eax, 0x10(%rsp)
callq 0x11fe0
cmpl $0x0, -0x84(%rbp)
jbe 0x112c1
movq -0x28(%rbp), %rdi
movq -0x138(%rbp), %rsi
movq -0x130(%rbp), %rdx
movq -0x150(%rbp), %rcx
movq -0x120(%rbp), %rax
movq 0x18(%rax), %r9
movsd -0xf8(%rbp), %xmm0
movl -0x40(%rbp), %r11d
movq -0x148(%rbp), %r10
movl 0x20(%rbp), %eax
movl $0x3, %r8d
movl %r11d, (%rsp)
movq %r10, 0x8(%rsp)
movl %eax, 0x10(%rsp)
callq 0x11fe0
movq -0x120(%rbp), %rax
movq (%rax), %rdi
callq 0x2060
movq -0x120(%rbp), %rdi
callq 0x2060
movq -0x150(%rbp), %rdi
callq 0x2060
movl $0x0, -0x48(%rbp)
movl -0x48(%rbp), %eax
cmpl -0x7c(%rbp), %eax
jae 0x1131c
movq -0x158(%rbp), %rax
movl -0x48(%rbp), %ecx
imulq $0x48, %rcx, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rdi
callq 0x2060
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x112ef
movq -0x158(%rbp), %rdi
callq 0x2060
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x10353
movq -0xc8(%rbp), %rdi
callq 0x2060
movq -0xc0(%rbp), %rdi
callq 0x2060
movq -0x138(%rbp), %rdi
callq 0xd9a0
movq -0x140(%rbp), %rdi
callq 0xd9a0
cmpl $0x0, 0x18(%rbp)
je 0x1137b
movq -0x148(%rbp), %rdi
movl 0x20(%rbp), %esi
callq 0xe6e0
movq -0x148(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0x148(%rbp), %rax
movq (%rax), %rsi
movl $0x40, %edx
leaq -0x1d0c(%rip), %rcx     # 0xf690
callq 0x20c0
movq -0x148(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
addq $0x1a0, %rsp            # imm = 0x1A0
popq %rbx
popq %r14
popq %rbp
retq
nopl (%rax)