- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
126 lines
4.3 KiB
Java
126 lines
4.3 KiB
Java
package com.ironsource.adqualitysdk.sdk.i;
|
||
|
||
import org.json.JSONObject;
|
||
|
||
/* loaded from: classes4.dex */
|
||
public final class cp {
|
||
|
||
/* renamed from: ﻛ, reason: contains not printable characters */
|
||
private static int f1412 = 1;
|
||
|
||
/* renamed from: ヌ, reason: contains not printable characters */
|
||
private static int f1413;
|
||
|
||
/* renamed from: メ, reason: contains not printable characters */
|
||
private static char[] f1414 = {'E', 137, 134, 'm', 'X', 191, 209, 212};
|
||
|
||
/* renamed from: k, reason: contains not printable characters */
|
||
public static void m2308(String str, String str2) {
|
||
StringBuilder sb = new StringBuilder();
|
||
sb.append(m2307("\u0000\u0001\u0000\u0000", false, new int[]{0, 4, 55, 0}).intern());
|
||
sb.append(str);
|
||
l.m3435(sb.toString(), str2);
|
||
int i = f1412 + 63;
|
||
f1413 = i % 128;
|
||
if (i % 2 != 0) {
|
||
int i2 = 86 / 0;
|
||
}
|
||
}
|
||
|
||
/* renamed from: ヌ, reason: contains not printable characters */
|
||
public static void m2309(String str, String str2, Throwable th) {
|
||
int i = f1413 + 89;
|
||
f1412 = i % 128;
|
||
int i2 = i % 2;
|
||
m2310(str, str2, th);
|
||
int i3 = f1413 + 69;
|
||
f1412 = i3 % 128;
|
||
int i4 = i3 % 2;
|
||
}
|
||
|
||
/* renamed from: メ, reason: contains not printable characters */
|
||
private static void m2310(String str, String str2, Throwable th) {
|
||
StringBuilder sb = new StringBuilder();
|
||
sb.append(m2307("\u0001\u0001\u0000\u0001", true, new int[]{4, 4, 130, 0}).intern());
|
||
sb.append(str);
|
||
jw.m3318(sb.toString(), str2, Integer.toHexString(str2.hashCode()), th, (JSONObject) null, false);
|
||
int i = f1413 + 117;
|
||
f1412 = i % 128;
|
||
int i2 = i % 2;
|
||
}
|
||
|
||
/* renamed from: k, reason: contains not printable characters */
|
||
private static String m2307(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(f1414, i, cArr, 0, i2);
|
||
if (bArr2 != null) {
|
||
char[] cArr2 = new char[i2];
|
||
g.f2032 = 0;
|
||
char c = 0;
|
||
while (true) {
|
||
int i5 = g.f2032;
|
||
if (i5 >= i2) {
|
||
break;
|
||
}
|
||
if (bArr2[i5] == 1) {
|
||
cArr2[i5] = (char) (((cArr[i5] << 1) + 1) - c);
|
||
} else {
|
||
cArr2[i5] = (char) ((cArr[i5] << 1) - c);
|
||
}
|
||
c = 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;
|
||
}
|
||
}
|