263 lines
10 KiB
Java
263 lines
10 KiB
Java
package com.huawei.hms.framework.common.hianalytics;
|
|
|
|
import android.graphics.Color;
|
|
import android.os.Process;
|
|
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 com.pingan.ai.p;
|
|
import java.lang.reflect.Method;
|
|
import java.util.LinkedHashMap;
|
|
import o.Nhs;
|
|
import o.xzZ;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class LinkedHashMapPack {
|
|
private LinkedHashMap<String, String> map = new LinkedHashMap<>();
|
|
private static final byte[] $$a = {90, 40, 10, 105};
|
|
private static final int $$b = 192;
|
|
private static int $10 = 0;
|
|
private static int $11 = 1;
|
|
private static int c = 0;
|
|
private static int e = 1;
|
|
private static long d = 9051040786702654117L;
|
|
private static int a = 452713125;
|
|
private static char b = 42218;
|
|
|
|
/* 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:0x002b). 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(byte r7, short r8, int r9, java.lang.Object[] r10) {
|
|
/*
|
|
byte[] r0 = com.huawei.hms.framework.common.hianalytics.LinkedHashMapPack.$$a
|
|
int r8 = r8 + 114
|
|
int r7 = r7 * 4
|
|
int r7 = 4 - r7
|
|
int r9 = r9 * 2
|
|
int r9 = r9 + 1
|
|
byte[] r1 = new byte[r9]
|
|
r2 = 0
|
|
if (r0 != 0) goto L15
|
|
r8 = r7
|
|
r3 = r9
|
|
r4 = r2
|
|
goto L2b
|
|
L15:
|
|
r3 = r2
|
|
L16:
|
|
int r4 = r3 + 1
|
|
byte r5 = (byte) r8
|
|
r1[r3] = r5
|
|
if (r4 != r9) goto L25
|
|
java.lang.String r7 = new java.lang.String
|
|
r7.<init>(r1, r2)
|
|
r10[r2] = r7
|
|
return
|
|
L25:
|
|
r3 = r0[r7]
|
|
r6 = r8
|
|
r8 = r7
|
|
r7 = r3
|
|
r3 = r6
|
|
L2b:
|
|
int r7 = -r7
|
|
int r7 = r7 + r3
|
|
int r8 = r8 + 1
|
|
r3 = r4
|
|
r6 = r8
|
|
r8 = r7
|
|
r7 = r6
|
|
goto L16
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.huawei.hms.framework.common.hianalytics.LinkedHashMapPack.g(byte, short, int, java.lang.Object[]):void");
|
|
}
|
|
|
|
public LinkedHashMapPack put(String str, String str2) {
|
|
int i = 2 % 2;
|
|
int i2 = c + 113;
|
|
int i3 = i2 % 128;
|
|
e = i3;
|
|
int i4 = i2 % 2;
|
|
if (str != null) {
|
|
int i5 = i3 + 99;
|
|
c = i5 % 128;
|
|
if (i5 % 2 != 0) {
|
|
throw null;
|
|
}
|
|
if (str2 != null) {
|
|
this.map.put(str, str2);
|
|
int i6 = c + 19;
|
|
e = i6 % 128;
|
|
int i7 = i6 % 2;
|
|
}
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public LinkedHashMapPack putIfNotDefault(String str, long j, long j2) {
|
|
int i = 2 % 2;
|
|
int i2 = c + 115;
|
|
e = i2 % 128;
|
|
int i3 = i2 % 2;
|
|
if (j == j2) {
|
|
return this;
|
|
}
|
|
LinkedHashMapPack put = put(str, j);
|
|
int i4 = c + 53;
|
|
e = i4 % 128;
|
|
int i5 = i4 % 2;
|
|
return put;
|
|
}
|
|
|
|
public LinkedHashMapPack put(String str, boolean z) {
|
|
int i = 2 % 2;
|
|
if (str != null) {
|
|
int i2 = c + 91;
|
|
e = i2 % 128;
|
|
if (i2 % 2 == 0) {
|
|
throw null;
|
|
}
|
|
if (z) {
|
|
LinkedHashMap<String, String> linkedHashMap = this.map;
|
|
Object[] objArr = new Object[1];
|
|
f((char) (Color.alpha(0) + 49423), (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) + 2133224739, new char[]{9271, 9837, 3967, 49345}, new char[]{25818}, new char[]{0, 0, 0, 0}, objArr);
|
|
linkedHashMap.put(str, ((String) objArr[0]).intern());
|
|
} else {
|
|
LinkedHashMap<String, String> linkedHashMap2 = this.map;
|
|
Object[] objArr2 = new Object[1];
|
|
f((char) ((ViewConfiguration.getTapTimeout() >> 16) + 24241), (-1316486602) + (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), new char[]{14252, 34818, 45489, 18270}, new char[]{20856}, new char[]{0, 0, 0, 0}, objArr2);
|
|
linkedHashMap2.put(str, ((String) objArr2[0]).intern());
|
|
int i3 = e + 91;
|
|
c = i3 % 128;
|
|
int i4 = i3 % 2;
|
|
}
|
|
}
|
|
int i5 = c + 21;
|
|
e = i5 % 128;
|
|
if (i5 % 2 == 0) {
|
|
int i6 = 89 / 0;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
public LinkedHashMapPack put(String str, long j) {
|
|
int i = 2 % 2;
|
|
int i2 = e + 17;
|
|
int i3 = i2 % 128;
|
|
c = i3;
|
|
int i4 = i2 % 2;
|
|
if (str != null) {
|
|
int i5 = i3 + 83;
|
|
e = i5 % 128;
|
|
int i6 = i5 % 2;
|
|
this.map.put(str, "".concat(String.valueOf(j)));
|
|
}
|
|
return this;
|
|
}
|
|
|
|
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 + 45;
|
|
$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 - Color.argb(0, 0, 0, 0), 5 - View.getDefaultSize(0, 0), (char) View.combineMeasuredStates(0, 0))).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.getKeyRepeatDelay() >> 16), View.resolveSize(0, 0) + 5, (char) (52127 - (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1))));
|
|
byte b2 = (byte) 0;
|
|
byte b3 = (byte) (b2 + 1);
|
|
Object[] objArr4 = new Object[1];
|
|
g(b2, b3, (byte) (b3 - 1), 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(748 - KeyEvent.getDeadChar(0, 0), 4 - (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)), (char) (ViewConfiguration.getKeyRepeatDelay() >> 16))).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(402 - (ViewConfiguration.getScrollDefaultDelay() >> 16), 5 - (ViewConfiguration.getDoubleTapTimeout() >> 16), (char) ((ViewConfiguration.getKeyRepeatTimeout() >> 16) + 21608));
|
|
byte b4 = (byte) 0;
|
|
byte b5 = b4;
|
|
Object[] objArr7 = new Object[1];
|
|
g(b4, b5, b5, 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]) ^ (d ^ 9051040786702654117L)) ^ ((int) (a ^ 9051040786702654117L))) ^ ((char) (b ^ 9051040786702654117L)));
|
|
nhs.a++;
|
|
i2 = 2;
|
|
} catch (Throwable th) {
|
|
Throwable cause = th.getCause();
|
|
if (cause == null) {
|
|
throw th;
|
|
}
|
|
throw cause;
|
|
}
|
|
}
|
|
String str = new String(cArr6);
|
|
int i6 = $11 + 17;
|
|
$10 = i6 % 128;
|
|
if (i6 % 2 == 0) {
|
|
objArr[0] = str;
|
|
} else {
|
|
int i7 = 14 / 0;
|
|
objArr[0] = str;
|
|
}
|
|
}
|
|
|
|
public LinkedHashMap<String, String> getAll() {
|
|
LinkedHashMap<String, String> linkedHashMap;
|
|
int i = 2 % 2;
|
|
int i2 = e + 79;
|
|
int i3 = i2 % 128;
|
|
c = i3;
|
|
if (i2 % 2 != 0) {
|
|
linkedHashMap = this.map;
|
|
int i4 = 77 / 0;
|
|
} else {
|
|
linkedHashMap = this.map;
|
|
}
|
|
int i5 = i3 + 39;
|
|
e = i5 % 128;
|
|
int i6 = i5 % 2;
|
|
return linkedHashMap;
|
|
}
|
|
}
|