CrackMe.apk
Download file
package kotlin.reflect.jvm.internal.impl.protobuf;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import kotlin.reflect.jvm.internal.impl.protobuf.FieldSet.FieldDescriptorLite;
import kotlin.reflect.jvm.internal.impl.protobuf.Internal;
import kotlin.reflect.jvm.internal.impl.protobuf.LazyField;
import kotlin.reflect.jvm.internal.impl.protobuf.MessageLite;
import kotlin.reflect.jvm.internal.impl.protobuf.WireFormat;
final class FieldSet<FieldDescriptorType extends FieldDescriptorLite<FieldDescriptorType>> {
private static final FieldSet DEFAULT_INSTANCE = new FieldSet(true);
private final SmallSortedMap<FieldDescriptorType, Object> fields = SmallSortedMap.newFieldMap(16);
private boolean hasLazyField = false;
private boolean isImmutable;
public interface FieldDescriptorLite<T extends FieldDescriptorLite<T>> extends Comparable<T> {
WireFormat.JavaType getLiteJavaType();
WireFormat.FieldType getLiteType();
int getNumber();
MessageLite.Builder internalMergeFrom(MessageLite.Builder builder, MessageLite messageLite);
boolean isPacked();
boolean isRepeated();
}
private FieldSet() {
}
private FieldSet(boolean z) {
makeImmutable();
}
public static <T extends FieldDescriptorLite<T>> FieldSet<T> newFieldSet() {
return new FieldSet<>();
}
public static <T extends FieldDescriptorLite<T>> FieldSet<T> emptySet() {
return DEFAULT_INSTANCE;
}
public void makeImmutable() {
if (!this.isImmutable) {
this.fields.makeImmutable();
this.isImmutable = true;
}
}
public FieldSet<FieldDescriptorType> clone() {
FieldSet<FieldDescriptorType> newFieldSet = newFieldSet();
for (int i = 0; i < this.fields.getNumArrayEntries(); i++) {
Map.Entry<FieldDescriptorType, Object> arrayEntryAt = this.fields.getArrayEntryAt(i);
newFieldSet.setField((FieldDescriptorLite) arrayEntryAt.getKey(), arrayEntryAt.getValue());
}
for (Map.Entry next : this.fields.getOverflowEntries()) {
newFieldSet.setField((FieldDescriptorLite) next.getKey(), next.getValue());
}
newFieldSet.hasLazyField = this.hasLazyField;
return newFieldSet;
}
public Iterator<Map.Entry<FieldDescriptorType, Object>> iterator() {
if (this.hasLazyField) {
return new LazyField.LazyIterator(this.fields.entrySet().iterator());
}
return this.fields.entrySet().iterator();
}
public boolean hasField(FieldDescriptorType fielddescriptortype) {
if (!fielddescriptortype.isRepeated()) {
return this.fields.get(fielddescriptortype) != null;
}
throw new IllegalArgumentException("hasField() can only be called on non-repeated fields.");
}
public Object getField(FieldDescriptorType fielddescriptortype) {
Object obj = this.fields.get(fielddescriptortype);
return obj instanceof LazyField ? ((LazyField) obj).getValue() : obj;
}
public void setField(FieldDescriptorType fielddescriptortype, Object obj) {
if (!fielddescriptortype.isRepeated()) {
verifyType(fielddescriptortype.getLiteType(), obj);
} else if (obj instanceof List) {
ArrayList<Object> arrayList = new ArrayList<>();
arrayList.addAll((List) obj);
for (Object verifyType : arrayList) {
verifyType(fielddescriptortype.getLiteType(), verifyType);
}
obj = arrayList;
} else {
throw new IllegalArgumentException("Wrong object type used with protocol message reflection.");
}
if (obj instanceof LazyField) {
this.hasLazyField = true;
}
this.fields.put(fielddescriptortype, obj);
}
public int getRepeatedFieldCount(FieldDescriptorType fielddescriptortype) {
if (fielddescriptortype.isRepeated()) {
Object field = getField(fielddescriptortype);
if (field == null) {
return 0;
}
return ((List) field).size();
}
throw new IllegalArgumentException("getRepeatedField() can only be called on repeated fields.");
}
public Object getRepeatedField(FieldDescriptorType fielddescriptortype, int i) {
if (fielddescriptortype.isRepeated()) {
Object field = getField(fielddescriptortype);
if (field != null) {
return ((List) field).get(i);
}
throw new IndexOutOfBoundsException();
}
throw new IllegalArgumentException("getRepeatedField() can only be called on repeated fields.");
}
public void addRepeatedField(FieldDescriptorType fielddescriptortype, Object obj) {
List list;
if (fielddescriptortype.isRepeated()) {
verifyType(fielddescriptortype.getLiteType(), obj);
Object field = getField(fielddescriptortype);
if (field == null) {
list = new ArrayList();
this.fields.put(fielddescriptortype, list);
} else {
list = (List) field;
}
list.add(obj);
return;
}
throw new IllegalArgumentException("addRepeatedField() can only be called on repeated fields.");
}
/* JADX WARNING: Can't fix incorrect switch cases order */
/* JADX WARNING: Code restructure failed: missing block: B:13:0x002d, code lost:
if ((r3 instanceof byte[]) == false) goto L_0x0030;
*/
/* JADX WARNING: Code restructure failed: missing block: B:14:0x0030, code lost:
r0 = false;
*/
/* JADX WARNING: Code restructure failed: missing block: B:5:0x001b, code lost:
if ((r3 instanceof kotlin.reflect.jvm.internal.impl.protobuf.LazyField) == false) goto L_0x0030;
*/
/* JADX WARNING: Code restructure failed: missing block: B:9:0x0024, code lost:
if ((r3 instanceof kotlin.reflect.jvm.internal.impl.protobuf.Internal.EnumLite) == false) goto L_0x0030;
*/
/* Code decompiled incorrectly, please refer to instructions dump. */
private static void verifyType(kotlin.reflect.jvm.internal.impl.protobuf.WireFormat.FieldType r2, java.lang.Object r3) {
/*
java.util.Objects.requireNonNull(r3)
int[] r0 = kotlin.reflect.jvm.internal.impl.protobuf.FieldSet.AnonymousClass1.$SwitchMap$com$google$protobuf$WireFormat$JavaType
kotlin.reflect.jvm.internal.impl.protobuf.WireFormat$JavaType r2 = r2.getJavaType()
int r2 = r2.ordinal()
r2 = r0[r2]
r0 = 1
r1 = 0
switch(r2) {
case 1: goto L_0x0042;
case 2: goto L_0x003f;
case 3: goto L_0x003c;
case 4: goto L_0x0039;
case 5: goto L_0x0036;
case 6: goto L_0x0033;
case 7: goto L_0x0027;
case 8: goto L_0x001e;
case 9: goto L_0x0015;
default: goto L_0x0014;
}
L_0x0014:
goto L_0x0044
L_0x0015:
boolean r2 = r3 instanceof kotlin.reflect.jvm.internal.impl.protobuf.MessageLite
if (r2 != 0) goto L_0x0031
boolean r2 = r3 instanceof kotlin.reflect.jvm.internal.impl.protobuf.LazyField
if (r2 == 0) goto L_0x0030
goto L_0x0031
L_0x001e:
boolean r2 = r3 instanceof java.lang.Integer
if (r2 != 0) goto L_0x0031
boolean r2 = r3 instanceof kotlin.reflect.jvm.internal.impl.protobuf.Internal.EnumLite
if (r2 == 0) goto L_0x0030
goto L_0x0031
L_0x0027:
boolean r2 = r3 instanceof kotlin.reflect.jvm.internal.impl.protobuf.ByteString
if (r2 != 0) goto L_0x0031
boolean r2 = r3 instanceof byte[]
if (r2 == 0) goto L_0x0030
goto L_0x0031
L_0x0030:
r0 = 0
L_0x0031:
r1 = r0
goto L_0x0044
L_0x0033:
boolean r1 = r3 instanceof java.lang.String
goto L_0x0044
L_0x0036:
boolean r1 = r3 instanceof java.lang.Boolean
goto L_0x0044
L_0x0039:
boolean r1 = r3 instanceof java.lang.Double
goto L_0x0044
L_0x003c:
boolean r1 = r3 instanceof java.lang.Float
goto L_0x0044
L_0x003f:
boolean r1 = r3 instanceof java.lang.Long
goto L_0x0044
L_0x0042:
boolean r1 = r3 instanceof java.lang.Integer
L_0x0044:
if (r1 == 0) goto L_0x0047
return
L_0x0047:
java.lang.IllegalArgumentException r2 = new java.lang.IllegalArgumentException
java.lang.String r3 = "Wrong object type used with protocol message reflection."
r2.<init>(r3)
throw r2
*/
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.impl.protobuf.FieldSet.verifyType(kotlin.reflect.jvm.internal.impl.protobuf.WireFormat$FieldType, java.lang.Object):void");
}
public boolean isInitialized() {
for (int i = 0; i < this.fields.getNumArrayEntries(); i++) {
if (!isInitialized(this.fields.getArrayEntryAt(i))) {
return false;
}
}
for (Map.Entry<FieldDescriptorType, Object> isInitialized : this.fields.getOverflowEntries()) {
if (!isInitialized(isInitialized)) {
return false;
}
}
return true;
}
private boolean isInitialized(Map.Entry<FieldDescriptorType, Object> entry) {
FieldDescriptorLite fieldDescriptorLite = (FieldDescriptorLite) entry.getKey();
if (fieldDescriptorLite.getLiteJavaType() == WireFormat.JavaType.MESSAGE) {
if (fieldDescriptorLite.isRepeated()) {
for (MessageLite isInitialized : (List) entry.getValue()) {
if (!isInitialized.isInitialized()) {
return false;
}
}
} else {
Object value = entry.getValue();
if (value instanceof MessageLite) {
if (!((MessageLite) value).isInitialized()) {
return false;
}
} else if (value instanceof LazyField) {
return true;
} else {
throw new IllegalArgumentException("Wrong object type used with protocol message reflection.");
}
}
}
return true;
}
static int getWireFormatForFieldType(WireFormat.FieldType fieldType, boolean z) {
if (z) {
return 2;
}
return fieldType.getWireType();
}
public void mergeFrom(FieldSet<FieldDescriptorType> fieldSet) {
for (int i = 0; i < fieldSet.fields.getNumArrayEntries(); i++) {
mergeFromField(fieldSet.fields.getArrayEntryAt(i));
}
for (Map.Entry<FieldDescriptorType, Object> mergeFromField : fieldSet.fields.getOverflowEntries()) {
mergeFromField(mergeFromField);
}
}
private Object cloneIfMutable(Object obj) {
if (!(obj instanceof byte[])) {
return obj;
}
byte[] bArr = (byte[]) obj;
byte[] bArr2 = new byte[bArr.length];
System.arraycopy(bArr, 0, bArr2, 0, bArr.length);
return bArr2;
}
private void mergeFromField(Map.Entry<FieldDescriptorType, Object> entry) {
FieldDescriptorLite fieldDescriptorLite = (FieldDescriptorLite) entry.getKey();
Object value = entry.getValue();
if (value instanceof LazyField) {
value = ((LazyField) value).getValue();
}
if (fieldDescriptorLite.isRepeated()) {
Object field = getField(fieldDescriptorLite);
if (field == null) {
field = new ArrayList();
}
for (Object cloneIfMutable : (List) value) {
((List) field).add(cloneIfMutable(cloneIfMutable));
}
this.fields.put(fieldDescriptorLite, field);
} else if (fieldDescriptorLite.getLiteJavaType() == WireFormat.JavaType.MESSAGE) {
Object field2 = getField(fieldDescriptorLite);
if (field2 == null) {
this.fields.put(fieldDescriptorLite, cloneIfMutable(value));
return;
}
this.fields.put(fieldDescriptorLite, fieldDescriptorLite.internalMergeFrom(((MessageLite) field2).toBuilder(), (MessageLite) value).build());
} else {
this.fields.put(fieldDescriptorLite, cloneIfMutable(value));
}
}
/* renamed from: kotlin.reflect.jvm.internal.impl.protobuf.FieldSet$1 reason: invalid class name */
static /* synthetic */ class AnonymousClass1 {
static final /* synthetic */ int[] $SwitchMap$com$google$protobuf$WireFormat$FieldType;
static final /* synthetic */ int[] $SwitchMap$com$google$protobuf$WireFormat$JavaType;
/* JADX WARNING: Can't wrap try/catch for region: R(55:0|(2:1|2)|3|(2:5|6)|7|(2:9|10)|11|(2:13|14)|15|(2:17|18)|19|21|22|23|(2:25|26)|27|(2:29|30)|31|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|(2:51|52)|53|55|56|57|58|59|60|61|62|63|64|65|66|67|68|69|70|(3:71|72|74)) */
/* JADX WARNING: Can't wrap try/catch for region: R(56:0|(2:1|2)|3|(2:5|6)|7|(2:9|10)|11|(2:13|14)|15|17|18|19|21|22|23|(2:25|26)|27|(2:29|30)|31|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|(2:51|52)|53|55|56|57|58|59|60|61|62|63|64|65|66|67|68|69|70|(3:71|72|74)) */
/* JADX WARNING: Can't wrap try/catch for region: R(58:0|(2:1|2)|3|(2:5|6)|7|(2:9|10)|11|(2:13|14)|15|17|18|19|21|22|23|(2:25|26)|27|(2:29|30)|31|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|(2:51|52)|53|55|56|57|58|59|60|61|62|63|64|65|66|67|68|69|70|71|72|74) */
/* JADX WARNING: Can't wrap try/catch for region: R(59:0|(2:1|2)|3|(2:5|6)|7|(2:9|10)|11|13|14|15|17|18|19|21|22|23|(2:25|26)|27|(2:29|30)|31|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|(2:51|52)|53|55|56|57|58|59|60|61|62|63|64|65|66|67|68|69|70|71|72|74) */
/* JADX WARNING: Can't wrap try/catch for region: R(60:0|(2:1|2)|3|(2:5|6)|7|9|10|11|13|14|15|17|18|19|21|22|23|(2:25|26)|27|(2:29|30)|31|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|(2:51|52)|53|55|56|57|58|59|60|61|62|63|64|65|66|67|68|69|70|71|72|74) */
/* JADX WARNING: Can't wrap try/catch for region: R(62:0|(2:1|2)|3|5|6|7|9|10|11|13|14|15|17|18|19|21|22|23|(2:25|26)|27|29|30|31|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|(2:51|52)|53|55|56|57|58|59|60|61|62|63|64|65|66|67|68|69|70|71|72|74) */
/* JADX WARNING: Can't wrap try/catch for region: R(65:0|1|2|3|5|6|7|9|10|11|13|14|15|17|18|19|21|22|23|25|26|27|29|30|31|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|51|52|53|55|56|57|58|59|60|61|62|63|64|65|66|67|68|69|70|71|72|74) */
/* JADX WARNING: Failed to process nested try/catch */
/* JADX WARNING: Missing exception handler attribute for start block: B:35:0x006c */
/* JADX WARNING: Missing exception handler attribute for start block: B:37:0x0078 */
/* JADX WARNING: Missing exception handler attribute for start block: B:39:0x0084 */
/* JADX WARNING: Missing exception handler attribute for start block: B:41:0x0090 */
/* JADX WARNING: Missing exception handler attribute for start block: B:43:0x009c */
/* JADX WARNING: Missing exception handler attribute for start block: B:45:0x00a8 */
/* JADX WARNING: Missing exception handler attribute for start block: B:47:0x00b4 */
/* JADX WARNING: Missing exception handler attribute for start block: B:49:0x00c0 */
/* JADX WARNING: Missing exception handler attribute for start block: B:51:0x00cc */
/* JADX WARNING: Missing exception handler attribute for start block: B:57:0x00e9 */
/* JADX WARNING: Missing exception handler attribute for start block: B:59:0x00f3 */
/* JADX WARNING: Missing exception handler attribute for start block: B:61:0x00fd */
/* JADX WARNING: Missing exception handler attribute for start block: B:63:0x0107 */
/* JADX WARNING: Missing exception handler attribute for start block: B:65:0x0111 */
/* JADX WARNING: Missing exception handler attribute for start block: B:67:0x011b */
/* JADX WARNING: Missing exception handler attribute for start block: B:69:0x0125 */
/* JADX WARNING: Missing exception handler attribute for start block: B:71:0x012f */
static {
/*
kotlin.reflect.jvm.internal.impl.protobuf.WireFormat$FieldType[] r0 = kotlin.reflect.jvm.internal.impl.protobuf.WireFormat.FieldType.values()
int r0 = r0.length
int[] r0 = new int[r0]
$SwitchMap$com$google$protobuf$WireFormat$FieldType = r0
r1 = 1
kotlin.reflect.jvm.internal.impl.protobuf.WireFormat$FieldType r2 = kotlin.reflect.jvm.internal.impl.protobuf.WireFormat.FieldType.DOUBLE // Catch:{ NoSuchFieldError -> 0x0012 }
int r2 = r2.ordinal() // Catch:{ NoSuchFieldError -> 0x0012 }
r0[r2] = r1 // Catch:{ NoSuchFieldError -> 0x0012 }
L_0x0012:
r0 = 2
int[] r2 = $SwitchMap$com$google$protobuf$WireFormat$FieldType // Catch:{ NoSuchFieldError -> 0x001d }
kotlin.reflect.jvm.internal.impl.protobuf.WireFormat$FieldType r3 = kotlin.reflect.jvm.internal.impl.protobuf.WireFormat.FieldType.FLOAT // Catch:{ NoSuchFieldError -> 0x001d }
int r3 = r3.ordinal() // Catch:{ NoSuchFieldError -> 0x001d }
r2[r3] = r0 // Catch:{ NoSuchFieldError -> 0x001d }
L_0x001d:
r2 = 3
int[] r3 = $SwitchMap$com$google$protobuf$WireFormat$FieldType // Catch:{ NoSuchFieldError -> 0x0028 }
kotlin.reflect.jvm.internal.impl.protobuf.WireFormat$FieldType r4 = kotlin.reflect.jvm.internal.impl.protobuf.WireFormat.FieldType.INT64 // Catch:{ NoSuchFieldError -> 0x0028 }
int r4 = r4.ordinal() // Catch:{ NoSuchFieldError -> 0x0028 }
r3[r4] = r2 // Catch:{ NoSuchFieldError -> 0x0028 }
L_0x0028:
r3 = 4
int[] r4 = $SwitchMap$com$google$protobuf$WireFormat$FieldType // Catch:{ NoSuchFieldError -> 0x0033 }
kotlin.reflect.jvm.internal.impl.protobuf.WireFormat$FieldType r5 = kotlin.reflect.jvm.internal.impl.protobuf.WireFormat.FieldType.UINT64 // Catch:{ NoSuchFieldError -> 0x0033 }
int r5 = r5.ordinal() // Catch:{ NoSuchFieldError -> 0x0033 }
r4[r5] = r3 // Catch:{ NoSuchFieldError -> 0x0033 }
L_0x0033:
r4 = 5
int[] r5 = $SwitchMap$com$google$protobuf$WireFormat$FieldType // Catch:{ NoSuchFieldError -> 0x003e }
kotlin.reflect.jvm.internal.impl.protobuf.WireFormat$FieldType r6 = kotlin.reflect.jvm.internal.impl.protobuf.WireFormat.FieldType.INT32 // Catch:{ NoSuchFieldError -> 0x003e }
int r6 = r6.ordinal() // Catch:{ NoSuchFieldError -> 0x003e }
r5[r6] = r4 // Catch:{ NoSuchFieldError -> 0x003e }
L_0x003e:
r5 = 6
int[] r6 = $SwitchMap$com$google$protobuf$WireFormat$FieldType // Catch:{ NoSuchFieldError -> 0x0049 }
kotlin.reflect.jvm.internal.impl.protobuf.WireFormat$FieldType r7 = kotlin.reflect.jvm.internal.impl.protobuf.WireFormat.FieldType.FIXED64 // Catch:{ NoSuchFieldError -> 0x0049 }
int r7 = r7.ordinal() // Catch:{ NoSuchFieldError -> 0x0049 }
r6[r7] = r5 // Catch:{ NoSuchFieldError -> 0x0049 }
L_0x0049:
r6 = 7
int[] r7 = $SwitchMap$com$google$protobuf$WireFormat$FieldType // Catch:{ NoSuchFieldError -> 0x0054 }
kotlin.reflect.jvm.internal.impl.protobuf.WireFormat$FieldType r8 = kotlin.reflect.jvm.internal.impl.protobuf.WireFormat.FieldType.FIXED32 // Catch:{ NoSuchFieldError -> 0x0054 }
int r8 = r8.ordinal() // Catch:{ NoSuchFieldError -> 0x0054 }
r7[r8] = r6 // Catch:{ NoSuchFieldError -> 0x0054 }
L_0x0054:
r7 = 8
int[] r8 = $SwitchMap$com$google$protobuf$WireFormat$FieldType // Catch:{ NoSuchFieldError -> 0x0060 }
kotlin.reflect.jvm.internal.impl.protobuf.WireFormat$FieldType r9 = kotlin.reflect.jvm.internal.impl.protobuf.WireFormat.FieldType.BOOL // Catch:{ NoSuchFieldError -> 0x0060 }
int r9 = r9.ordinal() // Catch:{ NoSuchFieldError -> 0x0060 }
r8[r9] = r7 // Catch:{ NoSuchFieldError -> 0x0060 }
L_0x0060:
r8 = 9
int[] r9 = $SwitchMap$com$google$protobuf$WireFormat$FieldType // Catch:{ NoSuchFieldError -> 0x006c }
kotlin.reflect.jvm.internal.impl.protobuf.WireFormat$FieldType r10 = kotlin.reflect.jvm.internal.impl.protobuf.WireFormat.FieldType.STRING // Catch:{ NoSuchFieldError -> 0x006c }
int r10 = r10.ordinal() // Catch:{ NoSuchFieldError -> 0x006c }
r9[r10] = r8 // Catch:{ NoSuchFieldError -> 0x006c }
L_0x006c:
int[] r9 = $SwitchMap$com$google$protobuf$WireFormat$FieldType // Catch:{ NoSuchFieldError -> 0x0078 }
kotlin.reflect.jvm.internal.impl.protobuf.WireFormat$FieldType r10 = kotlin.reflect.jvm.internal.impl.protobuf.WireFormat.FieldType.BYTES // Catch:{ NoSuchFieldError -> 0x0078 }
int r10 = r10.ordinal() // Catch:{ NoSuchFieldError -> 0x0078 }
r11 = 10
r9[r10] = r11 // Catch:{ NoSuchFieldError -> 0x0078 }
L_0x0078:
int[] r9 = $SwitchMap$com$google$protobuf$WireFormat$FieldType // Catch:{ NoSuchFieldError -> 0x0084 }
kotlin.reflect.jvm.internal.impl.protobuf.WireFormat$FieldType r10 = kotlin.reflect.jvm.internal.impl.protobuf.WireFormat.FieldType.UINT32 // Catch:{ NoSuchFieldError -> 0x0084 }
int r10 = r10.ordinal() // Catch:{ NoSuchFieldError -> 0x0084 }
r11 = 11
r9[r10] = r11 // Catch:{ NoSuchFieldError -> 0x0084 }
L_0x0084:
int[] r9 = $SwitchMap$com$google$protobuf$WireFormat$FieldType // Catch:{ NoSuchFieldError -> 0x0090 }
kotlin.reflect.jvm.internal.impl.protobuf.WireFormat$FieldType r10 = kotlin.reflect.jvm.internal.impl.protobuf.WireFormat.FieldType.SFIXED32 // Catch:{ NoSuchFieldError -> 0x0090 }
int r10 = r10.ordinal() // Catch:{ NoSuchFieldError -> 0x0090 }
r11 = 12
r9[r10] = r11 // Catch:{ NoSuchFieldError -> 0x0090 }
L_0x0090:
int[] r9 = $SwitchMap$com$google$protobuf$WireFormat$FieldType // Catch:{ NoSuchFieldError -> 0x009c }
kotlin.reflect.jvm.internal.impl.protobuf.WireFormat$FieldType r10 = kotlin.reflect.jvm.internal.impl.protobuf.WireFormat.FieldType.SFIXED64 // Catch:{ NoSuchFieldError -> 0x009c }
int r10 = r10.ordinal() // Catch:{ NoSuchFieldError -> 0x009c }
r11 = 13
r9[r10] = r11 // Catch:{ NoSuchFieldError -> 0x009c }
L_0x009c:
int[] r9 = $SwitchMap$com$google$protobuf$WireFormat$FieldType // Catch:{ NoSuchFieldError -> 0x00a8 }
kotlin.reflect.jvm.internal.impl.protobuf.WireFormat$FieldType r10 = kotlin.reflect.jvm.internal.impl.protobuf.WireFormat.FieldType.SINT32 // Catch:{ NoSuchFieldError -> 0x00a8 }
int r10 = r10.ordinal() // Catch:{ NoSuchFieldError -> 0x00a8 }
r11 = 14
r9[r10] = r11 // Catch:{ NoSuchFieldError -> 0x00a8 }
L_0x00a8:
int[] r9 = $SwitchMap$com$google$protobuf$WireFormat$FieldType // Catch:{ NoSuchFieldError -> 0x00b4 }
kotlin.reflect.jvm.internal.impl.protobuf.WireFormat$FieldType r10 = kotlin.reflect.jvm.internal.impl.protobuf.WireFormat.FieldType.SINT64 // Catch:{ NoSuchFieldError -> 0x00b4 }
int r10 = r10.ordinal() // Catch:{ NoSuchFieldError -> 0x00b4 }
r11 = 15
r9[r10] = r11 // Catch:{ NoSuchFieldError -> 0x00b4 }
L_0x00b4:
int[] r9 = $SwitchMap$com$google$protobuf$WireFormat$FieldType // Catch:{ NoSuchFieldError -> 0x00c0 }
kotlin.reflect.jvm.internal.impl.protobuf.WireFormat$FieldType r10 = kotlin.reflect.jvm.internal.impl.protobuf.WireFormat.FieldType.GROUP // Catch:{ NoSuchFieldError -> 0x00c0 }
int r10 = r10.ordinal() // Catch:{ NoSuchFieldError -> 0x00c0 }
r11 = 16
r9[r10] = r11 // Catch:{ NoSuchFieldError -> 0x00c0 }
L_0x00c0:
int[] r9 = $SwitchMap$com$google$protobuf$WireFormat$FieldType // Catch:{ NoSuchFieldError -> 0x00cc }
kotlin.reflect.jvm.internal.impl.protobuf.WireFormat$FieldType r10 = kotlin.reflect.jvm.internal.impl.protobuf.WireFormat.FieldType.MESSAGE // Catch:{ NoSuchFieldError -> 0x00cc }
int r10 = r10.ordinal() // Catch:{ NoSuchFieldError -> 0x00cc }
r11 = 17
r9[r10] = r11 // Catch:{ NoSuchFieldError -> 0x00cc }
L_0x00cc:
int[] r9 = $SwitchMap$com$google$protobuf$WireFormat$FieldType // Catch:{ NoSuchFieldError -> 0x00d8 }
kotlin.reflect.jvm.internal.impl.protobuf.WireFormat$FieldType r10 = kotlin.reflect.jvm.internal.impl.protobuf.WireFormat.FieldType.ENUM // Catch:{ NoSuchFieldError -> 0x00d8 }
int r10 = r10.ordinal() // Catch:{ NoSuchFieldError -> 0x00d8 }
r11 = 18
r9[r10] = r11 // Catch:{ NoSuchFieldError -> 0x00d8 }
L_0x00d8:
kotlin.reflect.jvm.internal.impl.protobuf.WireFormat$JavaType[] r9 = kotlin.reflect.jvm.internal.impl.protobuf.WireFormat.JavaType.values()
int r9 = r9.length
int[] r9 = new int[r9]
$SwitchMap$com$google$protobuf$WireFormat$JavaType = r9
kotlin.reflect.jvm.internal.impl.protobuf.WireFormat$JavaType r10 = kotlin.reflect.jvm.internal.impl.protobuf.WireFormat.JavaType.INT // Catch:{ NoSuchFieldError -> 0x00e9 }
int r10 = r10.ordinal() // Catch:{ NoSuchFieldError -> 0x00e9 }
r9[r10] = r1 // Catch:{ NoSuchFieldError -> 0x00e9 }
L_0x00e9:
int[] r1 = $SwitchMap$com$google$protobuf$WireFormat$JavaType // Catch:{ NoSuchFieldError -> 0x00f3 }
kotlin.reflect.jvm.internal.impl.protobuf.WireFormat$JavaType r9 = kotlin.reflect.jvm.internal.impl.protobuf.WireFormat.JavaType.LONG // Catch:{ NoSuchFieldError -> 0x00f3 }
int r9 = r9.ordinal() // Catch:{ NoSuchFieldError -> 0x00f3 }
r1[r9] = r0 // Catch:{ NoSuchFieldError -> 0x00f3 }
L_0x00f3:
int[] r0 = $SwitchMap$com$google$protobuf$WireFormat$JavaType // Catch:{ NoSuchFieldError -> 0x00fd }
kotlin.reflect.jvm.internal.impl.protobuf.WireFormat$JavaType r1 = kotlin.reflect.jvm.internal.impl.protobuf.WireFormat.JavaType.FLOAT // Catch:{ NoSuchFieldError -> 0x00fd }
int r1 = r1.ordinal() // Catch:{ NoSuchFieldError -> 0x00fd }
r0[r1] = r2 // Catch:{ NoSuchFieldError -> 0x00fd }
L_0x00fd:
int[] r0 = $SwitchMap$com$google$protobuf$WireFormat$JavaType // Catch:{ NoSuchFieldError -> 0x0107 }
kotlin.reflect.jvm.internal.impl.protobuf.WireFormat$JavaType r1 = kotlin.reflect.jvm.internal.impl.protobuf.WireFormat.JavaType.DOUBLE // Catch:{ NoSuchFieldError -> 0x0107 }
int r1 = r1.ordinal() // Catch:{ NoSuchFieldError -> 0x0107 }
r0[r1] = r3 // Catch:{ NoSuchFieldError -> 0x0107 }
L_0x0107:
int[] r0 = $SwitchMap$com$google$protobuf$WireFormat$JavaType // Catch:{ NoSuchFieldError -> 0x0111 }
kotlin.reflect.jvm.internal.impl.protobuf.WireFormat$JavaType r1 = kotlin.reflect.jvm.internal.impl.protobuf.WireFormat.JavaType.BOOLEAN // Catch:{ NoSuchFieldError -> 0x0111 }
int r1 = r1.ordinal() // Catch:{ NoSuchFieldError -> 0x0111 }
r0[r1] = r4 // Catch:{ NoSuchFieldError -> 0x0111 }
L_0x0111:
int[] r0 = $SwitchMap$com$google$protobuf$WireFormat$JavaType // Catch:{ NoSuchFieldError -> 0x011b }
kotlin.reflect.jvm.internal.impl.protobuf.WireFormat$JavaType r1 = kotlin.reflect.jvm.internal.impl.protobuf.WireFormat.JavaType.STRING // Catch:{ NoSuchFieldError -> 0x011b }
int r1 = r1.ordinal() // Catch:{ NoSuchFieldError -> 0x011b }
r0[r1] = r5 // Catch:{ NoSuchFieldError -> 0x011b }
L_0x011b:
int[] r0 = $SwitchMap$com$google$protobuf$WireFormat$JavaType // Catch:{ NoSuchFieldError -> 0x0125 }
kotlin.reflect.jvm.internal.impl.protobuf.WireFormat$JavaType r1 = kotlin.reflect.jvm.internal.impl.protobuf.WireFormat.JavaType.BYTE_STRING // Catch:{ NoSuchFieldError -> 0x0125 }
int r1 = r1.ordinal() // Catch:{ NoSuchFieldError -> 0x0125 }
r0[r1] = r6 // Catch:{ NoSuchFieldError -> 0x0125 }
L_0x0125:
int[] r0 = $SwitchMap$com$google$protobuf$WireFormat$JavaType // Catch:{ NoSuchFieldError -> 0x012f }
kotlin.reflect.jvm.internal.impl.protobuf.WireFormat$JavaType r1 = kotlin.reflect.jvm.internal.impl.protobuf.WireFormat.JavaType.ENUM // Catch:{ NoSuchFieldError -> 0x012f }
int r1 = r1.ordinal() // Catch:{ NoSuchFieldError -> 0x012f }
r0[r1] = r7 // Catch:{ NoSuchFieldError -> 0x012f }
L_0x012f:
int[] r0 = $SwitchMap$com$google$protobuf$WireFormat$JavaType // Catch:{ NoSuchFieldError -> 0x0139 }
kotlin.reflect.jvm.internal.impl.protobuf.WireFormat$JavaType r1 = kotlin.reflect.jvm.internal.impl.protobuf.WireFormat.JavaType.MESSAGE // Catch:{ NoSuchFieldError -> 0x0139 }
int r1 = r1.ordinal() // Catch:{ NoSuchFieldError -> 0x0139 }
r0[r1] = r8 // Catch:{ NoSuchFieldError -> 0x0139 }
L_0x0139:
return
*/
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.impl.protobuf.FieldSet.AnonymousClass1.<clinit>():void");
}
}
public static Object readPrimitiveField(CodedInputStream codedInputStream, WireFormat.FieldType fieldType, boolean z) throws IOException {
switch (AnonymousClass1.$SwitchMap$com$google$protobuf$WireFormat$FieldType[fieldType.ordinal()]) {
case 1:
return Double.valueOf(codedInputStream.readDouble());
case 2:
return Float.valueOf(codedInputStream.readFloat());
case 3:
return Long.valueOf(codedInputStream.readInt64());
case 4:
return Long.valueOf(codedInputStream.readUInt64());
case 5:
return Integer.valueOf(codedInputStream.readInt32());
case 6:
return Long.valueOf(codedInputStream.readFixed64());
case 7:
return Integer.valueOf(codedInputStream.readFixed32());
case 8:
return Boolean.valueOf(codedInputStream.readBool());
case 9:
if (z) {
return codedInputStream.readStringRequireUtf8();
}
return codedInputStream.readString();
case 10:
return codedInputStream.readBytes();
case 11:
return Integer.valueOf(codedInputStream.readUInt32());
case 12:
return Integer.valueOf(codedInputStream.readSFixed32());
case 13:
return Long.valueOf(codedInputStream.readSFixed64());
case 14:
return Integer.valueOf(codedInputStream.readSInt32());
case 15:
return Long.valueOf(codedInputStream.readSInt64());
case 16:
throw new IllegalArgumentException("readPrimitiveField() cannot handle nested groups.");
case 17:
throw new IllegalArgumentException("readPrimitiveField() cannot handle embedded messages.");
case 18:
throw new IllegalArgumentException("readPrimitiveField() cannot handle enums.");
default:
throw new RuntimeException("There is no way to get here, but the compiler thinks otherwise.");
}
}
private static void writeElement(CodedOutputStream codedOutputStream, WireFormat.FieldType fieldType, int i, Object obj) throws IOException {
if (fieldType == WireFormat.FieldType.GROUP) {
codedOutputStream.writeGroup(i, (MessageLite) obj);
return;
}
codedOutputStream.writeTag(i, getWireFormatForFieldType(fieldType, false));
writeElementNoTag(codedOutputStream, fieldType, obj);
}
private static void writeElementNoTag(CodedOutputStream codedOutputStream, WireFormat.FieldType fieldType, Object obj) throws IOException {
switch (AnonymousClass1.$SwitchMap$com$google$protobuf$WireFormat$FieldType[fieldType.ordinal()]) {
case 1:
codedOutputStream.writeDoubleNoTag(((Double) obj).doubleValue());
return;
case 2:
codedOutputStream.writeFloatNoTag(((Float) obj).floatValue());
return;
case 3:
codedOutputStream.writeInt64NoTag(((Long) obj).longValue());
return;
case 4:
codedOutputStream.writeUInt64NoTag(((Long) obj).longValue());
return;
case 5:
codedOutputStream.writeInt32NoTag(((Integer) obj).intValue());
return;
case 6:
codedOutputStream.writeFixed64NoTag(((Long) obj).longValue());
return;
case 7:
codedOutputStream.writeFixed32NoTag(((Integer) obj).intValue());
return;
case 8:
codedOutputStream.writeBoolNoTag(((Boolean) obj).booleanValue());
return;
case 9:
codedOutputStream.writeStringNoTag((String) obj);
return;
case 10:
if (obj instanceof ByteString) {
codedOutputStream.writeBytesNoTag((ByteString) obj);
return;
} else {
codedOutputStream.writeByteArrayNoTag((byte[]) obj);
return;
}
case 11:
codedOutputStream.writeUInt32NoTag(((Integer) obj).intValue());
return;
case 12:
codedOutputStream.writeSFixed32NoTag(((Integer) obj).intValue());
return;
case 13:
codedOutputStream.writeSFixed64NoTag(((Long) obj).longValue());
return;
case 14:
codedOutputStream.writeSInt32NoTag(((Integer) obj).intValue());
return;
case 15:
codedOutputStream.writeSInt64NoTag(((Long) obj).longValue());
return;
case 16:
codedOutputStream.writeGroupNoTag((MessageLite) obj);
return;
case 17:
codedOutputStream.writeMessageNoTag((MessageLite) obj);
return;
case 18:
if (obj instanceof Internal.EnumLite) {
codedOutputStream.writeEnumNoTag(((Internal.EnumLite) obj).getNumber());
return;
} else {
codedOutputStream.writeEnumNoTag(((Integer) obj).intValue());
return;
}
default:
return;
}
}
public static void writeField(FieldDescriptorLite<?> fieldDescriptorLite, Object obj, CodedOutputStream codedOutputStream) throws IOException {
WireFormat.FieldType liteType = fieldDescriptorLite.getLiteType();
int number = fieldDescriptorLite.getNumber();
if (fieldDescriptorLite.isRepeated()) {
List<Object> list = (List) obj;
if (fieldDescriptorLite.isPacked()) {
codedOutputStream.writeTag(number, 2);
int i = 0;
for (Object computeElementSizeNoTag : list) {
i += computeElementSizeNoTag(liteType, computeElementSizeNoTag);
}
codedOutputStream.writeRawVarint32(i);
for (Object writeElementNoTag : list) {
writeElementNoTag(codedOutputStream, liteType, writeElementNoTag);
}
return;
}
for (Object writeElement : list) {
writeElement(codedOutputStream, liteType, number, writeElement);
}
} else if (obj instanceof LazyField) {
writeElement(codedOutputStream, liteType, number, ((LazyField) obj).getValue());
} else {
writeElement(codedOutputStream, liteType, number, obj);
}
}
public int getSerializedSize() {
int i = 0;
for (int i2 = 0; i2 < this.fields.getNumArrayEntries(); i2++) {
Map.Entry<FieldDescriptorType, Object> arrayEntryAt = this.fields.getArrayEntryAt(i2);
i += computeFieldSize((FieldDescriptorLite) arrayEntryAt.getKey(), arrayEntryAt.getValue());
}
for (Map.Entry next : this.fields.getOverflowEntries()) {
i += computeFieldSize((FieldDescriptorLite) next.getKey(), next.getValue());
}
return i;
}
private static int computeElementSize(WireFormat.FieldType fieldType, int i, Object obj) {
int computeTagSize = CodedOutputStream.computeTagSize(i);
if (fieldType == WireFormat.FieldType.GROUP) {
computeTagSize *= 2;
}
return computeTagSize + computeElementSizeNoTag(fieldType, obj);
}
private static int computeElementSizeNoTag(WireFormat.FieldType fieldType, Object obj) {
switch (AnonymousClass1.$SwitchMap$com$google$protobuf$WireFormat$FieldType[fieldType.ordinal()]) {
case 1:
return CodedOutputStream.computeDoubleSizeNoTag(((Double) obj).doubleValue());
case 2:
return CodedOutputStream.computeFloatSizeNoTag(((Float) obj).floatValue());
case 3:
return CodedOutputStream.computeInt64SizeNoTag(((Long) obj).longValue());
case 4:
return CodedOutputStream.computeUInt64SizeNoTag(((Long) obj).longValue());
case 5:
return CodedOutputStream.computeInt32SizeNoTag(((Integer) obj).intValue());
case 6:
return CodedOutputStream.computeFixed64SizeNoTag(((Long) obj).longValue());
case 7:
return CodedOutputStream.computeFixed32SizeNoTag(((Integer) obj).intValue());
case 8:
return CodedOutputStream.computeBoolSizeNoTag(((Boolean) obj).booleanValue());
case 9:
return CodedOutputStream.computeStringSizeNoTag((String) obj);
case 10:
if (obj instanceof ByteString) {
return CodedOutputStream.computeBytesSizeNoTag((ByteString) obj);
}
return CodedOutputStream.computeByteArraySizeNoTag((byte[]) obj);
case 11:
return CodedOutputStream.computeUInt32SizeNoTag(((Integer) obj).intValue());
case 12:
return CodedOutputStream.computeSFixed32SizeNoTag(((Integer) obj).intValue());
case 13:
return CodedOutputStream.computeSFixed64SizeNoTag(((Long) obj).longValue());
case 14:
return CodedOutputStream.computeSInt32SizeNoTag(((Integer) obj).intValue());
case 15:
return CodedOutputStream.computeSInt64SizeNoTag(((Long) obj).longValue());
case 16:
return CodedOutputStream.computeGroupSizeNoTag((MessageLite) obj);
case 17:
if (obj instanceof LazyField) {
return CodedOutputStream.computeLazyFieldSizeNoTag((LazyField) obj);
}
return CodedOutputStream.computeMessageSizeNoTag((MessageLite) obj);
case 18:
if (obj instanceof Internal.EnumLite) {
return CodedOutputStream.computeEnumSizeNoTag(((Internal.EnumLite) obj).getNumber());
}
return CodedOutputStream.computeEnumSizeNoTag(((Integer) obj).intValue());
default:
throw new RuntimeException("There is no way to get here, but the compiler thinks otherwise.");
}
}
public static int computeFieldSize(FieldDescriptorLite<?> fieldDescriptorLite, Object obj) {
WireFormat.FieldType liteType = fieldDescriptorLite.getLiteType();
int number = fieldDescriptorLite.getNumber();
if (!fieldDescriptorLite.isRepeated()) {
return computeElementSize(liteType, number, obj);
}
int i = 0;
if (fieldDescriptorLite.isPacked()) {
for (Object computeElementSizeNoTag : (List) obj) {
i += computeElementSizeNoTag(liteType, computeElementSizeNoTag);
}
return CodedOutputStream.computeTagSize(number) + i + CodedOutputStream.computeRawVarint32Size(i);
}
for (Object computeElementSize : (List) obj) {
i += computeElementSize(liteType, number, computeElementSize);
}
return i;
}
}
Download file