// File: chhylp123[P]hifiasm/hic.cpp
// Function: clean_bubble_chain_by_hic(ma_ug_t*, kv_u_trans_t*, bubble_type*)
void clean_bubble_chain_by_hic(ma_ug_t* ug, kv_u_trans_t *ta, bubble_type* bub)
{   
    double index_time = yak_realtime();
    ma_ug_t *bs_ug = bub->b_ug;
    uint32_t v, u, i, m, max_i, nv, rv, n_vx, root, flag_pri = 1, flag_aux = 2, flag_ava = 4, occ;
    double w, cutoff = 2;
    uint32_t max_w_occ = 4;
    asg_arc_t *av = NULL;
    n_vx = bs_ug->g->n_seq << 1;
    uint8_t *vis = NULL; CALLOC(vis, ug->g->n_seq<<1);
    uint8_t *is_vis = NULL; CALLOC(is_vis, ug->g->n_seq<<1);
    uint8_t *is_used = NULL; CALLOC(is_used, n_vx);
    uint8_t *dedup = NULL; CALLOC(dedup, ug->g->n_seq<<1);
    buf_t b; memset(&b, 0, sizeof(buf_t));
    kvec_t_u32_warp stack, result, res_utg;
    kv_init(stack.a); kv_init(result.a); kv_init(res_utg.a);
    double *e_w = NULL; MALLOC(e_w, bs_ug->g->n_arc);
    uint32_t *e_occ = NULL, *a_occ = NULL; CALLOC(e_occ, bs_ug->g->n_arc);
    double *aw = NULL, max_w = 0;
    kvec_asg_arc_t_warp edges; kv_init(edges.a);
    ma_ug_t *back_bs_ug = copy_untig_graph(bs_ug);

    for (i = 0; i < bs_ug->g->n_arc; i++)///weight of bs_ug's edges
    {
        e_w[i] = -1;
    }

    for (i = 0; i < bs_ug->g->n_seq; i++)///init all chain with flag_aux 
    {
        set_b_utg_weight_flag(bub, &b, i<<1, vis, flag_aux, NULL);
    }


    for (v = 0; v < n_vx; v++)
    {
        av = asg_arc_a(bs_ug->g, v);
        nv = asg_arc_n(bs_ug->g, v);
        aw = (&e_w[bs_ug->g->idx[v]>>32]);
        a_occ = (&e_occ[bs_ug->g->idx[v]>>32]);
        if(nv <= 1 || get_real_length(bs_ug->g, v, NULL) <= 1) continue;
        set_b_utg_weight_flag_xor(bub, bs_ug, &b, v^1, vis, flag_pri, NULL);

        for (i = 0; i < nv; i++)
        {
            if(av[i].del) continue;
            w = get_chain_weight_hic(bub, bs_ug, &b, av[i].v, v, ta, vis, is_vis, ug, &stack, &result, flag_pri, flag_ava, NULL, &occ);
            aw[i] = w;
            a_occ[i] = occ;
        }

        set_b_utg_weight_flag_xor(bub, bs_ug, &b, v^1, vis, flag_pri, NULL);
    }


    for (v = 0; v < n_vx; v++)
    {
        av = asg_arc_a(bs_ug->g, v);
        nv = asg_arc_n(bs_ug->g, v);
        aw = (&e_w[bs_ug->g->idx[v]>>32]);
        a_occ = (&e_occ[bs_ug->g->idx[v]>>32]);
        if(nv <= 1 || get_real_length(bs_ug->g, v, NULL) <= 1) continue;

        for (i = rv = 0, max_i = (uint32_t)-1; i < nv; i++)
        {
            if(av[i].del) continue;
            if(max_i == (uint32_t)-1)
            {
                max_i = i;
                max_w = aw[i];
            }
            else if(max_w < aw[i])
            {
                max_i = i;
                max_w = aw[i];
            }
            rv++;
        }

        if(max_i == (uint32_t)-1) continue;
        ///if(max_w <= max_w_cutoff) continue; //must be <=
        if(a_occ[max_i] <= max_w_occ) continue; //must be <=
        if(rv < 2) continue;

        for (i = 0; i < nv; i++)
        {
            if(av[i].del) continue;
            if(i == max_i) continue;
            ///if((av[i].v>>1) == (v>>1) && aw[i] <= max_w_cutoff) continue; ///might be not reasonable
            if((av[i].v>>1) == (v>>1) && a_occ[i] <= max_w_occ) continue; ///might be not reasonable
            if(aw[i]*cutoff < max_w && double_check_bub_branch(&av[i], bs_ug, e_w, e_occ, cutoff, max_w_occ))
            {
                av[i].del = 1; asg_arc_del(bs_ug->g, (av[i].v)^1, (av[i].ul>>32)^1, 1);
            }
        }
    }

    uint32_t rId_0, ori_0, rId_1, ori_1, root_0, root_1, new_bub;
    if(bub->num.n > 0) bub->num.n--;
    new_bub = bub->b_g->n_seq;

    for (v = 0; v < n_vx; v++)
    {
        av = asg_arc_a(bs_ug->g, v);
        nv = asg_arc_n(bs_ug->g, v);
        rv = get_real_length(bs_ug->g, v, NULL);
        if(nv == rv) continue;///no edge drop
        if(rv != 1 || nv <= 1) continue;
        get_real_length(bs_ug->g, v, &u);
        u ^= 1;
        if(get_real_length(bs_ug->g, u, NULL) != 1) continue;
        drop_g_edges_by_utg(bub, bub->b_g, bs_ug, NULL, v, u);
        if(is_used[v] || is_used[u]) continue;

        is_used[v] = is_used[u] = 1;
        root = get_utg_end_from_btg(bub, bs_ug, v);
        rId_0 = root>>1;
        ori_0 = root&1;
        get_bubbles(bub, rId_0, ori_0 == 1?&root_0:NULL, ori_0 == 0?&root_0:NULL, NULL, NULL, NULL);

        root = get_utg_end_from_btg(bub, bs_ug, u);
        rId_1 = root>>1;
        ori_1 = root&1;
        get_bubbles(bub, rId_1, ori_1 == 1?&root_1:NULL, ori_1 == 0?&root_1:NULL, NULL, NULL, NULL);

        res_utg.a.n = 0;
        set_b_utg_weight_flag_xor(bub, back_bs_ug, &b, v^1, vis, flag_pri, NULL);
        get_chain_weight_hic(bub, back_bs_ug, &b, u^1, v, ta, vis, is_vis, ug, &stack, &result, flag_pri, flag_ava, &res_utg, NULL);
        set_b_utg_weight_flag_xor(bub, back_bs_ug, &b, v^1, vis, flag_pri, NULL);
        for (i = 0; i < res_utg.a.n; i++) dedup[res_utg.a.a[i]>>1] |= 1;

        set_b_utg_weight_flag_xor(bub, back_bs_ug, &b, u^1, vis, flag_pri, NULL);
        get_chain_weight_hic(bub, back_bs_ug, &b, v^1, u, ta, vis, is_vis, ug, &stack, &result, flag_pri, flag_ava, &res_utg, NULL);
        set_b_utg_weight_flag_xor(bub, back_bs_ug, &b, u^1, vis, flag_pri, NULL);
        for (; i < res_utg.a.n; i++) dedup[res_utg.a.a[i]>>1] |= 2;

        for (i = m = 0; i < res_utg.a.n; i++)
        {
            if(dedup[res_utg.a.a[i]>>1] == 3)
            {
                res_utg.a.a[m] = res_utg.a.a[i];
                m++;
            }
            dedup[res_utg.a.a[i]>>1] = 0;
        }
        res_utg.a.n = m;

        if(!IF_HOM(root_0>>1, *bub)) kv_push(uint32_t, res_utg.a, root_0);
        if(!IF_HOM(root_1>>1, *bub)) kv_push(uint32_t, res_utg.a, root_1);

        update_bubble_graph(&res_utg, root_0^1, rId_0, root_1^1, rId_1, bub, &edges, bub->b_g, NULL, NULL, ug, NULL, 0);

        ///fprintf(stderr, "\n******src-btg%.6ul------>dest-btg%.6ul\n", (v>>1)+1, (u>>1)+1);
    }

    kv_push(uint32_t, bub->num, bub->list.n);
    new_bub = bub->b_g->n_seq - new_bub;
    bub->cross_bub += new_bub;
    ///actually not useful, and may have bug when one bubble at multipe chains
    if(new_bub) update_bub_b_s_idx(bub);
    
    ///debug_tangle_bubble(bub, bub->b_g->n_seq - bub->cross_bub, bub->b_g->n_seq - 1, "Cross-tangle");
    update_bsg(bub->b_g, &edges);

    ma_ug_destroy(bs_ug);
    bs_ug = ma_ug_gen(bub->b_g);
    bub->b_ug = bs_ug;
    kv_destroy(bub->chain_weight);
    ma_utg_t *u_x = NULL;
    bs_ug = bub->b_ug;
    kv_malloc(bub->chain_weight, bs_ug->u.n); bub->chain_weight.n = bs_ug->u.n;
    for (i = 0; i < bs_ug->u.n; i++)
    {
        u_x = &(bs_ug->u.a[i]);
        bub->chain_weight.a[i].id = i;
        // if(u->n <= 1) ///not a chain
        // {
        //     bub->chain_weight.a[i].b_occ = bub->chain_weight.a[i].g_occ = 0;
        //     bub->chain_weight.a[i].del = 1;
        // } 
        // else
        {
            bub->chain_weight.a[i].del = 0;
            calculate_chain_weight(u_x, bub, ug, &(bub->chain_weight.a[i]));
        }
    }
    qsort(bub->chain_weight.a, bub->chain_weight.n, sizeof(chain_w_type), cmp_chain_weight);

    
    
    free(vis); free(is_vis); free(is_used); free(dedup); free(b.b.a); free(e_w); free(e_occ);
    kv_destroy(stack.a); kv_destroy(result.a); kv_destroy(res_utg.a); kv_destroy(edges.a);
    ma_ug_destroy(back_bs_ug);
    fprintf(stderr, "[M::%s::%.3f]\n", __func__, yak_realtime()-index_time);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2a8, %rsp            # imm = 0x2A8
movq %rdi, -0x30(%rbp)
movq %rsi, -0x38(%rbp)
movq %rdx, -0x40(%rbp)
callq 0x1b7ca0
movsd %xmm0, -0x48(%rbp)
movq -0x40(%rbp), %rax
movq 0xc0(%rax), %rax
movq %rax, -0x50(%rbp)
movl $0x1, -0x78(%rbp)
movl $0x2, -0x7c(%rbp)
movl $0x4, -0x80(%rbp)
movsd 0x189262(%rip), %xmm0   # 0x3822e8
movsd %xmm0, -0x98(%rbp)
movl $0x4, -0x9c(%rbp)
movq $0x0, -0xa8(%rbp)
movq -0x50(%rbp), %rax
movq 0x18(%rax), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
shll %eax
movl %eax, -0x70(%rbp)
movq $0x0, -0xb0(%rbp)
movq -0x30(%rbp), %rax
movq 0x18(%rax), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
shll %eax
movslq %eax, %rdi
movl $0x1, %esi
callq 0x2140
movq %rax, -0xb0(%rbp)
movq $0x0, -0xb8(%rbp)
movq -0x30(%rbp), %rax
movq 0x18(%rax), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
shll %eax
movslq %eax, %rdi
movl $0x1, %esi
callq 0x2140
movq %rax, -0xb8(%rbp)
movq $0x0, -0xc0(%rbp)
movl -0x70(%rbp), %eax
movl %eax, %edi
movl $0x1, %esi
callq 0x2140
movq %rax, -0xc0(%rbp)
movq $0x0, -0xc8(%rbp)
movq -0x30(%rbp), %rax
movq 0x18(%rax), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
shll %eax
movslq %eax, %rdi
movl $0x1, %esi
callq 0x2140
movq %rax, -0xc8(%rbp)
leaq -0x130(%rbp), %rdi
xorl %esi, %esi
movl $0x68, %edx
callq 0x2100
movq $0x0, -0x148(%rbp)
movq $0x0, -0x150(%rbp)
movq $0x0, -0x140(%rbp)
movq $0x0, -0x168(%rbp)
movq $0x0, -0x170(%rbp)
movq $0x0, -0x160(%rbp)
movq $0x0, -0x188(%rbp)
movq $0x0, -0x190(%rbp)
movq $0x0, -0x180(%rbp)
movq $0x0, -0x198(%rbp)
movq -0x50(%rbp), %rax
movq 0x18(%rax), %rax
movl 0x4(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, %eax
movl %eax, %edi
shlq $0x3, %rdi
callq 0x2270
movq %rax, -0x198(%rbp)
movq $0x0, -0x1a0(%rbp)
movq $0x0, -0x1a8(%rbp)
movq -0x50(%rbp), %rax
movq 0x18(%rax), %rax
movl 0x4(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, %eax
movl %eax, %edi
movl $0x4, %esi
callq 0x2140
movq %rax, -0x1a0(%rbp)
movq $0x0, -0x1b0(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x1b8(%rbp)
movq $0x0, -0x1d0(%rbp)
movq $0x0, -0x1d8(%rbp)
movq $0x0, -0x1c8(%rbp)
movq -0x50(%rbp), %rdi
callq 0x10ba70
movq %rax, -0x1e0(%rbp)
movl $0x0, -0x5c(%rbp)
movl -0x5c(%rbp), %eax
movq -0x50(%rbp), %rcx
movq 0x18(%rcx), %rcx
movl 0x4(%rcx), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpl %ecx, %eax
jae 0x1f92d4
movq -0x198(%rbp), %rax
movl -0x5c(%rbp), %ecx
movsd 0x188fb4(%rip), %xmm0   # 0x382278
movsd %xmm0, (%rax,%rcx,8)
movl -0x5c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x5c(%rbp)
jmp 0x1f929a
movl $0x0, -0x5c(%rbp)
movl -0x5c(%rbp), %eax
movq -0x50(%rbp), %rcx
movq 0x18(%rcx), %rcx
movl 0x14(%rcx), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpl %ecx, %eax
jae 0x1f9323
movq -0x40(%rbp), %rdi
movl -0x5c(%rbp), %edx
shll %edx
movq -0xb0(%rbp), %rcx
movl -0x7c(%rbp), %r8d
leaq -0x130(%rbp), %rsi
xorl %eax, %eax
movl %eax, %r9d
callq 0x1e0580
movl -0x5c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x5c(%rbp)
jmp 0x1f92db
movl $0x0, -0x54(%rbp)
movl -0x54(%rbp), %eax
cmpl -0x70(%rbp), %eax
jae 0x1f956a
movq -0x50(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x8(%rax), %rax
movq -0x50(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq 0x28(%rcx), %rcx
movl -0x54(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xa8(%rbp)
movq -0x50(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x28(%rax), %rax
movl -0x54(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x68(%rbp)
movq -0x198(%rbp), %rax
movq -0x50(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq 0x28(%rcx), %rcx
movl -0x54(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x1b0(%rbp)
movq -0x1a0(%rbp), %rax
movq -0x50(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq 0x28(%rcx), %rcx
movl -0x54(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x1a8(%rbp)
cmpl $0x1, -0x68(%rbp)
jbe 0x1f93f4
movq -0x50(%rbp), %rax
movq 0x18(%rax), %rdi
movl -0x54(%rbp), %esi
xorl %eax, %eax
movl %eax, %edx
callq 0x166b50
cmpl $0x1, %eax
jg 0x1f93f9
jmp 0x1f955c
movq -0x40(%rbp), %rdi
movq -0x50(%rbp), %rsi
movl -0x54(%rbp), %ecx
xorl $0x1, %ecx
movq -0xb0(%rbp), %r8
movl -0x78(%rbp), %r9d
leaq -0x130(%rbp), %rdx
xorl %eax, %eax
movq $0x0, (%rsp)
callq 0x1e53f0
movl $0x0, -0x5c(%rbp)
movl -0x5c(%rbp), %eax
cmpl -0x68(%rbp), %eax
jae 0x1f952d
movq -0xa8(%rbp), %rax
movl -0x5c(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x1f945c
jmp 0x1f951f
movq -0x40(%rbp), %rdi
movq -0x50(%rbp), %rsi
movq -0xa8(%rbp), %rax
movl -0x5c(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %ecx
movl -0x54(%rbp), %r8d
movq -0x38(%rbp), %r9
movq -0xb0(%rbp), %r13
movq -0xb8(%rbp), %r12
movq -0x30(%rbp), %r15
movl -0x78(%rbp), %r11d
movl -0x80(%rbp), %r10d
leaq -0x130(%rbp), %rdx
leaq -0x150(%rbp), %r14
leaq -0x170(%rbp), %rbx
xorl %eax, %eax
leaq -0x84(%rbp), %rax
movq %r13, (%rsp)
movq %r12, 0x8(%rsp)
movq %r15, 0x10(%rsp)
movq %r14, 0x18(%rsp)
movq %rbx, 0x20(%rsp)
movl %r11d, 0x28(%rsp)
movl %r10d, 0x30(%rsp)
movq $0x0, 0x38(%rsp)
movq %rax, 0x40(%rsp)
callq 0x1f8150
movsd %xmm0, -0x90(%rbp)
movsd -0x90(%rbp), %xmm0
movq -0x1b0(%rbp), %rax
movl -0x5c(%rbp), %ecx
movsd %xmm0, (%rax,%rcx,8)
movl -0x84(%rbp), %edx
movq -0x1a8(%rbp), %rax
movl -0x5c(%rbp), %ecx
movl %edx, (%rax,%rcx,4)
movl -0x5c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x5c(%rbp)
jmp 0x1f942f
movq -0x40(%rbp), %rdi
movq -0x50(%rbp), %rsi
movl -0x54(%rbp), %ecx
xorl $0x1, %ecx
movq -0xb0(%rbp), %r8
movl -0x78(%rbp), %r9d
leaq -0x130(%rbp), %rdx
xorl %eax, %eax
movq $0x0, (%rsp)
callq 0x1e53f0
movl -0x54(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x54(%rbp)
jmp 0x1f932a
movl $0x0, -0x54(%rbp)
movl -0x54(%rbp), %eax
cmpl -0x70(%rbp), %eax
jae 0x1f9890
movq -0x50(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x8(%rax), %rax
movq -0x50(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq 0x28(%rcx), %rcx
movl -0x54(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xa8(%rbp)
movq -0x50(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x28(%rax), %rax
movl -0x54(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x68(%rbp)
movq -0x198(%rbp), %rax
movq -0x50(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq 0x28(%rcx), %rcx
movl -0x54(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x1b0(%rbp)
movq -0x1a0(%rbp), %rax
movq -0x50(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq 0x28(%rcx), %rcx
movl -0x54(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
shlq $0x2, %rcx
addq %rcx, %rax
movq %rax, -0x1a8(%rbp)
cmpl $0x1, -0x68(%rbp)
jbe 0x1f963b
movq -0x50(%rbp), %rax
movq 0x18(%rax), %rdi
movl -0x54(%rbp), %esi
xorl %eax, %eax
movl %eax, %edx
callq 0x166b50
cmpl $0x1, %eax
jg 0x1f9640
jmp 0x1f9882
movl $0x0, -0x6c(%rbp)
movl $0x0, -0x5c(%rbp)
movl $0xffffffff, -0x64(%rbp) # imm = 0xFFFFFFFF
movl -0x5c(%rbp), %eax
cmpl -0x68(%rbp), %eax
jae 0x1f96f7
movq -0xa8(%rbp), %rax
movl -0x5c(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x1f967f
jmp 0x1f96e9
cmpl $-0x1, -0x64(%rbp)
jne 0x1f96a4
movl -0x5c(%rbp), %eax
movl %eax, -0x64(%rbp)
movq -0x1b0(%rbp), %rax
movl -0x5c(%rbp), %ecx
movsd (%rax,%rcx,8), %xmm0
movsd %xmm0, -0x1b8(%rbp)
jmp 0x1f96e0
movsd -0x1b8(%rbp), %xmm1
movq -0x1b0(%rbp), %rax
movl -0x5c(%rbp), %ecx
movsd (%rax,%rcx,8), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x1f96de
movl -0x5c(%rbp), %eax
movl %eax, -0x64(%rbp)
movq -0x1b0(%rbp), %rax
movl -0x5c(%rbp), %ecx
movsd (%rax,%rcx,8), %xmm0
movsd %xmm0, -0x1b8(%rbp)
jmp 0x1f96e0
movl -0x6c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x6c(%rbp)
movl -0x5c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x5c(%rbp)
jmp 0x1f9655
cmpl $-0x1, -0x64(%rbp)
jne 0x1f9702
jmp 0x1f9882
movq -0x1a8(%rbp), %rax
movl -0x64(%rbp), %ecx
movl (%rax,%rcx,4), %eax
cmpl -0x9c(%rbp), %eax
ja 0x1f971c
jmp 0x1f9882
cmpl $0x2, -0x6c(%rbp)
jae 0x1f9727
jmp 0x1f9882
movl $0x0, -0x5c(%rbp)
movl -0x5c(%rbp), %eax
cmpl -0x68(%rbp), %eax
jae 0x1f9880
movq -0xa8(%rbp), %rax
movl -0x5c(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %eax
shrl $0x1f, %eax
cmpl $0x0, %eax
je 0x1f975b
jmp 0x1f9872
movl -0x5c(%rbp), %eax
cmpl -0x64(%rbp), %eax
jne 0x1f9768
jmp 0x1f9872
movq -0xa8(%rbp), %rax
movl -0x5c(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
shrl %eax
movl -0x54(%rbp), %ecx
shrl %ecx
cmpl %ecx, %eax
jne 0x1f97a1
movq -0x1a8(%rbp), %rax
movl -0x5c(%rbp), %ecx
movl (%rax,%rcx,4), %eax
cmpl -0x9c(%rbp), %eax
ja 0x1f97a1
jmp 0x1f9872
movq -0x1b0(%rbp), %rax
movl -0x5c(%rbp), %ecx
movsd (%rax,%rcx,8), %xmm1
mulsd -0x98(%rbp), %xmm1
movsd -0x1b8(%rbp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x1f9870
movq -0xa8(%rbp), %rdi
movl -0x5c(%rbp), %eax
imulq $0x18, %rax, %rax
addq %rax, %rdi
movq -0x50(%rbp), %rsi
movq -0x198(%rbp), %rdx
movq -0x1a0(%rbp), %rcx
movsd -0x98(%rbp), %xmm0
movl -0x9c(%rbp), %r8d
callq 0x1e6bd0
cmpl $0x0, %eax
je 0x1f9870
movq -0xa8(%rbp), %rax
movl -0x5c(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0xc(%rax), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
orl $0x80000000, %ecx       # imm = 0x80000000
movl %ecx, 0xc(%rax)
movq -0x50(%rbp), %rax
movq 0x18(%rax), %rdi
movq -0xa8(%rbp), %rax
movl -0x5c(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %esi
xorl $0x1, %esi
movq -0xa8(%rbp), %rax
movl -0x5c(%rbp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq (%rax), %rax
shrq $0x20, %rax
xorq $0x1, %rax
movl %eax, %edx
movl $0x1, %ecx
callq 0x1de8a0
jmp 0x1f9872
movl -0x5c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x5c(%rbp)
jmp 0x1f972e
jmp 0x1f9882
movl -0x54(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x54(%rbp)
jmp 0x1f9571
movq -0x40(%rbp), %rax
cmpq $0x0, 0x30(%rax)
jbe 0x1f98ab
movq -0x40(%rbp), %rax
movq 0x30(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x30(%rax)
movq -0x40(%rbp), %rax
movq 0xb8(%rax), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, -0x1fc(%rbp)
movl $0x0, -0x54(%rbp)
movl -0x54(%rbp), %eax
cmpl -0x70(%rbp), %eax
jae 0x1fa087
movq -0x50(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x8(%rax), %rax
movq -0x50(%rbp), %rcx
movq 0x18(%rcx), %rcx
movq 0x28(%rcx), %rcx
movl -0x54(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0xa8(%rbp)
movq -0x50(%rbp), %rax
movq 0x18(%rax), %rax
movq 0x28(%rax), %rax
movl -0x54(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x68(%rbp)
movq -0x50(%rbp), %rax
movq 0x18(%rax), %rdi
movl -0x54(%rbp), %esi
xorl %eax, %eax
movl %eax, %edx
callq 0x166b50
movl %eax, -0x6c(%rbp)
movl -0x68(%rbp), %eax
cmpl -0x6c(%rbp), %eax
jne 0x1f9942
jmp 0x1fa079
cmpl $0x1, -0x6c(%rbp)
jne 0x1f994e
cmpl $0x1, -0x68(%rbp)
ja 0x1f9953
jmp 0x1fa079
movq -0x50(%rbp), %rax
movq 0x18(%rax), %rdi
movl -0x54(%rbp), %esi
leaq -0x58(%rbp), %rdx
callq 0x166b50
movl -0x58(%rbp), %eax
xorl $0x1, %eax
movl %eax, -0x58(%rbp)
movq -0x50(%rbp), %rax
movq 0x18(%rax), %rdi
movl -0x58(%rbp), %esi
xorl %eax, %eax
movl %eax, %edx
callq 0x166b50
cmpl $0x1, %eax
je 0x1f998e
jmp 0x1fa079
movq -0x40(%rbp), %rdi
movq -0x40(%rbp), %rax
movq 0xb8(%rax), %rsi
movq -0x50(%rbp), %rdx
movl -0x54(%rbp), %r8d
movl -0x58(%rbp), %r9d
xorl %eax, %eax
movl %eax, %ecx
callq 0x1e22d0
movq -0xc0(%rbp), %rax
movl -0x54(%rbp), %ecx
cmpb $0x0, (%rax,%rcx)
jne 0x1f99d2
movq -0xc0(%rbp), %rax
movl -0x58(%rbp), %ecx
cmpb $0x0, (%rax,%rcx)
je 0x1f99d7
jmp 0x1fa079
movq -0xc0(%rbp), %rax
movl -0x58(%rbp), %ecx
movb $0x1, (%rax,%rcx)
movq -0xc0(%rbp), %rax
movl -0x54(%rbp), %ecx
movb $0x1, (%rax,%rcx)
movq -0x40(%rbp), %rdi
movq -0x50(%rbp), %rsi
movl -0x54(%rbp), %edx
callq 0x1e2260
movl %eax, -0x74(%rbp)
movl -0x74(%rbp), %eax
shrl %eax
movl %eax, -0x1e4(%rbp)
movl -0x74(%rbp), %eax
andl $0x1, %eax
movl %eax, -0x1e8(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x218(%rbp)
movl -0x1e4(%rbp), %eax
movq %rax, -0x210(%rbp)
cmpl $0x1, -0x1e8(%rbp)
jne 0x1f9a4e
leaq -0x1f4(%rbp), %rax
movq %rax, -0x220(%rbp)
jmp 0x1f9a59
xorl %eax, %eax
movq %rax, -0x220(%rbp)
jmp 0x1f9a59
movq -0x220(%rbp), %rax
movq %rax, -0x228(%rbp)
cmpl $0x0, -0x1e8(%rbp)
jne 0x1f9a80
leaq -0x1f4(%rbp), %rax
movq %rax, -0x230(%rbp)
jmp 0x1f9a8b
xorl %eax, %eax
movq %rax, -0x230(%rbp)
jmp 0x1f9a8b
movq -0x228(%rbp), %rdx
movq -0x210(%rbp), %rsi
movq -0x218(%rbp), %rdi
movq -0x230(%rbp), %rcx
xorl %eax, %eax
movl %eax, %r9d
movq %r9, %r8
movq $0x0, (%rsp)
callq 0x1c4b20
movq -0x40(%rbp), %rdi
movq -0x50(%rbp), %rsi
movl -0x58(%rbp), %edx
callq 0x1e2260
movl %eax, -0x74(%rbp)
movl -0x74(%rbp), %eax
shrl %eax
movl %eax, -0x1ec(%rbp)
movl -0x74(%rbp), %eax
andl $0x1, %eax
movl %eax, -0x1f0(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x240(%rbp)
movl -0x1ec(%rbp), %eax
movq %rax, -0x238(%rbp)
cmpl $0x1, -0x1f0(%rbp)
jne 0x1f9b17
leaq -0x1f8(%rbp), %rax
movq %rax, -0x248(%rbp)
jmp 0x1f9b22
xorl %eax, %eax
movq %rax, -0x248(%rbp)
jmp 0x1f9b22
movq -0x248(%rbp), %rax
movq %rax, -0x250(%rbp)
cmpl $0x0, -0x1f0(%rbp)
jne 0x1f9b49
leaq -0x1f8(%rbp), %rax
movq %rax, -0x258(%rbp)
jmp 0x1f9b54
xorl %eax, %eax
movq %rax, -0x258(%rbp)
jmp 0x1f9b54
movq -0x250(%rbp), %rdx
movq -0x238(%rbp), %rsi
movq -0x240(%rbp), %rdi
movq -0x258(%rbp), %rcx
xorl %eax, %eax
movl %eax, %r9d
movq %r9, %r8
movq $0x0, (%rsp)
callq 0x1c4b20
movq $0x0, -0x190(%rbp)
movq -0x40(%rbp), %rdi
movq -0x1e0(%rbp), %rsi
movl -0x54(%rbp), %ecx
xorl $0x1, %ecx
movq -0xb0(%rbp), %r8
movl -0x78(%rbp), %r9d
leaq -0x130(%rbp), %rdx
xorl %eax, %eax
movq $0x0, (%rsp)
callq 0x1e53f0
movq -0x40(%rbp), %rdi
movq -0x1e0(%rbp), %rsi
movl -0x58(%rbp), %ecx
xorl $0x1, %ecx
movl -0x54(%rbp), %r8d
movq -0x38(%rbp), %r9
movq -0xb0(%rbp), %r13
movq -0xb8(%rbp), %r12
movq -0x30(%rbp), %r15
movl -0x78(%rbp), %r11d
movl -0x80(%rbp), %r10d
leaq -0x130(%rbp), %rdx
leaq -0x150(%rbp), %r14
leaq -0x170(%rbp), %rbx
leaq -0x190(%rbp), %rax
movq %rax, -0x260(%rbp)
xorl %eax, %eax
movq -0x260(%rbp), %rax
movq %r13, (%rsp)
movq %r12, 0x8(%rsp)
movq %r15, 0x10(%rsp)
movq %r14, 0x18(%rsp)
movq %rbx, 0x20(%rsp)
movl %r11d, 0x28(%rsp)
movl %r10d, 0x30(%rsp)
movq %rax, 0x38(%rsp)
movq $0x0, 0x40(%rsp)
callq 0x1f8150
movq -0x40(%rbp), %rdi
movq -0x1e0(%rbp), %rsi
movl -0x54(%rbp), %ecx
xorl $0x1, %ecx
movq -0xb0(%rbp), %r8
movl -0x78(%rbp), %r9d
leaq -0x130(%rbp), %rdx
xorl %eax, %eax
movq $0x0, (%rsp)
callq 0x1e53f0
movl $0x0, -0x5c(%rbp)
movl -0x5c(%rbp), %eax
cmpq -0x190(%rbp), %rax
jae 0x1f9cc8
movq -0xc8(%rbp), %rax
movq -0x180(%rbp), %rcx
movl -0x5c(%rbp), %edx
movl (%rcx,%rdx,4), %ecx
shrl %ecx
movl %ecx, %ecx
movzbl (%rax,%rcx), %edx
orl $0x1, %edx
movb %dl, (%rax,%rcx)
movl -0x5c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x5c(%rbp)
jmp 0x1f9c8f
movq -0x40(%rbp), %rdi
movq -0x1e0(%rbp), %rsi
movl -0x58(%rbp), %ecx
xorl $0x1, %ecx
movq -0xb0(%rbp), %r8
movl -0x78(%rbp), %r9d
leaq -0x130(%rbp), %rdx
xorl %eax, %eax
movq $0x0, (%rsp)
callq 0x1e53f0
movq -0x40(%rbp), %rdi
movq -0x1e0(%rbp), %rsi
movl -0x54(%rbp), %ecx
xorl $0x1, %ecx
movl -0x58(%rbp), %r8d
movq -0x38(%rbp), %r9
movq -0xb0(%rbp), %r13
movq -0xb8(%rbp), %r12
movq -0x30(%rbp), %r15
movl -0x78(%rbp), %r11d
movl -0x80(%rbp), %r10d
leaq -0x130(%rbp), %rdx
leaq -0x150(%rbp), %r14
leaq -0x170(%rbp), %rbx
leaq -0x190(%rbp), %rax
movq %rax, -0x268(%rbp)
xorl %eax, %eax
movq -0x268(%rbp), %rax
movq %r13, (%rsp)
movq %r12, 0x8(%rsp)
movq %r15, 0x10(%rsp)
movq %r14, 0x18(%rsp)
movq %rbx, 0x20(%rsp)
movl %r11d, 0x28(%rsp)
movl %r10d, 0x30(%rsp)
movq %rax, 0x38(%rsp)
movq $0x0, 0x40(%rsp)
callq 0x1f8150
movq -0x40(%rbp), %rdi
movq -0x1e0(%rbp), %rsi
movl -0x58(%rbp), %ecx
xorl $0x1, %ecx
movq -0xb0(%rbp), %r8
movl -0x78(%rbp), %r9d
leaq -0x130(%rbp), %rdx
xorl %eax, %eax
movq $0x0, (%rsp)
callq 0x1e53f0
movl -0x5c(%rbp), %eax
cmpq -0x190(%rbp), %rax
jae 0x1f9df9
movq -0xc8(%rbp), %rax
movq -0x180(%rbp), %rcx
movl -0x5c(%rbp), %edx
movl (%rcx,%rdx,4), %ecx
shrl %ecx
movl %ecx, %ecx
movzbl (%rax,%rcx), %edx
orl $0x2, %edx
movb %dl, (%rax,%rcx)
movl -0x5c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x5c(%rbp)
jmp 0x1f9dc0
movl $0x0, -0x60(%rbp)
movl $0x0, -0x5c(%rbp)
movl -0x5c(%rbp), %eax
cmpq -0x190(%rbp), %rax
jae 0x1f9e7e
movq -0xc8(%rbp), %rax
movq -0x180(%rbp), %rcx
movl -0x5c(%rbp), %edx
movl (%rcx,%rdx,4), %ecx
shrl %ecx
movl %ecx, %ecx
movzbl (%rax,%rcx), %eax
cmpl $0x3, %eax
jne 0x1f9e57
movq -0x180(%rbp), %rax
movl -0x5c(%rbp), %ecx
movl (%rax,%rcx,4), %edx
movq -0x180(%rbp), %rax
movl -0x60(%rbp), %ecx
movl %edx, (%rax,%rcx,4)
movl -0x60(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x60(%rbp)
movq -0xc8(%rbp), %rax
movq -0x180(%rbp), %rcx
movl -0x5c(%rbp), %edx
movl (%rcx,%rdx,4), %ecx
shrl %ecx
movl %ecx, %ecx
movb $0x0, (%rax,%rcx)
movl -0x5c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x5c(%rbp)
jmp 0x1f9e07
movl -0x60(%rbp), %eax
movq %rax, -0x190(%rbp)
movq -0x40(%rbp), %rax
movq (%rax), %rax
movl -0x1f4(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
movl (%rax,%rcx,4), %eax
movq -0x40(%rbp), %rcx
movq 0x80(%rcx), %rcx
addq $0x1, %rcx
cmpq %rcx, %rax
ja 0x1f9f44
jmp 0x1f9eb6
movq -0x190(%rbp), %rax
cmpq -0x188(%rbp), %rax
jne 0x1f9f1d
cmpq $0x0, -0x188(%rbp)
je 0x1f9ee3
movq -0x188(%rbp), %rax
shlq %rax
movq %rax, -0x270(%rbp)
jmp 0x1f9ef1
movl $0x2, %eax
movq %rax, -0x270(%rbp)
jmp 0x1f9ef1
movq -0x270(%rbp), %rax
movq %rax, -0x188(%rbp)
movq -0x180(%rbp), %rdi
movq -0x188(%rbp), %rsi
shlq $0x2, %rsi
callq 0x2360
movq %rax, -0x180(%rbp)
movl -0x1f4(%rbp), %edx
movq -0x180(%rbp), %rax
movq -0x190(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x190(%rbp)
movl %edx, (%rax,%rcx,4)
jmp 0x1f9f44
movq -0x40(%rbp), %rax
movq (%rax), %rax
movl -0x1f8(%rbp), %ecx
shrl %ecx
movl %ecx, %ecx
movl (%rax,%rcx,4), %eax
movq -0x40(%rbp), %rcx
movq 0x80(%rcx), %rcx
addq $0x1, %rcx
cmpq %rcx, %rax
ja 0x1fa000
jmp 0x1f9f72
movq -0x190(%rbp), %rax
cmpq -0x188(%rbp), %rax
jne 0x1f9fd9
cmpq $0x0, -0x188(%rbp)
je 0x1f9f9f
movq -0x188(%rbp), %rax
shlq %rax
movq %rax, -0x278(%rbp)
jmp 0x1f9fad
movl $0x2, %eax
movq %rax, -0x278(%rbp)
jmp 0x1f9fad
movq -0x278(%rbp), %rax
movq %rax, -0x188(%rbp)
movq -0x180(%rbp), %rdi
movq -0x188(%rbp), %rsi
shlq $0x2, %rsi
callq 0x2360
movq %rax, -0x180(%rbp)
movl -0x1f8(%rbp), %edx
movq -0x180(%rbp), %rax
movq -0x190(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x190(%rbp)
movl %edx, (%rax,%rcx,4)
jmp 0x1fa000
movl -0x1f4(%rbp), %esi
xorl $0x1, %esi
movl -0x1e4(%rbp), %edx
movl -0x1f8(%rbp), %ecx
xorl $0x1, %ecx
movl -0x1ec(%rbp), %r8d
movq -0x40(%rbp), %r9
movq -0x40(%rbp), %rax
movq 0xb8(%rax), %r10
movq -0x30(%rbp), %rax
leaq -0x190(%rbp), %rdi
leaq -0x1d8(%rbp), %r11
xorl %ebx, %ebx
movq %r11, (%rsp)
movq %r10, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movq %rax, 0x20(%rsp)
movq $0x0, 0x28(%rsp)
movq $0x0, 0x30(%rsp)
callq 0x1deb20
movl -0x54(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x54(%rbp)
jmp 0x1f98cb
jmp 0x1fa089
movq -0x40(%rbp), %rax
movq 0x30(%rax), %rax
movq -0x40(%rbp), %rcx
cmpq 0x38(%rcx), %rax
jne 0x1fa0fb
movq -0x40(%rbp), %rax
cmpq $0x0, 0x38(%rax)
je 0x1fa0ba
movq -0x40(%rbp), %rax
movq 0x38(%rax), %rax
shlq %rax
movq %rax, -0x280(%rbp)
jmp 0x1fa0c8
movl $0x2, %eax
movq %rax, -0x280(%rbp)
jmp 0x1fa0c8
movq -0x280(%rbp), %rcx
movq -0x40(%rbp), %rax
movq %rcx, 0x38(%rax)
movq -0x40(%rbp), %rax
movq 0x40(%rax), %rdi
movq -0x40(%rbp), %rax
movq 0x38(%rax), %rsi
shlq $0x2, %rsi
callq 0x2360
movq %rax, %rcx
movq -0x40(%rbp), %rax
movq %rcx, 0x40(%rax)
movq -0x40(%rbp), %rax
movq 0x18(%rax), %rax
movl %eax, %edx
movq -0x40(%rbp), %rax
movq 0x40(%rax), %rax
movq -0x40(%rbp), %rsi
movq 0x30(%rsi), %rcx
movq %rcx, %rdi
addq $0x1, %rdi
movq %rdi, 0x30(%rsi)
movl %edx, (%rax,%rcx,4)
movq -0x40(%rbp), %rax
movq 0xb8(%rax), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
subl -0x1fc(%rbp), %eax
movl %eax, -0x1fc(%rbp)
movl -0x1fc(%rbp), %eax
movl %eax, %ecx
movq -0x40(%rbp), %rax
addq 0xa0(%rax), %rcx
movq %rcx, 0xa0(%rax)
cmpl $0x0, -0x1fc(%rbp)
je 0x1fa16e
movq -0x40(%rbp), %rdi
callq 0x1c6cf0
movq -0x40(%rbp), %rax
movq 0xb8(%rax), %rdi
leaq -0x1d8(%rbp), %rsi
callq 0x1e2c80
movq -0x50(%rbp), %rdi
callq 0xcd6f0
movq -0x40(%rbp), %rax
movq 0xb8(%rax), %rdi
callq 0xe5910
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rcx
movq -0x40(%rbp), %rax
movq %rcx, 0xc0(%rax)
movq -0x40(%rbp), %rax
movq 0xd8(%rax), %rdi
callq 0x2210
movq $0x0, -0x208(%rbp)
movq -0x40(%rbp), %rax
movq 0xc0(%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x40(%rbp), %rax
movq $0x0, 0xc8(%rax)
movq -0x50(%rbp), %rax
movq (%rax), %rcx
movq -0x40(%rbp), %rax
movq %rcx, 0xd0(%rax)
movq -0x50(%rbp), %rax
movq (%rax), %rdi
shlq $0x5, %rdi
callq 0x2270
movq %rax, %rcx
movq -0x40(%rbp), %rax
movq %rcx, 0xd8(%rax)
movq -0x50(%rbp), %rax
movq (%rax), %rcx
movq -0x40(%rbp), %rax
movq %rcx, 0xc8(%rax)
movl $0x0, -0x5c(%rbp)
movl -0x5c(%rbp), %eax
movq -0x50(%rbp), %rcx
cmpq (%rcx), %rax
jae 0x1fa2ca
movq -0x50(%rbp), %rax
movq 0x10(%rax), %rax
movl -0x5c(%rbp), %ecx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x208(%rbp)
movl -0x5c(%rbp), %eax
movl %eax, %ecx
movq -0x40(%rbp), %rax
movq 0xd8(%rax), %rax
movl -0x5c(%rbp), %edx
shlq $0x5, %rdx
addq %rdx, %rax
movq %rcx, 0x10(%rax)
movq -0x40(%rbp), %rax
movq 0xd8(%rax), %rax
movl -0x5c(%rbp), %ecx
shlq $0x5, %rcx
addq %rcx, %rax
movb $0x0, 0x18(%rax)
movq -0x208(%rbp), %rdi
movq -0x40(%rbp), %rsi
movq -0x30(%rbp), %rdx
movq -0x40(%rbp), %rax
movq 0xd8(%rax), %rcx
movl -0x5c(%rbp), %eax
shlq $0x5, %rax
addq %rax, %rcx
callq 0x1df840
movl -0x5c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x5c(%rbp)
jmp 0x1fa233
movq -0x40(%rbp), %rax
movq 0xd8(%rax), %rdi
movq -0x40(%rbp), %rax
movq 0xc8(%rax), %rsi
movl $0x20, %edx
leaq -0x1a86c(%rip), %rcx    # 0x1dfa80
callq 0x23e0
movq -0xb0(%rbp), %rdi
callq 0x2210
movq -0xb8(%rbp), %rdi
callq 0x2210
movq -0xc0(%rbp), %rdi
callq 0x2210
movq -0xc8(%rbp), %rdi
callq 0x2210
movq -0xe8(%rbp), %rdi
callq 0x2210
movq -0x198(%rbp), %rdi
callq 0x2210
movq -0x1a0(%rbp), %rdi
callq 0x2210
movq -0x140(%rbp), %rdi
callq 0x2210
movq -0x160(%rbp), %rdi
callq 0x2210
movq -0x180(%rbp), %rdi
callq 0x2210
movq -0x1c8(%rbp), %rdi
callq 0x2210
movq -0x1e0(%rbp), %rdi
callq 0xcd6f0
movq 0x1c9c58(%rip), %rax    # 0x3c3fe0
movq (%rax), %rax
movq %rax, -0x288(%rbp)
callq 0x1b7ca0
movq -0x288(%rbp), %rdi
subsd -0x48(%rbp), %xmm0
leaq 0x19245e(%rip), %rsi    # 0x38c808
leaq 0x192ae1(%rip), %rdx    # 0x38ce92
movb $0x1, %al
callq 0x22a0
addq $0x2a8, %rsp            # imm = 0x2A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopw (%rax,%rax)