1000 lines
36 KiB
Java
1000 lines
36 KiB
Java
|
package com.google.android.gms.internal.firebase_ml;
|
||
|
|
||
|
import android.text.TextUtils;
|
||
|
import android.util.TypedValue;
|
||
|
import android.view.KeyEvent;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewConfiguration;
|
||
|
import android.widget.ExpandableListView;
|
||
|
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||
|
import java.lang.reflect.Array;
|
||
|
import java.lang.reflect.Method;
|
||
|
import java.lang.reflect.Type;
|
||
|
import java.lang.reflect.TypeVariable;
|
||
|
import java.lang.reflect.WildcardType;
|
||
|
import java.math.BigDecimal;
|
||
|
import java.math.BigInteger;
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.Arrays;
|
||
|
import java.util.Collection;
|
||
|
import java.util.Iterator;
|
||
|
import java.util.List;
|
||
|
import java.util.Map;
|
||
|
import java.util.TreeMap;
|
||
|
import java.util.concurrent.ConcurrentHashMap;
|
||
|
import o.TVH;
|
||
|
import o.xzZ;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
public final class zzhf {
|
||
|
private static final byte[] $$a = {55, -34, 73, 110};
|
||
|
private static final int $$b = 0;
|
||
|
private static int $10 = 0;
|
||
|
private static int $11 = 1;
|
||
|
private static int a = 0;
|
||
|
private static int b;
|
||
|
private static char[] e;
|
||
|
private static final Boolean zzyq;
|
||
|
private static final String zzyr;
|
||
|
private static final Character zzys;
|
||
|
private static final Byte zzyt;
|
||
|
private static final Short zzyu;
|
||
|
private static final Integer zzyv;
|
||
|
private static final Float zzyw;
|
||
|
private static final Long zzyx;
|
||
|
private static final Double zzyy;
|
||
|
private static final BigInteger zzyz;
|
||
|
private static final BigDecimal zzza;
|
||
|
private static final zzhk zzzb;
|
||
|
private static final ConcurrentHashMap<Class<?>, Object> zzzc;
|
||
|
|
||
|
/* JADX WARN: Removed duplicated region for block: B:10:0x0027 */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:7:0x001f */
|
||
|
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0027 -> B:4:0x002e). Please report as a decompilation issue!!! */
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
private static void f(byte r6, byte r7, byte r8, java.lang.Object[] r9) {
|
||
|
/*
|
||
|
int r8 = r8 * 2
|
||
|
int r8 = 73 - r8
|
||
|
int r7 = r7 * 2
|
||
|
int r7 = r7 + 4
|
||
|
byte[] r0 = com.google.android.gms.internal.firebase_ml.zzhf.$$a
|
||
|
int r6 = r6 * 3
|
||
|
int r6 = r6 + 1
|
||
|
byte[] r1 = new byte[r6]
|
||
|
r2 = 0
|
||
|
if (r0 != 0) goto L17
|
||
|
r3 = r8
|
||
|
r4 = r2
|
||
|
r8 = r7
|
||
|
goto L2e
|
||
|
L17:
|
||
|
r3 = r2
|
||
|
L18:
|
||
|
byte r4 = (byte) r8
|
||
|
r1[r3] = r4
|
||
|
int r3 = r3 + 1
|
||
|
if (r3 != r6) goto L27
|
||
|
java.lang.String r6 = new java.lang.String
|
||
|
r6.<init>(r1, r2)
|
||
|
r9[r2] = r6
|
||
|
return
|
||
|
L27:
|
||
|
r4 = r0[r7]
|
||
|
r5 = r8
|
||
|
r8 = r7
|
||
|
r7 = r4
|
||
|
r4 = r3
|
||
|
r3 = r5
|
||
|
L2e:
|
||
|
int r7 = r7 + r3
|
||
|
int r8 = r8 + 1
|
||
|
r3 = r4
|
||
|
r5 = r8
|
||
|
r8 = r7
|
||
|
r7 = r5
|
||
|
goto L18
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.firebase_ml.zzhf.f(byte, byte, byte, java.lang.Object[]):void");
|
||
|
}
|
||
|
|
||
|
public static <T> T zzd(Class<?> cls) {
|
||
|
ConcurrentHashMap<Class<?>, Object> concurrentHashMap = zzzc;
|
||
|
Object obj = (T) concurrentHashMap.get(cls);
|
||
|
if (obj == null) {
|
||
|
synchronized (concurrentHashMap) {
|
||
|
obj = concurrentHashMap.get(cls);
|
||
|
if (obj == null) {
|
||
|
if (cls.isArray()) {
|
||
|
int i = 0;
|
||
|
Class<?> cls2 = cls;
|
||
|
do {
|
||
|
cls2 = cls2.getComponentType();
|
||
|
i++;
|
||
|
} while (cls2.isArray());
|
||
|
obj = (T) Array.newInstance(cls2, new int[i]);
|
||
|
} else if (cls.isEnum()) {
|
||
|
zzhl zzao = zzhd.zzc(cls).zzao(null);
|
||
|
Object[] objArr = {cls};
|
||
|
if (zzao == null) {
|
||
|
throw new NullPointerException(zzla.zzb("enum missing constant with @NullValue annotation: %s", objArr));
|
||
|
}
|
||
|
obj = zzao.zzhh();
|
||
|
} else {
|
||
|
obj = zzia.zzf((Class<Object>) cls);
|
||
|
}
|
||
|
zzzc.put(cls, obj);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
return (T) obj;
|
||
|
}
|
||
|
|
||
|
public static boolean isNull(Object obj) {
|
||
|
int i = 2 % 2;
|
||
|
if (obj == null) {
|
||
|
return false;
|
||
|
}
|
||
|
int i2 = a + 109;
|
||
|
b = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
if (obj != zzzc.get(obj.getClass())) {
|
||
|
return false;
|
||
|
}
|
||
|
int i4 = a + 33;
|
||
|
b = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:11:0x0020, code lost:
|
||
|
|
||
|
if ((r4 instanceof java.util.Map) == true) goto L15;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:13:0x0027, code lost:
|
||
|
|
||
|
return new com.google.android.gms.internal.firebase_ml.zzhg(r4, false);
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:14:0x0028, code lost:
|
||
|
|
||
|
r4 = (java.util.Map) r4;
|
||
|
r1 = com.google.android.gms.internal.firebase_ml.zzhf.b + 3;
|
||
|
com.google.android.gms.internal.firebase_ml.zzhf.a = r1 % 128;
|
||
|
r1 = r1 % 2;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:15:0x0033, code lost:
|
||
|
|
||
|
return r4;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:16:0x0014, code lost:
|
||
|
|
||
|
if (r4 != null) goto L8;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:4:0x0011, code lost:
|
||
|
|
||
|
if (r4 != null) goto L8;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:9:0x001a, code lost:
|
||
|
|
||
|
if (isNull(r4) == false) goto L11;
|
||
|
*/
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
public static java.util.Map<java.lang.String, java.lang.Object> zzf(java.lang.Object r4) {
|
||
|
/*
|
||
|
r0 = 2
|
||
|
int r1 = r0 % r0
|
||
|
int r1 = com.google.android.gms.internal.firebase_ml.zzhf.a
|
||
|
int r1 = r1 + 9
|
||
|
int r2 = r1 % 128
|
||
|
com.google.android.gms.internal.firebase_ml.zzhf.b = r2
|
||
|
int r1 = r1 % r0
|
||
|
r2 = 0
|
||
|
if (r1 != 0) goto L14
|
||
|
int r1 = r2 / r2
|
||
|
if (r4 == 0) goto L34
|
||
|
goto L16
|
||
|
L14:
|
||
|
if (r4 == 0) goto L34
|
||
|
L16:
|
||
|
boolean r1 = isNull(r4)
|
||
|
if (r1 == 0) goto L1d
|
||
|
goto L34
|
||
|
L1d:
|
||
|
boolean r1 = r4 instanceof java.util.Map
|
||
|
r3 = 1
|
||
|
if (r1 == r3) goto L28
|
||
|
com.google.android.gms.internal.firebase_ml.zzhg r0 = new com.google.android.gms.internal.firebase_ml.zzhg
|
||
|
r0.<init>(r4, r2)
|
||
|
return r0
|
||
|
L28:
|
||
|
java.util.Map r4 = (java.util.Map) r4
|
||
|
int r1 = com.google.android.gms.internal.firebase_ml.zzhf.b
|
||
|
int r1 = r1 + 3
|
||
|
int r2 = r1 % 128
|
||
|
com.google.android.gms.internal.firebase_ml.zzhf.a = r2
|
||
|
int r1 = r1 % r0
|
||
|
return r4
|
||
|
L34:
|
||
|
java.util.Map r4 = java.util.Collections.emptyMap()
|
||
|
return r4
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.firebase_ml.zzhf.zzf(java.lang.Object):java.util.Map");
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Multi-variable type inference failed */
|
||
|
public static <T> T clone(T t) {
|
||
|
T t2;
|
||
|
int i = 2 % 2;
|
||
|
if (t != 0) {
|
||
|
int i2 = b + 97;
|
||
|
a = i2 % 128;
|
||
|
if (i2 % 2 == 0) {
|
||
|
if (!zza(t.getClass())) {
|
||
|
if (t instanceof zzhm) {
|
||
|
return (T) ((zzhm) ((zzhm) t).clone());
|
||
|
}
|
||
|
Class<?> cls = t.getClass();
|
||
|
if (cls.isArray()) {
|
||
|
t2 = (T) Array.newInstance(cls.getComponentType(), Array.getLength(t));
|
||
|
} else if (t instanceof zzgx) {
|
||
|
zzgx zzgxVar = (zzgx) ((zzgx) t).clone();
|
||
|
int i3 = b + 73;
|
||
|
a = i3 % 128;
|
||
|
int i4 = i3 % 2;
|
||
|
t2 = (T) zzgxVar;
|
||
|
} else {
|
||
|
if ("java.util.Arrays$ArrayList".equals(cls.getName())) {
|
||
|
Object[] array = ((List) t).toArray();
|
||
|
zza(array, array);
|
||
|
return (T) Arrays.asList(array);
|
||
|
}
|
||
|
t2 = (T) zzia.zzf((Class) cls);
|
||
|
}
|
||
|
zza(t, t2);
|
||
|
return t2;
|
||
|
}
|
||
|
} else {
|
||
|
zza(t.getClass());
|
||
|
throw null;
|
||
|
}
|
||
|
}
|
||
|
return t;
|
||
|
}
|
||
|
|
||
|
public static void zza(Object obj, Object obj2) {
|
||
|
Class<?> cls;
|
||
|
boolean z;
|
||
|
boolean z2;
|
||
|
int i = 2 % 2;
|
||
|
int i2 = b + 121;
|
||
|
a = i2 % 128;
|
||
|
int i3 = 0;
|
||
|
if (i2 % 2 != 0) {
|
||
|
cls = obj.getClass();
|
||
|
if (cls == obj2.getClass()) {
|
||
|
z = false;
|
||
|
int i4 = b + 45;
|
||
|
a = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
z2 = true;
|
||
|
} else {
|
||
|
z = false;
|
||
|
z2 = false;
|
||
|
}
|
||
|
} else {
|
||
|
cls = obj.getClass();
|
||
|
if (cls == obj2.getClass()) {
|
||
|
z = true;
|
||
|
int i42 = b + 45;
|
||
|
a = i42 % 128;
|
||
|
int i52 = i42 % 2;
|
||
|
z2 = true;
|
||
|
} else {
|
||
|
z = true;
|
||
|
z2 = false;
|
||
|
}
|
||
|
}
|
||
|
zzks.checkArgument(z2);
|
||
|
if (cls.isArray()) {
|
||
|
if (Array.getLength(obj) != Array.getLength(obj2)) {
|
||
|
z = false;
|
||
|
}
|
||
|
zzks.checkArgument(z);
|
||
|
Iterator it = zzia.zzi(obj).iterator();
|
||
|
while (it.hasNext()) {
|
||
|
Array.set(obj2, i3, clone(it.next()));
|
||
|
i3++;
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
if (!(!Collection.class.isAssignableFrom(cls))) {
|
||
|
Collection collection = (Collection) obj;
|
||
|
if (ArrayList.class.isAssignableFrom(cls)) {
|
||
|
int i6 = b + 19;
|
||
|
a = i6 % 128;
|
||
|
if (i6 % 2 != 0) {
|
||
|
((ArrayList) obj2).ensureCapacity(collection.size());
|
||
|
throw null;
|
||
|
}
|
||
|
((ArrayList) obj2).ensureCapacity(collection.size());
|
||
|
}
|
||
|
Collection collection2 = (Collection) obj2;
|
||
|
Iterator it2 = collection.iterator();
|
||
|
while (it2.hasNext()) {
|
||
|
collection2.add(clone(it2.next()));
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
boolean isAssignableFrom = zzhm.class.isAssignableFrom(cls);
|
||
|
if (!isAssignableFrom) {
|
||
|
int i7 = a + 53;
|
||
|
b = i7 % 128;
|
||
|
int i8 = i7 % 2;
|
||
|
if (Map.class.isAssignableFrom(cls)) {
|
||
|
if (!zzgx.class.isAssignableFrom(cls)) {
|
||
|
Map map = (Map) obj2;
|
||
|
for (Map.Entry entry : ((Map) obj).entrySet()) {
|
||
|
map.put((String) entry.getKey(), clone(entry.getValue()));
|
||
|
}
|
||
|
int i9 = a + 55;
|
||
|
b = i9 % 128;
|
||
|
int i10 = i9 % 2;
|
||
|
return;
|
||
|
}
|
||
|
zzgx zzgxVar = (zzgx) obj2;
|
||
|
zzgx zzgxVar2 = (zzgx) obj;
|
||
|
int size = zzgxVar2.size();
|
||
|
while (i3 < size) {
|
||
|
int i11 = a + 41;
|
||
|
b = i11 % 128;
|
||
|
if (i11 % 2 == 0) {
|
||
|
zzgxVar.set(i3, clone(zzgxVar2.zzaf(i3)));
|
||
|
i3 += 5;
|
||
|
} else {
|
||
|
zzgxVar.set(i3, clone(zzgxVar2.zzaf(i3)));
|
||
|
i3++;
|
||
|
}
|
||
|
}
|
||
|
int i12 = b + 89;
|
||
|
a = i12 % 128;
|
||
|
if (i12 % 2 != 0) {
|
||
|
throw null;
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
}
|
||
|
zzhd zzc = isAssignableFrom ? ((zzhm) obj).zztx : zzhd.zzc(cls);
|
||
|
Iterator<String> it3 = zzc.zzyp.iterator();
|
||
|
while (it3.hasNext()) {
|
||
|
zzhl zzao = zzc.zzao(it3.next());
|
||
|
if ((!zzao.zzhg()) && (!isAssignableFrom || !zzao.isPrimitive())) {
|
||
|
Object zzh = zzao.zzh(obj);
|
||
|
if (zzh != null) {
|
||
|
zzao.zzb(obj2, clone(zzh));
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public static boolean zza(Type type) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = a + 45;
|
||
|
b = i2 % 128;
|
||
|
Object obj = null;
|
||
|
if (i2 % 2 != 0) {
|
||
|
if (type instanceof WildcardType) {
|
||
|
type = zzia.zza((WildcardType) type);
|
||
|
}
|
||
|
if (!(type instanceof Class)) {
|
||
|
return false;
|
||
|
}
|
||
|
Class cls = (Class) type;
|
||
|
if (cls.isPrimitive()) {
|
||
|
return true;
|
||
|
}
|
||
|
int i3 = b;
|
||
|
int i4 = i3 + 101;
|
||
|
a = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
if (cls == Character.class || cls == String.class) {
|
||
|
return true;
|
||
|
}
|
||
|
int i6 = i3 + 75;
|
||
|
a = i6 % 128;
|
||
|
if (i6 % 2 != 0) {
|
||
|
int i7 = 95 / 0;
|
||
|
if (cls == Integer.class) {
|
||
|
return true;
|
||
|
}
|
||
|
} else if (cls == Integer.class) {
|
||
|
return true;
|
||
|
}
|
||
|
if (cls == Long.class || cls == Short.class || cls == Byte.class) {
|
||
|
return true;
|
||
|
}
|
||
|
int i8 = i3 + 117;
|
||
|
int i9 = i8 % 128;
|
||
|
a = i9;
|
||
|
int i10 = i8 % 2;
|
||
|
if (cls == Float.class || cls == Double.class) {
|
||
|
return true;
|
||
|
}
|
||
|
int i11 = i9 + 53;
|
||
|
int i12 = i11 % 128;
|
||
|
b = i12;
|
||
|
int i13 = i11 % 2;
|
||
|
if (cls == BigInteger.class || cls == BigDecimal.class || cls == zzhk.class) {
|
||
|
return true;
|
||
|
}
|
||
|
int i14 = i12 + 65;
|
||
|
int i15 = i14 % 128;
|
||
|
a = i15;
|
||
|
int i16 = i14 % 2;
|
||
|
if (cls == Boolean.class) {
|
||
|
return true;
|
||
|
}
|
||
|
int i17 = i15 + 109;
|
||
|
b = i17 % 128;
|
||
|
if (i17 % 2 != 0) {
|
||
|
return false;
|
||
|
}
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
boolean z = type instanceof WildcardType;
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
|
||
|
public static boolean zzg(Object obj) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = b + 105;
|
||
|
a = i2 % 128;
|
||
|
if (i2 % 2 != 0) {
|
||
|
int i3 = 0 / 0;
|
||
|
if (obj == null) {
|
||
|
return true;
|
||
|
}
|
||
|
} else if (obj == null) {
|
||
|
return true;
|
||
|
}
|
||
|
if (zza(obj.getClass())) {
|
||
|
return true;
|
||
|
}
|
||
|
int i4 = a + 103;
|
||
|
b = i4 % 128;
|
||
|
if (i4 % 2 != 0) {
|
||
|
return false;
|
||
|
}
|
||
|
throw null;
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:41:0x007d, code lost:
|
||
|
|
||
|
if (r1 == java.lang.Long.TYPE) goto L94;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:43:0x0089, code lost:
|
||
|
|
||
|
if (r1 == java.lang.Float.class) goto L90;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:45:0x008d, code lost:
|
||
|
|
||
|
if (r1 != java.lang.Float.TYPE) goto L56;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:47:0x0093, code lost:
|
||
|
|
||
|
if (r1 == java.lang.Double.class) goto L88;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:48:0x0095, code lost:
|
||
|
|
||
|
r2 = com.google.android.gms.internal.firebase_ml.zzhf.a + 33;
|
||
|
com.google.android.gms.internal.firebase_ml.zzhf.b = r2 % 128;
|
||
|
r2 = r2 % 2;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:49:0x00a0, code lost:
|
||
|
|
||
|
if (r1 != java.lang.Double.TYPE) goto L61;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:51:0x00a6, code lost:
|
||
|
|
||
|
if (r1 != com.google.android.gms.internal.firebase_ml.zzhk.class) goto L65;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:53:0x00ac, code lost:
|
||
|
|
||
|
return com.google.android.gms.internal.firebase_ml.zzhk.zzap(r7);
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:55:0x00af, code lost:
|
||
|
|
||
|
if (r1 != java.math.BigInteger.class) goto L69;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:57:0x00b6, code lost:
|
||
|
|
||
|
return new java.math.BigInteger(r7);
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:59:0x00b9, code lost:
|
||
|
|
||
|
if (r1 != java.math.BigDecimal.class) goto L73;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:61:0x00c0, code lost:
|
||
|
|
||
|
return new java.math.BigDecimal(r7);
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:63:0x00c5, code lost:
|
||
|
|
||
|
if (r1.isEnum() == false) goto L86;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:64:0x00c7, code lost:
|
||
|
|
||
|
r6 = com.google.android.gms.internal.firebase_ml.zzhf.b + 87;
|
||
|
com.google.android.gms.internal.firebase_ml.zzhf.a = r6 % 128;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:65:0x00d0, code lost:
|
||
|
|
||
|
if ((r6 % 2) == 0) goto L80;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:66:0x00d2, code lost:
|
||
|
|
||
|
r0 = 39 / 0;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:67:0x00df, code lost:
|
||
|
|
||
|
if (com.google.android.gms.internal.firebase_ml.zzhd.zzc(r1).zzyp.contains(r7) == false) goto L84;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:69:0x010a, code lost:
|
||
|
|
||
|
throw new java.lang.IllegalArgumentException(java.lang.String.format("given enum name %s not part of enumeration", r7));
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:71:0x00fa, code lost:
|
||
|
|
||
|
return com.google.android.gms.internal.firebase_ml.zzhd.zzc(r1).zzao(r7).zzhh();
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:73:0x00ec, code lost:
|
||
|
|
||
|
if (com.google.android.gms.internal.firebase_ml.zzhd.zzc(r1).zzyp.contains(r7) == false) goto L84;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:75:0x0134, code lost:
|
||
|
|
||
|
return java.lang.Double.valueOf(r7);
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:76:0x0135, code lost:
|
||
|
|
||
|
r6 = java.lang.Float.valueOf(r7);
|
||
|
r7 = com.google.android.gms.internal.firebase_ml.zzhf.b + 117;
|
||
|
com.google.android.gms.internal.firebase_ml.zzhf.a = r7 % 128;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:77:0x0142, code lost:
|
||
|
|
||
|
if ((r7 % 2) != 0) goto L93;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:78:0x0144, code lost:
|
||
|
|
||
|
return r6;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:79:0x0145, code lost:
|
||
|
|
||
|
throw null;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:81:0x0083, code lost:
|
||
|
|
||
|
if (r1 == java.lang.Long.TYPE) goto L94;
|
||
|
*/
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
public static java.lang.Object zza(java.lang.reflect.Type r6, java.lang.String r7) {
|
||
|
/*
|
||
|
Method dump skipped, instructions count: 405
|
||
|
To view this dump add '--comments-level debug' option
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.firebase_ml.zzhf.zza(java.lang.reflect.Type, java.lang.String):java.lang.Object");
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:44:0x001d, code lost:
|
||
|
|
||
|
r4 = com.google.android.gms.internal.firebase_ml.zzia.zza((java.lang.reflect.WildcardType) r4);
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:46:0x001b, code lost:
|
||
|
|
||
|
if ((!(r4 instanceof java.lang.reflect.WildcardType)) != true) goto L9;
|
||
|
*/
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:4:0x0015, code lost:
|
||
|
|
||
|
if ((r4 instanceof java.lang.reflect.WildcardType) != false) goto L9;
|
||
|
*/
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
public static java.util.Collection<java.lang.Object> zzb(java.lang.reflect.Type r4) {
|
||
|
/*
|
||
|
r0 = 2
|
||
|
int r1 = r0 % r0
|
||
|
int r1 = com.google.android.gms.internal.firebase_ml.zzhf.a
|
||
|
int r1 = r1 + 123
|
||
|
int r2 = r1 % 128
|
||
|
com.google.android.gms.internal.firebase_ml.zzhf.b = r2
|
||
|
int r1 = r1 % r0
|
||
|
r2 = 1
|
||
|
if (r1 != 0) goto L18
|
||
|
boolean r1 = r4 instanceof java.lang.reflect.WildcardType
|
||
|
r3 = 8
|
||
|
int r3 = r3 / 0
|
||
|
if (r1 == 0) goto L23
|
||
|
goto L1d
|
||
|
L18:
|
||
|
boolean r1 = r4 instanceof java.lang.reflect.WildcardType
|
||
|
r1 = r1 ^ r2
|
||
|
if (r1 == r2) goto L23
|
||
|
L1d:
|
||
|
java.lang.reflect.WildcardType r4 = (java.lang.reflect.WildcardType) r4
|
||
|
java.lang.reflect.Type r4 = com.google.android.gms.internal.firebase_ml.zzia.zza(r4)
|
||
|
L23:
|
||
|
boolean r1 = r4 instanceof java.lang.reflect.ParameterizedType
|
||
|
if (r1 == r2) goto L28
|
||
|
goto L2e
|
||
|
L28:
|
||
|
java.lang.reflect.ParameterizedType r4 = (java.lang.reflect.ParameterizedType) r4
|
||
|
java.lang.reflect.Type r4 = r4.getRawType()
|
||
|
L2e:
|
||
|
boolean r1 = r4 instanceof java.lang.Class
|
||
|
r2 = 0
|
||
|
if (r1 == 0) goto L48
|
||
|
int r1 = com.google.android.gms.internal.firebase_ml.zzhf.b
|
||
|
int r1 = r1 + 85
|
||
|
int r3 = r1 % 128
|
||
|
com.google.android.gms.internal.firebase_ml.zzhf.a = r3
|
||
|
int r1 = r1 % r0
|
||
|
if (r1 != 0) goto L42
|
||
|
r1 = r4
|
||
|
java.lang.Class r1 = (java.lang.Class) r1
|
||
|
goto L49
|
||
|
L42:
|
||
|
java.lang.Class r4 = (java.lang.Class) r4
|
||
|
r2.hashCode()
|
||
|
throw r2
|
||
|
L48:
|
||
|
r1 = r2
|
||
|
L49:
|
||
|
if (r4 == 0) goto Lc9
|
||
|
boolean r3 = r4 instanceof java.lang.reflect.GenericArrayType
|
||
|
if (r3 == 0) goto L51
|
||
|
goto Lc9
|
||
|
L51:
|
||
|
if (r1 == 0) goto L62
|
||
|
boolean r3 = r1.isArray()
|
||
|
if (r3 != 0) goto Lc9
|
||
|
java.lang.Class<java.util.ArrayList> r3 = java.util.ArrayList.class
|
||
|
boolean r3 = r1.isAssignableFrom(r3)
|
||
|
if (r3 == 0) goto L62
|
||
|
goto Lc9
|
||
|
L62:
|
||
|
if (r1 == 0) goto La4
|
||
|
int r4 = com.google.android.gms.internal.firebase_ml.zzhf.b
|
||
|
int r4 = r4 + 43
|
||
|
int r3 = r4 % 128
|
||
|
com.google.android.gms.internal.firebase_ml.zzhf.a = r3
|
||
|
int r4 = r4 % r0
|
||
|
if (r4 != 0) goto L9b
|
||
|
java.lang.Class<java.util.HashSet> r4 = java.util.HashSet.class
|
||
|
boolean r4 = r1.isAssignableFrom(r4)
|
||
|
if (r4 == 0) goto L7d
|
||
|
java.util.HashSet r4 = new java.util.HashSet
|
||
|
r4.<init>()
|
||
|
return r4
|
||
|
L7d:
|
||
|
java.lang.Class<java.util.TreeSet> r4 = java.util.TreeSet.class
|
||
|
boolean r4 = r1.isAssignableFrom(r4)
|
||
|
if (r4 == 0) goto L8b
|
||
|
java.util.TreeSet r4 = new java.util.TreeSet
|
||
|
r4.<init>()
|
||
|
return r4
|
||
|
L8b:
|
||
|
java.lang.Object r4 = com.google.android.gms.internal.firebase_ml.zzia.zzf(r1)
|
||
|
java.util.Collection r4 = (java.util.Collection) r4
|
||
|
int r1 = com.google.android.gms.internal.firebase_ml.zzhf.a
|
||
|
int r1 = r1 + 89
|
||
|
int r2 = r1 % 128
|
||
|
com.google.android.gms.internal.firebase_ml.zzhf.b = r2
|
||
|
int r1 = r1 % r0
|
||
|
return r4
|
||
|
L9b:
|
||
|
java.lang.Class<java.util.HashSet> r4 = java.util.HashSet.class
|
||
|
r1.isAssignableFrom(r4)
|
||
|
r2.hashCode()
|
||
|
throw r2
|
||
|
La4:
|
||
|
java.lang.String r4 = java.lang.String.valueOf(r4)
|
||
|
java.lang.IllegalArgumentException r0 = new java.lang.IllegalArgumentException
|
||
|
java.lang.StringBuilder r1 = new java.lang.StringBuilder
|
||
|
java.lang.String r2 = java.lang.String.valueOf(r4)
|
||
|
int r2 = r2.length()
|
||
|
int r2 = r2 + 39
|
||
|
r1.<init>(r2)
|
||
|
java.lang.String r2 = "unable to create new instance of type: "
|
||
|
r1.append(r2)
|
||
|
r1.append(r4)
|
||
|
java.lang.String r4 = r1.toString()
|
||
|
r0.<init>(r4)
|
||
|
throw r0
|
||
|
Lc9:
|
||
|
java.util.ArrayList r4 = new java.util.ArrayList
|
||
|
r4.<init>()
|
||
|
return r4
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.firebase_ml.zzhf.zzb(java.lang.reflect.Type):java.util.Collection");
|
||
|
}
|
||
|
|
||
|
public static Map<String, Object> zze(Class<?> cls) {
|
||
|
int i = 2 % 2;
|
||
|
if (cls != null) {
|
||
|
int i2 = a + 9;
|
||
|
b = i2 % 128;
|
||
|
int i3 = i2 % 2;
|
||
|
if (!cls.isAssignableFrom(zzgx.class)) {
|
||
|
if (cls.isAssignableFrom(TreeMap.class)) {
|
||
|
return new TreeMap();
|
||
|
}
|
||
|
Map<String, Object> map = (Map) zzia.zzf((Class) cls);
|
||
|
int i4 = a + 95;
|
||
|
b = i4 % 128;
|
||
|
int i5 = i4 % 2;
|
||
|
return map;
|
||
|
}
|
||
|
}
|
||
|
return new zzgx();
|
||
|
}
|
||
|
|
||
|
public static Type zza(List<Type> list, Type type) {
|
||
|
int i = 2 % 2;
|
||
|
int i2 = a + 41;
|
||
|
int i3 = i2 % 128;
|
||
|
b = i3;
|
||
|
int i4 = i2 % 2;
|
||
|
if (type instanceof WildcardType) {
|
||
|
int i5 = i3 + 85;
|
||
|
a = i5 % 128;
|
||
|
if (i5 % 2 != 0) {
|
||
|
zzia.zza((WildcardType) type);
|
||
|
Object obj = null;
|
||
|
obj.hashCode();
|
||
|
throw null;
|
||
|
}
|
||
|
type = zzia.zza((WildcardType) type);
|
||
|
}
|
||
|
while (type instanceof TypeVariable) {
|
||
|
Type zza = zzia.zza(list, (TypeVariable<?>) type);
|
||
|
if (zza != null) {
|
||
|
int i6 = a + 105;
|
||
|
b = i6 % 128;
|
||
|
int i7 = i6 % 2;
|
||
|
type = zza;
|
||
|
}
|
||
|
if (type instanceof TypeVariable) {
|
||
|
type = ((TypeVariable) type).getBounds()[0];
|
||
|
int i8 = a + 95;
|
||
|
b = i8 % 128;
|
||
|
int i9 = i8 % 2;
|
||
|
}
|
||
|
}
|
||
|
return type;
|
||
|
}
|
||
|
|
||
|
static {
|
||
|
b = 1;
|
||
|
c();
|
||
|
Boolean bool = new Boolean(true);
|
||
|
zzyq = bool;
|
||
|
String str = new String();
|
||
|
zzyr = str;
|
||
|
Character ch = new Character((char) 0);
|
||
|
zzys = ch;
|
||
|
Byte b2 = new Byte((byte) 0);
|
||
|
zzyt = b2;
|
||
|
Short sh = new Short((short) 0);
|
||
|
zzyu = sh;
|
||
|
Integer num = new Integer(0);
|
||
|
zzyv = num;
|
||
|
Float f = new Float(BitmapDescriptorFactory.HUE_RED);
|
||
|
zzyw = f;
|
||
|
Long l = new Long(0L);
|
||
|
zzyx = l;
|
||
|
Double d = new Double(0.0d);
|
||
|
zzyy = d;
|
||
|
Object[] objArr = new Object[1];
|
||
|
d(new byte[]{0}, new int[]{0, 1, 0, 1}, true, objArr);
|
||
|
BigInteger bigInteger = new BigInteger(((String) objArr[0]).intern());
|
||
|
zzyz = bigInteger;
|
||
|
Object[] objArr2 = new Object[1];
|
||
|
d(new byte[]{0}, new int[]{0, 1, 0, 1}, true, objArr2);
|
||
|
BigDecimal bigDecimal = new BigDecimal(((String) objArr2[0]).intern());
|
||
|
zzza = bigDecimal;
|
||
|
zzhk zzhkVar = new zzhk(0L);
|
||
|
zzzb = zzhkVar;
|
||
|
ConcurrentHashMap<Class<?>, Object> concurrentHashMap = new ConcurrentHashMap<>();
|
||
|
zzzc = concurrentHashMap;
|
||
|
concurrentHashMap.put(Boolean.class, bool);
|
||
|
concurrentHashMap.put(String.class, str);
|
||
|
concurrentHashMap.put(Character.class, ch);
|
||
|
concurrentHashMap.put(Byte.class, b2);
|
||
|
concurrentHashMap.put(Short.class, sh);
|
||
|
concurrentHashMap.put(Integer.class, num);
|
||
|
concurrentHashMap.put(Float.class, f);
|
||
|
concurrentHashMap.put(Long.class, l);
|
||
|
concurrentHashMap.put(Double.class, d);
|
||
|
concurrentHashMap.put(BigInteger.class, bigInteger);
|
||
|
concurrentHashMap.put(BigDecimal.class, bigDecimal);
|
||
|
concurrentHashMap.put(zzhk.class, zzhkVar);
|
||
|
int i = a + 75;
|
||
|
b = i % 128;
|
||
|
int i2 = i % 2;
|
||
|
}
|
||
|
|
||
|
private static void d(byte[] bArr, int[] iArr, boolean z, Object[] objArr) {
|
||
|
char[] cArr;
|
||
|
int i = 2 % 2;
|
||
|
TVH tvh = new TVH();
|
||
|
int i2 = 0;
|
||
|
int i3 = iArr[0];
|
||
|
int i4 = iArr[1];
|
||
|
int i5 = iArr[2];
|
||
|
int i6 = iArr[3];
|
||
|
char[] cArr2 = e;
|
||
|
char c = '0';
|
||
|
if (cArr2 != null) {
|
||
|
int length = cArr2.length;
|
||
|
char[] cArr3 = new char[length];
|
||
|
int i7 = 0;
|
||
|
while (i7 < length) {
|
||
|
try {
|
||
|
Object[] objArr2 = new Object[1];
|
||
|
objArr2[i2] = Integer.valueOf(cArr2[i7]);
|
||
|
Object obj = xzZ.y.get(1645349359);
|
||
|
if (obj != null) {
|
||
|
cArr = cArr2;
|
||
|
} else {
|
||
|
Class cls = (Class) xzZ.c((ViewConfiguration.getMaximumDrawingCacheSize() >> 24) + 223, ((byte) KeyEvent.getModifierMetaStateMask()) + 6, (char) (TextUtils.lastIndexOf("", c, i2, i2) + 41978));
|
||
|
byte b2 = (byte) $$b;
|
||
|
byte b3 = b2;
|
||
|
cArr = cArr2;
|
||
|
Object[] objArr3 = new Object[1];
|
||
|
f(b2, b3, (byte) (b3 + 1), objArr3);
|
||
|
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
|
||
|
xzZ.y.put(1645349359, obj);
|
||
|
}
|
||
|
cArr3[i7] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
|
||
|
i7++;
|
||
|
cArr2 = cArr;
|
||
|
i2 = 0;
|
||
|
c = '0';
|
||
|
} catch (Throwable th) {
|
||
|
Throwable cause = th.getCause();
|
||
|
if (cause == null) {
|
||
|
throw th;
|
||
|
}
|
||
|
throw cause;
|
||
|
}
|
||
|
}
|
||
|
int i8 = $10 + 13;
|
||
|
$11 = i8 % 128;
|
||
|
int i9 = i8 % 2;
|
||
|
cArr2 = cArr3;
|
||
|
}
|
||
|
char[] cArr4 = new char[i4];
|
||
|
System.arraycopy(cArr2, i3, cArr4, 0, i4);
|
||
|
if (bArr != null) {
|
||
|
int i10 = $11 + 81;
|
||
|
$10 = i10 % 128;
|
||
|
int i11 = i10 % 2;
|
||
|
char[] cArr5 = new char[i4];
|
||
|
tvh.c = 0;
|
||
|
char c2 = 0;
|
||
|
while (tvh.c < i4) {
|
||
|
if (bArr[tvh.c] == 1) {
|
||
|
int i12 = $11 + 81;
|
||
|
$10 = i12 % 128;
|
||
|
if (i12 % 2 != 0) {
|
||
|
int i13 = tvh.c;
|
||
|
try {
|
||
|
Object[] objArr4 = {Integer.valueOf(cArr4[tvh.c]), Integer.valueOf(c2)};
|
||
|
Object obj2 = xzZ.y.get(850398076);
|
||
|
if (obj2 == null) {
|
||
|
obj2 = ((Class) xzZ.c(TextUtils.indexOf("", "", 0) + 502, 5 - (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) ((ViewConfiguration.getFadingEdgeLength() >> 16) + 54))).getMethod("F", Integer.TYPE, Integer.TYPE);
|
||
|
xzZ.y.put(850398076, obj2);
|
||
|
}
|
||
|
cArr5[i13] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
|
||
|
int i14 = 6 / 0;
|
||
|
} catch (Throwable th2) {
|
||
|
Throwable cause2 = th2.getCause();
|
||
|
if (cause2 == null) {
|
||
|
throw th2;
|
||
|
}
|
||
|
throw cause2;
|
||
|
}
|
||
|
} else {
|
||
|
int i15 = tvh.c;
|
||
|
Object[] objArr5 = {Integer.valueOf(cArr4[tvh.c]), Integer.valueOf(c2)};
|
||
|
Object obj3 = xzZ.y.get(850398076);
|
||
|
if (obj3 == null) {
|
||
|
obj3 = ((Class) xzZ.c(502 - (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), 4 - ExpandableListView.getPackedPositionChild(0L), (char) (54 - (ViewConfiguration.getPressedStateDuration() >> 16)))).getMethod("F", Integer.TYPE, Integer.TYPE);
|
||
|
xzZ.y.put(850398076, obj3);
|
||
|
}
|
||
|
cArr5[i15] = ((Character) ((Method) obj3).invoke(null, objArr5)).charValue();
|
||
|
}
|
||
|
} else {
|
||
|
int i16 = tvh.c;
|
||
|
Object[] objArr6 = {Integer.valueOf(cArr4[tvh.c]), Integer.valueOf(c2)};
|
||
|
Object obj4 = xzZ.y.get(1084521042);
|
||
|
if (obj4 == null) {
|
||
|
obj4 = ((Class) xzZ.c(14 - ExpandableListView.getPackedPositionChild(0L), View.MeasureSpec.makeMeasureSpec(0, 0) + 5, (char) (58133 - TextUtils.lastIndexOf("", '0', 0, 0)))).getMethod("H", Integer.TYPE, Integer.TYPE);
|
||
|
xzZ.y.put(1084521042, obj4);
|
||
|
}
|
||
|
cArr5[i16] = ((Character) ((Method) obj4).invoke(null, objArr6)).charValue();
|
||
|
}
|
||
|
c2 = cArr5[tvh.c];
|
||
|
Object[] objArr7 = {tvh, tvh};
|
||
|
Object obj5 = xzZ.y.get(1698744941);
|
||
|
if (obj5 == null) {
|
||
|
Class cls2 = (Class) xzZ.c(402 - (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), TextUtils.getTrimmedLength("") + 5, (char) (21608 - (ViewConfiguration.getKeyRepeatDelay() >> 16)));
|
||
|
byte b4 = (byte) $$b;
|
||
|
byte b5 = b4;
|
||
|
Object[] objArr8 = new Object[1];
|
||
|
f(b4, b5, b5, objArr8);
|
||
|
obj5 = cls2.getMethod((String) objArr8[0], Object.class, Object.class);
|
||
|
xzZ.y.put(1698744941, obj5);
|
||
|
}
|
||
|
((Method) obj5).invoke(null, objArr7);
|
||
|
}
|
||
|
cArr4 = cArr5;
|
||
|
}
|
||
|
if (i6 > 0) {
|
||
|
char[] cArr6 = new char[i4];
|
||
|
System.arraycopy(cArr4, 0, cArr6, 0, i4);
|
||
|
int i17 = i4 - i6;
|
||
|
System.arraycopy(cArr6, 0, cArr4, i17, i6);
|
||
|
System.arraycopy(cArr6, i6, cArr4, 0, i17);
|
||
|
int i18 = $10 + 39;
|
||
|
$11 = i18 % 128;
|
||
|
int i19 = i18 % 2;
|
||
|
}
|
||
|
if (z) {
|
||
|
char[] cArr7 = new char[i4];
|
||
|
int i20 = 0;
|
||
|
while (true) {
|
||
|
tvh.c = i20;
|
||
|
if (tvh.c >= i4) {
|
||
|
break;
|
||
|
}
|
||
|
cArr7[tvh.c] = cArr4[(i4 - tvh.c) - 1];
|
||
|
i20 = tvh.c + 1;
|
||
|
}
|
||
|
cArr4 = cArr7;
|
||
|
}
|
||
|
if (i5 > 0) {
|
||
|
int i21 = 0;
|
||
|
while (true) {
|
||
|
tvh.c = i21;
|
||
|
if (tvh.c >= i4) {
|
||
|
break;
|
||
|
}
|
||
|
int i22 = $10 + 73;
|
||
|
$11 = i22 % 128;
|
||
|
int i23 = i22 % 2;
|
||
|
cArr4[tvh.c] = (char) (cArr4[tvh.c] - iArr[2]);
|
||
|
i21 = tvh.c + 1;
|
||
|
}
|
||
|
}
|
||
|
objArr[0] = new String(cArr4);
|
||
|
}
|
||
|
|
||
|
static void c() {
|
||
|
e = new char[]{39955};
|
||
|
}
|
||
|
}
|