final void method1678(int i, int i_166_, int i_167_, int i_168_,
			  int i_169_, int i_170_) {
	if (i_168_ >= -80)
	    aByteArrayArrayArray3108 = null;
	for (int i_171_ = i_167_;
	     (i_171_ ^ 0xffffffff) > (i_166_ + i_167_ ^ 0xffffffff);
	     i_171_++) {
	    for (int i_172_ = i;
		 (i_172_ ^ 0xffffffff) > (i_169_ + i ^ 0xffffffff); i_172_++) {
		if ((i_172_ ^ 0xffffffff) <= -1
		    && i_172_ < maximumX
		    && (i_171_ ^ 0xffffffff) <= -1
		    && maximumY > i_171_)
		    heightmap[i_170_]
			[i_172_][i_171_]
			= ((i_170_ ^ 0xffffffff) >= -1 ? 0
			   : -960 + (heightmap
				     [-1 + i_170_][i_172_][i_171_]));
	    }
	}
	anInt3105++;
	if (i > 0
	    && (i ^ 0xffffffff) > (maximumX ^ 0xffffffff)) {
	    for (int i_173_ = i_167_ - -1;
		 (i_167_ - -i_166_ ^ 0xffffffff) < (i_173_ ^ 0xffffffff);
		 i_173_++) {
		if (i_173_ >= 0
		    && (i_173_ ^ 0xffffffff) > (maximumY
						^ 0xffffffff))
		    heightmap[i_170_][i]
			[i_173_]
			= (heightmap[i_170_]
			   [i - 1][i_173_]);
	    }
	}
	if (i_167_ > 0 && i_167_ < maximumY) {
	    for (int i_174_ = 1 + i;
		 (i_169_ + i ^ 0xffffffff) < (i_174_ ^ 0xffffffff); i_174_++) {
		if ((i_174_ ^ 0xffffffff) <= -1
		    && i_174_ < maximumX)
		    heightmap[i_170_]
			[i_174_][i_167_]
			= (heightmap[i_170_]
			   [i_174_][-1 + i_167_]);
	    }
	}
	if (i >= 0 && i_167_ >= 0 && maximumX > i
	    && i_167_ < maximumY) {
	    if (i_170_ != 0) {
		if ((i ^ 0xffffffff) < -1
		    && ((heightmap[i_170_ - 1]
			 [-1 + i][i_167_])
			!= (heightmap[i_170_]
			    [i - 1][i_167_])))
		    heightmap[i_170_][i]
			[i_167_]
			= (heightmap[i_170_]
			   [i - 1][i_167_]);
		else if ((i_167_ ^ 0xffffffff) >= -1
			 || ((heightmap
			      [i_170_][i][-1 + i_167_])
			     == (heightmap
				 [-1 + i_170_][i][-1 + i_167_]))) {
		    if ((i ^ 0xffffffff) < -1 && i_167_ > 0
			&& (((heightmap
			      [i_170_][i + -1][-1 + i_167_])
			     ^ 0xffffffff)
			    != ((heightmap
				 [i_170_ + -1][i + -1][-1 + i_167_])
				^ 0xffffffff)))
			heightmap[i_170_]
			    [i][i_167_]
			    = (heightmap
			       [i_170_][i + -1][-1 + i_167_]);
		} else
		    heightmap[i_170_][i]
			[i_167_]
			= (heightmap[i_170_]
			   [i][i_167_ + -1]);
	    } else if ((i ^ 0xffffffff) >= -1
		       || ((heightmap[i_170_]
			    [-1 + i][i_167_])
			   ^ 0xffffffff) == -1) {
		if ((i_167_ ^ 0xffffffff) >= -1
		    || ((heightmap[i_170_][i]
			 [-1 + i_167_])
			^ 0xffffffff) == -1) {
		    if ((i ^ 0xffffffff) < -1 && (i_167_ ^ 0xffffffff) < -1
			&& (heightmap[i_170_]
			    [-1 + i][i_167_ - 1]) != 0)
			heightmap[i_170_]
			    [i][i_167_]
			    = (heightmap
			       [i_170_][i - 1][-1 + i_167_]);
		} else
		    heightmap[i_170_][i]
			[i_167_]
			= (heightmap[i_170_]
			   [i][-1 + i_167_]);
	    } else
		heightmap[i_170_][i][i_167_]
		    = (heightmap[i_170_]
		       [-1 + i][i_167_]);
	}
    }