// File: /workspace/github_cpp_makefile_star2_O2/qema[P]orca-py/liborca.cpp
// Function: ecount4()
void ecount4() {
    clock_t startTime, endTime;
    startTime = clock();
    clock_t startTime_all, endTime_all;
    startTime_all = startTime;
    int frac,frac_prev;

    // precompute triangles that span over edges
    //printf("stage 1 - precomputing common nodes\n");
    int *tri = (int*)calloc(m,sizeof(int));
    frac_prev=-1;
    for (int i=0;i<m;i++) {
        frac = 100LL*i/m;
        if (frac!=frac_prev) {
            //printf("%d%%\r",frac);
            frac_prev=frac;
        }
        int x=edges[i].a, y=edges[i].b;
        for (int xi=0,yi=0; xi<deg[x] && yi<deg[y]; ) {
            if (adj[x][xi]==adj[y][yi]) { tri[i]++; xi++; yi++; }
            else if (adj[x][xi]<adj[y][yi]) { xi++; }
            else { yi++; }
        }
    }
    endTime = clock();
    //printf("%.2f\n", (double)(endTime-startTime)/CLOCKS_PER_SEC);
    startTime = endTime;

    // count full graphlets
    //printf("stage 2 - counting full graphlets\n");
    int64 *C4 = (int64*)calloc(m,sizeof(int64));
    int *neighx = (int*)malloc(n*sizeof(int)); // lookup table - edges to neighbors of x
    memset(neighx,-1,n*sizeof(int));
    int *neigh = (int*)malloc(n*sizeof(int)), nn; // lookup table - common neighbors of x and y
    PII *neigh_edges = (PII*)malloc(n*sizeof(PII)); // list of common neighbors of x and y
    frac_prev=-1;
    for (int x=0;x<n;x++) {
        frac = 100LL*x/n;
        if (frac!=frac_prev) {
            //printf("%d%%\r",frac);
            frac_prev=frac;
        }

        for (int nx=0;nx<deg[x];nx++) {
            int y=inc[x][nx].first, xy=inc[x][nx].second;
            neighx[y]=xy;
        }
        for (int nx=0;nx<deg[x];nx++) {
            int y=inc[x][nx].first, xy=inc[x][nx].second;
            if (y >= x) break;
            nn=0;
            for (int ny=0;ny<deg[y];ny++) {
                int z=inc[y][ny].first, yz=inc[y][ny].second;
                if (z >= y) break;
                if (neighx[z]==-1) continue;
                int xz=neighx[z];
                neigh[nn]=z;
                neigh_edges[nn]={xz, yz};
                nn++;
            }
            for (int i=0;i<nn;i++) {
                int z = neigh[i], xz = neigh_edges[i].first, yz = neigh_edges[i].second;
                for (int j=i+1;j<nn;j++) {
                    int w = neigh[j], xw = neigh_edges[j].first, yw = neigh_edges[j].second;
                    if (adjacent(z,w)) {
                        C4[xy]++;
                        C4[xz]++; C4[yz]++;
                        C4[xw]++; C4[yw]++;
                        // another iteration to count this last(smallest) edge instead of calling getEdgeId
                        //int zw=getEdgeId(z,w); C4[zw]++;
                    }
                }
            }
        }
        for (int nx=0;nx<deg[x];nx++) {
            int y=inc[x][nx].first, xy=inc[x][nx].second;
            neighx[y]=-1;
        }
    }
    endTime = clock();
    //printf("%.2f\n", (double)(endTime-startTime)/CLOCKS_PER_SEC);
    startTime = endTime;

    // count full graphlets for the smallest edge
    for (int x=0;x<n;x++) {
        frac = 100LL*x/n;
        if (frac!=frac_prev) {
            //printf("%d%%\r",frac);
            frac_prev=frac;
        }
        for (int nx=deg[x]-1;nx>=0;nx--) {
            int y=inc[x][nx].first, xy=inc[x][nx].second;
            if (y <= x) break;
            nn=0;
            for (int ny=deg[y]-1;ny>=0;ny--) {
                int z=adj[y][ny];
                if (z <= y) break;
                if (adjacent(x,z)==0) continue;
                neigh[nn++]=z;
            }
            for (int i=0;i<nn;i++) {
                int z = neigh[i];
                for (int j=i+1;j<nn;j++) {
                    int zz = neigh[j];
                    if (adjacent(z,zz)) {
                        C4[xy]++;
                    }
                }
            }
        }
    }
    endTime = clock();
    //printf("%.2f\n", (double)(endTime-startTime)/CLOCKS_PER_SEC);
    startTime = endTime;

    // set up a system of equations relating orbits for every node
    //printf("stage 3 - building systems of equations\n");
    int *common = (int*)calloc(n,sizeof(int));
    int *common_list = (int*)malloc(n*sizeof(int)), nc=0;
    frac_prev=-1;

    for (int x=0;x<n;x++) {
        frac = 100LL*x/n;
        if (frac!=frac_prev) {
            //printf("%d%%\r",frac);
            frac_prev=frac;
        }

        // common nodes of x and some other node
        for (int i=0;i<nc;i++) common[common_list[i]]=0;
        nc=0;
        for (int nx=0;nx<deg[x];nx++) {
            int y=adj[x][nx];
            for (int ny=0;ny<deg[y];ny++) {
                int z=adj[y][ny];
                if (z==x) continue;
                if (common[z]==0) common_list[nc++]=z;
                common[z]++;
            }
        }

        for (int nx=0;nx<deg[x];nx++) {
            int y=inc[x][nx].first, xy=inc[x][nx].second;
            int e=xy;
            for (int n1=0;n1<deg[x];n1++) {
                int z=inc[x][n1].first, xz=inc[x][n1].second;
                if (z==y) continue;
                if (adjacent(y,z)) { // triangle
                    if (x<y) {
                        eorbit[e][1]++;
                        eorbit[e][10] += tri[xy]-1;
                        eorbit[e][7] += deg[z]-2;
                    }
                    eorbit[e][9] += tri[xz]-1;
                    eorbit[e][8] += deg[x]-2;
                }
            }
            for (int n1=0;n1<deg[y];n1++) {
                int z=inc[y][n1].first, yz=inc[y][n1].second;
                if (z==x) continue;
                if (!adjacent(x,z)) { // path x-y-z
                    eorbit[e][0]++;
                    eorbit[e][6] += tri[yz];
                    eorbit[e][5] += common[z]-1;
                    eorbit[e][4] += deg[y]-2;
                    eorbit[e][3] += deg[x]-1;
                    eorbit[e][2] += deg[z]-1;
                }
            }
        }
    }
    // solve system of equations
    for (int e=0;e<m;e++) {
        eorbit[e][11]=C4[e];
        eorbit[e][10]=(eorbit[e][10]-2*eorbit[e][11])/2;
        eorbit[e][9]=(eorbit[e][9]-4*eorbit[e][11]);
        eorbit[e][8]=(eorbit[e][8]-eorbit[e][9]-4*eorbit[e][10]-4*eorbit[e][11]);
        eorbit[e][7]=(eorbit[e][7]-eorbit[e][9]-2*eorbit[e][11]);
        eorbit[e][6]=(eorbit[e][6]-eorbit[e][9])/2;
        eorbit[e][5]=(eorbit[e][5]-eorbit[e][9])/2;
        eorbit[e][4]=(eorbit[e][4]-2*eorbit[e][6]-eorbit[e][8]-eorbit[e][9])/2;
        eorbit[e][3]=(eorbit[e][3]-2*eorbit[e][5]-eorbit[e][8]-eorbit[e][9])/2;
        eorbit[e][2]=(eorbit[e][2]-2*eorbit[e][5]-2*eorbit[e][6]-eorbit[e][9]);
    }

    endTime = clock();
    //printf("%.2f\n", (double)(endTime-startTime)/CLOCKS_PER_SEC);

    endTime_all = endTime;
    //printf("total: %.2f\n", (double)(endTime_all-startTime_all)/CLOCKS_PER_SEC);

    free(tri);
    free(C4);
    free(neighx);
    free(neigh);
    free(neigh_edges);
    free(common);
    free(common_list);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
callq 0x7110
movq 0xe199(%rip), %rax      # 0x15f50
movslq (%rax), %rbx
pushq $0x4
popq %rsi
movq %rbx, %rdi
callq 0x7100
movq %rax, 0x38(%rsp)
movq 0xe1e7(%rip), %rax      # 0x15fb8
movq (%rax), %rax
movq 0xe1ed(%rip), %rcx      # 0x15fc8
movq (%rcx), %rcx
movq 0xe1b3(%rip), %rdx      # 0x15f98
movq (%rdx), %rdx
xorl %esi, %esi
testl %ebx, %ebx
movl $0x0, %edi
cmovgl %ebx, %edi
cmpq %rdi, %rsi
je 0x7e4a
movslq (%rax,%rsi,8), %r8
movslq 0x4(%rax,%rsi,8), %r9
movl (%rcx,%r8,4), %r10d
xorl %r11d, %r11d
xorl %ebx, %ebx
movslq %r11d, %r14
movslq %ebx, %rbx
cmpl %r10d, %ebx
jge 0x7e45
cmpl (%rcx,%r9,4), %r11d
jge 0x7e45
movq (%rdx,%r8,8), %r15
movq (%rdx,%r9,8), %r12
movl (%r12,%r14,4), %ebp
cmpl %ebp, (%r15,%rbx,4)
je 0x7e35
jge 0x7e40
incq %rbx
jmp 0x7e11
movq 0x38(%rsp), %r14
incl (%r14,%rsi,4)
incl %ebx
incl %r11d
jmp 0x7e0b
incq %rsi
jmp 0x7df4
callq 0x7110
movq 0xe0fa(%rip), %rax      # 0x15f50
movslq (%rax), %rdi
pushq $0x8
popq %rsi
callq 0x7100
movq %rax, 0x50(%rsp)
movq 0xe133(%rip), %rax      # 0x15fa0
movslq (%rax), %r15
leaq (,%r15,4), %rbx
movq %rbx, %rdi
callq 0x7260
movq %rax, 0x48(%rsp)
movq %rax, %rdi
movl $0xff, %esi
movq %rbx, %rdx
callq 0x70d0
movq %rbx, %rdi
callq 0x7260
movq %rax, 0x20(%rsp)
movq %r15, %rdi
shlq $0x3, %rdi
callq 0x7260
movq %rax, 0x58(%rsp)
xorl %ecx, %ecx
movq 0xe0d4(%rip), %r12      # 0x15f90
movslq %r15d, %rax
cmpq %rax, %rcx
jge 0x80b0
movq 0xe0f9(%rip), %rax      # 0x15fc8
movq %rcx, %rdx
movq (%rax), %rcx
movq (%r12), %rax
movq %rdx, 0x28(%rsp)
movl (%rcx,%rdx,4), %edx
movslq %edx, %rsi
xorl %edi, %edi
cmpq %rsi, %rdi
jge 0x7f0b
movq 0x28(%rsp), %r8
movq (%rax,%r8,8), %r8
movslq (%r8,%rdi,8), %r9
movl 0x4(%r8,%rdi,8), %r8d
movq 0x48(%rsp), %r10
movl %r8d, (%r10,%r9,4)
incq %rdi
jmp 0x7ee6
xorl %r11d, %r11d
cmpl %edx, %r11d
jge 0x8070
movq 0x28(%rsp), %r9
movq (%rax,%r9,8), %rdi
movslq %r11d, %r8
movslq (%rdi,%r8,8), %rsi
cmpq %rsi, %r9
jle 0x8070
movslq 0x4(%rdi,%r8,8), %rdx
movq %rdx, 0x8(%rsp)
movl (%rcx,%rsi,4), %ecx
xorl %edx, %edx
testl %ecx, %ecx
cmovlel %edx, %ecx
xorl %r13d, %r13d
cmpq %rdx, %rcx
je 0x7f91
movq (%rax,%rsi,8), %r8
movl (%r8,%rdx,8), %edi
cmpl %esi, %edi
jge 0x7f91
movslq %edi, %r9
movq 0x48(%rsp), %r10
movl (%r10,%r9,4), %r9d
cmpl $-0x1, %r9d
je 0x7f8c
movl 0x4(%r8,%rdx,8), %r8d
movslq %r13d, %r13
movq 0x20(%rsp), %r10
movl %edi, (%r10,%r13,4)
movq 0x58(%rsp), %rdi
movl %r9d, (%rdi,%r13,8)
movl %r8d, 0x4(%rdi,%r13,8)
incl %r13d
incq %rdx
jmp 0x7f47
movq %r13, %rax
testl %eax, %eax
movl $0x0, %ecx
cmovgl %eax, %ecx
movq %rcx, 0x30(%rsp)
xorl %ecx, %ecx
pushq $0x1
popq %r14
movl %r11d, 0x60(%rsp)
cmpq 0x30(%rsp), %rcx
je 0x8052
movq 0x20(%rsp), %rax
movl (%rax,%rcx,4), %ebx
movq 0x58(%rsp), %rax
movslq (%rax,%rcx,8), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, 0x18(%rsp)
movslq 0x4(%rax,%rcx,8), %r12
movq %r14, 0x40(%rsp)
cmpl %r14d, %r13d
jle 0x8031
movq 0x20(%rsp), %rax
movl (%rax,%r14,4), %esi
movq 0x58(%rsp), %rax
movslq (%rax,%r14,8), %rbp
movslq 0x4(%rax,%r14,8), %r15
movl %ebx, %edi
movq 0xdfa5(%rip), %rax      # 0x15fa8
callq *(%rax)
testb %al, %al
je 0x802c
movq 0x50(%rsp), %rax
movq 0x8(%rsp), %rcx
incq (%rax,%rcx,8)
movq 0x10(%rsp), %rcx
incq (%rax,%rcx,8)
incq (%rax,%r12,8)
incq (%rax,%rbp,8)
incq (%rax,%r15,8)
incq %r14
jmp 0x7fde
movq 0x18(%rsp), %rcx
incq %rcx
movq 0x40(%rsp), %r14
incq %r14
movq 0xdf48(%rip), %r12      # 0x15f90
movl 0x60(%rsp), %r11d
jmp 0x7fae
incl %r11d
movq 0xdf6c(%rip), %rax      # 0x15fc8
movq (%rax), %rcx
movq 0x28(%rsp), %rax
movl (%rcx,%rax,4), %edx
movq (%r12), %rax
jmp 0x7f0e
xorl %esi, %esi
movslq %edx, %rdx
cmpq %rdx, %rsi
jge 0x8099
movq 0x28(%rsp), %r8
movq (%rax,%r8,8), %rdx
movslq (%rdx,%rsi,8), %rdx
movq 0x48(%rsp), %rdi
orl $-0x1, (%rdi,%rdx,4)
incq %rsi
movl (%rcx,%r8,4), %edx
jmp 0x8072
movq 0x28(%rsp), %rcx
incq %rcx
movq 0xdef8(%rip), %rax      # 0x15fa0
movl (%rax), %r15d
jmp 0x7ebc
callq 0x7110
xorl %r13d, %r13d
movq 0xdee1(%rip), %rax      # 0x15fa0
movslq (%rax), %rax
cmpq %rax, %r13
jge 0x81e9
movq 0xdef6(%rip), %rax      # 0x15fc8
movq (%rax), %rax
movl (%rax,%r13,4), %edx
movq %r13, 0x18(%rsp)
decq %rdx
testl %edx, %edx
js 0x81e1
movq (%r12), %rax
movq (%rax,%r13,8), %rax
movl %edx, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
movslq (%rax,%rcx,8), %r14
cmpq %r14, %r13
jge 0x81e1
movq %rdx, 0x8(%rsp)
movslq 0x4(%rax,%rcx,8), %rbx
movq 0xdeb1(%rip), %rax      # 0x15fc8
movq (%rax), %rax
movl (%rax,%r14,4), %r12d
xorl %r15d, %r15d
decq %r12
testl %r12d, %r12d
js 0x816a
movq 0xde68(%rip), %rax      # 0x15f98
movq (%rax), %rax
movq (%rax,%r14,8), %rax
movl %r12d, %ecx
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
movl (%rax,%rcx,4), %ebp
cmpl %r14d, %ebp
jle 0x816a
movl %r13d, %edi
movl %ebp, %esi
movq 0xde54(%rip), %rax      # 0x15fa8
callq *(%rax)
testb %al, %al
je 0x8121
movslq %r15d, %rax
incl %r15d
movq 0x20(%rsp), %rcx
movl %ebp, (%rcx,%rax,4)
jmp 0x8121
testl %r15d, %r15d
movl $0x0, %eax
cmovgl %r15d, %eax
movq %rax, 0x10(%rsp)
xorl %r12d, %r12d
pushq $0x1
popq %r14
cmpq 0x10(%rsp), %r12
je 0x81cb
movq 0x20(%rsp), %rax
movl (%rax,%r12,4), %ebp
movq %r14, %r13
cmpl %r14d, %r15d
jle 0x81c0
movq 0x20(%rsp), %rax
movl (%rax,%r14,4), %esi
movl %ebp, %edi
movq 0xddfc(%rip), %rax      # 0x15fa8
callq *(%rax)
testb %al, %al
je 0x81bb
movq 0x50(%rsp), %rax
incq (%rax,%rbx,8)
incq %r14
jmp 0x8195
incq %r12
movq %r13, %r14
incq %r14
jmp 0x8182
movq 0xddbe(%rip), %r12      # 0x15f90
movq 0x8(%rsp), %rdx
movq 0x18(%rsp), %r13
jmp 0x80de
incq %r13
jmp 0x80b8
callq 0x7110
movq 0xddab(%rip), %rax      # 0x15fa0
movl (%rax), %ebp
movslq %ebp, %rbx
pushq $0x4
popq %rsi
movq %rbx, %rdi
callq 0x7100
movq %rax, 0x40(%rsp)
shlq $0x2, %rbx
movq %rbx, %rdi
callq 0x7260
movq %rax, 0x30(%rsp)
xorl %r13d, %r13d
xorl %edx, %edx
movslq %ebp, %rax
cmpq %rax, %r13
jge 0x8519
testl %edx, %edx
movl $0x0, %eax
cmovlel %eax, %edx
xorl %eax, %eax
movq 0x40(%rsp), %rbp
cmpq %rax, %rdx
je 0x8255
movq 0x30(%rsp), %rcx
movslq (%rcx,%rax,4), %rcx
andl $0x0, (%rbp,%rcx,4)
incq %rax
jmp 0x823d
movq 0xdd6c(%rip), %rax      # 0x15fc8
movq (%rax), %rcx
movl (%rcx,%r13,4), %eax
movq 0xdd2e(%rip), %rdx      # 0x15f98
movq (%rdx), %rdx
xorl %esi, %esi
testl %eax, %eax
movl $0x0, %edi
cmovgl %eax, %edi
movq %rdi, 0x8(%rsp)
movq $0x0, 0x18(%rsp)
movq %r13, 0x10(%rsp)
cmpq 0x8(%rsp), %rsi
je 0x82ff
movq (%rdx,%r13,8), %r8
movslq (%r8,%rsi,4), %r8
movl (%rcx,%r8,4), %r9d
testl %r9d, %r9d
movl $0x0, %edi
cmovlel %edi, %r9d
movq 0x10(%rsp), %r13
xorl %r10d, %r10d
cmpq %r10, %r9
je 0x82fa
movq (%rdx,%r8,8), %r11
movl (%r11,%r10,4), %r14d
cmpq %r14, %r13
je 0x82f5
movslq %r14d, %r11
movl (%rbp,%r11,4), %ebx
testl %ebx, %ebx
jne 0x82ee
movq 0x18(%rsp), %rdi
movslq %edi, %r15
incl %edi
movq %rdi, 0x18(%rsp)
movq 0x30(%rsp), %rdi
movl %r14d, (%rdi,%r15,4)
movq 0x10(%rsp), %r13
incl %ebx
movl %ebx, (%rbp,%r11,4)
incq %r10
jmp 0x82b3
incq %rsi
jmp 0x828c
xorl %esi, %esi
movslq %eax, %rdx
cmpq %rdx, %rsi
jge 0x8503
movq (%r12), %rdx
movq (%rdx,%r13,8), %rdx
movslq (%rdx,%rsi,8), %rbx
movq %rsi, 0x60(%rsp)
movslq 0x4(%rdx,%rsi,8), %rdx
movq %rdx, 0x8(%rsp)
xorl %r15d, %r15d
movslq %eax, %rdx
cmpq %rdx, %r15
jge 0x8414
movq (%r12), %rdx
movq (%rdx,%r13,8), %rdx
movslq (%rdx,%r15,8), %rbp
cmpl %ebx, %ebp
je 0x840c
movslq 0x4(%rdx,%r15,8), %r12
movl %ebx, %edi
movl %ebp, %esi
movq 0xdc4d(%rip), %rax      # 0x15fa8
callq *(%rax)
movq 0xdc64(%rip), %rcx      # 0x15fc8
movq (%rcx), %rcx
testb %al, %al
je 0x83fc
movq 0x10(%rsp), %r13
cmpq %rbx, %r13
jge 0x83ae
movq 0xdbe0(%rip), %rax      # 0x15f60
movq (%rax), %rax
movq 0x8(%rsp), %rsi
movq (%rax,%rsi,8), %rax
incq 0x8(%rax)
movq 0x38(%rsp), %rdx
movl (%rdx,%rsi,4), %edx
decl %edx
movslq %edx, %rdx
addq %rdx, 0x50(%rax)
movl (%rcx,%rbp,4), %edx
addl $-0x2, %edx
movslq %edx, %rdx
addq %rdx, 0x38(%rax)
movq 0xdbab(%rip), %rax      # 0x15f60
movq (%rax), %rax
movq 0x8(%rsp), %rdx
movq (%rax,%rdx,8), %rdx
movl (%rcx,%r13,4), %eax
movq 0x38(%rsp), %rsi
movd (%rsi,%r12,4), %xmm0
movd %eax, %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
paddd 0x9c50(%rip), %xmm1     # 0x12030
pxor %xmm0, %xmm0
pcmpgtd %xmm1, %xmm0
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movdqu 0x40(%rdx), %xmm0
paddq %xmm1, %xmm0
movdqu %xmm0, 0x40(%rdx)
jmp 0x8405
movq 0x10(%rsp), %r13
movl (%rcx,%r13,4), %eax
movq 0xdb84(%rip), %r12      # 0x15f90
incq %r15
jmp 0x832b
xorl %r15d, %r15d
movslq (%rcx,%rbx,4), %rax
cmpq %rax, %r15
jge 0x84f2
movq (%r12), %rax
movq (%rax,%rbx,8), %rax
movl (%rax,%r15,8), %ebp
cmpq %rbp, %r13
je 0x84ea
movslq 0x4(%rax,%r15,8), %r14
movl %r13d, %edi
movl %ebp, %esi
movq 0xdb5e(%rip), %rax      # 0x15fa8
callq *(%rax)
movq 0xdb75(%rip), %rcx      # 0x15fc8
movq (%rcx), %rcx
testb %al, %al
jne 0x84ea
movslq %ebp, %rdx
movq 0xdaf8(%rip), %rax      # 0x15f60
movq (%rax), %rax
movq 0x8(%rsp), %rsi
movq (%rax,%rsi,8), %rax
incq (%rax)
movq 0x38(%rsp), %rsi
movslq (%rsi,%r14,4), %rsi
addq %rsi, 0x30(%rax)
movq 0x40(%rsp), %rsi
movd (%rsi,%rdx,4), %xmm0
movd (%rcx,%rbx,4), %xmm1
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
paddd 0x9b91(%rip), %xmm1     # 0x12030
pxor %xmm0, %xmm0
pcmpgtd %xmm1, %xmm0
punpckldq %xmm0, %xmm1    # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
movdqu 0x10(%rax), %xmm0
movdqu 0x20(%rax), %xmm2
paddq %xmm1, %xmm2
movdqu %xmm2, 0x20(%rax)
movd (%rcx,%r13,4), %xmm1
movd (%rcx,%rdx,4), %xmm2
punpckldq %xmm1, %xmm2    # xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1]
paddd 0x9b6b(%rip), %xmm2     # 0x12040
pxor %xmm1, %xmm1
pcmpgtd %xmm2, %xmm1
punpckldq %xmm1, %xmm2    # xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1]
paddq %xmm0, %xmm2
movdqu %xmm2, 0x10(%rax)
incq %r15
jmp 0x8417
movq 0x60(%rsp), %rsi
incq %rsi
movl (%rcx,%r13,4), %eax
jmp 0x8301
incq %r13
movq 0xda93(%rip), %rax      # 0x15fa0
movl (%rax), %ebp
movq 0x18(%rsp), %rdx
jmp 0x8220
movq 0xda30(%rip), %rax      # 0x15f50
movl (%rax), %ecx
movq 0xda37(%rip), %rax      # 0x15f60
movq (%rax), %rsi
xorl %edi, %edi
testl %ecx, %ecx
cmovlel %edi, %ecx
pushq $0x2
popq %r8
movdqa 0x9ae1(%rip), %xmm0     # 0x12020
movq 0x40(%rsp), %rbx
cmpq %rdi, %rcx
je 0x8646
movq 0x50(%rsp), %rax
movq (%rax,%rdi,8), %r10
movq (%rsi,%rdi,8), %r9
movq %r10, 0x58(%r9)
movq 0x50(%r9), %rax
subq %r10, %rax
subq %r10, %rax
cqto
idivq %r8
movq %rax, 0x50(%r9)
movq 0x48(%r9), %rdx
leaq (,%r10,4), %r11
leaq (%rdx,%rax,4), %rax
subq %r11, %rdx
movq %rdx, 0x48(%r9)
movq 0x40(%r9), %r11
subq %rax, %r11
movq %r11, 0x40(%r9)
leaq (%rdx,%r10,2), %rax
subq %rax, 0x38(%r9)
addq %rdx, %r11
movdqu 0x18(%r9), %xmm1
movdqu 0x28(%r9), %xmm2
movq %rdx, %xmm3
pshufd $0x44, %xmm3, %xmm3     # xmm3 = xmm3[0,1,0,1]
psubq %xmm3, %xmm2
movdqa %xmm2, %xmm3
psrlq $0x3f, %xmm3
paddq %xmm2, %xmm3
pshufd $0xed, %xmm3, %xmm2     # xmm2 = xmm3[1,3,2,3]
psrad $0x1, %xmm2
movdqa %xmm3, %xmm4
psrlq $0x1, %xmm4
pshufd $0xe8, %xmm4, %xmm4     # xmm4 = xmm4[0,2,2,3]
punpckldq %xmm2, %xmm4    # xmm4 = xmm4[0],xmm2[0],xmm4[1],xmm2[1]
movdqu %xmm4, 0x28(%r9)
pand %xmm0, %xmm3
movq %r11, %xmm2
pshufd $0x44, %xmm2, %xmm2     # xmm2 = xmm2[0,1,0,1]
paddq %xmm3, %xmm2
psubq %xmm2, %xmm1
movdqa %xmm1, %xmm2
psrlq $0x3f, %xmm2
paddq %xmm1, %xmm2
pshufd $0xed, %xmm2, %xmm1     # xmm1 = xmm2[1,3,2,3]
psrad $0x1, %xmm1
psrlq $0x1, %xmm2
pshufd $0xe8, %xmm2, %xmm2     # xmm2 = xmm2[0,2,2,3]
punpckldq %xmm1, %xmm2    # xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1]
movdqu %xmm2, 0x18(%r9)
pshufd $0xee, %xmm4, %xmm1     # xmm1 = xmm4[2,3,2,3]
paddq %xmm4, %xmm1
movq %xmm1, %rax
leaq (%rdx,%rax,2), %rax
subq %rax, 0x10(%r9)
incq %rdi
jmp 0x8544
callq 0x7110
movq 0x38(%rsp), %rdi
callq 0x7220
movq 0x50(%rsp), %rdi
callq 0x7220
movq 0x48(%rsp), %rdi
callq 0x7220
movq 0x20(%rsp), %rdi
callq 0x7220
movq 0x58(%rsp), %rdi
callq 0x7220
movq %rbx, %rdi
callq 0x7220
movq 0x30(%rsp), %rdi
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x7220