what-the-bank/sources/com/google/android/gms/internal/common/zzy.java

240 lines
9.5 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.common;
import android.graphics.drawable.Drawable;
import android.text.TextUtils;
import android.util.TypedValue;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import com.airbnb.deeplinkdispatch.UrlTreeKt;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import java.lang.reflect.Method;
import java.util.logging.Level;
import java.util.logging.Logger;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.jTb;
import o.xzZ;
import org.jspecify.nullness.NullMarked;
@NullMarked
/* loaded from: classes.dex */
public final class zzy {
private static final byte[] $$a = {67, -87, -63, ISOFileInfo.FCI_EXT};
private static final int $$b = 107;
private static int $10 = 0;
private static int $11 = 1;
private static int b = 0;
private static int h = 1;
private static char e = 45091;
private static char d = 34974;
private static char c = 54361;
private static char a = 443;
/* 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:0x002c). 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 r7, int r8, byte r9, java.lang.Object[] r10) {
/*
byte[] r0 = com.google.android.gms.internal.common.zzy.$$a
int r7 = r7 * 2
int r7 = r7 + 1
int r9 = 67 - r9
int r8 = r8 * 3
int r8 = 3 - r8
byte[] r1 = new byte[r7]
r2 = 0
if (r0 != 0) goto L15
r3 = r9
r4 = r2
r9 = r8
goto L2c
L15:
r3 = r2
L16:
int r4 = r3 + 1
byte r5 = (byte) r9
int r8 = r8 + 1
r1[r3] = r5
if (r4 != r7) goto L27
java.lang.String r7 = new java.lang.String
r7.<init>(r1, r2)
r10[r2] = r7
return
L27:
r3 = r0[r8]
r6 = r9
r9 = r8
r8 = r6
L2c:
int r8 = r8 + r3
r3 = r4
r6 = r9
r9 = r8
r8 = r6
goto L16
*/
throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.common.zzy.g(short, int, byte, java.lang.Object[]):void");
}
public static String zza(String str, Object... objArr) {
int length;
int length2;
int indexOf;
String str2;
int i = 2 % 2;
int i2 = 0;
int i3 = 0;
while (true) {
length = objArr.length;
if (i3 >= length) {
break;
}
Object obj = objArr[i3];
if (obj == null) {
Object[] objArr2 = new Object[1];
f(new char[]{44484, 59042, 65160, 56873}, 4 - (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)), 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[i3] = str2;
i3++;
}
StringBuilder sb = new StringBuilder(str.length() + (length * 16));
int i4 = 0;
while (true) {
length2 = objArr.length;
if (i2 >= length2 || (indexOf = str.indexOf("%s", i4)) == -1) {
break;
}
sb.append((CharSequence) str, i4, indexOf);
sb.append(objArr[i2]);
i4 = indexOf + 2;
i2++;
}
sb.append((CharSequence) str, i4, str.length());
if (i2 < length2) {
sb.append(" [");
int i5 = i2 + 1;
sb.append(objArr[i2]);
int i6 = h + 29;
b = i6 % 128;
int i7 = i6 % 2;
while (i5 < objArr.length) {
int i8 = b + 121;
h = i8 % 128;
if (i8 % 2 == 0) {
sb.append(", ");
sb.append(objArr[i5]);
i5 += 88;
} else {
sb.append(", ");
sb.append(objArr[i5]);
i5++;
}
}
sb.append(']');
int i9 = b + 113;
h = i9 % 128;
int i10 = i9 % 2;
}
return sb.toString();
}
private static void f(char[] cArr, int i, Object[] objArr) {
int i2;
int i3 = 2 % 2;
jTb jtb = new jTb();
char[] cArr2 = new char[cArr.length];
int i4 = 0;
jtb.b = 0;
char[] cArr3 = new char[2];
while (jtb.b < cArr.length) {
int i5 = $10 + 49;
$11 = i5 % 128;
if (i5 % 2 == 0) {
cArr3[1] = cArr[jtb.b];
cArr3[1] = cArr[jtb.b];
i2 = 1;
} else {
cArr3[i4] = cArr[jtb.b];
cArr3[1] = cArr[jtb.b + 1];
i2 = i4;
}
int i6 = 58224;
while (i2 < 16) {
int i7 = $10 + 13;
$11 = i7 % 128;
int i8 = i7 % 2;
char c2 = cArr3[1];
char c3 = cArr3[i4];
char[] cArr4 = cArr3;
try {
Object[] objArr2 = {Integer.valueOf(c2), Integer.valueOf((c3 + i6) ^ ((c3 << 4) + ((char) (c ^ 41718355337583039L)))), Integer.valueOf(c3 >>> 5), Integer.valueOf(a)};
Object obj = xzZ.y.get(597144044);
if (obj == null) {
Class cls = (Class) xzZ.c(412 - TextUtils.indexOf("", "", 0), 5 - (ViewConfiguration.getPressedStateDuration() >> 16), (char) (ViewConfiguration.getMaximumFlingVelocity() >> 16));
byte b2 = (byte) 0;
byte b3 = b2;
Object[] objArr3 = new Object[1];
g(b2, b3, (byte) (b3 + 1), objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE);
xzZ.y.put(597144044, obj);
}
char charValue = ((Character) ((Method) obj).invoke(null, objArr2)).charValue();
cArr4[1] = charValue;
Object[] objArr4 = {Integer.valueOf(cArr4[0]), Integer.valueOf((charValue + i6) ^ ((charValue << 4) + ((char) (e ^ 41718355337583039L)))), Integer.valueOf(charValue >>> 5), Integer.valueOf(d)};
Object obj2 = xzZ.y.get(597144044);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(ExpandableListView.getPackedPositionChild(0L) + 413, 5 - (ViewConfiguration.getKeyRepeatDelay() >> 16), (char) Drawable.resolveOpacity(0, 0));
byte b4 = (byte) 0;
byte b5 = b4;
Object[] objArr5 = new Object[1];
g(b4, b5, (byte) (b5 + 1), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE);
xzZ.y.put(597144044, obj2);
}
cArr4[0] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue();
i6 -= 40503;
i2++;
cArr3 = cArr4;
i4 = 0;
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
char[] cArr5 = cArr3;
cArr2[jtb.b] = cArr5[0];
cArr2[jtb.b + 1] = cArr5[1];
Object[] objArr6 = {jtb, jtb};
Object obj3 = xzZ.y.get(943004485);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(98 - (ViewConfiguration.getWindowTouchSlop() >> 8), TextUtils.getCapsMode("", 0, 0) + 5, (char) (TextUtils.lastIndexOf("", '0', 0, 0) + 1));
byte b6 = (byte) 0;
byte b7 = b6;
Object[] objArr7 = new Object[1];
g(b6, b7, b7, objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(943004485, obj3);
}
((Method) obj3).invoke(null, objArr6);
cArr3 = cArr5;
i4 = 0;
}
objArr[0] = new String(cArr2, 0, i);
}
}