- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
356 lines
12 KiB
Java
356 lines
12 KiB
Java
package com.ironsource.adqualitysdk.sdk.i;
|
||
|
||
import android.text.TextUtils;
|
||
import com.vungle.ads.internal.signals.SignalKey;
|
||
import java.util.ArrayList;
|
||
import java.util.Arrays;
|
||
import java.util.List;
|
||
import org.json.JSONObject;
|
||
|
||
/* loaded from: classes4.dex */
|
||
public final class av {
|
||
|
||
/* renamed from: ﻐ, reason: contains not printable characters */
|
||
private static int f517 = 0;
|
||
|
||
/* renamed from: k, reason: contains not printable characters */
|
||
private static char[] f518 = {'\\', 176, 174, 184, '7', 'r', '1', 'k', 'l', 'n', 'l', '0', 'a', 'h', 'r', 'm', 'n', 222, 227, 232, 238, 22, '3', 'h', 'g', 'j', 'n', 'Y', 'T', 'h', 'g', 'a', 'j', 'n', 'V', '[', 'p', 'q', 'k', 'd', 'i', 'n', 'n', 'Y', 'C', 138, 137, 131, 140, 144, 'x', 'v', 138, 146, 148, 141, 143, 'k', 'i', 141, 'f', 'k', 146, 146, 148, '}'};
|
||
|
||
/* renamed from: ヌ, reason: contains not printable characters */
|
||
private static int f519 = 1;
|
||
|
||
/* renamed from: ﻛ, reason: contains not printable characters */
|
||
private List<String> f520;
|
||
|
||
/* renamed from: メ, reason: contains not printable characters */
|
||
private c f521;
|
||
|
||
public enum c {
|
||
f529,
|
||
f533,
|
||
f530,
|
||
f531;
|
||
|
||
|
||
/* renamed from: ﮌ, reason: contains not printable characters */
|
||
private static int f523 = 1;
|
||
|
||
/* renamed from: ﮐ, reason: contains not printable characters */
|
||
private static int f524;
|
||
|
||
/* renamed from: ﱟ, reason: contains not printable characters */
|
||
private static boolean f525;
|
||
|
||
/* renamed from: ﱡ, reason: contains not printable characters */
|
||
private static char[] f526;
|
||
|
||
/* renamed from: ﺙ, reason: contains not printable characters */
|
||
private static int f527;
|
||
|
||
/* renamed from: ﻏ, reason: contains not printable characters */
|
||
private static boolean f528;
|
||
|
||
/* renamed from: メ, reason: contains not printable characters */
|
||
public static void m1264() {
|
||
f525 = true;
|
||
f528 = true;
|
||
f527 = 233;
|
||
f526 = new char[]{298, 309, 299, 312, 319, 302, 320, 321, 300, 317};
|
||
}
|
||
|
||
public static c valueOf(String str) {
|
||
int i = f523 + SignalKey.EVENT_ID;
|
||
f524 = i % 128;
|
||
int i2 = i % 2;
|
||
c cVar = (c) Enum.valueOf(c.class, str);
|
||
int i3 = f524 + 19;
|
||
f523 = i3 % 128;
|
||
int i4 = i3 % 2;
|
||
return cVar;
|
||
}
|
||
|
||
/* renamed from: values, reason: to resolve conflict with enum method */
|
||
public static c[] valuesCustom() {
|
||
c[] cVarArr;
|
||
int i = f523 + 37;
|
||
f524 = i % 128;
|
||
if (i % 2 != 0) {
|
||
cVarArr = (c[]) values().clone();
|
||
int i2 = 30 / 0;
|
||
} else {
|
||
cVarArr = (c[]) values().clone();
|
||
}
|
||
int i3 = f523 + 57;
|
||
f524 = i3 % 128;
|
||
if (i3 % 2 == 0) {
|
||
return cVarArr;
|
||
}
|
||
throw null;
|
||
}
|
||
|
||
static {
|
||
m1264();
|
||
int i = f523 + 87;
|
||
f524 = i % 128;
|
||
int i2 = i % 2;
|
||
}
|
||
|
||
/* renamed from: ﻛ, reason: contains not printable characters */
|
||
private static String m1263(String str, int[] iArr, int i, String str2) {
|
||
byte[] bArr = str2;
|
||
if (str2 != null) {
|
||
bArr = str2.getBytes("ISO-8859-1");
|
||
}
|
||
byte[] bArr2 = bArr;
|
||
char[] cArr = str;
|
||
if (str != null) {
|
||
cArr = str.toCharArray();
|
||
}
|
||
char[] cArr2 = cArr;
|
||
synchronized (o.f2842) {
|
||
try {
|
||
char[] cArr3 = f526;
|
||
int i2 = f527;
|
||
if (f528) {
|
||
int length = bArr2.length;
|
||
o.f2841 = length;
|
||
char[] cArr4 = new char[length];
|
||
o.f2840 = 0;
|
||
while (o.f2840 < o.f2841) {
|
||
int i3 = o.f2840;
|
||
int i4 = o.f2841 - 1;
|
||
int i5 = o.f2840;
|
||
cArr4[i3] = (char) (cArr3[bArr2[i4 - i5] + i] - i2);
|
||
o.f2840 = i5 + 1;
|
||
}
|
||
return new String(cArr4);
|
||
}
|
||
if (f525) {
|
||
int length2 = cArr2.length;
|
||
o.f2841 = length2;
|
||
char[] cArr5 = new char[length2];
|
||
o.f2840 = 0;
|
||
while (o.f2840 < o.f2841) {
|
||
int i6 = o.f2840;
|
||
int i7 = o.f2841 - 1;
|
||
int i8 = o.f2840;
|
||
cArr5[i6] = (char) (cArr3[cArr2[i7 - i8] - i] - i2);
|
||
o.f2840 = i8 + 1;
|
||
}
|
||
return new String(cArr5);
|
||
}
|
||
int length3 = iArr.length;
|
||
o.f2841 = length3;
|
||
char[] cArr6 = new char[length3];
|
||
o.f2840 = 0;
|
||
while (o.f2840 < o.f2841) {
|
||
int i9 = o.f2840;
|
||
int i10 = o.f2841 - 1;
|
||
int i11 = o.f2840;
|
||
cArr6[i9] = (char) (cArr3[iArr[i10 - i11] - i] - i2);
|
||
o.f2840 = i11 + 1;
|
||
}
|
||
return new String(cArr6);
|
||
} catch (Throwable th) {
|
||
throw th;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
public av(JSONObject jSONObject) {
|
||
this.f521 = m1261(jSONObject.optString(m1260("\u0000\u0001\u0001\u0001", true, new int[]{0, 4, 68, 1}).intern()));
|
||
this.f520 = m1259(jSONObject.optString(m1260("\u0000\u0000", true, new int[]{4, 2, 0, 0}).intern()));
|
||
}
|
||
|
||
/* renamed from: ヌ, reason: contains not printable characters */
|
||
private static c m1261(String str) {
|
||
char c2;
|
||
int i = f519 + 3;
|
||
f517 = i % 128;
|
||
int i2 = i % 2;
|
||
int hashCode = str.hashCode();
|
||
if (hashCode == 92611485) {
|
||
if (str.equals(m1260("\u0001\u0001\u0001\u0001\u0001", false, new int[]{11, 5, 0, 0}).intern())) {
|
||
int i3 = f517 + 73;
|
||
f519 = i3 % 128;
|
||
int i4 = i3 % 2;
|
||
c2 = 1;
|
||
}
|
||
c2 = 65535;
|
||
} else if (hashCode != 93621297) {
|
||
if (hashCode == 96946943 && str.equals(m1260("\u0001\u0001\u0001\u0001\u0001", false, new int[]{6, 5, 0, 2}).intern())) {
|
||
c2 = 0;
|
||
}
|
||
c2 = 65535;
|
||
} else {
|
||
if (str.equals(m1260("\u0001\u0001\u0001\u0001\u0000", false, new int[]{16, 5, 123, 5}).intern())) {
|
||
c2 = 2;
|
||
}
|
||
c2 = 65535;
|
||
}
|
||
if (c2 == 0) {
|
||
return c.f531;
|
||
}
|
||
if (c2 == 1) {
|
||
return c.f533;
|
||
}
|
||
if (c2 != 2) {
|
||
c cVar = c.f529;
|
||
int i5 = f519 + 115;
|
||
f517 = i5 % 128;
|
||
int i6 = i5 % 2;
|
||
return cVar;
|
||
}
|
||
c cVar2 = c.f530;
|
||
int i7 = f519 + 7;
|
||
f517 = i7 % 128;
|
||
if (i7 % 2 != 0) {
|
||
int i8 = 53 / 0;
|
||
}
|
||
return cVar2;
|
||
}
|
||
|
||
/* renamed from: ﻐ, reason: contains not printable characters */
|
||
private static List<String> m1259(String str) {
|
||
ArrayList arrayList = new ArrayList();
|
||
if (!(!TextUtils.isEmpty(str))) {
|
||
return arrayList;
|
||
}
|
||
int i = f519 + 61;
|
||
f517 = i % 128;
|
||
int i2 = i % 2;
|
||
List<String> asList = Arrays.asList(str.split(m1260("\u0000", true, new int[]{21, 1, 0, 1}).intern()));
|
||
int i3 = f519 + 33;
|
||
f517 = i3 % 128;
|
||
int i4 = i3 % 2;
|
||
return asList;
|
||
}
|
||
|
||
/* renamed from: com.ironsource.adqualitysdk.sdk.i.av$3, reason: invalid class name */
|
||
public static /* synthetic */ class AnonymousClass3 {
|
||
|
||
/* renamed from: k, reason: contains not printable characters */
|
||
static final /* synthetic */ int[] f522;
|
||
|
||
static {
|
||
int[] iArr = new int[c.valuesCustom().length];
|
||
f522 = iArr;
|
||
try {
|
||
iArr[c.f529.ordinal()] = 1;
|
||
} catch (NoSuchFieldError unused) {
|
||
}
|
||
try {
|
||
f522[c.f531.ordinal()] = 2;
|
||
} catch (NoSuchFieldError unused2) {
|
||
}
|
||
try {
|
||
f522[c.f530.ordinal()] = 3;
|
||
} catch (NoSuchFieldError unused3) {
|
||
}
|
||
try {
|
||
f522[c.f533.ordinal()] = 4;
|
||
} catch (NoSuchFieldError unused4) {
|
||
}
|
||
}
|
||
}
|
||
|
||
/* JADX WARN: Code restructure failed: missing block: B:11:0x0023, code lost:
|
||
|
||
if (r0 != 4) goto L49;
|
||
*/
|
||
/* JADX WARN: Code restructure failed: missing block: B:32:0x006e, code lost:
|
||
|
||
if (com.ironsource.adqualitysdk.sdk.i.kb.m3373(r8, r7.f520.get(0)) < 0) goto L31;
|
||
*/
|
||
/* JADX WARN: Removed duplicated region for block: B:23:0x0048 */
|
||
/* JADX WARN: Removed duplicated region for block: B:36:0x00ad A[RETURN] */
|
||
/* JADX WARN: Removed duplicated region for block: B:37:0x00ae */
|
||
/* renamed from: メ, reason: contains not printable characters */
|
||
/*
|
||
Code decompiled incorrectly, please refer to instructions dump.
|
||
To view partially-correct add '--show-bad-code' argument
|
||
*/
|
||
public final boolean m1262(java.lang.String r8) {
|
||
/*
|
||
Method dump skipped, instructions count: 215
|
||
To view this dump add '--comments-level debug' option
|
||
*/
|
||
throw new UnsupportedOperationException("Method not decompiled: com.ironsource.adqualitysdk.sdk.i.av.m1262(java.lang.String):boolean");
|
||
}
|
||
|
||
/* renamed from: ﻛ, reason: contains not printable characters */
|
||
private static String m1260(String str, boolean z, int[] iArr) {
|
||
String str2;
|
||
byte[] bArr = str;
|
||
if (str != null) {
|
||
bArr = str.getBytes("ISO-8859-1");
|
||
}
|
||
byte[] bArr2 = bArr;
|
||
synchronized (g.f2033) {
|
||
try {
|
||
int i = iArr[0];
|
||
int i2 = iArr[1];
|
||
int i3 = iArr[2];
|
||
int i4 = iArr[3];
|
||
char[] cArr = new char[i2];
|
||
System.arraycopy(f518, i, cArr, 0, i2);
|
||
if (bArr2 != null) {
|
||
char[] cArr2 = new char[i2];
|
||
g.f2032 = 0;
|
||
char c2 = 0;
|
||
while (true) {
|
||
int i5 = g.f2032;
|
||
if (i5 >= i2) {
|
||
break;
|
||
}
|
||
if (bArr2[i5] == 1) {
|
||
cArr2[i5] = (char) (((cArr[i5] << 1) + 1) - c2);
|
||
} else {
|
||
cArr2[i5] = (char) ((cArr[i5] << 1) - c2);
|
||
}
|
||
c2 = cArr2[i5];
|
||
g.f2032 = i5 + 1;
|
||
}
|
||
cArr = cArr2;
|
||
}
|
||
if (i4 > 0) {
|
||
char[] cArr3 = new char[i2];
|
||
System.arraycopy(cArr, 0, cArr3, 0, i2);
|
||
int i6 = i2 - i4;
|
||
System.arraycopy(cArr3, 0, cArr, i6, i4);
|
||
System.arraycopy(cArr3, i4, cArr, 0, i6);
|
||
}
|
||
if (z) {
|
||
char[] cArr4 = new char[i2];
|
||
g.f2032 = 0;
|
||
while (true) {
|
||
int i7 = g.f2032;
|
||
if (i7 >= i2) {
|
||
break;
|
||
}
|
||
cArr4[i7] = cArr[(i2 - i7) - 1];
|
||
g.f2032 = i7 + 1;
|
||
}
|
||
cArr = cArr4;
|
||
}
|
||
if (i3 > 0) {
|
||
g.f2032 = 0;
|
||
while (true) {
|
||
int i8 = g.f2032;
|
||
if (i8 >= i2) {
|
||
break;
|
||
}
|
||
cArr[i8] = (char) (cArr[i8] - iArr[2]);
|
||
g.f2032 = i8 + 1;
|
||
}
|
||
}
|
||
str2 = new String(cArr);
|
||
} catch (Throwable th) {
|
||
throw th;
|
||
}
|
||
}
|
||
return str2;
|
||
}
|
||
}
|