// File: /workspace/github_c_makefile_star2_O0/c-zhou[P]yahs/graph.c
// Function: make_asm_dict_from_graph
asm_dict_t *make_asm_dict_from_graph(graph_t *graph, asm_dict_t *dict)
{
    uint32_t i, j, k, r, s, g, v, p, qs, nv, na, ns, nseg, ori;
    int step;
    uint64_t len, gap;
    graph_arc_t *av;
    kdq_t(uint32_t) *q;
    asm_dict_t *d;
    uint8_t *visited;
    sdict_t *sd;
    sd_aseq_t aseq;
    sd_seg_t cseg;
    char s_name[32];
    kvec_t(uint32_t) gs, gsize, gcomp, gtype, glink, gevid;

    sprintf(s_name, "scaffold_");
    kv_init(gs);
    kv_init(gsize);
    kv_init(gcomp);
    kv_init(gtype);
    kv_init(glink);
    kv_init(gevid);
    sd = dict->sdict;
    d = asm_init(sd);
    nv = graph_n_vtx(graph);
    nv <<= 1;
    q = kdq_init(uint32_t);
    visited = calloc(nv, sizeof(uint8_t));
    s = 0;
    for (r = 0; r < 2; ++r) {
        // second visit for circles
        for (i = 0; i < nv; ++i) {
            if (visited[i]) 
                continue;

            na = graph_arc_n(graph, i);
            if (!na || r) {
                v = i^1; // v is either a path source or a singleton
                kdq_clean(q);
                while (1) {
                    if (visited[v]) 
                        break; //circle
                    kdq_push(uint32_t, q, v);
                    visited[v] = visited[v^1] = 1;
                    na = graph_arc_n(graph, v);
                    av = graph_arc_a(graph, v);
                    assert(na < 2);
                    if (!na) 
                        break;
                    v = av->w;
                }

                // write files
                qs = kdq_size(q);
                if (qs) {
                    len = gap = 0;
                    ns = 0;
                    for (j = 0; j < qs; ++j) {
                        v = kdq_at(q, j);
                        aseq = dict->s[v>>1];
                        nseg = aseq.n;
                        ori = v&1;
                        if (ori) {
                            p = nseg - 1;
                            g = aseq.gn - 1;
                            step = -1;
                        } else {
                            p = 0;
                            g = 0;
                            step = 1;
                        }
                        for (k = 0; k < nseg; ++k) {
                            // add gap info
                            while (g != (uint32_t) -1 && g < aseq.gn && 
                                    (ori? aseq.gs[g] > p : aseq.gs[g] <= p)) {
                                kv_push(uint32_t, gs, ns);
                                kv_push(uint32_t, gsize, aseq.gsize[g]);
                                kv_push(uint32_t, gcomp, aseq.gcomp[g]);
                                kv_push(uint32_t, gtype, aseq.gtype[g]);
                                kv_push(uint32_t, glink, aseq.glink[g]);
                                kv_push(uint32_t, gevid, aseq.gevid[g]);
                                gap += aseq.gsize[g];
                                g += step;
                            }
                            // add seg
                            cseg = dict->seg[aseq.s + p];
                            seg_put(d, d->n, ns++, len, len + gap, cseg.c^ori, cseg.x, cseg.y, cseg.t,
                                    ori? agp_orientation_rev(cseg.r) : cseg.r);
                            len += cseg.y;
                            p += step;
                        }

                        while (g != (uint32_t) -1 && g < aseq.gn) {
                            kv_push(uint32_t, gs, ns);
                            kv_push(uint32_t, gsize, aseq.gsize[g]);
                            kv_push(uint32_t, gcomp, aseq.gcomp[g]);
                            kv_push(uint32_t, gtype, aseq.gtype[g]);
                            kv_push(uint32_t, glink, aseq.glink[g]);
                            kv_push(uint32_t, gevid, aseq.gevid[g]);
                            gap += aseq.gsize[g];
                            g += step;
                        }

                        if (j < qs - 1) {
                            kv_push(uint32_t, gs, ns);
                            kv_push(uint32_t, gsize, DEFAULT_AGP_GAP_SIZE);
                            kv_push(uint32_t, gcomp, DEFAULT_AGP_GAP_COMPONENT_TYPE);
                            kv_push(uint32_t, gtype, DEFAULT_AGP_GAP_TYPE);
                            kv_push(uint32_t, glink, AGP_LG_YES);
                            kv_push(uint32_t, gevid, DEFAULT_AGP_LINKAGE_EVIDENCE);
                            gap += DEFAULT_AGP_GAP_SIZE;
                        }
                    }
                    sprintf(&s_name[9], "%u", ++s);
                    asm_put(d, s_name, len, gap, ns, d->u - ns, gs.n, gs.a, gsize.a, gcomp.a, gtype.a, glink.a, gevid.a);
                    gs.n = gsize.n = gcomp.n = gtype.n = glink.n = gevid.n = 0;
                }
            }
        }
    }

    free(visited);
    kdq_destroy(uint32_t, q);
    kv_destroy(gs);
    kv_destroy(gsize);
    kv_destroy(gcomp);
    kv_destroy(gtype);
    kv_destroy(glink);
    kv_destroy(gevid);

    asm_index(d);

    return d;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x2d0, %rsp            # imm = 0x2D0
movq %rdi, -0x28(%rbp)
movq %rsi, -0x30(%rbp)
leaq -0x150(%rbp), %rdi
leaq 0x26cf2(%rip), %rsi     # 0x3124a
movb $0x0, %al
callq 0x24b0
movq $0x0, -0x160(%rbp)
movq $0x0, -0x168(%rbp)
movq $0x0, -0x158(%rbp)
movq $0x0, -0x178(%rbp)
movq $0x0, -0x180(%rbp)
movq $0x0, -0x170(%rbp)
movq $0x0, -0x190(%rbp)
movq $0x0, -0x198(%rbp)
movq $0x0, -0x188(%rbp)
movq $0x0, -0x1a8(%rbp)
movq $0x0, -0x1b0(%rbp)
movq $0x0, -0x1a0(%rbp)
movq $0x0, -0x1c0(%rbp)
movq $0x0, -0x1c8(%rbp)
movq $0x0, -0x1b8(%rbp)
movq $0x0, -0x1d8(%rbp)
movq $0x0, -0x1e0(%rbp)
movq $0x0, -0x1d0(%rbp)
movq -0x30(%rbp), %rax
movq 0x38(%rax), %rax
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rdi
callq 0x16580
movq %rax, -0x98(%rbp)
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movl (%rax), %eax
movl %eax, -0x58(%rbp)
movl -0x58(%rbp), %eax
shll %eax
movl %eax, -0x58(%rbp)
callq 0xb7c0
movq %rax, -0x90(%rbp)
movl -0x58(%rbp), %eax
movl %eax, %edi
movl $0x1, %esi
callq 0x2290
movq %rax, -0xa0(%rbp)
movl $0x0, -0x44(%rbp)
movl $0x0, -0x40(%rbp)
cmpl $0x2, -0x40(%rbp)
jae 0xb696
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
cmpl -0x58(%rbp), %eax
jae 0xb686
movq -0xa0(%rbp), %rax
movl -0x34(%rbp), %ecx
cmpb $0x0, (%rax,%rcx)
je 0xa6be
jmp 0xb678
movq -0x28(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x34(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x5c(%rbp)
cmpl $0x0, -0x5c(%rbp)
je 0xa6e0
cmpl $0x0, -0x40(%rbp)
je 0xb676
movl -0x34(%rbp), %eax
xorl $0x1, %eax
movl %eax, -0x4c(%rbp)
movq -0x90(%rbp), %rax
movabsq $-0x400000000000000, %rcx # imm = 0xFC00000000000000
andq (%rax), %rcx
orq $0x0, %rcx
movq %rcx, (%rax)
movq -0x90(%rbp), %rax
movq $0x0, 0x8(%rax)
movq -0xa0(%rbp), %rax
movl -0x4c(%rbp), %ecx
cmpb $0x0, (%rax,%rcx)
je 0xa728
jmp 0xa7d4
movq -0x90(%rbp), %rdi
movl -0x4c(%rbp), %esi
callq 0x9340
movq -0xa0(%rbp), %rax
movl -0x4c(%rbp), %ecx
xorl $0x1, %ecx
movl %ecx, %ecx
movb $0x1, (%rax,%rcx)
movq -0xa0(%rbp), %rax
movl -0x4c(%rbp), %ecx
movb $0x1, (%rax,%rcx)
movq -0x28(%rbp), %rax
movq 0x28(%rax), %rax
movl -0x4c(%rbp), %ecx
movq (%rax,%rcx,8), %rax
movl %eax, -0x5c(%rbp)
movq -0x28(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x28(%rbp), %rcx
movq 0x28(%rcx), %rcx
movl -0x4c(%rbp), %edx
movq (%rcx,%rdx,8), %rcx
shrq $0x20, %rcx
shlq $0x5, %rcx
addq %rcx, %rax
movq %rax, -0x88(%rbp)
cmpl $0x2, -0x5c(%rbp)
jae 0xa79b
jmp 0xa7ba
leaq 0x26c29(%rip), %rdi     # 0x313cb
leaq 0x26c29(%rip), %rsi     # 0x313d2
movl $0x301, %edx            # imm = 0x301
leaq 0x26c25(%rip), %rcx     # 0x313da
callq 0x21c0
cmpl $0x0, -0x5c(%rbp)
jne 0xa7c2
jmp 0xa7d4
movq -0x88(%rbp), %rax
movl 0x4(%rax), %eax
movl %eax, -0x4c(%rbp)
jmp 0xa713
movq -0x90(%rbp), %rax
movq 0x8(%rax), %rax
movl %eax, -0x54(%rbp)
cmpl $0x0, -0x54(%rbp)
je 0xb674
movq $0x0, -0x80(%rbp)
movq $0x0, -0x78(%rbp)
movl $0x0, -0x60(%rbp)
movl $0x0, -0x38(%rbp)
movl -0x38(%rbp), %eax
cmpl -0x54(%rbp), %eax
jae 0xb58c
movq -0x90(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x90(%rbp), %rdx
movabsq $0x3ffffffffffffff, %rcx # imm = 0x3FFFFFFFFFFFFFF
andq (%rdx), %rcx
movl -0x38(%rbp), %edx
addq %rdx, %rcx
movq -0x90(%rbp), %rdx
andq 0x10(%rdx), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, -0x4c(%rbp)
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rsi
movl -0x4c(%rbp), %eax
shrl %eax
movl %eax, %eax
imulq $0x58, %rax, %rax
addq %rax, %rsi
leaq -0x100(%rbp), %rdi
movl $0x58, %edx
callq 0x22e0
movl -0xe8(%rbp), %eax
movl %eax, -0x64(%rbp)
movl -0x4c(%rbp), %eax
andl $0x1, %eax
movl %eax, -0x68(%rbp)
cmpl $0x0, -0x68(%rbp)
je 0xa8a9
movl -0x64(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x50(%rbp)
movl -0xe0(%rbp), %eax
subl $0x1, %eax
movl %eax, -0x48(%rbp)
movl $0xffffffff, -0x6c(%rbp) # imm = 0xFFFFFFFF
jmp 0xa8be
movl $0x0, -0x50(%rbp)
movl $0x0, -0x48(%rbp)
movl $0x1, -0x6c(%rbp)
movl $0x0, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
cmpl -0x64(%rbp), %eax
jae 0xae36
jmp 0xa8d3
xorl %eax, %eax
cmpl $-0x1, -0x48(%rbp)
movb %al, -0x1e1(%rbp)
je 0xa94a
movl -0x48(%rbp), %ecx
xorl %eax, %eax
cmpl -0xe0(%rbp), %ecx
movb %al, -0x1e1(%rbp)
jae 0xa94a
cmpl $0x0, -0x68(%rbp)
je 0xa91a
movq -0xd8(%rbp), %rax
movl -0x48(%rbp), %ecx
movl (%rax,%rcx,4), %eax
cmpl -0x50(%rbp), %eax
seta %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x1e8(%rbp)
jmp 0xa938
movq -0xd8(%rbp), %rax
movl -0x48(%rbp), %ecx
movl (%rax,%rcx,4), %eax
cmpl -0x50(%rbp), %eax
setbe %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x1e8(%rbp)
movl -0x1e8(%rbp), %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x1e1(%rbp)
movb -0x1e1(%rbp), %al
testb $0x1, %al
jne 0xa959
jmp 0xacf0
jmp 0xa95b
movq -0x168(%rbp), %rax
cmpq -0x160(%rbp), %rax
jne 0xa9c2
cmpq $0x0, -0x160(%rbp)
je 0xa988
movq -0x160(%rbp), %rax
shlq %rax
movq %rax, -0x1f0(%rbp)
jmp 0xa996
movl $0x2, %eax
movq %rax, -0x1f0(%rbp)
jmp 0xa996
movq -0x1f0(%rbp), %rax
movq %rax, -0x160(%rbp)
movq -0x158(%rbp), %rdi
movq -0x160(%rbp), %rsi
shlq $0x2, %rsi
callq 0x23a0
movq %rax, -0x158(%rbp)
movl -0x60(%rbp), %edx
movq -0x158(%rbp), %rax
movq -0x168(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x168(%rbp)
movl %edx, (%rax,%rcx,4)
jmp 0xa9e6
movq -0x180(%rbp), %rax
cmpq -0x178(%rbp), %rax
jne 0xaa4d
cmpq $0x0, -0x178(%rbp)
je 0xaa13
movq -0x178(%rbp), %rax
shlq %rax
movq %rax, -0x1f8(%rbp)
jmp 0xaa21
movl $0x2, %eax
movq %rax, -0x1f8(%rbp)
jmp 0xaa21
movq -0x1f8(%rbp), %rax
movq %rax, -0x178(%rbp)
movq -0x170(%rbp), %rdi
movq -0x178(%rbp), %rsi
shlq $0x2, %rsi
callq 0x23a0
movq %rax, -0x170(%rbp)
movq -0xd0(%rbp), %rax
movl -0x48(%rbp), %ecx
movl (%rax,%rcx,4), %edx
movq -0x170(%rbp), %rax
movq -0x180(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x180(%rbp)
movl %edx, (%rax,%rcx,4)
jmp 0xaa7b
movq -0x198(%rbp), %rax
cmpq -0x190(%rbp), %rax
jne 0xaae2
cmpq $0x0, -0x190(%rbp)
je 0xaaa8
movq -0x190(%rbp), %rax
shlq %rax
movq %rax, -0x200(%rbp)
jmp 0xaab6
movl $0x2, %eax
movq %rax, -0x200(%rbp)
jmp 0xaab6
movq -0x200(%rbp), %rax
movq %rax, -0x190(%rbp)
movq -0x188(%rbp), %rdi
movq -0x190(%rbp), %rsi
shlq $0x2, %rsi
callq 0x23a0
movq %rax, -0x188(%rbp)
movq -0xc8(%rbp), %rax
movl -0x48(%rbp), %ecx
movl (%rax,%rcx,4), %edx
movq -0x188(%rbp), %rax
movq -0x198(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x198(%rbp)
movl %edx, (%rax,%rcx,4)
jmp 0xab10
movq -0x1b0(%rbp), %rax
cmpq -0x1a8(%rbp), %rax
jne 0xab77
cmpq $0x0, -0x1a8(%rbp)
je 0xab3d
movq -0x1a8(%rbp), %rax
shlq %rax
movq %rax, -0x208(%rbp)
jmp 0xab4b
movl $0x2, %eax
movq %rax, -0x208(%rbp)
jmp 0xab4b
movq -0x208(%rbp), %rax
movq %rax, -0x1a8(%rbp)
movq -0x1a0(%rbp), %rdi
movq -0x1a8(%rbp), %rsi
shlq $0x2, %rsi
callq 0x23a0
movq %rax, -0x1a0(%rbp)
movq -0xc0(%rbp), %rax
movl -0x48(%rbp), %ecx
movl (%rax,%rcx,4), %edx
movq -0x1a0(%rbp), %rax
movq -0x1b0(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x1b0(%rbp)
movl %edx, (%rax,%rcx,4)
jmp 0xaba5
movq -0x1c8(%rbp), %rax
cmpq -0x1c0(%rbp), %rax
jne 0xac0c
cmpq $0x0, -0x1c0(%rbp)
je 0xabd2
movq -0x1c0(%rbp), %rax
shlq %rax
movq %rax, -0x210(%rbp)
jmp 0xabe0
movl $0x2, %eax
movq %rax, -0x210(%rbp)
jmp 0xabe0
movq -0x210(%rbp), %rax
movq %rax, -0x1c0(%rbp)
movq -0x1b8(%rbp), %rdi
movq -0x1c0(%rbp), %rsi
shlq $0x2, %rsi
callq 0x23a0
movq %rax, -0x1b8(%rbp)
movq -0xb8(%rbp), %rax
movl -0x48(%rbp), %ecx
movl (%rax,%rcx,4), %edx
movq -0x1b8(%rbp), %rax
movq -0x1c8(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x1c8(%rbp)
movl %edx, (%rax,%rcx,4)
jmp 0xac3a
movq -0x1e0(%rbp), %rax
cmpq -0x1d8(%rbp), %rax
jne 0xaca1
cmpq $0x0, -0x1d8(%rbp)
je 0xac67
movq -0x1d8(%rbp), %rax
shlq %rax
movq %rax, -0x218(%rbp)
jmp 0xac75
movl $0x2, %eax
movq %rax, -0x218(%rbp)
jmp 0xac75
movq -0x218(%rbp), %rax
movq %rax, -0x1d8(%rbp)
movq -0x1d0(%rbp), %rdi
movq -0x1d8(%rbp), %rsi
shlq $0x2, %rsi
callq 0x23a0
movq %rax, -0x1d0(%rbp)
movq -0xb0(%rbp), %rax
movl -0x48(%rbp), %ecx
movl (%rax,%rcx,4), %edx
movq -0x1d0(%rbp), %rax
movq -0x1e0(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x1e0(%rbp)
movl %edx, (%rax,%rcx,4)
movq -0xd0(%rbp), %rax
movl -0x48(%rbp), %ecx
movl (%rax,%rcx,4), %eax
addq -0x80(%rbp), %rax
movq %rax, -0x80(%rbp)
movl -0x6c(%rbp), %eax
addl -0x48(%rbp), %eax
movl %eax, -0x48(%rbp)
jmp 0xa8d3
movq -0x30(%rbp), %rax
movq 0x20(%rax), %rsi
movl -0xe4(%rbp), %eax
addl -0x50(%rbp), %eax
movl %eax, %eax
imulq $0x30, %rax, %rax
addq %rax, %rsi
leaq -0x130(%rbp), %rdi
movl $0x30, %edx
callq 0x22e0
movq -0x98(%rbp), %rax
movq %rax, -0x248(%rbp)
movq -0x98(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x240(%rbp)
movl -0x60(%rbp), %eax
movl %eax, -0x23c(%rbp)
addl $0x1, %eax
movl %eax, -0x60(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x238(%rbp)
movq -0x78(%rbp), %rax
addq -0x80(%rbp), %rax
movq %rax, -0x230(%rbp)
movl -0x118(%rbp), %eax
xorl -0x68(%rbp), %eax
movl %eax, -0x228(%rbp)
movl -0x114(%rbp), %eax
movl %eax, -0x224(%rbp)
movl -0x110(%rbp), %eax
movl %eax, -0x220(%rbp)
movl -0x10c(%rbp), %eax
movl %eax, -0x21c(%rbp)
cmpl $0x0, -0x68(%rbp)
je 0xadad
movl -0x108(%rbp), %edi
callq 0xb720
movl %eax, -0x24c(%rbp)
jmp 0xadb9
movl -0x108(%rbp), %eax
movl %eax, -0x24c(%rbp)
movl -0x21c(%rbp), %r10d
movl -0x220(%rbp), %r11d
movl -0x224(%rbp), %ebx
movl -0x228(%rbp), %r9d
movq -0x230(%rbp), %r8
movq -0x238(%rbp), %rcx
movl -0x23c(%rbp), %edx
movl -0x240(%rbp), %esi
movq -0x248(%rbp), %rdi
movl -0x24c(%rbp), %eax
movl %ebx, (%rsp)
movl %r11d, 0x8(%rsp)
movl %r10d, 0x10(%rsp)
movl %eax, 0x18(%rsp)
callq 0x17c00
movl -0x110(%rbp), %eax
addq -0x78(%rbp), %rax
movq %rax, -0x78(%rbp)
movl -0x6c(%rbp), %eax
addl -0x50(%rbp), %eax
movl %eax, -0x50(%rbp)
movl -0x3c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
jmp 0xa8c5
jmp 0xae38
xorl %eax, %eax
cmpl $-0x1, -0x48(%rbp)
movb %al, -0x24d(%rbp)
je 0xae58
movl -0x48(%rbp), %eax
cmpl -0xe0(%rbp), %eax
setb %al
movb %al, -0x24d(%rbp)
movb -0x24d(%rbp), %al
testb $0x1, %al
jne 0xae67
jmp 0xb1fe
jmp 0xae69
movq -0x168(%rbp), %rax
cmpq -0x160(%rbp), %rax
jne 0xaed0
cmpq $0x0, -0x160(%rbp)
je 0xae96
movq -0x160(%rbp), %rax
shlq %rax
movq %rax, -0x258(%rbp)
jmp 0xaea4
movl $0x2, %eax
movq %rax, -0x258(%rbp)
jmp 0xaea4
movq -0x258(%rbp), %rax
movq %rax, -0x160(%rbp)
movq -0x158(%rbp), %rdi
movq -0x160(%rbp), %rsi
shlq $0x2, %rsi
callq 0x23a0
movq %rax, -0x158(%rbp)
movl -0x60(%rbp), %edx
movq -0x158(%rbp), %rax
movq -0x168(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x168(%rbp)
movl %edx, (%rax,%rcx,4)
jmp 0xaef4
movq -0x180(%rbp), %rax
cmpq -0x178(%rbp), %rax
jne 0xaf5b
cmpq $0x0, -0x178(%rbp)
je 0xaf21
movq -0x178(%rbp), %rax
shlq %rax
movq %rax, -0x260(%rbp)
jmp 0xaf2f
movl $0x2, %eax
movq %rax, -0x260(%rbp)
jmp 0xaf2f
movq -0x260(%rbp), %rax
movq %rax, -0x178(%rbp)
movq -0x170(%rbp), %rdi
movq -0x178(%rbp), %rsi
shlq $0x2, %rsi
callq 0x23a0
movq %rax, -0x170(%rbp)
movq -0xd0(%rbp), %rax
movl -0x48(%rbp), %ecx
movl (%rax,%rcx,4), %edx
movq -0x170(%rbp), %rax
movq -0x180(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x180(%rbp)
movl %edx, (%rax,%rcx,4)
jmp 0xaf89
movq -0x198(%rbp), %rax
cmpq -0x190(%rbp), %rax
jne 0xaff0
cmpq $0x0, -0x190(%rbp)
je 0xafb6
movq -0x190(%rbp), %rax
shlq %rax
movq %rax, -0x268(%rbp)
jmp 0xafc4
movl $0x2, %eax
movq %rax, -0x268(%rbp)
jmp 0xafc4
movq -0x268(%rbp), %rax
movq %rax, -0x190(%rbp)
movq -0x188(%rbp), %rdi
movq -0x190(%rbp), %rsi
shlq $0x2, %rsi
callq 0x23a0
movq %rax, -0x188(%rbp)
movq -0xc8(%rbp), %rax
movl -0x48(%rbp), %ecx
movl (%rax,%rcx,4), %edx
movq -0x188(%rbp), %rax
movq -0x198(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x198(%rbp)
movl %edx, (%rax,%rcx,4)
jmp 0xb01e
movq -0x1b0(%rbp), %rax
cmpq -0x1a8(%rbp), %rax
jne 0xb085
cmpq $0x0, -0x1a8(%rbp)
je 0xb04b
movq -0x1a8(%rbp), %rax
shlq %rax
movq %rax, -0x270(%rbp)
jmp 0xb059
movl $0x2, %eax
movq %rax, -0x270(%rbp)
jmp 0xb059
movq -0x270(%rbp), %rax
movq %rax, -0x1a8(%rbp)
movq -0x1a0(%rbp), %rdi
movq -0x1a8(%rbp), %rsi
shlq $0x2, %rsi
callq 0x23a0
movq %rax, -0x1a0(%rbp)
movq -0xc0(%rbp), %rax
movl -0x48(%rbp), %ecx
movl (%rax,%rcx,4), %edx
movq -0x1a0(%rbp), %rax
movq -0x1b0(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x1b0(%rbp)
movl %edx, (%rax,%rcx,4)
jmp 0xb0b3
movq -0x1c8(%rbp), %rax
cmpq -0x1c0(%rbp), %rax
jne 0xb11a
cmpq $0x0, -0x1c0(%rbp)
je 0xb0e0
movq -0x1c0(%rbp), %rax
shlq %rax
movq %rax, -0x278(%rbp)
jmp 0xb0ee
movl $0x2, %eax
movq %rax, -0x278(%rbp)
jmp 0xb0ee
movq -0x278(%rbp), %rax
movq %rax, -0x1c0(%rbp)
movq -0x1b8(%rbp), %rdi
movq -0x1c0(%rbp), %rsi
shlq $0x2, %rsi
callq 0x23a0
movq %rax, -0x1b8(%rbp)
movq -0xb8(%rbp), %rax
movl -0x48(%rbp), %ecx
movl (%rax,%rcx,4), %edx
movq -0x1b8(%rbp), %rax
movq -0x1c8(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x1c8(%rbp)
movl %edx, (%rax,%rcx,4)
jmp 0xb148
movq -0x1e0(%rbp), %rax
cmpq -0x1d8(%rbp), %rax
jne 0xb1af
cmpq $0x0, -0x1d8(%rbp)
je 0xb175
movq -0x1d8(%rbp), %rax
shlq %rax
movq %rax, -0x280(%rbp)
jmp 0xb183
movl $0x2, %eax
movq %rax, -0x280(%rbp)
jmp 0xb183
movq -0x280(%rbp), %rax
movq %rax, -0x1d8(%rbp)
movq -0x1d0(%rbp), %rdi
movq -0x1d8(%rbp), %rsi
shlq $0x2, %rsi
callq 0x23a0
movq %rax, -0x1d0(%rbp)
movq -0xb0(%rbp), %rax
movl -0x48(%rbp), %ecx
movl (%rax,%rcx,4), %edx
movq -0x1d0(%rbp), %rax
movq -0x1e0(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x1e0(%rbp)
movl %edx, (%rax,%rcx,4)
movq -0xd0(%rbp), %rax
movl -0x48(%rbp), %ecx
movl (%rax,%rcx,4), %eax
addq -0x80(%rbp), %rax
movq %rax, -0x80(%rbp)
movl -0x6c(%rbp), %eax
addl -0x48(%rbp), %eax
movl %eax, -0x48(%rbp)
jmp 0xae38
movl -0x38(%rbp), %eax
movl -0x54(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jae 0xb57c
jmp 0xb211
movq -0x168(%rbp), %rax
cmpq -0x160(%rbp), %rax
jne 0xb278
cmpq $0x0, -0x160(%rbp)
je 0xb23e
movq -0x160(%rbp), %rax
shlq %rax
movq %rax, -0x288(%rbp)
jmp 0xb24c
movl $0x2, %eax
movq %rax, -0x288(%rbp)
jmp 0xb24c
movq -0x288(%rbp), %rax
movq %rax, -0x160(%rbp)
movq -0x158(%rbp), %rdi
movq -0x160(%rbp), %rsi
shlq $0x2, %rsi
callq 0x23a0
movq %rax, -0x158(%rbp)
movl -0x60(%rbp), %edx
movq -0x158(%rbp), %rax
movq -0x168(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x168(%rbp)
movl %edx, (%rax,%rcx,4)
jmp 0xb29c
movq -0x180(%rbp), %rax
cmpq -0x178(%rbp), %rax
jne 0xb303
cmpq $0x0, -0x178(%rbp)
je 0xb2c9
movq -0x178(%rbp), %rax
shlq %rax
movq %rax, -0x290(%rbp)
jmp 0xb2d7
movl $0x2, %eax
movq %rax, -0x290(%rbp)
jmp 0xb2d7
movq -0x290(%rbp), %rax
movq %rax, -0x178(%rbp)
movq -0x170(%rbp), %rdi
movq -0x178(%rbp), %rsi
shlq $0x2, %rsi
callq 0x23a0
movq %rax, -0x170(%rbp)
leaq 0x2dff6(%rip), %rax     # 0x39300
movl (%rax), %edx
movq -0x170(%rbp), %rax
movq -0x180(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x180(%rbp)
movl %edx, (%rax,%rcx,4)
jmp 0xb32d
movq -0x198(%rbp), %rax
cmpq -0x190(%rbp), %rax
jne 0xb394
cmpq $0x0, -0x190(%rbp)
je 0xb35a
movq -0x190(%rbp), %rax
shlq %rax
movq %rax, -0x298(%rbp)
jmp 0xb368
movl $0x2, %eax
movq %rax, -0x298(%rbp)
jmp 0xb368
movq -0x298(%rbp), %rax
movq %rax, -0x190(%rbp)
movq -0x188(%rbp), %rdi
movq -0x190(%rbp), %rsi
shlq $0x2, %rsi
callq 0x23a0
movq %rax, -0x188(%rbp)
leaq 0x2df59(%rip), %rax     # 0x392f4
movl (%rax), %edx
movq -0x188(%rbp), %rax
movq -0x198(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x198(%rbp)
movl %edx, (%rax,%rcx,4)
jmp 0xb3be
movq -0x1b0(%rbp), %rax
cmpq -0x1a8(%rbp), %rax
jne 0xb425
cmpq $0x0, -0x1a8(%rbp)
je 0xb3eb
movq -0x1a8(%rbp), %rax
shlq %rax
movq %rax, -0x2a0(%rbp)
jmp 0xb3f9
movl $0x2, %eax
movq %rax, -0x2a0(%rbp)
jmp 0xb3f9
movq -0x2a0(%rbp), %rax
movq %rax, -0x1a8(%rbp)
movq -0x1a0(%rbp), %rdi
movq -0x1a8(%rbp), %rsi
shlq $0x2, %rsi
callq 0x23a0
movq %rax, -0x1a0(%rbp)
leaq 0x2decc(%rip), %rax     # 0x392f8
movl (%rax), %edx
movq -0x1a0(%rbp), %rax
movq -0x1b0(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x1b0(%rbp)
movl %edx, (%rax,%rcx,4)
jmp 0xb44f
movq -0x1c8(%rbp), %rax
cmpq -0x1c0(%rbp), %rax
jne 0xb4b6
cmpq $0x0, -0x1c0(%rbp)
je 0xb47c
movq -0x1c0(%rbp), %rax
shlq %rax
movq %rax, -0x2a8(%rbp)
jmp 0xb48a
movl $0x2, %eax
movq %rax, -0x2a8(%rbp)
jmp 0xb48a
movq -0x2a8(%rbp), %rax
movq %rax, -0x1c0(%rbp)
movq -0x1b8(%rbp), %rdi
movq -0x1c0(%rbp), %rsi
shlq $0x2, %rsi
callq 0x23a0
movq %rax, -0x1b8(%rbp)
movq -0x1b8(%rbp), %rax
movq -0x1c8(%rbp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, -0x1c8(%rbp)
movl $0xb88c316, (%rax,%rcx,4) # imm = 0xB88C316
jmp 0xb4db
movq -0x1e0(%rbp), %rax
cmpq -0x1d8(%rbp), %rax
jne 0xb542
cmpq $0x0, -0x1d8(%rbp)
je 0xb508
movq -0x1d8(%rbp), %rax
shlq %rax
movq %rax, -0x2b0(%rbp)
jmp 0xb516
movl $0x2, %eax
movq %rax, -0x2b0(%rbp)
jmp 0xb516
movq -0x2b0(%rbp), %rax
movq %rax, -0x1d8(%rbp)
movq -0x1d0(%rbp), %rdi
movq -0x1d8(%rbp), %rsi
shlq $0x2, %rsi
callq 0x23a0
movq %rax, -0x1d0(%rbp)
leaq 0x2ddb3(%rip), %rax     # 0x392fc
movl (%rax), %edx
movq -0x1d0(%rbp), %rax
movq -0x1e0(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x1e0(%rbp)
movl %edx, (%rax,%rcx,4)
leaq 0x2dd8f(%rip), %rax     # 0x39300
movslq (%rax), %rax
addq -0x80(%rbp), %rax
movq %rax, -0x80(%rbp)
jmp 0xb57e
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0xa80a
leaq -0x150(%rbp), %rdi
addq $0x9, %rdi
movl -0x44(%rbp), %edx
addl $0x1, %edx
movl %edx, -0x44(%rbp)
leaq 0x26ac2(%rip), %rsi     # 0x32069
movb $0x0, %al
callq 0x24b0
movq -0x98(%rbp), %rdi
leaq -0x150(%rbp), %rsi
movq -0x78(%rbp), %rdx
movq -0x80(%rbp), %rcx
movl -0x60(%rbp), %r8d
movq -0x98(%rbp), %rax
movl 0x18(%rax), %r9d
subl -0x60(%rbp), %r9d
movq -0x168(%rbp), %rax
movl %eax, %r12d
movq -0x158(%rbp), %r15
movq -0x170(%rbp), %r14
movq -0x188(%rbp), %rbx
movq -0x1a0(%rbp), %r11
movq -0x1b8(%rbp), %r10
movq -0x1d0(%rbp), %rax
movl %r12d, (%rsp)
movq %r15, 0x8(%rsp)
movq %r14, 0x10(%rsp)
movq %rbx, 0x18(%rsp)
movq %r11, 0x20(%rsp)
movq %r10, 0x28(%rsp)
movq %rax, 0x30(%rsp)
callq 0x17910
movq $0x0, -0x1e0(%rbp)
movq $0x0, -0x1c8(%rbp)
movq $0x0, -0x1b0(%rbp)
movq $0x0, -0x198(%rbp)
movq $0x0, -0x180(%rbp)
movq $0x0, -0x168(%rbp)
jmp 0xb676
jmp 0xb678
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0xa69d
jmp 0xb688
movl -0x40(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x40(%rbp)
jmp 0xa68c
movq -0xa0(%rbp), %rdi
callq 0x2050
movq -0x90(%rbp), %rdi
callq 0x94b0
movq -0x158(%rbp), %rdi
callq 0x2050
movq -0x170(%rbp), %rdi
callq 0x2050
movq -0x188(%rbp), %rdi
callq 0x2050
movq -0x1a0(%rbp), %rdi
callq 0x2050
movq -0x1b8(%rbp), %rdi
callq 0x2050
movq -0x1d0(%rbp), %rdi
callq 0x2050
movq -0x98(%rbp), %rdi
callq 0x18330
movq -0x98(%rbp), %rax
addq $0x2d0, %rsp            # imm = 0x2D0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)