// File: /workspace/github_c_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2b8, %rsp            # imm = 0x2B8
movq 0x38(%rdi), %rax
movq %rax, 0x100(%rsp)
movabsq $0x646c6f6666616373, %rax # imm = 0x646C6F6666616373
movq %rax, 0x1b0(%rsp)
movw $0x5f, 0x1b8(%rsp)
cmpl $0x0, (%rdi)
je 0x7f2a
movq %rcx, %rbx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rsi
movl $0x0, %r12d
movl $0x0, 0x14(%rsp)
movl $0x0, %eax
movq %rax, 0x18(%rsp)
movl $0x0, %r9d
movl $0x0, %eax
movq %rax, 0x30(%rsp)
movq $0x0, 0x28(%rsp)
movq $0x0, 0x48(%rsp)
movq $0x0, 0x128(%rsp)
xorl %ecx, %ecx
movq $0x0, 0x120(%rsp)
xorl %eax, %eax
movq $0x0, 0x118(%rsp)
movq $0x0, 0x40(%rsp)
movq $0x0, 0x110(%rsp)
movq $0x0, 0x108(%rsp)
xorl %r15d, %r15d
movq %rbx, 0x130(%rsp)
movq %rdi, 0xd0(%rsp)
movq %rcx, 0x50(%rsp)
movq %rax, 0x20(%rsp)
testl %ebp, %ebp
je 0x6d0f
movl 0x8(%r14), %eax
cmpq %rax, %r12
jae 0x6d7f
movq %r9, 0x88(%rsp)
movl 0x14(%rsp), %edx
incl %edx
leaq 0x1b9(%rsp), %rdi
movq %rsi, %r13
leaq 0x1b438(%rip), %rsi     # 0x22167
movl %edx, 0x14(%rsp)
xorl %eax, %eax
callq 0x24a0
movq 0x8(%r13), %rax
imulq $0x58, %r12, %rcx
leaq (%rax,%rcx), %rdx
movl 0x18(%rax,%rcx), %esi
movl 0x1c(%rax,%rcx), %eax
leaq (%rax,%rax,2), %rdi
shlq $0x4, %rdi
addq 0x20(%r13), %rdi
movq 0x100(%rsp), %rcx
leaq 0x1b0(%rsp), %r8
movq %rbx, %r9
callq 0x1460f
movq %r13, %rsi
movq 0x50(%rsp), %rcx
jmp 0x7f0d
movq %r15, 0x70(%rsp)
movl %ebp, 0x16c(%rsp)
movq %rsi, %rdi
movq 0x8(%rsi), %rax
imulq $0x58, %r12, %rcx
movl 0x18(%rax,%rcx), %r8d
movl 0x20(%rax,%rcx), %edx
movq 0x30(%rax,%rcx), %rsi
movq %rsi, 0x198(%rsp)
movq 0x38(%rax,%rcx), %rsi
movq %rsi, 0x190(%rsp)
movq 0x40(%rax,%rcx), %rsi
movq %rsi, 0x188(%rsp)
movq 0x48(%rax,%rcx), %rsi
movq %rsi, 0x180(%rsp)
movq 0x50(%rax,%rcx), %rsi
movq %rsi, 0x178(%rsp)
movq %r8, 0x240(%rsp)
testq %r8, %r8
movq %r12, 0xf8(%rsp)
movq %rdx, 0xd8(%rsp)
movq %r14, 0x170(%rsp)
je 0x7a19
movl 0x1c(%rax,%rcx), %esi
movq %rsi, 0x238(%rsp)
movq 0x28(%rax,%rcx), %rax
movq %rax, 0x1a0(%rsp)
movl (%r14), %eax
movq %rax, 0x140(%rsp)
movq 0x10(%r14), %rax
movq %rax, 0x138(%rsp)
negl %edx
movq %rdx, 0x230(%rsp)
xorl %r13d, %r13d
movl $0x0, 0xc(%rsp)
movq $0x0, 0xe0(%rsp)
xorl %r8d, %r8d
movl $0x0, 0x10(%rsp)
movq $0x0, 0x58(%rsp)
movq $0x0, 0x90(%rsp)
movq $0x0, 0xc0(%rsp)
movq $0x0, 0xb8(%rsp)
movq $0x0, 0xb0(%rsp)
movq $0x0, 0xa8(%rsp)
movq $0x0, 0xa0(%rsp)
movq 0x28(%rsp), %r11
movq %rdi, %rsi
movq 0x20(%rsi), %rax
movq 0x238(%rsp), %rcx
addl %r13d, %ecx
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
movl (%rax,%rcx), %edx
movl %edx, 0x7c(%rsp)
movq 0x8(%rax,%rcx), %rdx
movq %rdx, 0x1a8(%rsp)
movl 0x18(%rax,%rcx), %edx
movl %edx, 0x3c(%rsp)
movl 0x1c(%rax,%rcx), %edx
movq %rdx, 0xe8(%rsp)
movl 0x20(%rax,%rcx), %edx
movq %rdx, 0x60(%rsp)
movl 0x24(%rax,%rcx), %edx
movl %edx, 0x80(%rsp)
movl 0x28(%rax,%rcx), %eax
movl %eax, 0x84(%rsp)
movl 0x10(%rsp), %eax
cmpl 0xd8(%rsp), %eax
movq %r13, 0x98(%rsp)
jae 0x7373
movq %r9, 0x88(%rsp)
movl %eax, %ecx
movq 0x178(%rsp), %rax
leaq (%rax,%rcx,4), %rax
movq %rax, 0x150(%rsp)
movq 0x180(%rsp), %rax
leaq (%rax,%rcx,4), %rax
movq %rax, 0x148(%rsp)
movq 0x188(%rsp), %rax
leaq (%rax,%rcx,4), %rax
movq %rax, 0x280(%rsp)
movq 0x190(%rsp), %rax
leaq (%rax,%rcx,4), %rax
movq %rax, 0x278(%rsp)
movq 0x198(%rsp), %rax
leaq (%rax,%rcx,4), %rax
movq %rax, 0xc8(%rsp)
movq 0x1a0(%rsp), %rax
leaq (%rax,%rcx,4), %rax
movq %rax, 0x160(%rsp)
addq 0x230(%rsp), %rcx
movq %rcx, 0x158(%rsp)
movq 0x90(%rsp), %rax
leaq (,%rax,4), %rax
movq %rax, 0x270(%rsp)
movq 0xc0(%rsp), %rax
leaq (,%rax,4), %rax
movq %rax, 0x268(%rsp)
movq 0xb8(%rsp), %rax
leaq (,%rax,4), %rax
movq %rax, 0x260(%rsp)
movq 0xb0(%rsp), %rax
leaq (,%rax,4), %rax
movq %rax, 0x258(%rsp)
movq 0xa8(%rsp), %rax
leaq (,%rax,4), %rax
movq %rax, 0x250(%rsp)
movq 0xa0(%rsp), %rax
leaq (,%rax,4), %rax
movq %rax, 0x248(%rsp)
xorl %r13d, %r13d
movq 0x30(%rsp), %rcx
movq 0x90(%rsp), %rax
leaq (%rax,%r13), %r15
movq 0xc0(%rsp), %rax
leaq (%rax,%r13), %r14
movq 0xb8(%rsp), %rax
leaq (%rax,%r13), %rbx
movq 0xb0(%rsp), %rax
leaq (%rax,%r13), %rdi
movq 0xa8(%rsp), %rax
leaq (%rax,%r13), %r10
movq 0xa0(%rsp), %rax
leaq (%rax,%r13), %rbp
movq 0x160(%rsp), %rax
movl (%rax,%r13,4), %eax
cmpq %rax, 0x98(%rsp)
jb 0x73af
movq %rdi, %r12
cmpq %r11, %r15
movq %r8, 0x68(%rsp)
movq %r10, 0xf0(%rsp)
jne 0x70fc
leaq (%r11,%r11), %r15
testq %r11, %r11
movl $0x2, %eax
cmoveq %rax, %r15
leaq (,%r15,4), %rsi
movq %rcx, %rdi
callq 0x2390
movq %rax, %rcx
movq %r15, %r11
movq 0x70(%rsp), %r15
movq 0x48(%rsp), %rdi
movq %r11, 0x28(%rsp)
movq 0x270(%rsp), %rax
addq %rcx, %rax
movl 0xc(%rsp), %edx
movl %edx, (%rax,%r13,4)
movq 0x128(%rsp), %rax
cmpq %rax, %r14
movq %rcx, 0x30(%rsp)
jne 0x7158
leaq (%rax,%rax), %r14
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %r14
leaq (,%r14,4), %rsi
callq 0x2390
movq %rax, %rdi
movq %r14, 0x128(%rsp)
movq 0x40(%rsp), %r14
movq 0xc8(%rsp), %rax
movl (%rax,%r13,4), %eax
movq %rdi, 0x48(%rsp)
movq 0x268(%rsp), %rcx
addq %rdi, %rcx
movl %eax, (%rcx,%r13,4)
movq 0x120(%rsp), %rax
cmpq %rax, %rbx
jne 0x71b6
leaq (%rax,%rax), %rbx
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rbx
leaq (,%rbx,4), %rsi
movq 0x50(%rsp), %rdi
callq 0x2390
movq %rbx, 0x120(%rsp)
jmp 0x71bb
movq 0x50(%rsp), %rax
movq 0x278(%rsp), %rcx
movl (%rcx,%r13,4), %edx
movq %rax, 0x50(%rsp)
movq 0x260(%rsp), %rcx
addq %rax, %rcx
movl %edx, (%rcx,%r13,4)
movq 0x118(%rsp), %rax
cmpq %rax, %r12
jne 0x7214
leaq (%rax,%rax), %rbx
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rbx
leaq (,%rbx,4), %rsi
movq 0x20(%rsp), %rdi
callq 0x2390
movq %rbx, 0x118(%rsp)
jmp 0x7219
movq 0x20(%rsp), %rax
movq 0x280(%rsp), %rcx
movl (%rcx,%r13,4), %edx
movq %rax, 0x20(%rsp)
movq 0x258(%rsp), %rcx
addq %rax, %rcx
movl %edx, (%rcx,%r13,4)
movq 0x110(%rsp), %rax
cmpq %rax, %rbp
jne 0x7271
leaq (%rax,%rax), %rbx
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rbx
leaq (,%rbx,4), %rsi
movq %r14, %rdi
callq 0x2390
movq %rax, %r14
movq %rbx, 0x110(%rsp)
movq 0xf0(%rsp), %rbp
movq 0x148(%rsp), %rax
movl (%rax,%r13,4), %eax
movq 0x248(%rsp), %rcx
addq %r14, %rcx
movl %eax, (%rcx,%r13,4)
movq 0x108(%rsp), %rax
cmpq %rax, %rbp
jne 0x72cc
leaq (%rax,%rax), %rbx
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %rbx
leaq (,%rbx,4), %rsi
movq %r15, %rdi
callq 0x2390
movq %rax, %r15
movq %rbx, 0x108(%rsp)
movq 0x68(%rsp), %r8
movq %r14, 0x40(%rsp)
movq 0x150(%rsp), %rax
movl (%rax,%r13,4), %eax
movq %r15, 0x70(%rsp)
movq 0x250(%rsp), %rcx
addq %r15, %rcx
movl %eax, (%rcx,%r13,4)
movq 0xc8(%rsp), %rax
movl (%rax,%r13,4), %eax
addq %rax, %r8
incq %r13
movq 0x158(%rsp), %rax
addl %r13d, %eax
movq 0x30(%rsp), %rcx
movq 0x28(%rsp), %r11
jne 0x705f
movq 0x90(%rsp), %r15
addq %r13, %r15
movq 0xc0(%rsp), %r14
addq %r13, %r14
movq 0xb8(%rsp), %rbx
addq %r13, %rbx
movq 0xb0(%rsp), %rdi
addq %r13, %rdi
movq 0xa8(%rsp), %r10
addq %r13, %r10
movq 0xa0(%rsp), %rbp
addq %r13, %rbp
movq 0xd8(%rsp), %rax
movl %eax, 0x10(%rsp)
jmp 0x73b4
movq 0xa0(%rsp), %rbp
movq 0xa8(%rsp), %r10
movq 0xb0(%rsp), %rdi
movq 0xb8(%rsp), %rbx
movq 0xc0(%rsp), %r14
movq 0x90(%rsp), %r15
movq 0x30(%rsp), %rcx
movq 0x60(%rsp), %rax
jmp 0x73c9
addl %r13d, 0x10(%rsp)
movq 0x88(%rsp), %r9
movq 0x60(%rsp), %rax
movq 0x98(%rsp), %r13
cmpl $0x0, 0x140(%rsp)
movq %rcx, 0x30(%rsp)
je 0x74a4
movq 0x1a8(%rsp), %rdx
addq %rax, %rdx
movq 0x138(%rsp), %rax
movq (%rax), %r12
movq %rdx, 0x68(%rsp)
cmpq %r12, %rdx
jbe 0x74a4
subq 0x1a8(%rsp), %r12
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
addq %r12, %rax
movabsq $0x1fffffffd, %rcx      # imm = 0x1FFFFFFFD
cmpq %rcx, %rax
jae 0x7fcc
testq %r12, %r12
movq 0x40(%rsp), %rdx
movq 0x20(%rsp), %rcx
movq 0x60(%rsp), %rax
movl 0xc(%rsp), %r14d
jle 0x75ec
movq 0xe8(%rsp), %rcx
leal (%rax,%rcx), %ebx
subl %r12d, %ebx
testb $0x1, 0x3c(%rsp)
cmovel %ecx, %ebx
cmpq %r9, 0x58(%rsp)
jne 0x762b
leaq (%r9,%r9), %r14
testq %r9, %r9
movl $0x2, %eax
cmoveq %rax, %r14
movq %r14, %rax
shlq $0x4, %rax
leaq (%rax,%rax,2), %rsi
movq 0x18(%rsp), %rdi
movq %r8, %r13
movq %r11, %rbp
callq 0x2390
movq %rbp, %r11
movq %r13, %r8
movq %r14, %r9
movl 0xc(%rsp), %r14d
movq 0x40(%rsp), %rdx
jmp 0x7630
cmpq %r9, 0x58(%rsp)
jne 0x750d
leaq (%r9,%r9), %r12
testq %r9, %r9
movl $0x2, %eax
cmoveq %rax, %r12
movq %r12, %rax
shlq $0x4, %rax
leaq (%rax,%rax,2), %rsi
movq %rdi, 0xc8(%rsp)
movq 0x18(%rsp), %rdi
movq %r8, %r13
movq %rbp, 0x68(%rsp)
movq %r10, %rbp
movq %r11, 0x28(%rsp)
callq 0x2390
movq 0xc8(%rsp), %rdi
movq 0x28(%rsp), %r11
movq %rbp, %r10
movq 0x68(%rsp), %rbp
movq %r13, %r8
movq 0x98(%rsp), %r13
movq %r12, %r9
jmp 0x7512
movq 0x18(%rsp), %rax
movq 0xe0(%rsp), %r12
leaq (%r8,%r12), %rdx
movq 0x58(%rsp), %rsi
leaq (%rsi,%rsi,2), %rcx
incq %rsi
movq %rsi, 0x58(%rsp)
shlq $0x4, %rcx
movl 0x7c(%rsp), %esi
movl %esi, (%rax,%rcx)
movl 0xc(%rsp), %esi
movl %esi, 0x4(%rax,%rcx)
incl %esi
movl %esi, 0xc(%rsp)
movq %r12, 0x8(%rax,%rcx)
movq %rdx, 0x10(%rax,%rcx)
movl 0x3c(%rsp), %edx
movl %edx, 0x18(%rax,%rcx)
movq 0xe8(%rsp), %rdx
movl %edx, 0x1c(%rax,%rcx)
movq 0x60(%rsp), %rsi
movl %esi, 0x20(%rax,%rcx)
movl 0x80(%rsp), %edx
movl %edx, 0x24(%rax,%rcx)
movq %rax, 0x18(%rsp)
movl 0x84(%rsp), %edx
movl %edx, 0x28(%rax,%rcx)
leaq (%rsi,%r12), %rax
movq 0xf8(%rsp), %r12
movq 0xd0(%rsp), %rsi
incq %r13
movq %rax, 0xe0(%rsp)
movq %r15, 0x90(%rsp)
movq %r14, 0xc0(%rsp)
movq %rbx, 0xb8(%rsp)
movq %rdi, 0xb0(%rsp)
movq %r10, 0xa8(%rsp)
movq %rbp, 0xa0(%rsp)
cmpq 0x240(%rsp), %r13
jne 0x6ebe
jmp 0x7a45
testq %r15, %r15
movq %r9, 0x88(%rsp)
je 0x769e
movq 0x18(%rsp), %rbx
movq 0x30(%rsp), %rax
cmpl %r14d, -0x4(%rax,%r15,4)
jne 0x76a6
decq %r15
movq 0x48(%rsp), %rax
movl (%rax,%r15,4), %eax
subq %rax, %r8
testq %r15, %r15
jne 0x7602
xorl %r15d, %r15d
jmp 0x76a6
movq 0x18(%rsp), %rax
movq %r9, 0x88(%rsp)
movq 0xe0(%rsp), %r9
leaq (%r8,%r9), %rsi
movq 0x58(%rsp), %rcx
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
movl 0x7c(%rsp), %edi
movl %edi, (%rax,%rcx)
movl %r14d, 0x4(%rax,%rcx)
incl %r14d
movq %r9, 0x8(%rax,%rcx)
movq %rsi, 0x10(%rax,%rcx)
movl 0x3c(%rsp), %esi
movl %esi, 0x18(%rax,%rcx)
movl %ebx, 0x1c(%rax,%rcx)
movl %r12d, 0x20(%rax,%rcx)
movl 0x80(%rsp), %esi
movl %esi, 0x24(%rax,%rcx)
movl 0x84(%rsp), %esi
movl %esi, 0x28(%rax,%rcx)
addq %r12, %r9
movq 0x20(%rsp), %rcx
movq %rax, %rbx
jmp 0x76ae
xorl %r15d, %r15d
movq 0x18(%rsp), %rbx
movq 0xe0(%rsp), %r9
movq %r11, 0x28(%rsp)
movq %r9, 0x1e0(%rsp)
movq %r8, 0x1e8(%rsp)
movl %r14d, 0x1f0(%rsp)
movl $0x0, 0x1f4(%rsp)
movl %r15d, 0x1f8(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x200(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x208(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0x210(%rsp)
movq %rcx, 0x218(%rsp)
movq %rdx, 0x220(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x228(%rsp)
movl 0x14(%rsp), %edx
incl %edx
leaq 0x1b9(%rsp), %rdi
leaq 0x1aa30(%rip), %rsi     # 0x22167
movl %edx, 0x14(%rsp)
xorl %eax, %eax
callq 0x24a0
movq %rbx, 0x18(%rsp)
movq %rbx, %rdi
movl %r14d, %esi
leaq 0x1d8(%rsp), %rdx
movq 0x100(%rsp), %rcx
leaq 0x1b0(%rsp), %r8
movq 0x130(%rsp), %r15
movq %r15, %r9
callq 0x1460f
xorl %eax, %eax
movq 0x140(%rsp), %r13
decl %r13d
setne %al
movq 0x138(%rsp), %r8
leaq (%r8,%rax,8), %r8
je 0x78a1
movq 0x60(%rsp), %rax
movl %eax, %ebp
addl 0xe8(%rsp), %ebp
movl %r13d, %r14d
movq (%r8), %rax
cmpq %rax, 0x68(%rsp)
jbe 0x789e
subq -0x8(%r8), %rax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpq %rcx, %rax
jge 0x7fad
leaq (%rax,%r12), %rbx
movl %ebp, %ecx
subl %ebx, %ecx
addl 0xe8(%rsp), %r12d
movl 0x3c(%rsp), %esi
testb $0x1, %sil
movl 0x7c(%rsp), %edx
movl %edx, 0x288(%rsp)
leaq 0x28c(%rsp), %rdx
xorps %xmm0, %xmm0
movups %xmm0, (%rdx)
movl $0x0, 0x10(%rdx)
movl %esi, 0x2a0(%rsp)
cmovnel %ecx, %r12d
movl %r12d, 0x2a4(%rsp)
movl %eax, 0x2a8(%rsp)
movl 0x80(%rsp), %eax
movl %eax, 0x2ac(%rsp)
movl 0x84(%rsp), %eax
movl %eax, 0x2b0(%rsp)
movl 0x14(%rsp), %edx
incl %edx
xorl %r13d, %r13d
leaq 0x1b9(%rsp), %rdi
leaq 0x1a919(%rip), %rsi     # 0x22167
movl %edx, 0x14(%rsp)
xorl %eax, %eax
movq %r8, %r12
callq 0x24a0
leaq 0x288(%rsp), %rdi
movl $0x1, %esi
xorl %edx, %edx
movq 0x100(%rsp), %rcx
leaq 0x1b0(%rsp), %r8
movq %r15, %r9
callq 0x1460f
xorl %eax, %eax
cmpl $0x1, %r14d
setne %al
leaq (%r12,%rax,8), %r8
movq %rbx, %r12
decl %r14d
jne 0x77a8
jmp 0x78a4
movl %r14d, %r13d
movq %r12, %rbx
movq %r13, 0x140(%rsp)
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
addq %rbx, %rax
movabsq $0x1fffffffd, %rcx      # imm = 0x1FFFFFFFD
cmpq %rcx, %rax
movq 0x28(%rsp), %r11
jae 0x7feb
movq 0x60(%rsp), %r14
subq %rbx, %r14
movq 0xf8(%rsp), %r12
movq 0x88(%rsp), %r9
movq 0x98(%rsp), %r13
movq %r8, 0x138(%rsp)
jle 0x799a
testb $0x1, 0x3c(%rsp)
movl $0x0, %eax
cmovnel %eax, %ebx
testq %r9, %r9
jne 0x792c
movl $0x60, %esi
movq 0x18(%rsp), %rdi
movq %r11, %r15
callq 0x2390
movq %r15, %r11
movq %rax, 0x18(%rsp)
movl $0x2, %r9d
addl 0xe8(%rsp), %ebx
movq 0x18(%rsp), %rax
movl 0x7c(%rsp), %ecx
movl %ecx, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x4(%rax)
movl $0x0, 0x14(%rax)
movl 0x3c(%rsp), %ecx
movl %ecx, 0x18(%rax)
movl %ebx, 0x1c(%rax)
movl %r14d, 0x20(%rax)
movl 0x80(%rsp), %ecx
movl %ecx, 0x24(%rax)
movl 0x84(%rsp), %ecx
movl %ecx, 0x28(%rax)
movq %r14, %rax
movl $0x1, 0xc(%rsp)
movl $0x1, %ecx
movq %rcx, 0x58(%rsp)
xorl %ebp, %ebp
xorl %r10d, %r10d
xorl %edi, %edi
xorl %ebx, %ebx
xorl %r14d, %r14d
xorl %r15d, %r15d
xorl %r8d, %r8d
jmp 0x7596
movq 0xd8(%rsp), %rsi
movl 0x10(%rsp), %edi
cmpl %esi, %edi
jae 0x79ef
leaq 0x1(%r13), %rax
movl %edi, %ecx
movq 0x1a0(%rsp), %rdx
leaq (%rdx,%rcx,4), %rcx
movl (%rcx), %edx
cmpq %rdx, %rax
jb 0x79eb
incl %edi
addq $0x4, %rcx
cmpl %edi, %esi
jne 0x79bc
xorl %ebp, %ebp
xorl %r10d, %r10d
xorl %edi, %edi
xorl %ebx, %ebx
xorl %r14d, %r14d
xorl %r15d, %r15d
movq $0x0, 0x58(%rsp)
movl %esi, 0x10(%rsp)
jmp 0x7a07
movl %edi, 0x10(%rsp)
xorl %ebp, %ebp
xorl %r10d, %r10d
xorl %edi, %edi
xorl %ebx, %ebx
xorl %r14d, %r14d
xorl %r15d, %r15d
movq $0x0, 0x58(%rsp)
xorl %r8d, %r8d
xorl %eax, %eax
movl $0x0, 0xc(%rsp)
jmp 0x7596
xorl %ebp, %ebp
xorl %r10d, %r10d
xorl %ebx, %ebx
xorl %r14d, %r14d
xorl %r15d, %r15d
movl $0x0, 0x10(%rsp)
xorl %r8d, %r8d
xorl %eax, %eax
movl $0x0, 0xc(%rsp)
movq 0x28(%rsp), %r11
movq %rdi, %rsi
xorl %edi, %edi
cmpl $0x0, 0xc(%rsp)
movq %r9, 0x88(%rsp)
je 0x7deb
movq %rax, 0x60(%rsp)
movq 0xd8(%rsp), %rax
movl 0x10(%rsp), %ecx
subl %ecx, %eax
movq %rax, 0xd8(%rsp)
jbe 0x7e0f
movl %ecx, %eax
movq 0x198(%rsp), %rcx
leaq (%rcx,%rax,4), %rcx
movq %rcx, 0x90(%rsp)
movq 0x190(%rsp), %rcx
leaq (%rcx,%rax,4), %rcx
movq %rcx, 0xc0(%rsp)
movq 0x188(%rsp), %rcx
leaq (%rcx,%rax,4), %rcx
movq %rcx, 0xb8(%rsp)
movq 0x180(%rsp), %rcx
leaq (%rcx,%rax,4), %rcx
movq %rcx, 0xb0(%rsp)
movq 0x178(%rsp), %rcx
leaq (%rcx,%rax,4), %rax
movq %rax, 0xa8(%rsp)
leaq (,%r15,4), %rax
movq %rax, 0xa0(%rsp)
leaq (,%r14,4), %rax
movq %rax, 0x98(%rsp)
leaq (,%rbx,4), %rax
movq %rax, 0x160(%rsp)
leaq (,%rdi,4), %rax
movq %rax, 0x158(%rsp)
leaq (,%r10,4), %rax
movq %rax, 0x150(%rsp)
leaq (,%rbp,4), %rax
movq %rax, 0x148(%rsp)
xorl %r13d, %r13d
movq 0x20(%rsp), %rcx
movq %r10, 0xf0(%rsp)
movq %rdi, 0xc8(%rsp)
leaq (%r15,%r13), %rax
cmpq %r11, %rax
movq %rcx, 0x20(%rsp)
movq %r8, 0x68(%rsp)
jne 0x7b91
leaq (%r11,%r11), %r12
testq %r11, %r11
movl $0x2, %eax
cmoveq %rax, %r12
leaq (,%r12,4), %rsi
movq 0x30(%rsp), %rdi
callq 0x2390
movq %r12, %r11
jmp 0x7b96
movq 0x30(%rsp), %rax
leaq (%r14,%r13), %rdx
movq %rax, 0x30(%rsp)
movq 0xa0(%rsp), %rcx
addq %rax, %rcx
movl 0xc(%rsp), %eax
movl %eax, (%rcx,%r13,4)
movq 0x128(%rsp), %rax
cmpq %rax, %rdx
movq %r11, 0x28(%rsp)
jne 0x7bf0
leaq (%rax,%rax), %r12
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %r12
leaq (,%r12,4), %rsi
movq 0x48(%rsp), %rdi
callq 0x2390
movq %r12, 0x128(%rsp)
jmp 0x7bf5
movq 0x48(%rsp), %rax
leaq (%rbx,%r13), %rsi
movq 0x90(%rsp), %rcx
movl (%rcx,%r13,4), %ecx
movq %rax, 0x48(%rsp)
movq 0x98(%rsp), %rdx
addq %rax, %rdx
movl %ecx, (%rdx,%r13,4)
movq 0x120(%rsp), %rax
cmpq %rax, %rsi
jne 0x7c52
leaq (%rax,%rax), %r12
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %r12
leaq (,%r12,4), %rsi
movq 0x50(%rsp), %rdi
callq 0x2390
movq %r12, 0x120(%rsp)
jmp 0x7c57
movq 0x50(%rsp), %rax
movq 0xc8(%rsp), %rcx
leaq (%rcx,%r13), %rsi
movq 0xc0(%rsp), %rcx
movl (%rcx,%r13,4), %ecx
movq %rax, 0x50(%rsp)
movq 0x160(%rsp), %rdx
addq %rax, %rdx
movl %ecx, (%rdx,%r13,4)
movq 0x118(%rsp), %rax
cmpq %rax, %rsi
jne 0x7cbc
leaq (%rax,%rax), %r12
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %r12
leaq (,%r12,4), %rsi
movq 0x20(%rsp), %rdi
callq 0x2390
movq %r12, 0x118(%rsp)
jmp 0x7cc1
movq 0x20(%rsp), %rax
movq %rbp, %rsi
addq %r13, %rsi
movq 0xb8(%rsp), %rcx
movl (%rcx,%r13,4), %ecx
movq %rax, 0x20(%rsp)
movq 0x158(%rsp), %rdx
addq %rax, %rdx
movl %ecx, (%rdx,%r13,4)
movq 0x110(%rsp), %rax
cmpq %rax, %rsi
jne 0x7d20
leaq (%rax,%rax), %r12
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %r12
leaq (,%r12,4), %rsi
movq 0x40(%rsp), %rdi
callq 0x2390
movq %r12, 0x110(%rsp)
jmp 0x7d25
movq 0x40(%rsp), %rax
movq 0xf0(%rsp), %rcx
leaq (%rcx,%r13), %rsi
movq 0xb0(%rsp), %rcx
movl (%rcx,%r13,4), %ecx
movq %rax, 0x40(%rsp)
movq 0x148(%rsp), %rdx
addq %rax, %rdx
movl %ecx, (%rdx,%r13,4)
movq 0x108(%rsp), %rax
cmpq %rax, %rsi
jne 0x7d8a
leaq (%rax,%rax), %r12
testq %rax, %rax
movl $0x2, %eax
cmoveq %rax, %r12
leaq (,%r12,4), %rsi
movq 0x70(%rsp), %rdi
callq 0x2390
movq %r12, 0x108(%rsp)
jmp 0x7d8f
movq 0x70(%rsp), %rax
movq 0xf8(%rsp), %r12
movq 0x68(%rsp), %r8
movq 0x28(%rsp), %r11
movq 0xa8(%rsp), %rcx
movl (%rcx,%r13,4), %edx
movq %rax, 0x70(%rsp)
movq 0x150(%rsp), %rcx
addq %rax, %rcx
movl %edx, (%rcx,%r13,4)
movq 0x90(%rsp), %rax
movl (%rax,%r13,4), %eax
addq %rax, %r8
incq %r13
cmpl %r13d, 0xd8(%rsp)
movq 0x20(%rsp), %rcx
jne 0x7b57
addq %r13, %r15
jmp 0x7e14
movq %r11, 0x28(%rsp)
movq 0x130(%rsp), %rbx
movq 0x170(%rsp), %r14
movq 0x70(%rsp), %r15
movq 0x50(%rsp), %rcx
jmp 0x7efc
movq 0x20(%rsp), %rcx
movq %r11, 0x28(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x1e0(%rsp)
movq %r8, 0x1e8(%rsp)
movl 0xc(%rsp), %ebx
movl %ebx, 0x1f0(%rsp)
movl $0x0, 0x1f4(%rsp)
movl %r15d, 0x1f8(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x200(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x208(%rsp)
movq 0x50(%rsp), %r14
movq %r14, 0x210(%rsp)
movq %rcx, 0x20(%rsp)
movq %rcx, 0x218(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x220(%rsp)
movq 0x70(%rsp), %r15
movq %r15, 0x228(%rsp)
movl 0x14(%rsp), %edx
incl %edx
leaq 0x1b9(%rsp), %rdi
leaq 0x1a2b8(%rip), %rsi     # 0x22167
movl %edx, 0x14(%rsp)
xorl %eax, %eax
callq 0x24a0
movq 0x18(%rsp), %rdi
movl %ebx, %esi
leaq 0x1d8(%rsp), %rdx
movq 0x100(%rsp), %rcx
leaq 0x1b0(%rsp), %r8
movq 0x130(%rsp), %rbx
movq %rbx, %r9
callq 0x1460f
movq %r14, %rcx
movq 0x170(%rsp), %r14
movq 0xd0(%rsp), %rsi
leaq 0x18(%r14), %rax
movl 0x16c(%rsp), %ebp
decl %ebp
cmovneq %rax, %r14
incq %r12
movl (%rsi), %eax
cmpq %rax, %r12
movq 0x20(%rsp), %rax
movq 0x88(%rsp), %r9
jb 0x6cf8
jmp 0x7f55
xorl %r15d, %r15d
movq $0x0, 0x40(%rsp)
xorl %eax, %eax
xorl %ecx, %ecx
movq $0x0, 0x48(%rsp)
movq $0x0, 0x30(%rsp)
movq $0x0, 0x18(%rsp)
movq 0x18(%rsp), %rdi
movq %rax, %rbx
movq %rcx, %r14
callq 0x2060
movq 0x30(%rsp), %rdi
callq 0x2060
movq 0x48(%rsp), %rdi
callq 0x2060
movq %r14, %rdi
callq 0x2060
movq %rbx, %rdi
callq 0x2060
movq 0x40(%rsp), %rdi
callq 0x2060
movq %r15, %rdi
callq 0x2060
addq $0x2b8, %rsp            # imm = 0x2B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x192eb(%rip), %rdi     # 0x2129f
leaq 0x192f3(%rip), %rsi     # 0x212ae
leaq 0x192f4(%rip), %rcx     # 0x212b6
movl $0x299, %edx            # imm = 0x299
callq 0x21c0
leaq 0x192b9(%rip), %rdi     # 0x2128c
leaq 0x192d4(%rip), %rsi     # 0x212ae
leaq 0x192d5(%rip), %rcx     # 0x212b6
movl $0x271, %edx            # imm = 0x271
callq 0x21c0
leaq 0x19301(%rip), %rdi     # 0x212f3
leaq 0x192b5(%rip), %rsi     # 0x212ae
leaq 0x192b6(%rip), %rcx     # 0x212b6
movl $0x2a3, %edx            # imm = 0x2A3
callq 0x21c0
nop