package com.doomsdayclient; import com.doomsdayclient.jvm.ClassReflectionUtil; import com.doomsdayclient.lifecycle.FabricModDetector; import com.doomsdayclient.lifecycle.OverlayLookupHelper; import com.doomsdayclient.logging.ClientLog; import com.doomsdayclient.mapping.ClassMappingTable; import com.doomsdayclient.mapping.FieldMappingResolver; import com.doomsdayclient.mapping.FieldMappingTable; import com.doomsdayclient.mapping.MappedClass; import com.doomsdayclient.mapping.MappedField; import com.doomsdayclient.mapping.MappedMethod; import com.doomsdayclient.mapping.MappingRegistry; import com.doomsdayclient.mapping.MappingStringPool; import com.doomsdayclient.mapping.MethodMappingResolver; import com.doomsdayclient.mapping.MethodMappingTable; import com.doomsdayclient.mapping.versions.ClassMappings_1_12_2; import com.doomsdayclient.mapping.versions.ClassMappings_1_13_2; import com.doomsdayclient.mapping.versions.ClassMappings_1_14_4; import com.doomsdayclient.mapping.versions.ClassMappings_1_16_5; import com.doomsdayclient.mapping.versions.ClassMappings_1_8_8; import com.doomsdayclient.mapping.versions.FieldMappings_1_12_2; import com.doomsdayclient.mapping.versions.FieldMappings_1_13_2; import com.doomsdayclient.mapping.versions.FieldMappings_1_16_5; import com.doomsdayclient.mapping.versions.FieldMappings_1_19_2; import com.doomsdayclient.mapping.versions.FieldMappings_1_19_3; import com.doomsdayclient.mapping.versions.FieldMappings_1_19_4; import com.doomsdayclient.mapping.versions.FieldMappings_1_20_1; import com.doomsdayclient.mapping.versions.FieldMappings_1_20_2; import com.doomsdayclient.mapping.versions.FieldMappings_1_20_4; import com.doomsdayclient.mapping.versions.FieldMappings_1_20_6; import com.doomsdayclient.mapping.versions.FieldMappings_1_21_1; import com.doomsdayclient.mapping.versions.FieldMappings_1_21_3; import com.doomsdayclient.mapping.versions.FieldMappings_1_8_8; import com.doomsdayclient.mapping.versions.FieldMappings_26_1_2; import com.doomsdayclient.mapping.versions.MethodMappings_1_12_2; import com.doomsdayclient.mapping.versions.MethodMappings_1_13_2; import com.doomsdayclient.mapping.versions.MethodMappings_1_14_4; import com.doomsdayclient.mapping.versions.MethodMappings_1_15_2; import com.doomsdayclient.mapping.versions.MethodMappings_1_16_5; import com.doomsdayclient.mapping.versions.MethodMappings_1_17_1; import com.doomsdayclient.mapping.versions.MethodMappings_1_18_2; import com.doomsdayclient.mapping.versions.MethodMappings_1_21_10; import com.doomsdayclient.mapping.versions.MethodMappings_1_21_11; import com.doomsdayclient.mapping.versions.MethodMappings_1_21_3; import com.doomsdayclient.mapping.versions.MethodMappings_1_21_4; import com.doomsdayclient.mapping.versions.MethodMappings_1_21_5; import com.doomsdayclient.mapping.versions.MethodMappings_1_21_8; import com.doomsdayclient.mapping.versions.MethodMappings_1_8_8; import com.doomsdayclient.mapping.versions.MethodMappings_1_8_9; import com.doomsdayclient.mapping.versions.MethodMappings_26_1_2; import com.doomsdayclient.mapping.versions.MethodMappings_26_2; import com.doomsdayclient.mapping.versions.MethodMappings_26_3; import com.doomsdayclient.text.ByteSlice; import com.doomsdayclient.text.IdentifierParser; import com.doomsdayclient.text.LiteralStringAdapter; import com.doomsdayclient.text.ProtectedString; import com.doomsdayclient.text.ProtectedStringBuilder; import com.doomsdayclient.text.StringTable; import com.doomsdayclient.util.collections.FastArrayList; import com.doomsdayclient.util.io.ConstantPoolWriter; import java.util.HashMap; import java.util.Iterator; import java.util.Map.Entry; public class BootstrapContext { private boolean enabled = false; private boolean active = false; private boolean visible = false; private HashMap hashMap = new HashMap(); private FastArrayList fastArrayList = new FastArrayList(); private FastArrayList fastArrayList2 = new FastArrayList(); private FastArrayList fastArrayList3 = new FastArrayList(); private HashMap[] hashMaps; public HashMap hashMap2 = new HashMap(); public HashMap hashMap3 = new HashMap(); private MinecraftVersion minecraftVersion; private DoomsDay doomsDay; private int[] ints; private int[] ints2; private int[] ints3; private int index; private int count; private int size; public String string; private final boolean initialized; private final boolean running; private final boolean loaded; private final boolean ready; private final boolean cancelled; private ProtectedString[] protectedStrings; private boolean dirty; private boolean focused; public static long address; public static long handle; public static long timestamp; private static final ProtectedString PROTECTED_STRING = StringTable.STR_MAPPING_LOADING; private static final ProtectedString PROTECTED_STRING2 = StringTable.STR_APPEND_WEIRD; private static final ProtectedString PROTECTED_STRING3 = StringTable.protectedString24; private static final ProtectedString PROTECTED_STRING4 = StringTable.STR_1_8_8; private static final ProtectedString PROTECTED_STRING5 = StringTable.STR_1_9_4; private static final ProtectedString PROTECTED_STRING6 = StringTable.STR_1_10_2; private static final ProtectedString PROTECTED_STRING7 = StringTable.STR_1_11_2; private static final ProtectedString PROTECTED_STRING8 = StringTable.STR_1_12_2; private static final ProtectedString PROTECTED_STRING9 = StringTable.STR_1_13_2; private static final ProtectedString PROTECTED_STRING10 = StringTable.STR_1_14_4; private static final ProtectedString PROTECTED_STRING11 = StringTable.STR_1_15_2; private static final ProtectedString PROTECTED_STRING12 = StringTable.STR_1_16_5; private static final ProtectedString PROTECTED_STRING13 = StringTable.STR_1_17_1; private static final ProtectedString PROTECTED_STRING14 = StringTable.STR_1_18_2; private static final ProtectedString PROTECTED_STRING15 = StringTable.STR_1_21_1; private static final ProtectedString PROTECTED_STRING16 = StringTable.STR_1_21_3; private static final ProtectedString PROTECTED_STRING17 = StringTable.STR_1_21_4; private static final ProtectedString PROTECTED_STRING18 = StringTable.STR_1_21_5; private static final ProtectedString PROTECTED_STRING19 = StringTable.STR_1_21_8; private static final ProtectedString PROTECTED_STRING20 = StringTable.STR_1_21_10; private static final ProtectedString PROTECTED_STRING21 = StringTable.STR_1_21_11; private static final ProtectedString PROTECTED_STRING22 = StringTable.STR_26_1_2; private static final ProtectedString PROTECTED_STRING23 = StringTable.STR_26_2; private static final ProtectedString PROTECTED_STRING24 = StringTable.STR_26_3; private static final ProtectedString PROTECTED_STRING25 = StringTable.STR_NET_LABYMOD; private static final ProtectedString PROTECTED_STRING26 = StringTable.STR_LABYMOD_DETECTED; private static final ProtectedString PROTECTED_STRING27 = StringTable.STR_NET_VULKANMOD; private static final ProtectedString PROTECTED_STRING28 = StringTable.STR_VULKANMOD_IS_NOT_SUPPORTED_ON_26_2; private static final ProtectedString PROTECTED_STRING29 = StringTable.STR_VULKANMOD_DETECTED; private static final ProtectedString PROTECTED_STRING30 = StringTable.STR_NET_IRISSHADERS; private static final ProtectedString PROTECTED_STRING31 = StringTable.protectedString21; private static final ProtectedString PROTECTED_STRING32 = StringTable.STR_NET_BADLION_CLIENT_REDIRECT_RENDER; private static final ProtectedString PROTECTED_STRING33 = StringTable.STR_BADLION_RENDER_DETECTED; private static final ProtectedString PROTECTED_STRING34 = StringTable.STR_NET_BADLION_CLIENT; private static final ProtectedString PROTECTED_STRING35 = StringTable.STR_BADLION_DETECTED; private static final ProtectedString PROTECTED_STRING36 = StringTable.STR_NET_MINECRAFTFORGE_FML_COMMON_LOAD3; private static final ProtectedString PROTECTED_STRING37 = StringTable.STR_OLD_FORGE_DETECTED; private static final ProtectedString PROTECTED_STRING38 = StringTable.STR_NET_MINECRAFTFORGE_FML_MODLIST2; private static final ProtectedString PROTECTED_STRING39 = StringTable.STR_NEW_FORGE_DETECTED; private static final ProtectedString PROTECTED_STRING40 = StringTable.STR_NET_FABRICMC_FABRIC_IMPL_CLIENT_IN; private static final ProtectedString PROTECTED_STRING41 = StringTable.STR_INDIGO_DETECTED; private static final ProtectedString PROTECTED_STRING42 = StringTable.STR_NET_FABRICMC; private static final ProtectedString PROTECTED_STRING43 = StringTable.STR_FABRIC_DETECTED; private static final ProtectedString PROTECTED_STRING44 = StringTable.STR_NET_DIGITALINGOT_FEATHER; private static final ProtectedString PROTECTED_STRING45 = StringTable.STR_FEATHER_DETECTED; private static final ProtectedString PROTECTED_STRING46 = StringTable.STR_NET_CAFFEINEMC_MODS_SODIUM; private static final ProtectedString PROTECTED_STRING47 = StringTable.STR_SODIUM_DETECTED; private static final ProtectedString PROTECTED_STRING48 = StringTable.STR_ME_PIEKING1215; private static final ProtectedString PROTECTED_STRING49 = StringTable.STR_INVMOVE_DETECTED; private static final ProtectedString PROTECTED_STRING50 = StringTable.STR_ME_DECCE_IXERIS; private static final ProtectedString PROTECTED_STRING51 = StringTable.STR_IXERIS_DETECTED; private static final ProtectedString PROTECTED_STRING52 = StringTable.STR_GG_DAWN; private static final ProtectedString PROTECTED_STRING53 = StringTable.STR_FEATHER2; private static final ProtectedString PROTECTED_STRING54 = StringTable.STR_DAWN_DETECTED; private static final ProtectedString PROTECTED_STRING55 = StringTable.STR_DEV_TR7ZW_ENTITYCULLING; private static final ProtectedString PROTECTED_STRING56 = StringTable.STR_ENTITY_CULLING_DETECTED; private static final ProtectedString PROTECTED_STRING57 = StringTable.STR_COM_TERRAFORMERSMC_MODMENU; private static final ProtectedString PROTECTED_STRING58 = StringTable.STR_MODMENU_DETECTED; private static final ProtectedString PROTECTED_STRING59 = StringTable.STR_FR_SALWYRR_CLIENT; private static final ProtectedString PROTECTED_STRING60 = StringTable.STR_SALWYRR_CLIENT_DETECTED; private static final ProtectedString PROTECTED_STRING61 = StringTable.STR_ME_JELLYSQUID_MODS_SODIUM; private static final ProtectedString PROTECTED_STRING62 = StringTable.protectedString123; private static final ProtectedString PROTECTED_STRING63 = StringTable.STR_INDIUM_DETECTED; private static final ProtectedString PROTECTED_STRING64 = StringTable.STR_DEV_TR7ZW_EXORDIUM; private static final ProtectedString PROTECTED_STRING65 = StringTable.STR_EXORDIUM_DETECTED; private static final ProtectedString PROTECTED_STRING66 = StringTable.STR_SET_SPECIAL_TO; private static final ProtectedString PROTECTED_STRING67 = StringTable.STR_NOTCH; private static final ProtectedString PROTECTED_STRING68 = StringTable.STR_SRG; private static final ProtectedString PROTECTED_STRING69 = StringTable.STR_MCP; private static final ProtectedString PROTECTED_STRING70 = StringTable.STR_INTER; private static final ProtectedString PROTECTED_STRING71 = StringTable.STR_YARN; private static final ProtectedString PROTECTED_STRING72 = StringTable.STR_SYMBOL_3F; private static final ProtectedString PROTECTED_STRING73 = StringTable.STR_MOJANG; private static final ProtectedString PROTECTED_STRING74 = StringTable.STR_MCP_ALT; private static final ProtectedString PROTECTED_STRING75 = StringTable.STR_MOJ_MCP; private static final ProtectedString PROTECTED_STRING76 = StringTable.STR_C_WTF_ELEMENT_NAMES_BUT_NOT_NULL_I; private static final ProtectedString PROTECTED_STRING77 = StringTable.protectedString41; private static final ProtectedString PROTECTED_STRING78 = StringTable.STR_SYMBOL_3D; private static final ProtectedString PROTECTED_STRING79 = StringTable.STR_SYMBOL_517; private static final ProtectedString PROTECTED_STRING80 = StringTable.STR_COLON_SPACE; private static final ProtectedString PROTECTED_STRING81 = StringTable.STR_C_COMPATIBLE; private static final ProtectedString PROTECTED_STRING82 = StringTable.STR_C_WARN_I_P; private static final ProtectedString PROTECTED_STRING83 = StringTable.STR_SYMBOL_F44; private static final ProtectedString PROTECTED_STRING84 = StringTable.STR_C_WARN2_I_P; private static final ProtectedString PROTECTED_STRING85 = StringTable.STR_FOR_CLASS_MCP; private static final ProtectedString PROTECTED_STRING86 = StringTable.STR_C_WARN_CHANGE_ACTIVE_NAME; private static final ProtectedString PROTECTED_STRING87 = StringTable.STR_NET_MINECRAFT3; private static final ProtectedString PROTECTED_STRING88 = StringTable.STR_COM_MOJANG_BLAZE3D3; private static final ProtectedString PROTECTED_STRING89 = StringTable.STR_COM_MOJANG_REALMSCLIENT2; private static final ProtectedString PROTECTED_STRING90 = StringTable.STR_COM_MOJANG_MATH2; private static final ProtectedString PROTECTED_STRING91 = StringTable.STR_COM_MOJANG_RENDERPEARL2; private static final ProtectedString PROTECTED_STRING92 = StringTable.STR_F_COMPATIBLE; private static final ProtectedString PROTECTED_STRING93 = StringTable.STR_F_WARNING_NEW_ACTIVE_INDEX_PREFFER; private static final ProtectedString PROTECTED_STRING94 = StringTable.STR_FOR_FIELD; private static final ProtectedString PROTECTED_STRING95 = StringTable.STR_WARN_FIELD_CHANGED_ACTIVE_NAD; private static final ProtectedString PROTECTED_STRING96 = StringTable.STR_DOT; private static final ProtectedString PROTECTED_STRING97 = StringTable.STR_SYMBOL_3C6F; private static final ProtectedString PROTECTED_STRING98 = StringTable.STR_SKIP_GETOVERLAY_ESSENTIAL; private static final ProtectedString PROTECTED_STRING99 = StringTable.STR_GROW; private static final ProtectedString PROTECTED_STRING100 = StringTable.STR_EXPAND; private static final ProtectedString PROTECTED_STRING101 = StringTable.STR_ADDCOORD; private static final ProtectedString PROTECTED_STRING102 = StringTable.STR_RESOLVE_GROW; private static final ProtectedString PROTECTED_STRING103 = StringTable.STR_RESOLVE_EXPAND; private static final ProtectedString PROTECTED_STRING104 = StringTable.STR_WTF_RESOLVE_GROW; private static final ProtectedString PROTECTED_STRING105 = StringTable.STR_WTF_RESOLVE_EXPAND; private static final ProtectedString PROTECTED_STRING106 = StringTable.STR_M_COMPATIBLE; private static final ProtectedString PROTECTED_STRING107 = StringTable.STR_WARNING_NEW_ACTIVE_INDEX_PREFFERED; private static final ProtectedString PROTECTED_STRING108 = StringTable.STR_FOR_METHOD; private static final ProtectedString PROTECTED_STRING109 = StringTable.STR_WARN_METHOD_CHANGED_ACTIVE_NAD; private static final ProtectedString PROTECTED_STRING110 = StringTable.STR_1_20_4; private static final ProtectedString PROTECTED_STRING111 = StringTable.STR_1_19_2; private static final ProtectedString PROTECTED_STRING112 = StringTable.STR_1_19_3; private static final ProtectedString PROTECTED_STRING113 = StringTable.STR_1_19_4; private static final ProtectedString PROTECTED_STRING114 = StringTable.STR_1_20_1; private static final ProtectedString PROTECTED_STRING115 = StringTable.STR_1_20_2; private static final ProtectedString PROTECTED_STRING116 = StringTable.STR_1_20_6; public BootstrapContext( MinecraftVersion minecraftVersion2, DoomsDay doomsDay2, ByteSlice byteSlice) { this.focused = MinecraftVersion.minecraftVersion.matchesMinecraftVersion(MinecraftVersion.V26_1); this.minecraftVersion = minecraftVersion2; this.doomsDay = doomsDay2; this.loaded = minecraftVersion2.matchesMinecraftVersion(MinecraftVersion.V1_17); this.ready = minecraftVersion2.supportsMinecraftVersion(MinecraftVersion.V1_16_5); this.initialized = (!(!minecraftVersion2.supportsMinecraftVersion(MinecraftVersion.V1_8_9) && !minecraftVersion2.supportsMinecraftVersion(MinecraftVersion.V1_8_8))); this.running = minecraftVersion2.supportsMinecraftVersion(MinecraftVersion.V1_12_2); this.cancelled = minecraftVersion2.matchesMinecraftVersion(MinecraftVersion.V1_8, MinecraftVersion.V1_12_2); ProtectedString text = new ProtectedString(minecraftVersion2.protectedString3); if (!MinecraftVersion.matchesProtectedCharSeque(minecraftVersion2.protectedString3)) { if (MinecraftVersion.createInt(minecraftVersion2, MinecraftVersion.V26_3) > 0) { text = new ProtectedString(MinecraftVersion.V26_3.protectedString3); } else { text = new ProtectedString(minecraftVersion2.protectedString4); } } long longValue = doomsDay2.createLong(); BootstrapContext bootstrapContext = this; MappingStringPool mappingStringPool = new MappingStringPool(byteSlice.append(0, byteSlice.getSize())); ByteSlice byteSlice2; int count2 = (byteSlice2 = byteSlice.append( mappingStringPool.createInt(), byteSlice.getSize() - mappingStringPool.createInt())) .buildInt(); for (int index2 = 0; index2 < count2; index2++) { ProtectedString text2 = byteSlice2.getProtectedString(); int count3; int[] intValues = new int[count3 = byteSlice2.createInt()]; for (int index3 = 0; index3 < count3; index3++) { intValues[index3] = byteSlice2.createInt(); } int count4 = byteSlice2.buildInt(); for (int index4 = 0; index4 < count4; index4++) { int count5 = byteSlice2.buildInt(); byte byteValue = 0; for (int index5 = 0; index5 < count5; index5++) { if (matchesByteSlice(byteSlice2, text)) { byteValue = 1; } } int intValue = byteSlice2.computeInt(); if (byteValue == 0) { byteSlice2.onInt(intValue); } else { ClientLog.setProtectedCharSeque( new ProtectedStringBuilder(PROTECTED_STRING) .appendProtectedCharSeque(text2) .appendChar(':') .appendProtectedCharSeque(text)); ClassMappingTable classMappingTable; (classMappingTable = ClassMappingTable.createClassMappingTable(text2, text, false)) .applyMappingStringPool(mappingStringPool, byteSlice2, intValues); classMappingTable.execute(); ClassMappingTable classMappingTable2 = classMappingTable; if (bootstrapContext.ready) { ClientLog.setProtectedCharSeque(PROTECTED_STRING2); count5 = 0; for (int index6 = classMappingTable.fastArrayList.getIndex(); count5 < index6; count5++) { MappedClass mappedClass; if ((mappedClass = (MappedClass) classMappingTable2.fastArrayList.getObject(count5)) .protectedStrings != null) { ProtectedString[] texts = new ProtectedString[mappedClass.protectedStrings.length + 1]; for (int protectedStringIndex = 0; protectedStringIndex < mappedClass.protectedStrings.length; protectedStringIndex++) { texts[protectedStringIndex] = mappedClass.protectedStrings[protectedStringIndex]; } int intValue2; ProtectedString text3; if ((intValue2 = (text3 = mappedClass.protectedStrings[4]).fromInt(36)) >= 0) { ProtectedString text4; int intValue3 = (text4 = mappedClass.protectedStrings[1]).fromInt(36); texts[mappedClass.protectedStrings.length] = new ProtectedStringBuilder(text3.append(0, intValue2)) .appendProtectedCharSeque(text4.withInt(intValue3)) .getProtectedString(); } else { texts[mappedClass.protectedStrings.length] = text3; } mappedClass.setProtectedStringArray(texts); } } } bootstrapContext.fastArrayList.matchesFastArrayList(classMappingTable.fastArrayList); MappingRegistry mappingRegistry = new MappingRegistry(classMappingTable, null, null); bootstrapContext.hashMap.put(text2, mappingRegistry); } } for (int index7 = 0; index7 < count3; index7++) { intValues[index7] = 0; } } int count6 = byteSlice2.buildInt(); for (int index8 = 0; index8 < count6; index8++) { ProtectedString text5 = byteSlice2.getProtectedString(); int length; int[] intValues2 = new int[length = byteSlice2.createInt()]; for (int index9 = 0; index9 < length; index9++) { intValues2[index9] = byteSlice2.computeInt(); } int[] intValues3 = new int[length]; for (int index10 = 0; index10 < length; index10++) { intValues3[index10] = byteSlice2.computeInt(); } int count7 = byteSlice2.buildInt(); for (int index11 = 0; index11 < count7; index11++) { int count8 = byteSlice2.buildInt(); byte byteValue2 = 0; for (int index12 = 0; index12 < count8; index12++) { if (matchesByteSlice(byteSlice2, text)) { byteValue2 = 1; } } int intValue4 = byteSlice2.computeInt(); if (byteValue2 != 0) { MappingRegistry mappingRegistry2; FieldMappingTable fieldMappingTable; (fieldMappingTable = FieldMappingTable.createFieldMappingTable( (mappingRegistry2 = (MappingRegistry) bootstrapContext.hashMap.get(text5)) .classMappingTable, false)) .applyMappingStringPool(mappingStringPool, byteSlice2, intValues2, intValues3); fieldMappingTable.execute(); bootstrapContext.fastArrayList2.matchesFastArrayList(fieldMappingTable.fastArrayList); mappingRegistry2.fieldMappingTable = fieldMappingTable; } else { byteSlice2.onInt(intValue4); } } for (int index13 = 0; index13 < length; index13++) { intValues2[index13] = 0; intValues3[index13] = 0; } } int count9 = byteSlice2.buildInt(); for (int index14 = 0; index14 < count9; index14++) { ProtectedString text6 = byteSlice2.getProtectedString(); int length2; int[] intValues4 = new int[length2 = byteSlice2.createInt()]; for (int index15 = 0; index15 < length2; index15++) { intValues4[index15] = byteSlice2.computeInt(); } int[] intValues5 = new int[length2]; for (int index16 = 0; index16 < length2; index16++) { intValues5[index16] = byteSlice2.computeInt(); } int count10 = byteSlice2.buildInt(); for (int index17 = 0; index17 < count10; index17++) { int count11 = byteSlice2.buildInt(); byte byteValue3 = 0; for (int index18 = 0; index18 < count11; index18++) { if (matchesByteSlice(byteSlice2, text)) { byteValue3 = 1; } } count2 = byteSlice2.computeInt(); if (byteValue3 != 0) { MethodMappingTable methodMappingTable; MappingRegistry mappingRegistry3; (methodMappingTable = MethodMappingTable.createMethodMappingTable( (mappingRegistry3 = (MappingRegistry) bootstrapContext.hashMap.get(text6)) .classMappingTable, false)) .applyMappingStringPool(mappingStringPool, byteSlice2, intValues4, intValues5); methodMappingTable.execute(); bootstrapContext.fastArrayList3.matchesFastArrayList(methodMappingTable.fastArrayList); mappingRegistry3.methodMappingTable = methodMappingTable; } else { byteSlice2.onInt(count2); } } for (int index19 = 0; index19 < length2; index19++) { intValues4[index19] = 0; intValues5[index19] = 0; } } Iterator iterator = bootstrapContext.hashMap.values().iterator(); while (iterator.hasNext()) { ((MappingRegistry) iterator.next()).classMappingTable.clearState(); } byteSlice.update(); int length3 = 0; for (int index20 = 0; index20 < bootstrapContext.fastArrayList.getIndex(); index20++) { MappedClass mappedClass2; if ((mappedClass2 = (MappedClass) bootstrapContext.fastArrayList.getObject(index20)) .protectedStrings != null && mappedClass2.protectedStrings.length > length3) { length3 = mappedClass2.protectedStrings.length; } } bootstrapContext.hashMaps = new HashMap[length3]; for (int hashMapIndex = 0; hashMapIndex < bootstrapContext.hashMaps.length; hashMapIndex++) { bootstrapContext.hashMaps[hashMapIndex] = new HashMap(bootstrapContext.fastArrayList.getIndex() / 2 * 3); } int count12 = 0; for (int index21 = bootstrapContext.fastArrayList.getIndex(); count12 < index21; count12++) { MappedClass mappedClass3; if ((mappedClass3 = (MappedClass) bootstrapContext.fastArrayList.getObject(count12)) .protectedStrings != null) { for (int protectedStringIndex2 = 0; protectedStringIndex2 < mappedClass3.protectedStrings.length; protectedStringIndex2++) { HashMap entries; FastArrayList fastArrayList4; if ((fastArrayList4 = (FastArrayList) (entries = bootstrapContext.hashMaps[protectedStringIndex2]) .get(mappedClass3.protectedStrings[protectedStringIndex2])) == null) { fastArrayList4 = new FastArrayList(0); entries.put(mappedClass3.protectedStrings[protectedStringIndex2], fastArrayList4); } fastArrayList4.matchesObject(mappedClass3); } } } bootstrapContext.ints = new int[length3]; int length4 = 0; for (int index22 = 0; index22 < bootstrapContext.fastArrayList3.getIndex(); index22++) { MappedMethod mappedMethod; if (!(mappedMethod = (MappedMethod) bootstrapContext.fastArrayList3.getObject(index22)) .isActive() && mappedMethod.protectedStrings.length > length4) { length4 = mappedMethod.protectedStrings.length; } } bootstrapContext.ints3 = new int[length4]; int length5 = 0; for (int index23 = 0; index23 < bootstrapContext.fastArrayList2.getIndex(); index23++) { MappedField mappedField; if (!(mappedField = (MappedField) bootstrapContext.fastArrayList2.getObject(index23)) .isActive() && mappedField.protectedStrings.length > length5) { length5 = mappedField.protectedStrings.length; } } bootstrapContext.ints2 = new int[length5]; long longValue2 = doomsDay2.createLong(); ClientLog.setProtectedCharSeque( new ProtectedStringBuilder(PROTECTED_STRING3).withLong(longValue2 - longValue)); } public final MappingRegistry getMappingRegistry() { return (MappingRegistry) this.hashMap.get(PROTECTED_STRING4); } public final MappingRegistry readMappingRegistry() { return (MappingRegistry) this.hashMap.get(PROTECTED_STRING5); } public final MappingRegistry buildMappingRegistry() { return (MappingRegistry) this.hashMap.get(PROTECTED_STRING6); } public final MappingRegistry createMappingRegistry() { return (MappingRegistry) this.hashMap.get(PROTECTED_STRING7); } public final MappingRegistry computeMappingRegistry() { return (MappingRegistry) this.hashMap.get(PROTECTED_STRING8); } public final MappingRegistry getMappingRegistry2() { return (MappingRegistry) this.hashMap.get(PROTECTED_STRING9); } public final MappingRegistry getMappingRegistry3() { return (MappingRegistry) this.hashMap.get(PROTECTED_STRING10); } public final MappingRegistry getMappingRegistry4() { return (MappingRegistry) this.hashMap.get(PROTECTED_STRING11); } public final MappingRegistry getMappingRegistry5() { return (MappingRegistry) this.hashMap.get(PROTECTED_STRING12); } public final MappingRegistry getMappingRegistry6() { return (MappingRegistry) this.hashMap.get(PROTECTED_STRING13); } public final MappingRegistry getMappingRegistry7() { return (MappingRegistry) this.hashMap.get(PROTECTED_STRING14); } public final MappingRegistry getMappingRegistry8() { return (MappingRegistry) this.hashMap.get(PROTECTED_STRING15); } public final MappingRegistry getMappingRegistry9() { return (MappingRegistry) this.hashMap.get(PROTECTED_STRING16); } public final MappingRegistry getMappingRegistry10() { return (MappingRegistry) this.hashMap.get(PROTECTED_STRING17); } public final MappingRegistry getMappingRegistry11() { return (MappingRegistry) this.hashMap.get(PROTECTED_STRING18); } public final MappingRegistry getMappingRegistry12() { return (MappingRegistry) this.hashMap.get(PROTECTED_STRING19); } public final MappingRegistry getMappingRegistry13() { return (MappingRegistry) this.hashMap.get(PROTECTED_STRING20); } public final MappingRegistry getMappingRegistry14() { return (MappingRegistry) this.hashMap.get(PROTECTED_STRING21); } public final MappingRegistry getMappingRegistry15() { return (MappingRegistry) this.hashMap.get(PROTECTED_STRING22); } public final MappingRegistry getMappingRegistry16() { return (MappingRegistry) this.hashMap.get(PROTECTED_STRING23); } public final MappingRegistry getMappingRegistry17() { return (MappingRegistry) this.hashMap.get(PROTECTED_STRING24); } public final MappingRegistry getMappingRegistry(ProtectedString text) { return (MappingRegistry) this.hashMap.get(text); } private static boolean matchesByteSlice(ByteSlice byteSlice, ProtectedString text) { int count2 = byteSlice.buildInt(); int intValue = byteSlice.getInt(); int intValue2 = count2 == text.getInt() ? 1 : 0; for (int index2 = 0; index2 < count2; index2++) { int intValue3; if ((intValue3 = byteSlice.getByte(intValue + index2) & 255) >= 128) { byteSlice.applyInt(intValue - 1); return byteSlice.getProtectedString().matchesProtectedCharSeque(text); } if (intValue2 != 0 && intValue3 != text.getChar(index2)) { intValue2 = 0; } } byteSlice.onInt(count2); return ((intValue2 != 0)); } public final boolean matchesFastArrayList(FastArrayList fastArrayList4) { for (int index2 = 0; index2 < fastArrayList4.getIndex(); index2++) { if (this.matchesString((String) fastArrayList4.getObject(index2))) { return true; } } return false; } public final boolean matchesString(String text) { if (this.hashMap2.get(text) != null) { return true; } else { LiteralStringAdapter literalStringAdapter = new LiteralStringAdapter(text); if (this.hashMap3.get(literalStringAdapter) != null) { return true; } else { for (int hashMapIndex = 0; hashMapIndex < this.hashMaps.length; hashMapIndex++) { if (this.hashMaps[hashMapIndex].get(literalStringAdapter) != null) { return true; } } return false; } } } public final void setString(String string2) { if (string2.startsWith("net/")) { if (!this.doomsDay.clientState.loaded && IdentifierParser.matchesString(string2, PROTECTED_STRING25)) { ClientLog.setProtectedCharSeque(PROTECTED_STRING26); this.doomsDay.clientState.loaded = true; return; } if (!ClientState.dirty && !this.dirty && IdentifierParser.matchesString(string2, PROTECTED_STRING27)) { if (MinecraftVersion.minecraftVersion != null && MinecraftVersion.minecraftVersion.matchesMinecraftVersion(MinecraftVersion.V26_2)) { ClientLog.setProtectedCharSeque(PROTECTED_STRING28); this.dirty = true; return; } ClientLog.setProtectedCharSeque(PROTECTED_STRING29); ClientState.dirty = true; return; } if (!this.doomsDay.clientState.ready && IdentifierParser.matchesString(string2, PROTECTED_STRING30)) { ClientLog.setProtectedCharSeque(PROTECTED_STRING31); this.doomsDay.clientState.ready = true; return; } if (!ClientState.cancelled && IdentifierParser.matchesString(string2, PROTECTED_STRING32)) { ClientState.cancelled = true; ClientLog.setProtectedCharSeque(PROTECTED_STRING33); return; } if (!ClientState.inverted && IdentifierParser.matchesString(string2, PROTECTED_STRING34)) { ClientState.inverted = true; ClientLog.setProtectedCharSeque(PROTECTED_STRING35); return; } if (!ClientState.locked && IdentifierParser.matchesString(string2, PROTECTED_STRING36)) { ClientLog.setProtectedCharSeque(PROTECTED_STRING37); ClientState.locked = true; return; } if (!ClientState.selected && IdentifierParser.matchesString(string2, PROTECTED_STRING38)) { ClientLog.setProtectedCharSeque(PROTECTED_STRING39); ClientState.selected = true; return; } if (!this.doomsDay.clientState.visible && IdentifierParser.matchesString(string2, PROTECTED_STRING40)) { ClientLog.setProtectedCharSeque(PROTECTED_STRING41); this.doomsDay.clientState.visible = true; return; } if (!ClientState.staticMember && IdentifierParser.matchesString(string2, PROTECTED_STRING42)) { ClientLog.setProtectedCharSeque(PROTECTED_STRING43); ClientState.staticMember = true; return; } if (!ClientState.strict && IdentifierParser.matchesString(string2, PROTECTED_STRING44)) { ClientLog.setProtectedCharSeque(PROTECTED_STRING45); ClientState.strict = true; return; } if (!ClientState.running && IdentifierParser.matchesString(string2, PROTECTED_STRING46)) { ClientLog.setProtectedCharSeque(PROTECTED_STRING47); ClientState.running = true; return; } } else { if (IdentifierParser.matchesString(string2, PROTECTED_STRING48)) { if (!ClientState.hovered) { ClientLog.setProtectedCharSeque(PROTECTED_STRING49); } ClientState.hovered = true; return; } if (IdentifierParser.matchesString(string2, PROTECTED_STRING50)) { if (!ClientState.cached) { ClientLog.setProtectedCharSeque(PROTECTED_STRING51); } ClientState.cached = true; return; } if (IdentifierParser.matchesString(string2, PROTECTED_STRING52) || this.focused && IdentifierParser.matchesString(string2, PROTECTED_STRING53)) { if (!ClientState.valid) { ClientLog.setProtectedCharSeque(PROTECTED_STRING54); } ClientState.valid = true; return; } if (!ClientState.pending && IdentifierParser.matchesString(string2, PROTECTED_STRING55)) { ClientLog.setProtectedCharSeque(PROTECTED_STRING56); ClientState.pending = true; return; } if (IdentifierParser.matchesString(string2, PROTECTED_STRING57)) { if (!ClientState.supported) { ClientLog.setProtectedCharSeque(PROTECTED_STRING58); } ClientState.supported = true; return; } if (IdentifierParser.matchesString(string2, PROTECTED_STRING59)) { if (!this.doomsDay.clientState.initialized) { ClientLog.setProtectedCharSeque(PROTECTED_STRING60); } this.doomsDay.clientState.initialized = true; return; } if (IdentifierParser.matchesString(string2, PROTECTED_STRING61)) { if (!ClientState.running) { ClientLog.setProtectedCharSeque(PROTECTED_STRING47); } ClientState.running = true; return; } if (IdentifierParser.matchesString(string2, PROTECTED_STRING62)) { if (!ClientState.dragging) { ClientLog.setProtectedCharSeque(PROTECTED_STRING63); } ClientState.dragging = true; return; } if (!ClientState.silent && IdentifierParser.matchesString(string2, PROTECTED_STRING64)) { ClientLog.setProtectedCharSeque(PROTECTED_STRING65); ClientState.silent = true; } } } public final FabricModDetector createFabricModDetector( FastArrayList fastArrayList4, String text) { long longValue = this.doomsDay.createLong(); FabricModDetector fabricModDetector = new FabricModDetector(); for (int index2 = 0; index2 < fastArrayList4.getIndex(); index2++) { String string2 = (String) fastArrayList4.getObject(index2); LiteralStringAdapter literalStringAdapter = new LiteralStringAdapter(string2); MappedClass mappedClass; if ((mappedClass = (MappedClass) this.hashMap3.get(literalStringAdapter)) != null) { mappedClass.string = string2; ClientLog.setProtectedCharSeque( new ProtectedStringBuilder(PROTECTED_STRING66).appendString(string2)); } else { if (this.ints[this.index] > 10) { this.matchesString(string2, false); } if (text.equals(string2)) { if (this.matchesString(string2, true)) { fabricModDetector.enabled = true; fabricModDetector.visible = true; fabricModDetector.active = true; fabricModDetector.initialized = true; } else if (this.hashMap2.get(text) != null) { fabricModDetector.enabled = true; fabricModDetector.active = true; } } else if (this.matchesString(string2, true)) { fabricModDetector.visible = true; fabricModDetector.active = true; } else if (this.hashMap2.get(string2) != null) { fabricModDetector.active = true; } } } address = address + (this.doomsDay.createLong() - longValue); return fabricModDetector; } private ProtectedString getProtectedString(int selector) { if (this.loaded) { switch (selector) { case 0: return PROTECTED_STRING67; case 1: return PROTECTED_STRING68; case 2: return PROTECTED_STRING69; case 3: return PROTECTED_STRING70; case 4: return PROTECTED_STRING71; default: return PROTECTED_STRING72; } } else { switch (selector) { case 0: return PROTECTED_STRING67; case 1: return PROTECTED_STRING69; case 2: return PROTECTED_STRING70; case 3: return PROTECTED_STRING71; case 4: if (this.ready) { return PROTECTED_STRING73; } else if (this.initialized || this.running) { return PROTECTED_STRING74; } case 5: if (this.ready) { return PROTECTED_STRING75; } default: return PROTECTED_STRING72; } } } private boolean matchesInt(int intValue, int intValue2) { if (!this.loaded || (intValue != 3 || intValue2 != 4) && (intValue2 != 3 || intValue != 4)) { if (!this.initialized && !this.running || (intValue != 1 || intValue2 != 4) && (intValue != 4 || intValue2 != 1)) { return (!(!this.ready || (intValue != 4 || intValue2 != 5) && (intValue2 != 4 || intValue != 5))); } else { return true; } } else { return true; } } private boolean matchesString(String text, boolean flag) { byte byteValue = 0; int intIndex = this.index; LiteralStringAdapter literalStringAdapter = new LiteralStringAdapter(text); for (int hashMapIndex = 0; hashMapIndex < this.hashMaps.length; hashMapIndex++) { FastArrayList fastArrayList4; if ((fastArrayList4 = (FastArrayList) this.hashMaps[hashMapIndex].get(literalStringAdapter)) != null) { MappedClass mappedClass; if ((mappedClass = (MappedClass) fastArrayList4.getObject(0)).protectedStrings == null) { for (int index2 = 0; index2 < fastArrayList4.getIndex(); index2++) { if (((MappedClass) fastArrayList4.getObject(index2)).protectedStrings != null) { ClientLog.onProtectedCharSeque(new ProtectedStringBuilder(PROTECTED_STRING76)); } } } else { if (this.ints[intIndex] > 10 && hashMapIndex != intIndex) { ProtectedString text2 = mappedClass.protectedStrings[hashMapIndex]; ProtectedString text3 = mappedClass.protectedStrings[intIndex]; if (IdentifierParser.matchesProtectedCharSeque(text2, text3)) { if (flag) { ClientLog.setProtectedCharSeque( new ProtectedStringBuilder(PROTECTED_STRING77) .appendProtectedCharSeque(this.getProtectedString(hashMapIndex)) .appendProtectedCharSeque(PROTECTED_STRING78) .appendProtectedCharSeque(this.getProtectedString(intIndex)) .appendProtectedCharSeque(PROTECTED_STRING79) .appendProtectedCharSeque(text2) .appendProtectedCharSeque(PROTECTED_STRING80) .appendProtectedCharSeque(mappedClass.protectedString)); } } else if (this.matchesInt(hashMapIndex, intIndex)) { if (flag) { ClientLog.setProtectedCharSeque( new ProtectedStringBuilder(PROTECTED_STRING81) .appendProtectedCharSeque(this.getProtectedString(hashMapIndex)) .appendProtectedCharSeque(PROTECTED_STRING78) .appendProtectedCharSeque(this.getProtectedString(intIndex)) .appendProtectedCharSeque(PROTECTED_STRING79) .appendProtectedCharSeque(text2) .appendProtectedCharSeque(PROTECTED_STRING78) .appendProtectedCharSeque(text3) .appendProtectedCharSeque(PROTECTED_STRING80) .appendProtectedCharSeque(mappedClass.protectedString)); ClientLog.setProtectedCharSeque( new ProtectedStringBuilder(this.ints[intIndex]) .appendChar(' ') .appendInt(this.ints[hashMapIndex])); } } else if (flag) { ClientLog.setProtectedCharSeque( new ProtectedStringBuilder(PROTECTED_STRING82) .appendProtectedCharSeque(this.getProtectedString(hashMapIndex)) .appendProtectedCharSeque(PROTECTED_STRING83) .appendProtectedCharSeque(this.getProtectedString(intIndex)) .appendProtectedCharSeque(PROTECTED_STRING79) .appendProtectedCharSeque(text2) .appendProtectedCharSeque(PROTECTED_STRING83) .appendProtectedCharSeque(text3) .appendProtectedCharSeque(PROTECTED_STRING80) .appendProtectedCharSeque(mappedClass.protectedString)); continue; } } if (!this.loaded || intIndex != 1 || hashMapIndex != 3) { if (mappedClass.isSupported()) { for (int protectedStringIndex = 0; protectedStringIndex < mappedClass.protectedStrings.length; protectedStringIndex++) { if (mappedClass.protectedStrings[protectedStringIndex].checkString(text)) { this.setInt(protectedStringIndex); } } } else { this.setInt(hashMapIndex); } if (flag) { for (int index3 = 0; index3 < fastArrayList4.getIndex(); index3++) { this.setMappedClass((MappedClass) fastArrayList4.getObject(index3)); this.applyMappedClass( (MappedClass) fastArrayList4.getObject(index3), hashMapIndex, text); } byteValue = 1; } break; } ClientLog.onProtectedCharSeque( new ProtectedStringBuilder(PROTECTED_STRING84) .appendProtectedCharSeque(this.getProtectedString(hashMapIndex)) .appendProtectedCharSeque(PROTECTED_STRING83) .appendProtectedCharSeque(this.getProtectedString(intIndex)) .appendProtectedCharSeque(PROTECTED_STRING85) .appendProtectedCharSeque(mappedClass.protectedStrings[1])); } } } return ((byteValue != 0)); } private void setMappedClass(MappedClass mappedClass) { for (int protectedStringIndex = 0; protectedStringIndex < mappedClass.protectedStrings.length; protectedStringIndex++) { this.hashMaps[protectedStringIndex].remove( mappedClass.protectedStrings[protectedStringIndex]); } } private void applyMappedClass(MappedClass mappedClass, int protectedStringIndex, String string2) { if (mappedClass.string != null && !string2.equals(mappedClass.string)) { ClientLog.setProtectedCharSeque( new ProtectedStringBuilder(PROTECTED_STRING86) .appendString(mappedClass.string) .appendChar('>') .appendString(string2)); } mappedClass.string = string2; mappedClass.protectedStrings[protectedStringIndex] = new ProtectedString(string2); FastArrayList fastArrayList4; if ((fastArrayList4 = (FastArrayList) this.hashMap2.get(string2)) == null) { fastArrayList4 = new FastArrayList(1); this.hashMap2.put(string2, fastArrayList4); } fastArrayList4.matchesObject(mappedClass); } private int createInt(String text, ProtectedString[] texts) { for (int textIndex = 0; textIndex < texts.length; textIndex++) { if (texts[textIndex].checkString(text)) { return textIndex; } } BootstrapContext bootstrapContext = this; ProtectedString text2; if (text == null) { text2 = null; } else { ProtectedStringBuilder builder = new ProtectedStringBuilder(text); if (this.protectedStrings == null) { this.protectedStrings = new ProtectedString[] { PROTECTED_STRING87, PROTECTED_STRING88, PROTECTED_STRING89, PROTECTED_STRING90, PROTECTED_STRING91 }; } for (int protectedStringIndex = 0; protectedStringIndex < bootstrapContext.protectedStrings.length; protectedStringIndex++) { ProtectedString text3 = bootstrapContext.protectedStrings[protectedStringIndex]; int total; while ((total = builder.getInt(text3)) >= 0) { total += text3.getInt(); int intValue = builder.createInt("/", total); builder.append(total - 1, intValue); } } text2 = builder.getProtectedString(); } for (int textIndex2 = 0; textIndex2 < texts.length; textIndex2++) { if (texts[textIndex2].matchesProtectedCharSeque(text2)) { return textIndex2; } } return -1; } private boolean matchesMappedField( MappedField mappedField, ConstantPoolWriter constantPoolWriter, boolean flag) { byte byteValue = 0; FieldMappingResolver fieldMappingResolver = mappedField.fieldMappingResolver; for (int first = 0; first < mappedField.protectedStrings.length; first++) { String string2 = constantPoolWriter.string2; if (mappedField.matchesInt(first, string2) && this.createInt(constantPoolWriter.string3, mappedField.protectedStrings2) >= 0) { FieldMappingResolver fieldMappingResolver2 = new FieldMappingResolver(constantPoolWriter.string2, constantPoolWriter.string3); int count2 = first; int second = this.count; if (this.ints2[second] > 5 && first != second) { if (mappedField.matchesInt(first, mappedField.protectedStrings[second])) { count2 = second; } else { if (!this.areCompatibleNamespaces(first, second)) { if (flag && fieldMappingResolver == null) { ClientLog.onProtectedCharSeque( new ProtectedStringBuilder(PROTECTED_STRING93) .appendInt(first) .appendProtectedCharSeque(PROTECTED_STRING83) .appendInt(second) .appendProtectedCharSeque(PROTECTED_STRING94) .appendCallMarker(mappedField)); } continue; } if (flag) { ClientLog.setProtectedCharSeque( new ProtectedStringBuilder(PROTECTED_STRING92) .appendInt(first) .appendProtectedCharSeque(PROTECTED_STRING78) .appendInt(second) .appendProtectedCharSeque(PROTECTED_STRING79) .appendProtectedCharSeque(mappedField.protectedStrings[first]) .appendChar('=') .appendProtectedCharSeque(mappedField.protectedStrings[second])); } } } if (flag) { if (fieldMappingResolver != null && !fieldMappingResolver.equals(fieldMappingResolver2)) { ProtectedStringBuilder builder; (builder = new ProtectedStringBuilder()).appendProtectedCharSeque(PROTECTED_STRING95); builder.appendString(mappedField.mappedClass2.string); builder.appendProtectedCharSeque(PROTECTED_STRING96); builder.withObject(fieldMappingResolver); builder.appendProtectedCharSeque(PROTECTED_STRING97); builder.withObject(fieldMappingResolver2); ClientLog.onProtectedCharSeque(builder); } mappedField.fieldMappingResolver = fieldMappingResolver2; byteValue = 1; } if (!mappedField.isValid()) { this.ints2[count2]++; if (this.ints2[count2] > this.ints2[this.count]) { this.count = count2; } } break; } } return ((byteValue != 0)); } public final int getInt(FastArrayList fastArrayList4) { if (fastArrayList4 == null) { return 0; } else { long longValue = this.doomsDay.createLong(); int count2 = 0; for (int index2 = 0; index2 < fastArrayList4.getIndex(); index2++) { ConstantPoolWriter constantPoolWriter = (ConstantPoolWriter) fastArrayList4.getObject(index2); FastArrayList fastArrayList5; if ((fastArrayList5 = (FastArrayList) this.hashMap2.get(constantPoolWriter.string)) != null) { for (int index3 = 0; index3 < fastArrayList5.getIndex(); index3++) { MappedClass mappedClass; if ((mappedClass = (MappedClass) fastArrayList5.getObject(index3)).fastArrayList != null) { for (int index4 = 0; index4 < mappedClass.fastArrayList.getIndex(); index4++) { MappedField mappedField; if (!(mappedField = (MappedField) mappedClass.fastArrayList.getObject(index4)) .isActive()) { int ints2Index = this.count; if (this.ints2[ints2Index] <= 5) { this.matchesMappedField(mappedField, constantPoolWriter, false); } if (this.matchesMappedField(mappedField, constantPoolWriter, true)) { count2++; } } } } } } } timestamp = timestamp + (this.doomsDay.createLong() - longValue); return count2; } } public final void setClassRef(Class classRef) { String text = classRef.getName().replace('.', '/'); this.createFabricModDetector(ClassReflectionUtil.findFastArrayList(classRef), text); this.getInt(ClassReflectionUtil.fromClassRef(classRef)); this.findInt(ClassReflectionUtil.parseFastArrayList(classRef)); } private boolean matchesMappedMethod( MappedMethod mappedMethod, ConstantPoolWriter constantPoolWriter, boolean flag, FastArrayList fastArrayList4) { if (constantPoolWriter.string2.contentEquals("getOverlay") && this.size == 3) { ClientLog.setProtectedCharSeque(PROTECTED_STRING98); return false; } else { byte byteValue = 0; if (this.cancelled) { MappingRegistry mappingRegistry; MappingRegistry mappingRegistry2; int intValue = (mappingRegistry = this.computeMappingRegistry()) != null && ((MethodMappings_1_12_2) mappingRegistry.methodMappingTable).mappedMethod101 == mappedMethod ? 1 : ((mappingRegistry2 = this.getMappingRegistry()) != null && ((MethodMappings_1_8_9) mappingRegistry2.methodMappingTable) .mappedMethod7 == mappedMethod ? 1 : 0); MappingRegistry mappingRegistry3; int intValue2 = (mappingRegistry = this.computeMappingRegistry()) != null && ((MethodMappings_1_12_2) mappingRegistry.methodMappingTable).mappedMethod102 == mappedMethod ? 1 : ((mappingRegistry3 = this.getMappingRegistry()) != null && ((MethodMappings_1_8_9) mappingRegistry3.methodMappingTable) .mappedMethod8 == mappedMethod ? 1 : 0); if ((intValue != 0 || intValue2 != 0) && constantPoolWriter.string3.startsWith("(DDD)")) { boolean flag2 = PROTECTED_STRING99.checkString(constantPoolWriter.string2); boolean flag3 = PROTECTED_STRING100.checkString(constantPoolWriter.string2); boolean flag4 = PROTECTED_STRING101.checkString(constantPoolWriter.string2); if (flag2 || flag3 || flag4) { FastArrayList fastArrayList5 = fastArrayList4; byte byteValue2 = 0; flag = false; byte byteValue3 = 0; for (int index2 = 0; index2 < fastArrayList5.getIndex(); index2++) { String string2 = ((ConstantPoolWriter) fastArrayList5.getObject(index2)).string2; if (((ConstantPoolWriter) fastArrayList5.getObject(index2)) .string3.startsWith("(DDD)")) { if (PROTECTED_STRING100.checkString(string2)) { byteValue2 = 1; } else if (PROTECTED_STRING101.checkString(string2)) { flag = true; } else if (PROTECTED_STRING99.checkString(string2)) { byteValue3 = 1; } } } OverlayLookupHelper overlayLookupHelper = new OverlayLookupHelper(((byteValue2 != 0)), (flag), ((byteValue3 != 0))); if (flag2) { if (intValue2 != 0) { byteValue = 1; } } else if (flag3) { if ((overlayLookupHelper.visible && overlayLookupHelper.enabled ? 1 : 0) != 0) { if (intValue != 0) { byteValue = 1; } } else if ((overlayLookupHelper.active && overlayLookupHelper.enabled ? 1 : 0) != 0 && intValue2 != 0) { byteValue = 1; } } else if (flag4 && intValue != 0) { byteValue = 1; } if (byteValue != 0) { MethodMappingResolver methodMappingResolver = new MethodMappingResolver(constantPoolWriter.string2, constantPoolWriter.string3); if (mappedMethod.methodMappingResolver == null) { if (intValue2 != 0) { ClientLog.setProtectedCharSeque( new ProtectedStringBuilder(PROTECTED_STRING102) .withObject(methodMappingResolver)); } else if (intValue != 0) { ClientLog.setProtectedCharSeque( new ProtectedStringBuilder(PROTECTED_STRING103) .withObject(methodMappingResolver)); } } else if (!mappedMethod.methodMappingResolver.equals(methodMappingResolver)) { if (intValue2 != 0) { ClientLog.setProtectedCharSeque( new ProtectedStringBuilder(PROTECTED_STRING104) .withObject(mappedMethod.methodMappingResolver) .appendChar('>') .withObject(methodMappingResolver)); } else if (intValue != 0) { ClientLog.setProtectedCharSeque( new ProtectedStringBuilder(PROTECTED_STRING105) .withObject(mappedMethod.methodMappingResolver) .appendChar('>') .withObject(methodMappingResolver)); } } mappedMethod.methodMappingResolver = methodMappingResolver; } return ((byteValue != 0)); } } } MethodMappingResolver methodMappingResolver2 = mappedMethod.methodMappingResolver; for (int first = 0; first < mappedMethod.protectedStrings.length; first++) { String string22 = constantPoolWriter.string2; if (mappedMethod.matchesInt(first, string22) && this.createInt(constantPoolWriter.string3, mappedMethod.protectedStrings2) >= 0) { MethodMappingResolver methodMappingResolver3 = new MethodMappingResolver(constantPoolWriter.string2, constantPoolWriter.string3); int size2 = first; int second = this.size; if (this.ints3[second] > 5 && first != second) { if (mappedMethod.matchesInt(first, mappedMethod.protectedStrings[second])) { size2 = second; } else { if (!this.areCompatibleNamespaces(first, second)) { if (flag && methodMappingResolver2 == null) { ClientLog.setProtectedCharSeque( new ProtectedStringBuilder(PROTECTED_STRING107) .appendInt(first) .appendProtectedCharSeque(PROTECTED_STRING83) .appendInt(second) .appendProtectedCharSeque(PROTECTED_STRING108) .appendCallMarker(mappedMethod)); } continue; } if (flag) { ClientLog.setProtectedCharSeque( new ProtectedStringBuilder(PROTECTED_STRING106) .appendInt(first) .appendProtectedCharSeque(PROTECTED_STRING78) .appendInt(second) .appendProtectedCharSeque(PROTECTED_STRING79) .appendProtectedCharSeque(mappedMethod.protectedStrings[first]) .appendChar('=') .appendProtectedCharSeque(mappedMethod.protectedStrings[second])); } } } if (flag) { if (methodMappingResolver2 != null && !methodMappingResolver2.equals(methodMappingResolver3)) { ProtectedStringBuilder builder; (builder = new ProtectedStringBuilder()) .appendProtectedCharSeque(PROTECTED_STRING109); builder.appendString(mappedMethod.mappedClass2.string); builder.appendProtectedCharSeque(PROTECTED_STRING96); builder.withObject(methodMappingResolver2); builder.appendProtectedCharSeque(PROTECTED_STRING97); builder.withObject(methodMappingResolver3); ClientLog.onProtectedCharSeque(builder); } mappedMethod.methodMappingResolver = methodMappingResolver3; byteValue = 1; } if (!mappedMethod.isValid()) { this.ints3[size2]++; if (this.ints3[size2] > this.ints3[this.size]) { this.size = size2; } } this.doomsDay.setMappedMethod(mappedMethod); break; } } return ((byteValue != 0)); } } public final int findInt(FastArrayList fastArrayList4) { if (fastArrayList4 == null) { return 0; } else { long longValue = this.doomsDay.createLong(); int count2 = 0; for (int index2 = 0; index2 < fastArrayList4.getIndex(); index2++) { ConstantPoolWriter constantPoolWriter = (ConstantPoolWriter) fastArrayList4.getObject(index2); FastArrayList fastArrayList5; if ((fastArrayList5 = (FastArrayList) this.hashMap2.get(constantPoolWriter.string)) != null) { for (int index3 = 0; index3 < fastArrayList5.getIndex(); index3++) { MappedClass mappedClass; if ((mappedClass = (MappedClass) fastArrayList5.getObject(index3)).fastArrayList2 != null) { for (int index4 = 0; index4 < mappedClass.fastArrayList2.getIndex(); index4++) { MappedMethod mappedMethod; if (!(mappedMethod = (MappedMethod) mappedClass.fastArrayList2.getObject(index4)) .isActive()) { int ints3Index = this.size; if (this.ints3[ints3Index] <= 5) { this.matchesMappedMethod( mappedMethod, constantPoolWriter, false, fastArrayList4); } if (this.matchesMappedMethod( mappedMethod, constantPoolWriter, true, fastArrayList4)) { count2++; } } } } } } } handle = handle + (this.doomsDay.createLong() - longValue); return count2; } } public final void update() { if (this.hashMaps[0].size() == 0) { byte byteValue = 0; for (int index2 = 0; index2 < this.fastArrayList2.getIndex(); index2++) { if (((MappedField) this.fastArrayList2.getObject(index2)).fieldMappingResolver == null && !((MappedField) this.fastArrayList2.getObject(index2)).isActive()) { byteValue = 1; } } byte byteValue2 = 0; for (int index3 = 0; index3 < this.fastArrayList3.getIndex(); index3++) { if (((MappedMethod) this.fastArrayList3.getObject(index3)).methodMappingResolver == null && !((MappedMethod) this.fastArrayList3.getObject(index3)).isActive()) { ((MappedMethod) this.fastArrayList3.getObject(index3)).methodMappingResolver = ((MappedMethod) this.fastArrayList3.getObject(index3)) .createMethodMappingResol(this.size, this.index); byteValue2 = 1; } } if (byteValue == 0) { ; } if (byteValue2 == 0) { ; } } } private void setInt(int index2) { this.ints[index2]++; if (this.ints[index2] > this.ints[this.index]) { this.index = index2; } } public final int getIndex() { return this.index; } public final int getInt() { int intIndex = -1; for (int intIndex2 = 0; intIndex2 < this.ints.length; intIndex2++) { if (intIndex2 != this.index && (intIndex == -1 || this.ints[intIndex2] > this.ints[intIndex])) { intIndex = intIndex2; } } return intIndex; } public final FastArrayList getFastArrayList() { FastArrayList fastArrayList4 = new FastArrayList(this.hashMaps[0].size()); for (Entry entry : this.hashMaps[0].entrySet()) { fastArrayList4.matchesObject((MappedClass) ((FastArrayList) entry.getValue()).getObject(0)); } for (int index2 = 0; index2 < this.fastArrayList2.getIndex(); index2++) { MappedField mappedField; if ((mappedField = (MappedField) this.fastArrayList2.getObject(index2)).fieldMappingResolver == null && !mappedField.isActive() && !fastArrayList4.supportsObject(mappedField.mappedClass2)) { fastArrayList4.matchesObject(mappedField.mappedClass2); } } for (int index3 = 0; index3 < this.fastArrayList3.getIndex(); index3++) { MappedMethod mappedMethod; if ((mappedMethod = (MappedMethod) this.fastArrayList3.getObject(index3)) .methodMappingResolver == null && !mappedMethod.isActive() && !fastArrayList4.supportsObject(mappedMethod.mappedClass2)) { fastArrayList4.matchesObject(mappedMethod.mappedClass2); } } return fastArrayList4; } public final String getString() { if (this.minecraftVersion.matchesMinecraftVersion( MinecraftVersion.V1_8, MinecraftVersion.V1_12_2)) { return this.getClassMappings_1_12().mappedClass.string; } else if (this.minecraftVersion.matchesMinecraftVersion( MinecraftVersion.V1_13, MinecraftVersion.V1_13_2)) { return this.getClassMappings_1_13().mappedClass.string; } else if (this.minecraftVersion.matchesMinecraftVersion( MinecraftVersion.V1_14, MinecraftVersion.V1_16_5)) { return this.getClassMappings_1_16().mappedClass.string; } else { return this.minecraftVersion.matchesMinecraftVersion( MinecraftVersion.V1_17, MinecraftVersion.V26_3) ? this.getClassMappings_1_8_().mappedClass.string : null; } } public final MethodMappings_26_2 getMethodMappings_26_() { return (MethodMappings_26_2) this.getMappingRegistry15().methodMappingTable; } public final MethodMappings_26_3 readMethodMappings_26_() { return (MethodMappings_26_3) this.getMappingRegistry16().methodMappingTable; } public final ClassMappings_1_8_8 getClassMappings_1_8_() { return (ClassMappings_1_8_8) this.getMappingRegistry17().classMappingTable; } public final ClassMappings_1_16_5 getClassMappings_1_16() { return (ClassMappings_1_16_5) this.getMappingRegistry5().classMappingTable; } public final ClassMappings_1_14_4 getClassMappings_1_14() { return (ClassMappings_1_14_4) this.getMappingRegistry3().classMappingTable; } public final ClassMappings_1_13_2 getClassMappings_1_13() { return (ClassMappings_1_13_2) this.getMappingRegistry2().classMappingTable; } public final ClassMappings_1_12_2 getClassMappings_1_12() { return (ClassMappings_1_12_2) this.computeMappingRegistry().classMappingTable; } public final MethodMappings_1_17_1 getMethodMappings_1_1() { return (MethodMappings_1_17_1) this.getMappingRegistry6().methodMappingTable; } public final MethodMappings_1_18_2 readMethodMappings_1_1() { return (MethodMappings_1_18_2) this.getMappingRegistry7().methodMappingTable; } public final MethodMappings_1_21_3 getMethodMappings_1_2() { return (MethodMappings_1_21_3) this.getMappingRegistry8().methodMappingTable; } public final MethodMappings_1_21_4 readMethodMappings_1_2() { return (MethodMappings_1_21_4) this.getMappingRegistry9().methodMappingTable; } public final MethodMappings_1_21_5 buildMethodMappings_1_2() { return (MethodMappings_1_21_5) this.getMappingRegistry10().methodMappingTable; } public final MethodMappings_1_21_8 createMethodMappings_1_2() { return (MethodMappings_1_21_8) this.getMappingRegistry11().methodMappingTable; } public final MethodMappings_1_21_10 computeMethodMappings_1_2() { return (MethodMappings_1_21_10) this.getMappingRegistry12().methodMappingTable; } public final MethodMappings_1_21_11 getMethodMappings_1_22() { return (MethodMappings_1_21_11) this.getMappingRegistry13().methodMappingTable; } public final MethodMappings_26_1_2 buildMethodMappings_26_() { return (MethodMappings_26_1_2) this.getMappingRegistry14().methodMappingTable; } public final MethodMappings_1_8_8 getMethodMappings_1_8() { return (MethodMappings_1_8_8) this.getMappingRegistry17().methodMappingTable; } public final MethodMappings_1_16_5 buildMethodMappings_1_1() { return (MethodMappings_1_16_5) this.getMappingRegistry5().methodMappingTable; } public final MethodMappings_1_15_2 createMethodMappings_1_1() { return (MethodMappings_1_15_2) this.getMappingRegistry4().methodMappingTable; } public final MethodMappings_1_14_4 computeMethodMappings_1_1() { return (MethodMappings_1_14_4) this.getMappingRegistry3().methodMappingTable; } public final MethodMappings_1_13_2 getMethodMappings_1_12() { return (MethodMappings_1_13_2) this.getMappingRegistry2().methodMappingTable; } public final MethodMappings_1_12_2 getMethodMappings_1_13() { return (MethodMappings_1_12_2) this.computeMappingRegistry().methodMappingTable; } public final MethodMappings_1_8_9 readMethodMappings_1_8() { return (MethodMappings_1_8_9) this.getMappingRegistry().methodMappingTable; } public final FieldMappings_1_16_5 getFieldMappings_1_16() { return (FieldMappings_1_16_5) this.getMappingRegistry5().fieldMappingTable; } public final FieldMappings_1_8_8 getFieldMappings_1_8_() { return (FieldMappings_1_8_8) this.getMappingRegistry17().fieldMappingTable; } public final FieldMappings_26_1_2 getFieldMappings_26_1() { return (FieldMappings_26_1_2) this.getMappingRegistry15().fieldMappingTable; } public final FieldMappings_1_13_2 getFieldMappings_1_13() { return (FieldMappings_1_13_2) this.getMappingRegistry2().fieldMappingTable; } public final FieldMappings_1_12_2 getFieldMappings_1_12() { return (FieldMappings_1_12_2) this.computeMappingRegistry().fieldMappingTable; } public final FieldMappings_1_20_4 getFieldMappings_1_20() { return (FieldMappings_1_20_4) ((MappingRegistry) this.hashMap.get(PROTECTED_STRING110)).fieldMappingTable; } public final FieldMappings_1_19_2 getFieldMappings_1_19() { return (FieldMappings_1_19_2) ((MappingRegistry) this.hashMap.get(PROTECTED_STRING111)).fieldMappingTable; } public final FieldMappings_1_19_3 readFieldMappings_1_19() { return (FieldMappings_1_19_3) ((MappingRegistry) this.hashMap.get(PROTECTED_STRING112)).fieldMappingTable; } public final FieldMappings_1_19_4 buildFieldMappings_1_19() { return (FieldMappings_1_19_4) ((MappingRegistry) this.hashMap.get(PROTECTED_STRING113)).fieldMappingTable; } public final FieldMappings_1_20_1 readFieldMappings_1_20() { return (FieldMappings_1_20_1) ((MappingRegistry) this.hashMap.get(PROTECTED_STRING114)).fieldMappingTable; } public final FieldMappings_1_21_1 getFieldMappings_1_21() { return (FieldMappings_1_21_1) this.getMappingRegistry8().fieldMappingTable; } public final FieldMappings_1_20_2 buildFieldMappings_1_20() { return (FieldMappings_1_20_2) ((MappingRegistry) this.hashMap.get(PROTECTED_STRING115)).fieldMappingTable; } public final FieldMappings_1_20_6 createFieldMappings_1_20() { return (FieldMappings_1_20_6) ((MappingRegistry) this.hashMap.get(PROTECTED_STRING116)).fieldMappingTable; } public final FieldMappings_1_21_3 readFieldMappings_1_21() { return (FieldMappings_1_21_3) this.getMappingRegistry9().fieldMappingTable; } private boolean areCompatibleNamespaces(int first, int second) { return first == 2 && second == 1 || first == 1 && second == 2 || first == 4 && second == 3 || first == 3 && second == 4 || this.cancelled && (first == 2 && second == 5 || first == 5 && second == 2 || first == 5 && second == 1 || first == 1 && second == 5); } }