final boolean method796(ConfigHandler interface17, int i) {
	anInt1351++;
	if (((NpcDefinition) this).anIntArray1377 == null)
	    return true;
	int config = -1;
	if (anInt1368 != -1)
	    config = interface17.getSetting(anInt1368);
	else if (anInt1354 != -1)
	    config = interface17.getRawConfig(anInt1354);
	if (config < 0
	    || ((config ^ 0xffffffff)
		<= (((NpcDefinition) this).anIntArray1377.length - 1 ^ 0xffffffff))
	    || (((NpcDefinition) this).anIntArray1377[config] ^ 0xffffffff) == 0) {
	    int i_28_ = (((NpcDefinition) this).anIntArray1377
			 [((NpcDefinition) this).anIntArray1377.length - 1]);
	    if ((i_28_ ^ 0xffffffff) == 0)
		return false;
	    return true;
	}
	if (i != 18627)
	    return false;
	return true;
    }