257 lines
10 KiB
Java
257 lines
10 KiB
Java
package com.google.android.gms.internal.p002firebaseauthapi;
|
|
|
|
import android.graphics.Color;
|
|
import android.os.Process;
|
|
import android.os.SystemClock;
|
|
import android.text.TextUtils;
|
|
import android.util.TypedValue;
|
|
import android.view.View;
|
|
import android.view.ViewConfiguration;
|
|
import android.widget.ExpandableListView;
|
|
import com.airbnb.deeplinkdispatch.UrlTreeKt;
|
|
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
|
import com.pingan.ai.p;
|
|
import java.lang.reflect.Method;
|
|
import java.util.logging.Level;
|
|
import java.util.logging.Logger;
|
|
import o.Nhs;
|
|
import o.xzZ;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class zzag {
|
|
private static final byte[] $$a = {94, -44, 14, -83};
|
|
private static final int $$b = 108;
|
|
private static int $10 = 0;
|
|
private static int $11 = 1;
|
|
private static int d = 0;
|
|
private static int a = 1;
|
|
private static long b = -3982059825285545234L;
|
|
private static int e = 452713125;
|
|
private static char c = 55973;
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:10:0x0024 */
|
|
/* JADX WARN: Removed duplicated region for block: B:7:0x001c */
|
|
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0024 -> B:4:0x0026). 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 g(short r6, byte r7, int r8, java.lang.Object[] r9) {
|
|
/*
|
|
byte[] r0 = com.google.android.gms.internal.p002firebaseauthapi.zzag.$$a
|
|
int r6 = r6 * 3
|
|
int r6 = 1 - r6
|
|
int r8 = 115 - r8
|
|
int r7 = r7 * 4
|
|
int r7 = 4 - r7
|
|
byte[] r1 = new byte[r6]
|
|
r2 = 0
|
|
if (r0 != 0) goto L14
|
|
r3 = r6
|
|
r4 = r2
|
|
goto L26
|
|
L14:
|
|
r3 = r2
|
|
L15:
|
|
int r4 = r3 + 1
|
|
byte r5 = (byte) r8
|
|
r1[r3] = r5
|
|
if (r4 != r6) goto L24
|
|
java.lang.String r6 = new java.lang.String
|
|
r6.<init>(r1, r2)
|
|
r9[r2] = r6
|
|
return
|
|
L24:
|
|
r3 = r0[r7]
|
|
L26:
|
|
int r7 = r7 + 1
|
|
int r3 = -r3
|
|
int r8 = r8 + r3
|
|
r3 = r4
|
|
goto L15
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.p002firebaseauthapi.zzag.g(short, byte, int, java.lang.Object[]):void");
|
|
}
|
|
|
|
public static String zza(String str) {
|
|
int i = 2 % 2;
|
|
int i2 = d + 25;
|
|
a = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
if (!zzx.zzc(str)) {
|
|
return str;
|
|
}
|
|
int i4 = a + 105;
|
|
d = i4 % 128;
|
|
int i5 = i4 % 2;
|
|
return null;
|
|
}
|
|
|
|
public static String zzc(String str) {
|
|
int i = 2 % 2;
|
|
int i2 = a + 37;
|
|
d = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
String zzb = zzx.zzb(str);
|
|
int i4 = d + 93;
|
|
a = i4 % 128;
|
|
if (i4 % 2 != 0) {
|
|
return zzb;
|
|
}
|
|
Object obj = null;
|
|
obj.hashCode();
|
|
throw null;
|
|
}
|
|
|
|
public static boolean zzd(String str) {
|
|
int i = 2 % 2;
|
|
int i2 = d + 79;
|
|
a = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
boolean zzc = zzx.zzc(str);
|
|
int i4 = a + 5;
|
|
d = i4 % 128;
|
|
if (i4 % 2 != 0) {
|
|
int i5 = 28 / 0;
|
|
}
|
|
return zzc;
|
|
}
|
|
|
|
public static String zzb(String str, Object... objArr) {
|
|
int length;
|
|
int length2;
|
|
int indexOf;
|
|
String str2;
|
|
int i = 2 % 2;
|
|
int i2 = d + 45;
|
|
a = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
int i4 = 0;
|
|
int i5 = 0;
|
|
while (true) {
|
|
length = objArr.length;
|
|
if (i5 >= length) {
|
|
break;
|
|
}
|
|
Object obj = objArr[i5];
|
|
if (obj == null) {
|
|
Object[] objArr2 = new Object[1];
|
|
f((char) (ExpandableListView.getPackedPositionChild(0L) + 35789), (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)), new char[]{62956, 63398, 52343, 61323}, new char[]{9447, 3312, 44521, 25564}, new char[]{38987, 54651, 8203, 46375}, objArr2);
|
|
str2 = ((String) objArr2[0]).intern();
|
|
} else {
|
|
try {
|
|
str2 = obj.toString();
|
|
} catch (Exception e2) {
|
|
String str3 = obj.getClass().getName() + '@' + Integer.toHexString(System.identityHashCode(obj));
|
|
Logger.getLogger("com.google.common.base.Strings").logp(Level.WARNING, "com.google.common.base.Strings", "lenientToString", "Exception during lenientFormat for ".concat(str3), (Throwable) e2);
|
|
str2 = UrlTreeKt.configurablePathSegmentPrefix + str3 + " threw " + e2.getClass().getName() + UrlTreeKt.configurablePathSegmentSuffix;
|
|
}
|
|
}
|
|
objArr[i5] = str2;
|
|
i5++;
|
|
}
|
|
StringBuilder sb = new StringBuilder(str.length() + (length * 16));
|
|
int i6 = 0;
|
|
while (true) {
|
|
length2 = objArr.length;
|
|
if (i4 >= length2 || (indexOf = str.indexOf("%s", i6)) == -1) {
|
|
break;
|
|
}
|
|
sb.append((CharSequence) str, i6, indexOf);
|
|
sb.append(objArr[i4]);
|
|
i6 = indexOf + 2;
|
|
i4++;
|
|
}
|
|
sb.append((CharSequence) str, i6, str.length());
|
|
if (i4 < length2) {
|
|
sb.append(" [");
|
|
sb.append(objArr[i4]);
|
|
for (int i7 = i4 + 1; i7 < objArr.length; i7++) {
|
|
int i8 = a + 79;
|
|
d = i8 % 128;
|
|
int i9 = i8 % 2;
|
|
sb.append(", ");
|
|
sb.append(objArr[i7]);
|
|
}
|
|
sb.append(']');
|
|
}
|
|
return sb.toString();
|
|
}
|
|
|
|
private static void f(char c2, int i, char[] cArr, char[] cArr2, char[] cArr3, Object[] objArr) {
|
|
int i2 = 2;
|
|
int i3 = 2 % 2;
|
|
Nhs nhs = new Nhs();
|
|
int length = cArr.length;
|
|
char[] cArr4 = new char[length];
|
|
int length2 = cArr3.length;
|
|
char[] cArr5 = new char[length2];
|
|
System.arraycopy(cArr, 0, cArr4, 0, length);
|
|
System.arraycopy(cArr3, 0, cArr5, 0, length2);
|
|
cArr4[0] = (char) (cArr4[0] ^ c2);
|
|
cArr5[2] = (char) (cArr5[2] + ((char) i));
|
|
int length3 = cArr2.length;
|
|
char[] cArr6 = new char[length3];
|
|
nhs.a = 0;
|
|
while (nhs.a < length3) {
|
|
int i4 = $10 + 75;
|
|
$11 = i4 % 128;
|
|
int i5 = i4 % i2;
|
|
try {
|
|
Object[] objArr2 = {nhs};
|
|
Object obj = xzZ.y.get(263693715);
|
|
if (obj == null) {
|
|
obj = ((Class) xzZ.c(45 - View.MeasureSpec.getSize(0), (Process.myTid() >> 22) + 5, (char) (ViewConfiguration.getMinimumFlingVelocity() >> 16))).getMethod("t", Object.class);
|
|
xzZ.y.put(263693715, obj);
|
|
}
|
|
int intValue = ((Integer) ((Method) obj).invoke(null, objArr2)).intValue();
|
|
Object[] objArr3 = {nhs};
|
|
Object obj2 = xzZ.y.get(-484664112);
|
|
if (obj2 == null) {
|
|
Class cls = (Class) xzZ.c(352 - (ViewConfiguration.getPressedStateDuration() >> 16), (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) + 4, (char) (52127 - TextUtils.indexOf((CharSequence) "", '0', 0, 0)));
|
|
byte b2 = (byte) 0;
|
|
byte b3 = b2;
|
|
Object[] objArr4 = new Object[1];
|
|
g(b2, b3, b3, objArr4);
|
|
obj2 = cls.getMethod((String) objArr4[0], Object.class);
|
|
xzZ.y.put(-484664112, obj2);
|
|
}
|
|
int intValue2 = ((Integer) ((Method) obj2).invoke(null, objArr3)).intValue();
|
|
Object[] objArr5 = {nhs, Integer.valueOf(cArr4[nhs.a % 4] * 32718), Integer.valueOf(cArr5[intValue])};
|
|
Object obj3 = xzZ.y.get(430099516);
|
|
if (obj3 == null) {
|
|
obj3 = ((Class) xzZ.c(749 - (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)), Process.getGidForName("") + 6, (char) View.getDefaultSize(0, 0))).getMethod(p.a, Object.class, Integer.TYPE, Integer.TYPE);
|
|
xzZ.y.put(430099516, obj3);
|
|
}
|
|
((Method) obj3).invoke(null, objArr5);
|
|
Object[] objArr6 = {Integer.valueOf(cArr4[intValue2] * 32718), Integer.valueOf(cArr5[intValue])};
|
|
Object obj4 = xzZ.y.get(1019894806);
|
|
if (obj4 == null) {
|
|
Class cls2 = (Class) xzZ.c(Color.alpha(0) + 402, TextUtils.indexOf((CharSequence) "", '0') + 6, (char) ((TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 21608));
|
|
byte b4 = (byte) 0;
|
|
byte b5 = b4;
|
|
Object[] objArr7 = new Object[1];
|
|
g(b4, b5, (byte) (b5 + 1), objArr7);
|
|
obj4 = cls2.getMethod((String) objArr7[0], Integer.TYPE, Integer.TYPE);
|
|
xzZ.y.put(1019894806, obj4);
|
|
}
|
|
cArr5[intValue2] = ((Character) ((Method) obj4).invoke(null, objArr6)).charValue();
|
|
cArr4[intValue2] = nhs.c;
|
|
cArr6[nhs.a] = (char) ((((cArr4[intValue2] ^ cArr2[nhs.a]) ^ (b ^ 9051040786702654117L)) ^ ((int) (e ^ 9051040786702654117L))) ^ ((char) (c ^ 9051040786702654117L)));
|
|
nhs.a++;
|
|
int i6 = $11 + 65;
|
|
$10 = i6 % 128;
|
|
int i7 = i6 % 2;
|
|
i2 = 2;
|
|
} catch (Throwable th) {
|
|
Throwable cause = th.getCause();
|
|
if (cause == null) {
|
|
throw th;
|
|
}
|
|
throw cause;
|
|
}
|
|
}
|
|
objArr[0] = new String(cArr6);
|
|
}
|
|
}
|