static final void method3824(int i, int i_35_, int i_36_, int i_37_,
				 int i_38_, int i_39_, int i_40_, int i_41_) {
	anInt7933++;
	if ((i_37_ ^ 0xffffffff) <= -1 && i >= 0
	    && -1 + Class367_Sub4.mapSizeX > i_37_
	    && ((-1 + Class348_Sub40_Sub3.mapSizeY ^ 0xffffffff)
		< (i ^ 0xffffffff))) {
	    if (Message.aClass357ArrayArrayArray2029 == null)
		return;
	    if (i_41_ == 0) {
		Interface10 interface10
		    = (Interface10) r_Sub2.method3297(i_40_, i_37_, i);
		Interface10 interface10_42_
		    = (Interface10) StringVarScriptSettingLoader.method813(i_40_, i_37_, i);
		if (interface10 != null && i_36_ != 2) {
		    if (interface10 instanceof Class318_Sub1_Sub4_Sub2)
			((Class318_Sub1_Sub4_Sub2) (Class318_Sub1_Sub4_Sub2)
			 interface10)
			    .aClass235_10115.method1671(262144, i_35_);
		    else
			Class218.method1591(i_37_, 89, i_41_, i_35_,
					    interface10.method42(-76), i_36_,
					    i, i_38_, i_40_);
		}
		if (interface10_42_ != null) {
		    if (interface10_42_ instanceof Class318_Sub1_Sub4_Sub2)
			((Class318_Sub1_Sub4_Sub2) (Class318_Sub1_Sub4_Sub2)
			 interface10_42_)
			    .aClass235_10115.method1671(262144, i_35_);
		    else
			Class218.method1591(i_37_, 92, i_41_, i_35_,
					    interface10_42_.method42(-71),
					    i_36_, i, i_38_, i_40_);
		}
	    } else if ((i_41_ ^ 0xffffffff) != -2) {
		if ((i_41_ ^ 0xffffffff) != -3) {
		    if ((i_41_ ^ 0xffffffff) == -4) {
			Interface10 interface10
			    = ((Interface10)
			       Class348_Sub16_Sub3.method2878(i_40_, i_37_,
							      i));
			if (interface10 != null) {
			    if (interface10 instanceof Class318_Sub1_Sub1_Sub1)
				((Class318_Sub1_Sub1_Sub1)
				 (Class318_Sub1_Sub1_Sub1) interface10)
				    .aClass235_9955.method1671(262144, i_35_);
			    else
				Class218.method1591(i_37_, 28, i_41_, i_35_,
						    interface10.method42(-123),
						    i_36_, i, i_38_, i_40_);
			}
		    }
		} else {
		    Interface10 interface10
			= ((Interface10)
			   (Class177.method1353
			    (i_40_, i_37_, i,
			     (aClass8211 != null ? aClass8211
			      : (aClass8211 = method3951("Interface10"))))));
		    if (interface10 != null) {
			if (i_36_ == 11)
			    i_36_ = 10;
			if (!(interface10 instanceof Class318_Sub1_Sub3_Sub2))
			    Class218.method1591(i_37_, 43, i_41_, i_35_,
						interface10.method42(-107),
						i_36_, i, i_38_, i_40_);
			else
			    ((Class318_Sub1_Sub3_Sub2)
			     (Class318_Sub1_Sub3_Sub2) interface10)
				.aClass235_10045.method1671(262144, i_35_);
		    }
		}
	    } else {
		Interface10 interface10
		    = ((Interface10)
		       Class348_Sub40_Sub32.method3135(i_40_, i_37_, i));
		if (interface10 != null) {
		    if (interface10 instanceof Class318_Sub1_Sub5_Sub2)
			((Class318_Sub1_Sub5_Sub2) (Class318_Sub1_Sub5_Sub2)
			 interface10)
			    .aClass235_10155.method1671(262144, i_35_);
		    else {
			int i_43_ = interface10.method42(-83);
			if (i_36_ != 4 && (i_36_ ^ 0xffffffff) != -6) {
			    if ((i_36_ ^ 0xffffffff) != -7) {
				if (i_36_ == 7)
				    Class218.method1591(i_37_, 50, i_41_,
							i_35_, i_43_, 4, i,
							4 + (0x3 & 2 + i_38_),
							i_40_);
				else if (i_36_ == 8) {
				    Class218.method1591(i_37_, 116, i_41_,
							i_35_, i_43_, 4, i,
							4 + i_38_, i_40_);
				    Class218.method1591(i_37_, 91, i_41_,
							i_35_, i_43_, 4, i,
							4 + (0x3 & i_38_ - -2),
							i_40_);
				}
			    } else
				Class218.method1591(i_37_, 22, i_41_, i_35_,
						    i_43_, 4, i, i_38_ + 4,
						    i_40_);
			} else
			    Class218.method1591(i_37_, 86, i_41_, i_35_, i_43_,
						4, i, i_38_, i_40_);
		    }
		}
	    }
	}
	if (i_39_ < 98)
	    method3936(-100);
    }