what-the-bank/sources/com/google/android/gms/internal/location/zzbs.java

265 lines
11 KiB
Java

package com.google.android.gms.internal.location;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.os.SystemClock;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.airbnb.deeplinkdispatch.UrlTreeKt;
import java.lang.reflect.Method;
import java.util.logging.Level;
import java.util.logging.Logger;
import net.sf.scuba.smartcards.ISO7816;
import o.C4593bdB;
import o.xzZ;
import org.bouncycastle.crypto.tls.CipherSuite;
/* loaded from: classes2.dex */
public final class zzbs {
private static final byte[] $$a = {33, -82, ISO7816.INS_UNBLOCK_CHV, 67};
private static final int $$b = CipherSuite.TLS_PSK_WITH_AES_128_GCM_SHA256;
private static int $10 = 0;
private static int $11 = 1;
private static int e = 0;
private static int a = 1;
private static long b = 3355103178748844452L;
/* JADX WARN: Removed duplicated region for block: B:10:0x0025 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001d */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0025 -> 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 d(byte r6, short r7, int r8, java.lang.Object[] r9) {
/*
int r8 = 78 - r8
int r6 = r6 * 4
int r0 = 1 - r6
byte[] r1 = com.google.android.gms.internal.location.zzbs.$$a
int r7 = r7 + 4
byte[] r0 = new byte[r0]
r2 = 0
int r6 = 0 - r6
if (r1 != 0) goto L15
r3 = r8
r4 = r2
r8 = r7
goto L2e
L15:
r3 = r2
L16:
byte r4 = (byte) r8
int r7 = r7 + 1
r0[r3] = r4
if (r3 != r6) goto L25
java.lang.String r6 = new java.lang.String
r6.<init>(r0, r2)
r9[r2] = r6
return
L25:
int r3 = r3 + 1
r4 = r1[r7]
r5 = r8
r8 = r7
r7 = r4
r4 = r3
r3 = r5
L2e:
int r7 = r7 + r3
r3 = r4
r5 = r8
r8 = r7
r7 = r5
goto L16
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.location.zzbs.d(byte, short, int, java.lang.Object[]):void");
}
public static String zza(String str, Object... objArr) {
int length;
int indexOf;
String str2;
String sb;
int i = 2 % 2;
int i2 = 0;
int i3 = 0;
while (true) {
int length2 = objArr.length;
if (i3 >= length2) {
StringBuilder sb2 = new StringBuilder(str.length() + (length2 * 16));
int i4 = 0;
while (true) {
length = objArr.length;
if (i2 >= length || (indexOf = str.indexOf("%s", i4)) == -1) {
break;
}
sb2.append((CharSequence) str, i4, indexOf);
sb2.append(objArr[i2]);
i4 = indexOf + 2;
i2++;
}
sb2.append((CharSequence) str, i4, str.length());
if (i2 < length) {
sb2.append(" [");
sb2.append(objArr[i2]);
for (int i5 = i2 + 1; i5 < objArr.length; i5++) {
sb2.append(", ");
sb2.append(objArr[i5]);
}
sb2.append(']');
}
return sb2.toString();
}
int i6 = a;
int i7 = i6 + 81;
e = i7 % 128;
if (i7 % 2 != 0) {
Object obj = objArr[i3];
Object obj2 = null;
obj2.hashCode();
throw null;
}
Object obj3 = objArr[i3];
if (obj3 == null) {
int i8 = i6 + 97;
e = i8 % 128;
if (i8 % 2 != 0) {
Object[] objArr2 = new Object[1];
c(new char[]{51724, 58210, 39140, 46673}, 20083 >>> Drawable.resolveOpacity(0, 0), objArr2);
sb = ((String) objArr2[0]).intern();
} else {
Object[] objArr3 = new Object[1];
c(new char[]{51724, 58210, 39140, 46673}, Drawable.resolveOpacity(0, 0) + 10613, objArr3);
sb = ((String) objArr3[0]).intern();
}
} else {
try {
sb = obj3.toString();
} catch (Exception e2) {
String name = obj3.getClass().getName();
String hexString = Integer.toHexString(System.identityHashCode(obj3));
StringBuilder sb3 = new StringBuilder(String.valueOf(name).length() + 1 + String.valueOf(hexString).length());
sb3.append(name);
sb3.append('@');
sb3.append(hexString);
String sb4 = sb3.toString();
Logger logger = Logger.getLogger("com.google.common.base.Strings");
Level level = Level.WARNING;
if (sb4.length() != 0) {
str2 = "Exception during lenientFormat for ".concat(sb4);
int i9 = e + 7;
a = i9 % 128;
int i10 = i9 % 2;
} else {
str2 = new String("Exception during lenientFormat for ");
}
logger.logp(level, "com.google.common.base.Strings", "lenientToString", str2, (Throwable) e2);
String name2 = e2.getClass().getName();
StringBuilder sb5 = new StringBuilder(sb4.length() + 9 + String.valueOf(name2).length());
sb5.append(UrlTreeKt.configurablePathSegmentPrefix);
sb5.append(sb4);
sb5.append(" threw ");
sb5.append(name2);
sb5.append(UrlTreeKt.configurablePathSegmentSuffix);
sb = sb5.toString();
}
}
objArr[i3] = sb;
i3++;
}
}
private static void c(char[] cArr, int i, Object[] objArr) {
Object method;
int i2 = 2 % 2;
C4593bdB c4593bdB = new C4593bdB();
c4593bdB.a = i;
int length = cArr.length;
long[] jArr = new long[length];
c4593bdB.e = 0;
while (c4593bdB.e < cArr.length) {
int i3 = c4593bdB.e;
try {
Object[] objArr2 = {Integer.valueOf(cArr[c4593bdB.e]), c4593bdB, c4593bdB};
Object obj = xzZ.y.get(-1229953068);
if (obj == null) {
Class cls = (Class) xzZ.c((SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) + 401, TextUtils.getOffsetAfter("", 0) + 5, (char) (21608 - (KeyEvent.getMaxKeyCode() >> 16)));
byte b2 = (byte) 0;
byte b3 = (byte) (b2 - 1);
Object[] objArr3 = new Object[1];
d(b2, b3, (byte) (-b3), objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Object.class, Object.class);
xzZ.y.put(-1229953068, obj);
}
jArr[i3] = ((Long) ((Method) obj).invoke(null, objArr2)).longValue() ^ (b ^ (-6958928035870403642L));
Object[] objArr4 = {c4593bdB, c4593bdB};
Object obj2 = xzZ.y.get(-1143917229);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(238 - Color.blue(0), (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)) + 5, (char) (ViewConfiguration.getKeyRepeatDelay() >> 16));
byte b4 = (byte) 0;
byte b5 = (byte) (b4 - 1);
Object[] objArr5 = new Object[1];
d(b4, b5, (byte) (b5 + 1), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class);
xzZ.y.put(-1143917229, obj2);
}
((Method) obj2).invoke(null, objArr4);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
char[] cArr2 = new char[length];
c4593bdB.e = 0;
while (c4593bdB.e < cArr.length) {
int i4 = $10 + 23;
$11 = i4 % 128;
if (i4 % 2 == 0) {
cArr2[c4593bdB.e] = (char) jArr[c4593bdB.e];
Object[] objArr6 = {c4593bdB, c4593bdB};
Object obj3 = xzZ.y.get(-1143917229);
if (obj3 != null) {
method = obj3;
} else {
Class cls3 = (Class) xzZ.c(ExpandableListView.getPackedPositionType(0L) + 238, (ViewConfiguration.getJumpTapTimeout() >> 16) + 5, (char) (ViewConfiguration.getMaximumFlingVelocity() >> 16));
byte b6 = (byte) 0;
byte b7 = (byte) (b6 - 1);
Object[] objArr7 = new Object[1];
d(b6, b7, (byte) (b7 + 1), objArr7);
method = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(-1143917229, method);
}
((Method) method).invoke(null, objArr6);
int i5 = 22 / 0;
} else {
cArr2[c4593bdB.e] = (char) jArr[c4593bdB.e];
Object[] objArr8 = {c4593bdB, c4593bdB};
Object obj4 = xzZ.y.get(-1143917229);
if (obj4 == null) {
Class cls4 = (Class) xzZ.c((ViewConfiguration.getFadingEdgeLength() >> 16) + 238, (ViewConfiguration.getTapTimeout() >> 16) + 5, (char) (ViewConfiguration.getWindowTouchSlop() >> 8));
byte b8 = (byte) 0;
byte b9 = (byte) (b8 - 1);
Object[] objArr9 = new Object[1];
d(b8, b9, (byte) (b9 + 1), objArr9);
obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class);
xzZ.y.put(-1143917229, obj4);
}
((Method) obj4).invoke(null, objArr8);
}
}
String str = new String(cArr2);
int i6 = $10 + 119;
$11 = i6 % 128;
if (i6 % 2 == 0) {
throw null;
}
objArr[0] = str;
}
}