// File: jamesliu516[P]amrdg2d/points_solid.cpp
// Function: pointsAtSolid()
void pointsAtSolid()
{
    int i;

    string filename;
    double stp; 
    double x00,y00;
    ifstream infile;
    for(int jj=0;jj<N_BODY;++jj) {

        filename=WallPtsFile[jj];

        cout << filename.c_str() << endl;
        infile.open(filename.c_str());

        stp = 2.0*PI/NWallPts[jj];
        if (jj==0){
            x00=0.0;
            y00=0.0;
        }
        else if(jj==1){
            x00=-1.5;
            y00=-0.50;
        }

        for(i=0; i < NWallPts[jj]; i++)
        {	
            infile >>MultiCircle[jj][i].x;
            infile >> MultiCircle[jj][i].y;
       //  if(jj==0)   MultiCircle[jj][i].x=MultiCircle[0][i].x+0.03;
//            if(jj==1) MultiCircle[jj][i].x=MultiCircle[0][i].x+0.5;
  //          if(jj==1) MultiCircle[jj][i].y=MultiCircle[0][i].y+0.5;
//              MultiCircle[jj][i].x =x00+ RADII * cos(PI+i*stp);
  //           MultiCircle[jj][i].y =y00+RADII * sin(PI+i*stp);
            //	cout<<Circle[i].x<<"  "<<Circle[i].y<<endl;
        }

        MultiCircle[jj][NWallPts[jj]]=MultiCircle[jj][0];
        infile.close();
        infile.clear();
    }
#if IS_TUBE ==1
    filename=ExtWALL_POINT_FILE;

    cout << filename.c_str() << endl;
    infile.open(filename.c_str());

    for(i=0; i < NPT_EXT_WALL; i++)
    {	
        infile >> ext_wall[i].x;
        infile >> ext_wall[i].y;
    }
    ext_wall[NPT_EXT_WALL]=ext_wall[0];

    infile.close();
    infile.clear();
#endif
}

// Assembly:
subq $0x268, %rsp            # imm = 0x268
leaq 0x240(%rsp), %rdi
callq 0x3380
leaq 0x20(%rsp), %rdi
callq 0x32e0
jmp 0x15a20
movl $0x0, 0x10(%rsp)
cmpl $0x1, 0x10(%rsp)
jge 0x15c52
movslq 0x10(%rsp), %rax
shlq $0x5, %rax
leaq 0x3984d(%rip), %rsi     # 0x4f290
addq %rax, %rsi
leaq 0x240(%rsp), %rdi
callq 0x3040
jmp 0x15a55
leaq 0x240(%rsp), %rdi
callq 0x3110
movq %rax, %rsi
movq 0x35564(%rip), %rdi     # 0x4afd0
callq 0x3240
movq %rax, 0x8(%rsp)
jmp 0x15a78
movq 0x8(%rsp), %rdi
movq 0x35534(%rip), %rsi     # 0x4afb8
callq 0x3290
jmp 0x15a8b
leaq 0x240(%rsp), %rdi
callq 0x3110
movq %rax, %rsi
leaq 0x20(%rsp), %rdi
movl $0x8, %edx
callq 0x3170
jmp 0x15aac
movslq 0x10(%rsp), %rcx
leaq 0x357d8(%rip), %rax     # 0x4b290
cvtsi2sdl (%rax,%rcx,4), %xmm1
movsd 0x29933(%rip), %xmm0    # 0x3f3f8
divsd %xmm1, %xmm0
movsd %xmm0, 0x238(%rsp)
cmpl $0x0, 0x10(%rsp)
jne 0x15b23
xorps %xmm0, %xmm0
movsd %xmm0, 0x230(%rsp)
xorps %xmm0, %xmm0
movsd %xmm0, 0x228(%rsp)
jmp 0x15b4e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x18(%rsp)
movl %eax, 0x14(%rsp)
jmp 0x15d83
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x18(%rsp)
movl %eax, 0x14(%rsp)
leaq 0x20(%rsp), %rdi
callq 0x30c0
jmp 0x15d83
cmpl $0x1, 0x10(%rsp)
jne 0x15b4c
movsd 0x298ce(%rip), %xmm0    # 0x3f400
movsd %xmm0, 0x230(%rsp)
movsd 0x295f5(%rip), %xmm0    # 0x3f138
movsd %xmm0, 0x228(%rsp)
jmp 0x15b4e
movl $0x0, 0x264(%rsp)
movl 0x264(%rsp), %eax
movslq 0x10(%rsp), %rdx
leaq 0x35724(%rip), %rcx     # 0x4b290
cmpl (%rcx,%rdx,4), %eax
jge 0x15bed
movslq 0x10(%rsp), %rax
imulq $0x1f40, %rax, %rax     # imm = 0x1F40
leaq 0x3588c(%rip), %rsi     # 0x4b410
addq %rax, %rsi
movslq 0x264(%rsp), %rax
shlq $0x4, %rax
addq %rax, %rsi
leaq 0x20(%rsp), %rdi
callq 0x31e0
jmp 0x15ba2
movslq 0x10(%rsp), %rax
imulq $0x1f40, %rax, %rax     # imm = 0x1F40
leaq 0x3585b(%rip), %rcx     # 0x4b410
addq %rax, %rcx
movslq 0x264(%rsp), %rax
shlq $0x4, %rax
leaq 0x8(%rax,%rcx), %rsi
leaq 0x20(%rsp), %rdi
callq 0x31e0
jmp 0x15bd5
jmp 0x15bd7
movl 0x264(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x264(%rsp)
jmp 0x15b59
movslq 0x10(%rsp), %rdi
imulq $0x1f40, %rdi, %rsi     # imm = 0x1F40
leaq 0x35810(%rip), %rdx     # 0x4b410
movq %rdx, %rcx
addq %rsi, %rcx
leaq 0x35683(%rip), %rax     # 0x4b290
movslq (%rax,%rdi,4), %rax
shlq $0x4, %rax
movaps (%rdx,%rsi), %xmm0
movaps %xmm0, (%rax,%rcx)
leaq 0x20(%rsp), %rdi
callq 0x3080
jmp 0x15c29
movq 0x20(%rsp), %rax
movq -0x18(%rax), %rax
leaq 0x20(%rsp,%rax), %rdi
xorl %esi, %esi
callq 0x3400
jmp 0x15c40
jmp 0x15c42
movl 0x10(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x10(%rsp)
jmp 0x15a28
leaq 0x297bf(%rip), %rsi     # 0x3f418
leaq 0x240(%rsp), %rdi
callq 0x3370
jmp 0x15c68
leaq 0x240(%rsp), %rdi
callq 0x3110
movq %rax, %rsi
movq 0x35351(%rip), %rdi     # 0x4afd0
callq 0x3240
movq %rax, (%rsp)
jmp 0x15c8a
movq (%rsp), %rdi
movq 0x35323(%rip), %rsi     # 0x4afb8
callq 0x3290
jmp 0x15c9c
leaq 0x240(%rsp), %rdi
callq 0x3110
movq %rax, %rsi
leaq 0x20(%rsp), %rdi
movl $0x8, %edx
callq 0x3170
jmp 0x15cbd
movl $0x0, 0x264(%rsp)
cmpl $0x138, 0x264(%rsp) # imm = 0x138
jge 0x15d30
movslq 0x264(%rsp), %rax
shlq $0x4, %rax
leaq 0x39628(%rip), %rsi     # 0x4f310
addq %rax, %rsi
leaq 0x20(%rsp), %rdi
callq 0x31e0
jmp 0x15cf7
movslq 0x264(%rsp), %rcx
shlq $0x4, %rcx
leaq 0x39606(%rip), %rax     # 0x4f310
leaq 0x8(%rax,%rcx), %rsi
leaq 0x20(%rsp), %rdi
callq 0x31e0
jmp 0x15d1b
jmp 0x15d1d
movl 0x264(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x264(%rsp)
jmp 0x15cc8
leaq 0x395d9(%rip), %rax     # 0x4f310
movaps (%rax), %xmm0
movaps %xmm0, 0x1380(%rax)
leaq 0x20(%rsp), %rdi
callq 0x3080
jmp 0x15d4d
movq 0x20(%rsp), %rax
movq -0x18(%rax), %rax
leaq 0x20(%rsp,%rax), %rdi
xorl %esi, %esi
callq 0x3400
jmp 0x15d64
leaq 0x20(%rsp), %rdi
callq 0x30c0
leaq 0x240(%rsp), %rdi
callq 0x34d8
addq $0x268, %rsp            # imm = 0x268
retq
leaq 0x240(%rsp), %rdi
callq 0x34d8
movq 0x18(%rsp), %rdi
callq 0x3440
nopw (%rax,%rax)