static final int method592(boolean bool, byte i, boolean bool_0_, int i_1_,
			       int i_2_) {
	anInt1105++;
	if (i != -128)
	    return -20;
	Class348_Sub13 class348_sub13
	    = Class258_Sub4.method1974((byte) -1, i_1_, bool_0_);
	if (class348_sub13 == null)
	    return 0;
	int i_3_ = 0;
	for (int i_4_ = 0;
	     ((i_4_ ^ 0xffffffff)
	      > (((Class348_Sub13) class348_sub13).anIntArray6757.length
		 ^ 0xffffffff));
	     i_4_++) {
	    if ((((Class348_Sub13) class348_sub13).anIntArray6757[i_4_]
		 ^ 0xffffffff) <= -1
		&& ((((Class348_Sub13) class348_sub13).anIntArray6757[i_4_]
		     ^ 0xffffffff)
		    > (((ItemLoader) ToolkitException.itemLoader).anInt3271
		       ^ 0xffffffff))) {
		ItemDefinition class213 = (ToolkitException.itemLoader.getItemDefinition
				     (-127, (((Class348_Sub13) class348_sub13)
					     .anIntArray6757[i_4_])));
		int i_5_ = class213.method1567((((Class254)
						 Class101_Sub3
						     .aClass326_5764
						     .method2600(i_2_, 28364))
						.anInt3256),
					       107, i_2_);
		if (!bool)
		    i_3_ += i_5_;
		else
		    i_3_ += i_5_ * (((Class348_Sub13) class348_sub13)
				    .anIntArray6758[i_4_]);
	    }
	}
	return i_3_;
    }