// File: /workspace/github_c_makefile_star2_O0/c-zhou[P]yahs/break.c
// Function: write_break_agp
void write_break_agp(asm_dict_t *d, bp_t *breaks, uint32_t b_n, FILE *fp)
{
    uint32_t i, j, s, ns;
    int64_t L, l;
    uint64_t len, gap;
    sd_seg_t seg;
    sd_aseq_t aseq, aseq1;
    sdict_t *sd;
    uint64_t *p;
    uint32_t p_n, g;
    char s_name[32];
    kvec_t(sd_seg_t) segs1;
    kvec_t(uint32_t) gs, gsize, gcomp, gtype, glink, gevid;

    sd = d->sdict;
    kv_init(segs1);
    kv_init(gs);
    kv_init(gsize);
    kv_init(gcomp);
    kv_init(gtype);
    kv_init(glink);
    kv_init(gevid);
    sprintf(s_name, "scaffold_");
    s = 0;

    for (i = 0; i < d->n; ++i) {
        if (b_n == 0 || i < breaks->s) {
            // no breaks
            // write the orignal seg block but with a new name
            sprintf(&s_name[9], "%u", ++s);
            write_segs_to_agp(d->seg + d->s[i].s, d->s[i].n, &d->s[i], sd, s_name, fp);
        } else {
            // contain break points
            p = breaks->p;
            p_n = breaks->n;
            aseq = d->s[i];
            len = gap = 0;
            g = ns = 0;
            segs1.n = gs.n = gsize.n = gcomp.n = gtype.n = glink.n = gevid.n = 0;
            for (j = 0; j < aseq.n; ++j) {
                seg = d->seg[aseq.s + j];
                
                // add gap information
                while (g < aseq.gn && aseq.gs[g] <= j) {
                    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;
                }

                if (p_n == 0 || seg.a + seg.y <= p[0]) {
                    // current seg contains no break points
                    // add seg information
                    sd_seg_t seg1 = {seg.s, ns++, len, len + gap, seg.c, seg.x, seg.y, seg.t, seg.r};
                    kv_push(sd_seg_t, segs1, seg1);
                    len += seg.y;
                } else {
                    l = (int64_t) p[0] - seg.a;
                    assert(-l < UINT32_MAX && l < UINT32_MAX);
                    if (l > 0) {
                        // split seg
                        sd_seg_t seg1 = {seg.s, ns++, len, len + gap, seg.c,
                            seg.c & 1? (uint32_t) (-l + seg.x + seg.y) : seg.x, (uint32_t) l, seg.t, seg.r};
                        kv_push(sd_seg_t, segs1, seg1);
                        len += l;
                    } else {
                        // remove gaps before seg
                        while (gs.n > 0 && gs.a[gs.n - 1] == ns) {
                            --gs.n;
                            // no need to change size of gap info kvecs as they will be reset after this
                            gap -= gsize.a[gs.n];
                        }
                    }

                    // add aseq info and write seg block
                    aseq1.len = len;
                    aseq1.gap = gap;
                    aseq1.n = ns;
                    aseq1.s = 0;
                    aseq1.gn = gs.n;
                    aseq1.gs = gs.a;
                    aseq1.gsize = gsize.a;
                    aseq1.gcomp = gcomp.a;
                    aseq1.gtype = gtype.a;
                    aseq1.glink = glink.a;
                    aseq1.gevid = gevid.a;
                    sprintf(&s_name[9], "%u", ++s);
                    write_segs_to_agp(segs1.a, ns, &aseq1, sd, s_name, fp);
                    // reset params
                    len = gap = 0;
                    ns = 0;
                    segs1.n = gs.n = gsize.n = gcomp.n = gtype.n = glink.n = gevid.n = 0;
                    if (--p_n) ++p;

                    // these are all single seg blocks
                    L = l;
                    while (p_n > 0 && seg.a + seg.y > p[0]) {
                        l = (int64_t) (p[0] - p[-1]);
                        assert(l < UINT32_MAX);
                        sd_seg_t seg1 = {seg.s, 0, 0, 0, seg.c, seg.c & 1? (uint32_t) (-L - l + seg.x + seg.y) : (uint32_t) (L + seg.x), 
                            (uint32_t) l, seg.t, seg.r};
                        // write a block of a single seg
                        sprintf(&s_name[9], "%u", ++s);
                        write_segs_to_agp(&seg1, 1, 0, sd, s_name, fp);
                        L += l;
                        if (--p_n) ++p;
                    }
                    
                    assert(-L < UINT32_MAX && L < UINT32_MAX);
                    if (L < seg.y) {
                        // make remnant as the first seg in the next block
                        sd_seg_t seg1 = {seg.s, ns++, 0, 0, seg.c, seg.c & 1? seg.x : (uint32_t) (L + seg.x), (uint32_t) (-L + seg.y), 
                            seg.t, seg.r};
                        kv_push(sd_seg_t, segs1, seg1);
                        len += -L + seg.y;
                    } else {
                        // remove gaps after this seg
                        while (g < aseq.gn && aseq.gs[g] <= j+1) ++g;
                    }
                }
            }
            if (ns > 0) {
                // add trailing gap information
                while (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;
                }
                // add aseq info and write seg block
                aseq1.len = len;
                aseq1.gap = gap;
                aseq1.n = ns;
                aseq1.s = 0;
                aseq1.gn = gs.n;
                aseq1.gs = gs.a;
                aseq1.gsize = gsize.a;
                aseq1.gcomp = gcomp.a;
                aseq1.gtype = gtype.a;
                aseq1.glink = glink.a;
                aseq1.gevid = gevid.a;
                sprintf(&s_name[9], "%u", ++s);
                write_segs_to_agp(segs1.a, ns, &aseq1, sd, s_name, fp);
            }
            if(--b_n) ++breaks;
        }
    }

    kv_destroy(segs1);
    kv_destroy(gs);
    kv_destroy(gsize);
    kv_destroy(gcomp);
    kv_destroy(gtype);
    kv_destroy(glink);
    kv_destroy(gevid);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x3a0, %rsp            # imm = 0x3A0
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rax
movq %rax, -0x138(%rbp)
movq $0x0, -0x180(%rbp)
movq $0x0, -0x188(%rbp)
movq $0x0, -0x178(%rbp)
movq $0x0, -0x198(%rbp)
movq $0x0, -0x1a0(%rbp)
movq $0x0, -0x190(%rbp)
movq $0x0, -0x1b0(%rbp)
movq $0x0, -0x1b8(%rbp)
movq $0x0, -0x1a8(%rbp)
movq $0x0, -0x1c8(%rbp)
movq $0x0, -0x1d0(%rbp)
movq $0x0, -0x1c0(%rbp)
movq $0x0, -0x1e0(%rbp)
movq $0x0, -0x1e8(%rbp)
movq $0x0, -0x1d8(%rbp)
movq $0x0, -0x1f8(%rbp)
movq $0x0, -0x200(%rbp)
movq $0x0, -0x1f0(%rbp)
movq $0x0, -0x210(%rbp)
movq $0x0, -0x218(%rbp)
movq $0x0, -0x208(%rbp)
leaq -0x170(%rbp), %rdi
leaq 0x2adac(%rip), %rsi     # 0x3124a
movb $0x0, %al
callq 0x24b0
movl $0x0, -0x2c(%rbp)
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl (%rcx), %eax
jae 0x7768
cmpl $0x0, -0x14(%rbp)
je 0x64d8
movl -0x24(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jae 0x6561
leaq -0x170(%rbp), %rdi
addq $0x9, %rdi
movl -0x2c(%rbp), %edx
addl $0x1, %edx
movl %edx, -0x2c(%rbp)
leaq 0x2bb76(%rip), %rsi     # 0x32069
movb $0x0, %al
callq 0x24b0
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rdi
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movl -0x24(%rbp), %ecx
imulq $0x58, %rcx, %rcx
addq %rcx, %rax
movl 0x1c(%rax), %eax
imulq $0x30, %rax, %rax
addq %rax, %rdi
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movl -0x24(%rbp), %ecx
imulq $0x58, %rcx, %rcx
addq %rcx, %rax
movl 0x18(%rax), %esi
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rdx
movl -0x24(%rbp), %eax
imulq $0x58, %rax, %rax
addq %rax, %rdx
movq -0x138(%rbp), %rcx
leaq -0x170(%rbp), %r8
movq -0x20(%rbp), %r9
callq 0x1a7a0
jmp 0x7758
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x140(%rbp)
movq -0x10(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x144(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rsi
movl -0x24(%rbp), %eax
imulq $0x58, %rax, %rax
addq %rax, %rsi
leaq -0xd8(%rbp), %rdi
movl $0x58, %edx
callq 0x22e0
movq $0x0, -0x50(%rbp)
movq $0x0, -0x48(%rbp)
movl $0x0, -0x30(%rbp)
movl $0x0, -0x148(%rbp)
movq $0x0, -0x218(%rbp)
movq $0x0, -0x200(%rbp)
movq $0x0, -0x1e8(%rbp)
movq $0x0, -0x1d0(%rbp)
movq $0x0, -0x1b8(%rbp)
movq $0x0, -0x1a0(%rbp)
movq $0x0, -0x188(%rbp)
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
cmpl -0xc0(%rbp), %eax
jae 0x729b
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rsi
movl -0xbc(%rbp), %eax
addl -0x28(%rbp), %eax
movl %eax, %eax
imulq $0x30, %rax, %rax
addq %rax, %rsi
leaq -0x80(%rbp), %rdi
movl $0x30, %edx
callq 0x22e0
movl -0x148(%rbp), %ecx
xorl %eax, %eax
cmpl -0xb8(%rbp), %ecx
movb %al, -0x2d9(%rbp)
jae 0x667d
movq -0xb0(%rbp), %rax
movl -0x148(%rbp), %ecx
movl (%rax,%rcx,4), %eax
cmpl -0x28(%rbp), %eax
setbe %al
movb %al, -0x2d9(%rbp)
movb -0x2d9(%rbp), %al
testb $0x1, %al
jne 0x668c
jmp 0x6a3b
jmp 0x668e
movq -0x1a0(%rbp), %rax
cmpq -0x198(%rbp), %rax
jne 0x66f5
cmpq $0x0, -0x198(%rbp)
je 0x66bb
movq -0x198(%rbp), %rax
shlq %rax
movq %rax, -0x2e8(%rbp)
jmp 0x66c9
movl $0x2, %eax
movq %rax, -0x2e8(%rbp)
jmp 0x66c9
movq -0x2e8(%rbp), %rax
movq %rax, -0x198(%rbp)
movq -0x190(%rbp), %rdi
movq -0x198(%rbp), %rsi
shlq $0x2, %rsi
callq 0x23a0
movq %rax, -0x190(%rbp)
movl -0x30(%rbp), %edx
movq -0x190(%rbp), %rax
movq -0x1a0(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x1a0(%rbp)
movl %edx, (%rax,%rcx,4)
jmp 0x6719
movq -0x1b8(%rbp), %rax
cmpq -0x1b0(%rbp), %rax
jne 0x6780
cmpq $0x0, -0x1b0(%rbp)
je 0x6746
movq -0x1b0(%rbp), %rax
shlq %rax
movq %rax, -0x2f0(%rbp)
jmp 0x6754
movl $0x2, %eax
movq %rax, -0x2f0(%rbp)
jmp 0x6754
movq -0x2f0(%rbp), %rax
movq %rax, -0x1b0(%rbp)
movq -0x1a8(%rbp), %rdi
movq -0x1b0(%rbp), %rsi
shlq $0x2, %rsi
callq 0x23a0
movq %rax, -0x1a8(%rbp)
movq -0xa8(%rbp), %rax
movl -0x148(%rbp), %ecx
movl (%rax,%rcx,4), %edx
movq -0x1a8(%rbp), %rax
movq -0x1b8(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x1b8(%rbp)
movl %edx, (%rax,%rcx,4)
jmp 0x67b1
movq -0x1d0(%rbp), %rax
cmpq -0x1c8(%rbp), %rax
jne 0x6818
cmpq $0x0, -0x1c8(%rbp)
je 0x67de
movq -0x1c8(%rbp), %rax
shlq %rax
movq %rax, -0x2f8(%rbp)
jmp 0x67ec
movl $0x2, %eax
movq %rax, -0x2f8(%rbp)
jmp 0x67ec
movq -0x2f8(%rbp), %rax
movq %rax, -0x1c8(%rbp)
movq -0x1c0(%rbp), %rdi
movq -0x1c8(%rbp), %rsi
shlq $0x2, %rsi
callq 0x23a0
movq %rax, -0x1c0(%rbp)
movq -0xa0(%rbp), %rax
movl -0x148(%rbp), %ecx
movl (%rax,%rcx,4), %edx
movq -0x1c0(%rbp), %rax
movq -0x1d0(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x1d0(%rbp)
movl %edx, (%rax,%rcx,4)
jmp 0x6849
movq -0x1e8(%rbp), %rax
cmpq -0x1e0(%rbp), %rax
jne 0x68b0
cmpq $0x0, -0x1e0(%rbp)
je 0x6876
movq -0x1e0(%rbp), %rax
shlq %rax
movq %rax, -0x300(%rbp)
jmp 0x6884
movl $0x2, %eax
movq %rax, -0x300(%rbp)
jmp 0x6884
movq -0x300(%rbp), %rax
movq %rax, -0x1e0(%rbp)
movq -0x1d8(%rbp), %rdi
movq -0x1e0(%rbp), %rsi
shlq $0x2, %rsi
callq 0x23a0
movq %rax, -0x1d8(%rbp)
movq -0x98(%rbp), %rax
movl -0x148(%rbp), %ecx
movl (%rax,%rcx,4), %edx
movq -0x1d8(%rbp), %rax
movq -0x1e8(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x1e8(%rbp)
movl %edx, (%rax,%rcx,4)
jmp 0x68e1
movq -0x200(%rbp), %rax
cmpq -0x1f8(%rbp), %rax
jne 0x6948
cmpq $0x0, -0x1f8(%rbp)
je 0x690e
movq -0x1f8(%rbp), %rax
shlq %rax
movq %rax, -0x308(%rbp)
jmp 0x691c
movl $0x2, %eax
movq %rax, -0x308(%rbp)
jmp 0x691c
movq -0x308(%rbp), %rax
movq %rax, -0x1f8(%rbp)
movq -0x1f0(%rbp), %rdi
movq -0x1f8(%rbp), %rsi
shlq $0x2, %rsi
callq 0x23a0
movq %rax, -0x1f0(%rbp)
movq -0x90(%rbp), %rax
movl -0x148(%rbp), %ecx
movl (%rax,%rcx,4), %edx
movq -0x1f0(%rbp), %rax
movq -0x200(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x200(%rbp)
movl %edx, (%rax,%rcx,4)
jmp 0x6979
movq -0x218(%rbp), %rax
cmpq -0x210(%rbp), %rax
jne 0x69e0
cmpq $0x0, -0x210(%rbp)
je 0x69a6
movq -0x210(%rbp), %rax
shlq %rax
movq %rax, -0x310(%rbp)
jmp 0x69b4
movl $0x2, %eax
movq %rax, -0x310(%rbp)
jmp 0x69b4
movq -0x310(%rbp), %rax
movq %rax, -0x210(%rbp)
movq -0x208(%rbp), %rdi
movq -0x210(%rbp), %rsi
shlq $0x2, %rsi
callq 0x23a0
movq %rax, -0x208(%rbp)
movq -0x88(%rbp), %rax
movl -0x148(%rbp), %ecx
movl (%rax,%rcx,4), %edx
movq -0x208(%rbp), %rax
movq -0x218(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x218(%rbp)
movl %edx, (%rax,%rcx,4)
movq -0xa8(%rbp), %rax
movl -0x148(%rbp), %ecx
movl (%rax,%rcx,4), %eax
addq -0x50(%rbp), %rax
movq %rax, -0x50(%rbp)
movl -0x148(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x148(%rbp)
jmp 0x664b
cmpl $0x0, -0x144(%rbp)
je 0x6a5e
movq -0x78(%rbp), %rax
movl -0x60(%rbp), %ecx
addq %rcx, %rax
movq -0x140(%rbp), %rcx
cmpq (%rcx), %rax
ja 0x6b67
movl -0x80(%rbp), %eax
movl %eax, -0x248(%rbp)
movl -0x30(%rbp), %eax
movl %eax, %ecx
addl $0x1, %ecx
movl %ecx, -0x30(%rbp)
movl %eax, -0x244(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x240(%rbp)
movq -0x48(%rbp), %rax
addq -0x50(%rbp), %rax
movq %rax, -0x238(%rbp)
movl -0x68(%rbp), %eax
movl %eax, -0x230(%rbp)
movl -0x64(%rbp), %eax
movl %eax, -0x22c(%rbp)
movl -0x60(%rbp), %eax
movl %eax, -0x228(%rbp)
movl -0x5c(%rbp), %eax
movl %eax, -0x224(%rbp)
movl -0x58(%rbp), %eax
movl %eax, -0x220(%rbp)
movq -0x188(%rbp), %rax
cmpq -0x180(%rbp), %rax
jne 0x6b23
cmpq $0x0, -0x180(%rbp)
je 0x6aec
movq -0x180(%rbp), %rax
shlq %rax
movq %rax, -0x318(%rbp)
jmp 0x6afa
movl $0x2, %eax
movq %rax, -0x318(%rbp)
jmp 0x6afa
movq -0x318(%rbp), %rax
movq %rax, -0x180(%rbp)
movq -0x178(%rbp), %rdi
imulq $0x30, -0x180(%rbp), %rsi
callq 0x23a0
movq %rax, -0x178(%rbp)
movq -0x178(%rbp), %rdi
movq -0x188(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x188(%rbp)
imulq $0x30, %rax, %rax
addq %rax, %rdi
leaq -0x248(%rbp), %rsi
movl $0x30, %edx
callq 0x22e0
movl -0x60(%rbp), %eax
addq -0x48(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x728b
movq -0x140(%rbp), %rax
movq (%rax), %rax
subq -0x78(%rbp), %rax
movq %rax, -0x40(%rbp)
xorl %eax, %eax
subq -0x40(%rbp), %rax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpq %rcx, %rax
jge 0x6b96
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, -0x40(%rbp)
jge 0x6b96
jmp 0x6bb5
leaq 0x2a6b7(%rip), %rdi     # 0x31254
leaq 0x2a6d2(%rip), %rsi     # 0x31276
movl $0x271, %edx            # imm = 0x271
leaq 0x2a6ce(%rip), %rcx     # 0x3127e
callq 0x21c0
cmpq $0x0, -0x40(%rbp)
jle 0x6d0e
movl -0x80(%rbp), %eax
movl %eax, -0x278(%rbp)
movl -0x30(%rbp), %eax
movl %eax, %ecx
addl $0x1, %ecx
movl %ecx, -0x30(%rbp)
movl %eax, -0x274(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x270(%rbp)
movq -0x48(%rbp), %rax
addq -0x50(%rbp), %rax
movq %rax, -0x268(%rbp)
movl -0x68(%rbp), %eax
movl %eax, -0x260(%rbp)
leaq -0x278(%rbp), %rax
addq $0x1c, %rax
movq %rax, -0x320(%rbp)
movl -0x68(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x6c34
xorl %eax, %eax
subq -0x40(%rbp), %rax
movl -0x64(%rbp), %ecx
addq %rcx, %rax
movl -0x60(%rbp), %ecx
addq %rcx, %rax
movl %eax, -0x324(%rbp)
jmp 0x6c3d
movl -0x64(%rbp), %eax
movl %eax, -0x324(%rbp)
movq -0x320(%rbp), %rax
movl -0x324(%rbp), %ecx
movl %ecx, (%rax)
movq -0x40(%rbp), %rax
movl %eax, -0x258(%rbp)
movl -0x5c(%rbp), %eax
movl %eax, -0x254(%rbp)
movl -0x58(%rbp), %eax
movl %eax, -0x250(%rbp)
movq -0x188(%rbp), %rax
cmpq -0x180(%rbp), %rax
jne 0x6ccc
cmpq $0x0, -0x180(%rbp)
je 0x6c95
movq -0x180(%rbp), %rax
shlq %rax
movq %rax, -0x330(%rbp)
jmp 0x6ca3
movl $0x2, %eax
movq %rax, -0x330(%rbp)
jmp 0x6ca3
movq -0x330(%rbp), %rax
movq %rax, -0x180(%rbp)
movq -0x178(%rbp), %rdi
imulq $0x30, -0x180(%rbp), %rsi
callq 0x23a0
movq %rax, -0x178(%rbp)
movq -0x178(%rbp), %rdi
movq -0x188(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x188(%rbp)
imulq $0x30, %rax, %rax
addq %rax, %rdi
leaq -0x278(%rbp), %rsi
movl $0x30, %edx
callq 0x22e0
movq -0x40(%rbp), %rax
addq -0x48(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x6d83
jmp 0x6d10
xorl %eax, %eax
cmpq $0x0, -0x1a0(%rbp)
movb %al, -0x331(%rbp)
jbe 0x6d43
movq -0x190(%rbp), %rax
movq -0x1a0(%rbp), %rcx
subq $0x1, %rcx
movl (%rax,%rcx,4), %eax
cmpl -0x30(%rbp), %eax
sete %al
movb %al, -0x331(%rbp)
movb -0x331(%rbp), %al
testb $0x1, %al
jne 0x6d4f
jmp 0x6d81
movq -0x1a0(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x1a0(%rbp)
movq -0x1a8(%rbp), %rax
movq -0x1a0(%rbp), %rcx
movl (%rax,%rcx,4), %eax
movl %eax, %ecx
movq -0x50(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x50(%rbp)
jmp 0x6d10
jmp 0x6d83
movq -0x48(%rbp), %rax
movq %rax, -0x128(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x120(%rbp)
movl -0x30(%rbp), %eax
movl %eax, -0x118(%rbp)
movl $0x0, -0x114(%rbp)
movq -0x1a0(%rbp), %rax
movl %eax, -0x110(%rbp)
movq -0x190(%rbp), %rax
movq %rax, -0x108(%rbp)
movq -0x1a8(%rbp), %rax
movq %rax, -0x100(%rbp)
movq -0x1c0(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0x1d8(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0x1f0(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0x208(%rbp), %rax
movq %rax, -0xe0(%rbp)
leaq -0x170(%rbp), %rdi
addq $0x9, %rdi
movl -0x2c(%rbp), %edx
addl $0x1, %edx
movl %edx, -0x2c(%rbp)
leaq 0x2b241(%rip), %rsi     # 0x32069
movb $0x0, %al
callq 0x24b0
movq -0x178(%rbp), %rdi
movl -0x30(%rbp), %esi
movq -0x138(%rbp), %rcx
leaq -0x170(%rbp), %r8
movq -0x20(%rbp), %r9
leaq -0x130(%rbp), %rdx
callq 0x1a7a0
movq $0x0, -0x50(%rbp)
movq $0x0, -0x48(%rbp)
movl $0x0, -0x30(%rbp)
movq $0x0, -0x218(%rbp)
movq $0x0, -0x200(%rbp)
movq $0x0, -0x1e8(%rbp)
movq $0x0, -0x1d0(%rbp)
movq $0x0, -0x1b8(%rbp)
movq $0x0, -0x1a0(%rbp)
movq $0x0, -0x188(%rbp)
movl -0x144(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x144(%rbp)
cmpl $0x0, %eax
je 0x6ee1
movq -0x140(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x140(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x38(%rbp)
xorl %eax, %eax
cmpl $0x0, -0x144(%rbp)
movb %al, -0x332(%rbp)
jbe 0x6f17
movq -0x78(%rbp), %rax
movl -0x60(%rbp), %ecx
addq %rcx, %rax
movq -0x140(%rbp), %rcx
cmpq (%rcx), %rax
seta %al
movb %al, -0x332(%rbp)
movb -0x332(%rbp), %al
testb $0x1, %al
jne 0x6f26
jmp 0x7093
movq -0x140(%rbp), %rax
movq (%rax), %rax
movq -0x140(%rbp), %rcx
subq -0x8(%rcx), %rax
movq %rax, -0x40(%rbp)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, -0x40(%rbp)
jge 0x6f4c
jmp 0x6f6b
leaq 0x2a314(%rip), %rdi     # 0x31267
leaq 0x2a31c(%rip), %rsi     # 0x31276
movl $0x299, %edx            # imm = 0x299
leaq 0x2a318(%rip), %rcx     # 0x3127e
callq 0x21c0
movl -0x80(%rbp), %eax
movl %eax, -0x2a8(%rbp)
movl $0x0, -0x2a4(%rbp)
movq $0x0, -0x2a0(%rbp)
movq $0x0, -0x298(%rbp)
movl -0x68(%rbp), %eax
movl %eax, -0x290(%rbp)
leaq -0x2a8(%rbp), %rax
addq $0x1c, %rax
movq %rax, -0x340(%rbp)
movl -0x68(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x6fd8
xorl %eax, %eax
subq -0x38(%rbp), %rax
subq -0x40(%rbp), %rax
movl -0x64(%rbp), %ecx
addq %rcx, %rax
movl -0x60(%rbp), %ecx
addq %rcx, %rax
movl %eax, -0x344(%rbp)
jmp 0x6fe8
movq -0x38(%rbp), %rax
movl -0x64(%rbp), %ecx
addq %rcx, %rax
movl %eax, -0x344(%rbp)
movq -0x340(%rbp), %rax
movl -0x344(%rbp), %ecx
movl %ecx, (%rax)
movq -0x40(%rbp), %rax
movl %eax, -0x288(%rbp)
movl -0x5c(%rbp), %eax
movl %eax, -0x284(%rbp)
movl -0x58(%rbp), %eax
movl %eax, -0x280(%rbp)
leaq -0x170(%rbp), %rdi
addq $0x9, %rdi
movl -0x2c(%rbp), %edx
addl $0x1, %edx
movl %edx, -0x2c(%rbp)
leaq 0x2b03b(%rip), %rsi     # 0x32069
movb $0x0, %al
callq 0x24b0
movq -0x138(%rbp), %rcx
leaq -0x170(%rbp), %r8
movq -0x20(%rbp), %r9
leaq -0x2a8(%rbp), %rdi
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %edx
callq 0x1a7a0
movq -0x40(%rbp), %rax
addq -0x38(%rbp), %rax
movq %rax, -0x38(%rbp)
movl -0x144(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x144(%rbp)
cmpl $0x0, %eax
je 0x708e
movq -0x140(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x140(%rbp)
jmp 0x6ee9
xorl %eax, %eax
subq -0x38(%rbp), %rax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpq %rcx, %rax
jge 0x70b0
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, -0x38(%rbp)
jge 0x70b0
jmp 0x70cf
leaq 0x2a204(%rip), %rdi     # 0x312bb
leaq 0x2a1b8(%rip), %rsi     # 0x31276
movl $0x2a3, %edx            # imm = 0x2A3
leaq 0x2a1b4(%rip), %rcx     # 0x3127e
callq 0x21c0
movq -0x38(%rbp), %rax
movl -0x60(%rbp), %ecx
cmpq %rcx, %rax
jge 0x7231
movl -0x80(%rbp), %eax
movl %eax, -0x2d8(%rbp)
movl -0x30(%rbp), %eax
movl %eax, %ecx
addl $0x1, %ecx
movl %ecx, -0x30(%rbp)
movl %eax, -0x2d4(%rbp)
movq $0x0, -0x2d0(%rbp)
movq $0x0, -0x2c8(%rbp)
movl -0x68(%rbp), %eax
movl %eax, -0x2c0(%rbp)
leaq -0x2d8(%rbp), %rax
addq $0x1c, %rax
movq %rax, -0x350(%rbp)
movl -0x68(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x7140
movl -0x64(%rbp), %eax
movl %eax, -0x354(%rbp)
jmp 0x7150
movq -0x38(%rbp), %rax
movl -0x64(%rbp), %ecx
addq %rcx, %rax
movl %eax, -0x354(%rbp)
movq -0x350(%rbp), %rax
movl -0x354(%rbp), %ecx
movl %ecx, (%rax)
xorl %eax, %eax
subq -0x38(%rbp), %rax
movl -0x60(%rbp), %ecx
addq %rcx, %rax
movl %eax, -0x2b8(%rbp)
movl -0x5c(%rbp), %eax
movl %eax, -0x2b4(%rbp)
movl -0x58(%rbp), %eax
movl %eax, -0x2b0(%rbp)
movq -0x188(%rbp), %rax
cmpq -0x180(%rbp), %rax
jne 0x71e7
cmpq $0x0, -0x180(%rbp)
je 0x71b0
movq -0x180(%rbp), %rax
shlq %rax
movq %rax, -0x360(%rbp)
jmp 0x71be
movl $0x2, %eax
movq %rax, -0x360(%rbp)
jmp 0x71be
movq -0x360(%rbp), %rax
movq %rax, -0x180(%rbp)
movq -0x178(%rbp), %rdi
imulq $0x30, -0x180(%rbp), %rsi
callq 0x23a0
movq %rax, -0x178(%rbp)
movq -0x178(%rbp), %rdi
movq -0x188(%rbp), %rax
movq %rax, %rcx
addq $0x1, %rcx
movq %rcx, -0x188(%rbp)
imulq $0x30, %rax, %rax
addq %rax, %rdi
leaq -0x2d8(%rbp), %rsi
movl $0x30, %edx
callq 0x22e0
xorl %eax, %eax
subq -0x38(%rbp), %rax
movl -0x60(%rbp), %ecx
addq %rcx, %rax
addq -0x48(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x7289
jmp 0x7233
movl -0x148(%rbp), %ecx
xorl %eax, %eax
cmpl -0xb8(%rbp), %ecx
movb %al, -0x361(%rbp)
jae 0x726a
movq -0xb0(%rbp), %rax
movl -0x148(%rbp), %ecx
movl (%rax,%rcx,4), %eax
movl -0x28(%rbp), %ecx
addl $0x1, %ecx
cmpl %ecx, %eax
setbe %al
movb %al, -0x361(%rbp)
movb -0x361(%rbp), %al
testb $0x1, %al
jne 0x7276
jmp 0x7287
movl -0x148(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x148(%rbp)
jmp 0x7233
jmp 0x7289
jmp 0x728b
jmp 0x728d
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x6614
cmpl $0x0, -0x30(%rbp)
jbe 0x773c
jmp 0x72a7
movl -0x148(%rbp), %eax
cmpl -0xb8(%rbp), %eax
jae 0x7668
jmp 0x72bb
movq -0x1a0(%rbp), %rax
cmpq -0x198(%rbp), %rax
jne 0x7322
cmpq $0x0, -0x198(%rbp)
je 0x72e8
movq -0x198(%rbp), %rax
shlq %rax
movq %rax, -0x370(%rbp)
jmp 0x72f6
movl $0x2, %eax
movq %rax, -0x370(%rbp)
jmp 0x72f6
movq -0x370(%rbp), %rax
movq %rax, -0x198(%rbp)
movq -0x190(%rbp), %rdi
movq -0x198(%rbp), %rsi
shlq $0x2, %rsi
callq 0x23a0
movq %rax, -0x190(%rbp)
movl -0x30(%rbp), %edx
movq -0x190(%rbp), %rax
movq -0x1a0(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x1a0(%rbp)
movl %edx, (%rax,%rcx,4)
jmp 0x7346
movq -0x1b8(%rbp), %rax
cmpq -0x1b0(%rbp), %rax
jne 0x73ad
cmpq $0x0, -0x1b0(%rbp)
je 0x7373
movq -0x1b0(%rbp), %rax
shlq %rax
movq %rax, -0x378(%rbp)
jmp 0x7381
movl $0x2, %eax
movq %rax, -0x378(%rbp)
jmp 0x7381
movq -0x378(%rbp), %rax
movq %rax, -0x1b0(%rbp)
movq -0x1a8(%rbp), %rdi
movq -0x1b0(%rbp), %rsi
shlq $0x2, %rsi
callq 0x23a0
movq %rax, -0x1a8(%rbp)
movq -0xa8(%rbp), %rax
movl -0x148(%rbp), %ecx
movl (%rax,%rcx,4), %edx
movq -0x1a8(%rbp), %rax
movq -0x1b8(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x1b8(%rbp)
movl %edx, (%rax,%rcx,4)
jmp 0x73de
movq -0x1d0(%rbp), %rax
cmpq -0x1c8(%rbp), %rax
jne 0x7445
cmpq $0x0, -0x1c8(%rbp)
je 0x740b
movq -0x1c8(%rbp), %rax
shlq %rax
movq %rax, -0x380(%rbp)
jmp 0x7419
movl $0x2, %eax
movq %rax, -0x380(%rbp)
jmp 0x7419
movq -0x380(%rbp), %rax
movq %rax, -0x1c8(%rbp)
movq -0x1c0(%rbp), %rdi
movq -0x1c8(%rbp), %rsi
shlq $0x2, %rsi
callq 0x23a0
movq %rax, -0x1c0(%rbp)
movq -0xa0(%rbp), %rax
movl -0x148(%rbp), %ecx
movl (%rax,%rcx,4), %edx
movq -0x1c0(%rbp), %rax
movq -0x1d0(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x1d0(%rbp)
movl %edx, (%rax,%rcx,4)
jmp 0x7476
movq -0x1e8(%rbp), %rax
cmpq -0x1e0(%rbp), %rax
jne 0x74dd
cmpq $0x0, -0x1e0(%rbp)
je 0x74a3
movq -0x1e0(%rbp), %rax
shlq %rax
movq %rax, -0x388(%rbp)
jmp 0x74b1
movl $0x2, %eax
movq %rax, -0x388(%rbp)
jmp 0x74b1
movq -0x388(%rbp), %rax
movq %rax, -0x1e0(%rbp)
movq -0x1d8(%rbp), %rdi
movq -0x1e0(%rbp), %rsi
shlq $0x2, %rsi
callq 0x23a0
movq %rax, -0x1d8(%rbp)
movq -0x98(%rbp), %rax
movl -0x148(%rbp), %ecx
movl (%rax,%rcx,4), %edx
movq -0x1d8(%rbp), %rax
movq -0x1e8(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x1e8(%rbp)
movl %edx, (%rax,%rcx,4)
jmp 0x750e
movq -0x200(%rbp), %rax
cmpq -0x1f8(%rbp), %rax
jne 0x7575
cmpq $0x0, -0x1f8(%rbp)
je 0x753b
movq -0x1f8(%rbp), %rax
shlq %rax
movq %rax, -0x390(%rbp)
jmp 0x7549
movl $0x2, %eax
movq %rax, -0x390(%rbp)
jmp 0x7549
movq -0x390(%rbp), %rax
movq %rax, -0x1f8(%rbp)
movq -0x1f0(%rbp), %rdi
movq -0x1f8(%rbp), %rsi
shlq $0x2, %rsi
callq 0x23a0
movq %rax, -0x1f0(%rbp)
movq -0x90(%rbp), %rax
movl -0x148(%rbp), %ecx
movl (%rax,%rcx,4), %edx
movq -0x1f0(%rbp), %rax
movq -0x200(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x200(%rbp)
movl %edx, (%rax,%rcx,4)
jmp 0x75a6
movq -0x218(%rbp), %rax
cmpq -0x210(%rbp), %rax
jne 0x760d
cmpq $0x0, -0x210(%rbp)
je 0x75d3
movq -0x210(%rbp), %rax
shlq %rax
movq %rax, -0x398(%rbp)
jmp 0x75e1
movl $0x2, %eax
movq %rax, -0x398(%rbp)
jmp 0x75e1
movq -0x398(%rbp), %rax
movq %rax, -0x210(%rbp)
movq -0x208(%rbp), %rdi
movq -0x210(%rbp), %rsi
shlq $0x2, %rsi
callq 0x23a0
movq %rax, -0x208(%rbp)
movq -0x88(%rbp), %rax
movl -0x148(%rbp), %ecx
movl (%rax,%rcx,4), %edx
movq -0x208(%rbp), %rax
movq -0x218(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x218(%rbp)
movl %edx, (%rax,%rcx,4)
movq -0xa8(%rbp), %rax
movl -0x148(%rbp), %ecx
movl (%rax,%rcx,4), %eax
addq -0x50(%rbp), %rax
movq %rax, -0x50(%rbp)
movl -0x148(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x148(%rbp)
jmp 0x72a7
movq -0x48(%rbp), %rax
movq %rax, -0x128(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x120(%rbp)
movl -0x30(%rbp), %eax
movl %eax, -0x118(%rbp)
movl $0x0, -0x114(%rbp)
movq -0x1a0(%rbp), %rax
movl %eax, -0x110(%rbp)
movq -0x190(%rbp), %rax
movq %rax, -0x108(%rbp)
movq -0x1a8(%rbp), %rax
movq %rax, -0x100(%rbp)
movq -0x1c0(%rbp), %rax
movq %rax, -0xf8(%rbp)
movq -0x1d8(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0x1f0(%rbp), %rax
movq %rax, -0xe8(%rbp)
movq -0x208(%rbp), %rax
movq %rax, -0xe0(%rbp)
leaq -0x170(%rbp), %rdi
addq $0x9, %rdi
movl -0x2c(%rbp), %edx
addl $0x1, %edx
movl %edx, -0x2c(%rbp)
leaq 0x2a95c(%rip), %rsi     # 0x32069
movb $0x0, %al
callq 0x24b0
movq -0x178(%rbp), %rdi
movl -0x30(%rbp), %esi
movq -0x138(%rbp), %rcx
leaq -0x170(%rbp), %r8
movq -0x20(%rbp), %r9
leaq -0x130(%rbp), %rdx
callq 0x1a7a0
movl -0x14(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x14(%rbp)
cmpl $0x0, %eax
je 0x7756
movq -0x10(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x10(%rbp)
jmp 0x7758
jmp 0x775a
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x64b3
movq -0x178(%rbp), %rdi
callq 0x2050
movq -0x190(%rbp), %rdi
callq 0x2050
movq -0x1a8(%rbp), %rdi
callq 0x2050
movq -0x1c0(%rbp), %rdi
callq 0x2050
movq -0x1d8(%rbp), %rdi
callq 0x2050
movq -0x1f0(%rbp), %rdi
callq 0x2050
movq -0x208(%rbp), %rdi
callq 0x2050
addq $0x3a0, %rsp            # imm = 0x3A0
popq %rbp
retq
nopw %cs:(%rax,%rax)