Code:
public void spawnobjects(int coordx,int coordy,int objectid){
int mapRegionX = (coordx >> 3) - 6;
int mapRegionY = (coordy >> 3) - 6;
int convertcoordx = (coordx - (mapRegionX * 8));
int convertcoordy = (coordy - (mapRegionY * 8));
int i2 = 0;
int l4 = convertcoordx + (i2 >> 4 & 7);
int k7 = convertcoordy + (i2 & 7);
int i15 = 40 >> 2;
int k16 = 40 & 3;
int l17 = anIntArray1177[i15];
if(l4 >= 0 && k7 >= 0 && l4 < 104 && k7 < 104) {
method130(404, -1, objectid, k16, l17, k7, i15, anInt918, l4, 0);
}
}