// File: /workspace/github_c_makefile_star2_O0/c-zhou[P]oatk/path.c
// Function: annot_subgraph_og_type1
og_component_v *annot_subgraph_og_type1(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, double **_annot_score, int verbose)
{
    uint32_t i, j, k, n_seg, m_seg, n_gene, sid, gid, imax, smax;
    uint32_t *ann_snameid_map;
    hmm_annot_t *annots, *annot;
    double a_s[4], *annot_score;
    int a_n[4], len, nv;
    uint8_t *visited;
    OG_TYPE_t og_t;
    og_component_t *component;
    og_component_v *component_v;
    asmg_t *g;

    n_gene = annot_db->n;
    annots = annot_db->a;
    n_seg = asg->n_seg;
    m_seg = annot_db->n_seg;

    if (n_gene == 0) return 0;

    // sort annotations by sid - score
    hmm_annot_db_sort(annot_db, ORDER_SID_OG);

    // build annot_db sname to asg sname id map
    MYMALLOC(ann_snameid_map, m_seg);
    for (i = 0; i < m_seg; ++i)
        ann_snameid_map[i] = asg_name2id(asg, annot_db->snames[i]);

    // calculate annotation score for each seg
    sid = annots[0].sid;
    MYBZERO(a_s, 4);
    MYBZERO(a_n, 4);
    MYCALLOC(annot_score, n_seg * 4);
    for (i = 0; i < n_gene; ++i) {
        annot = &annots[i];
        if (annot->sid != sid) {
            // here remember to convert annotation sid to asg sid
            if (ann_snameid_map[sid] != UINT32_MAX)
                memcpy(annot_score+ann_snameid_map[sid]*4, a_s, sizeof(double)*4);
            sid = annot->sid;
            MYBZERO(a_s, 4);
            MYBZERO(a_n, 4);
        }
        if (annot->evalue > max_eval || (no_trn && is_trn(annot)) || (no_rrn && is_rrn(annot)))
            continue;
        if (a_n[annot->og_type]++ < n_core)
            a_s[annot->og_type] += annot->score;
    }
    // here remember to convert annotation sid to asg sid
    if (ann_snameid_map[sid] != UINT32_MAX)
        memcpy(annot_score+ann_snameid_map[sid]*4, a_s, sizeof(double)*4);

    // extract each subgraph and do classification
    // TODO deal with graphs when mito and pltd are in the same subgraph
    MYCALLOC(component_v, 1);
    MYCALLOC(visited, n_seg);
    for (i = 0; i < n_seg; ++i) {
        if (visited[i] || asg->asmg->vtx[i].del)
            continue;
        g = asg_make_asmg_copy(asg->asmg, 0);
        asmg_subgraph(g, &i, 1, 0, 0, 0, 1);
        MYBZERO(a_s, 4);
        len = nv = 0;
        for (j = 0; j < n_seg; ++j) {
            if (!g->vtx[j].del) {
                for (k = 0; k < 4; ++k)
                    a_s[k] += annot_score[j*4+k];
                ++nv;
                len += g->vtx[j].len;
                visited[j] = 1;
            }
        }
        imax = max2(a_s, 4, &smax);
        og_t = OG_UNCLASSIFIED;
        if (len >= min_len || a_s[imax] >= min_score)
            // 1, mito; 2, pltd; 3, mini
            og_t = a_s[imax] == a_s[smax]? OG_UNCLASSIFIED : imax;

        if (og_t == OG_UNCLASSIFIED) {
            asmg_destroy(g);
            continue;
        }
        
        // make seg list
        uint32_t *comp_v;
        MYMALLOC(comp_v, nv);
        k = 0;
        for (j = 0; j < n_seg; ++j)
            if (!g->vtx[j].del)
                comp_v[k++] = j;
        // make gene list
        // get all genes in the component
        kvec_t(uint64_t) comp_g;
        kv_init(comp_g);
        for (j = 0; j < n_gene; ++j) {
            annot = &annots[j];
            sid = ann_snameid_map[annot->sid];
            if (sid == UINT32_MAX ||
                    g->vtx[sid].del ||
                    annot->evalue > max_eval ||
                    (no_trn && is_trn(annot)) || 
                    (no_rrn && is_rrn(annot)))
                continue;
            // gid:30 | OG_TYPE:2 | score:32
            kv_push(uint64_t, comp_g,
                    ((uint64_t) annot->gid << 2 | annot->og_type) << 32 | 
                    (uint32_t) annot->score);
        }
        // sort by gid and then score - descending order
        qsort(comp_g.a, comp_g.n, sizeof(uint64_t), u64_cmpfunc_r);
        // keep only the best hit for each gene
        k = 0;
        gid = UINT32_MAX;
        for (j = 0; j < comp_g.n; ++j) {
            if (comp_g.a[j] >> 32 != gid) {
                comp_g.a[k++] = comp_g.a[j];
                gid = comp_g.a[j] >> 32;
            }
        }
        comp_g.n = comp_g.m = k;
        MYREALLOC(comp_g.a, k);

        // add og_component
        kv_pushp(og_component_t, *component_v, &component);
        component->type = (uint32_t) og_t;
        component->score = a_s[imax];
        component->sscore = a_s[smax];
        component->len = len;
        component->nv = nv;
        component->v = comp_v;
        component->ng = comp_g.n;
        component->g = comp_g.a;
        component->asmg = g;

        if (verbose > 0)
            fprintf(stderr, "[M::%s] subgraph seeding from %s: segs, %d; size, %d; mito score, %.3f; pltd score, %.3f; mini score, %.3f; classification, %d\n",
                    __func__, asg->seg[i].name, nv, len, a_s[OG_MITO], a_s[OG_PLTD], a_s[OG_MINI], og_t);
    }
    
    free(visited);
    if (_annot_score)
        *_annot_score = annot_score;
    else
        free(annot_score);
    free(ann_snameid_map);

    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
subq $0x120, %rsp            # imm = 0x120
movl 0x20(%rbp), %eax
movq 0x18(%rbp), %rax
movl 0x10(%rbp), %eax
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movl %ecx, -0x20(%rbp)
movsd %xmm0, -0x28(%rbp)
movl %r8d, -0x2c(%rbp)
movl %r9d, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl %eax, -0x48(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x68(%rbp)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movl %eax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movl 0x1c(%rax), %eax
movl %eax, -0x44(%rbp)
cmpl $0x0, -0x48(%rbp)
jne 0xf74e
movq $0x0, -0x8(%rbp)
jmp 0x100ee
movq -0x10(%rbp), %rdi
movl $0x5, %esi
callq 0x1eeb0
movl -0x44(%rbp), %eax
movl %eax, %edi
shlq $0x2, %rdi
callq 0x22f0
movq %rax, -0x60(%rbp)
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
cmpl -0x44(%rbp), %eax
jae 0xf7ac
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x34(%rbp), %ecx
movq (%rax,%rcx,8), %rsi
callq 0x8bd0
movl %eax, %edx
movq -0x60(%rbp), %rax
movl -0x34(%rbp), %ecx
movl %edx, (%rax,%rcx,4)
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0xf775
movq -0x68(%rbp), %rax
movl 0x4c(%rax), %eax
movl %eax, -0x4c(%rbp)
leaq -0x90(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x21c0
leaq -0xb0(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x21c0
movl -0x40(%rbp), %eax
shll $0x2, %eax
movl %eax, %eax
movl %eax, %edi
movl $0x8, %esi
callq 0x2240
movq %rax, -0x98(%rbp)
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
cmpl -0x48(%rbp), %eax
jae 0xf941
movq -0x68(%rbp), %rax
movl -0x34(%rbp), %ecx
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rax
movl 0x4c(%rax), %eax
cmpl -0x4c(%rbp), %eax
je 0xf8a4
movq -0x60(%rbp), %rax
movl -0x4c(%rbp), %ecx
cmpl $-0x1, (%rax,%rcx,4)
je 0xf874
movq -0x98(%rbp), %rax
movq -0x60(%rbp), %rcx
movl -0x4c(%rbp), %edx
movl (%rcx,%rdx,4), %ecx
shll $0x2, %ecx
movl %ecx, %ecx
movq -0x90(%rbp), %rdx
movq %rdx, (%rax,%rcx,8)
movq -0x88(%rbp), %rdx
movq %rdx, 0x8(%rax,%rcx,8)
movq -0x80(%rbp), %rdx
movq %rdx, 0x10(%rax,%rcx,8)
movq -0x78(%rbp), %rdx
movq %rdx, 0x18(%rax,%rcx,8)
movq -0x70(%rbp), %rax
movl 0x4c(%rax), %eax
movl %eax, -0x4c(%rbp)
leaq -0x90(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x21c0
leaq -0xb0(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x21c0
movq -0x70(%rbp), %rax
movsd 0x30(%rax), %xmm0
ucomisd -0x28(%rbp), %xmm0
ja 0xf8dc
cmpl $0x0, -0x1c(%rbp)
je 0xf8c8
movq -0x70(%rbp), %rdi
callq 0x1fdd0
cmpl $0x0, %eax
jne 0xf8dc
cmpl $0x0, -0x20(%rbp)
je 0xf8de
movq -0x70(%rbp), %rdi
callq 0x1fe10
cmpl $0x0, %eax
je 0xf8de
jmp 0xf933
movq -0x70(%rbp), %rax
movl 0x48(%rax), %eax
shrl $0x1d, %eax
andl $0x3, %eax
movl %eax, %eax
movl %eax, %ecx
movl -0xb0(%rbp,%rcx,4), %eax
movl %eax, %edx
addl $0x1, %edx
movl %edx, -0xb0(%rbp,%rcx,4)
cmpl -0x2c(%rbp), %eax
jge 0xf931
movq -0x70(%rbp), %rax
movsd 0x38(%rax), %xmm0
movq -0x70(%rbp), %rax
movl 0x48(%rax), %eax
shrl $0x1d, %eax
andl $0x3, %eax
movl %eax, %eax
addsd -0x90(%rbp,%rax,8), %xmm0
movsd %xmm0, -0x90(%rbp,%rax,8)
jmp 0xf933
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0xf7fe
movq -0x60(%rbp), %rax
movl -0x4c(%rbp), %ecx
cmpl $-0x1, (%rax,%rcx,4)
je 0xf98d
movq -0x98(%rbp), %rax
movq -0x60(%rbp), %rcx
movl -0x4c(%rbp), %edx
movl (%rcx,%rdx,4), %ecx
shll $0x2, %ecx
movl %ecx, %ecx
movq -0x90(%rbp), %rdx
movq %rdx, (%rax,%rcx,8)
movq -0x88(%rbp), %rdx
movq %rdx, 0x8(%rax,%rcx,8)
movq -0x80(%rbp), %rdx
movq %rdx, 0x10(%rax,%rcx,8)
movq -0x78(%rbp), %rdx
movq %rdx, 0x18(%rax,%rcx,8)
movl $0x1, %edi
movl $0x18, %esi
callq 0x2240
movq %rax, -0xd8(%rbp)
movl -0x40(%rbp), %eax
movl %eax, %edi
movl $0x1, %esi
callq 0x2240
movq %rax, -0xc0(%rbp)
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
cmpl -0x40(%rbp), %eax
jae 0x10076
movq -0xc0(%rbp), %rax
movl -0x34(%rbp), %ecx
movzbl (%rax,%rcx), %eax
cmpl $0x0, %eax
jne 0xfa03
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x10(%rax), %rax
movl -0x34(%rbp), %ecx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movl 0x20(%rax), %eax
shrl $0x1e, %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0xfa08
jmp 0x10068
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0xb610
movq %rax, -0xe0(%rbp)
movq -0xe0(%rbp), %rdi
leaq -0x34(%rbp), %rsi
movl $0x1, %edx
xorl %ecx, %ecx
xorl %eax, %eax
movl %eax, %r9d
movq %r9, %r8
movl $0x1, (%rsp)
callq 0x1bb00
leaq -0x90(%rbp), %rdi
xorl %esi, %esi
movl $0x20, %edx
callq 0x21c0
movl $0x0, -0xb8(%rbp)
movl $0x0, -0xb4(%rbp)
movl $0x0, -0x38(%rbp)
movl -0x38(%rbp), %eax
cmpl -0x40(%rbp), %eax
jae 0xfb41
movq -0xe0(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x38(%rbp), %ecx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movl 0x20(%rax), %eax
shrl $0x1e, %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0xfb31
movl $0x0, -0x3c(%rbp)
cmpl $0x4, -0x3c(%rbp)
jae 0xfaeb
movq -0x98(%rbp), %rax
movl -0x38(%rbp), %ecx
shll $0x2, %ecx
addl -0x3c(%rbp), %ecx
movl %ecx, %ecx
movsd (%rax,%rcx,8), %xmm0
movl -0x3c(%rbp), %eax
addsd -0x90(%rbp,%rax,8), %xmm0
movsd %xmm0, -0x90(%rbp,%rax,8)
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0xfaae
movl -0xb8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xb8(%rbp)
movq -0xe0(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x38(%rbp), %ecx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rcx
movslq -0xb4(%rbp), %rax
addq %rcx, %rax
movl %eax, -0xb4(%rbp)
movq -0xc0(%rbp), %rax
movl -0x38(%rbp), %ecx
movb $0x1, (%rax,%rcx)
jmp 0xfb33
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0xfa74
leaq -0x90(%rbp), %rdi
movl $0x4, %esi
leaq -0x58(%rbp), %rdx
callq 0xe5d0
movl %eax, -0x54(%rbp)
movl $0x0, -0xc4(%rbp)
movl -0xb4(%rbp), %eax
cmpl -0x30(%rbp), %eax
jge 0xfb85
movl -0x54(%rbp), %eax
movsd -0x90(%rbp,%rax,8), %xmm0
cvtsi2sdl 0x10(%rbp), %xmm1
ucomisd %xmm1, %xmm0
jb 0xfbc0
movl -0x54(%rbp), %eax
movsd -0x90(%rbp,%rax,8), %xmm0
movl -0x58(%rbp), %eax
ucomisd -0x90(%rbp,%rax,8), %xmm0
jne 0xfbab
jp 0xfbab
xorl %eax, %eax
movl %eax, -0x104(%rbp)
jmp 0xfbb4
movl -0x54(%rbp), %eax
movl %eax, -0x104(%rbp)
movl -0x104(%rbp), %eax
movl %eax, -0xc4(%rbp)
cmpl $0x0, -0xc4(%rbp)
jne 0xfbda
movq -0xe0(%rbp), %rdi
callq 0x17d40
jmp 0x10068
movslq -0xb8(%rbp), %rdi
shlq $0x2, %rdi
callq 0x22f0
movq %rax, -0xe8(%rbp)
movl $0x0, -0x3c(%rbp)
movl $0x0, -0x38(%rbp)
movl -0x38(%rbp), %eax
cmpl -0x40(%rbp), %eax
jae 0xfc51
movq -0xe0(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x38(%rbp), %ecx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movl 0x20(%rax), %eax
shrl $0x1e, %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0xfc44
movl -0x38(%rbp), %edx
movq -0xe8(%rbp), %rax
movl -0x3c(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x3c(%rbp)
movl %ecx, %ecx
movl %edx, (%rax,%rcx,4)
jmp 0xfc46
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0xfbff
movq $0x0, -0xf8(%rbp)
movq $0x0, -0x100(%rbp)
movq $0x0, -0xf0(%rbp)
movl $0x0, -0x38(%rbp)
movl -0x38(%rbp), %eax
cmpl -0x48(%rbp), %eax
jae 0xfdd6
movq -0x68(%rbp), %rax
movl -0x38(%rbp), %ecx
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x70(%rbp)
movq -0x60(%rbp), %rax
movq -0x70(%rbp), %rcx
movl 0x4c(%rcx), %ecx
movl (%rax,%rcx,4), %eax
movl %eax, -0x4c(%rbp)
cmpl $-0x1, -0x4c(%rbp)
je 0xfd09
movq -0xe0(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x4c(%rbp), %ecx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movl 0x20(%rax), %eax
shrl $0x1e, %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0xfd09
movq -0x70(%rbp), %rax
movsd 0x30(%rax), %xmm0
ucomisd -0x28(%rbp), %xmm0
ja 0xfd09
cmpl $0x0, -0x1c(%rbp)
je 0xfcf5
movq -0x70(%rbp), %rdi
callq 0x1fdd0
cmpl $0x0, %eax
jne 0xfd09
cmpl $0x0, -0x20(%rbp)
je 0xfd0e
movq -0x70(%rbp), %rdi
callq 0x1fe10
cmpl $0x0, %eax
je 0xfd0e
jmp 0xfdc8
jmp 0xfd10
movq -0x100(%rbp), %rax
cmpq -0xf8(%rbp), %rax
jne 0xfd77
cmpq $0x0, -0xf8(%rbp)
je 0xfd3d
movq -0xf8(%rbp), %rax
shlq %rax
movq %rax, -0x110(%rbp)
jmp 0xfd4b
movl $0x2, %eax
movq %rax, -0x110(%rbp)
jmp 0xfd4b
movq -0x110(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0xf0(%rbp), %rdi
movq -0xf8(%rbp), %rsi
shlq $0x3, %rsi
callq 0x2330
movq %rax, -0xf0(%rbp)
movq -0x70(%rbp), %rax
movl 0x48(%rax), %esi
movl %esi, %ecx
andl $0x1fffffff, %ecx       # imm = 0x1FFFFFFF
movl %ecx, %edx
shrl $0x1d, %esi
andl $0x3, %esi
movl %esi, %ecx
shlq $0x22, %rdx
shlq $0x20, %rcx
orq %rcx, %rdx
cvttsd2si 0x38(%rax), %rax
movl %eax, %eax
orq %rax, %rdx
movq -0xf0(%rbp), %rax
movq -0x100(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x100(%rbp)
movq %rdx, (%rax,%rcx,8)
jmp 0xfdc8
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0xfc79
movq -0xf0(%rbp), %rdi
movq -0x100(%rbp), %rsi
movl $0x8, %edx
leaq -0x1750(%rip), %rcx     # 0xe6a0
callq 0x20c0
movl $0x0, -0x3c(%rbp)
movl $0xffffffff, -0x50(%rbp) # imm = 0xFFFFFFFF
movl $0x0, -0x38(%rbp)
movl -0x38(%rbp), %eax
cmpq -0x100(%rbp), %rax
jae 0xfe78
movq -0xf0(%rbp), %rax
movl -0x38(%rbp), %ecx
movq (%rax,%rcx,8), %rax
shrq $0x20, %rax
movl -0x50(%rbp), %ecx
cmpq %rcx, %rax
je 0xfe6b
movq -0xf0(%rbp), %rax
movl -0x38(%rbp), %ecx
movq (%rax,%rcx,8), %rdx
movq -0xf0(%rbp), %rax
movl -0x3c(%rbp), %ecx
movl %ecx, %esi
addl $0x1, %esi
movl %esi, -0x3c(%rbp)
movl %ecx, %ecx
movq %rdx, (%rax,%rcx,8)
movq -0xf0(%rbp), %rax
movl -0x38(%rbp), %ecx
movq (%rax,%rcx,8), %rax
shrq $0x20, %rax
movl %eax, -0x50(%rbp)
jmp 0xfe6d
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0xfe0a
movl -0x3c(%rbp), %eax
movq %rax, -0xf8(%rbp)
movq %rax, -0x100(%rbp)
movq -0xf0(%rbp), %rdi
movl -0x3c(%rbp), %eax
movl %eax, %esi
shlq $0x3, %rsi
callq 0x2330
movq %rax, -0xf0(%rbp)
movq -0xd8(%rbp), %rax
movq (%rax), %rax
movq -0xd8(%rbp), %rcx
cmpq 0x8(%rcx), %rax
jne 0xff2e
movq -0xd8(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0xfee1
movq -0xd8(%rbp), %rax
movq 0x8(%rax), %rax
shlq %rax
movq %rax, -0x118(%rbp)
jmp 0xfeef
movl $0x2, %eax
movq %rax, -0x118(%rbp)
jmp 0xfeef
movq -0x118(%rbp), %rcx
movq -0xd8(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0xd8(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0xd8(%rbp), %rax
movq 0x8(%rax), %rsi
shlq $0x6, %rsi
callq 0x2330
movq %rax, %rcx
movq -0xd8(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0xd8(%rbp), %rax
movq 0x10(%rax), %rax
movq -0xd8(%rbp), %rdx
movq (%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, (%rdx)
shlq $0x6, %rcx
addq %rcx, %rax
movq %rax, -0xd0(%rbp)
movl -0xc4(%rbp), %ecx
movq -0xd0(%rbp), %rax
movl %ecx, (%rax)
movl -0x54(%rbp), %eax
movsd -0x90(%rbp,%rax,8), %xmm0
movq -0xd0(%rbp), %rax
movsd %xmm0, 0x8(%rax)
movl -0x58(%rbp), %eax
movsd -0x90(%rbp,%rax,8), %xmm0
movq -0xd0(%rbp), %rax
movsd %xmm0, 0x10(%rax)
movl -0xb4(%rbp), %ecx
movq -0xd0(%rbp), %rax
movl %ecx, 0x18(%rax)
movl -0xb8(%rbp), %ecx
movq -0xd0(%rbp), %rax
movl %ecx, 0x1c(%rax)
movq -0xe8(%rbp), %rcx
movq -0xd0(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x100(%rbp), %rax
movl %eax, %ecx
movq -0xd0(%rbp), %rax
movl %ecx, 0x28(%rax)
movq -0xf0(%rbp), %rcx
movq -0xd0(%rbp), %rax
movq %rcx, 0x30(%rax)
movq -0xe0(%rbp), %rcx
movq -0xd0(%rbp), %rax
movq %rcx, 0x38(%rax)
cmpl $0x0, 0x20(%rbp)
jle 0x10066
movq 0x19fe8(%rip), %rax     # 0x29ff8
movq (%rax), %rdi
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x34(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rcx
movl -0xb8(%rbp), %r8d
movl -0xb4(%rbp), %r9d
movsd -0x88(%rbp), %xmm0
movsd -0x80(%rbp), %xmm1
movsd -0x78(%rbp), %xmm2
movl -0xc4(%rbp), %eax
leaq 0x13c99(%rip), %rsi     # 0x23cee
leaq 0x13d29(%rip), %rdx     # 0x23d85
movl %eax, (%rsp)
movb $0x3, %al
callq 0x2290
jmp 0x10068
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0xf9c0
movq -0xc0(%rbp), %rdi
callq 0x2060
cmpq $0x0, 0x18(%rbp)
je 0x10099
movq -0x98(%rbp), %rcx
movq 0x18(%rbp), %rax
movq %rcx, (%rax)
jmp 0x100a5
movq -0x98(%rbp), %rdi
callq 0x2060
movq -0x60(%rbp), %rdi
callq 0x2060
movq -0xd8(%rbp), %rdi
movl 0x20(%rbp), %esi
callq 0xe6e0
movq -0xd8(%rbp), %rax
movq 0x10(%rax), %rdi
movq -0xd8(%rbp), %rax
movq (%rax), %rsi
movl $0x40, %edx
leaq -0xa4e(%rip), %rcx      # 0xf690
callq 0x20c0
movq -0xd8(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x120, %rsp            # imm = 0x120
popq %rbp
retq
nopl (%rax,%rax)