// File: 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:
subq $0xe8, %rsp
xorps %xmm0, %xmm0
movaps %xmm0, 0xd0(%rsp)
movaps %xmm0, 0xc0(%rsp)
leaq 0xa8(%rsp), %rdi
callq 0x62a0
leaq 0x98(%rsp), %rdi
xorps %xmm1, %xmm1
movaps %xmm1, %xmm0
callq 0x1e1a0
jmp 0x2dc8c
leaq 0x68(%rsp), %rdi
callq 0x6530
jmp 0x2dc98
movl $0x0, 0x64(%rsp)
cmpl $0x1, 0x64(%rsp)
jge 0x2e08a
movl $0x0, 0x60(%rsp)
movl 0x60(%rsp), %eax
movslq 0x64(%rsp), %rdx
leaq 0x1d5cd(%rip), %rcx     # 0x4b290
cmpl (%rcx,%rdx,4), %eax
jge 0x2e078
movslq 0x64(%rsp), %rcx
leaq 0x22e48(%rip), %rax     # 0x50b20
imulq $0x6d60, %rcx, %rcx     # imm = 0x6D60
addq %rcx, %rax
movslq 0x60(%rsp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movq 0x18(%rax), %rax
movq %rax, 0xe0(%rsp)
cmpq $0x0, 0xe0(%rsp)
jne 0x2de0e
movl 0x60(%rsp), %esi
movq 0x1d2bc(%rip), %rdi     # 0x4afd0
callq 0x3420
movq %rax, 0x50(%rsp)
jmp 0x2dd20
movq 0x50(%rsp), %rdi
leaq 0x11f62(%rip), %rsi     # 0x3fc8e
callq 0x3240
movq %rax, 0x48(%rsp)
jmp 0x2dd38
movq 0x48(%rsp), %rdi
movslq 0x64(%rsp), %rax
imulq $0x1f40, %rax, %rax     # imm = 0x1F40
leaq 0x1d6c0(%rip), %rcx     # 0x4b410
addq %rax, %rcx
movslq 0x60(%rsp), %rax
shlq $0x4, %rax
movsd (%rax,%rcx), %xmm0
callq 0x3480
movq %rax, 0x40(%rsp)
jmp 0x2dd6d
movq 0x40(%rsp), %rdi
leaq 0x11f15(%rip), %rsi     # 0x3fc8e
callq 0x3240
movq %rax, 0x38(%rsp)
jmp 0x2dd85
movq 0x38(%rsp), %rdi
movslq 0x64(%rsp), %rax
imulq $0x1f40, %rax, %rax     # imm = 0x1F40
leaq 0x1d673(%rip), %rcx     # 0x4b410
addq %rax, %rcx
movslq 0x60(%rsp), %rax
shlq $0x4, %rax
movsd 0x8(%rax,%rcx), %xmm0
callq 0x3480
movq %rax, 0x30(%rsp)
jmp 0x2ddbb
movq 0x30(%rsp), %rdi
leaq 0x11ae4(%rip), %rsi     # 0x3f8ab
callq 0x3240
jmp 0x2ddce
movq 0x1d1fb(%rip), %rdi     # 0x4afd0
leaq 0x11ad2(%rip), %rsi     # 0x3f8ae
callq 0x3240
jmp 0x2dde3
jmp 0x2e078
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
leaq 0xa8(%rsp), %rdi
callq 0x62b0
jmp 0x2e09f
movq 0xe0(%rsp), %rsi
leaq 0xc0(%rsp), %rdi
callq 0x3b210
jmp 0x2de25
leaq 0xa8(%rsp), %rdi
callq 0x1b440
movl $0x0, 0x5c(%rsp)
cmpl $0x4, 0x5c(%rsp)
jge 0x2dfbe
movslq 0x5c(%rsp), %rax
cmpq $0x0, 0xc0(%rsp,%rax,8)
je 0x2dfac
movslq 0x5c(%rsp), %rax
movq 0xc0(%rsp,%rax,8), %rax
movsd 0x278(%rax), %xmm0
movslq 0x64(%rsp), %rax
imulq $0x1f40, %rax, %rax     # imm = 0x1F40
leaq 0x1d58f(%rip), %rcx     # 0x4b410
addq %rax, %rcx
movslq 0x60(%rsp), %rax
shlq $0x4, %rax
movsd (%rax,%rcx), %xmm1
subsd %xmm1, %xmm0
movsd %xmm0, 0x20(%rsp)
leaq 0x98(%rsp), %rdi
xorl %esi, %esi
callq 0x1e9b0
movq %rax, 0x28(%rsp)
jmp 0x2deb2
movq 0x28(%rsp), %rax
movsd 0x20(%rsp), %xmm0
movsd %xmm0, (%rax)
movslq 0x5c(%rsp), %rax
movq 0xc0(%rsp,%rax,8), %rax
movsd 0x280(%rax), %xmm0
movslq 0x64(%rsp), %rax
imulq $0x1f40, %rax, %rax     # imm = 0x1F40
leaq 0x1d527(%rip), %rcx     # 0x4b410
addq %rax, %rcx
movslq 0x60(%rsp), %rax
shlq $0x4, %rax
movsd 0x8(%rax,%rcx), %xmm1
subsd %xmm1, %xmm0
movsd %xmm0, 0x10(%rsp)
leaq 0x98(%rsp), %rdi
movl $0x1, %esi
callq 0x1e9b0
movq %rax, 0x18(%rsp)
jmp 0x2df1e
movq 0x18(%rsp), %rax
movsd 0x10(%rsp), %xmm0
movsd %xmm0, (%rax)
movslq 0x64(%rsp), %rax
imulq $0x6d60, %rax, %rax     # imm = 0x6D60
leaq 0x22be0(%rip), %rsi     # 0x50b20
addq %rax, %rsi
movslq 0x60(%rsp), %rax
imulq $0x38, %rax, %rax
addq %rax, %rsi
leaq 0x98(%rsp), %rdi
callq 0x1e1d0
movsd %xmm0, 0x8(%rsp)
jmp 0x2df64
movsd 0x8(%rsp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x2dfaa
movslq 0x5c(%rsp), %rax
movq 0xc0(%rsp,%rax,8), %rax
movswl 0x1b0(%rax), %eax
cmpl $0x0, %eax
jne 0x2dfaa
movslq 0x5c(%rsp), %rax
leaq 0xc0(%rsp,%rax,8), %rsi
leaq 0xa8(%rsp), %rdi
callq 0x1b460
jmp 0x2dfa8
jmp 0x2dfaa
jmp 0x2dfac
jmp 0x2dfae
movl 0x5c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x5c(%rsp)
jmp 0x2de3a
movslq 0x64(%rsp), %rax
imulq $0x1f40, %rax, %rax     # imm = 0x1F40
leaq 0x1d43f(%rip), %rsi     # 0x4b410
addq %rax, %rsi
movslq 0x60(%rsp), %rax
shlq $0x4, %rax
addq %rax, %rsi
leaq 0xa8(%rsp), %rdi
leaq 0x68(%rsp), %rdx
callq 0x2b9f0
jmp 0x2dff4
movsd 0x80(%rsp), %xmm0
movslq 0x64(%rsp), %rcx
leaq 0x22b17(%rip), %rax     # 0x50b20
imulq $0x6d60, %rcx, %rcx     # imm = 0x6D60
addq %rcx, %rax
movslq 0x60(%rsp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movsd %xmm0, 0x10(%rax)
movsd 0x80(%rsp), %xmm0
subsd 0x305db(%rip), %xmm0    # 0x5e610
movsd 0x117d3(%rip), %xmm1    # 0x3f810
divsd %xmm1, %xmm0
movslq 0x64(%rsp), %rcx
leaq 0x22ad3(%rip), %rax     # 0x50b20
imulq $0x6d60, %rcx, %rcx     # imm = 0x6D60
addq %rcx, %rax
movslq 0x60(%rsp), %rcx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movsd %xmm0, 0x20(%rax)
movl 0x60(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x60(%rsp)
jmp 0x2dcb3
jmp 0x2e07a
movl 0x64(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x64(%rsp)
jmp 0x2dca0
leaq 0xa8(%rsp), %rdi
callq 0x62b0
addq $0xe8, %rsp
retq
movq 0x90(%rsp), %rdi
callq 0x3440
nopl (%rax)