final NpcDefinition method794(ConfigHandler interface17, int i) {
	anInt1394++;
	int i_2_ = i;
	if (anInt1368 == -1) {
	    if (anInt1354 != -1)
		i_2_ = interface17.getRawConfig(anInt1354);
	} else
	    i_2_ = interface17.getSetting(anInt1368);
	if (i_2_ < 0
	    || ((i_2_ ^ 0xffffffff)
		<= (-1 + ((NpcDefinition) this).anIntArray1377.length ^ 0xffffffff))
	    || ((NpcDefinition) this).anIntArray1377[i_2_] == -1) {
	    int i_3_ = (((NpcDefinition) this).anIntArray1377
			[((NpcDefinition) this).anIntArray1377.length - 1]);
	    if ((i_3_ ^ 0xffffffff) == 0)
		return null;
	    return ((NpcDefinition) this).loader.getNpcDefinition(i_3_);
	}
	return ((NpcDefinition) this).loader
		   .getNpcDefinition(((NpcDefinition) this).anIntArray1377[i_2_]);
    }