- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
121 lines
4.5 KiB
Java
121 lines
4.5 KiB
Java
package com.ironsource.adqualitysdk.sdk.i;
|
||
|
||
import android.media.AudioTrack;
|
||
import android.os.SystemClock;
|
||
import android.view.KeyEvent;
|
||
import java.util.List;
|
||
import org.json.JSONObject;
|
||
|
||
/* loaded from: classes4.dex */
|
||
public final class cm extends da {
|
||
|
||
/* renamed from: ﻛ, reason: contains not printable characters */
|
||
private static int f1403 = 174;
|
||
|
||
/* renamed from: k, reason: contains not printable characters */
|
||
private static int f1404 = 0;
|
||
|
||
/* renamed from: メ, reason: contains not printable characters */
|
||
private static int f1405 = 1;
|
||
|
||
/* renamed from: ﻐ, reason: contains not printable characters */
|
||
public static Object m2270(ci ciVar, List<Object> list) {
|
||
boolean z;
|
||
JSONObject jSONObject;
|
||
boolean z2 = false;
|
||
String str = (String) da.m2402(list, 0, String.class);
|
||
StringBuilder sb = new StringBuilder();
|
||
sb.append(ciVar.m2175());
|
||
sb.append(m2271(true, "\u0000", 233 - (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)), 1 - (AudioTrack.getMinVolume() > 0.0f ? 1 : (AudioTrack.getMinVolume() == 0.0f ? 0 : -1)), 1 - KeyEvent.keyCodeFromString("")).intern());
|
||
sb.append(Integer.toHexString(str.hashCode()));
|
||
String obj = sb.toString();
|
||
Throwable th = (Throwable) da.m2402(list, 1, Throwable.class);
|
||
if (list.size() > 2) {
|
||
if (da.m2405(list, 2, JSONObject.class)) {
|
||
int i = f1404 + 101;
|
||
f1405 = i % 128;
|
||
int i2 = i % 2;
|
||
JSONObject jSONObject2 = (JSONObject) da.m2402(list, 2, JSONObject.class);
|
||
if (list.size() > 3) {
|
||
int i3 = f1405 + 59;
|
||
f1404 = i3 % 128;
|
||
if (i3 % 2 == 0 ? !(!da.m2405(list, 3, Boolean.class)) : da.m2405(list, 2, Boolean.class)) {
|
||
z2 = ((Boolean) da.m2402(list, 3, Boolean.class)).booleanValue();
|
||
}
|
||
}
|
||
z = z2;
|
||
jSONObject = jSONObject2;
|
||
} else {
|
||
if (da.m2405(list, 2, Boolean.class)) {
|
||
int i4 = f1405 + 85;
|
||
f1404 = i4 % 128;
|
||
int i5 = i4 % 2;
|
||
z2 = ((Boolean) da.m2402(list, 2, Boolean.class)).booleanValue();
|
||
}
|
||
z = z2;
|
||
jSONObject = null;
|
||
}
|
||
jw.m3318(ciVar.m2175(), str, obj, th, jSONObject, z);
|
||
int i6 = f1404 + 51;
|
||
f1405 = i6 % 128;
|
||
int i7 = i6 % 2;
|
||
} else {
|
||
jw.m3318(ciVar.m2175(), str, obj, th, (JSONObject) null, false);
|
||
}
|
||
return null;
|
||
}
|
||
|
||
/* renamed from: ﻛ, reason: contains not printable characters */
|
||
private static String m2271(boolean z, String str, int i, int i2, int i3) {
|
||
String str2;
|
||
char[] cArr = str;
|
||
if (str != null) {
|
||
cArr = str.toCharArray();
|
||
}
|
||
char[] cArr2 = cArr;
|
||
synchronized (a.f57) {
|
||
try {
|
||
char[] cArr3 = new char[i2];
|
||
a.f56 = 0;
|
||
while (true) {
|
||
int i4 = a.f56;
|
||
if (i4 >= i2) {
|
||
break;
|
||
}
|
||
a.f54 = cArr2[i4];
|
||
cArr3[a.f56] = (char) (a.f54 + i);
|
||
int i5 = a.f56;
|
||
cArr3[i5] = (char) (cArr3[i5] - f1403);
|
||
a.f56 = i5 + 1;
|
||
}
|
||
if (i3 > 0) {
|
||
a.f55 = i3;
|
||
char[] cArr4 = new char[i2];
|
||
System.arraycopy(cArr3, 0, cArr4, 0, i2);
|
||
int i6 = a.f55;
|
||
System.arraycopy(cArr4, 0, cArr3, i2 - i6, i6);
|
||
int i7 = a.f55;
|
||
System.arraycopy(cArr4, i7, cArr3, 0, i2 - i7);
|
||
}
|
||
if (z) {
|
||
char[] cArr5 = new char[i2];
|
||
a.f56 = 0;
|
||
while (true) {
|
||
int i8 = a.f56;
|
||
if (i8 >= i2) {
|
||
break;
|
||
}
|
||
cArr5[i8] = cArr3[(i2 - i8) - 1];
|
||
a.f56 = i8 + 1;
|
||
}
|
||
cArr3 = cArr5;
|
||
}
|
||
str2 = new String(cArr3);
|
||
} catch (Throwable th) {
|
||
throw th;
|
||
}
|
||
}
|
||
return str2;
|
||
}
|
||
}
|