what-the-bank/sources/com/google/android/gms/common/util/MapUtils.java

221 lines
10 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.common.util;
import android.graphics.Color;
import android.media.AudioTrack;
import android.os.SystemClock;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import com.airbnb.deeplinkdispatch.UrlTreeKt;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import java.lang.reflect.Method;
import java.util.HashMap;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.dQY;
import o.xzZ;
/* loaded from: classes2.dex */
public class MapUtils {
private static final byte[] $$a = {43, -66, 11, ISOFileInfo.LCS_BYTE};
private static final int $$b = 54;
private static int $10 = 0;
private static int $11 = 1;
private static int e = 0;
private static int a = 1;
private static char[] d = {35486, 6679, 43960, 15146};
private static long c = 7980819946078478144L;
private static void f(byte b, int i, byte b2, Object[] objArr) {
int i2 = b + 98;
int i3 = 3 - (b2 * 2);
int i4 = i * 4;
byte[] bArr = $$a;
byte[] bArr2 = new byte[1 - i4];
int i5 = 0 - i4;
int i6 = -1;
if (bArr == null) {
i2 = i5 + i3;
i3 = i3;
i6 = -1;
}
while (true) {
int i7 = i6 + 1;
bArr2[i7] = (byte) i2;
int i8 = i3 + 1;
if (i7 == i5) {
objArr[0] = new String(bArr2, 0);
return;
} else {
i2 += bArr[i8];
i3 = i8;
i6 = i7;
}
}
}
public static void writeStringMapToJson(StringBuilder sb, HashMap<String, String> hashMap) {
Object obj;
int i = 2 % 2;
int i2 = a + 41;
e = i2 % 128;
int i3 = i2 % 2;
sb.append(UrlTreeKt.componentParamPrefix);
boolean z = true;
for (String str : hashMap.keySet()) {
if (!z) {
sb.append(",");
}
String str2 = hashMap.get(str);
sb.append("\"");
sb.append(str);
sb.append("\":");
if (str2 == null) {
int i4 = e + 15;
a = i4 % 128;
if (i4 % 2 == 0) {
Object[] objArr = new Object[1];
b((char) (15180 >>> (KeyEvent.getMaxKeyCode() >> 111)), TextUtils.indexOf((CharSequence) "", (char) 5, 0, 0), 5 << (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)), objArr);
obj = objArr[0];
} else {
Object[] objArr2 = new Object[1];
b((char) (1314 - (KeyEvent.getMaxKeyCode() >> 16)), TextUtils.indexOf((CharSequence) "", '0', 0, 0) + 1, (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) + 3, objArr2);
obj = objArr2[0];
}
sb.append(((String) obj).intern());
} else {
sb.append("\"");
sb.append(str2);
sb.append("\"");
}
z = false;
}
sb.append(UrlTreeKt.componentParamSuffix);
int i5 = a + 59;
e = i5 % 128;
if (i5 % 2 != 0) {
throw null;
}
}
private static void b(char c2, int i, int i2, Object[] objArr) {
int i3 = 2 % 2;
dQY dqy = new dQY();
long[] jArr = new long[i2];
dqy.a = 0;
int i4 = $10 + 23;
$11 = i4 % 128;
int i5 = i4 % 2;
while (dqy.a < i2) {
int i6 = $11 + 21;
$10 = i6 % 128;
if (i6 % 2 != 0) {
int i7 = dqy.a;
try {
Object[] objArr2 = {Integer.valueOf(d[i >> dqy.a])};
Object obj = xzZ.y.get(1095064095);
if (obj == null) {
Class cls = (Class) xzZ.c(TextUtils.lastIndexOf("", '0', 0) + 309, 5 - (ViewConfiguration.getLongPressTimeout() >> 16), (char) (TextUtils.getOffsetBefore("", 0) + 32797));
byte b = (byte) 0;
byte b2 = b;
Object[] objArr3 = new Object[1];
f(b, b2, b2, objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(1095064095, obj);
}
Object[] objArr4 = {Long.valueOf(((Long) ((Method) obj).invoke(null, objArr2)).longValue()), Long.valueOf(dqy.a), Long.valueOf(c), Integer.valueOf(c2)};
Object obj2 = xzZ.y.get(-548438098);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c((ViewConfiguration.getMaximumFlingVelocity() >> 16) + 412, (AudioTrack.getMinVolume() > BitmapDescriptorFactory.HUE_RED ? 1 : (AudioTrack.getMinVolume() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 5, (char) View.resolveSizeAndState(0, 0, 0));
byte b3 = (byte) 1;
byte b4 = (byte) (b3 - 1);
Object[] objArr5 = new Object[1];
f(b3, b4, b4, objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Long.TYPE, Long.TYPE, Long.TYPE, Integer.TYPE);
xzZ.y.put(-548438098, obj2);
}
jArr[i7] = ((Long) ((Method) obj2).invoke(null, objArr4)).longValue();
Object[] objArr6 = {dqy, dqy};
Object obj3 = xzZ.y.get(1071125919);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(406 - TextUtils.lastIndexOf("", '0', 0, 0), 5 - (ViewConfiguration.getWindowTouchSlop() >> 8), (char) (TextUtils.getOffsetAfter("", 0) + 29234));
byte b5 = (byte) 0;
Object[] objArr7 = new Object[1];
f((byte) 8, b5, b5, objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(1071125919, obj3);
}
((Method) obj3).invoke(null, objArr6);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
} else {
int i8 = dqy.a;
Object[] objArr8 = {Integer.valueOf(d[i + dqy.a])};
Object obj4 = xzZ.y.get(1095064095);
if (obj4 == null) {
Class cls4 = (Class) xzZ.c((ViewConfiguration.getTapTimeout() >> 16) + 308, 6 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)), (char) (32797 - Color.red(0)));
byte b6 = (byte) 0;
byte b7 = b6;
Object[] objArr9 = new Object[1];
f(b6, b7, b7, objArr9);
obj4 = cls4.getMethod((String) objArr9[0], Integer.TYPE);
xzZ.y.put(1095064095, obj4);
}
Object[] objArr10 = {Long.valueOf(((Long) ((Method) obj4).invoke(null, objArr8)).longValue()), Long.valueOf(dqy.a), Long.valueOf(c), Integer.valueOf(c2)};
Object obj5 = xzZ.y.get(-548438098);
if (obj5 == null) {
Class cls5 = (Class) xzZ.c((ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) + 411, (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)) + 4, (char) Color.alpha(0));
byte b8 = (byte) 1;
byte b9 = (byte) (b8 - 1);
Object[] objArr11 = new Object[1];
f(b8, b9, b9, objArr11);
obj5 = cls5.getMethod((String) objArr11[0], Long.TYPE, Long.TYPE, Long.TYPE, Integer.TYPE);
xzZ.y.put(-548438098, obj5);
}
jArr[i8] = ((Long) ((Method) obj5).invoke(null, objArr10)).longValue();
Object[] objArr12 = {dqy, dqy};
Object obj6 = xzZ.y.get(1071125919);
if (obj6 == null) {
Class cls6 = (Class) xzZ.c(View.resolveSizeAndState(0, 0, 0) + 407, (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) + 4, (char) (29234 - View.resolveSize(0, 0)));
byte b10 = (byte) 0;
Object[] objArr13 = new Object[1];
f((byte) 8, b10, b10, objArr13);
obj6 = cls6.getMethod((String) objArr13[0], Object.class, Object.class);
xzZ.y.put(1071125919, obj6);
}
((Method) obj6).invoke(null, objArr12);
}
}
char[] cArr = new char[i2];
dqy.a = 0;
while (dqy.a < i2) {
cArr[dqy.a] = (char) jArr[dqy.a];
try {
Object[] objArr14 = {dqy, dqy};
Object obj7 = xzZ.y.get(1071125919);
if (obj7 == null) {
Class cls7 = (Class) xzZ.c((-16776809) - Color.rgb(0, 0, 0), 5 - KeyEvent.getDeadChar(0, 0), (char) (TextUtils.getTrimmedLength("") + 29234));
byte b11 = (byte) 0;
Object[] objArr15 = new Object[1];
f((byte) 8, b11, b11, objArr15);
obj7 = cls7.getMethod((String) objArr15[0], Object.class, Object.class);
xzZ.y.put(1071125919, obj7);
}
((Method) obj7).invoke(null, objArr14);
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
objArr[0] = new String(cArr);
}
}