// File: /workspace/github_cpp_makefile_star2_O3/jamesliu516[P]amrdg2d/wall4amrdg2013.cpp
// Function: computWallPresCp()
void computWallPresCp()
{
    OctCell *lsbl;
    OctCell *nbrcell[4]={NULL};
    //   OctCell *nbr[4]={NULL};
    vector<OctCell*> nbr;
    Vec2D dr;
    JBBL jbu;

    for (int jj=0; jj<N_BODY;++jj){
        for(int i=0; i<NWallPts[jj]; ++i){
            lsbl=MultiCompany[jj][i].incell;
            if(lsbl==NULL) {
                cout<<i<<" "<<MultiCircle[jj][i].x<<" "<<MultiCircle[jj][i].y<<"--";
                cout<<"wrong-computWallPresCp\n";break;}
            find_sol_4nbr(nbrcell,lsbl);
            nbr.clear();
            for(int inb=0;inb<4;++inb){
                if(nbrcell[inb]!=NULL ){
                    dr[0]=nbrcell[inb]->xc1-MultiCircle[jj][i].x;
                    dr[1]=nbrcell[inb]->yc1-MultiCircle[jj][i].y;
                    if(dr.dot(MultiCompany[jj][i].normS)>=0.0
                        && nbrcell[inb]->flag==0){
                        nbr.push_back(nbrcell[inb]);
                    }
                }
            }
            chazhi4smtrictPshbl(nbr,MultiCircle[jj][i],jbu);
            MultiCompany[jj][i].pre=jbu.p;
            MultiCompany[jj][i].cp=(jbu.p-initP)/(0.5*initQ*FreeMa*FreeMa);
        }
    }

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
xorpd %xmm0, %xmm0
movapd %xmm0, 0x40(%rsp)
movapd %xmm0, 0x30(%rsp)
movapd %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
leaq 0x78(%rsp), %rdi
xorpd %xmm0, %xmm0
xorps %xmm1, %xmm1
callq 0xcf30
xorpd %xmm0, %xmm0
movapd %xmm0, 0x60(%rsp)
movapd %xmm0, 0x50(%rsp)
leaq 0xf7a6(%rip), %rax      # 0x24200
cmpl $0x0, (%rax)
jle 0x14c72
xorl %r14d, %r14d
leaq 0x15023(%rip), %rbx     # 0x29a90
leaq 0x78(%rsp), %r13
imulq $0x38, %r14, %rbp
movq 0x18(%rbp,%rbx), %rsi
testq %rsi, %rsi
je 0x14bd9
leaq 0x30(%rsp), %rdi
callq 0x1b3f9
movq (%rsp), %rax
cmpq %rax, 0x8(%rsp)
je 0x14a9e
movq %rax, 0x8(%rsp)
addq %rbx, %rbp
movq %r14, %rbx
shlq $0x4, %rbx
addq 0xf521(%rip), %rbx      # 0x23fd0
xorl %r15d, %r15d
movq 0x30(%rsp,%r15), %rax
testq %rax, %rax
je 0x14b79
movsd 0x278(%rax), %xmm0
movsd %xmm0, 0x28(%rsp)
movsd (%rbx), %xmm0
movsd %xmm0, 0x20(%rsp)
movq %r13, %rdi
xorl %esi, %esi
callq 0xd1c0
leaq (%rsp,%r15), %r12
addq $0x30, %r12
movsd 0x28(%rsp), %xmm0
subsd 0x20(%rsp), %xmm0
movsd %xmm0, (%rax)
movq (%r12), %rax
movsd 0x280(%rax), %xmm0
movsd %xmm0, 0x28(%rsp)
movsd 0x8(%rbx), %xmm0
movsd %xmm0, 0x20(%rsp)
movq %r13, %rdi
movl $0x1, %esi
callq 0xd1c0
movsd 0x28(%rsp), %xmm0
subsd 0x20(%rsp), %xmm0
movsd %xmm0, (%rax)
movq %r13, %rdi
movq %rbp, %rsi
callq 0xcf3a
ucomisd 0x8671(%rip), %xmm0     # 0x1d1b8
jb 0x14b79
movq (%r12), %rax
cmpw $0x0, 0x1b0(%rax)
jne 0x14b79
movq 0x8(%rsp), %rsi
cmpq 0x10(%rsp), %rsi
je 0x14b6e
movq %rax, (%rsi)
addq $0x8, 0x8(%rsp)
jmp 0x14b79
movq %rsp, %rdi
movq %r12, %rdx
callq 0xc142
addq $0x8, %r15
cmpq $0x20, %r15
jne 0x14ab2
movq %rsp, %rdi
movq %rbx, %rsi
leaq 0x50(%rsp), %rdx
callq 0x13746
leaq 0x14ef2(%rip), %rbx     # 0x29a90
movsd 0x68(%rsp), %xmm0
movsd %xmm0, 0x10(%rbp)
subsd 0x229cf(%rip), %xmm0    # 0x37580
divsd 0x8cc7(%rip), %xmm0     # 0x1d880
movsd %xmm0, 0x20(%rbp)
incq %r14
leaq 0xf638(%rip), %rax      # 0x24200
movslq (%rax), %rax
cmpq %rax, %r14
jl 0x14a72
jmp 0x14c72
movq 0xf3e8(%rip), %rdi      # 0x23fc8
movl %r14d, %esi
callq 0x3350
movq %rax, %rbx
leaq 0x920c(%rip), %rsi      # 0x1ddfe
movl $0x1, %edx
movq %rax, %rdi
callq 0x3250
shlq $0x4, %r14
leaq 0xf776(%rip), %rax      # 0x24380
movsd (%rax,%r14), %xmm0
movq %rbx, %rdi
callq 0x3300
movq %rax, %rbx
leaq 0x91dc(%rip), %rsi      # 0x1ddfe
movl $0x1, %edx
movq %rax, %rdi
callq 0x3250
leaq 0xf74a(%rip), %rax      # 0x24380
addq %r14, %rax
movsd 0x8(%rax), %xmm0
movq %rbx, %rdi
callq 0x3300
leaq 0x8cce(%rip), %rsi      # 0x1d91b
movl $0x2, %edx
movq %rax, %rdi
callq 0x3250
movq 0xf367(%rip), %rdi      # 0x23fc8
leaq 0x8cb6(%rip), %rsi      # 0x1d91e
movl $0x17, %edx
callq 0x3250
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x14c88
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x3220
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x14c9e
jmp 0x14c9e
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x14cb7
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x3220
movq %rbx, %rdi
callq 0x3370
nop