static final void method3320(Entity class318_sub1_sub3,
				 boolean bool) {
	for (int i = ((Entity) class318_sub1_sub3).aShort8743;
	     i <= ((Entity) class318_sub1_sub3).aShort8751; i++) {
	    for (int i_0_
		     = ((Entity) class318_sub1_sub3).aShort8750;
		 i_0_ <= ((Entity) class318_sub1_sub3).aShort8747;
		 i_0_++) {
		Class357 class357
		    = (Message.aClass357ArrayArrayArray2029
		       [((Class318_Sub1) class318_sub1_sub3).heightLevel][i]
		       [i_0_]);
		if (class357 != null) {
		    Class148 class148 = ((Class357) class357).aClass148_4396;
		    Class148 class148_1_ = null;
		    for (/**/; class148 != null;
			 class148 = ((Class148) class148).aClass148_2038) {
			if (((Class148) class148).aClass318_Sub1_Sub3_2040
			    == class318_sub1_sub3) {
			    if (class148_1_ != null)
				((Class148) class148_1_).aClass148_2038
				    = ((Class148) class148).aClass148_2038;
			    else
				((Class357) class357).aClass148_4396
				    = ((Class148) class148).aClass148_2038;
			    class148.method1199((byte) -106);
			    break;
			}
			class148_1_ = class148;
		    }
		}
	    }
	}
	if (!bool)
	    Class183.method1376(class318_sub1_sub3);
    }