// File: /workspace/github_cpp_makefile_star2_O3/chhylp123[P]hifiasm/Overlaps.cpp
// Function: rescue_missing_overlaps_backward(ma_ug_t*, asg_t*, ma_hit_t_alloc*, ma_sub_t*, R_to_U*, int, int, unsigned int, unsigned int, unsigned int, bub_label_t*)
void rescue_missing_overlaps_backward(ma_ug_t *i_ug, asg_t *r_g, ma_hit_t_alloc* sources, ma_sub_t *coverage_cut,
R_to_U* ruIndex, int max_hang, int min_ovlp, uint32_t backward_steps, uint32_t is_bubble_check, uint32_t is_primary_check, bub_label_t* b_mask_t)
{
    uint32_t v, vId, dir, k, cur_backward_steps, round, is_Unitig, uId, rId, endRid, oLen, w, max_oLen, max_oLen_i, mode, nv;
    uint64_t tmp;
    long long init, step = 0;
    asg_t* nsg = NULL;
    ma_utg_t* nsu = NULL;
    ma_ug_t *ug = NULL;
    asg_arc_t *av = NULL;
    asg_arc_t t, r_edge;
    kvec_t(asg_arc_t) new_edges;
    kv_init(new_edges);

    kvec_asg_arc_t_warp recover_edges;
    kv_init(recover_edges.a);

    kvec_t(asg_arc_t) rbub_edges;
    kv_init(rbub_edges);

    kvec_t_u64_warp u_vecs;
    kv_init(u_vecs.a);

    if(i_ug != NULL)
    {
        ug = i_ug;
    }
    else
    {
        ug = ma_ug_gen(r_g);
        for (v = 0; v < ug->g->n_seq; v++)
        {
            ug->g->seq[v].c = PRIMARY_LABLE;
        }
    }
    nsg = ug->g;
    
    for (v = 0; v < nsg->n_seq; v++)
    {
        uId = v;
        nsu = &(ug->u.a[uId]);
        if(nsu->m == 0) continue;
        if(nsg->seq[v].del) continue;
        if(is_primary_check && nsg->seq[v].c==ALTER_LABLE) continue;

        for (k = 0; k < nsu->n; k++)
        {
            rId = nsu->a[k]>>33;
            set_R_to_U(ruIndex, rId, uId, 1, &(r_g->seq[rId].c));
        }
    }



    for (vId = 0; vId < nsg->n_seq; vId++)
    {
        rbub_edges.n = round = 0;
        for (dir = 0; dir < 2; dir++)
        {
            if(rbub_edges.n > 0)
            {
                cur_backward_steps = nsu->n - round - 1;
                if(cur_backward_steps > backward_steps)
                {
                    cur_backward_steps = backward_steps;
                }
            }
            else
            {
                cur_backward_steps = backward_steps;
            }
            
            

            v = vId; v = v<<1; v = v | dir;
            uId = v>>1;
            if(nsg->seq[uId].del) continue;
            if(is_primary_check && nsg->seq[uId].c == ALTER_LABLE) continue;

            nsu = &(ug->u.a[uId]);
            if(nsu->m == 0) continue;
            if(nsu->circ || nsu->start == UINT32_MAX || nsu->end == UINT32_MAX) continue;
            if(get_real_length(nsg, v, NULL) != 0) continue;
            ////if(get_real_length(nsg, v^1, NULL) == 0) continue;
            ///that means this unitig has been changed
            if(nsu->start!=((uint64_t)(nsu->a[0])>>32)) continue;
            if((nsu->end^1)!=((uint64_t)(nsu->a[nsu->n-1])>>32)) continue;
            
            if(v&1)
            {
                init = 0;
                step = 1;
                mode = 1;
                //endRid = nsu->start^1;
            }
            else
            {
                init = nsu->n - 1;
                step = -1;
                mode = 0;
                ///endRid = nsu->end^1;
            }


            rbub_edges.n = 0;
            for (round = 0; round < cur_backward_steps && init >= 0 && init < (long long)nsu->n; 
                                                                    init = init + step, round++)
            {
                endRid = ((uint64_t)(nsu->a[init]))>>32;
                endRid = endRid^mode;

                k = 0;
                rbub_edges.n = 0;
                while(get_edge2existing_node_advance(ug, r_g, sources, coverage_cut, ruIndex, 
                    max_hang, min_ovlp, endRid, &uId, 1, &k, &r_edge, 1))
                {
                    kv_push(asg_arc_t, rbub_edges, r_edge);
                }
                if(rbub_edges.n > 0) break;
            }

            if(rbub_edges.n > 0)
            {
                if(mode == 1) nsu->start = endRid^1;
                if(mode == 0) nsu->end = endRid^1;
                //save for revert
                tmp = mode; tmp = tmp <<31; tmp = tmp | (uint64_t)(init); tmp = tmp << 32; tmp = tmp | uId;
                kv_push(uint64_t, u_vecs.a, tmp);



                ///need to do transitive reduction
                ///note here is different to standard transitive reduction
                minor_transitive_reduction(ug, ruIndex, rbub_edges.a, rbub_edges.n);
                if(is_primary_check)
                {
                    max_oLen = 0; max_oLen_i = (uint32_t)-1;
                    for (k = 0; k < rbub_edges.n; k++)
                    {
                        t = rbub_edges.a[k];
                        if(t.del) continue;
                        if(t.ol > max_oLen)
                        {
                            max_oLen = t.ol;
                            max_oLen_i = k;
                        }
                    }

                    if(max_oLen_i == (uint32_t)-1) continue;
                    t = rbub_edges.a[max_oLen_i];
                    w = get_corresponding_uId(ug, ruIndex, t.v);
                    if(w == ((uint32_t)(-1))) continue;
                    if(get_real_length(nsg, w^1, NULL)!=0) continue;

                    kv_push(asg_arc_t, new_edges, t);
                    oLen = t.ol;
                    asg_append_edges_to_srt(nsg, v, ug->u.a[v>>1].len, w, oLen, t.strong, t.el, t.no_l_indel);


                    get_edge_from_source(sources, coverage_cut, ruIndex, max_hang, min_ovlp, 
                    (t.v^1), ((t.ul>>32)^1), &t);
                    kv_push(asg_arc_t, new_edges, t);
                    oLen = t.ol;
                    asg_append_edges_to_srt(nsg, w^1, ug->u.a[w>>1].len, v^1, oLen, t.strong, t.el, t.no_l_indel);
                }
                else
                {
                    ///modify read graph
                    for (init = init - step; init >= 0 && init < (long long)nsu->n; init = init - step)
                    {
                        w = ((uint64_t)(nsu->a[init]))>>32;
                        nv = asg_arc_n(r_g, w);
                        av = asg_arc_a(r_g, w);
                        for (k = 0; k < nv; k++)
                        {
                            if(av[k].del) continue;
                            kv_push(asg_arc_t, recover_edges.a, av[k]);
                            if(asg_get_arc(r_g, av[k].v^1, av[k].ul>>32^1, &t)==0)
                            {
                                fprintf(stderr, "error\n");
                            } 
                            kv_push(asg_arc_t, recover_edges.a, t);
                        }
                        

                        nv = asg_arc_n(r_g, w^1);
                        av = asg_arc_a(r_g, w^1);
                        for (k = 0; k < nv; k++)
                        {
                            if(av[k].del) continue;
                            kv_push(asg_arc_t, recover_edges.a, av[k]);
                            if(asg_get_arc(r_g, av[k].v^1, av[k].ul>>32^1, &t)==0)
                            {
                                fprintf(stderr, "error\n");
                            } 
                            kv_push(asg_arc_t, recover_edges.a, t);
                        }

                        ///w = ((uint64_t)(nsu->a[init]))>>32;
                        asg_seq_del(r_g, w>>1);
                    }


                    
                    for (k = 0; k < rbub_edges.n; k++)
                    {
                        t = rbub_edges.a[k];
                        if(t.del) continue;
                        w = get_corresponding_uId(ug, ruIndex, t.v);
                        if(w == ((uint32_t)(-1))) continue;
                        // get_R_to_U(ruIndex, t.v>>1, &uId, &is_Unitig);
                        // w = (uint32_t)-1;
                        // if(t.v == ug->u.a[uId].start) w = uId<<1;
                        // if(t.v == ug->u.a[uId].end) w = (uId<<1)^1;
                        kv_push(asg_arc_t, new_edges, t);
                        oLen = t.ol;
                        asg_append_edges_to_srt(nsg, v, ug->u.a[v>>1].len, w, oLen, t.strong, t.el, t.no_l_indel);


                        get_edge_from_source(sources, coverage_cut, ruIndex, max_hang, min_ovlp, 
                        (t.v^1), ((t.ul>>32)^1), &t);
                        kv_push(asg_arc_t, new_edges, t);
                        oLen = t.ol;
                        asg_append_edges_to_srt(nsg, w^1, ug->u.a[w>>1].len, v^1, oLen, t.strong, t.el, t.no_l_indel);
                    }
                }

            }
        }
    }
    
    
    if(is_bubble_check)
    {
        asg_arc_t* p = NULL;
        for (k = 0; k < new_edges.n; k++)
        {
            p = asg_arc_pushp(r_g);
            *p = new_edges.a[k];
        }

        if(new_edges.n != 0)
        {
            free(r_g->idx);
            r_g->idx = 0;
            r_g->is_srt = 0;
            asg_cleanup(r_g);
        }
        
        pre_clean(sources, coverage_cut, r_g, 0);

        lable_all_bubbles(r_g, b_mask_t);


        for (k = 0; k < new_edges.n; k++)
        {
            v = new_edges.a[k].ul>>32;
            w = new_edges.a[k].v;

            if(r_g->seq[v>>1].del) continue;
            if(r_g->seq[w>>1].del) continue;
            ///if this edge is at a bubble
            if(r_g->seq_vis[v]!=0 && r_g->seq_vis[w^1]!=0) continue;

            asg_arc_del(r_g, v, w, 1);
            asg_arc_del(r_g, w^1, v^1, 1);
        }

        asg_cleanup(r_g);
        

        for (k = 0; k < recover_edges.a.n; k++)
        {
            recover_edges.a.a[k].del = 1;
        }

        for (k = 0; k < u_vecs.a.n; k++)
        {
            mode = (uint64_t)u_vecs.a.a[k]>>63;
            if(mode == 1) step = 1;
            if(mode == 0) step = -1;
            init = (uint64_t)((uint64_t)u_vecs.a.a[k]>>32)&((uint64_t)(0x7fffffff));
            uId = (uint32_t)u_vecs.a.a[k];
            nsu = &(ug->u.a[uId]);

            endRid = ((uint64_t)(nsu->a[init]))>>32;
            endRid = endRid^mode;
            /********************for debug**********************/
            // fprintf(stderr, "n: %u, k: %u, mode: %u, init: %lld, step: %lld, uId: %u, endRid: %u\n", 
            // (uint32_t)u_vecs.a.n, k, mode, init, step, uId, endRid);
            // fprintf(stderr, "nsu->start: %u, nsu->end: %u\n", 
            // nsu->start, nsu->end);
            // if(mode == 1 && nsu->start != (endRid^1)) fprintf(stderr, "ERROR\n");
            // if(mode == 0 && nsu->end != (endRid^1)) fprintf(stderr, "ERROR\n");
            // update_unitig(step, init, nsu, r_g, &recover_edges, 0);
            /********************for debug**********************/
            if(get_real_length(r_g, endRid, NULL) > 0)
            {
                update_unitig(step, init, nsu, r_g, &recover_edges, 1);
                // fprintf(stderr, "endRid: %u, %.*s, uId: %u\n", 
                // endRid>>1, (int)Get_NAME_LENGTH((R_INF), v>>1), Get_NAME((R_INF), v>>1), uId);
            }
            else
            {
                update_unitig(step, init, nsu, r_g, &recover_edges, 0);
            }
        }

        uint64_t recov_occ = 0;
        for (k = 0; k < recover_edges.a.n; k++)
        {
            if(recover_edges.a.a[k].del) continue;
            p = asg_arc_pushp(r_g);
            *p = recover_edges.a.a[k];
            recov_occ++;
        }

        if(recov_occ != 0)
        {
            free(r_g->idx);
            r_g->idx = 0;
            r_g->is_srt = 0;
        }

        asg_cleanup(r_g);
    }

    if(is_primary_check)
    {
        for (k = 0; k < u_vecs.a.n; k++)
        {
            mode = (uint64_t)u_vecs.a.a[k]>>63;
            if(mode == 1) step = 1;
            if(mode == 0) step = -1;
            init = (uint64_t)((uint64_t)u_vecs.a.a[k]>>32)&((uint64_t)(0x7fffffff));
            uId = (uint32_t)u_vecs.a.a[k];
            nsu = &(ug->u.a[uId]);

            endRid = ((uint64_t)(nsu->a[init]))>>32;
            endRid = endRid^mode;

            update_unitig(step, init, nsu, r_g, &recover_edges, 1);
        }
    }


    for (v = 0; v < ruIndex->len; v++)
    {
        get_R_to_U(ruIndex, v, &uId, &is_Unitig);
        if(is_Unitig == 1) ruIndex->index[v] = (uint32_t)-1;
    }

    if(i_ug == NULL) ma_ug_destroy(ug);

    kv_destroy(new_edges);
    kv_destroy(recover_edges.a);
    kv_destroy(rbub_edges);
    kv_destroy(u_vecs.a);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x138, %rsp            # imm = 0x138
movl %r9d, 0xa4(%rsp)
movq %r8, %r13
movq %rcx, 0xe8(%rsp)
movq %rdx, 0xe0(%rsp)
movq %rsi, %r14
xorps %xmm0, %xmm0
movaps %xmm0, 0x70(%rsp)
movq $0x0, 0x80(%rsp)
testq %rdi, %rdi
movq %rsi, 0x68(%rsp)
movq %rdi, 0x110(%rsp)
je 0xfde5b
movq 0x18(%rdi), %rbx
movl 0x14(%rbx), %eax
movl %eax, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
movq %rdi, %r12
jmp 0xfde95
movq %r14, %rdi
callq 0xb10cd
movq %rax, %r12
movq 0x18(%rax), %rbx
testl $0x7fffffff, 0x14(%rbx) # imm = 0x7FFFFFFF
je 0xfef19
movq 0x20(%rbx), %rdx
xorl %esi, %esi
movb $0x0, 0x4(%rdx,%rsi,8)
incq %rsi
movl 0x14(%rbx), %eax
movl %eax, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpq %rcx, %rsi
jb 0xfde7d
testl %ecx, %ecx
je 0xfef19
movl 0x178(%rsp), %esi
xorl %r14d, %r14d
movq %rbx, 0xb0(%rsp)
movq 0x68(%rsp), %rbp
movl %r14d, 0x14(%rsp)
movq 0x10(%r12), %rcx
leaq (%r14,%r14,4), %rdx
leaq (%rcx,%rdx,8), %r11
cmpl $0x0, 0xc(%r11)
je 0xfdf49
movq 0x20(%rbx), %rcx
cmpl $0x0, (%rcx,%r14,8)
js 0xfdf49
cmpl $0x0, 0x188(%rsp)
je 0xfdeea
cmpb $0x1, 0x4(%rcx,%r14,8)
je 0xfdf49
movl $0x0, (%rsp)
cmpl $0x0, 0x10(%r11)
je 0xfdf49
xorl %ebx, %ebx
movq 0x18(%r11), %rax
movq (%rax,%rbx,8), %rsi
shrq $0x21, %rsi
movq 0x20(%rbp), %rax
leaq (%rax,%rsi,8), %r8
addq $0x4, %r8
movq %r13, %rdi
movl %r14d, %edx
movl $0x1, %ecx
movq %r11, %r15
callq 0xa27e9
movq %r15, %r11
incq %rbx
movl %ebx, (%rsp)
movl 0x10(%r15), %eax
cmpq %rax, %rbx
jb 0xfdefa
movq 0xb0(%rsp), %rbx
movl 0x14(%rbx), %eax
movl 0x178(%rsp), %esi
incq %r14
movl %eax, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpq %rcx, %r14
jb 0xfdeb4
testl %ecx, %ecx
je 0xfef3d
xorl %ecx, %ecx
movq $0x0, 0x50(%rsp)
movq $0x0, 0x100(%rsp)
movq $0x0, 0xa8(%rsp)
movq $0x0, 0x108(%rsp)
xorl %edx, %edx
movq $0x0, 0xb8(%rsp)
movq $0x0, 0xc8(%rsp)
movq $0x0, 0x38(%rsp)
movq 0x68(%rsp), %r14
movl 0x188(%rsp), %r15d
movq %r13, 0xd0(%rsp)
leaq (%rcx,%rcx), %rax
movq %rax, 0x118(%rsp)
movb $0x1, %r8b
xorl %edi, %edi
xorl %r10d, %r10d
xorl %r9d, %r9d
movq %rcx, 0x18(%rsp)
movl %esi, %ebp
testq %r10, %r10
je 0xfdffd
movl %r9d, %ebp
notl %ebp
addl 0x10(%r11), %ebp
cmpl %esi, %ebp
cmovael %esi, %ebp
movl %ecx, 0x14(%rsp)
movq 0x20(%rbx), %rax
cmpl $0x0, (%rax,%rcx,8)
js 0xfe592
testl %r15d, %r15d
je 0xfe01f
cmpb $0x1, 0x4(%rax,%rcx,8)
je 0xfe592
movq %rdi, 0x48(%rsp)
movq 0x10(%r12), %rax
leaq (%rcx,%rcx,4), %rdi
leaq (%rax,%rdi,8), %r11
cmpl $0x0, 0xc(%r11)
je 0xfe592
cmpl $0x0, (%r11)
js 0xfe592
movq %rdi, 0xc0(%rsp)
movl 0x4(%r11), %ecx
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
cmpq %rdi, %rcx
je 0xfe58d
movl 0x8(%r11), %eax
cmpq %rdi, %rax
je 0xfe58d
movq %rdx, 0x8(%rsp)
movq 0x48(%rsp), %rsi
orq 0x118(%rsp), %rsi
movq 0x28(%rbx), %rdx
movq %rsi, 0xd8(%rsp)
movq (%rdx,%rsi,8), %rdx
movq %rdx, %rsi
andq %rdi, %rsi
movl %r8d, 0x4(%rsp)
je 0xfe104
movq %r10, 0x40(%rsp)
movl %r15d, %r10d
movq %r12, %r15
movq %r13, %r12
movq %r9, %r13
movq 0x8(%rbx), %rdi
shrq $0x20, %rdx
leaq (%rdx,%rdx,2), %rdx
leaq (%rdi,%rdx,8), %rdx
addq $0xc, %rdx
shlq $0x3, %rsi
leaq (%rsi,%rsi,2), %rsi
xorl %edi, %edi
xorl %r8d, %r8d
movl (%rdx,%rdi), %r9d
notl %r9d
shrl $0x1f, %r9d
addl %r9d, %r8d
addq $0x18, %rdi
cmpq %rdi, %rsi
jne 0xfe0ce
testl %r8d, %r8d
movl 0x4(%rsp), %r8d
movq %r13, %r9
movq %r12, %r13
movq %r15, %r12
movl %r10d, %r15d
movq 0x40(%rsp), %r10
jne 0xfe581
movq 0x18(%r11), %rdx
cmpl %ecx, 0x4(%rdx)
jne 0xfe581
xorl $0x1, %eax
movl 0x10(%r11), %edi
decl %edi
cmpl %eax, 0x4(%rdx,%rdi,8)
movl 0x178(%rsp), %esi
movq 0x18(%rsp), %rcx
jne 0xfe380
testl %ebp, %ebp
movq 0x8(%rsp), %rdx
je 0xfe38a
movzbl %r8b, %eax
movl %eax, %r9d
andl $0x1, %r9d
negq %r9
orq $0x1, %r9
movq %r9, 0xf8(%rsp)
xorl %r9d, %r9d
testb $0x1, %al
cmoveq %r9, %rdi
movq %r11, 0x58(%rsp)
movl 0x10(%r11), %eax
cmpq %rax, %rdi
jae 0xfe38d
movq %r9, 0x98(%rsp)
movq %rdx, 0x8(%rsp)
movq 0x18(%r11), %rax
movq %rdi, 0x60(%rsp)
movq (%rax,%rdi,8), %rcx
shrq $0x20, %rcx
movq 0x48(%rsp), %rax
movl %eax, %ebx
movq %rcx, 0xf0(%rsp)
xorl %ecx, %ebx
movl $0x0, (%rsp)
subq $0x8, %rsp
movq %r12, %rdi
movq %r14, %rsi
movq 0xe8(%rsp), %rdx
movq 0xf0(%rsp), %rcx
movq %r13, %r8
movl 0xac(%rsp), %r9d
movl $0x1, %eax
pushq %rax
leaq 0x130(%rsp), %r10
pushq %r10
leaq 0x18(%rsp), %r10
pushq %r10
pushq %rax
leaq 0x3c(%rsp), %rax
pushq %rax
pushq %rbx
movl 0x1a8(%rsp), %eax
pushq %rax
callq 0x1072ad
addq $0x40, %rsp
testl %eax, %eax
je 0xfe338
movq %r12, %r13
xorl %r15d, %r15d
xorl %r12d, %r12d
xorl %r8d, %r8d
cmpq 0x108(%rsp), %r8
movq 0x8(%rsp), %rdi
jne 0xfe257
testq %r8, %r8
movq %r12, %rcx
movl $0x2, %eax
cmoveq %rax, %rcx
movq %rcx, 0x108(%rsp)
leaq (,%rcx,8), %rax
leaq (%rax,%rax,2), %rsi
movq %rbx, %r14
movq %r8, %rbx
callq 0x2370
movq %rbx, %r8
movq %r14, %rbx
movq %rax, %rdi
incq %r8
movq %r8, 0x40(%rsp)
movq 0x130(%rsp), %rax
movq %rax, 0x10(%rdi,%r15)
movups 0x120(%rsp), %xmm0
movq %rdi, 0x8(%rsp)
movups %xmm0, (%rdi,%r15)
subq $0x8, %rsp
movq %r13, %rdi
movq 0x70(%rsp), %rsi
movq 0xe8(%rsp), %rdx
movq 0xf0(%rsp), %rcx
movq 0xd8(%rsp), %r8
movl 0xac(%rsp), %r9d
movl $0x1, %eax
pushq %rax
leaq 0x130(%rsp), %r10
pushq %r10
leaq 0x18(%rsp), %r10
pushq %r10
pushq %rax
leaq 0x3c(%rsp), %rax
pushq %rax
pushq %rbx
movl 0x1a8(%rsp), %eax
pushq %rax
callq 0x1072ad
movq 0x80(%rsp), %r8
addq $0x40, %rsp
addq $0x2, %r12
addq $0x18, %r15
testl %eax, %eax
jne 0xfe211
testq %r8, %r8
movq 0x8(%rsp), %rdx
movq 0x58(%rsp), %r11
movq 0x98(%rsp), %r9
jne 0xfe395
movq %r13, %r12
movq 0xd0(%rsp), %r13
movq 0x68(%rsp), %r14
movl 0x188(%rsp), %r15d
movl 0x178(%rsp), %esi
movq 0x18(%rsp), %rcx
movl 0x4(%rsp), %r8d
jmp 0xfe35b
movq 0x8(%rsp), %rdx
movl 0x178(%rsp), %esi
movq 0x58(%rsp), %r11
movq 0x18(%rsp), %rcx
movl 0x4(%rsp), %r8d
movq 0x98(%rsp), %r9
movq 0x60(%rsp), %rdi
incl %r9d
cmpl %ebp, %r9d
movq 0xb0(%rsp), %rbx
jae 0xfe38d
addq 0xf8(%rsp), %rdi
jns 0xfe165
jmp 0xfe38d
movq 0x8(%rsp), %rdx
jmp 0xfe592
xorl %r9d, %r9d
xorl %r10d, %r10d
jmp 0xfe592
testb $0x1, 0x4(%rsp)
movq %r13, %r12
movl 0x188(%rsp), %r15d
movq 0x60(%rsp), %rsi
je 0xfe3bd
movq 0xf0(%rsp), %rax
xorl $0x1, %eax
movl %eax, 0x8(%r11)
jmp 0xfe3c4
xorl $0x1, %ebx
movl %ebx, 0x4(%r11)
movq 0xd0(%rsp), %r13
movl 0x14(%rsp), %ebx
movq 0x50(%rsp), %rbp
cmpq 0x100(%rsp), %rbp
movq 0x68(%rsp), %r14
jne 0xfe426
leaq (,%rbp,2), %rcx
testq %rbp, %rbp
movl $0x2, %eax
cmoveq %rax, %rcx
movq %rcx, 0x100(%rsp)
leaq (,%rcx,8), %rsi
movq 0xa8(%rsp), %rdi
callq 0x2370
movq 0x60(%rsp), %rsi
movq 0x40(%rsp), %r8
movq 0x8(%rsp), %rdx
jmp 0xfe42e
movq 0xa8(%rsp), %rax
movq 0x48(%rsp), %rdi
shlq $0x3f, %rdi
movq %rsi, %rcx
shlq $0x20, %rcx
orq %rdi, %rcx
orq %rcx, %rbx
movq %rax, 0xa8(%rsp)
movq %rbx, (%rax,%rbp,8)
incq %rbp
movq %rbp, 0x50(%rsp)
movq %rsi, %rbx
movq %r12, %rdi
movq %r13, %rsi
movl %r8d, %ecx
callq 0xf48e8
testl %r15d, %r15d
je 0xfe5ac
xorl %eax, %eax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
xorl %edx, %edx
movq 0xb0(%rsp), %rbx
movq 0x40(%rsp), %r10
leaq (%rax,%rax,2), %rsi
movq 0x8(%rsp), %rdi
movups (%rdi,%rsi,8), %xmm0
movaps %xmm0, 0x20(%rsp)
movq 0x10(%rdi,%rsi,8), %rsi
movq %rsi, 0x30(%rsp)
movl 0x2c(%rsp), %edi
testl %edi, %edi
setns %r8b
cmpl %edx, %edi
seta %r9b
movl %eax, %esi
testb %r9b, %r8b
jne 0xfe4bf
movl %edx, %edi
movl %ecx, %esi
incl %eax
movl %esi, %ecx
movl %edi, %edx
cmpq %rax, %r10
ja 0xfe488
movl %eax, (%rsp)
cmpl $-0x1, %esi
je 0xfecba
movl %esi, %eax
leaq (%rax,%rax,2), %rax
movq 0x8(%rsp), %rcx
movups (%rcx,%rax,8), %xmm0
movaps %xmm0, 0x20(%rsp)
movq 0x10(%rcx,%rax,8), %rax
movq %rax, 0x30(%rsp)
movl 0x28(%rsp), %edx
movq %r12, %rdi
movq %r13, %rsi
callq 0xf488a
cmpl $-0x1, %eax
je 0xfeece
movq %rax, 0x48(%rsp)
movl %eax, %ebp
xorl $0x1, %ebp
movq 0x28(%rbx), %rax
movq (%rax,%rbp,8), %rax
movq %rax, %rcx
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
andq %rdx, %rcx
movq 0x58(%rsp), %r11
movl 0x4(%rsp), %r8d
movq 0x98(%rsp), %r9
movq 0x40(%rsp), %r10
je 0xfece2
movq 0x8(%rbx), %rdx
shrq $0x20, %rax
leaq (%rax,%rax,2), %rax
leaq (%rdx,%rax,8), %rax
addq $0xc, %rax
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rcx
xorl %edx, %edx
xorl %esi, %esi
movl (%rax,%rdx), %edi
notl %edi
shrl $0x1f, %edi
addl %edi, %esi
addq $0x18, %rdx
cmpq %rdx, %rcx
jne 0xfe566
testl %esi, %esi
je 0xfece2
movq 0x8(%rsp), %rdx
movl 0x178(%rsp), %esi
movq 0x18(%rsp), %rcx
movl $0x1, %edi
testb $0x1, %r8b
movl $0x0, %r8d
jne 0xfdfe8
jmp 0xfeefb
subq 0xf8(%rsp), %rbx
movq 0x58(%rsp), %r11
movq 0x40(%rsp), %r10
movq %rbx, %rdx
js 0xfea10
movl 0x10(%r11), %eax
cmpq %rax, %rdx
jae 0xfea10
movq 0x18(%r11), %rax
movq (%rax,%rdx,8), %rax
movq %rax, 0x48(%rsp)
movq %rax, %rsi
shrq $0x20, %rsi
movq 0x8(%r14), %rax
movq 0x28(%r14), %rcx
movq (%rcx,%rsi,8), %rbp
movl $0x0, (%rsp)
testl %ebp, %ebp
movq %rdx, 0x60(%rsp)
je 0xfe79f
movq %rsi, 0xf0(%rsp)
movq %rbp, %rcx
shrq $0x20, %rcx
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,8), %rbx
xorl %eax, %eax
movl %eax, %ecx
leaq (%rcx,%rcx,2), %rdx
cmpl $0x0, 0xc(%rbx,%rdx,8)
js 0xfe782
movq 0x70(%rsp), %rdx
movq 0x80(%rsp), %rax
cmpq 0x78(%rsp), %rdx
jne 0xfe67b
leaq (%rdx,%rdx), %rcx
testq %rdx, %rdx
movl $0x2, %edx
cmoveq %rdx, %rcx
movq %rcx, 0x78(%rsp)
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rsi
movq %rax, %rdi
callq 0x2370
movq %rax, 0x80(%rsp)
movl (%rsp), %ecx
movq 0x70(%rsp), %rdx
leaq (%rcx,%rcx,2), %rcx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x70(%rsp)
leaq (%rdx,%rdx,2), %rdx
movq 0x10(%rbx,%rcx,8), %rsi
movq %rsi, 0x10(%rax,%rdx,8)
movups (%rbx,%rcx,8), %xmm0
movups %xmm0, (%rax,%rdx,8)
movl 0x8(%rbx,%rcx,8), %eax
xorq $0x1, %rax
movq 0x28(%r14), %rdx
movq (%rdx,%rax,8), %rdx
movq %rdx, %rsi
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
andq %rax, %rsi
je 0xfe6fb
movl 0x4(%rbx,%rcx,8), %ecx
movq 0x8(%r14), %rax
shrq $0x20, %rdx
shlq $0x3, %rsi
leaq (%rsi,%rsi,2), %rdi
leaq (%rdx,%rdx,2), %rdx
leaq (%rax,%rdx,8), %r8
addq $0xc, %r8
xorl %esi, %esi
cmpl $0x0, (%r8,%rsi)
js 0xfe6f2
movl -0x4(%r8,%rsi), %r9d
xorl %ecx, %r9d
cmpl $0x1, %r9d
je 0xfe702
addq $0x18, %rsi
cmpq %rsi, %rdi
jne 0xfe6dd
callq 0x11a52
jmp 0xfe719
leaq (%rax,%rdx,8), %rax
movq 0x10(%rsi,%rax), %rcx
movq %rcx, 0x30(%rsp)
movups (%rsi,%rax), %xmm0
movaps %xmm0, 0x20(%rsp)
movq 0x70(%rsp), %rcx
movq 0x80(%rsp), %rax
cmpq 0x78(%rsp), %rcx
jne 0xfe75f
leaq (%rcx,%rcx), %rdx
testq %rcx, %rcx
movl $0x2, %ecx
cmoveq %rcx, %rdx
movq %rdx, 0x78(%rsp)
shlq $0x3, %rdx
leaq (%rdx,%rdx,2), %rsi
movq %rax, %rdi
callq 0x2370
movq %rax, 0x80(%rsp)
movq 0x70(%rsp), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x70(%rsp)
leaq (%rcx,%rcx,2), %rcx
movq 0x30(%rsp), %rdx
movq %rdx, 0x10(%rax,%rcx,8)
movaps 0x20(%rsp), %xmm0
movups %xmm0, (%rax,%rcx,8)
movl (%rsp), %eax
incl %eax
movl %eax, (%rsp)
cmpl %ebp, %eax
jb 0xfe621
movq 0x8(%r14), %rax
movq 0x28(%r14), %rcx
movq 0xf0(%rsp), %rsi
xorq $0x1, %rsi
movq (%rcx,%rsi,8), %rbx
movl $0x0, (%rsp)
testl %ebx, %ebx
je 0xfe936
movq %rbx, %rcx
shrq $0x20, %rcx
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,8), %rbp
xorl %eax, %eax
movl %eax, %ecx
leaq (%rcx,%rcx,2), %rdx
cmpl $0x0, 0xc(%rbp,%rdx,8)
js 0xfe929
movq 0x70(%rsp), %rdx
movq 0x80(%rsp), %rax
cmpq 0x78(%rsp), %rdx
jne 0xfe821
leaq (%rdx,%rdx), %rcx
testq %rdx, %rdx
movl $0x2, %edx
cmoveq %rdx, %rcx
movq %rcx, 0x78(%rsp)
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rsi
movq %rax, %rdi
callq 0x2370
movq %rax, 0x80(%rsp)
movl (%rsp), %ecx
movq 0x70(%rsp), %rdx
leaq (%rcx,%rcx,2), %rcx
leaq 0x1(%rdx), %rsi
movq %rsi, 0x70(%rsp)
leaq (%rdx,%rdx,2), %rdx
movq 0x10(%rbp,%rcx,8), %rsi
movq %rsi, 0x10(%rax,%rdx,8)
movups (%rbp,%rcx,8), %xmm0
movups %xmm0, (%rax,%rdx,8)
movl 0x8(%rbp,%rcx,8), %eax
xorq $0x1, %rax
movq 0x28(%r14), %rdx
movq (%rdx,%rax,8), %rdx
movq %rdx, %rsi
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
andq %rax, %rsi
je 0xfe8a2
movl 0x4(%rbp,%rcx,8), %ecx
movq 0x8(%r14), %rax
shrq $0x20, %rdx
shlq $0x3, %rsi
leaq (%rsi,%rsi,2), %rdi
leaq (%rdx,%rdx,2), %rdx
leaq (%rax,%rdx,8), %r8
addq $0xc, %r8
xorl %esi, %esi
cmpl $0x0, (%r8,%rsi)
js 0xfe899
movl -0x4(%r8,%rsi), %r9d
xorl %ecx, %r9d
cmpl $0x1, %r9d
je 0xfe8a9
addq $0x18, %rsi
cmpq %rsi, %rdi
jne 0xfe884
callq 0x11a74
jmp 0xfe8c0
leaq (%rax,%rdx,8), %rax
movq 0x10(%rsi,%rax), %rcx
movq %rcx, 0x30(%rsp)
movups (%rsi,%rax), %xmm0
movaps %xmm0, 0x20(%rsp)
movq 0x70(%rsp), %rcx
movq 0x80(%rsp), %rax
cmpq 0x78(%rsp), %rcx
jne 0xfe906
leaq (%rcx,%rcx), %rdx
testq %rcx, %rcx
movl $0x2, %ecx
cmoveq %rcx, %rdx
movq %rdx, 0x78(%rsp)
shlq $0x3, %rdx
leaq (%rdx,%rdx,2), %rsi
movq %rax, %rdi
callq 0x2370
movq %rax, 0x80(%rsp)
movq 0x70(%rsp), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x70(%rsp)
leaq (%rcx,%rcx,2), %rcx
movq 0x30(%rsp), %rdx
movq %rdx, 0x10(%rax,%rcx,8)
movaps 0x20(%rsp), %xmm0
movups %xmm0, (%rax,%rcx,8)
movl (%rsp), %eax
incl %eax
movl %eax, (%rsp)
cmpl %ebx, %eax
jb 0xfe7c7
movq 0x48(%rsp), %rbp
shrq $0x21, %rbp
movq 0x20(%r14), %rax
orl $0x80000000, (%rax,%rbp,8) # imm = 0x80000000
addl %ebp, %ebp
movb $0x1, %al
xorl %ecx, %ecx
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
orq %rbp, %rcx
movq 0x28(%r14), %rdx
movq (%rdx,%rcx,8), %rsi
movq %rsi, %rdx
andq %rbx, %rdx
je 0xfe9e1
shrq $0x20, %rsi
leaq (%rsi,%rsi,2), %rsi
shlq $0x3, %rsi
addq 0x8(%r14), %rsi
xorl %edi, %edi
leaq (%rdi,%rdi,2), %r8
orb $-0x80, 0xf(%rsi,%r8,8)
movl 0x8(%rsi,%r8,8), %r8d
xorq $0x1, %r8
movq 0x28(%r14), %r9
movq (%r9,%r8,8), %r9
movq %r9, %r8
andq %rbx, %r8
je 0xfe9d9
movq 0x8(%r14), %r10
shrq $0x20, %r9
shlq $0x3, %r8
leaq (%r8,%r8,2), %r8
leaq (%r9,%r9,2), %r9
leaq (%r10,%r9,8), %r9
addq $0xc, %r9
xorl %r10d, %r10d
movl -0x4(%r9,%r10), %r11d
xorl %ecx, %r11d
cmpl $0x1, %r11d
jne 0xfe9d0
orb $-0x80, 0x3(%r9,%r10)
addq $0x18, %r10
cmpq %r10, %r8
jne 0xfe9bc
incq %rdi
cmpq %rdx, %rdi
jne 0xfe97a
movl $0x1, %ecx
testb $0x1, %al
movl $0x0, %eax
jne 0xfe955
movq 0x60(%rsp), %rdx
subq 0xf8(%rsp), %rdx
movq 0x58(%rsp), %r11
movq 0x40(%rsp), %r10
jns 0xfe5c7
movl $0x0, (%rsp)
movq 0xd8(%rsp), %rax
xorl $0x1, %eax
movl %eax, 0x60(%rsp)
xorl %ebx, %ebx
movq 0x8(%rsp), %rdx
movl 0x178(%rsp), %esi
movq 0x18(%rsp), %rcx
movl 0x4(%rsp), %r8d
movq 0x98(%rsp), %r9
leaq (%rbx,%rbx,2), %rax
movups (%rdx,%rax,8), %xmm0
movaps %xmm0, 0x20(%rsp)
movq 0x10(%rdx,%rax,8), %rax
movq %rax, 0x30(%rsp)
cmpl $0x0, 0x2c(%rsp)
js 0xfec9f
movl 0x28(%rsp), %edx
movq %r12, %rdi
movq %r13, %rsi
callq 0xf488a
cmpl $-0x1, %eax
je 0xfeacd
movl %eax, %r11d
movq 0xb8(%rsp), %rax
movq 0xc8(%rsp), %r13
cmpq %r13, %rax
jne 0xfeae8
leaq (%rax,%rax), %r13
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %r13
leaq (,%r13,8), %rax
leaq (%rax,%rax,2), %rsi
movq 0x38(%rsp), %rdi
movq %r11, %rbx
callq 0x2370
movq %rbx, %r11
movq %rax, %rbp
movq 0xb8(%rsp), %rax
jmp 0xfeaed
movq 0x8(%rsp), %rdx
movl 0x178(%rsp), %esi
movq 0x58(%rsp), %r11
movq 0x18(%rsp), %rcx
jmp 0xfec8d
movq 0x38(%rsp), %rbp
movq 0xc0(%rsp), %rdx
leaq 0x1(%rax), %rbx
leaq (%rax,%rax,2), %rax
movq 0x30(%rsp), %rcx
movq %rcx, 0x10(%rbp,%rax,8)
movaps 0x20(%rsp), %xmm0
movups %xmm0, (%rbp,%rax,8)
movl 0x2c(%rsp), %r8d
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
andl %ecx, %r8d
movq 0x10(%r12), %rax
movl (%rax,%rdx,8), %edx
andl %ecx, %edx
movzwl 0x30(%rsp), %eax
movl %eax, %r9d
shrl $0xe, %r9d
movzbl 0x32(%rsp), %r10d
shrl $0xf, %eax
andl $0x1, %r9d
movq 0xb0(%rsp), %rdi
movq 0xd8(%rsp), %rsi
movq %r11, 0x48(%rsp)
movl %r11d, %ecx
pushq %rax
pushq %r10
callq 0xeaa02
addq $0x10, %rsp
movl 0x24(%rsp), %eax
movl 0x28(%rsp), %r9d
xorl $0x1, %r9d
xorl $0x1, %eax
movq 0xe0(%rsp), %rdi
movq 0xe8(%rsp), %rsi
movl 0xa4(%rsp), %ecx
movl 0x170(%rsp), %r8d
leaq 0x20(%rsp), %rdx
pushq %rdx
pushq %rax
callq 0xb3df3
addq $0x10, %rsp
cmpq %r13, %rbx
jne 0xfebe6
leaq (,%r13,2), %r15
testq %r13, %r13
movl $0x2, %eax
cmoveq %rax, %r15
leaq (,%r15,8), %rax
leaq (%rax,%rax,2), %rsi
movq %rbp, %rdi
callq 0x2370
movq %rax, %rbp
movq %r15, 0xc8(%rsp)
movl 0x188(%rsp), %r15d
jmp 0xfebee
movq %r13, 0xc8(%rsp)
addq $0x2, 0xb8(%rsp)
leaq (%rbx,%rbx,2), %rax
movq 0x30(%rsp), %rcx
movq %rcx, 0x10(%rbp,%rax,8)
movaps 0x20(%rsp), %xmm0
movq %rbp, 0x38(%rsp)
movups %xmm0, (%rbp,%rax,8)
movl 0x2c(%rsp), %r8d
movl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
andl %edi, %r8d
movq 0x48(%rsp), %rcx
movl %ecx, %esi
xorl $0x1, %esi
movq 0x10(%r12), %rax
shrl %ecx
leaq (%rcx,%rcx,4), %rcx
movl (%rax,%rcx,8), %edx
andl %edi, %edx
movzwl 0x30(%rsp), %eax
movl %eax, %r9d
shrl $0xe, %r9d
movzbl 0x32(%rsp), %r10d
shrl $0xf, %eax
andl $0x1, %r9d
movq 0xb0(%rsp), %rdi
movl 0x60(%rsp), %ecx
pushq %rax
pushq %r10
callq 0xeaa02
addq $0x10, %rsp
movl (%rsp), %ebx
movq 0x8(%rsp), %rdx
movl 0x178(%rsp), %esi
movq 0x58(%rsp), %r11
movq 0x18(%rsp), %rcx
movq 0xd0(%rsp), %r13
movl 0x4(%rsp), %r8d
movq 0x98(%rsp), %r9
movq 0x40(%rsp), %r10
incl %ebx
movl %ebx, (%rsp)
cmpq %rbx, %r10
ja 0xfea46
movq 0xb0(%rsp), %rbx
jmp 0xfe592
movq 0x8(%rsp), %rdx
movl 0x178(%rsp), %esi
movq 0x58(%rsp), %r11
movq 0x18(%rsp), %rcx
movl 0x4(%rsp), %r8d
movq 0x98(%rsp), %r9
jmp 0xfe592
movq %rbp, 0x60(%rsp)
movq 0xb8(%rsp), %rax
movq 0xc8(%rsp), %rbx
cmpq %rbx, %rax
jne 0xfed2f
leaq (%rax,%rax), %rbx
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rbx
leaq (,%rbx,8), %rax
leaq (%rax,%rax,2), %rsi
movq 0x38(%rsp), %rdi
callq 0x2370
movq %rax, %rbp
movq 0xb8(%rsp), %rax
jmp 0xfed34
movq 0x38(%rsp), %rbp
movq 0xc0(%rsp), %rdx
leaq 0x1(%rax), %rcx
movq %rcx, 0xc0(%rsp)
leaq (%rax,%rax,2), %rax
movq 0x30(%rsp), %rcx
movq %rcx, 0x10(%rbp,%rax,8)
movaps 0x20(%rsp), %xmm0
movups %xmm0, (%rbp,%rax,8)
movl 0x2c(%rsp), %r8d
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
andl %ecx, %r8d
movq 0x10(%r12), %rax
movl (%rax,%rdx,8), %edx
andl %ecx, %edx
movzwl 0x30(%rsp), %eax
movl %eax, %r9d
shrl $0xe, %r9d
movzbl 0x32(%rsp), %r10d
shrl $0xf, %eax
andl $0x1, %r9d
movq 0xb0(%rsp), %rdi
movq 0xd8(%rsp), %rsi
movq 0x48(%rsp), %rcx
pushq %rax
pushq %r10
callq 0xeaa02
addq $0x10, %rsp
movl 0x24(%rsp), %eax
movl 0x28(%rsp), %r9d
xorl $0x1, %r9d
xorl $0x1, %eax
movq 0xe0(%rsp), %rdi
movq 0xe8(%rsp), %rsi
movl 0xa4(%rsp), %ecx
movl 0x170(%rsp), %r8d
leaq 0x20(%rsp), %rdx
pushq %rdx
pushq %rax
callq 0xb3df3
addq $0x10, %rsp
movq 0xc0(%rsp), %rax
cmpq %rbx, %rax
jne 0xfee36
leaq (%rbx,%rbx), %r15
testq %rbx, %rbx
movl $0x2, %eax
cmoveq %rax, %r15
leaq (,%r15,8), %rax
leaq (%rax,%rax,2), %rsi
movq %rbp, %rdi
callq 0x2370
movq %rax, %rbp
movq %r15, 0xc8(%rsp)
movl 0x188(%rsp), %r15d
jmp 0xfee3e
movq %rbx, 0xc8(%rsp)
addq $0x2, 0xb8(%rsp)
movq 0xc0(%rsp), %rax
leaq (%rax,%rax,2), %rax
movq 0x30(%rsp), %rcx
movq %rcx, 0x10(%rbp,%rax,8)
movaps 0x20(%rsp), %xmm0
movq %rbp, 0x38(%rsp)
movups %xmm0, (%rbp,%rax,8)
movl 0x2c(%rsp), %r8d
movl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl %esi, %r8d
movq 0x10(%r12), %rax
movq 0x48(%rsp), %rcx
shrl %ecx
leaq (%rcx,%rcx,4), %rcx
movl (%rax,%rcx,8), %edx
andl %esi, %edx
movq 0xd8(%rsp), %rcx
xorl $0x1, %ecx
movzwl 0x30(%rsp), %eax
movl %eax, %r9d
shrl $0xe, %r9d
movzbl 0x32(%rsp), %r10d
shrl $0xf, %eax
andl $0x1, %r9d
movq 0xb0(%rsp), %rbx
movq %rbx, %rdi
movq 0x60(%rsp), %rsi
pushq %rax
pushq %r10
callq 0xeaa02
addq $0x10, %rsp
movq 0x8(%rsp), %rdx
movl 0x178(%rsp), %esi
movq 0x58(%rsp), %r11
movq 0x18(%rsp), %rcx
movl 0x4(%rsp), %r8d
movq 0x98(%rsp), %r9
movq 0x40(%rsp), %r10
jmp 0xfe592
incq %rcx
movl 0x14(%rbx), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cmpq %rax, %rcx
jb 0xfdfcc
movq 0xb8(%rsp), %rbp
jmp 0xfef64
movq $0x0, 0x38(%rsp)
xorl %ebp, %ebp
xorl %edx, %edx
movq $0x0, 0xa8(%rsp)
movq $0x0, 0x50(%rsp)
jmp 0xfef64
movq $0x0, 0x38(%rsp)
xorl %ebp, %ebp
xorl %edx, %edx
movq $0x0, 0xa8(%rsp)
movq $0x0, 0x50(%rsp)
movq 0x68(%rsp), %r14
movq %rdx, 0x8(%rsp)
cmpl $0x0, 0x180(%rsp)
je 0xff3b1
movl $0x0, (%rsp)
testq %rbp, %rbp
je 0xff039
xorl %ecx, %ecx
movl $0x10, %ebx
movl 0x4(%r14), %esi
movl %esi, %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
cmpl (%r14), %edx
jne 0xfefd0
leal (%rdx,%rdx), %eax
testl %edx, %edx
cmovel %ebx, %eax
movl %eax, (%r14)
movq 0x8(%r14), %rdi
shlq $0x3, %rax
leaq (%rax,%rax,2), %rsi
callq 0x2370
movq %rax, 0x8(%r14)
movl 0x4(%r14), %esi
movl %esi, %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
movl (%rsp), %ecx
jmp 0xfefd4
movq 0x8(%r14), %rax
leal 0x1(%rsi), %edi
andl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
andl $0x80000000, %esi       # imm = 0x80000000
orl %edi, %esi
movl %esi, 0x4(%r14)
movl %edx, %edx
leaq (%rdx,%rdx,2), %rdx
movl %ecx, %esi
leaq (%rsi,%rsi,2), %rsi
movq 0x38(%rsp), %r8
movq 0x10(%r8,%rsi,8), %rdi
movq %rdi, 0x10(%rax,%rdx,8)
movups (%r8,%rsi,8), %xmm0
movups %xmm0, (%rax,%rdx,8)
incl %ecx
movl %ecx, (%rsp)
cmpq %rcx, %rbp
ja 0xfef8e
movq 0x28(%r14), %rdi
callq 0x2220
movq $0x0, 0x28(%r14)
andb $0x7f, 0x7(%r14)
movq %r14, %rdi
callq 0xa0a7d
movq 0x190(%rsp), %rbx
movl $0x64, %ecx
movq %r14, %rdx
xorl %r8d, %r8d
callq 0xe96a2
testq %rax, %rax
jne 0xff041
movq %r14, %rdi
callq 0xa0a7d
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0xa7e08
movl $0x0, (%rsp)
testq %rbp, %rbp
je 0xff17d
xorl %ecx, %ecx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
leaq (%rcx,%rcx,2), %rdx
movq 0x38(%rsp), %rcx
movq (%rcx,%rdx,8), %rcx
movq 0x20(%r14), %rsi
movq %rcx, %rdi
shrq $0x21, %rdi
cmpl $0x0, (%rsi,%rdi,8)
js 0xff16c
movq 0x38(%rsp), %rdi
movl 0x8(%rdi,%rdx,8), %edx
movl %edx, %edi
shrl %edi
cmpl $0x0, (%rsi,%rdi,8)
js 0xff16c
shrq $0x20, %rcx
movq 0x30(%r14), %rsi
cmpb $0x0, (%rsi,%rcx)
je 0xff0da
movq %rdx, %rdi
xorq $0x1, %rdi
cmpb $0x0, (%rsi,%rdi)
jne 0xff16c
movq 0x8(%r14), %rsi
movq 0x28(%r14), %rdi
movq (%rdi,%rcx,8), %r8
movq %r8, %r9
andq %rax, %r9
je 0xff127
shrq $0x20, %r8
shlq $0x3, %r9
leaq (%r9,%r9,2), %rdi
leaq (%r8,%r8,2), %r8
leaq (%rsi,%r8,8), %rsi
addq $0xc, %rsi
xorl %r8d, %r8d
cmpl %edx, -0x4(%rsi,%r8)
jne 0xff116
orb $-0x80, 0x3(%rsi,%r8)
addq $0x18, %r8
cmpq %r8, %rdi
jne 0xff109
movq 0x8(%r14), %rsi
movq 0x28(%r14), %rdi
xorl $0x1, %edx
movq (%rdi,%rdx,8), %rdi
movq %rdi, %rdx
andq %rax, %rdx
je 0xff16c
shrq $0x20, %rdi
shlq $0x3, %rdx
leaq (%rdx,%rdx,2), %rdx
leaq (%rdi,%rdi,2), %rdi
leaq (%rsi,%rdi,8), %rsi
addq $0xc, %rsi
xorl %edi, %edi
movl -0x4(%rsi,%rdi), %r8d
xorl %ecx, %r8d
cmpl $0x1, %r8d
jne 0xff163
orb $-0x80, 0x3(%rsi,%rdi)
addq $0x18, %rdi
cmpq %rdi, %rdx
jne 0xff150
movl (%rsp), %ecx
incl %ecx
movl %ecx, (%rsp)
cmpq %rcx, %rbp
ja 0xff082
movq %r14, %rdi
callq 0xa0a7d
movl $0x0, (%rsp)
cmpq $0x0, 0x70(%rsp)
je 0xff1c3
xorl %ecx, %ecx
movq 0x50(%rsp), %rdx
movq 0x80(%rsp), %rax
leaq (%rcx,%rcx,2), %rcx
orl $0x80000000, 0xc(%rax,%rcx,8) # imm = 0x80000000
movl (%rsp), %ecx
incl %ecx
movl %ecx, (%rsp)
movq 0x70(%rsp), %rax
cmpq %rcx, %rax
ja 0xff19b
jmp 0xff1ca
xorl %eax, %eax
movq 0x50(%rsp), %rdx
movl $0x0, (%rsp)
testq %rdx, %rdx
je 0xff2bc
xorl %eax, %eax
movq %r14, %rbp
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
leaq 0x70(%rsp), %rbx
movq 0xa8(%rsp), %rcx
movq (%rcx,%rax,8), %rdi
movq %rdi, %rdx
shrq $0x3f, %rdx
movq %rdi, %rsi
shrq $0x20, %rsi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
movl %edi, 0x14(%rsp)
movq 0x10(%r12), %rax
movl %edi, %ecx
leaq (%rcx,%rcx,4), %rcx
movq 0x18(%rax,%rcx,8), %r8
movl 0x4(%r8,%rsi,8), %r8d
xorq %rdx, %r8
movq 0x28(%rbp), %rdx
movq (%rdx,%r8,8), %rdx
movq %rdx, %r8
andq %r14, %r8
je 0xff27f
movq 0x68(%rsp), %r9
movq 0x8(%r9), %r9
shrq $0x20, %rdx
leaq (%rdx,%rdx,2), %rdx
leaq (%r9,%rdx,8), %rdx
addq $0xc, %rdx
shlq $0x3, %r8
leaq (%r8,%r8,2), %r8
xorl %r9d, %r9d
xorl %r10d, %r10d
movl (%rdx,%r9), %r11d
notl %r11d
shrl $0x1f, %r11d
addl %r11d, %r10d
addq $0x18, %r9
cmpq %r9, %r8
jne 0xff25d
movl $0x1, %r9d
testl %r10d, %r10d
jg 0xff282
xorl %r9d, %r9d
notq %rdi
sarq $0x3f, %rdi
orq $0x1, %rdi
leaq (%rax,%rcx,8), %rdx
movq 0x68(%rsp), %rbp
movq %rbp, %rcx
movq %rbx, %r8
callq 0xfcd66
movl (%rsp), %eax
incl %eax
movl %eax, (%rsp)
cmpq %rax, 0x50(%rsp)
ja 0xff1ea
movq 0x70(%rsp), %rax
movq %rbp, %r14
movl $0x0, (%rsp)
testq %rax, %rax
je 0xff3a9
xorl %ecx, %ecx
movl $0x10, %ebx
xorl %r14d, %r14d
movq 0x68(%rsp), %rbp
movq 0x80(%rsp), %rdx
leaq (%rcx,%rcx,2), %rsi
cmpl $0x0, 0xc(%rdx,%rsi,8)
js 0xff37b
movl 0x4(%rbp), %edi
movl %edi, %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
cmpl (%rbp), %esi
jne 0xff33a
leal (%rsi,%rsi), %eax
testl %esi, %esi
cmovel %ebx, %eax
movl %eax, (%rbp)
movq 0x8(%rbp), %rdi
shlq $0x3, %rax
leaq (%rax,%rax,2), %rsi
callq 0x2370
movq %rax, 0x8(%rbp)
movl 0x4(%rbp), %edi
movl %edi, %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
movq 0x80(%rsp), %rdx
movl (%rsp), %ecx
jmp 0xff33e
movq 0x8(%rbp), %rax
leal 0x1(%rdi), %r8d
andl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
andl $0x80000000, %edi       # imm = 0x80000000
orl %r8d, %edi
movl %edi, 0x4(%rbp)
movl %esi, %esi
leaq (%rsi,%rsi,2), %rsi
movl %ecx, %edi
leaq (%rdi,%rdi,2), %rdi
movq 0x10(%rdx,%rdi,8), %r8
movq %r8, 0x10(%rax,%rsi,8)
movups (%rdx,%rdi,8), %xmm0
movups %xmm0, (%rax,%rsi,8)
incq %r14
movq 0x70(%rsp), %rax
incl %ecx
movl %ecx, (%rsp)
cmpq %rcx, %rax
ja 0xff2db
testq %r14, %r14
movq 0x68(%rsp), %r14
je 0xff3a9
movq 0x28(%r14), %rdi
callq 0x2220
movq $0x0, 0x28(%r14)
andb $0x7f, 0x7(%r14)
movq %r14, %rdi
callq 0xa0a7d
cmpl $0x0, 0x188(%rsp)
movq 0xa8(%rsp), %rbp
movq 0x50(%rsp), %rax
je 0xff42b
movl $0x0, (%rsp)
testq %rax, %rax
je 0xff42b
xorl %eax, %eax
leaq 0x70(%rsp), %rbx
movq (%rbp,%rax,8), %rdi
movq %rdi, %rsi
movl %edi, 0x14(%rsp)
movl %edi, %eax
notq %rdi
sarq $0x3f, %rdi
orq $0x1, %rdi
shrq $0x20, %rsi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
leaq (%rax,%rax,4), %rdx
shlq $0x3, %rdx
addq 0x10(%r12), %rdx
movq %r14, %rcx
movq %rbx, %r8
movl $0x1, %r9d
callq 0xfcd66
movl (%rsp), %eax
incl %eax
movl %eax, (%rsp)
cmpq %rax, 0x50(%rsp)
ja 0xff3db
movq (%r13), %rax
testq %rax, %rax
movq %rbp, %rbx
je 0xff470
movq 0x8(%r13), %rcx
xorl %edx, %edx
movl (%rcx,%rdx,4), %esi
cmpl $-0x1, %esi
je 0xff45e
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
movl %esi, 0x14(%rsp)
cmpl $0x0, (%rcx,%rdx,4)
jns 0xff466
movl $0xffffffff, (%rcx,%rdx,4) # imm = 0xFFFFFFFF
jmp 0xff466
movl $0xffffffff, 0x14(%rsp) # imm = 0xFFFFFFFF
incq %rdx
movl %edx, %esi
cmpq %rsi, %rax
ja 0xff43d
cmpq $0x0, 0x110(%rsp)
jne 0xff483
movq %r12, %rdi
callq 0xa0761
movq 0x38(%rsp), %rdi
callq 0x2220
movq 0x80(%rsp), %rdi
callq 0x2220
movq 0x8(%rsp), %rdi
callq 0x2220
movq %rbx, %rdi
callq 0x2220
addq $0x138, %rsp            # imm = 0x138
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq