// File: /workspace/github_cpp_makefile_star2_O1/chhylp123[P]hifiasm/gfa_ut.cpp
// Function: renew_ng(usg_t*, ma_ug_t*, asg_t*, ug_opt_t*, ma_sub_t**, R_to_U*, unsigned long, char const*)
asg_t *renew_ng(usg_t *eg, ma_ug_t *rug, asg_t *sg, ug_opt_t *uopt, ma_sub_t **cov, R_to_U *ruI, uint64_t scaffold_len, const char *bin_file)
{
    init_aux_table();
    ma_utg_t *u; uint64_t i, v, w, m, h, z, raw_v, raw_w, nocc, nv, vx, wx; int32_t r;
    asg_arc_t t, *p; usg_arc_t *av = NULL; usc_t *psa; ma_ug_t *ug1 = NULL;
    asg_ext_t ext; memset(&ext, 0, sizeof(ext)); ext.ext = asg_init(); asg_t *ng = ext.ext;
    usc_vec_t sa; memset(&sa, 0, sizeof(sa)); 
    ext.a_n = sg->n_seq; 
    ext.cnt.n = ext.cnt.m = ext.a_n;
    CALLOC(ext.cnt.a, ext.cnt.n);///count

    ext.idx_a.n = ext.idx_a.m = sg->n_seq; 
    MALLOC(ext.idx_a.a, ext.idx_a.n); 
    memset(ext.idx_a.a, -1, sizeof(*(ext.idx_a.a))*ext.idx_a.n);//map
    ug1 = convert_usg_t(eg, rug);

    // fprintf(stderr, "-0-[M::%s]\n", __func__);
    // print_vw_edge(sg, 681356, 73351, __func__);
    // prt_spec_edge(sg, R_INF.paf, R_INF.total_reads, 681356, 73351, uopt, "src");
    // // prt_spec_edge(sg, R_INF.reverse_paf, R_INF.total_reads, 681356, 73351, uopt, "rsrc");

    for (i = 0; i < ug1->u.n; ++i) {
        if(ug1->g->seq[i].del) continue;
        u = &(ug1->u.a[i]);        
        for (m = 0; m < u->n; m++) {
            v = u->a[m]>>32;
            ext.cnt.a[v>>1]++;
            if(ext.cnt.a[v>>1] == 1) {
                h = v>>1; ext.idx_a.a[h] = v>>1;
            } else {
                h = ext.idx_a.n; 
                kv_push(uint64_t, ext.idx_a, (v>>1));
            }

            z = (h<<1)|(v&1); z <<= 32; z |= ((uint32_t)u->a[m]);
            u->a[m] = z;
        }
    }

    for (i = 0; i < sg->n_seq; ++i) {
        asg_seq_set(ng, i, sg->seq[i].len, ext.idx_a.a[i]==((uint64_t)-1)?1:0);
        ng->seq[i].c = 0;
        if(ext.idx_a.a[i]!=((uint64_t)-1)) assert(ext.idx_a.a[i] == i);
        ext.idx_a.a[i] = i;///set for the deleted read
    }
    for (; i < ext.idx_a.n; i++) {
        asg_seq_set(ng, i, sg->seq[ext.idx_a.a[i]].len, 0);
        ng->seq[i].c = 0; assert(!(ng->seq[ext.idx_a.a[i]].del));
    }
    ng->r_seq = ng->n_seq;
    assert(ng->n_seq == ext.idx_a.n);


    for (i = 0, nocc = ng->r_seq, sa.n = 0; i < eg->n; ++i) {
        if(ug1->g->seq[i].del) continue;
        ///there shouldn't any scaffolding within the nodes
        v = i<<1; nv = usg_arc_n(eg, v); av = usg_arc_a(eg, v);
        for (m = 0; m < nv; m++) {
            if(av[m].del || eg->a[av[m].v>>1].del) continue;
            w = av[m].v;
            vx = (v&1?((ug1->u.a[v>>1].a[0]>>32)^1):(ug1->u.a[v>>1].a[ug1->u.a[v>>1].n-1]>>32));
            wx = (w&1?((ug1->u.a[w>>1].a[ug1->u.a[w>>1].n-1]>>32)^1):(ug1->u.a[w>>1].a[0]>>32));
            raw_v = (ext.idx_a.a[vx>>1]<<1)|(vx&1);
            raw_w = (ext.idx_a.a[wx>>1]<<1)|(wx&1);
            assert((raw_v>>1) < sg->n_seq);
            assert((raw_w>>1) < sg->n_seq);
            if(vx > wx) continue;
            if((vx == wx) && (vx&1)) continue;
            if(gen_spec_edge(sg, uopt, raw_v, raw_w, &t) < 0) {
                asg_seq_set(ng, nocc, 0, 0);///this is a scaffold node
                ng->seq[nocc].c = 0;
                kv_push(uint64_t, ext.idx_a, ((uint64_t)-1));

                kv_pushp(usc_t, sa, &psa); 
                psa->ulid = (uint32_t)-1; psa->nid = nocc;
                psa->raw_sid = (eg->a[v>>1].mm<<1)|(v&1);///raw unitig id
                psa->raw_eid = (eg->a[w>>1].mm<<1)|(w&1);///raw unitig id
                psa->raw_sof = psa->raw_eof = (uint32_t)-1;
                nocc++;///a scaffold node
            }
        }

        v = (i<<1)+1; nv = usg_arc_n(eg, v); av = usg_arc_a(eg, v);
        for (m = 0; m < nv; m++) {
            if(av[m].del || eg->a[av[m].v>>1].del) continue;
            w = av[m].v;
            vx = (v&1?((ug1->u.a[v>>1].a[0]>>32)^1):(ug1->u.a[v>>1].a[ug1->u.a[v>>1].n-1]>>32));
            wx = (w&1?((ug1->u.a[w>>1].a[ug1->u.a[w>>1].n-1]>>32)^1):(ug1->u.a[w>>1].a[0]>>32));
            raw_v = (ext.idx_a.a[vx>>1]<<1)|(vx&1);
            raw_w = (ext.idx_a.a[wx>>1]<<1)|(wx&1);
            assert((raw_v>>1) < sg->n_seq);
            assert((raw_w>>1) < sg->n_seq);
            if(vx > wx) continue;
            if((vx == wx) && (vx&1)) continue;
            if(gen_spec_edge(sg, uopt, raw_v, raw_w, &t) < 0) {
                asg_seq_set(ng, nocc, 0, 0);///this is a scaffold node
                ng->seq[nocc].c = 0;
                kv_push(uint64_t, ext.idx_a, ((uint64_t)-1));

                kv_pushp(usc_t, sa, &psa); 
                psa->ulid = (uint32_t)-1; psa->nid = nocc;
                psa->raw_sid = (eg->a[v>>1].mm<<1)|(v&1);///raw unitig id
                psa->raw_eid = (eg->a[w>>1].mm<<1)|(w&1);///raw unitig id
                psa->raw_sof = psa->raw_eof = (uint32_t)-1;
                nocc++;///a scaffold node
            }
        }
    }

    assert(ng->n_seq == ext.idx_a.n); 
    CALLOC(ng->seq_vis, (ng->n_seq<<1));
    ///# scaffolding nodes
    if(sa.n > 0) fill_scaffolds(sa.a, sa.n, rug, uopt->min_ovlp, bin_file);
    realloc_rdb_adv(&(R_INF), &UL_INF, cov, ruI, ext.idx_a.a, ext.idx_a.n, scaffold_len, (char *)"scaf", ng, uopt, rug, sa.a);     
    update_paf(R_INF.paf, R_INF.reverse_paf, ext.idx_a.a, ext.idx_a.n, sg->n_seq, ng);

    for (i = 0, nocc = ng->r_seq; i < eg->n; ++i) {
        if(ug1->g->seq[i].del) continue;
        u = &(ug1->u.a[i]);
        for (m = 1; m < u->n; m++) {
            // fprintf(stderr, "[M::%s] i::%lu, m::%lu\n", __func__, i, m);
            v = u->a[m-1]>>32; w = u->a[m]>>32;
            r = gen_spec_edge(ng, uopt, v, w, &t);
            ///there shouldn't any scaffolding within the nodes
            assert(r >= 0);
            p = asg_arc_pushp(ng); *p = t;
            r = gen_spec_edge(ng, uopt, w^1, v^1, &t);
            assert(r >= 0); p = asg_arc_pushp(ng); *p = t;
        }

        v = i<<1; nv = usg_arc_n(eg, v); av = usg_arc_a(eg, v);
        for (m = 0; m < nv; m++) {
            if(av[m].del || eg->a[av[m].v>>1].del) continue;
            w = av[m].v;
            vx = (v&1?((ug1->u.a[v>>1].a[0]>>32)^1):(ug1->u.a[v>>1].a[ug1->u.a[v>>1].n-1]>>32));
            wx = (w&1?((ug1->u.a[w>>1].a[ug1->u.a[w>>1].n-1]>>32)^1):(ug1->u.a[w>>1].a[0]>>32));
            if(vx > wx) continue;
            if((vx == wx) && (vx&1)) continue;///it is possible

            r = gen_spec_edge(ng, uopt, vx, wx, &t);
            if(r >= 0) {
                p = asg_arc_pushp(ng); *p = t;
                r = gen_spec_edge(ng, uopt, wx^1, vx^1, &t);
                // if(!(r >= 0)) {
                //     fprintf(stderr, "[M::%s]\tvx>>1::%lu(%c)\twx>>1::%lu(%c)\n", 
                //     __func__, vx>>1, "+-"[vx&1], wx>>1, "+-"[wx&1]);
                //     fprintf(stderr, "[M::%s]\t%.*s(%c)->%.*s(%c)\n", 
                //     __func__, (int)Get_NAME_LENGTH(R_INF, (vx>>1)), Get_NAME(R_INF, (vx>>1)), "+-"[vx&1],
                //     (int)Get_NAME_LENGTH(R_INF, (wx>>1)), Get_NAME(R_INF, (wx>>1)), "+-"[wx&1]);
                // }
                assert(r >= 0); p = asg_arc_pushp(ng); *p = t;
            } else {
                psa = &(sa.a[nocc-ng->r_seq]); z = nocc<<1; 
                assert(psa->nid == nocc);
                assert(psa->raw_sid == ((eg->a[v>>1].mm<<1)|(v&1)));
                assert(psa->raw_eid == ((eg->a[w>>1].mm<<1)|(w&1)));
                if(ng->seq[nocc].del) {///direct link vx and wx
                    push_direct_scaff_node(psa, ng, uopt, vx, wx);
                } else {
                    push_scaff_node(R_INF.paf, vx, z, uopt->min_ovlp, ng);
                    push_scaff_node(R_INF.paf, z, wx, uopt->min_ovlp, ng);

                    r = gen_spec_edge(ng, uopt, vx, z, &t);
                    assert(r >= 0); p = asg_arc_pushp(ng); *p = t;
                    r = gen_spec_edge(ng, uopt, z^1, vx^1, &t);
                    assert(r >= 0); p = asg_arc_pushp(ng); *p = t;

                    r = gen_spec_edge(ng, uopt, z, wx, &t);
                    assert(r >= 0); p = asg_arc_pushp(ng); *p = t;
                    r = gen_spec_edge(ng, uopt, wx^1, z^1, &t);
                    assert(r >= 0); p = asg_arc_pushp(ng); *p = t;
                }
                nocc++;
            }
        }

        v = (i<<1)+1; nv = usg_arc_n(eg, v); av = usg_arc_a(eg, v);
        for (m = 0; m < nv; m++) {
            if(av[m].del || eg->a[av[m].v>>1].del) continue;
            w = av[m].v;
            vx = (v&1?((ug1->u.a[v>>1].a[0]>>32)^1):(ug1->u.a[v>>1].a[ug1->u.a[v>>1].n-1]>>32));
            wx = (w&1?((ug1->u.a[w>>1].a[ug1->u.a[w>>1].n-1]>>32)^1):(ug1->u.a[w>>1].a[0]>>32));
            if(vx > wx) continue;
            if((vx == wx) && (vx&1)) continue;///it is possible

            r = gen_spec_edge(ng, uopt, vx, wx, &t);
            if(r >= 0) {
                p = asg_arc_pushp(ng); *p = t;
                r = gen_spec_edge(ng, uopt, wx^1, vx^1, &t);
                assert(r >= 0); p = asg_arc_pushp(ng); *p = t;
            } else {
                psa = &(sa.a[nocc-ng->r_seq]); z = nocc<<1; 
                assert(psa->nid == nocc);
                assert(psa->raw_sid == ((eg->a[v>>1].mm<<1)|(v&1)));
                assert(psa->raw_eid == ((eg->a[w>>1].mm<<1)|(w&1)));
                if(ng->seq[nocc].del) {///direct link vx and wx
                    push_direct_scaff_node(psa, ng, uopt, vx, wx);
                } else {
                    push_scaff_node(R_INF.paf, vx, z, uopt->min_ovlp, ng);
                    push_scaff_node(R_INF.paf, z, wx, uopt->min_ovlp, ng);

                    r = gen_spec_edge(ng, uopt, vx, z, &t);
                    assert(r >= 0); p = asg_arc_pushp(ng); *p = t;
                    r = gen_spec_edge(ng, uopt, z^1, vx^1, &t);
                    assert(r >= 0); p = asg_arc_pushp(ng); *p = t;

                    r = gen_spec_edge(ng, uopt, z, wx, &t);
                    assert(r >= 0); p = asg_arc_pushp(ng); *p = t;
                    r = gen_spec_edge(ng, uopt, wx^1, z^1, &t);
                    assert(r >= 0); p = asg_arc_pushp(ng); *p = t;
                }
                nocc++;
            }
        }
    }

    asg_cleanup(ng); ng->r_seq = ng->n_seq;
    free(ext.cnt.a); free(ext.idx_a.a); free(sa.a); ma_ug_destroy(ug1);

    fprintf(stderr, "[M::%s] nocc::%lu, ng->n_seq::%u, sg->n_seq::%u\n", 
    __func__, nocc, (uint32_t)ng->n_seq, (uint32_t)sg->n_seq);
    assert(nocc == ng->n_seq);
    return ng;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %r9, 0xb0(%rsp)
movq %r8, 0xa8(%rsp)
movq %rcx, 0x10(%rsp)
movq %rdx, %r14
movq %rsi, %r13
movq %rdi, %r12
callq 0x3366f
callq 0x9fccc
movq %rax, 0x8(%rsp)
movq %r14, 0x60(%rsp)
movl 0x14(%r14), %ebp
andl $0x7fffffff, %ebp       # imm = 0x7FFFFFFF
movl $0x8, %esi
movq %rbp, %rdi
callq 0x2120
movq %rax, 0x98(%rsp)
leaq (,%rbp,8), %r15
movq %r15, %rdi
callq 0x2280
movq %rax, %r14
movq %rax, %rdi
movl $0xff, %esi
movq %r15, %rdx
callq 0x20e0
movq %r12, 0x20(%rsp)
movq %r12, %rdi
movq %r13, 0xa0(%rsp)
movq %r13, %rsi
callq 0x216ddf
cmpq $0x0, (%rax)
movq %rax, 0x18(%rsp)
jne 0x2178fe
movq %rbp, %rdx
movq 0x60(%rsp), %r9
movq %r14, %r8
movq %rbp, %r10
jmp 0x217a0b
movq %rax, %rdi
movabsq $0x100000000, %rbx      # imm = 0x100000000
xorl %ecx, %ecx
movq %rbp, %rdx
movq 0x60(%rsp), %r9
movq 0x98(%rsp), %rsi
movq %r14, %r8
movq %rbp, %r10
movq 0x18(%rdi), %rax
movq 0x20(%rax), %rax
cmpl $0x0, (%rax,%rcx,8)
movq %rcx, 0x70(%rsp)
js 0x2179fa
movq 0x10(%rdi), %rax
leaq (%rcx,%rcx,4), %rcx
cmpl $0x0, 0x10(%rax,%rcx,8)
je 0x2179fa
leaq (%rax,%rcx,8), %r13
xorl %r12d, %r12d
movq 0x18(%r13), %rax
movq (%rax,%r12,8), %rbp
movq %rbp, %r14
shrq $0x21, %r14
movq (%rsi,%r14,8), %rax
leaq 0x1(%rax), %rcx
movq %rcx, (%rsi,%r14,8)
testq %rax, %rax
je 0x2179c7
cmpq %r10, %rdx
jne 0x2179bb
leaq (%r10,%r10), %r15
testq %r10, %r10
movl $0x2, %eax
cmoveq %rax, %r15
leaq (,%r15,8), %rsi
movq %r8, %rdi
movq %rdx, 0x28(%rsp)
callq 0x2370
movq 0x28(%rsp), %rdx
movq 0x18(%rsp), %rdi
movq 0x98(%rsp), %rsi
movq 0x60(%rsp), %r9
movq %rax, %r8
movq %r15, %r10
leaq (%r8,%rdx,8), %rcx
movq %rdx, %rax
incq %rdx
jmp 0x2179ce
leaq (%r8,%r14,8), %rcx
movq %r14, %rax
movq %r14, (%rcx)
shlq $0x21, %rax
andq %rbx, %rbp
orq %rax, %rbp
movq 0x18(%r13), %rax
movl (%rax,%r12,8), %ecx
orq %rbp, %rcx
movq %rcx, (%rax,%r12,8)
incq %r12
movl 0x10(%r13), %eax
cmpq %rax, %r12
jb 0x217954
movq 0x70(%rsp), %rcx
incq %rcx
cmpq (%rdi), %rcx
jb 0x217923
movq %r10, 0x90(%rsp)
movq %rdx, 0x28(%rsp)
testl $0x7fffffff, 0x14(%r9)  # imm = 0x7FFFFFFF
movq %r8, %r12
jne 0x217a2a
xorl %r15d, %r15d
jmp 0x217a97
xorl %r15d, %r15d
movl $0x7fffffff, %ebp       # imm = 0x7FFFFFFF
movq 0x8(%rsp), %rbx
movq 0x20(%r9), %rax
movl (%rax,%r15,8), %edx
andl %ebp, %edx
xorl %ecx, %ecx
cmpq $-0x1, (%r8,%r15,8)
sete %cl
movq %rbx, %rdi
movl %r15d, %esi
movq %r9, %r14
callq 0xa0115
movq 0x20(%rbx), %rax
movb $0x0, 0x4(%rax,%r15,8)
movq (%r12,%r15,8), %rax
cmpq $-0x1, %rax
sete %cl
cmpq %rax, %r15
sete %al
orb %cl, %al
je 0x219003
movq %r12, %r8
movq %r15, (%r12,%r15,8)
incq %r15
movl 0x14(%r14), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cmpq %rax, %r15
movq %r14, %r9
jb 0x217a37
movq 0x28(%rsp), %rax
cmpq %rax, %r15
jae 0x217af2
movl $0x7fffffff, %ebp       # imm = 0x7FFFFFFF
movq 0x8(%rsp), %rbx
movq 0x20(%r9), %rax
movq (%r8,%r15,8), %rcx
movl (%rax,%rcx,8), %edx
andl %ebp, %edx
movq %rbx, %rdi
movl %r15d, %esi
xorl %ecx, %ecx
callq 0xa0115
movq 0x20(%rbx), %rax
movb $0x0, 0x4(%rax,%r15,8)
movq (%r12,%r15,8), %rcx
cmpl $0x0, (%rax,%rcx,8)
js 0x219022
movq %r12, %r8
incq %r15
movq 0x28(%rsp), %rax
cmpq %r15, %rax
movq 0x60(%rsp), %r9
jne 0x217aab
movq 0x8(%rsp), %rdx
movl 0x14(%rdx), %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
movl %ecx, 0x18(%rdx)
movq %rcx, 0x68(%rsp)
cmpq %rcx, %rax
jne 0x219231
movq $0x0, 0x58(%rsp)
movq 0x20(%rsp), %r10
cmpq $0x0, 0x8(%r10)
movq 0x18(%rsp), %r11
jne 0x217b39
movq $0x0, 0x30(%rsp)
jmp 0x2180ad
movabsq $0x7fffffffffffffff, %rbp # imm = 0x7FFFFFFFFFFFFFFF
movq $0x0, 0x88(%rsp)
movq $0x0, 0x30(%rsp)
movq $0x0, 0x58(%rsp)
xorl %ecx, %ecx
movq 0x18(%r11), %rax
movq 0x20(%rax), %rax
cmpl $0x0, (%rax,%rcx,8)
movq %rcx, 0x50(%rsp)
js 0x21809b
movq (%r10), %rax
andq %rbp, %rcx
movq %rcx, 0x70(%rsp)
imulq $0x78, %rcx, %rcx
movq 0x10(%rax,%rcx), %r14
testq %r14, %r14
movq %rcx, 0x80(%rsp)
je 0x217e0c
movq 0x20(%rax,%rcx), %r12
addq $0xc, %r12
cmpl $0x0, (%r12)
js 0x217ca8
movq (%r10), %rax
movl -0x4(%r12), %r15d
movl %r15d, %ecx
shrl %ecx
imulq $0x78, %rcx, %rcx
cmpb $0x0, 0x70(%rax,%rcx)
jne 0x217ca8
movq 0x10(%r11), %rcx
movl %r15d, %eax
shrl %eax
movq %r15, %rbx
leaq (%rax,%rax,4), %rax
andq $0x1, %rbx
jne 0x217bef
movq 0x18(%rcx,%rax,8), %rax
movl 0x4(%rax), %eax
jmp 0x217c02
movq 0x18(%rcx,%rax,8), %rdx
movl 0x10(%rcx,%rax,8), %eax
decl %eax
movl 0x4(%rdx,%rax,8), %eax
xorq $0x1, %rax
movq 0x70(%rsp), %rdx
leaq (%rdx,%rdx,4), %rdx
movq 0x18(%rcx,%rdx,8), %rsi
movl 0x10(%rcx,%rdx,8), %ecx
decl %ecx
movq (%rsi,%rcx,8), %rcx
movq %rcx, %rdx
shrq $0x21, %rdx
movq (%r8,%rdx,8), %rdx
movq %rdx, %rsi
andq %rbp, %rsi
movl 0x14(%r9), %edi
andl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
cmpq %rdi, %rsi
jae 0x218f87
movl %eax, %esi
shrl %esi
movq %r8, %r13
movq (%r8,%rsi,8), %rsi
movq %rsi, %r8
andq %rbp, %r8
cmpq %rdi, %r8
jae 0x218fa6
shrq $0x20, %rcx
cmpl %eax, %ecx
ja 0x217c9b
movl %ecx, %edi
andl $0x1, %edi
je 0x217c6b
cmpl %eax, %ecx
je 0x217c9b
leaq (%rdi,%rdx,2), %rdx
andl $0x1, %eax
leaq (%rax,%rsi,2), %rcx
movq %r9, %rdi
movq 0x10(%rsp), %rsi
leaq 0x38(%rsp), %r8
callq 0x1ee341
testl %eax, %eax
js 0x217cba
movq 0x60(%rsp), %r9
movq 0x20(%rsp), %r10
movq 0x18(%rsp), %r11
movq %r13, %r8
movabsq $0x7fffffffffffffff, %rbp # imm = 0x7FFFFFFFFFFFFFFF
addq $0x20, %r12
decq %r14
jne 0x217ba8
jmp 0x217e0c
movq 0x8(%rsp), %rbp
movq %rbp, %rdi
movq 0x68(%rsp), %rsi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xa0115
movq 0x20(%rbp), %rax
movq 0x68(%rsp), %rcx
movb $0x0, 0x4(%rax,%rcx,8)
movq 0x28(%rsp), %rcx
movq 0x90(%rsp), %rax
cmpq %rax, %rcx
jne 0x217d1d
leaq (%rax,%rax), %rbp
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rbp
leaq (,%rbp,8), %rsi
movq %r13, %rdi
callq 0x2370
movq 0x28(%rsp), %rcx
movq %rax, %r8
movq %rbp, %rax
jmp 0x217d20
movq %r13, %r8
movq %rax, 0x90(%rsp)
movq $-0x1, (%r8,%rcx,8)
movq 0x88(%rsp), %rax
cmpq %rax, 0x30(%rsp)
jne 0x217d88
leaq (%rax,%rax), %rbp
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rbp
leaq (,%rbp,8), %rax
leaq (%rax,%rax,2), %rsi
movq 0x58(%rsp), %rdi
movq %r8, 0x78(%rsp)
callq 0x2370
movq 0x78(%rsp), %r8
movq %rbp, 0x88(%rsp)
movq 0x60(%rsp), %r9
movq 0x20(%rsp), %r10
movq 0x18(%rsp), %r11
jmp 0x217d9c
movq 0x60(%rsp), %r9
movq 0x20(%rsp), %r10
movq 0x18(%rsp), %r11
movq 0x58(%rsp), %rax
movabsq $0x7fffffffffffffff, %rbp # imm = 0x7FFFFFFFFFFFFFFF
incq 0x28(%rsp)
movq 0x30(%rsp), %rcx
leaq (%rcx,%rcx,2), %rsi
incq %rcx
movq %rcx, 0x30(%rsp)
movl $0xffffffff, 0x4(%rax,%rsi,8) # imm = 0xFFFFFFFF
movq 0x68(%rsp), %rdi
movl %edi, (%rax,%rsi,8)
movq (%r10), %rcx
movq 0x80(%rsp), %rdx
movl (%rcx,%rdx), %edx
addl %edx, %edx
movl %edx, 0x8(%rax,%rsi,8)
shrl %r15d
imulq $0x78, %r15, %rdx
movl (%rcx,%rdx), %ecx
leal (%rbx,%rcx,2), %ecx
movl %ecx, 0xc(%rax,%rsi,8)
movq %rax, 0x58(%rsp)
movq $-0x1, 0x10(%rax,%rsi,8)
incq %rdi
movq %rdi, 0x68(%rsp)
jmp 0x217ca8
movq (%r10), %rax
movq 0x80(%rsp), %rcx
movq 0x28(%rax,%rcx), %r14
testq %r14, %r14
je 0x21809b
movq 0x38(%rax,%rcx), %r12
addq $0xc, %r12
cmpl $0x0, (%r12)
js 0x217f2b
movq (%r10), %rax
movl -0x4(%r12), %r15d
movl %r15d, %ecx
shrl %ecx
imulq $0x78, %rcx, %rcx
cmpb $0x0, 0x70(%rax,%rcx)
jne 0x217f2b
movq 0x10(%r11), %rcx
movl %r15d, %eax
shrl %eax
movq %r15, %rbx
leaq (%rax,%rax,4), %rax
andq $0x1, %rbx
jne 0x217e75
movq 0x18(%rcx,%rax,8), %rax
movl 0x4(%rax), %eax
jmp 0x217e88
movq 0x18(%rcx,%rax,8), %rdx
movl 0x10(%rcx,%rax,8), %eax
decl %eax
movl 0x4(%rdx,%rax,8), %eax
xorq $0x1, %rax
movq 0x70(%rsp), %rdx
leaq (%rdx,%rdx,4), %rdx
movq 0x18(%rcx,%rdx,8), %rcx
movq (%rcx), %rcx
movq %rcx, %rdx
shrq $0x21, %rdx
movq (%r8,%rdx,8), %rdx
movq %rdx, %rsi
andq %rbp, %rsi
movl 0x14(%r9), %edi
andl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
cmpq %rdi, %rsi
jae 0x218fc5
movl %eax, %esi
shrl %esi
movq %r8, %r13
movq (%r8,%rsi,8), %rsi
movq %rsi, %r8
andq %rbp, %r8
cmpq %rdi, %r8
jae 0x218fe4
shrq $0x20, %rcx
xorq $0x1, %rcx
cmpl %eax, %ecx
ja 0x217f1e
movl %ecx, %edi
andl $0x1, %edi
je 0x217eee
cmpl %eax, %ecx
je 0x217f1e
leaq (%rdi,%rdx,2), %rdx
andl $0x1, %eax
leaq (%rax,%rsi,2), %rcx
movq %r9, %rdi
movq 0x10(%rsp), %rsi
leaq 0x38(%rsp), %r8
callq 0x1ee341
testl %eax, %eax
js 0x217f3d
movq 0x60(%rsp), %r9
movq 0x20(%rsp), %r10
movq 0x18(%rsp), %r11
movq %r13, %r8
movabsq $0x7fffffffffffffff, %rbp # imm = 0x7FFFFFFFFFFFFFFF
addq $0x20, %r12
decq %r14
jne 0x217e2e
jmp 0x21809b
movq %rbx, 0x78(%rsp)
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
movq 0x68(%rsp), %rbp
movl %ebp, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xa0115
movq 0x20(%rbx), %rax
movb $0x0, 0x4(%rax,%rbp,8)
movq 0x28(%rsp), %rcx
movq 0x90(%rsp), %rax
cmpq %rax, %rcx
jne 0x217fa2
leaq (%rax,%rax), %rbx
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rbx
leaq (,%rbx,8), %rsi
movq %r13, %rdi
callq 0x2370
movq 0x28(%rsp), %rcx
movq %rax, %r8
movq %rbx, %rax
jmp 0x217fa5
movq %r13, %r8
movq 0x78(%rsp), %rbx
movq %rax, 0x90(%rsp)
movq $-0x1, (%r8,%rcx,8)
movq 0x88(%rsp), %rax
cmpq %rax, 0x30(%rsp)
jne 0x218012
leaq (%rax,%rax), %rbp
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rbp
leaq (,%rbp,8), %rax
leaq (%rax,%rax,2), %rsi
movq 0x58(%rsp), %rdi
movq %r8, 0x78(%rsp)
callq 0x2370
movq 0x78(%rsp), %r8
movq %rbp, 0x88(%rsp)
movq 0x60(%rsp), %r9
movq 0x20(%rsp), %r10
movq 0x18(%rsp), %r11
jmp 0x218026
movq 0x60(%rsp), %r9
movq 0x20(%rsp), %r10
movq 0x18(%rsp), %r11
movq 0x58(%rsp), %rax
movabsq $0x7fffffffffffffff, %rbp # imm = 0x7FFFFFFFFFFFFFFF
incq 0x28(%rsp)
movq 0x30(%rsp), %rcx
leaq (%rcx,%rcx,2), %rsi
incq %rcx
movq %rcx, 0x30(%rsp)
movl $0xffffffff, 0x4(%rax,%rsi,8) # imm = 0xFFFFFFFF
movq 0x68(%rsp), %rdi
movl %edi, (%rax,%rsi,8)
movq (%r10), %rcx
movq 0x80(%rsp), %rdx
movl (%rcx,%rdx), %edx
leal 0x1(,%rdx,2), %edx
movl %edx, 0x8(%rax,%rsi,8)
shrl %r15d
imulq $0x78, %r15, %rdx
movl (%rcx,%rdx), %ecx
leal (%rbx,%rcx,2), %ecx
movl %ecx, 0xc(%rax,%rsi,8)
movq %rax, 0x58(%rsp)
movq $-0x1, 0x10(%rax,%rsi,8)
incq %rdi
movq %rdi, 0x68(%rsp)
jmp 0x217f2b
movq 0x50(%rsp), %rcx
incq %rcx
cmpq 0x8(%r10), %rcx
jb 0x217b63
movq %r8, 0x78(%rsp)
movq 0x8(%rsp), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cmpq %rax, 0x28(%rsp)
jne 0x219250
movq 0xf0(%rsp), %r14
addl %eax, %eax
movslq %eax, %rdi
movl $0x1, %esi
callq 0x2120
movq 0x8(%rsp), %rcx
movq %rax, 0x30(%rcx)
movq 0x30(%rsp), %rsi
testq %rsi, %rsi
je 0x21810e
movq 0xf8(%rsp), %r8
movq 0x58(%rsp), %rdi
movq 0xa0(%rsp), %rdx
callq 0x216969
leaq 0xc466(%rip), %rax      # 0x22457b
leaq 0x73114(%rip), %r12     # 0x28b230
leaq 0x731f5(%rip), %rsi     # 0x28b318
movq %r12, %rdi
movq 0xa8(%rsp), %rdx
movq 0xb0(%rsp), %rcx
movq 0x78(%rsp), %r15
movq %r15, %r8
movq 0x28(%rsp), %r13
movq %r13, %r9
pushq 0x58(%rsp)
pushq 0xa8(%rsp)
pushq 0x20(%rsp)
movq 0x20(%rsp), %rbx
pushq %rbx
pushq %rax
pushq %r14
callq 0x2c172
addq $0x30, %rsp
movq 0x78(%r12), %rdi
movq 0x80(%r12), %rsi
movq 0x60(%rsp), %rax
movl 0x14(%rax), %r8d
andl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
movq %r15, %rdx
movq %r13, %rcx
movq %rbx, %r9
callq 0x21928e
movl 0x18(%rbx), %eax
movq %rax, 0x30(%rsp)
movq 0x20(%rsp), %rsi
cmpq $0x0, 0x8(%rsi)
jne 0x2181b0
movq 0x18(%rsp), %r8
jmp 0x218ea2
xorl %ecx, %ecx
movl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
movq 0x18(%rsp), %r8
movq 0x18(%r8), %rax
movq 0x20(%rax), %rax
cmpl $0x0, (%rax,%rcx,8)
movq %rcx, 0x28(%rsp)
js 0x218e90
movq 0x10(%r8), %rax
leaq (%rcx,%rcx,4), %rcx
cmpl $0x2, 0x10(%rax,%rcx,8)
jb 0x218345
leaq (%rax,%rcx,8), %r14
movl $0x1, %r12d
movq 0x18(%r14), %rax
movl -0x4(%rax,%r12,8), %ebp
movl 0x4(%rax,%r12,8), %r15d
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
movl %ebp, %edx
movl %r15d, %ecx
leaq 0x38(%rsp), %r8
callq 0x1ee341
testl %eax, %eax
js 0x218f68
movq 0x8(%rsp), %rax
movl 0x4(%rax), %ecx
andl %r13d, %ecx
movl (%rax), %eax
cmpl %eax, %ecx
jne 0x21825a
leal (%rax,%rax), %ecx
testl %eax, %eax
movl $0x10, %eax
cmovel %eax, %ecx
movq 0x8(%rsp), %rbx
movl %ecx, (%rbx)
movq 0x8(%rbx), %rdi
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rsi
callq 0x2370
movq %rax, 0x8(%rbx)
movq 0x8(%rsp), %rdi
movq 0x8(%rdi), %rax
movl 0x4(%rdi), %ecx
movl %ecx, %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
leal 0x1(%rcx), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl $0x80000000, %ecx       # imm = 0x80000000
orl %esi, %ecx
movl %ecx, 0x4(%rdi)
leaq (%rdx,%rdx,2), %rcx
movq 0x48(%rsp), %rdx
movq %rdx, 0x10(%rax,%rcx,8)
movups 0x38(%rsp), %xmm0
movups %xmm0, (%rax,%rcx,8)
xorl $0x1, %r15d
xorl $0x1, %ebp
movq 0x10(%rsp), %rsi
movl %r15d, %edx
movl %ebp, %ecx
leaq 0x38(%rsp), %r8
callq 0x1ee341
testl %eax, %eax
js 0x218f49
movq 0x8(%rsp), %rax
movl 0x4(%rax), %ecx
andl %r13d, %ecx
movl (%rax), %eax
cmpl %eax, %ecx
jne 0x2182f6
leal (%rax,%rax), %ecx
testl %eax, %eax
movl $0x10, %eax
cmovel %eax, %ecx
movq 0x8(%rsp), %rbx
movl %ecx, (%rbx)
movq 0x8(%rbx), %rdi
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rsi
callq 0x2370
movq %rax, 0x8(%rbx)
movq 0x8(%rsp), %rdi
movq 0x8(%rdi), %rax
movl 0x4(%rdi), %ecx
movl %ecx, %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
leal 0x1(%rcx), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl $0x80000000, %ecx       # imm = 0x80000000
orl %esi, %ecx
movl %ecx, 0x4(%rdi)
leaq (%rdx,%rdx,2), %rcx
movq 0x48(%rsp), %rdx
movq %rdx, 0x10(%rax,%rcx,8)
movups 0x38(%rsp), %xmm0
movups %xmm0, (%rax,%rcx,8)
incq %r12
movl 0x10(%r14), %eax
cmpq %rax, %r12
jb 0x2181f1
movq 0x20(%rsp), %rsi
movq (%rsi), %rax
movq 0x28(%rsp), %rdi
movabsq $0x7fffffffffffffff, %rcx # imm = 0x7FFFFFFFFFFFFFFF
andq %rcx, %rdi
imulq $0x78, %rdi, %rcx
movq 0x10(%rax,%rcx), %r15
testq %r15, %r15
movq %rdi, 0x70(%rsp)
movq %rcx, 0x68(%rsp)
je 0x2188f7
movq 0x20(%rax,%rcx), %r12
addq $0xc, %r12
movq 0x18(%rsp), %r8
cmpl $0x0, (%r12)
js 0x21841a
movq (%rsi), %rax
movl -0x4(%r12), %r14d
movl %r14d, %ecx
shrl %ecx
imulq $0x78, %rcx, %rcx
cmpb $0x0, 0x70(%rax,%rcx)
jne 0x21841a
movq 0x10(%r8), %rax
movl %r14d, %ecx
shrl %ecx
movq %r14, %r13
leaq (%rcx,%rcx,4), %rcx
andq $0x1, %r13
jne 0x2183cd
movq 0x18(%rax,%rcx,8), %rcx
movl 0x4(%rcx), %r9d
jmp 0x2183e1
movq 0x18(%rax,%rcx,8), %rdx
movl 0x10(%rax,%rcx,8), %ecx
decl %ecx
movl 0x4(%rdx,%rcx,8), %r9d
xorq $0x1, %r9
leaq (%rdi,%rdi,4), %rcx
movq 0x18(%rax,%rcx,8), %rdx
movl 0x10(%rax,%rcx,8), %eax
decl %eax
movq (%rdx,%rax,8), %rax
movq %rax, %rbp
shrq $0x20, %rbp
cmpl %r9d, %ebp
ja 0x218414
movabsq $0x100000000, %rcx      # imm = 0x100000000
testq %rcx, %rax
je 0x21842c
cmpl %r9d, %ebp
jne 0x21842c
movl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
addq $0x20, %r12
decq %r15
jne 0x218389
jmp 0x2188fc
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
movl %ebp, %edx
movq %r9, 0x50(%rsp)
movl %r9d, %ecx
leaq 0x38(%rsp), %r8
callq 0x1ee341
testl %eax, %eax
js 0x218582
movq 0x8(%rsp), %rax
movl 0x4(%rax), %ecx
movl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
andl %r13d, %ecx
movl (%rax), %eax
cmpl %eax, %ecx
jne 0x218492
leal (%rax,%rax), %ecx
testl %eax, %eax
movl $0x10, %eax
cmovel %eax, %ecx
movq 0x8(%rsp), %rbx
movl %ecx, (%rbx)
movq 0x8(%rbx), %rdi
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rsi
callq 0x2370
movq %rax, 0x8(%rbx)
movq 0x8(%rsp), %rdi
movq 0x8(%rdi), %rax
movl 0x4(%rdi), %ecx
movl %ecx, %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
leal 0x1(%rcx), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl $0x80000000, %ecx       # imm = 0x80000000
orl %esi, %ecx
movl %ecx, 0x4(%rdi)
leaq (%rdx,%rdx,2), %rcx
movq 0x48(%rsp), %rdx
movq %rdx, 0x10(%rax,%rcx,8)
movups 0x38(%rsp), %xmm0
movups %xmm0, (%rax,%rcx,8)
movq 0x50(%rsp), %rdx
xorl $0x1, %edx
xorl $0x1, %ebp
movq 0x10(%rsp), %rsi
movl %ebp, %ecx
leaq 0x38(%rsp), %r8
callq 0x1ee341
testl %eax, %eax
js 0x219041
movq 0x8(%rsp), %rax
movl 0x4(%rax), %ecx
andl %r13d, %ecx
movl (%rax), %eax
cmpl %eax, %ecx
jne 0x21852f
leal (%rax,%rax), %ecx
testl %eax, %eax
movl $0x10, %eax
cmovel %eax, %ecx
movq 0x8(%rsp), %rbx
movl %ecx, (%rbx)
movq 0x8(%rbx), %rdi
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rsi
callq 0x2370
movq %rax, 0x8(%rbx)
movq 0x8(%rsp), %rdi
movq 0x8(%rdi), %rax
movl 0x4(%rdi), %ecx
movl %ecx, %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
leal 0x1(%rcx), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl $0x80000000, %ecx       # imm = 0x80000000
orl %esi, %ecx
movl %ecx, 0x4(%rdi)
leaq (%rdx,%rdx,2), %rcx
movq 0x48(%rsp), %rdx
movq %rdx, 0x10(%rax,%rcx,8)
movups 0x38(%rsp), %xmm0
movups %xmm0, (%rax,%rcx,8)
movq 0x20(%rsp), %rsi
movq 0x18(%rsp), %r8
movq 0x70(%rsp), %rdi
jmp 0x21841a
movq 0x8(%rsp), %rax
movl 0x18(%rax), %eax
movq 0x30(%rsp), %rsi
movq %rsi, %rcx
subq %rax, %rcx
leaq (%rcx,%rcx,2), %rax
movq 0x58(%rsp), %rdx
movl (%rdx,%rax,8), %ecx
cmpq %rcx, %rsi
movq 0x20(%rsp), %rcx
movq 0x68(%rsp), %r8
jne 0x21907f
leaq (%rdx,%rax,8), %rdi
movq (%rcx), %rax
movl (%rax,%r8), %ecx
addl %ecx, %ecx
cmpl %ecx, 0x8(%rdi)
jne 0x21909e
shrl %r14d
imulq $0x78, %r14, %rcx
movl (%rax,%rcx), %eax
leal (%r13,%rax,2), %eax
cmpl 0xc(%rdi), %eax
jne 0x21911a
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rax
cmpl $0x0, (%rax,%rsi,8)
js 0x2188c1
leaq (%rsi,%rsi), %r13
leaq 0x72c30(%rip), %rax     # 0x28b230
movq 0x78(%rax), %rdi
movq 0x10(%rsp), %r14
movslq 0x44(%r14), %rcx
movq %rbp, %rsi
movq %r13, %rdx
movq 0x8(%rsp), %rbx
movq %rbx, %r8
callq 0x21775e
leaq 0x72c09(%rip), %rax     # 0x28b230
movq 0x78(%rax), %rdi
movslq 0x44(%r14), %rcx
movq %r13, %rsi
movq 0x50(%rsp), %rdx
movq %rbx, %r8
callq 0x21775e
movq %rbx, %rdi
movq %r14, %rsi
movq %r13, %r14
movl %ebp, %edx
movl %r14d, %ecx
leaq 0x38(%rsp), %r8
callq 0x1ee341
testl %eax, %eax
js 0x219212
movq 0x8(%rsp), %rax
movl 0x4(%rax), %ecx
movl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
andl %r13d, %ecx
movl (%rax), %eax
cmpl %eax, %ecx
jne 0x21869f
leal (%rax,%rax), %ecx
testl %eax, %eax
movl $0x10, %eax
cmovel %eax, %ecx
movq 0x8(%rsp), %rbx
movl %ecx, (%rbx)
movq 0x8(%rbx), %rdi
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rsi
callq 0x2370
movq %rax, 0x8(%rbx)
movq 0x8(%rsp), %rdi
movq 0x8(%rdi), %rax
movl 0x4(%rdi), %ecx
movl %ecx, %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
leal 0x1(%rcx), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl $0x80000000, %ecx       # imm = 0x80000000
orl %esi, %ecx
movl %ecx, 0x4(%rdi)
leaq (%rdx,%rdx,2), %rcx
movq 0x48(%rsp), %rdx
movq %rdx, 0x10(%rax,%rcx,8)
movups 0x38(%rsp), %xmm0
movups %xmm0, (%rax,%rcx,8)
movl %r14d, %ebx
orl $0x1, %ebx
xorl $0x1, %ebp
movq 0x10(%rsp), %rsi
movl %ebx, %edx
movl %ebp, %ecx
leaq 0x38(%rsp), %r8
callq 0x1ee341
testl %eax, %eax
js 0x219158
movq 0x8(%rsp), %rax
movl 0x4(%rax), %ecx
andl %r13d, %ecx
movl (%rax), %eax
cmpl %eax, %ecx
jne 0x218740
leal (%rax,%rax), %ecx
testl %eax, %eax
movl $0x10, %eax
cmovel %eax, %ecx
movl %ebx, %ebp
movq 0x8(%rsp), %rbx
movl %ecx, (%rbx)
movq 0x8(%rbx), %rdi
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rsi
callq 0x2370
movq %rax, 0x8(%rbx)
movl %ebp, %ebx
movq 0x8(%rsp), %rdi
movq 0x8(%rdi), %rax
movl 0x4(%rdi), %ecx
movl %ecx, %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
leal 0x1(%rcx), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl $0x80000000, %ecx       # imm = 0x80000000
orl %esi, %ecx
movl %ecx, 0x4(%rdi)
leaq (%rdx,%rdx,2), %rcx
movq 0x48(%rsp), %rdx
movq %rdx, 0x10(%rax,%rcx,8)
movups 0x38(%rsp), %xmm0
movups %xmm0, (%rax,%rcx,8)
movq 0x10(%rsp), %rsi
movl %r14d, %edx
movq 0x50(%rsp), %rcx
leaq 0x38(%rsp), %r8
callq 0x1ee341
testl %eax, %eax
js 0x219196
movq 0x8(%rsp), %rax
movl 0x4(%rax), %ecx
andl %r13d, %ecx
movl (%rax), %eax
cmpl %eax, %ecx
jne 0x2187dc
leal (%rax,%rax), %ecx
testl %eax, %eax
movl $0x10, %eax
cmovel %eax, %ecx
movl %ebx, %ebp
movq 0x8(%rsp), %rbx
movl %ecx, (%rbx)
movq 0x8(%rbx), %rdi
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rsi
callq 0x2370
movq %rax, 0x8(%rbx)
movl %ebp, %ebx
movq 0x8(%rsp), %rdi
movq 0x8(%rdi), %rax
movl 0x4(%rdi), %ecx
movl %ecx, %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
leal 0x1(%rcx), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl $0x80000000, %ecx       # imm = 0x80000000
orl %esi, %ecx
movl %ecx, 0x4(%rdi)
leaq (%rdx,%rdx,2), %rcx
movq 0x48(%rsp), %rdx
movq %rdx, 0x10(%rax,%rcx,8)
movups 0x38(%rsp), %xmm0
movups %xmm0, (%rax,%rcx,8)
movq 0x50(%rsp), %rdx
xorl $0x1, %edx
movq 0x10(%rsp), %rsi
movl %ebx, %ecx
leaq 0x38(%rsp), %r8
callq 0x1ee341
testl %eax, %eax
js 0x2191b5
movq 0x8(%rsp), %rax
movl 0x4(%rax), %ecx
andl %r13d, %ecx
movl (%rax), %eax
cmpl %eax, %ecx
jne 0x218876
leal (%rax,%rax), %ecx
testl %eax, %eax
movl $0x10, %eax
cmovel %eax, %ecx
movq 0x8(%rsp), %rbx
movl %ecx, (%rbx)
movq 0x8(%rbx), %rdi
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rsi
callq 0x2370
movq %rax, 0x8(%rbx)
movq 0x8(%rsp), %rdi
movq 0x8(%rdi), %rax
movl 0x4(%rdi), %ecx
movl %ecx, %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
leal 0x1(%rcx), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl $0x80000000, %ecx       # imm = 0x80000000
orl %esi, %ecx
movl %ecx, 0x4(%rdi)
leaq (%rdx,%rdx,2), %rcx
movq 0x48(%rsp), %rdx
movq %rdx, 0x10(%rax,%rcx,8)
movups 0x38(%rsp), %xmm0
movups %xmm0, (%rax,%rcx,8)
movq 0x20(%rsp), %rsi
movq 0x18(%rsp), %r8
jmp 0x2188e8
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbp, %rcx
movq 0x50(%rsp), %r8
callq 0x21727e
movq 0x20(%rsp), %rsi
movq 0x18(%rsp), %r8
movl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
movq 0x70(%rsp), %rdi
incq 0x30(%rsp)
jmp 0x21841a
movq 0x18(%rsp), %r8
movq (%rsi), %rax
movq 0x68(%rsp), %rcx
movq 0x28(%rax,%rcx), %r12
testq %r12, %r12
je 0x218e90
movq 0x38(%rax,%rcx), %r14
addq $0xc, %r14
cmpl $0x0, (%r14)
js 0x2189ac
movq (%rsi), %rax
movl -0x4(%r14), %r13d
movl %r13d, %ecx
shrl %ecx
imulq $0x78, %rcx, %rcx
cmpb $0x0, 0x70(%rax,%rcx)
jne 0x2189a6
movq 0x10(%r8), %rax
movl %r13d, %ecx
shrl %ecx
movq %r13, %rbp
leaq (%rcx,%rcx,4), %rcx
andq $0x1, %rbp
jne 0x21895c
movq 0x18(%rax,%rcx,8), %rcx
movl 0x4(%rcx), %ecx
jmp 0x21896f
movq 0x18(%rax,%rcx,8), %rdx
movl 0x10(%rax,%rcx,8), %ecx
decl %ecx
movl 0x4(%rdx,%rcx,8), %ecx
xorq $0x1, %rcx
leaq (%rdi,%rdi,4), %rdx
movq 0x18(%rax,%rdx,8), %rax
movq (%rax), %rax
movq %rax, %r10
shrq $0x20, %r10
movq %r10, %r15
xorq $0x1, %r15
cmpl %ecx, %r15d
ja 0x2189a6
movq %r15, %r9
xorq %rcx, %r9
movabsq $0x100000000, %rdx      # imm = 0x100000000
andq %rdx, %rax
orq %r9, %rax
jne 0x2189be
movl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
addq $0x20, %r14
decq %r12
jne 0x21891b
jmp 0x218e90
movq %r10, 0x80(%rsp)
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
movl %r15d, %edx
movq %rcx, 0x50(%rsp)
leaq 0x38(%rsp), %r8
callq 0x1ee341
testl %eax, %eax
js 0x218b1d
movq 0x8(%rsp), %rax
movl 0x4(%rax), %ecx
movl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
andl %r13d, %ecx
movl (%rax), %eax
cmpl %eax, %ecx
jne 0x218a2a
leal (%rax,%rax), %ecx
testl %eax, %eax
movl $0x10, %eax
cmovel %eax, %ecx
movq 0x8(%rsp), %rbx
movl %ecx, (%rbx)
movq 0x8(%rbx), %rdi
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rsi
callq 0x2370
movq %rax, 0x8(%rbx)
movq 0x8(%rsp), %rdi
movq 0x8(%rdi), %rax
movl 0x4(%rdi), %ecx
movl %ecx, %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
leal 0x1(%rcx), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl $0x80000000, %ecx       # imm = 0x80000000
orl %esi, %ecx
movl %ecx, 0x4(%rdi)
leaq (%rdx,%rdx,2), %rcx
movq 0x48(%rsp), %rdx
movq %rdx, 0x10(%rax,%rcx,8)
movups 0x38(%rsp), %xmm0
movups %xmm0, (%rax,%rcx,8)
movq 0x50(%rsp), %rdx
xorl $0x1, %edx
movq 0x10(%rsp), %rsi
movq 0x80(%rsp), %rcx
leaq 0x38(%rsp), %r8
callq 0x1ee341
testl %eax, %eax
js 0x219060
movq 0x8(%rsp), %rax
movl 0x4(%rax), %ecx
andl %r13d, %ecx
movl (%rax), %eax
cmpl %eax, %ecx
jne 0x218aca
leal (%rax,%rax), %ecx
testl %eax, %eax
movl $0x10, %eax
cmovel %eax, %ecx
movq 0x8(%rsp), %rbx
movl %ecx, (%rbx)
movq 0x8(%rbx), %rdi
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rsi
callq 0x2370
movq %rax, 0x8(%rbx)
movq 0x8(%rsp), %rdi
movq 0x8(%rdi), %rax
movl 0x4(%rdi), %ecx
movl %ecx, %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
leal 0x1(%rcx), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl $0x80000000, %ecx       # imm = 0x80000000
orl %esi, %ecx
movl %ecx, 0x4(%rdi)
leaq (%rdx,%rdx,2), %rcx
movq 0x48(%rsp), %rdx
movq %rdx, 0x10(%rax,%rcx,8)
movups 0x38(%rsp), %xmm0
movups %xmm0, (%rax,%rcx,8)
movq 0x20(%rsp), %rsi
movq 0x18(%rsp), %r8
movq 0x70(%rsp), %rdi
jmp 0x2189ac
movq 0x8(%rsp), %rax
movl 0x18(%rax), %eax
movq 0x30(%rsp), %rsi
movq %rsi, %rcx
subq %rax, %rcx
leaq (%rcx,%rcx,2), %rax
movq 0x58(%rsp), %rdx
movl (%rdx,%rax,8), %ecx
cmpq %rcx, %rsi
movq 0x20(%rsp), %rcx
movq 0x68(%rsp), %r8
jne 0x2190dc
leaq (%rdx,%rax,8), %rdi
movq (%rcx), %rax
movl (%rax,%r8), %ecx
leal 0x1(,%rcx,2), %ecx
cmpl %ecx, 0x8(%rdi)
jne 0x2190fb
shrl %r13d
imulq $0x78, %r13, %rcx
movl (%rax,%rcx), %eax
leal (%rbp,%rax,2), %eax
cmpl 0xc(%rdi), %eax
jne 0x2190bd
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rax
cmpl $0x0, (%rax,%rsi,8)
js 0x218e5a
leaq (%rsi,%rsi), %rbp
leaq 0x72691(%rip), %rax     # 0x28b230
movq 0x78(%rax), %rdi
movq 0x10(%rsp), %r13
movslq 0x44(%r13), %rcx
movq %r15, %rsi
movq %rbp, %rdx
movq 0x8(%rsp), %rbx
movq %rbx, %r8
callq 0x21775e
leaq 0x7266a(%rip), %rax     # 0x28b230
movq 0x78(%rax), %rdi
movslq 0x44(%r13), %rcx
movq %rbp, %rsi
movq 0x50(%rsp), %rdx
movq %rbx, %r8
callq 0x21775e
movq %rbx, %rdi
movq %r13, %rsi
movl %r15d, %edx
movl %ebp, %ecx
leaq 0x38(%rsp), %r8
callq 0x1ee341
testl %eax, %eax
js 0x2191d4
movq 0x8(%rsp), %rax
movl 0x4(%rax), %ecx
movl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
andl %r13d, %ecx
movl (%rax), %eax
cmpl %eax, %ecx
jne 0x218c3b
leal (%rax,%rax), %ecx
testl %eax, %eax
movl $0x10, %eax
cmovel %eax, %ecx
movq 0x8(%rsp), %rbx
movl %ecx, (%rbx)
movq 0x8(%rbx), %rdi
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rsi
callq 0x2370
movq %rax, 0x8(%rbx)
movq 0x8(%rsp), %rdi
movq 0x8(%rdi), %rax
movl 0x4(%rdi), %ecx
movl %ecx, %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
leal 0x1(%rcx), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl $0x80000000, %ecx       # imm = 0x80000000
orl %esi, %ecx
movl %ecx, 0x4(%rdi)
leaq (%rdx,%rdx,2), %rcx
movq 0x48(%rsp), %rdx
movq %rdx, 0x10(%rax,%rcx,8)
movups 0x38(%rsp), %xmm0
movups %xmm0, (%rax,%rcx,8)
movl %ebp, %r15d
orl $0x1, %r15d
movq 0x10(%rsp), %rsi
movl %r15d, %edx
movq 0x80(%rsp), %rcx
leaq 0x38(%rsp), %r8
callq 0x1ee341
testl %eax, %eax
js 0x2191f3
movq 0x8(%rsp), %rax
movl 0x4(%rax), %ecx
andl %r13d, %ecx
movl (%rax), %eax
cmpl %eax, %ecx
jne 0x218cdd
leal (%rax,%rax), %ecx
testl %eax, %eax
movl $0x10, %eax
cmovel %eax, %ecx
movq 0x8(%rsp), %rbx
movl %ecx, (%rbx)
movq 0x8(%rbx), %rdi
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rsi
callq 0x2370
movq %rax, 0x8(%rbx)
movq 0x8(%rsp), %rdi
movq 0x8(%rdi), %rax
movl 0x4(%rdi), %ecx
movl %ecx, %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
leal 0x1(%rcx), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl $0x80000000, %ecx       # imm = 0x80000000
orl %esi, %ecx
movl %ecx, 0x4(%rdi)
leaq (%rdx,%rdx,2), %rcx
movq 0x48(%rsp), %rdx
movq %rdx, 0x10(%rax,%rcx,8)
movups 0x38(%rsp), %xmm0
movups %xmm0, (%rax,%rcx,8)
movq 0x10(%rsp), %rsi
movl %ebp, %edx
movq 0x50(%rsp), %rcx
leaq 0x38(%rsp), %r8
callq 0x1ee341
testl %eax, %eax
js 0x219139
movq 0x8(%rsp), %rax
movl 0x4(%rax), %ecx
andl %r13d, %ecx
movl (%rax), %eax
cmpl %eax, %ecx
jne 0x218d74
leal (%rax,%rax), %ecx
testl %eax, %eax
movl $0x10, %eax
cmovel %eax, %ecx
movq 0x8(%rsp), %rbx
movl %ecx, (%rbx)
movq 0x8(%rbx), %rdi
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rsi
callq 0x2370
movq %rax, 0x8(%rbx)
movq 0x8(%rsp), %rdi
movq 0x8(%rdi), %rax
movl 0x4(%rdi), %ecx
movl %ecx, %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
leal 0x1(%rcx), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl $0x80000000, %ecx       # imm = 0x80000000
orl %esi, %ecx
movl %ecx, 0x4(%rdi)
leaq (%rdx,%rdx,2), %rcx
movq 0x48(%rsp), %rdx
movq %rdx, 0x10(%rax,%rcx,8)
movups 0x38(%rsp), %xmm0
movups %xmm0, (%rax,%rcx,8)
movq 0x50(%rsp), %rdx
xorl $0x1, %edx
movq 0x10(%rsp), %rsi
movl %r15d, %ecx
leaq 0x38(%rsp), %r8
callq 0x1ee341
testl %eax, %eax
js 0x219177
movq 0x8(%rsp), %rax
movl 0x4(%rax), %ecx
andl %r13d, %ecx
movl (%rax), %eax
cmpl %eax, %ecx
jne 0x218e0f
leal (%rax,%rax), %ecx
testl %eax, %eax
movl $0x10, %eax
cmovel %eax, %ecx
movq 0x8(%rsp), %rbx
movl %ecx, (%rbx)
movq 0x8(%rbx), %rdi
shlq $0x3, %rcx
leaq (%rcx,%rcx,2), %rsi
callq 0x2370
movq %rax, 0x8(%rbx)
movq 0x8(%rsp), %rdi
movq 0x8(%rdi), %rax
movl 0x4(%rdi), %ecx
movl %ecx, %edx
andl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
leal 0x1(%rcx), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl $0x80000000, %ecx       # imm = 0x80000000
orl %esi, %ecx
movl %ecx, 0x4(%rdi)
leaq (%rdx,%rdx,2), %rcx
movq 0x48(%rsp), %rdx
movq %rdx, 0x10(%rax,%rcx,8)
movups 0x38(%rsp), %xmm0
movups %xmm0, (%rax,%rcx,8)
movq 0x20(%rsp), %rsi
movq 0x18(%rsp), %r8
jmp 0x218e81
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r15, %rcx
movq 0x50(%rsp), %r8
callq 0x21727e
movq 0x20(%rsp), %rsi
movq 0x18(%rsp), %r8
movl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
movq 0x70(%rsp), %rdi
incq 0x30(%rsp)
jmp 0x2189ac
movq 0x28(%rsp), %rcx
incq %rcx
cmpq 0x8(%rsi), %rcx
jb 0x2181bd
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
movq %r8, %r14
callq 0xa02fa
movl $0x7fffffff, %ebp       # imm = 0x7FFFFFFF
movl 0x14(%rbx), %eax
andl %ebp, %eax
movl %eax, 0x18(%rbx)
movq 0x98(%rsp), %rdi
callq 0x2220
movq 0x78(%rsp), %rdi
callq 0x2220
movq 0x58(%rsp), %rdi
callq 0x2220
movq %r14, %rdi
callq 0xa0004
movq 0x710f1(%rip), %rax     # 0x289fe0
movq (%rax), %rdi
movl 0x14(%rbx), %r8d
andl %ebp, %r8d
movq 0x60(%rsp), %rax
andl 0x14(%rax), %ebp
leaq 0x24cae(%rip), %rsi     # 0x23dbb6
leaq 0x24cd8(%rip), %rdx     # 0x23dbe7
movq 0x30(%rsp), %r14
movq %r14, %rcx
movl %ebp, %r9d
xorl %eax, %eax
callq 0x22b0
movl 0x14(%rbx), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cmpq %rax, %r14
jne 0x21926f
movq 0x8(%rsp), %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xec2a(%rip), %rdi      # 0x227b7a
leaq 0x203ce(%rip), %rsi     # 0x239325
leaq 0x24b21(%rip), %rcx     # 0x23da7f
movl $0x3b82, %edx           # imm = 0x3B82
callq 0x2110
leaq 0xec0b(%rip), %rdi      # 0x227b7a
leaq 0x203af(%rip), %rsi     # 0x239325
leaq 0x24b02(%rip), %rcx     # 0x23da7f
movl $0x3b7f, %edx           # imm = 0x3B7F
callq 0x2110
leaq 0x24b91(%rip), %rdi     # 0x23db1f
leaq 0x20390(%rip), %rsi     # 0x239325
leaq 0x24ae3(%rip), %rcx     # 0x23da7f
movl $0x3b43, %edx           # imm = 0x3B43
callq 0x2110
leaq 0x24b89(%rip), %rdi     # 0x23db36
leaq 0x20371(%rip), %rsi     # 0x239325
leaq 0x24ac4(%rip), %rcx     # 0x23da7f
movl $0x3b44, %edx           # imm = 0x3B44
callq 0x2110
leaq 0x24b53(%rip), %rdi     # 0x23db1f
leaq 0x20352(%rip), %rsi     # 0x239325
leaq 0x24aa5(%rip), %rcx     # 0x23da7f
movl $0x3b5d, %edx           # imm = 0x3B5D
callq 0x2110
leaq 0x24b4b(%rip), %rdi     # 0x23db36
leaq 0x20333(%rip), %rsi     # 0x239325
leaq 0x24a86(%rip), %rcx     # 0x23da7f
movl $0x3b5e, %edx           # imm = 0x3B5E
callq 0x2110
leaq 0x24a61(%rip), %rdi     # 0x23da6b
leaq 0x20314(%rip), %rsi     # 0x239325
leaq 0x24a67(%rip), %rcx     # 0x23da7f
movl $0x3b2d, %edx           # imm = 0x3B2D
callq 0x2110
leaq 0x24abe(%rip), %rdi     # 0x23dae7
leaq 0x202f5(%rip), %rsi     # 0x239325
leaq 0x24a48(%rip), %rcx     # 0x23da7f
movl $0x3b32, %edx           # imm = 0x3B32
callq 0x2110
leaq 0xeb32(%rip), %rdi      # 0x227b7a
leaq 0x202d6(%rip), %rsi     # 0x239325
leaq 0x24a29(%rip), %rcx     # 0x23da7f
movl $0x3b99, %edx           # imm = 0x3B99
callq 0x2110
leaq 0xeb13(%rip), %rdi      # 0x227b7a
leaq 0x202b7(%rip), %rsi     # 0x239325
leaq 0x24a0a(%rip), %rcx     # 0x23da7f
movl $0x3bc0, %edx           # imm = 0x3BC0
callq 0x2110
leaq 0x24ac7(%rip), %rdi     # 0x23db4d
leaq 0x20298(%rip), %rsi     # 0x239325
leaq 0x249eb(%rip), %rcx     # 0x23da7f
movl $0x3b9c, %edx           # imm = 0x3B9C
callq 0x2110
leaq 0x24ab9(%rip), %rdi     # 0x23db5e
leaq 0x20279(%rip), %rsi     # 0x239325
leaq 0x249cc(%rip), %rcx     # 0x23da7f
movl $0x3b9d, %edx           # imm = 0x3B9D
callq 0x2110
leaq 0x24ac6(%rip), %rdi     # 0x23db8a
leaq 0x2025a(%rip), %rsi     # 0x239325
leaq 0x249ad(%rip), %rcx     # 0x23da7f
movl $0x3bc5, %edx           # imm = 0x3BC5
callq 0x2110
leaq 0x24a6a(%rip), %rdi     # 0x23db4d
leaq 0x2023b(%rip), %rsi     # 0x239325
leaq 0x2498e(%rip), %rcx     # 0x23da7f
movl $0x3bc3, %edx           # imm = 0x3BC3
callq 0x2110
leaq 0x24a5c(%rip), %rdi     # 0x23db5e
leaq 0x2021c(%rip), %rsi     # 0x239325
leaq 0x2496f(%rip), %rcx     # 0x23da7f
movl $0x3bc4, %edx           # imm = 0x3BC4
callq 0x2110
leaq 0x24a69(%rip), %rdi     # 0x23db8a
leaq 0x201fd(%rip), %rsi     # 0x239325
leaq 0x24950(%rip), %rcx     # 0x23da7f
movl $0x3b9e, %edx           # imm = 0x3B9E
callq 0x2110
leaq 0xea3a(%rip), %rdi      # 0x227b7a
leaq 0x201de(%rip), %rsi     # 0x239325
leaq 0x24931(%rip), %rcx     # 0x23da7f
movl $0x3bd2, %edx           # imm = 0x3BD2
callq 0x2110
leaq 0xea1b(%rip), %rdi      # 0x227b7a
leaq 0x201bf(%rip), %rsi     # 0x239325
leaq 0x24912(%rip), %rcx     # 0x23da7f
movl $0x3ba8, %edx           # imm = 0x3BA8
callq 0x2110
leaq 0xe9fc(%rip), %rdi      # 0x227b7a
leaq 0x201a0(%rip), %rsi     # 0x239325
leaq 0x248f3(%rip), %rcx     # 0x23da7f
movl $0x3bd4, %edx           # imm = 0x3BD4
callq 0x2110
leaq 0xe9dd(%rip), %rdi      # 0x227b7a
leaq 0x20181(%rip), %rsi     # 0x239325
leaq 0x248d4(%rip), %rcx     # 0x23da7f
movl $0x3bab, %edx           # imm = 0x3BAB
callq 0x2110
leaq 0xe9be(%rip), %rdi      # 0x227b7a
leaq 0x20162(%rip), %rsi     # 0x239325
leaq 0x248b5(%rip), %rcx     # 0x23da7f
movl $0x3bad, %edx           # imm = 0x3BAD
callq 0x2110
leaq 0xe99f(%rip), %rdi      # 0x227b7a
leaq 0x20143(%rip), %rsi     # 0x239325
leaq 0x24896(%rip), %rcx     # 0x23da7f
movl $0x3bcd, %edx           # imm = 0x3BCD
callq 0x2110
leaq 0xe980(%rip), %rdi      # 0x227b7a
leaq 0x20124(%rip), %rsi     # 0x239325
leaq 0x24877(%rip), %rcx     # 0x23da7f
movl $0x3bcf, %edx           # imm = 0x3BCF
callq 0x2110
leaq 0xe961(%rip), %rdi      # 0x227b7a
leaq 0x20105(%rip), %rsi     # 0x239325
leaq 0x24858(%rip), %rcx     # 0x23da7f
movl $0x3ba6, %edx           # imm = 0x3BA6
callq 0x2110
leaq 0x248ce(%rip), %rdi     # 0x23db06
leaq 0x200e6(%rip), %rsi     # 0x239325
leaq 0x24839(%rip), %rcx     # 0x23da7f
movl $0x3b35, %edx           # imm = 0x3B35
callq 0x2110
leaq 0x248af(%rip), %rdi     # 0x23db06
leaq 0x200c7(%rip), %rsi     # 0x239325
leaq 0x2481a(%rip), %rcx     # 0x23da7f
movl $0x3b70, %edx           # imm = 0x3B70
callq 0x2110
leaq 0x2497a(%rip), %rdi     # 0x23dbf0
leaq 0x200a8(%rip), %rsi     # 0x239325
leaq 0x247fb(%rip), %rcx     # 0x23da7f
movl $0x3be0, %edx           # imm = 0x3BE0
callq 0x2110