// File: /workspace/github_cpp_makefile_star2_O1/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 0xd250
xorpd %xmm0, %xmm0
movapd %xmm0, 0x60(%rsp)
movapd %xmm0, 0x50(%rsp)
leaq 0x10103(%rip), %rax     # 0x25200
cmpl $0x0, (%rax)
jle 0x15315
xorl %r14d, %r14d
leaq 0x15980(%rip), %rbx     # 0x2aa90
leaq 0x78(%rsp), %r13
imulq $0x38, %r14, %rbp
movq 0x18(%rbp,%rbx), %rsi
testq %rsi, %rsi
je 0x1527c
leaq 0x30(%rsp), %rdi
callq 0x1b917
movq (%rsp), %rax
cmpq %rax, 0x8(%rsp)
je 0x15141
movq %rax, 0x8(%rsp)
addq %rbx, %rbp
movq %r14, %rbx
shlq $0x4, %rbx
addq 0xfe7e(%rip), %rbx      # 0x24fd0
xorl %r15d, %r15d
movq 0x30(%rsp,%r15), %rax
testq %rax, %rax
je 0x1521c
movsd 0x278(%rax), %xmm0
movsd %xmm0, 0x28(%rsp)
movsd (%rbx), %xmm0
movsd %xmm0, 0x20(%rsp)
movq %r13, %rdi
xorl %esi, %esi
callq 0xd506
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 0xd506
movsd 0x28(%rsp), %xmm0
subsd 0x20(%rsp), %xmm0
movsd %xmm0, (%rax)
movq %r13, %rdi
movq %rbp, %rsi
callq 0xd25a
ucomisd 0x8fce(%rip), %xmm0     # 0x1e1b8
jb 0x1521c
movq (%r12), %rax
cmpw $0x0, 0x1b0(%rax)
jne 0x1521c
movq 0x8(%rsp), %rsi
cmpq 0x10(%rsp), %rsi
je 0x15211
movq %rax, (%rsi)
addq $0x8, 0x8(%rsp)
jmp 0x1521c
movq %rsp, %rdi
movq %r12, %rdx
callq 0xc2bc
addq $0x8, %r15
cmpq $0x20, %r15
jne 0x15155
movq %rsp, %rdi
movq %rbx, %rsi
leaq 0x50(%rsp), %rdx
callq 0x13da5
leaq 0x1584f(%rip), %rbx     # 0x2aa90
movsd 0x68(%rsp), %xmm0
movsd %xmm0, 0x10(%rbp)
subsd 0x2332c(%rip), %xmm0    # 0x38580
divsd 0x9644(%rip), %xmm0     # 0x1e8a0
movsd %xmm0, 0x20(%rbp)
incq %r14
leaq 0xff95(%rip), %rax      # 0x25200
movslq (%rax), %rax
cmpq %rax, %r14
jl 0x15115
jmp 0x15315
movq 0xfd45(%rip), %rdi      # 0x24fc8
movl %r14d, %esi
callq 0x3350
movq %rax, %rbx
leaq 0x9b61(%rip), %rsi      # 0x1edf6
movl $0x1, %edx
movq %rax, %rdi
callq 0x3250
shlq $0x4, %r14
leaq 0x100d3(%rip), %rax     # 0x25380
movsd (%rax,%r14), %xmm0
movq %rbx, %rdi
callq 0x3300
movq %rax, %rbx
leaq 0x9b31(%rip), %rsi      # 0x1edf6
movl $0x1, %edx
movq %rax, %rdi
callq 0x3250
leaq 0x100a7(%rip), %rax     # 0x25380
addq %r14, %rax
movsd 0x8(%rax), %xmm0
movq %rbx, %rdi
callq 0x3300
leaq 0x964b(%rip), %rsi      # 0x1e93b
movl $0x2, %edx
movq %rax, %rdi
callq 0x3250
movq 0xfcc4(%rip), %rdi      # 0x24fc8
leaq 0x9633(%rip), %rsi      # 0x1e93e
movl $0x17, %edx
callq 0x3250
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x1532b
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 0x15343
jmp 0x15343
jmp 0x15343
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x1535c
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x3220
movq %rbx, %rdi
callq 0x3370