final void method3746(boolean bool, int i, boolean bool_46_, int i_47_) {
	anInt7631++;
	if ((i ^ 0xffffffff) != (anInt7796 ^ 0xffffffff)
	    || aBoolean7859 == !((OpenGlToolkit) this).aBoolean7846) {
	    Class258_Sub3 class258_sub3 = null;
	    int i_48_ = 0;
	    byte i_49_ = 0;
	    int i_50_ = 0;
	    byte i_51_ = !((OpenGlToolkit) this).aBoolean7846 ? (byte) 0 : (byte) 3;
	    if (i >= 0) {
		class258_sub3 = aClass354_7723.method3467(i, 256);
		TextureDefinition class12 = ((AbstractToolkit) this).aD4579.getTexture(i, -6662);
		if (((TextureDefinition) class12).aByte198 != 0
		    || ((TextureDefinition) class12).aByte211 != 0) {
		    int i_52_ = ((TextureDefinition) class12).aBoolean199 ? 64 : 128;
		    int i_53_ = i_52_ * 50;
		    method3799(((float) (((OpenGlToolkit) this).anInt7735 % i_53_
					 * ((TextureDefinition) class12).aByte211)
				/ (float) i_53_),
			       0.0F,
			       (float) (((TextureDefinition) class12).aByte198
					* (((OpenGlToolkit) this).anInt7735
					   % i_53_)) / (float) i_53_,
			       (byte) 126);
		} else
		    method3767(-21974);
		if (!((OpenGlToolkit) this).aBoolean7846) {
		    i_51_ = ((TextureDefinition) class12).aByte213;
		    i_50_ = ((TextureDefinition) class12).anInt206;
		    i_49_ = ((TextureDefinition) class12).aByte202;
		}
		i_48_ = ((TextureDefinition) class12).anInt203;
	    } else
		method3767(-21974);
	    aClass100_7707.method884(i_49_, bool, i_51_, i_50_, (byte) 12,
				     bool_46_);
	    if (!aClass100_7707.method885(i_48_, (byte) -124, class258_sub3)) {
		method3771((byte) -86, class258_sub3);
		method3761(0, i_48_);
	    }
	    aBoolean7859 = ((OpenGlToolkit) this).aBoolean7846;
	    anInt7796 = i;
	}
	if (i_47_ <= 111)
	    setDimensions(59, -107, -128, -14);
	anInt7765 &= ~0x7;
    }