final RasterToolkit createRasterForSprite(ImageSprite class207, boolean bool) {
	try {
	    anInt7978++;
	    RasterToolkit class105;
	    if ((((ImageSprite) class207).indexWidth ^ 0xffffffff) == -1
		|| ((ImageSprite) class207).indexHeight == 0)
		class105 = this.method3662(1, new int[1], (byte) 94, 0, 1, 1);
	    else {
		int[] is = new int[(((ImageSprite) class207).indexWidth
				    * ((ImageSprite) class207).indexHeight)];
		int i = 0;
		int i_211_ = 0;
		if (((ImageSprite) class207).alphaIndex == null) {
		    for (int i_212_ = 0;
			 ((((ImageSprite) class207).indexHeight ^ 0xffffffff)
			  < (i_212_ ^ 0xffffffff));
			 i_212_++) {
			for (int i_213_ = 0;
			     i_213_ < ((ImageSprite) class207).indexWidth;
			     i_213_++) {
			    int i_214_ = (((ImageSprite) class207).colors
					  [0xff & (((ImageSprite) class207)
						   .colorIndex[i++])]);
			    is[i_211_++]
				= (i_214_ != 0
				   ? Class273.bitOr(i_214_, -16777216)
				   : 0);
			}
		    }
		} else {
		    for (int i_215_ = 0;
			 i_215_ < ((ImageSprite) class207).indexHeight; i_215_++) {
			for (int i_216_ = 0;
			     ((ImageSprite) class207).indexWidth > i_216_;
			     i_216_++) {
			    is[i_211_++]
				= (Class273.bitOr
				   ((((ImageSprite) class207).colors
				     [Class139.bitAnd((((ImageSprite)
							    class207)
							   .colorIndex[i]),
							  255)]),
				    (((ImageSprite) class207).alphaIndex[i]
				     << 109322168)));
			    i++;
			}
		    }
		}
		class105 = this.method3662(((ImageSprite) class207).indexWidth, is,
					   (byte) 94, 0,
					   ((ImageSprite) class207).indexWidth,
					   ((ImageSprite) class207).indexHeight);
	    }
	    class105.method985(((ImageSprite) class207).widthOffset,
			       ((ImageSprite) class207).heightOffset,
			       ((ImageSprite) class207).widthPadding,
			       ((ImageSprite) class207).heightPadding);
	    return class105;
	} catch (RuntimeException runtimeexception) {
	    throw Class348_Sub17.method2929(runtimeexception,
					    ("wga.GF("
					     + (class207 != null ? "{...}"
						: "null")
					     + ',' + bool + ')'));
	}
    }