LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/icemiliang[P]vot/src/vot/cell.cc
// Function: voro::voronoicell_base::copy(voro::voronoicell_base*)
void voronoicell_base::copy(voronoicell_base* vb) {
    int i,j;
    p=vb->p;up=0;
    for(i=0;i<current_vertex_order;i++) {
        mec[i]=vb->mec[i];
        for(j=0;j<mec[i]*(2*i+1);j++) mep[i][j]=vb->mep[i][j];
        for(j=0;j<mec[i]*(2*i+1);j+=2*i+1) ed[mep[i][j+2*i]]=mep[i]+j;
    }
    for(i=0;i<p;i++) nu[i]=vb->nu[i];
    for(i=0;i<3*p;i++) pts[i]=vb->pts[i];
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
movl 0x18(%rsi), %eax
movl %eax, 0x18(%rdi)
movl $0x0, 0x1c(%rdi)
cmpl $0x0, 0xc(%rdi)
jle 0x1bda2
movq 0x40(%rdi), %r9
movl $0x1, %eax
movl $0x4, %ecx
xorl %edx, %edx
xorl %r8d, %r8d
movq 0x40(%rsi), %r10
movl (%r10,%r8,4), %r11d
movl %r11d, (%r9,%r8,4)
leal (%r8,%r8), %r10d
movslq %r10d, %r10
incq %r10
imull %r10d, %r11d
testl %r11d, %r11d
jle 0x1bd83
movq 0x48(%rsi), %r11
movq (%r11,%r8,8), %r11
movq 0x48(%rdi), %rbx
movq (%rbx,%r8,8), %rbx
xorl %r14d, %r14d
movl (%r11,%r14,4), %ebp
movl %ebp, (%rbx,%r14,4)
incq %r14
movslq (%r9,%r8,4), %r15
imulq %r10, %r15
cmpq %r15, %r14
jl 0x1bd30
testl %r15d, %r15d
jle 0x1bd83
movslq %r10d, %r10
xorl %r11d, %r11d
xorl %ebx, %ebx
movq 0x20(%rdi), %r9
movq 0x48(%rdi), %r14
movq (%r14,%r8,8), %r14
addq %r11, %r14
movslq (%rdx,%r14), %r15
movq %r14, (%r9,%r15,8)
addq %rax, %rbx
movq 0x40(%rdi), %r9
movslq (%r9,%r8,4), %r14
imulq %r10, %r14
addq %rcx, %r11
cmpq %r14, %rbx
jl 0x1bd55
incq %r8
movslq 0xc(%rdi), %r10
addq $0x2, %rax
addq $0x8, %rdx
addq $0x8, %rcx
cmpq %r10, %r8
jl 0x1bcfe
movl 0x18(%rdi), %eax
testl %eax, %eax
jle 0x1bdf6
movq 0x28(%rsi), %rax
movq 0x28(%rdi), %rcx
xorl %edx, %edx
movl (%rax,%rdx,4), %r8d
movl %r8d, (%rcx,%rdx,4)
incq %rdx
movslq 0x18(%rdi), %r8
cmpq %r8, %rdx
jl 0x1bdb0
testl %r8d, %r8d
jle 0x1bdf6
leal (%r8,%r8,2), %r8d
movq 0x30(%rsi), %rax
movq 0x30(%rdi), %rcx
cmpl $0x2, %r8d
movl $0x1, %edx
cmovgel %r8d, %edx
xorl %esi, %esi
movsd (%rax,%rsi,8), %xmm0
movsd %xmm0, (%rcx,%rsi,8)
incq %rsi
cmpq %rsi, %rdx
jne 0x1bde4
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/icemiliang[P]vot/src/vot/cell.cc
// Function: voro::voronoicell_base::translate(double, double, double)
void voronoicell_base::translate(double x,double y,double z) {
    x*=2;y*=2;z*=2;
    double *ptsp=pts;
    while(ptsp<pts+3*p) {
        *(ptsp++)=x;*(ptsp++)=y;*(ptsp++)=z;
    }
}

// Assembly:
movslq 0x18(%rdi), %rcx
testq %rcx, %rcx
jle 0x1c005
unpcklpd %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
addpd %xmm0, %xmm0
addsd %xmm2, %xmm2
movq 0x30(%rdi), %rax
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,8), %rcx
movupd %xmm0, (%rax)
movsd %xmm2, 0x10(%rax)
addq $0x18, %rax
cmpq %rcx, %rax
jb 0x1bff3
retq
// File: /workspace/github_cpp_makefile_star2_O3/icemiliang[P]vot/src/vot/cell.cc
// Function: voro::voronoicell_base::init_octahedron_base(double)
void voronoicell_base::init_octahedron_base(double l) {
    for(int i=0;i<current_vertex_order;i++) mec[i]=0;up=0;
    mec[4]=p=6;l*=2;
    *pts=-l;pts[1]=0;pts[2]=0;
    pts[3]=l;pts[4]=0;pts[5]=0;
    pts[6]=0;pts[7]=-l;pts[8]=0;
    pts[9]=0;pts[10]=l;pts[11]=0;
    pts[12]=0;pts[13]=0;pts[14]=-l;
    pts[15]=0;pts[16]=0;pts[17]=l;
    int *q=mep[4];
    *q=2;q[1]=5;q[2]=3;q[3]=4;q[4]=0;q[5]=0;q[6]=0;q[7]=0;q[8]=0;
    q[9]=2;q[10]=4;q[11]=3;q[12]=5;q[13]=2;q[14]=2;q[15]=2;q[16]=2;q[17]=1;
    q[18]=0;q[19]=4;q[20]=1;q[21]=5;q[22]=0;q[23]=3;q[24]=0;q[25]=1;q[26]=2;
    q[27]=0;q[28]=5;q[29]=1;q[30]=4;q[31]=2;q[32]=3;q[33]=2;q[34]=1;q[35]=3;
    q[36]=0;q[37]=3;q[38]=1;q[39]=2;q[40]=3;q[41]=3;q[42]=1;q[43]=1;q[44]=4;
    q[45]=0;q[46]=2;q[47]=1;q[48]=3;q[49]=1;q[50]=3;q[51]=3;q[52]=1;q[53]=5;
    *ed=q;ed[1]=q+9;ed[2]=q+18;ed[3]=q+27;ed[4]=q+36;ed[5]=q+45;
    *nu=nu[1]=nu[2]=nu[3]=nu[4]=nu[5]=4;
}

// Assembly:
cmpl $0x0, 0xc(%rdi)
movq 0x40(%rdi), %rax
jle 0x1c213
xorl %ecx, %ecx
movl $0x0, (%rax,%rcx,4)
incq %rcx
movslq 0xc(%rdi), %rdx
cmpq %rdx, %rcx
jl 0x1c200
movq $0x6, 0x18(%rdi)
movl $0x6, 0x10(%rax)
addsd %xmm0, %xmm0
movapd 0x2e942(%rip), %xmm1    # 0x4ab70
xorpd %xmm0, %xmm1
movq 0x30(%rdi), %rax
movlpd %xmm1, (%rax)
xorps %xmm2, %xmm2
movups %xmm2, 0x8(%rax)
movsd %xmm0, 0x18(%rax)
movups %xmm2, 0x20(%rax)
xorl %ecx, %ecx
movq %rcx, 0x30(%rax)
movlpd %xmm1, 0x38(%rax)
movups %xmm2, 0x40(%rax)
movsd %xmm0, 0x50(%rax)
movups %xmm2, 0x58(%rax)
movq %rcx, 0x68(%rax)
movlpd %xmm1, 0x70(%rax)
movups %xmm2, 0x78(%rax)
movsd %xmm0, 0x88(%rax)
movq 0x48(%rdi), %rax
movq 0x20(%rax), %rax
movaps 0x3321a(%rip), %xmm0    # 0x4f4a0
movups %xmm0, (%rax)
leaq 0x24(%rax), %rcx
movups %xmm2, 0x10(%rax)
movl $0x0, 0x20(%rax)
movaps 0x33211(%rip), %xmm0    # 0x4f4b0
movups %xmm0, 0x24(%rax)
movaps 0x33216(%rip), %xmm0    # 0x4f4c0
movups %xmm0, 0x34(%rax)
leaq 0x48(%rax), %rdx
movaps 0x33217(%rip), %xmm0    # 0x4f4d0
movups %xmm0, 0x44(%rax)
movaps 0x3321c(%rip), %xmm0    # 0x4f4e0
movups %xmm0, 0x54(%rax)
leaq 0x6c(%rax), %rsi
movaps 0x3321d(%rip), %xmm0    # 0x4f4f0
movups %xmm0, 0x64(%rax)
movaps 0x33222(%rip), %xmm0    # 0x4f500
movups %xmm0, 0x74(%rax)
leaq 0x90(%rax), %r8
movaps 0x33220(%rip), %xmm0    # 0x4f510
movups %xmm0, 0x84(%rax)
movaps 0x33222(%rip), %xmm0    # 0x4f520
movups %xmm0, 0x94(%rax)
movaps 0x33224(%rip), %xmm0    # 0x4f530
movups %xmm0, 0xa4(%rax)
leaq 0xb4(%rax), %r9
movaps 0x3321f(%rip), %xmm0    # 0x4f540
movups %xmm0, 0xb4(%rax)
movaps 0x33221(%rip), %xmm0    # 0x4f550
movups %xmm0, 0xc4(%rax)
movl $0x5, 0xd4(%rax)
movq 0x20(%rdi), %r10
movq %rax, (%r10)
movq 0x20(%rdi), %rax
movq %rcx, 0x8(%rax)
movq 0x20(%rdi), %rax
movq %rdx, 0x10(%rax)
movq 0x20(%rdi), %rax
movq %rsi, 0x18(%rax)
movq 0x20(%rdi), %rax
movq %r8, 0x20(%rax)
movq 0x20(%rdi), %rax
movq %r9, 0x28(%rax)
movq 0x28(%rdi), %rax
movabsq $0x400000004, %rcx      # imm = 0x400000004
movq %rcx, 0x10(%rax)
movaps 0x331d8(%rip), %xmm0    # 0x4f560
movups %xmm0, (%rax)
retq
// File: /workspace/github_cpp_makefile_star2_O3/icemiliang[P]vot/src/vot/cell.cc
// Function: voro::voronoicell_base::init_tetrahedron_base(double, double, double, double, double, double, double, double, double, double, double, double)
void voronoicell_base::init_tetrahedron_base(double x0,double y0,double z0,double x1,double y1,double z1,double x2,double y2,double z2,double x3,double y3,double z3) {
    for(int i=0;i<current_vertex_order;i++) mec[i]=0;up=0;
    mec[3]=p=4;
    *pts=x0*2;pts[1]=y0*2;pts[2]=z0*2;
    pts[3]=x1*2;pts[4]=y1*2;pts[5]=z1*2;
    pts[6]=x2*2;pts[7]=y2*2;pts[8]=z2*2;
    pts[9]=x3*2;pts[10]=y3*2;pts[11]=z3*2;
    int *q=mep[3];
    *q=1;q[1]=3;q[2]=2;q[3]=0;q[4]=0;q[5]=0;q[6]=0;
    q[7]=0;q[8]=2;q[9]=3;q[10]=0;q[11]=2;q[12]=1;q[13]=1;
    q[14]=0;q[15]=3;q[16]=1;q[17]=2;q[18]=2;q[19]=1;q[20]=2;
    q[21]=0;q[22]=1;q[23]=2;q[24]=1;q[25]=2;q[26]=1;q[27]=3;
    *ed=q;ed[1]=q+7;ed[2]=q+14;ed[3]=q+21;
    *nu=nu[1]=nu[2]=nu[3]=3;
}

// Assembly:
movsd 0x20(%rsp), %xmm9
movsd 0x18(%rsp), %xmm8
movsd 0x10(%rsp), %xmm11
movsd 0x8(%rsp), %xmm10
cmpl $0x0, 0xc(%rdi)
movq 0x40(%rdi), %rax
jle 0x1c3c7
xorl %ecx, %ecx
movl $0x0, (%rax,%rcx,4)
incq %rcx
movslq 0xc(%rdi), %rdx
cmpq %rdx, %rcx
jl 0x1c3b4
movq $0x4, 0x18(%rdi)
movl $0x4, 0xc(%rax)
unpcklpd %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
addpd %xmm0, %xmm0
movq 0x30(%rdi), %rax
movupd %xmm0, (%rax)
unpcklpd %xmm3, %xmm2            # xmm2 = xmm2[0],xmm3[0]
addpd %xmm2, %xmm2
movupd %xmm2, 0x10(%rax)
unpcklpd %xmm5, %xmm4            # xmm4 = xmm4[0],xmm5[0]
addpd %xmm4, %xmm4
movupd %xmm4, 0x20(%rax)
unpcklpd %xmm7, %xmm6            # xmm6 = xmm6[0],xmm7[0]
addpd %xmm6, %xmm6
movupd %xmm6, 0x30(%rax)
unpcklpd %xmm11, %xmm10          # xmm10 = xmm10[0],xmm11[0]
addpd %xmm10, %xmm10
movupd %xmm10, 0x40(%rax)
unpcklpd %xmm9, %xmm8            # xmm8 = xmm8[0],xmm9[0]
addpd %xmm8, %xmm8
movupd %xmm8, 0x50(%rax)
movq 0x48(%rdi), %rax
movq 0x18(%rax), %rax
movabsq $0x300000001, %rcx      # imm = 0x300000001
movq %rcx, (%rax)
movl $0x2, 0x8(%rax)
leaq 0x1c(%rax), %rcx
xorpd %xmm0, %xmm0
movupd %xmm0, 0xc(%rax)
movl $0x0, 0x1c(%rax)
movaps 0x3310c(%rip), %xmm0    # 0x4f570
movups %xmm0, 0x20(%rax)
leaq 0x38(%rax), %rdx
movaps 0x3310d(%rip), %xmm0    # 0x4f580
movups %xmm0, 0x30(%rax)
movaps 0x33112(%rip), %xmm0    # 0x4f590
movups %xmm0, 0x40(%rax)
leaq 0x54(%rax), %rsi
movaps 0x33113(%rip), %xmm0    # 0x4f5a0
movups %xmm0, 0x50(%rax)
movaps 0x33118(%rip), %xmm0    # 0x4f5b0
movups %xmm0, 0x60(%rax)
movq 0x20(%rdi), %r8
movq %rax, (%r8)
movq 0x20(%rdi), %rax
movq %rcx, 0x8(%rax)
movq 0x20(%rdi), %rax
movq %rdx, 0x10(%rax)
movq 0x20(%rdi), %rax
movq %rsi, 0x18(%rax)
movq 0x28(%rdi), %rax
movaps 0x32fca(%rip), %xmm0    # 0x4f490
movups %xmm0, (%rax)
retq
// File: /workspace/github_cpp_makefile_star2_O3/icemiliang[P]vot/src/vot/cell.cc
// Function: voro::voronoicell_base::max_radius_squared()
double voronoicell_base::max_radius_squared() {
    double r,s,*ptsp=pts+3,*ptse=pts+3*p;
    r=*pts*(*pts)+pts[1]*pts[1]+pts[2]*pts[2];
    while(ptsp<ptse) {
        s=*ptsp*(*ptsp);ptsp++;
        s+=*ptsp*(*ptsp);ptsp++;
        s+=*ptsp*(*ptsp);ptsp++;
        if(s>r) r=s;
    }
    return r;
}

// Assembly:
movq 0x30(%rdi), %rax
movslq 0x18(%rdi), %rcx
movsd (%rax), %xmm0
movsd 0x8(%rax), %xmm1
mulsd %xmm1, %xmm1
mulsd %xmm0, %xmm0
addsd %xmm1, %xmm0
movsd 0x10(%rax), %xmm1
mulsd %xmm1, %xmm1
addsd %xmm0, %xmm1
cmpq $0x2, %rcx
jl 0x1d1a0
leaq (%rcx,%rcx,2), %rcx
leaq (%rax,%rcx,8), %rcx
addq $0x18, %rax
movsd (%rax), %xmm0
movsd 0x8(%rax), %xmm2
mulsd %xmm0, %xmm0
mulsd %xmm2, %xmm2
addsd %xmm0, %xmm2
movsd 0x10(%rax), %xmm0
mulsd %xmm0, %xmm0
addsd %xmm2, %xmm0
maxsd %xmm1, %xmm0
addq $0x18, %rax
movapd %xmm0, %xmm1
cmpq %rcx, %rax
jb 0x1d16c
retq
movapd %xmm1, %xmm0
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/icemiliang[P]vot/src/vot/cell.cc
// Function: voro::voronoicell_base::total_edge_distance()
double voronoicell_base::total_edge_distance() {
    int i,j,k;
    double dis=0,dx,dy,dz;
    for(i=0;i<p-1;i++) for(j=0;j<nu[i];j++) {
        k=ed[i][j];
        if(k>i) {
            dx=pts[3*k]-pts[3*i];
            dy=pts[3*k+1]-pts[3*i+1];
            dz=pts[3*k+2]-pts[3*i+2]; 
            dis+=sqrt(dx*dx+dy*dy+dz*dz);
        }
    }
    return 0.5*dis;
}

// Assembly:
movl 0x18(%rdi), %eax
xorpd %xmm0, %xmm0
cmpl $0x2, %eax
jl 0x1d251
pushq %rbx
decl %eax
movq 0x20(%rdi), %rcx
movq 0x28(%rdi), %rdx
movq 0x30(%rdi), %rsi
xorpd %xmm0, %xmm0
xorl %edi, %edi
movslq (%rdx,%rdi,4), %r8
testq %r8, %r8
jle 0x1d240
leaq (,%rdi,8), %r10
movq (%rcx,%rdi,8), %r9
leaq (%r10,%r10,2), %r10
xorl %r11d, %r11d
movslq (%r9,%r11,4), %rbx
cmpq %rbx, %rdi
jge 0x1d238
leaq (%rbx,%rbx,2), %rbx
movsd (%rsi,%rbx,8), %xmm1
movsd 0x8(%rsi,%rbx,8), %xmm2
subsd (%rsi,%r10), %xmm1
subsd 0x8(%rsi,%r10), %xmm2
movsd 0x10(%rsi,%rbx,8), %xmm3
subsd 0x10(%rsi,%r10), %xmm3
mulsd %xmm2, %xmm2
mulsd %xmm1, %xmm1
addsd %xmm2, %xmm1
mulsd %xmm3, %xmm3
addsd %xmm1, %xmm3
xorps %xmm1, %xmm1
sqrtsd %xmm3, %xmm1
addsd %xmm1, %xmm0
incq %r11
cmpq %r11, %r8
jne 0x1d1e7
incq %rdi
cmpq %rax, %rdi
jne 0x1d1cb
mulsd 0x32498(%rip), %xmm0    # 0x4f6e8
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/icemiliang[P]vot/src/vot/cell.cc
// Function: voro::voronoicell_base::draw_pov(double, double, double, _IO_FILE*)
void voronoicell_base::draw_pov(double x,double y,double z,FILE* fp) {
    int i,j,k;double *ptsp=pts,*pt2;
    char posbuf1[128],posbuf2[128];
    for(i=0;i<p;i++,ptsp+=3) {
        sprintf(posbuf1,"%g,%g,%g",x+*ptsp*0.5,y+ptsp[1]*0.5,z+ptsp[2]*0.5);
        fprintf(fp,"sphere{<%s>,r}\n",posbuf1);
        for(j=0;j<nu[i];j++) {
            k=ed[i][j];
            if(k<i) {
                pt2=pts+3*k;
                sprintf(posbuf2,"%g,%g,%g",x+*pt2*0.5,y+0.5*pt2[1],z+0.5*pt2[2]);
                if(strcmp(posbuf1,posbuf2)!=0) fprintf(fp,"cylinder{<%s>,<%s>,r}\n",posbuf1,posbuf2);
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %rsi, (%rsp)
movsd %xmm2, 0x18(%rsp)
movsd %xmm1, 0x10(%rsp)
movsd %xmm0, 0x8(%rsp)
cmpl $0x0, 0x18(%rdi)
jle 0x1d3b9
movq %rdi, %r14
movq 0x30(%rdi), %r13
leaq 0xa0(%rsp), %r12
leaq 0x20(%rsp), %rbp
xorl %r15d, %r15d
movsd (%r13), %xmm0
movsd 0x32440(%rip), %xmm3    # 0x4f6e8
mulsd %xmm3, %xmm0
addsd 0x8(%rsp), %xmm0
movsd 0x8(%r13), %xmm1
mulsd %xmm3, %xmm1
addsd 0x10(%rsp), %xmm1
movsd 0x10(%r13), %xmm2
mulsd %xmm3, %xmm2
addsd 0x18(%rsp), %xmm2
movq %r12, %rdi
leaq 0x32637(%rip), %rsi     # 0x4f913
movb $0x3, %al
callq 0x70b0
movq (%rsp), %rdi
leaq 0x3262e(%rip), %rsi     # 0x4f91c
movq %r12, %rdx
xorl %eax, %eax
callq 0x7550
movq 0x28(%r14), %rax
cmpl $0x0, (%rax,%r15,4)
jle 0x1d3a5
xorl %ebx, %ebx
movq 0x20(%r14), %rax
movq (%rax,%r15,8), %rax
movslq (%rax,%rbx,4), %rax
cmpq %rax, %r15
jle 0x1d391
movq 0x30(%r14), %rcx
leaq (%rax,%rax,2), %rax
movsd (%rcx,%rax,8), %xmm0
movsd 0x323b9(%rip), %xmm3    # 0x4f6e8
mulsd %xmm3, %xmm0
addsd 0x8(%rsp), %xmm0
movsd 0x8(%rcx,%rax,8), %xmm1
mulsd %xmm3, %xmm1
addsd 0x10(%rsp), %xmm1
movsd 0x10(%rcx,%rax,8), %xmm2
mulsd %xmm3, %xmm2
addsd 0x18(%rsp), %xmm2
movq %rbp, %rdi
leaq 0x325b0(%rip), %rsi     # 0x4f913
movb $0x3, %al
callq 0x70b0
movq %r12, %rdi
movq %rbp, %rsi
callq 0x7510
testl %eax, %eax
je 0x1d391
movq (%rsp), %rdi
leaq 0x325a8(%rip), %rsi     # 0x4f92c
movq %r12, %rdx
movq %rbp, %rcx
xorl %eax, %eax
callq 0x7550
incq %rbx
movq 0x28(%r14), %rax
movslq (%rax,%r15,4), %rax
cmpq %rax, %rbx
jl 0x1d309
incq %r15
addq $0x18, %r13
movslq 0x18(%r14), %rax
cmpq %rax, %r15
jl 0x1d29a
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/icemiliang[P]vot/src/vot/cell.cc
// Function: voro::voronoicell_base::check_marginal(int, double&)
int voronoicell_base::check_marginal(int n,double &ans) {
    int i;
    for(i=0;i<n_marg;i+=2) if(marg[i]==n) return marg[i+1];
    if(n_marg==current_marginal) {
        current_marginal<<=1;
        if(current_marginal>max_marginal)
            voro_fatal_error("Marginal case buffer allocation exceeded absolute maximum",VOROPP_MEMORY_ERROR);
#if VOROPP_VERBOSE >=2
        fprintf(stderr,"Marginal cases buffer scaled up to %d\n",i);
#endif
        int *pmarg=new int[current_marginal];
        for(int j=0;j<n_marg;j++) pmarg[j]=marg[j];
        delete [] marg;
        marg=pmarg;
    }
    marg[n_marg++]=n;
    marg[n_marg++]=ans>tolerance?1:(ans<-tolerance?-1:0);
    return marg[n_marg-1];
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
movslq 0x74(%rdi), %r12
testq %r12, %r12
jle 0x1df64
movq 0x78(%rbx), %rax
xorl %ecx, %ecx
cmpl %ebp, (%rax,%rcx,4)
je 0x1dfbe
addq $0x2, %rcx
cmpl %ecx, %r12d
jg 0x1df56
cmpl 0x70(%rbx), %r12d
jne 0x1dfb8
leal (%r12,%r12), %eax
movl %eax, 0x70(%rbx)
cmpl $0x1000001, %eax        # imm = 0x1000001
jge 0x1e045
movslq %eax, %rcx
shlq $0x2, %rcx
testl %eax, %eax
movq $-0x1, %rdi
cmovnsq %rcx, %rdi
callq 0x7030
movq %rax, %r15
movq 0x78(%rbx), %rdi
testl %r12d, %r12d
jle 0x1dfcd
xorl %eax, %eax
movl (%rdi,%rax,4), %ecx
movl %ecx, (%r15,%rax,4)
incq %rax
cmpq %rax, %r12
jne 0x1dfa3
leaq 0x78(%rbx), %r13
jmp 0x1dfd6
movq 0x78(%rbx), %r15
jmp 0x1dfe3
movl %ecx, %ecx
shlq $0x2, %rcx
orq $0x4, %rcx
addq %rcx, %rax
jmp 0x1e034
leaq 0x78(%rbx), %r13
testq %rdi, %rdi
je 0x1dfdf
callq 0x7490
movl 0x74(%rbx), %r12d
movq %r15, (%r13)
leal 0x1(%r12), %eax
movl %eax, 0x74(%rbx)
movslq %r12d, %rax
movl %ebp, (%r15,%rax,4)
movsd (%r14), %xmm0
movsd 0x316f1(%rip), %xmm1    # 0x4f6f0
xorl %eax, %eax
ucomisd %xmm0, %xmm1
seta %al
negl %eax
ucomisd 0x316e6(%rip), %xmm0    # 0x4f6f8
movl $0x1, %ecx
cmovbel %eax, %ecx
movslq 0x74(%rbx), %rax
leal 0x1(%rax), %edx
movl %edx, 0x74(%rbx)
movl %ecx, (%r15,%rax,4)
movslq 0x74(%rbx), %rax
leaq (%r15,%rax,4), %rax
addq $-0x4, %rax
movl (%rax), %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x7c5e
// File: /workspace/github_cpp_makefile_star2_O3/icemiliang[P]vot/src/vot/cell.cc
// Function: voro::voronoicell_base::vertices(std::vector<double, std::allocator<double>>&)
void voronoicell_base::vertices(std::vector<double> &v) {
    v.resize(3*p);
    double *ptsp=pts;
    for(int i=0;i<3*p;i+=3) {
        v[i]=*(ptsp++)*0.5;
        v[i+1]=*(ptsp++)*0.5;
        v[i+2]=*(ptsp++)*0.5;
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movslq 0x18(%rdi), %rax
leaq (%rax,%rax,2), %rsi
movq %rbx, %rdi
callq 0x25d7a
movl 0x18(%r14), %eax
testl %eax, %eax
jle 0x1e358
leaq (%rax,%rax,2), %rax
movq 0x30(%r14), %rcx
movq (%rbx), %rdx
xorl %esi, %esi
movsd 0x313c7(%rip), %xmm0    # 0x4f6e8
movsd (%rcx,%rsi,8), %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, (%rdx,%rsi,8)
movsd 0x8(%rcx,%rsi,8), %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rdx,%rsi,8)
movsd 0x10(%rcx,%rsi,8), %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0x10(%rdx,%rsi,8)
addq $0x3, %rsi
cmpq %rax, %rsi
jb 0x1e321
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/icemiliang[P]vot/src/vot/cell.cc
// Function: voro::voronoicell_base::vertices(double, double, double, std::vector<double, std::allocator<double>>&)
void voronoicell_base::vertices(double x,double y,double z,std::vector<double> &v) {
    v.resize(3*p);
    double *ptsp=pts;
    for(int i=0;i<3*p;i+=3) {
        v[i]=x+*(ptsp++)*0.5;
        v[i+1]=y+*(ptsp++)*0.5;
        v[i+2]=z+*(ptsp++)*0.5;
    }
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movsd %xmm2, 0x10(%rsp)
movsd %xmm1, 0x8(%rsp)
movsd %xmm0, (%rsp)
movq %rdi, %r14
movslq 0x18(%rdi), %rax
leaq (%rax,%rax,2), %rsi
movq %rbx, %rdi
callq 0x25d7a
movsd (%rsp), %xmm4
movsd 0x8(%rsp), %xmm3
movsd 0x10(%rsp), %xmm2
movl 0x18(%r14), %eax
testl %eax, %eax
jle 0x1e4bf
leaq (%rax,%rax,2), %rax
movq 0x30(%r14), %rcx
movq (%rbx), %rdx
xorl %esi, %esi
movsd 0x3126c(%rip), %xmm0    # 0x4f6e8
movsd (%rcx,%rsi,8), %xmm1
mulsd %xmm0, %xmm1
addsd %xmm4, %xmm1
movsd %xmm1, (%rdx,%rsi,8)
movsd 0x8(%rcx,%rsi,8), %xmm1
mulsd %xmm0, %xmm1
addsd %xmm3, %xmm1
movsd %xmm1, 0x8(%rdx,%rsi,8)
movsd 0x10(%rcx,%rsi,8), %xmm1
mulsd %xmm0, %xmm1
addsd %xmm2, %xmm1
movsd %xmm1, 0x10(%rdx,%rsi,8)
addq $0x3, %rsi
cmpq %rax, %rsi
jb 0x1e47c
addq $0x18, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/icemiliang[P]vot/src/vot/cell.cc
// Function: voro::voronoicell_base::plane_intersects_guess(double, double, double, double)
bool voronoicell_base::plane_intersects_guess(double x,double y,double z,double rsq) {
    up=0;
    double g=x*pts[3*up]+y*pts[3*up+1]+z*pts[3*up+2];
    if(g<rsq) {
        int ca=1,cc=p>>3,mp=1;
        double m;
        while(ca<cc) {
            m=x*pts[3*mp]+y*pts[3*mp+1]+z*pts[3*mp+2];
            if(m>g) {
                if(m>rsq) return true;
                g=m;up=mp;
            }
            ca+=mp++;
        }
        return plane_intersects_track(x,y,z,rsq,g);
    }
    return true;
}

// Assembly:
movl $0x0, 0x1c(%rdi)
movq 0x30(%rdi), %rax
movsd 0x8(%rax), %xmm4
mulsd %xmm1, %xmm4
movsd (%rax), %xmm6
mulsd %xmm0, %xmm6
addsd %xmm4, %xmm6
movsd 0x10(%rax), %xmm5
mulsd %xmm2, %xmm5
addsd %xmm6, %xmm5
ucomisd %xmm5, %xmm3
jbe 0x1ee09
movl 0x18(%rdi), %ecx
sarl $0x3, %ecx
cmpl $0x2, %ecx
jl 0x1ee0c
addq $0x28, %rax
movl $0x1, %edx
movl $0x1, %esi
movsd -0x8(%rax), %xmm4
mulsd %xmm1, %xmm4
movsd -0x10(%rax), %xmm6
mulsd %xmm0, %xmm6
addsd %xmm4, %xmm6
movsd (%rax), %xmm4
mulsd %xmm2, %xmm4
addsd %xmm6, %xmm4
ucomisd %xmm5, %xmm4
jbe 0x1edf3
ucomisd %xmm3, %xmm4
ja 0x1ee09
movl %esi, 0x1c(%rdi)
movapd %xmm4, %xmm5
jmp 0x1edf7
movapd %xmm5, %xmm4
addl %esi, %edx
incq %rsi
addq $0x18, %rax
cmpl %ecx, %edx
jl 0x1edbc
jmp 0x25de0
movb $0x1, %al
retq
movapd %xmm5, %xmm4
jmp 0x25de0
nop
// File: /workspace/github_cpp_makefile_star2_O3/icemiliang[P]vot/src/vot/cell.cc
// Function: voro::voronoicell_neighbor::init(double, double, double, double, double, double)
void voronoicell_neighbor::init(double xmin,double xmax,double ymin,double ymax,double zmin,double zmax) {
    init_base(xmin,xmax,ymin,ymax,zmin,zmax);
    int *q=mne[3];
    *q=-5;q[1]=-3;q[2]=-1;
    q[3]=-5;q[4]=-2;q[5]=-3;
    q[6]=-5;q[7]=-1;q[8]=-4;
    q[9]=-5;q[10]=-4;q[11]=-2;
    q[12]=-6;q[13]=-1;q[14]=-3;
    q[15]=-6;q[16]=-3;q[17]=-2;
    q[18]=-6;q[19]=-4;q[20]=-1;
    q[21]=-6;q[22]=-2;q[23]=-4;
    *ne=q;ne[1]=q+3;ne[2]=q+6;ne[3]=q+9;
    ne[4]=q+12;ne[5]=q+15;ne[6]=q+18;ne[7]=q+21;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x1c006
movq 0xa0(%rbx), %rax
movq 0x18(%rax), %rax
leaq 0xc(%rax), %rcx
movaps 0x30305(%rip), %xmm0    # 0x4f5d0
movups %xmm0, (%rax)
leaq 0x18(%rax), %rdx
movaps 0x30307(%rip), %xmm0    # 0x4f5e0
movups %xmm0, 0x10(%rax)
leaq 0x24(%rax), %rsi
movaps 0x30308(%rip), %xmm0    # 0x4f5f0
movups %xmm0, 0x20(%rax)
leaq 0x30(%rax), %rdi
leaq 0x3c(%rax), %r8
movaps 0x30305(%rip), %xmm0    # 0x4f600
movups %xmm0, 0x30(%rax)
leaq 0x48(%rax), %r9
movaps 0x30306(%rip), %xmm0    # 0x4f610
movups %xmm0, 0x40(%rax)
leaq 0x54(%rax), %r10
movaps 0x30307(%rip), %xmm0    # 0x4f620
movups %xmm0, 0x50(%rax)
movq 0xa8(%rbx), %r11
movq %rax, (%r11)
movq 0xa8(%rbx), %rax
movq %rcx, 0x8(%rax)
movq 0xa8(%rbx), %rax
movq %rdx, 0x10(%rax)
movq 0xa8(%rbx), %rax
movq %rsi, 0x18(%rax)
movq 0xa8(%rbx), %rax
movq %rdi, 0x20(%rax)
movq 0xa8(%rbx), %rax
movq %r8, 0x28(%rax)
movq 0xa8(%rbx), %rax
movq %r9, 0x30(%rax)
movq 0xa8(%rbx), %rax
movq %r10, 0x38(%rax)
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/icemiliang[P]vot/src/vot/cell.cc
// Function: voro::voronoicell_neighbor::init_octahedron(double)
void voronoicell_neighbor::init_octahedron(double l) {
    init_octahedron_base(l);
    int *q=mne[4];
    *q=-5;q[1]=-6;q[2]=-7;q[3]=-8;
    q[4]=-1;q[5]=-2;q[6]=-3;q[7]=-4;
    q[8]=-6;q[9]=-5;q[10]=-2;q[11]=-1;
    q[12]=-8;q[13]=-7;q[14]=-4;q[15]=-3;
    q[16]=-5;q[17]=-8;q[18]=-3;q[19]=-2;
    q[20]=-7;q[21]=-6;q[22]=-1;q[23]=-4;
    *ne=q;ne[1]=q+4;ne[2]=q+8;ne[3]=q+12;ne[4]=q+16;ne[5]=q+20;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x1c1f4
movq 0xa0(%rbx), %rax
movq 0x20(%rax), %rax
movaps 0x3029f(%rip), %xmm0    # 0x4f630
movups %xmm0, (%rax)
leaq 0x10(%rax), %rcx
movaps 0x302a1(%rip), %xmm0    # 0x4f640
movups %xmm0, 0x10(%rax)
leaq 0x20(%rax), %rdx
movaps 0x302a2(%rip), %xmm0    # 0x4f650
movups %xmm0, 0x20(%rax)
leaq 0x30(%rax), %rsi
movaps 0x302a3(%rip), %xmm0    # 0x4f660
movups %xmm0, 0x30(%rax)
leaq 0x40(%rax), %rdi
movaps 0x302a4(%rip), %xmm0    # 0x4f670
movups %xmm0, 0x40(%rax)
leaq 0x50(%rax), %r8
movaps 0x302a5(%rip), %xmm0    # 0x4f680
movups %xmm0, 0x50(%rax)
movq 0xa8(%rbx), %r9
movq %rax, (%r9)
movq 0xa8(%rbx), %rax
movq %rcx, 0x8(%rax)
movq 0xa8(%rbx), %rax
movq %rdx, 0x10(%rax)
movq 0xa8(%rbx), %rax
movq %rsi, 0x18(%rax)
movq 0xa8(%rbx), %rax
movq %rdi, 0x20(%rax)
movq 0xa8(%rbx), %rax
movq %r8, 0x28(%rax)
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/icemiliang[P]vot/src/vot/cell.cc
// Function: voro::voronoicell_neighbor::init_tetrahedron(double, double, double, double, double, double, double, double, double, double, double, double)
void voronoicell_neighbor::init_tetrahedron(double x0,double y0,double z0,double x1,double y1,double z1,double x2,double y2,double z2,double x3,double y3,double z3) {
    init_tetrahedron_base(x0,y0,z0,x1,y1,z1,x2,y2,z2,x3,y3,z3);
    int *q=mne[3];
    *q=-4;q[1]=-3;q[2]=-2;
    q[3]=-3;q[4]=-4;q[5]=-1;
    q[6]=-4;q[7]=-2;q[8]=-1;
    q[9]=-2;q[10]=-3;q[11]=-1;
    *ne=q;ne[1]=q+3;ne[2]=q+6;ne[3]=q+9;
}

// Assembly:
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movaps 0x30(%rsp), %xmm8
movaps 0x40(%rsp), %xmm9
movups %xmm9, 0x10(%rsp)
movups %xmm8, (%rsp)
callq 0x1c38c
movq 0xa0(%rbx), %rax
movq 0x18(%rax), %rax
leaq 0xc(%rax), %rcx
movaps 0x30234(%rip), %xmm0    # 0x4f690
movups %xmm0, (%rax)
leaq 0x18(%rax), %rdx
movaps 0x30236(%rip), %xmm0    # 0x4f6a0
movups %xmm0, 0x10(%rax)
leaq 0x24(%rax), %rsi
movaps 0x30237(%rip), %xmm0    # 0x4f6b0
movups %xmm0, 0x20(%rax)
movq 0xa8(%rbx), %rdi
movq %rax, (%rdi)
movq 0xa8(%rbx), %rax
movq %rcx, 0x8(%rax)
movq 0xa8(%rbx), %rax
movq %rdx, 0x10(%rax)
movq 0xa8(%rbx), %rax
movq %rsi, 0x18(%rax)
addq $0x20, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/icemiliang[P]vot/src/vot/cell.cc
// Function: voro::voronoicell_neighbor::voronoicell_neighbor()
voronoicell_neighbor::voronoicell_neighbor() {
    int i;
    mne=new int*[current_vertex_order];
    ne=new int*[current_vertices];
    for(i=0;i<3;i++) mne[i]=new int[init_n_vertices*i];
    mne[3]=new int[init_3_vertices*3];
    for(i=4;i<current_vertex_order;i++) mne[i]=new int[init_n_vertices*i];
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x1ba74
leaq 0x41667(%rip), %rax     # 0x60cc0
movq %rax, (%rbx)
movslq 0xc(%rbx), %r15
leaq (,%r15,8), %rdi
testq %r15, %r15
movq $-0x1, %r14
cmovsq %r14, %rdi
callq 0x7030
movq %rax, 0xa0(%rbx)
movslq 0x8(%rbx), %rax
leaq (,%rax,8), %rdi
testq %rax, %rax
cmovsq %r14, %rdi
callq 0x7030
movq %rax, 0xa8(%rbx)
xorl %r14d, %r14d
xorl %r12d, %r12d
movq %r14, %rdi
callq 0x7030
movq 0xa0(%rbx), %rcx
movq %rax, (%rcx,%r12,8)
incq %r12
addq $0x20, %r14
cmpq $0x3, %r12
jne 0x1f6a7
movl $0xc00, %edi            # imm = 0xC00
callq 0x7030
movq 0xa0(%rbx), %rcx
movq %rax, 0x18(%rcx)
cmpl $0x5, %r15d
jl 0x1f712
shlq $0x5, %r15
movl $0x80, %r14d
movl $0x8, %r12d
movq %r14, %rdi
callq 0x7030
movq 0xa0(%rbx), %rcx
movq %rax, (%rcx,%r12,4)
addq $0x20, %r14
addq $0x2, %r12
cmpq %r14, %r15
jne 0x1f6f2
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x1f722
jmp 0x1f722
movq %rax, %r14
movq %rbx, %rdi
callq 0x1bc00
movq %r14, %rdi
callq 0x76d0
nop
// File: /workspace/github_cpp_makefile_star2_O3/icemiliang[P]vot/src/vot/cell.cc
// Function: voro::voronoicell_base::m_test(int, double&)
inline int voronoicell_base::m_test(int n,double &ans) {
    double *pp=pts+n+(n<<1);
    ans=*(pp++)*px;
    ans+=*(pp++)*py;
    ans+=*pp*pz-prsq;
    if(ans<-tolerance2) {
        return -1;
    } else if(ans>tolerance2) {
        return 1;
    }
    return check_marginal(n,ans);
}

// Assembly:
movslq %esi, %rax
leaq (,%rax,8), %rcx
addq 0x30(%rdi), %rcx
addl %eax, %eax
cltq
movsd (%rcx,%rax,8), %xmm0
mulsd 0x80(%rdi), %xmm0
movsd %xmm0, (%rdx)
movsd 0x8(%rcx,%rax,8), %xmm1
mulsd 0x88(%rdi), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, (%rdx)
movsd 0x10(%rcx,%rax,8), %xmm0
mulsd 0x90(%rdi), %xmm0
subsd 0x98(%rdi), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, (%rdx)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movsd 0x2d7f9(%rip), %xmm1    # 0x4f6c0
ucomisd %xmm0, %xmm1
ja 0x21ee0
movl $0x1, %eax
ucomisd 0x2d7ee(%rip), %xmm0    # 0x4f6c8
jbe 0x1df34
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/icemiliang[P]vot/src/vot/cell.cc
// Function: void voro::voronoicell_base::add_memory_vertices<voro::voronoicell_neighbor>(voro::voronoicell_neighbor&)
void voronoicell_base::add_memory_vertices(vc_class &vc) {
    int i=(current_vertices<<1),j,**pp,*pnu;
    if(i>max_vertices) voro_fatal_error("Vertex memory allocation exceeded absolute maximum",VOROPP_MEMORY_ERROR);
#if VOROPP_VERBOSE >=2
    fprintf(stderr,"Vertex memory scaled up to %d\n",i);
#endif
    double *ppts;
    pp=new int*[i];
    for(j=0;j<current_vertices;j++) pp[j]=ed[j];
    delete [] ed;ed=pp;
    vc.n_add_memory_vertices(i);
    pnu=new int[i];
    for(j=0;j<current_vertices;j++) pnu[j]=nu[j];
    delete [] nu;nu=pnu;
    ppts=new double[3*i];
    for(j=0;j<3*current_vertices;j++) ppts[j]=pts[j];
    delete [] pts;pts=ppts;
    current_vertices=i;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl 0x8(%rdi), %r12d
leal (%r12,%r12), %ebp
cmpl $0x1000001, %ebp        # imm = 0x1000001
jge 0x25023
movq %rsi, %r14
movq %rdi, %rbx
movslq %ebp, %r13
leaq (,%r13,8), %rax
testl %ebp, %ebp
movq $-0x1, %rdi
cmovnsq %rax, %rdi
callq 0x7030
movq %rax, %r15
movq 0x20(%rbx), %rdi
testl %r12d, %r12d
movq %r14, (%rsp)
jle 0x24ef2
xorl %eax, %eax
movq (%rdi,%rax,8), %rcx
movq %rcx, (%r15,%rax,8)
incq %rax
cmpq %rax, %r12
jne 0x24edc
leaq 0x20(%rbx), %r14
jmp 0x24efb
leaq 0x20(%rbx), %r14
testq %rdi, %rdi
je 0x24f00
callq 0x7490
movl %ebp, %eax
shlq $0x3, %rax
testl %ebp, %ebp
movq %r15, (%r14)
movq $-0x1, %rdi
cmovnsq %rax, %rdi
callq 0x7030
movq %rax, %r15
movq (%rsp), %r14
movslq 0x8(%r14), %rax
movq 0xa8(%r14), %rdi
testq %rax, %rax
jle 0x24f46
xorl %ecx, %ecx
movq (%rdi,%rcx,8), %rdx
movq %rdx, (%r15,%rcx,8)
incq %rcx
cmpq %rcx, %rax
jne 0x24f34
jmp 0x24f4b
testq %rdi, %rdi
je 0x24f50
callq 0x7490
shlq $0x2, %r13
testl %ebp, %ebp
movq %r15, 0xa8(%r14)
movq $-0x1, %rdi
cmovnsq %r13, %rdi
callq 0x7030
movq %rax, %r14
movslq 0x8(%rbx), %r15
movq 0x28(%rbx), %rdi
testq %r15, %r15
jle 0x24f94
xorl %eax, %eax
movl (%rdi,%rax,4), %ecx
movl %ecx, (%r14,%rax,4)
incq %rax
cmpq %rax, %r15
jne 0x24f7f
leaq 0x28(%rbx), %r13
jmp 0x24f9d
leaq 0x28(%rbx), %r13
testq %rdi, %rdi
je 0x24fa6
callq 0x7490
movl 0x8(%rbx), %r15d
movq %r14, (%r13)
addl %r12d, %r12d
leal (%r12,%r12,2), %eax
cltq
leaq (,%rax,8), %rcx
testl %eax, %eax
movq $-0x1, %rdi
cmovnsq %rcx, %rdi
callq 0x7030
movq %rax, %r14
testl %r15d, %r15d
jle 0x24fff
leal (%r15,%r15,2), %ecx
movq 0x30(%rbx), %rdi
cmpl $0x2, %ecx
movl $0x1, %eax
cmovgel %ecx, %eax
xorl %ecx, %ecx
movsd (%rdi,%rcx,8), %xmm0
movsd %xmm0, (%r14,%rcx,8)
incq %rcx
cmpq %rcx, %rax
jne 0x24fea
jmp 0x25008
movq 0x30(%rbx), %rdi
testq %rdi, %rdi
je 0x2500d
callq 0x7490
movq %r14, 0x30(%rbx)
movl %ebp, 0x8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x7a2e
// File: /workspace/github_cpp_makefile_star2_O3/icemiliang[P]vot/src/vot/cell.cc
// Function: bool voro::voronoicell_base::search_for_outside_edge<voro::voronoicell>(voro::voronoicell&, int&)
inline bool voronoicell_base::search_for_outside_edge(vc_class &vc,int &up) {
    int i,lp,lw,*j(ds2),*stackp2(ds2);
    double l;
    *(stackp2++)=up;
    while(j<stackp2) {
        up=*(j++);
        for(i=0;i<nu[up];i++) {
            lp=ed[up][i];
            lw=m_test(lp,l);
            if(lw==-1) return true;
            else if(lw==0) add_to_stack(vc,lp,stackp2);
        }
    }
    return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %rbx
movq %rdi, %r14
movq 0x60(%rdi), %rcx
movl (%rdx), %eax
leaq 0x4(%rcx), %rsi
leaq 0x10(%rsp), %rdx
movq %rsi, 0x8(%rsp)
movq %rsi, (%rdx)
movl %eax, (%rcx)
movq 0x28(%rdi), %rax
movq %rcx, 0x18(%rsp)
movslq (%rcx), %rcx
movl %ecx, (%rbx)
cmpl $0x0, (%rax,%rcx,4)
jle 0x2216c
movq 0x8(%rsp), %r12
xorl %r15d, %r15d
movq 0x20(%r14), %rax
movq (%rax,%rcx,8), %rax
movslq (%rax,%r15,4), %r13
movq %r13, %rax
shlq $0x3, %rax
addq 0x30(%r14), %rax
leal (,%r13,2), %ecx
movslq %ecx, %rcx
movsd (%rax,%rcx,8), %xmm0
mulsd 0x80(%r14), %xmm0
movsd 0x98(%r14), %xmm1
xorpd 0x28ac4(%rip), %xmm1    # 0x4ab70
unpcklpd %xmm1, %xmm0            # xmm0 = xmm0[0],xmm1[0]
movupd 0x8(%rax,%rcx,8), %xmm1
movupd 0x88(%r14), %xmm2
mulpd %xmm1, %xmm2
addpd %xmm0, %xmm2
movapd %xmm2, %xmm0
unpckhpd %xmm2, %xmm0            # xmm0 = xmm0[1],xmm2[1]
addsd %xmm2, %xmm0
movsd %xmm0, 0x20(%rsp)
movb $0x1, %bpl
movsd 0x2d5dc(%rip), %xmm1    # 0x4f6c0
ucomisd %xmm0, %xmm1
ja 0x22182
ucomisd 0x2d5d2(%rip), %xmm0    # 0x4f6c8
ja 0x22155
movq %r14, %rdi
movl %r13d, %esi
leaq 0x20(%rsp), %rdx
callq 0x1df34
testl %eax, %eax
je 0x22113
cmpl $-0x1, %eax
jne 0x22155
jmp 0x22182
movq 0x60(%r14), %rax
cmpq %r12, %rax
jae 0x22127
cmpl %r13d, (%rax)
je 0x22155
addq $0x4, %rax
jmp 0x22117
cmpq 0x68(%r14), %r12
jne 0x2213f
movq %r14, %rdi
leaq 0x10(%rsp), %rsi
callq 0x1b948
movq 0x10(%rsp), %r12
leaq 0x4(%r12), %rax
movq %rax, 0x10(%rsp)
movl %r13d, (%r12)
movq %rax, 0x8(%rsp)
movq %rax, %r12
incq %r15
movq 0x28(%r14), %rax
movslq (%rbx), %rcx
movslq (%rax,%rcx,4), %rdx
cmpq %rdx, %r15
jl 0x2206b
movq 0x18(%rsp), %rcx
addq $0x4, %rcx
cmpq 0x8(%rsp), %rcx
jb 0x2204f
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/icemiliang[P]vot/src/vot/cell.cc
// Function: void voro::voronoicell_base::add_memory_vorder<voro::voronoicell_neighbor>(voro::voronoicell_neighbor&)
void voronoicell_base::add_memory_vorder(vc_class &vc) {
    int i=(current_vertex_order<<1),j,*p1,**p2;
    if(i>max_vertex_order) voro_fatal_error("Vertex order memory allocation exceeded absolute maximum",VOROPP_MEMORY_ERROR);
#if VOROPP_VERBOSE >=2
    fprintf(stderr,"Vertex order memory scaled up to %d\n",i);
#endif
    p1=new int[i];
    for(j=0;j<current_vertex_order;j++) p1[j]=mem[j];while(j<i) p1[j++]=0;
    delete [] mem;mem=p1;
    p2=new int*[i];
    for(j=0;j<current_vertex_order;j++) p2[j]=mep[j];
    delete [] mep;mep=p2;
    p1=new int[i];
    for(j=0;j<current_vertex_order;j++) p1[j]=mec[j];while(j<i) p1[j++]=0;
    delete [] mec;mec=p1;
    vc.n_add_memory_vorder(i);
    current_vertex_order=i;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, (%rsp)
movl 0xc(%rdi), %r13d
leal (,%r13,2), %ebp
cmpl $0x801, %ebp            # imm = 0x801
jge 0x2535c
movq %rdi, %rbx
movslq %ebp, %r14
leaq (,%r14,4), %rax
testl %ebp, %ebp
movq $-0x1, %r15
cmovnsq %rax, %r15
movq %r15, %rdi
callq 0x7030
movq %rax, %r12
testl %r13d, %r13d
jle 0x2520a
movq 0x38(%rbx), %rax
xorl %ecx, %ecx
movl (%rax,%rcx,4), %edx
movl %edx, (%r12,%rcx,4)
incq %rcx
cmpq %rcx, %r13
jne 0x251f6
movl %r13d, %eax
jmp 0x2520c
xorl %eax, %eax
cmpl %ebp, %eax
jge 0x25229
movl %eax, %ecx
leaq (%r12,%rcx,4), %rdi
notl %eax
addl %ebp, %eax
leaq 0x4(,%rax,4), %rdx
xorl %esi, %esi
callq 0x71e0
movq 0x38(%rbx), %rdi
testq %rdi, %rdi
je 0x2523b
callq 0x7490
movl 0xc(%rbx), %r13d
shlq $0x3, %r14
testl %ebp, %ebp
movq %r12, 0x38(%rbx)
movq $-0x1, %rdi
cmovnsq %r14, %rdi
callq 0x7030
movq %rax, %r12
movq 0x48(%rbx), %rdi
testl %r13d, %r13d
jle 0x25278
movl %r13d, %eax
xorl %ecx, %ecx
movq (%rdi,%rcx,8), %rdx
movq %rdx, (%r12,%rcx,8)
incq %rcx
cmpq %rcx, %rax
jne 0x25266
jmp 0x2527d
testq %rdi, %rdi
je 0x252b1
callq 0x7490
movslq 0xc(%rbx), %r14
movq %r12, 0x48(%rbx)
movq %r15, %rdi
callq 0x7030
movq %rax, %r15
testq %r14, %r14
jle 0x252c0
movq 0x40(%rbx), %rax
xorl %ecx, %ecx
movl (%rax,%rcx,4), %edx
movl %edx, (%r15,%rcx,4)
incq %rcx
cmpq %rcx, %r14
jne 0x252a0
jmp 0x252c3
movq %r12, 0x48(%rbx)
movq %r15, %rdi
callq 0x7030
movq %rax, %r15
xorl %r14d, %r14d
cmpl %ebp, %r14d
jge 0x252e4
movl %r14d, %eax
leaq (%r15,%rax,4), %rdi
notl %r14d
addl %ebp, %r14d
leaq 0x4(,%r14,4), %rdx
xorl %esi, %esi
callq 0x71e0
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x252f2
callq 0x7490
movl %ebp, %eax
shlq $0x3, %rax
testl %ebp, %ebp
movq %r15, 0x40(%rbx)
movq $-0x1, %rdi
cmovnsq %rax, %rdi
callq 0x7030
movq %rax, %r15
movq (%rsp), %r14
movslq 0xc(%r14), %rax
movq 0xa0(%r14), %rdi
testq %rax, %rax
jle 0x25339
xorl %ecx, %ecx
movq (%rdi,%rcx,8), %rdx
movq %rdx, (%r15,%rcx,8)
incq %rcx
cmpq %rcx, %rax
jne 0x25327
jmp 0x2533e
testq %rdi, %rdi
je 0x25343
callq 0x7490
movq %r15, 0xa0(%r14)
movl %ebp, 0xc(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x7a56
nop
// File: /workspace/github_cpp_makefile_star2_O3/icemiliang[P]vot/src/vot/cell.cc
// Function: bool voro::voronoicell_base::collapse_order1<voro::voronoicell>(voro::voronoicell&)
inline bool voronoicell_base::collapse_order1(vc_class &vc) {
    int i,j,k;
    while(mec[1]>0) {
        up=0;
#if VOROPP_VERBOSE >=1
        fputs("Order one collapse\n",stderr);
#endif
        i=--mec[1];
        j=mep[1][3*i];k=mep[1][3*i+1];
        i=mep[1][3*i+2];
        if(!delete_connection(vc,j,k,false)) return false;
        --p;
        if(up==i) up=0;
        if(p!=i) {
            if(up==p) up=i;
            pts[3*i]=pts[3*p];
            pts[3*i+1]=pts[3*p+1];
            pts[3*i+2]=pts[3*p+2];
            for(k=0;k<nu[p];k++) ed[ed[p][k]][ed[p][nu[p]+k]]=i;
            vc.n_copy_pointer(i,p);
            ed[i]=ed[p];
            nu[i]=nu[p];
            ed[i][nu[i]<<1]=i;
        }
    }
    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq 0x40(%rdi), %rcx
cmpl $0x0, 0x4(%rcx)
jle 0x26f02
movq %rsi, %rbx
movq %rdi, %r14
addq $0x4, %rcx
xorl %ebp, %ebp
movl $0x0, 0x1c(%r14)
movslq (%rcx), %rax
decq %rax
movl %eax, (%rcx)
movq 0x48(%r14), %rcx
movq 0x8(%rcx), %rsi
leaq (%rax,%rax,2), %rax
movl (%rsi,%rax,4), %edx
movl 0x4(%rsi,%rax,4), %ecx
movl 0x8(%rsi,%rax,4), %r15d
movq %r14, %rdi
movq %rbx, %rsi
xorl %r8d, %r8d
callq 0x26f12
testb %al, %al
je 0x26f05
movslq 0x18(%r14), %rsi
decq %rsi
movl %esi, 0x18(%r14)
movl 0x1c(%r14), %ecx
cmpl %r15d, %ecx
jne 0x26e43
movl $0x0, 0x1c(%r14)
xorl %ecx, %ecx
cmpl %r15d, %esi
je 0x26eec
cmpl %esi, %ecx
jne 0x26e54
movl %r15d, 0x1c(%r14)
movslq %r15d, %rcx
movq 0x30(%r14), %rdx
leaq (%rsi,%rsi,2), %rdi
movsd (%rdx,%rdi,8), %xmm0
leaq (%rcx,%rcx,2), %r8
movsd %xmm0, (%rdx,%r8,8)
movsd 0x8(%rdx,%rdi,8), %xmm0
movsd %xmm0, 0x8(%rdx,%r8,8)
movsd 0x10(%rdx,%rdi,8), %xmm0
movsd %xmm0, 0x10(%rdx,%r8,8)
movq 0x20(%r14), %rdx
movq 0x28(%r14), %rdi
movslq %esi, %rsi
movl (%rdi,%rsi,4), %r9d
testl %r9d, %r9d
jle 0x26ec9
xorl %r8d, %r8d
movq (%rdx,%rsi,8), %rsi
movslq (%rsi,%r8,4), %r10
movq (%rdx,%r10,8), %r10
movslq %r9d, %r9
addq %r8, %r9
movslq (%rsi,%r9,4), %rsi
movl %r15d, (%r10,%rsi,4)
incq %r8
movslq 0x18(%r14), %rsi
movslq (%rdi,%rsi,4), %r9
cmpq %r9, %r8
jl 0x26e9f
movq (%rdx,%rsi,8), %rdi
movq %rdi, (%rdx,%rcx,8)
movq 0x28(%r14), %rdx
movl (%rdx,%rsi,4), %esi
movl %esi, (%rdx,%rcx,4)
movq 0x20(%r14), %rdx
movq (%rdx,%rcx,8), %rcx
addl %esi, %esi
movslq %esi, %rdx
movl %r15d, (%rcx,%rdx,4)
movq 0x40(%r14), %rdx
leaq 0x4(%rdx), %rcx
cmpl $0x0, 0x4(%rdx)
jg 0x26de7
movl %eax, %ebp
jmp 0x26f05
movb $0x1, %bpl
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/icemiliang[P]vot/src/vot/container.cc
// Function: voro::container_base::~container_base()
container_base::~container_base() {
    int l;
    for(l=0;l<nxyz;l++) delete [] p[l];
    for(l=0;l<nxyz;l++) delete [] id[l];
    delete [] id;
    delete [] p;
    delete [] co;
    delete [] mem;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x10(%rdi), %eax
testl %eax, %eax
jle 0x27d28
xorl %r14d, %r14d
movq 0xb0(%rbx), %rcx
movq (%rcx,%r14,8), %rdi
testq %rdi, %rdi
je 0x27cf3
callq 0x7490
movl 0x10(%rbx), %eax
incq %r14
movslq %eax, %rcx
cmpq %rcx, %r14
jl 0x27cdb
testl %eax, %eax
jle 0x27d28
xorl %r14d, %r14d
movq 0xa8(%rbx), %rcx
movq (%rcx,%r14,8), %rdi
testq %rdi, %rdi
je 0x27d1d
callq 0x7490
movl 0x10(%rbx), %eax
incq %r14
movslq %eax, %rcx
cmpq %rcx, %r14
jl 0x27d05
movq 0xa8(%rbx), %rdi
testq %rdi, %rdi
je 0x27d39
callq 0x7490
movq 0xb0(%rbx), %rdi
testq %rdi, %rdi
je 0x27d4a
callq 0x7490
movq 0xb8(%rbx), %rdi
testq %rdi, %rdi
je 0x27d5b
callq 0x7490
movq 0xc0(%rbx), %rdi
testq %rdi, %rdi
je 0x27d6c
callq 0x7490
movq 0x50(%rbx), %rdi
testq %rdi, %rdi
je 0x27d7a
callq 0x7490
movq 0x48(%rbx), %rdi
addq $0x8, %rsp
testq %rdi, %rdi
je 0x27d8f
popq %rbx
popq %r14
jmp 0x7490
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/icemiliang[P]vot/src/vot/container.cc
// Function: voro::container_poly::put(int, double, double, double, double)
void container_poly::put(int n,double x,double y,double z,double r) {
    int ijk;
    if(put_locate_block(ijk,x,y,z)) {
        id[ijk][co[ijk]]=n;
        double *pp=p[ijk]+4*co[ijk]++;
        *(pp++)=x;*(pp++)=y;*(pp++)=z;*pp=r;
        if(max_radius<r) max_radius=r;
    }
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0x28, %rsp
movsd %xmm3, 0x8(%rsp)
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x20(%rsp), %rdx
movsd %xmm0, (%rdx)
leaq 0x18(%rsp), %rcx
movsd %xmm1, (%rcx)
leaq 0x10(%rsp), %r8
movsd %xmm2, (%r8)
leaq 0x4(%rsp), %rsi
callq 0x27f84
testb %al, %al
je 0x28084
movslq 0x4(%rsp), %rax
movq 0xa8(%rbx), %rcx
movq 0xb8(%rbx), %rdx
movq (%rcx,%rax,8), %rcx
movslq (%rdx,%rax,4), %rax
movl %ebp, (%rcx,%rax,4)
movq 0xb0(%rbx), %rax
movslq 0x4(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movslq (%rdx,%rcx,4), %rsi
leal 0x1(%rsi), %edi
movl %edi, (%rdx,%rcx,4)
shlq $0x5, %rsi
movsd 0x20(%rsp), %xmm0
movsd %xmm0, (%rax,%rsi)
movsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x8(%rax,%rsi)
movsd 0x10(%rsp), %xmm0
movsd %xmm0, 0x10(%rax,%rsi)
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x18(%rax,%rsi)
ucomisd 0xd8(%rbx), %xmm0
jbe 0x28084
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0xd8(%rbx)
addq $0x28, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/icemiliang[P]vot/src/vot/container.cc
// Function: voro::container_poly::put(voro::particle_order&, int, double, double, double, double)
void container_poly::put(particle_order &vo,int n,double x,double y,double z,double r) {
    int ijk;
    if(put_locate_block(ijk,x,y,z)) {
        id[ijk][co[ijk]]=n;
        vo.add(ijk,co[ijk]);
        double *pp=p[ijk]+4*co[ijk]++;
        *(pp++)=x;*(pp++)=y;*(pp++)=z;*pp=r;
        if(max_radius<r) max_radius=r;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movsd %xmm3, 0x8(%rsp)
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x20(%rsp), %rdx
movsd %xmm0, (%rdx)
leaq 0x18(%rsp), %rcx
movsd %xmm1, (%rcx)
leaq 0x10(%rsp), %r8
movsd %xmm2, (%r8)
leaq 0x4(%rsp), %rsi
callq 0x27f84
testb %al, %al
je 0x28275
movslq 0x4(%rsp), %rcx
movq 0xa8(%rbx), %rdx
movq 0xb8(%rbx), %rax
movq (%rdx,%rcx,8), %rdx
movslq (%rax,%rcx,4), %rcx
movl %ebp, (%rdx,%rcx,4)
movslq 0x4(%rsp), %r15
movl (%rax,%r15,4), %ebp
movq 0x8(%r14), %rcx
movslq 0x10(%r14), %rdx
shlq $0x2, %rdx
addq (%r14), %rdx
cmpq %rdx, %rcx
jne 0x28208
movq %r14, %rdi
callq 0x43692
movq 0x8(%r14), %rcx
movq 0xb8(%rbx), %rax
movl %r15d, (%rcx)
leaq 0x8(%rcx), %rdx
movq %rdx, 0x8(%r14)
movl %ebp, 0x4(%rcx)
movq 0xb0(%rbx), %rcx
movslq 0x4(%rsp), %rdx
movq (%rcx,%rdx,8), %rcx
movslq (%rax,%rdx,4), %rsi
leal 0x1(%rsi), %edi
movl %edi, (%rax,%rdx,4)
shlq $0x5, %rsi
movsd 0x20(%rsp), %xmm0
movsd %xmm0, (%rcx,%rsi)
movsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x8(%rcx,%rsi)
movsd 0x10(%rsp), %xmm0
movsd %xmm0, 0x10(%rcx,%rsi)
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x18(%rcx,%rsi)
ucomisd 0xd8(%rbx), %xmm0
jbe 0x28275
movsd %xmm0, 0xd8(%rbx)
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/icemiliang[P]vot/src/vot/container.cc
// Function: voro::container_base::add_particle_memory(int)
void container_base::add_particle_memory(int i) {
    int l,nmem=mem[i]<<1;

    // Carry out a check on the memory allocation size, and
    // print a status message if requested
    if(nmem>max_particle_memory)
        voro_fatal_error("Absolute maximum memory allocation exceeded",VOROPP_MEMORY_ERROR);
#if VOROPP_VERBOSE >=3
    fprintf(stderr,"Particle memory in region %d scaled up to %d\n",i,nmem);
#endif

    // Allocate new memory and copy in the contents of the old arrays
    int *idp=new int[nmem];
    for(l=0;l<co[i];l++) idp[l]=id[i][l];
    double *pp=new double[ps*nmem];
    for(l=0;l<ps*co[i];l++) pp[l]=p[i][l];

    // Update pointers and delete old arrays
    mem[i]=nmem;
    delete [] id[i];id[i]=idp;
    delete [] p[i];p[i]=pp;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq 0xc0(%rdi), %rax
movslq %esi, %r12
movq %rax, 0x10(%rsp)
movl (%rax,%r12,4), %ebp
addl %ebp, %ebp
cmpl $0x1000001, %ebp        # imm = 0x1000001
jge 0x283b1
movq %rdi, %rbx
movslq %ebp, %rdi
shlq $0x2, %rdi
testl %ebp, %ebp
movq $-0x1, %r15
cmovsq %r15, %rdi
callq 0x7030
movq %rax, %r14
movq 0xb8(%rbx), %rax
movslq (%rax,%r12,4), %r13
testq %r13, %r13
jle 0x282fa
movq 0xa8(%rbx), %rax
movq (%rax,%r12,8), %rax
xorl %ecx, %ecx
movl (%rax,%rcx,4), %edx
movl %edx, (%r14,%rcx,4)
incq %rcx
cmpq %r13, %rcx
jb 0x282eb
movq %r12, 0x8(%rsp)
movq %rbx, %r12
movl 0xc8(%rbx), %ebx
movl %ebx, %eax
imull %ebp, %eax
cltq
leaq (,%rax,8), %rdi
testl %eax, %eax
cmovsq %r15, %rdi
callq 0x7030
movq %rax, %r15
imull %ebx, %r13d
movq %r12, %rbx
movq 0x8(%rsp), %r12
testl %r13d, %r13d
jle 0x28359
movq 0xb0(%rbx), %rax
movq (%rax,%r12,8), %rax
movl %r13d, %ecx
xorl %edx, %edx
movsd (%rax,%rdx,8), %xmm0
movsd %xmm0, (%r15,%rdx,8)
incq %rdx
cmpq %rdx, %rcx
jne 0x28346
movq 0x10(%rsp), %rax
movl %ebp, (%rax,%r12,4)
movq 0xa8(%rbx), %rax
movq (%rax,%r12,8), %rdi
testq %rdi, %rdi
je 0x2837e
callq 0x7490
movq 0xa8(%rbx), %rax
movq %r14, (%rax,%r12,8)
movq 0xb0(%rbx), %rax
movq (%rax,%r12,8), %rdi
testq %rdi, %rdi
je 0x2839e
callq 0x7490
movq 0xb0(%rbx), %rax
movq %r15, (%rax,%r12,8)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x7e36
// File: /workspace/github_cpp_makefile_star2_O3/icemiliang[P]vot/src/vot/container.cc
// Function: voro::container::cell_index(double, double, double)
int container::cell_index(double x, double y, double z) {
    int ai, aj, ak, ci, cj, ck, ijk;
    particle_record w;
    double mrs;

    // If the given vector lies outside the domain, but the container
    // is periodic, then remap it back into the domain
    if (!remap(ai, aj, ak, ci, cj, ck, x, y, z, ijk)) return false;
    vc.find_voronoi_cell(x, y, z, ci, cj, ck, ijk, w, mrs);

    if (w.ijk != -1) {

        // Assemble the position vector of the particle to be returned,
        // applying a periodic remapping if necessary
        if (xperiodic) { ci += w.di; if (ci<0 || ci >= nx) ai += step_div(ci, nx); }
        if (yperiodic) { cj += w.dj; if (cj<0 || cj >= ny) aj += step_div(cj, ny); }
        if (zperiodic) { ck += w.dk; if (ck<0 || ck >= nz) ak += step_div(ck, nz); }
        
        // return cellIndex
        return id[w.ijk][w.l];
    }

    // If no particle if found then just return false
    return -1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x60, %rsp
movq %rdi, %rbx
leaq 0x38(%rsp), %rax
movsd %xmm0, (%rax)
leaq 0x30(%rsp), %r10
movsd %xmm1, (%r10)
leaq 0x28(%rsp), %r11
movsd %xmm2, (%r11)
subq $0x8, %rsp
leaq 0x20(%rsp), %r14
leaq 0x14(%rsp), %r15
leaq 0x2c(%rsp), %rsi
leaq 0x28(%rsp), %rdx
leaq 0x24(%rsp), %rcx
leaq 0x1c(%rsp), %r8
leaq 0x18(%rsp), %r9
pushq %r14
pushq %r11
pushq %r10
pushq %rax
pushq %r15
callq 0x29d3c
addq $0x30, %rsp
movl %eax, %ecx
xorl %eax, %eax
testb %cl, %cl
je 0x28770
leaq 0xd0(%rbx), %rdi
movsd 0x38(%rsp), %xmm0
movsd 0x30(%rsp), %xmm1
movsd 0x28(%rsp), %xmm2
movl 0x14(%rsp), %esi
movl 0x10(%rsp), %edx
movl 0xc(%rsp), %ecx
movl 0x18(%rsp), %r8d
subq $0x8, %rsp
leaq 0x60(%rsp), %rax
leaq 0x4c(%rsp), %r14
movq %r14, %r9
pushq %rax
callq 0x2f12c
addq $0x10, %rsp
movslq (%r14), %rcx
cmpq $-0x1, %rcx
je 0x286d4
cmpb $0x1, 0xa0(%rbx)
jne 0x286e9
movl 0x14(%rsp), %eax
addl 0x4c(%rsp), %eax
movl %eax, 0x14(%rsp)
setns %dl
movl (%rbx), %esi
cmpl %esi, %eax
setl %dil
testb %dil, %dl
jne 0x286e9
testl %eax, %eax
js 0x286de
cltd
idivl %esi
jmp 0x286e5
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x28770
incl %eax
cltd
idivl %esi
decl %eax
addl %eax, 0x24(%rsp)
cmpb $0x1, 0xa1(%rbx)
jne 0x28723
movl 0x10(%rsp), %eax
addl 0x50(%rsp), %eax
movl %eax, 0x10(%rsp)
setns %dl
movl 0x4(%rbx), %esi
cmpl %esi, %eax
setl %dil
testb %dil, %dl
jne 0x28723
testl %eax, %eax
js 0x28718
cltd
idivl %esi
jmp 0x2871f
incl %eax
cltd
idivl %esi
decl %eax
addl %eax, 0x20(%rsp)
cmpb $0x1, 0xa2(%rbx)
jne 0x2875d
movl 0xc(%rsp), %eax
addl 0x54(%rsp), %eax
movl %eax, 0xc(%rsp)
setns %dl
movl 0x8(%rbx), %esi
cmpl %esi, %eax
setl %dil
testb %dil, %dl
jne 0x2875d
testl %eax, %eax
js 0x28752
cltd
idivl %esi
jmp 0x28759
incl %eax
cltd
idivl %esi
decl %eax
addl %eax, 0x1c(%rsp)
movq 0xa8(%rbx), %rax
movq (%rax,%rcx,8), %rax
movslq 0x48(%rsp), %rcx
movl (%rax,%rcx,4), %eax
addq $0x60, %rsp
popq %rbx
popq %r14
popq %r15
retq