final void aa(short i, short i_570_) {
	anInt5403++;
	d var_d = ((AbstractToolkit) aHa_Sub3_5419).aD4579;
	for (int i_571_ = 0; anInt5478 > i_571_; i_571_++) {
	    if ((aShortArray5423[i_571_] ^ 0xffffffff) == (i ^ 0xffffffff))
		aShortArray5423[i_571_] = i_570_;
	}
	byte i_572_ = 0;
	byte i_573_ = 0;
	if ((i ^ 0xffffffff) != 0) {
	    TextureDefinition class12 = var_d.getTexture(i & 0xffff, -6662);
	    i_573_ = ((TextureDefinition) class12).aByte216;
	    i_572_ = ((TextureDefinition) class12).aByte201;
	}
	byte i_574_ = 0;
	byte i_575_ = 0;
	if (i_570_ != -1) {
	    TextureDefinition class12 = var_d.getTexture(0xffff & i_570_, -6662);
	    i_575_ = ((TextureDefinition) class12).aByte216;
	    if ((((TextureDefinition) class12).aByte198 ^ 0xffffffff) != -1
		|| ((TextureDefinition) class12).aByte211 != 0)
		aBoolean5502 = true;
	    i_574_ = ((TextureDefinition) class12).aByte201;
	}
	if (i_575_ != i_573_ | i_572_ != i_574_) {
	    if (aClass353Array5524 != null) {
		for (int i_576_ = 0; i_576_ < anInt5406; i_576_++) {
		    Class353 class353 = aClass353Array5524[i_576_];
		    Class334 class334 = aClass334Array5442[i_576_];
		    ((Class334) class334).anInt4156
			= (((Class334) class334).anInt4156 & ~0xffffff
			   | ((Class10.anIntArray179
			       [(aShortArray5486
				 [((Class353) class353).anInt4342]) & 0xffff])
			      & 0xffffff));
		}
	    }
	    method670(-109);
	}
    }