// File: /workspace/github_cpp_makefile_star2_O3/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, 0x18(%rsp)
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %r15
callq 0x32d70
callq 0xa0485
movq %rax, 0x28(%rsp)
movq %rbx, 0x70(%rsp)
movl 0x14(%rbx), %r13d
andl $0x7fffffff, %r13d      # imm = 0x7FFFFFFF
movl $0x8, %esi
movq %r13, %rdi
callq 0x2120
movq %rax, 0xa0(%rsp)
leaq (,%r13,8), %r14
movq %r14, %rdi
callq 0x2280
movq %rax, %rbx
movq %rax, %rdi
movl $0xff, %esi
movq %r14, %rdx
callq 0x20e0
movq %r15, 0x30(%rsp)
movq %r15, %rdi
movq %r12, 0x98(%rsp)
movq %r12, %rsi
callq 0x22217a
movq (%rax), %rcx
testq %rcx, %rcx
movq %rax, 0x10(%rsp)
jne 0x222dda
movq %r13, %r11
movq 0x70(%rsp), %r9
movq %rbx, %r10
movq %r13, %r12
jmp 0x222ef6
movabsq $0x100000000, %rbp      # imm = 0x100000000
xorl %edi, %edi
movq %r13, %r11
movq 0x70(%rsp), %r9
movq 0xa0(%rsp), %r8
movq %rbx, %r10
movq %r13, %r12
movq 0x18(%rax), %rdx
movq 0x20(%rdx), %rdx
cmpl $0x0, (%rdx,%rdi,8)
js 0x222eea
movq 0x10(%rax), %rdx
leaq (%rdi,%rdi,4), %rsi
movl 0x10(%rdx,%rsi,8), %eax
testl %eax, %eax
je 0x222ee5
movq %rdi, 0x40(%rsp)
leaq (%rdx,%rsi,8), %rcx
movq %rcx, 0x78(%rsp)
movq 0x18(%rcx), %rcx
xorl %r13d, %r13d
movq (%rcx,%r13,8), %r15
movq %r15, %rbx
shrq $0x21, %rbx
movq (%r8,%rbx,8), %rdx
leaq 0x1(%rdx), %rsi
movq %rsi, (%r8,%rbx,8)
testq %rdx, %rdx
je 0x222ea9
cmpq %r12, %r11
jne 0x222e9d
leaq (%r12,%r12), %r14
testq %r12, %r12
movl $0x2, %eax
cmoveq %rax, %r14
leaq (,%r14,8), %rsi
movq %r10, %rdi
movq %r11, %r12
callq 0x2370
movq %r12, %r11
movq 0xa0(%rsp), %r8
movq 0x70(%rsp), %r9
movq %rax, %r10
movq 0x78(%rsp), %rax
movq 0x18(%rax), %rcx
movl 0x10(%rax), %eax
movq %r14, %r12
leaq (%r10,%r11,8), %rdx
movq %r11, %rsi
incq %r11
jmp 0x222eb0
leaq (%r10,%rbx,8), %rdx
movq %rbx, %rsi
movq %rbx, (%rdx)
shlq $0x21, %rsi
andq %rbp, %r15
orq %rsi, %r15
movl (%rcx,%r13,8), %edx
orq %r15, %rdx
movq %rdx, (%rcx,%r13,8)
incq %r13
movl %eax, %edx
cmpq %rdx, %r13
jb 0x222e37
movq 0x10(%rsp), %rax
movq (%rax), %rcx
movq 0x40(%rsp), %rdi
jmp 0x222eea
movq 0x10(%rsp), %rax
incq %rdi
cmpq %rcx, %rdi
jb 0x222dfc
movq %r12, 0x38(%rsp)
movq %r11, %rbp
testl $0x7fffffff, 0x14(%r9)  # imm = 0x7FFFFFFF
movq %r10, %r12
jne 0x222f10
xorl %r13d, %r13d
jmp 0x222f7d
xorl %r13d, %r13d
movl $0x7fffffff, %ebx       # imm = 0x7FFFFFFF
movq 0x28(%rsp), %r14
movq 0x20(%r9), %rax
movl (%rax,%r13,8), %edx
andl %ebx, %edx
xorl %ecx, %ecx
cmpq $-0x1, (%r10,%r13,8)
sete %cl
movq %r14, %rdi
movl %r13d, %esi
movq %r9, %r15
callq 0xa0887
movq 0x20(%r14), %rax
movb $0x0, 0x4(%rax,%r13,8)
movq (%r12,%r13,8), %rax
cmpq $-0x1, %rax
sete %cl
cmpq %rax, %r13
sete %al
orb %cl, %al
je 0x224507
movq %r12, %r10
movq %r13, (%r12,%r13,8)
incq %r13
movl 0x14(%r15), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cmpq %rax, %r13
movq %r15, %r9
jb 0x222f1d
movq %rbp, %r11
cmpq %rbp, %r13
jae 0x222fd4
movl $0x7fffffff, %ebx       # imm = 0x7FFFFFFF
movq 0x28(%rsp), %r14
movq 0x20(%r9), %rax
movq (%r10,%r13,8), %rcx
movl (%rax,%rcx,8), %edx
andl %ebx, %edx
movq %r14, %rdi
movl %r13d, %esi
xorl %ecx, %ecx
callq 0xa0887
movq 0x20(%r14), %rax
movb $0x0, 0x4(%rax,%r13,8)
movq (%r12,%r13,8), %rcx
cmpl $0x0, (%rax,%rcx,8)
js 0x224526
movq %r12, %r10
incq %r13
movq %rbp, %r11
cmpq %r13, %rbp
movq 0x70(%rsp), %r9
jne 0x222f8f
movq 0x28(%rsp), %rcx
movl 0x14(%rcx), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movl %eax, 0x18(%rcx)
cmpq %rax, %r11
jne 0x224735
movq $0x0, 0x68(%rsp)
movq 0x30(%rsp), %rdx
cmpq $0x0, 0x8(%rdx)
movq 0x10(%rsp), %rsi
jne 0x22300f
xorl %r14d, %r14d
jmp 0x2235cc
movabsq $0x7fffffffffffffff, %r14 # imm = 0x7FFFFFFFFFFFFFFF
movq $0x0, 0x60(%rsp)
movq $0x0, 0x20(%rsp)
movq $0x0, 0x68(%rsp)
xorl %ecx, %ecx
movq %r11, 0x88(%rsp)
movq 0x18(%rsi), %rax
movq 0x20(%rax), %rax
cmpl $0x0, (%rax,%rcx,8)
movq %rcx, 0x8(%rsp)
js 0x2235a8
movq (%rdx), %rbx
andq %r14, %rcx
movq %rcx, 0x78(%rsp)
imulq $0x78, %rcx, %rax
movq 0x10(%rbx,%rax), %r15
testq %r15, %r15
movq %rax, 0x80(%rsp)
je 0x223305
movq 0x20(%rbx,%rax), %r13
addq $0xc, %r13
cmpl $0x0, (%r13)
js 0x223149
movl -0x4(%r13), %r12d
movl %r12d, %eax
shrl %eax
imulq $0x78, %rax, %rax
cmpb $0x0, 0x70(%rbx,%rax)
jne 0x223149
movq 0x10(%rsi), %rcx
movl %r12d, %eax
shrl %eax
movq %r12, %rbp
leaq (%rax,%rax,4), %rax
andq $0x1, %rbp
jne 0x2230c6
movq 0x18(%rcx,%rax,8), %rax
movl 0x4(%rax), %eax
jmp 0x2230d9
movq 0x18(%rcx,%rax,8), %rdx
movl 0x10(%rcx,%rax,8), %eax
decl %eax
movl 0x4(%rdx,%rax,8), %eax
xorq $0x1, %rax
movq 0x78(%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 (%r10,%rdx,8), %rdx
movq %rdx, %rsi
andq %r14, %rsi
movl 0x14(%r9), %edi
andl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
cmpq %rdi, %rsi
jae 0x22448b
movl %eax, %esi
shrl %esi
movq (%r10,%rsi,8), %rsi
movq %rsi, %r8
andq %r14, %r8
cmpq %rdi, %r8
jae 0x2244aa
shrq $0x20, %rcx
cmpl %eax, %ecx
ja 0x22313f
movl %ecx, %edi
andl $0x1, %edi
je 0x22315b
cmpl %eax, %ecx
jne 0x22315b
movq 0x30(%rsp), %rdx
movq 0x10(%rsp), %rsi
addq $0x20, %r13
decq %r15
jne 0x223083
jmp 0x223305
movq %r11, 0x40(%rsp)
movq %r10, 0x90(%rsp)
leaq (%rdi,%rdx,2), %rdx
andl $0x1, %eax
leaq (%rax,%rsi,2), %rcx
movq %r9, %rdi
movq 0x18(%rsp), %rsi
leaq 0x48(%rsp), %r8
callq 0x1f94d8
testl %eax, %eax
js 0x2231b1
movq 0x70(%rsp), %r9
movq 0x30(%rsp), %rdx
movq 0x10(%rsp), %rsi
movq 0x90(%rsp), %r10
movq 0x40(%rsp), %r11
movabsq $0x7fffffffffffffff, %r14 # imm = 0x7FFFFFFFFFFFFFFF
jmp 0x223149
movq 0x28(%rsp), %r14
movq %r14, %rdi
movq 0x88(%rsp), %rbx
movl %ebx, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xa0887
movq 0x20(%r14), %rax
movb $0x0, 0x4(%rax,%rbx,8)
movq 0x40(%rsp), %r11
movq 0x38(%rsp), %rax
cmpq %rax, %r11
jne 0x223218
leaq (%rax,%rax), %rbx
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rbx
leaq (,%rbx,8), %rsi
movq 0x90(%rsp), %rdi
callq 0x2370
movq 0x40(%rsp), %r11
movq %rax, %r10
movq %rbx, 0x38(%rsp)
jmp 0x223220
movq 0x90(%rsp), %r10
movq 0x60(%rsp), %rax
movq $-0x1, (%r10,%r11,8)
cmpq %rax, 0x20(%rsp)
jne 0x22327b
leaq (%rax,%rax), %rbx
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rbx
leaq (,%rbx,8), %rax
leaq (%rax,%rax,2), %rsi
movq 0x68(%rsp), %rdi
movq %r10, %r14
callq 0x2370
movq 0x40(%rsp), %r11
movq %r14, %r10
movq %rbx, 0x60(%rsp)
movq 0x70(%rsp), %r9
movq 0x30(%rsp), %rdx
movq 0x10(%rsp), %rsi
jmp 0x22328f
movq 0x70(%rsp), %r9
movq 0x30(%rsp), %rdx
movq 0x10(%rsp), %rsi
movq 0x68(%rsp), %rax
movabsq $0x7fffffffffffffff, %r14 # imm = 0x7FFFFFFFFFFFFFFF
incq %r11
movq 0x20(%rsp), %rcx
leaq (%rcx,%rcx,2), %rdi
incq %rcx
movq %rcx, 0x20(%rsp)
movl $0xffffffff, 0x4(%rax,%rdi,8) # imm = 0xFFFFFFFF
movq 0x88(%rsp), %r8
movl %r8d, (%rax,%rdi,8)
movq (%rdx), %rbx
movq 0x80(%rsp), %rcx
movl (%rbx,%rcx), %ecx
addl %ecx, %ecx
movl %ecx, 0x8(%rax,%rdi,8)
shrl %r12d
imulq $0x78, %r12, %rcx
movl (%rbx,%rcx), %ecx
leal (%rbp,%rcx,2), %ecx
movl %ecx, 0xc(%rax,%rdi,8)
movq %rax, 0x68(%rsp)
movq $-0x1, 0x10(%rax,%rdi,8)
incq %r8
movq %r8, 0x88(%rsp)
jmp 0x223149
movq 0x80(%rsp), %rax
movq 0x28(%rbx,%rax), %r15
testq %r15, %r15
je 0x2235a8
movq 0x38(%rbx,%rax), %r13
addq $0xc, %r13
cmpl $0x0, (%r13)
js 0x2233e7
movl -0x4(%r13), %r12d
movl %r12d, %eax
shrl %eax
imulq $0x78, %rax, %rax
cmpb $0x0, 0x70(%rbx,%rax)
jne 0x2233e7
movq 0x10(%rsi), %rcx
movl %r12d, %eax
shrl %eax
movq %r12, %rbp
leaq (%rax,%rax,4), %rax
andq $0x1, %rbp
jne 0x223367
movq 0x18(%rcx,%rax,8), %rax
movl 0x4(%rax), %eax
jmp 0x22337a
movq 0x18(%rcx,%rax,8), %rdx
movl 0x10(%rcx,%rax,8), %eax
decl %eax
movl 0x4(%rdx,%rax,8), %eax
xorq $0x1, %rax
movq 0x78(%rsp), %rdx
leaq (%rdx,%rdx,4), %rdx
movq 0x18(%rcx,%rdx,8), %rcx
movq (%rcx), %rcx
movq %rcx, %rdx
shrq $0x21, %rdx
movq (%r10,%rdx,8), %rdx
movq %rdx, %rsi
andq %r14, %rsi
movl 0x14(%r9), %edi
andl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
cmpq %rdi, %rsi
jae 0x2244c9
movl %eax, %esi
shrl %esi
movq (%r10,%rsi,8), %rsi
movq %rsi, %r8
andq %r14, %r8
cmpq %rdi, %r8
jae 0x2244e8
shrq $0x20, %rcx
xorq $0x1, %rcx
cmpl %eax, %ecx
ja 0x2233dd
movl %ecx, %edi
andl $0x1, %edi
je 0x2233f9
cmpl %eax, %ecx
jne 0x2233f9
movq 0x30(%rsp), %rdx
movq 0x10(%rsp), %rsi
addq $0x20, %r13
decq %r15
jne 0x223324
jmp 0x2235a8
movq %r11, 0x40(%rsp)
movq %r10, 0x90(%rsp)
leaq (%rdi,%rdx,2), %rdx
andl $0x1, %eax
leaq (%rax,%rsi,2), %rcx
movq %r9, %rdi
movq 0x18(%rsp), %rsi
leaq 0x48(%rsp), %r8
callq 0x1f94d8
testl %eax, %eax
js 0x22344f
movq 0x70(%rsp), %r9
movq 0x30(%rsp), %rdx
movq 0x10(%rsp), %rsi
movq 0x90(%rsp), %r10
movq 0x40(%rsp), %r11
movabsq $0x7fffffffffffffff, %r14 # imm = 0x7FFFFFFFFFFFFFFF
jmp 0x2233e7
movq 0x28(%rsp), %r14
movq %r14, %rdi
movq 0x88(%rsp), %rbx
movl %ebx, %esi
xorl %edx, %edx
xorl %ecx, %ecx
callq 0xa0887
movq 0x20(%r14), %rax
movb $0x0, 0x4(%rax,%rbx,8)
movq 0x40(%rsp), %r11
movq 0x38(%rsp), %rax
cmpq %rax, %r11
jne 0x2234b6
leaq (%rax,%rax), %rbx
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rbx
leaq (,%rbx,8), %rsi
movq 0x90(%rsp), %rdi
callq 0x2370
movq 0x40(%rsp), %r11
movq %rax, %r10
movq %rbx, 0x38(%rsp)
jmp 0x2234be
movq 0x90(%rsp), %r10
movq 0x60(%rsp), %rax
movq $-0x1, (%r10,%r11,8)
cmpq %rax, 0x20(%rsp)
jne 0x223519
leaq (%rax,%rax), %rbx
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rbx
leaq (,%rbx,8), %rax
leaq (%rax,%rax,2), %rsi
movq 0x68(%rsp), %rdi
movq %r10, %r14
callq 0x2370
movq 0x40(%rsp), %r11
movq %r14, %r10
movq %rbx, 0x60(%rsp)
movq 0x70(%rsp), %r9
movq 0x30(%rsp), %rdx
movq 0x10(%rsp), %rsi
jmp 0x22352d
movq 0x70(%rsp), %r9
movq 0x30(%rsp), %rdx
movq 0x10(%rsp), %rsi
movq 0x68(%rsp), %rax
movabsq $0x7fffffffffffffff, %r14 # imm = 0x7FFFFFFFFFFFFFFF
incq %r11
movq 0x20(%rsp), %rcx
leaq (%rcx,%rcx,2), %rdi
incq %rcx
movq %rcx, 0x20(%rsp)
movl $0xffffffff, 0x4(%rax,%rdi,8) # imm = 0xFFFFFFFF
movq 0x88(%rsp), %r8
movl %r8d, (%rax,%rdi,8)
movq (%rdx), %rbx
movq 0x80(%rsp), %rcx
movl (%rbx,%rcx), %ecx
leal 0x1(,%rcx,2), %ecx
movl %ecx, 0x8(%rax,%rdi,8)
shrl %r12d
imulq $0x78, %r12, %rcx
movl (%rbx,%rcx), %ecx
leal (%rbp,%rcx,2), %ecx
movl %ecx, 0xc(%rax,%rdi,8)
movq %rax, 0x68(%rsp)
movq $-0x1, 0x10(%rax,%rdi,8)
incq %r8
movq %r8, 0x88(%rsp)
jmp 0x2233e7
movq 0x8(%rsp), %rcx
incq %rcx
cmpq 0x8(%rdx), %rcx
jb 0x22303e
movq 0x28(%rsp), %rax
movl 0x14(%rax), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movq 0x20(%rsp), %r14
movq %r10, 0x90(%rsp)
cmpq %rax, %r11
jne 0x224754
movq %r11, %r12
movq 0xf0(%rsp), %rbx
addl %eax, %eax
movslq %eax, %rdi
movl $0x1, %esi
callq 0x2120
movq 0x28(%rsp), %rcx
movq %rax, 0x30(%rcx)
testq %r14, %r14
je 0x223622
movq 0xf8(%rsp), %r8
movq 0x68(%rsp), %rdi
movq %r14, %rsi
movq 0x98(%rsp), %rdx
callq 0x221d64
leaq 0xcf62(%rip), %rax      # 0x23058b
leaq 0x72c00(%rip), %r15     # 0x296230
leaq 0x72ce1(%rip), %rsi     # 0x296318
movq %r15, %rdi
movq 0xa8(%rsp), %rdx
movq 0xb0(%rsp), %rcx
movq 0x90(%rsp), %r14
movq %r14, %r8
movq %r12, %r9
pushq 0x68(%rsp)
pushq 0xa0(%rsp)
pushq 0x28(%rsp)
movq 0x40(%rsp), %r10
pushq %r10
pushq %rax
pushq %rbx
movq %r10, %rbx
callq 0x2b6f9
addq $0x30, %rsp
movq 0x78(%r15), %rdi
movq 0x80(%r15), %rsi
movq 0x70(%rsp), %rax
movl 0x14(%rax), %r8d
andl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
movq %r14, %rdx
movq %r12, %rcx
movq %rbx, %r9
callq 0x224792
movl 0x18(%rbx), %eax
movq %rax, 0x80(%rsp)
movq 0x30(%rsp), %r10
cmpq $0x0, 0x8(%r10)
jne 0x2236c6
movq 0x10(%rsp), %rsi
jmp 0x2243a4
movq 0x10(%rsp), %rsi
movq 0x18(%rsi), %rax
movq %rax, 0x98(%rsp)
xorl %ecx, %ecx
leaq 0x48(%rsp), %rbp
movq 0x98(%rsp), %rax
movq 0x20(%rax), %rax
cmpl $0x0, (%rax,%rcx,8)
movq %rcx, 0x40(%rsp)
js 0x22438d
movq 0x10(%rsi), %rdx
leaq (%rcx,%rcx,4), %rax
movq %rdx, 0x78(%rsp)
cmpl $0x2, 0x10(%rdx,%rax,8)
jb 0x223864
movq 0x78(%rsp), %rcx
leaq (%rcx,%rax,8), %r15
movl $0x1, %r13d
movq 0x18(%r15), %rax
movl -0x4(%rax,%r13,8), %r14d
movl 0x4(%rax,%r13,8), %r12d
movq %rbx, %rdi
movq 0x18(%rsp), %rsi
movl %r14d, %edx
movl %r12d, %ecx
movq %rbp, %r8
callq 0x1f94d8
testl %eax, %eax
js 0x22446c
movl 0x4(%rbx), %edx
movl %edx, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpl (%rbx), %ecx
jne 0x22378c
leal (%rcx,%rcx), %eax
testl %ecx, %ecx
movl $0x10, %ecx
cmovel %ecx, %eax
movl %eax, (%rbx)
movq 0x8(%rbx), %rdi
shlq $0x3, %rax
leaq (%rax,%rax,2), %rsi
callq 0x2370
movq %rax, 0x8(%rbx)
movl 0x4(%rbx), %edx
movl %edx, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
jmp 0x223790
movq 0x8(%rbx), %rax
leal 0x1(%rdx), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl $0x80000000, %edx       # imm = 0x80000000
orl %esi, %edx
movl %edx, 0x4(%rbx)
movl %ecx, %ecx
leaq (%rcx,%rcx,2), %rcx
movq 0x58(%rsp), %rdx
movq %rdx, 0x10(%rax,%rcx,8)
movups 0x48(%rsp), %xmm0
movups %xmm0, (%rax,%rcx,8)
xorl $0x1, %r12d
xorl $0x1, %r14d
movq %rbx, %rdi
movq 0x18(%rsp), %rsi
movl %r12d, %edx
movl %r14d, %ecx
movq %rbp, %r8
callq 0x1f94d8
testl %eax, %eax
js 0x22444d
movl 0x4(%rbx), %edx
movl %edx, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpl (%rbx), %ecx
jne 0x223823
leal (%rcx,%rcx), %eax
testl %ecx, %ecx
movl $0x10, %ecx
cmovel %ecx, %eax
movl %eax, (%rbx)
movq 0x8(%rbx), %rdi
shlq $0x3, %rax
leaq (%rax,%rax,2), %rsi
callq 0x2370
movq %rax, 0x8(%rbx)
movl 0x4(%rbx), %edx
movl %edx, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
jmp 0x223827
movq 0x8(%rbx), %rax
leal 0x1(%rdx), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl $0x80000000, %edx       # imm = 0x80000000
orl %esi, %edx
movl %edx, 0x4(%rbx)
movl %ecx, %ecx
leaq (%rcx,%rcx,2), %rcx
movq 0x58(%rsp), %rdx
movq %rdx, 0x10(%rax,%rcx,8)
movups 0x48(%rsp), %xmm0
movups %xmm0, (%rax,%rcx,8)
incq %r13
movl 0x10(%r15), %eax
cmpq %rax, %r13
jb 0x223720
movq 0x30(%rsp), %r10
movq (%r10), %rax
movq 0x40(%rsp), %rdi
movabsq $0x7fffffffffffffff, %rcx # imm = 0x7FFFFFFFFFFFFFFF
andq %rcx, %rdi
imulq $0x78, %rdi, %rcx
movq 0x10(%rax,%rcx), %r15
testq %r15, %r15
movq %rcx, 0x88(%rsp)
je 0x223e10
movq 0x20(%rax,%rcx), %r13
leaq (%rdi,%rdi,4), %rax
movq 0x78(%rsp), %rcx
leaq (%rcx,%rax,8), %r8
addq $0xc, %r13
movq %rdi, 0x38(%rsp)
movq %r8, 0x60(%rsp)
cmpl $0x0, (%r13)
js 0x223df8
movq (%r10), %rbp
movl -0x4(%r13), %r12d
movl %r12d, %eax
shrl %eax
imulq $0x78, %rax, %rax
cmpb $0x0, 0x70(%rbp,%rax)
jne 0x223df8
movl %r12d, %eax
shrl %eax
movq %r12, %rbx
leaq (%rax,%rax,4), %rax
andq $0x1, %rbx
jne 0x223900
movq 0x78(%rsp), %rcx
movq 0x18(%rcx,%rax,8), %rax
movl 0x4(%rax), %r9d
jmp 0x223919
movq 0x78(%rsp), %rsi
movq 0x18(%rsi,%rax,8), %rcx
movl 0x10(%rsi,%rax,8), %eax
decl %eax
movl 0x4(%rcx,%rax,8), %r9d
xorq $0x1, %r9
movq 0x18(%r8), %rax
movl 0x10(%r8), %ecx
decl %ecx
movq (%rax,%rcx,8), %rax
movq %rax, %rdx
shrq $0x20, %rdx
cmpl %r9d, %edx
ja 0x223947
movabsq $0x100000000, %rcx      # imm = 0x100000000
testq %rcx, %rax
je 0x223951
cmpl %r9d, %edx
jne 0x223951
movq 0x28(%rsp), %rbx
jmp 0x223df8
movq 0x28(%rsp), %r14
movq %r14, %rdi
movq 0x18(%rsp), %rsi
movq %rdx, 0x20(%rsp)
movq %r9, 0x8(%rsp)
movl %r9d, %ecx
leaq 0x48(%rsp), %r8
callq 0x1f94d8
testl %eax, %eax
js 0x2239cb
movl 0x4(%r14), %edi
movl %edi, %r9d
andl $0x7fffffff, %r9d       # imm = 0x7FFFFFFF
cmpl (%r14), %r9d
movq %r14, %rbx
jne 0x223af3
leal (%r9,%r9), %eax
testl %r9d, %r9d
movl $0x10, %ecx
cmovel %ecx, %eax
movl %eax, (%rbx)
movq 0x8(%rbx), %rdi
shlq $0x3, %rax
leaq (%rax,%rax,2), %rsi
callq 0x2370
movq %rax, 0x8(%rbx)
movl 0x4(%rbx), %edi
movl %edi, %r9d
andl $0x7fffffff, %r9d       # imm = 0x7FFFFFFF
jmp 0x223af7
movl 0x18(%r14), %eax
movq 0x80(%rsp), %rsi
movq %rsi, %rcx
subq %rax, %rcx
leaq (%rcx,%rcx,2), %rax
movq 0x68(%rsp), %rdx
movl (%rdx,%rax,8), %ecx
cmpq %rcx, %rsi
jne 0x224583
leaq (%rdx,%rax,8), %rdi
movq 0x88(%rsp), %rax
movl (%rbp,%rax), %eax
addl %eax, %eax
cmpl %eax, 0x8(%rdi)
movq 0x20(%rsp), %r9
jne 0x2245a2
shrl %r12d
imulq $0x78, %r12, %rax
movl (%rbp,%rax), %eax
leal (%rbx,%rax,2), %eax
cmpl 0xc(%rdi), %eax
movq 0x80(%rsp), %rcx
jne 0x22461e
movq 0x28(%rsp), %rbx
movq 0x20(%rbx), %rax
cmpl $0x0, (%rax,%rcx,8)
js 0x223bcf
leaq (%rcx,%rcx), %r12
leaq 0x727e1(%rip), %rax     # 0x296230
movq 0x78(%rax), %rdi
movq 0x18(%rsp), %r14
movslq 0x44(%r14), %rcx
movq %r9, %rsi
movq %r12, %rdx
movq %rbx, %r8
movq %r9, %rbp
callq 0x222c57
leaq 0x727bc(%rip), %rax     # 0x296230
movq 0x78(%rax), %rdi
movslq 0x44(%r14), %rcx
movq %r12, %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %r8
callq 0x222c57
movq %rbx, %rdi
movq %r14, %rsi
leaq 0x48(%rsp), %r14
movl %ebp, %edx
movl %r12d, %ecx
movq %r14, %r8
callq 0x1f94d8
testl %eax, %eax
js 0x224716
movl 0x4(%rbx), %edx
movl %edx, %edi
andl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
cmpl (%rbx), %edi
jne 0x223bf3
leal (%rdi,%rdi), %eax
testl %edi, %edi
movl $0x10, %ecx
cmovel %ecx, %eax
movl %eax, (%rbx)
movq 0x8(%rbx), %rdi
shlq $0x3, %rax
leaq (%rax,%rax,2), %rsi
callq 0x2370
movq %rax, 0x8(%rbx)
movl 0x4(%rbx), %edx
movl %edx, %edi
andl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
jmp 0x223bf7
movq 0x8(%rbx), %rax
leaq 0x48(%rsp), %r8
movq 0x8(%rsp), %rdx
movq 0x20(%rsp), %rcx
leal 0x1(%rdi), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl $0x80000000, %edi       # imm = 0x80000000
orl %esi, %edi
movl %edi, 0x4(%rbx)
movl %r9d, %esi
leaq (%rsi,%rsi,2), %rdi
movq 0x58(%rsp), %rsi
movq %rsi, 0x10(%rax,%rdi,8)
movups 0x48(%rsp), %xmm0
movups %xmm0, (%rax,%rdi,8)
xorl $0x1, %edx
xorl $0x1, %ecx
movq %rbx, %rdi
movq 0x18(%rsp), %rsi
callq 0x1f94d8
testl %eax, %eax
js 0x224545
movl 0x4(%rbx), %edx
movl %edx, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpl (%rbx), %ecx
jne 0x223b8f
leal (%rcx,%rcx), %eax
testl %ecx, %ecx
movl $0x10, %ecx
cmovel %ecx, %eax
movl %eax, (%rbx)
movq 0x8(%rbx), %rdi
shlq $0x3, %rax
leaq (%rax,%rax,2), %rsi
callq 0x2370
movq %rax, 0x8(%rbx)
movl 0x4(%rbx), %edx
movl %edx, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
jmp 0x223b93
movq 0x8(%rbx), %rax
movq 0x38(%rsp), %rdi
movq 0x60(%rsp), %r8
leal 0x1(%rdx), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl $0x80000000, %edx       # imm = 0x80000000
orl %esi, %edx
movl %edx, 0x4(%rbx)
movl %ecx, %ecx
leaq (%rcx,%rcx,2), %rcx
movq 0x58(%rsp), %rdx
movq %rdx, 0x10(%rax,%rcx,8)
movups 0x48(%rsp), %xmm0
movups %xmm0, (%rax,%rcx,8)
jmp 0x223df3
movq %rbx, %rsi
movq 0x18(%rsp), %rdx
movq %r9, %rcx
movq 0x8(%rsp), %r8
callq 0x222786
movq 0x38(%rsp), %rdi
movq 0x60(%rsp), %r8
jmp 0x223deb
movq 0x8(%rbx), %rax
movq 0x20(%rsp), %rcx
leal 0x1(%rdx), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl $0x80000000, %edx       # imm = 0x80000000
orl %esi, %edx
movl %edx, 0x4(%rbx)
movl %edi, %edx
leaq (%rdx,%rdx,2), %rsi
movq 0x58(%rsp), %rdx
movq %rdx, 0x10(%rax,%rsi,8)
movups 0x48(%rsp), %xmm0
movups %xmm0, (%rax,%rsi,8)
movl %r12d, %ebp
orl $0x1, %ebp
xorl $0x1, %ecx
movq %rbx, %rdi
movq 0x18(%rsp), %rsi
movl %ebp, %edx
movq %r14, %r8
callq 0x1f94d8
testl %eax, %eax
js 0x22465c
movl 0x4(%rbx), %edx
movl %edx, %edi
andl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
cmpl (%rbx), %edi
jne 0x223c8c
leal (%rdi,%rdi), %eax
testl %edi, %edi
movl $0x10, %ecx
cmovel %ecx, %eax
movl %eax, (%rbx)
movq 0x8(%rbx), %rdi
shlq $0x3, %rax
leaq (%rax,%rax,2), %rsi
callq 0x2370
movq %rax, 0x8(%rbx)
movl 0x4(%rbx), %edx
movl %edx, %edi
andl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
jmp 0x223c90
movq 0x8(%rbx), %rax
movq 0x8(%rsp), %rcx
leal 0x1(%rdx), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl $0x80000000, %edx       # imm = 0x80000000
orl %esi, %edx
movl %edx, 0x4(%rbx)
movl %edi, %edx
leaq (%rdx,%rdx,2), %rsi
movq 0x58(%rsp), %rdx
movq %rdx, 0x10(%rax,%rsi,8)
movups 0x48(%rsp), %xmm0
movups %xmm0, (%rax,%rsi,8)
movq %rbx, %rdi
movq 0x18(%rsp), %rsi
movl %r12d, %edx
movq %r14, %r8
callq 0x1f94d8
testl %eax, %eax
js 0x22469a
movl 0x4(%rbx), %edi
movl %edi, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpl (%rbx), %ecx
jne 0x223d1d
leal (%rcx,%rcx), %eax
testl %ecx, %ecx
movl $0x10, %ecx
cmovel %ecx, %eax
movl %eax, (%rbx)
movq 0x8(%rbx), %rdi
shlq $0x3, %rax
leaq (%rax,%rax,2), %rsi
callq 0x2370
movq %rax, 0x8(%rbx)
movl 0x4(%rbx), %edi
movl %edi, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
jmp 0x223d21
movq 0x8(%rbx), %rax
movq 0x8(%rsp), %rdx
leal 0x1(%rdi), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl $0x80000000, %edi       # imm = 0x80000000
orl %esi, %edi
movl %edi, 0x4(%rbx)
movl %ecx, %ecx
leaq (%rcx,%rcx,2), %rcx
movq 0x58(%rsp), %rsi
movq %rsi, 0x10(%rax,%rcx,8)
movups 0x48(%rsp), %xmm0
movups %xmm0, (%rax,%rcx,8)
xorl $0x1, %edx
movq %rbx, %rdi
movq 0x18(%rsp), %rsi
movl %ebp, %ecx
movq %r14, %r8
callq 0x1f94d8
testl %eax, %eax
js 0x2246b9
movl 0x4(%rbx), %edx
movl %edx, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpl (%rbx), %ecx
jne 0x223db0
leal (%rcx,%rcx), %eax
testl %ecx, %ecx
movl $0x10, %ecx
cmovel %ecx, %eax
movl %eax, (%rbx)
movq 0x8(%rbx), %rdi
shlq $0x3, %rax
leaq (%rax,%rax,2), %rsi
callq 0x2370
movq %rax, 0x8(%rbx)
movl 0x4(%rbx), %edx
movl %edx, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
jmp 0x223db4
movq 0x8(%rbx), %rax
movq 0x38(%rsp), %rdi
movq 0x60(%rsp), %r8
leal 0x1(%rdx), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl $0x80000000, %edx       # imm = 0x80000000
orl %esi, %edx
movl %edx, 0x4(%rbx)
movl %ecx, %ecx
leaq (%rcx,%rcx,2), %rcx
movq 0x58(%rsp), %rdx
movq %rdx, 0x10(%rax,%rcx,8)
movups 0x48(%rsp), %xmm0
movups %xmm0, (%rax,%rcx,8)
incq 0x80(%rsp)
movq 0x30(%rsp), %r10
addq $0x20, %r13
decq %r15
jne 0x2238b8
movq (%r10), %rax
movq 0x88(%rsp), %rcx
movq 0x28(%rax,%rcx), %r15
testq %r15, %r15
je 0x224388
movq 0x38(%rax,%rcx), %rbp
leaq (%rdi,%rdi,4), %rax
movq 0x78(%rsp), %rcx
leaq (%rcx,%rax,8), %r8
addq $0x18, %r8
addq $0xc, %rbp
movq 0x10(%rsp), %rsi
movq %r8, 0x38(%rsp)
cmpl $0x0, (%rbp)
js 0x224379
movq (%r10), %r12
movl -0x4(%rbp), %r14d
movl %r14d, %eax
shrl %eax
imulq $0x78, %rax, %rax
cmpb $0x0, 0x70(%r12,%rax)
jne 0x224379
movl %r14d, %eax
shrl %eax
movq %r14, %rbx
leaq (%rax,%rax,4), %rax
andq $0x1, %rbx
jne 0x223e89
movq 0x78(%rsp), %rcx
movq 0x18(%rcx,%rax,8), %rax
movl 0x4(%rax), %ecx
jmp 0x223ea1
movq 0x78(%rsp), %rdi
movq 0x18(%rdi,%rax,8), %rcx
movl 0x10(%rdi,%rax,8), %eax
decl %eax
movl 0x4(%rcx,%rax,8), %ecx
xorq $0x1, %rcx
movq (%r8), %rax
movq (%rax), %rax
movq %rax, %rdx
shrq $0x20, %rdx
movq %rdx, %r13
xorq $0x1, %r13
cmpl %ecx, %r13d
ja 0x223ed2
movq %r13, %r9
xorq %rcx, %r9
movabsq $0x100000000, %rdi      # imm = 0x100000000
andq %rdi, %rax
orq %r9, %rax
jne 0x223edc
movq 0x28(%rsp), %rbx
jmp 0x224379
movq %rdx, 0x20(%rsp)
movq 0x28(%rsp), %rdi
movq 0x18(%rsp), %rsi
movl %r13d, %edx
movq %rcx, 0x8(%rsp)
leaq 0x48(%rsp), %r8
callq 0x1f94d8
testl %eax, %eax
js 0x223f54
movq 0x28(%rsp), %rbx
movl 0x4(%rbx), %edi
movl %edi, %r8d
andl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
cmpl (%rbx), %r8d
jne 0x22407b
leal (%r8,%r8), %eax
testl %r8d, %r8d
movl $0x10, %ecx
cmovel %ecx, %eax
movl %eax, (%rbx)
movq 0x8(%rbx), %rdi
shlq $0x3, %rax
leaq (%rax,%rax,2), %rsi
callq 0x2370
movq %rax, 0x8(%rbx)
movl 0x4(%rbx), %edi
movl %edi, %r8d
andl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
jmp 0x22407f
movq 0x28(%rsp), %rax
movl 0x18(%rax), %eax
movq 0x80(%rsp), %rsi
movq %rsi, %rcx
subq %rax, %rcx
leaq (%rcx,%rcx,2), %rax
movq 0x68(%rsp), %rdx
movl (%rdx,%rax,8), %ecx
cmpq %rcx, %rsi
jne 0x2245e0
leaq (%rdx,%rax,8), %rdi
movq 0x88(%rsp), %rax
movl (%r12,%rax), %eax
leal 0x1(,%rax,2), %eax
cmpl %eax, 0x8(%rdi)
jne 0x2245ff
shrl %r14d
imulq $0x78, %r14, %rax
movl (%r12,%rax), %eax
leal (%rbx,%rax,2), %eax
cmpl 0xc(%rdi), %eax
movq 0x80(%rsp), %rcx
jne 0x2245c1
movq 0x28(%rsp), %rbx
movq 0x20(%rbx), %rax
cmpl $0x0, (%rax,%rcx,8)
js 0x22414f
leaq (%rcx,%rcx), %r12
leaq 0x72254(%rip), %rax     # 0x296230
movq 0x78(%rax), %rdi
movq 0x18(%rsp), %r14
movslq 0x44(%r14), %rcx
movq %r13, %rsi
movq %r12, %rdx
movq %rbx, %r8
callq 0x222c57
leaq 0x72232(%rip), %rax     # 0x296230
movq 0x78(%rax), %rdi
movslq 0x44(%r14), %rcx
movq %r12, %rsi
movq 0x8(%rsp), %rdx
movq %rbx, %r8
callq 0x222c57
movq %rbx, %rdi
movq %r14, %rsi
movl %r13d, %edx
movl %r12d, %ecx
leaq 0x48(%rsp), %r8
callq 0x1f94d8
testl %eax, %eax
js 0x2246d8
movl 0x4(%rbx), %edx
movl %edx, %edi
andl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
cmpl (%rbx), %edi
jne 0x22416e
leal (%rdi,%rdi), %eax
testl %edi, %edi
movl $0x10, %ecx
cmovel %ecx, %eax
movl %eax, (%rbx)
movq 0x8(%rbx), %rdi
shlq $0x3, %rax
leaq (%rax,%rax,2), %rsi
callq 0x2370
movq %rax, 0x8(%rbx)
movl 0x4(%rbx), %edx
movl %edx, %edi
andl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
jmp 0x224172
movq 0x8(%rbx), %rax
movq 0x8(%rsp), %rdx
movq 0x20(%rsp), %rcx
leal 0x1(%rdi), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl $0x80000000, %edi       # imm = 0x80000000
orl %esi, %edi
movl %edi, 0x4(%rbx)
movl %r8d, %esi
leaq (%rsi,%rsi,2), %rdi
movq 0x58(%rsp), %rsi
movq %rsi, 0x10(%rax,%rdi,8)
movups 0x48(%rsp), %xmm0
movups %xmm0, (%rax,%rdi,8)
xorl $0x1, %edx
movq %rbx, %rdi
movq 0x18(%rsp), %rsi
leaq 0x48(%rsp), %r8
callq 0x1f94d8
testl %eax, %eax
js 0x224564
movl 0x4(%rbx), %edx
movl %edx, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpl (%rbx), %ecx
jne 0x224114
leal (%rcx,%rcx), %eax
testl %ecx, %ecx
movl $0x10, %ecx
cmovel %ecx, %eax
movl %eax, (%rbx)
movq 0x8(%rbx), %rdi
shlq $0x3, %rax
leaq (%rax,%rax,2), %rsi
callq 0x2370
movq %rax, 0x8(%rbx)
movl 0x4(%rbx), %edx
movl %edx, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
jmp 0x224118
movq 0x8(%rbx), %rax
movq 0x38(%rsp), %r8
leal 0x1(%rdx), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl $0x80000000, %edx       # imm = 0x80000000
orl %esi, %edx
movl %edx, 0x4(%rbx)
movl %ecx, %ecx
leaq (%rcx,%rcx,2), %rcx
movq 0x58(%rsp), %rdx
movq %rdx, 0x10(%rax,%rcx,8)
movups 0x48(%rsp), %xmm0
movups %xmm0, (%rax,%rcx,8)
jmp 0x22436f
movq %rbx, %rsi
movq 0x18(%rsp), %rdx
movq %r13, %rcx
movq 0x8(%rsp), %r8
callq 0x222786
movq 0x38(%rsp), %r8
jmp 0x224367
movq 0x8(%rbx), %rax
movq 0x20(%rsp), %rcx
leal 0x1(%rdx), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl $0x80000000, %edx       # imm = 0x80000000
orl %esi, %edx
movl %edx, 0x4(%rbx)
movl %edi, %edx
leaq (%rdx,%rdx,2), %rsi
movq 0x58(%rsp), %rdx
movq %rdx, 0x10(%rax,%rsi,8)
movups 0x48(%rsp), %xmm0
movups %xmm0, (%rax,%rsi,8)
movl %r12d, %r13d
orl $0x1, %r13d
movq %rbx, %rdi
movq 0x18(%rsp), %rsi
movl %r13d, %edx
leaq 0x48(%rsp), %r8
callq 0x1f94d8
testl %eax, %eax
js 0x2246f7
movl 0x4(%rbx), %edx
movl %edx, %edi
andl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
cmpl (%rbx), %edi
jne 0x224208
leal (%rdi,%rdi), %eax
testl %edi, %edi
movl $0x10, %ecx
cmovel %ecx, %eax
movl %eax, (%rbx)
movq 0x8(%rbx), %rdi
shlq $0x3, %rax
leaq (%rax,%rax,2), %rsi
callq 0x2370
movq %rax, 0x8(%rbx)
movl 0x4(%rbx), %edx
movl %edx, %edi
andl $0x7fffffff, %edi       # imm = 0x7FFFFFFF
jmp 0x22420c
movq 0x8(%rbx), %rax
movq 0x8(%rsp), %rcx
leal 0x1(%rdx), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl $0x80000000, %edx       # imm = 0x80000000
orl %esi, %edx
movl %edx, 0x4(%rbx)
movl %edi, %edx
leaq (%rdx,%rdx,2), %rsi
movq 0x58(%rsp), %rdx
movq %rdx, 0x10(%rax,%rsi,8)
movups 0x48(%rsp), %xmm0
movups %xmm0, (%rax,%rsi,8)
movq %rbx, %rdi
movq 0x18(%rsp), %rsi
movl %r12d, %edx
leaq 0x48(%rsp), %r8
callq 0x1f94d8
testl %eax, %eax
js 0x22463d
movl 0x4(%rbx), %edi
movl %edi, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpl (%rbx), %ecx
jne 0x22429b
leal (%rcx,%rcx), %eax
testl %ecx, %ecx
movl $0x10, %ecx
cmovel %ecx, %eax
movl %eax, (%rbx)
movq 0x8(%rbx), %rdi
shlq $0x3, %rax
leaq (%rax,%rax,2), %rsi
callq 0x2370
movq %rax, 0x8(%rbx)
movl 0x4(%rbx), %edi
movl %edi, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
jmp 0x22429f
movq 0x8(%rbx), %rax
movq 0x8(%rsp), %rdx
leal 0x1(%rdi), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl $0x80000000, %edi       # imm = 0x80000000
orl %esi, %edi
movl %edi, 0x4(%rbx)
movl %ecx, %ecx
leaq (%rcx,%rcx,2), %rcx
movq 0x58(%rsp), %rsi
movq %rsi, 0x10(%rax,%rcx,8)
movups 0x48(%rsp), %xmm0
movups %xmm0, (%rax,%rcx,8)
xorl $0x1, %edx
movq %rbx, %rdi
movq 0x18(%rsp), %rsi
movl %r13d, %ecx
leaq 0x48(%rsp), %r8
callq 0x1f94d8
testl %eax, %eax
js 0x22467b
movl 0x4(%rbx), %edx
movl %edx, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
cmpl (%rbx), %ecx
jne 0x224331
leal (%rcx,%rcx), %eax
testl %ecx, %ecx
movl $0x10, %ecx
cmovel %ecx, %eax
movl %eax, (%rbx)
movq 0x8(%rbx), %rdi
shlq $0x3, %rax
leaq (%rax,%rax,2), %rsi
callq 0x2370
movq %rax, 0x8(%rbx)
movl 0x4(%rbx), %edx
movl %edx, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
jmp 0x224335
movq 0x8(%rbx), %rax
movq 0x38(%rsp), %r8
leal 0x1(%rdx), %esi
andl $0x7fffffff, %esi       # imm = 0x7FFFFFFF
andl $0x80000000, %edx       # imm = 0x80000000
orl %esi, %edx
movl %edx, 0x4(%rbx)
movl %ecx, %ecx
leaq (%rcx,%rcx,2), %rcx
movq 0x58(%rsp), %rdx
movq %rdx, 0x10(%rax,%rcx,8)
movups 0x48(%rsp), %xmm0
movups %xmm0, (%rax,%rcx,8)
incq 0x80(%rsp)
movq 0x30(%rsp), %r10
movq 0x10(%rsp), %rsi
addq $0x20, %rbp
decq %r15
jne 0x223e42
jmp 0x22438d
movq 0x10(%rsp), %rsi
movq 0x40(%rsp), %rcx
incq %rcx
cmpq 0x8(%r10), %rcx
leaq 0x48(%rsp), %rbp
jb 0x2236de
movq %rbx, %rdi
movq %rsi, %r15
callq 0xa0a7d
movl $0x7fffffff, %r14d      # imm = 0x7FFFFFFF
movl 0x14(%rbx), %eax
andl %r14d, %eax
movl %eax, 0x18(%rbx)
movq 0xa0(%rsp), %rdi
callq 0x2220
movq 0x90(%rsp), %rdi
callq 0x2220
movq 0x68(%rsp), %rdi
callq 0x2220
movq %r15, %rdi
callq 0xa0761
movq 0x70bef(%rip), %rax     # 0x294fe0
movq (%rax), %rdi
movl 0x14(%rbx), %r8d
andl %r14d, %r8d
movq 0x70(%rsp), %rax
andl 0x14(%rax), %r14d
leaq 0x25a8f(%rip), %rsi     # 0x249e9a
leaq 0x25ab9(%rip), %rdx     # 0x249ecb
movq 0x80(%rsp), %r15
movq %r15, %rcx
movl %r14d, %r9d
xorl %eax, %eax
callq 0x22b0
movl 0x14(%rbx), %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cmpq %rax, %r15
jne 0x224773
movq %rbx, %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xf836(%rip), %rdi      # 0x233c8a
leaq 0x211ae(%rip), %rsi     # 0x245609
leaq 0x25901(%rip), %rcx     # 0x249d63
movl $0x3b82, %edx           # imm = 0x3B82
callq 0x2110
leaq 0xf817(%rip), %rdi      # 0x233c8a
leaq 0x2118f(%rip), %rsi     # 0x245609
leaq 0x258e2(%rip), %rcx     # 0x249d63
movl $0x3b7f, %edx           # imm = 0x3B7F
callq 0x2110
leaq 0x25971(%rip), %rdi     # 0x249e03
leaq 0x21170(%rip), %rsi     # 0x245609
leaq 0x258c3(%rip), %rcx     # 0x249d63
movl $0x3b43, %edx           # imm = 0x3B43
callq 0x2110
leaq 0x25969(%rip), %rdi     # 0x249e1a
leaq 0x21151(%rip), %rsi     # 0x245609
leaq 0x258a4(%rip), %rcx     # 0x249d63
movl $0x3b44, %edx           # imm = 0x3B44
callq 0x2110
leaq 0x25933(%rip), %rdi     # 0x249e03
leaq 0x21132(%rip), %rsi     # 0x245609
leaq 0x25885(%rip), %rcx     # 0x249d63
movl $0x3b5d, %edx           # imm = 0x3B5D
callq 0x2110
leaq 0x2592b(%rip), %rdi     # 0x249e1a
leaq 0x21113(%rip), %rsi     # 0x245609
leaq 0x25866(%rip), %rcx     # 0x249d63
movl $0x3b5e, %edx           # imm = 0x3B5E
callq 0x2110
leaq 0x25841(%rip), %rdi     # 0x249d4f
leaq 0x210f4(%rip), %rsi     # 0x245609
leaq 0x25847(%rip), %rcx     # 0x249d63
movl $0x3b2d, %edx           # imm = 0x3B2D
callq 0x2110
leaq 0x2589e(%rip), %rdi     # 0x249dcb
leaq 0x210d5(%rip), %rsi     # 0x245609
leaq 0x25828(%rip), %rcx     # 0x249d63
movl $0x3b32, %edx           # imm = 0x3B32
callq 0x2110
leaq 0xf73e(%rip), %rdi      # 0x233c8a
leaq 0x210b6(%rip), %rsi     # 0x245609
leaq 0x25809(%rip), %rcx     # 0x249d63
movl $0x3b99, %edx           # imm = 0x3B99
callq 0x2110
leaq 0xf71f(%rip), %rdi      # 0x233c8a
leaq 0x21097(%rip), %rsi     # 0x245609
leaq 0x257ea(%rip), %rcx     # 0x249d63
movl $0x3bc0, %edx           # imm = 0x3BC0
callq 0x2110
leaq 0x258a7(%rip), %rdi     # 0x249e31
leaq 0x21078(%rip), %rsi     # 0x245609
leaq 0x257cb(%rip), %rcx     # 0x249d63
movl $0x3b9c, %edx           # imm = 0x3B9C
callq 0x2110
leaq 0x25899(%rip), %rdi     # 0x249e42
leaq 0x21059(%rip), %rsi     # 0x245609
leaq 0x257ac(%rip), %rcx     # 0x249d63
movl $0x3b9d, %edx           # imm = 0x3B9D
callq 0x2110
leaq 0x258a6(%rip), %rdi     # 0x249e6e
leaq 0x2103a(%rip), %rsi     # 0x245609
leaq 0x2578d(%rip), %rcx     # 0x249d63
movl $0x3bc5, %edx           # imm = 0x3BC5
callq 0x2110
leaq 0x2584a(%rip), %rdi     # 0x249e31
leaq 0x2101b(%rip), %rsi     # 0x245609
leaq 0x2576e(%rip), %rcx     # 0x249d63
movl $0x3bc3, %edx           # imm = 0x3BC3
callq 0x2110
leaq 0x2583c(%rip), %rdi     # 0x249e42
leaq 0x20ffc(%rip), %rsi     # 0x245609
leaq 0x2574f(%rip), %rcx     # 0x249d63
movl $0x3bc4, %edx           # imm = 0x3BC4
callq 0x2110
leaq 0x25849(%rip), %rdi     # 0x249e6e
leaq 0x20fdd(%rip), %rsi     # 0x245609
leaq 0x25730(%rip), %rcx     # 0x249d63
movl $0x3b9e, %edx           # imm = 0x3B9E
callq 0x2110
leaq 0xf646(%rip), %rdi      # 0x233c8a
leaq 0x20fbe(%rip), %rsi     # 0x245609
leaq 0x25711(%rip), %rcx     # 0x249d63
movl $0x3bd2, %edx           # imm = 0x3BD2
callq 0x2110
leaq 0xf627(%rip), %rdi      # 0x233c8a
leaq 0x20f9f(%rip), %rsi     # 0x245609
leaq 0x256f2(%rip), %rcx     # 0x249d63
movl $0x3ba8, %edx           # imm = 0x3BA8
callq 0x2110
leaq 0xf608(%rip), %rdi      # 0x233c8a
leaq 0x20f80(%rip), %rsi     # 0x245609
leaq 0x256d3(%rip), %rcx     # 0x249d63
movl $0x3bd4, %edx           # imm = 0x3BD4
callq 0x2110
leaq 0xf5e9(%rip), %rdi      # 0x233c8a
leaq 0x20f61(%rip), %rsi     # 0x245609
leaq 0x256b4(%rip), %rcx     # 0x249d63
movl $0x3bab, %edx           # imm = 0x3BAB
callq 0x2110
leaq 0xf5ca(%rip), %rdi      # 0x233c8a
leaq 0x20f42(%rip), %rsi     # 0x245609
leaq 0x25695(%rip), %rcx     # 0x249d63
movl $0x3bad, %edx           # imm = 0x3BAD
callq 0x2110
leaq 0xf5ab(%rip), %rdi      # 0x233c8a
leaq 0x20f23(%rip), %rsi     # 0x245609
leaq 0x25676(%rip), %rcx     # 0x249d63
movl $0x3bcd, %edx           # imm = 0x3BCD
callq 0x2110
leaq 0xf58c(%rip), %rdi      # 0x233c8a
leaq 0x20f04(%rip), %rsi     # 0x245609
leaq 0x25657(%rip), %rcx     # 0x249d63
movl $0x3bcf, %edx           # imm = 0x3BCF
callq 0x2110
leaq 0xf56d(%rip), %rdi      # 0x233c8a
leaq 0x20ee5(%rip), %rsi     # 0x245609
leaq 0x25638(%rip), %rcx     # 0x249d63
movl $0x3ba6, %edx           # imm = 0x3BA6
callq 0x2110
leaq 0x256ae(%rip), %rdi     # 0x249dea
leaq 0x20ec6(%rip), %rsi     # 0x245609
leaq 0x25619(%rip), %rcx     # 0x249d63
movl $0x3b35, %edx           # imm = 0x3B35
callq 0x2110
leaq 0x2568f(%rip), %rdi     # 0x249dea
leaq 0x20ea7(%rip), %rsi     # 0x245609
leaq 0x255fa(%rip), %rcx     # 0x249d63
movl $0x3b70, %edx           # imm = 0x3B70
callq 0x2110
leaq 0x2575a(%rip), %rdi     # 0x249ed4
leaq 0x20e88(%rip), %rsi     # 0x245609
leaq 0x255db(%rip), %rcx     # 0x249d63
movl $0x3be0, %edx           # imm = 0x3BE0
callq 0x2110