// File: /workspace/github_cpp_makefile_star2_O1/jamesliu516[P]amrdg2d/farfield_boundary.cpp
// Function: getInletOutletBndry(bodygridclass*, int)
void getInletOutletBndry(OctCell *ghostcell, int in2out)
{
    double nx,ny;
    double speed, a, vbn=0.0;
    PXYZ symtrcpt; 
    PXYZ ghostpt, plsA, plsB;
    int i1,j1;

    //Rieman problem������
    //    double dil,dir,ui,prei;
    JBBL jb1,jb2; 

    SHBL sh;

    //	OctCell *leafp;
    OctCell *pincell=NULL;
    vector< OctCell * > grid;


    ghostpt.x = ghostcell->xc1;
    ghostpt.y = ghostcell->yc1;	
    if(in2out==0){
        jb2=State_l;

        jbblToShbl(&jb2, &sh);

        ghostcell->dof[0][0] = sh.q;
        ghostcell->dof[1][0]= sh.qu;
        ghostcell->dof[2][0]= sh.qv;
        ghostcell->dof[3][0]= sh.te;
        for( i1=0; i1<4; ++i1) 
            for(j1=1; j1<nDOF; ++j1)
                ghostcell->dof[i1][j1]=0.0;

    }
    else {
        symtrcpt.x=2.0*xOutlet-ghostpt.x;
        symtrcpt.y=ghostpt.y;
        nx=-1.0;
        ny=0.0;
        getGridIndex2(ghostcell, &symtrcpt, pincell);
        findIntpltCell(pincell, ghostpt, symtrcpt, grid);
        chazhi4smtrictPshbl(grid, symtrcpt, jb1); 
        jbblToShbl(&jb1, &sh);

        ghostcell->dof[0][0] = sh.q;
        ghostcell->dof[1][0]= sh.qu;
        ghostcell->dof[2][0]= sh.qv;
        ghostcell->dof[3][0]= sh.te;
        for( i1=0; i1<4; ++i1) 
            for(j1=1; j1<nDOF; ++j1)
                ghostcell->dof[i1][j1]=0.0;
    }
}

// Assembly:
pushq %rbx
subq $0x70, %rsp
movq %rdi, %rbx
xorpd %xmm0, %xmm0
movapd %xmm0, 0x30(%rsp)
movapd %xmm0, 0x60(%rsp)
movapd %xmm0, 0x50(%rsp)
movapd %xmm0, 0x40(%rsp)
xorl %eax, %eax
movq %rax, 0x8(%rsp)
movq %rax, 0x20(%rsp)
movapd %xmm0, 0x10(%rsp)
movupd 0x278(%rdi), %xmm1
movapd %xmm1, 0x60(%rsp)
testl %esi, %esi
je 0x161d7
movsd 0x8879(%rip), %xmm0     # 0x1e970
subsd %xmm1, %xmm0
leaq 0x30(%rsp), %rsi
movsd %xmm0, (%rsi)
movhpd %xmm1, 0x8(%rsi)
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x12f8f
movq 0x8(%rsp), %rdi
leaq 0x60(%rsp), %rsi
leaq 0x30(%rsp), %rdx
leaq 0x10(%rsp), %rcx
callq 0x132be
leaq 0x10(%rsp), %rdi
leaq 0x30(%rsp), %rsi
leaq 0x40(%rsp), %rdx
callq 0x13da5
movsd 0x40(%rsp), %xmm1
movsd 0x48(%rsp), %xmm0
movsd 0x50(%rsp), %xmm2
movapd %xmm1, %xmm3
movsd 0x58(%rsp), %xmm4
movsd 0x7fe1(%rip), %xmm5     # 0x1e148
mulsd %xmm1, %xmm5
movsd %xmm1, 0x30(%rbx)
mulsd %xmm0, %xmm1
mulsd %xmm2, %xmm3
divsd 0x8028(%rip), %xmm4     # 0x1e1a8
mulsd %xmm2, %xmm2
mulsd %xmm0, %xmm0
addsd %xmm2, %xmm0
mulsd %xmm5, %xmm0
addsd %xmm4, %xmm0
movsd %xmm1, 0x60(%rbx)
movsd %xmm3, 0x90(%rbx)
movsd %xmm0, 0xc0(%rbx)
movl $0x38, %eax
xorpd %xmm0, %xmm0
movupd %xmm0, 0x10(%rbx,%rax)
movupd %xmm0, (%rbx,%rax)
movq $0x0, 0x20(%rbx,%rax)
addq $0x30, %rax
cmpq $0xf8, %rax
jne 0x161b2
jmp 0x16264
leaq 0x146e2(%rip), %rax     # 0x2a8c0
movsd (%rax), %xmm2
movsd 0x8(%rax), %xmm1
movsd 0x10(%rax), %xmm3
movsd 0x18(%rax), %xmm4
movapd %xmm2, %xmm5
movsd 0x7f4b(%rip), %xmm6     # 0x1e148
mulsd %xmm2, %xmm6
movsd %xmm2, 0x30(%rbx)
mulsd %xmm1, %xmm2
mulsd %xmm3, %xmm5
divsd 0x7f92(%rip), %xmm4     # 0x1e1a8
mulsd %xmm3, %xmm3
mulsd %xmm1, %xmm1
addsd %xmm3, %xmm1
mulsd %xmm6, %xmm1
addsd %xmm4, %xmm1
movsd %xmm2, 0x60(%rbx)
movsd %xmm5, 0x90(%rbx)
movsd %xmm1, 0xc0(%rbx)
movl $0x38, %eax
movupd %xmm0, 0x10(%rbx,%rax)
movupd %xmm0, (%rbx,%rax)
movq $0x0, 0x20(%rbx,%rax)
addq $0x30, %rax
cmpq $0xf8, %rax
jne 0x16244
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x1627b
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x3220
addq $0x70, %rsp
popq %rbx
retq
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x1629b
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x3220
movq %rbx, %rdi
callq 0x3370