private void method37(int j)
	{
		if (!lowMemory)
		{
			if (Texture.anIntArray1480[17] >= j)
			{
				Background background = Texture.aBackgroundArray1474s[17];
				int k = background.anInt1452 * background.anInt1453 - 1;
				int j1 = background.anInt1452 * anInt945 * 2;
				byte abyte0[] = background.aByteArray1450;
				byte abyte3[] = aByteArray912;
				for (int i2 = 0; i2 <= k; i2++)
					abyte3[i2] = abyte0[i2 - j1 & k];

				background.aByteArray1450 = abyte3;
				aByteArray912 = abyte0;
				Texture.method370(17);
				anInt854++;
				if (anInt854 > 1235)
				{
					anInt854 = 0;
					outStream1.createFrame(226);
					outStream1.put(0);
					int l2 = outStream1.offset;
					outStream1.writeWord(58722);
					outStream1.put(240);
					outStream1.writeWord((int) (Math.random() * 65536D));
					outStream1.put((int) (Math.random() * 256D));
					if ((int) (Math.random() * 2D) == 0)
						outStream1.writeWord(51825);
					outStream1.put((int) (Math.random() * 256D));
					outStream1.writeWord((int) (Math.random() * 65536D));
					outStream1.writeWord(7130);
					outStream1.writeWord((int) (Math.random() * 65536D));
					outStream1.writeWord(61657);
					outStream1.writeBytes(outStream1.offset - l2);
				}
			}
			if (Texture.anIntArray1480[24] >= j)
			{
				Background background_1 = Texture.aBackgroundArray1474s[24];
				int l = background_1.anInt1452 * background_1.anInt1453 - 1;
				int k1 = background_1.anInt1452 * anInt945 * 2;
				byte abyte1[] = background_1.aByteArray1450;
				byte abyte4[] = aByteArray912;
				for (int j2 = 0; j2 <= l; j2++)
					abyte4[j2] = abyte1[j2 - k1 & l];

				background_1.aByteArray1450 = abyte4;
				aByteArray912 = abyte1;
				Texture.method370(24);
			}
			if (Texture.anIntArray1480[34] >= j)
			{
				Background background_2 = Texture.aBackgroundArray1474s[34];
				int i1 = background_2.anInt1452 * background_2.anInt1453 - 1;
				int l1 = background_2.anInt1452 * anInt945 * 2;
				byte abyte2[] = background_2.aByteArray1450;
				byte abyte5[] = aByteArray912;
				for (int k2 = 0; k2 <= i1; k2++)
					abyte5[k2] = abyte2[k2 - l1 & i1];

				background_2.aByteArray1450 = abyte5;
				aByteArray912 = abyte2;
				Texture.method370(34);
			}
		}
	}