package com.ironsource.adqualitysdk.sdk.i; import android.graphics.Color; import android.graphics.PointF; import android.os.Process; import android.os.SystemClock; import android.text.TextUtils; import android.view.KeyEvent; import android.view.ViewConfiguration; import android.widget.ExpandableListView; import com.ironsource.adqualitysdk.sdk.i.jx; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import org.json.JSONArray; import org.json.JSONObject; /* loaded from: classes4.dex */ public class dp { /* renamed from: ﱡ, reason: contains not printable characters */ private static int f1747 = 1; /* renamed from: ﻏ, reason: contains not printable characters */ private static int f1748; /* renamed from: k, reason: contains not printable characters */ private static char[] f1749 = {34058, 48220, 63366, 11991, 'b', 14634, 29422, 43958, 24522, 26296, 11639, 62511, 47849, 16886, 2145, 53005, 38357, 23697, 25428, 10774, 61652, 46894, 32292, 1249, 52139, 37490, 22842, 8180, 9931, 'M', 14624, 29438, 43943, 58747, 7741, 22462, ' ', 14637, 29419, 43964, 58676, 7735, 22507, 37007, 51780, 845, 15568, 30104, 44888, 59640, ' ', 14632, 29423, 43963, 58748, 7734, 22522, 37059, 51789, 789, 15554, 30098, 44895, 59637, 8611, 23407, 38000, 25447, 23139, 4543, 51439, 34342, 32115, 13500, 62410, 43291, 24665, 24533, 5842, 52238, 35762, 17057, 14398, 63346, 44721, 26104, 9009, 6741, 53643, 35021, 18004}; /* renamed from: メ, reason: contains not printable characters */ private static long f1750 = 885438351616719173L; /* renamed from: ﻐ, reason: contains not printable characters */ private fr f1751; /* renamed from: ﻛ, reason: contains not printable characters */ private String[] f1752; /* renamed from: ヌ, reason: contains not printable characters */ private String f1753; /* renamed from: k, reason: contains not printable characters */ public final String m2626() { int i = f1748; int i2 = i + 87; f1747 = i2 % 128; int i3 = i2 % 2; String str = this.f1753; int i4 = i + 15; f1747 = i4 % 128; int i5 = i4 % 2; return str; } public dp(String str, String str2, JSONObject jSONObject) { this.f1753 = ds.m2637(str2); List m3336 = jx.m3336(jSONObject.optJSONArray(m2625((char) ((ViewConfiguration.getMinimumFlingVelocity() >> 16) + 34155), 5 - (SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)), (PointF.length(0.0f, 0.0f) > 0.0f ? 1 : (PointF.length(0.0f, 0.0f) == 0.0f ? 0 : -1))).intern()), new jx.d() { // from class: com.ironsource.adqualitysdk.sdk.i.dp.3 @Override // com.ironsource.adqualitysdk.sdk.i.jx.d /* renamed from: ヌ */ public final /* synthetic */ String mo1143(JSONArray jSONArray, int i) { return ds.m2637(jSONArray.optString(i)); } }); String[] strArr = new String[m3336.size()]; this.f1752 = strArr; m3336.toArray(strArr); try { this.f1751 = new dl(str, str2).m2602(Cdo.m2623(str, str2, jSONObject.optString(m2625((char) ((Process.getThreadPriority(0) + 20) >> 6), (PointF.length(0.0f, 0.0f) > 0.0f ? 1 : (PointF.length(0.0f, 0.0f) == 0.0f ? 0 : -1)) + 4, (ViewConfiguration.getWindowTouchSlop() >> 8) + 4).intern()))); } catch (Throwable th) { StringBuilder sb = new StringBuilder(); sb.append(m2625((char) ((ViewConfiguration.getFadingEdgeLength() >> 16) + 24463), Color.green(0) + 21, 8 - Color.alpha(0)).intern()); sb.append(this.f1753); cp.m2309(str, sb.toString(), th); } } /* renamed from: ヌ, reason: contains not printable characters */ public final du m2627(dq dqVar, ci ciVar, List list) { dq dqVar2 = new dq(m2624(ciVar, list, Arrays.asList(this.f1752)), dqVar.m2631()); fr frVar = this.f1751; if (frVar == null) { String m2175 = ciVar.m2175(); StringBuilder sb = new StringBuilder(); sb.append(m2625((char) ((ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) - 1), 8 - (ViewConfiguration.getScrollFriction() > 0.0f ? 1 : (ViewConfiguration.getScrollFriction() == 0.0f ? 0 : -1)), 29 - KeyEvent.getDeadChar(0, 0)).intern()); sb.append(this.f1753); sb.append(m2625((char) (1 - (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1))), 14 - TextUtils.indexOf("", "", 0, 0), 35 - TextUtils.indexOf((CharSequence) "", '0', 0, 0)).intern()); cp.m2309(m2175, sb.toString(), null); int i = f1748 + 47; f1747 = i % 128; int i2 = i % 2; return null; } du mo2721 = frVar.mo2721(dqVar2, ciVar); int i3 = f1748 + 83; f1747 = i3 % 128; int i4 = i3 % 2; return mo2721; } /* renamed from: k, reason: contains not printable characters */ private Map m2624(ci ciVar, List list, List list2) { int i = 0; if (list.size() != list2.size()) { String m2175 = ciVar.m2175(); StringBuilder sb = new StringBuilder(); sb.append(this.f1753); sb.append(m2625((char) (TextUtils.indexOf((CharSequence) "", '0') + 1), TextUtils.indexOf((CharSequence) "", '0', 0, 0) + 18, 51 - (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1))).intern()); sb.append(list2.size()); sb.append(m2625((char) ((ViewConfiguration.getScrollBarFadeDuration() >> 16) + 25415), Color.argb(0, 0, 0, 0) + 24, 66 - ExpandableListView.getPackedPositionChild(0L)).intern()); sb.append(list.size()); cp.m2309(m2175, sb.toString(), null); return null; } HashMap hashMap = new HashMap(); int i2 = f1747 + 95; f1748 = i2 % 128; int i3 = i2 % 2; while (i < list.size()) { int i4 = f1747 + 23; f1748 = i4 % 128; if (i4 % 2 != 0) { hashMap.put(list2.get(i), list.get(i)); i += 48; } else { hashMap.put(list2.get(i), list.get(i)); i++; } } return hashMap; } /* renamed from: ヌ, reason: contains not printable characters */ private static String m2625(char c, int i, int i2) { String str; synchronized (d.f1568) { try { char[] cArr = new char[i]; d.f1567 = 0; while (true) { int i3 = d.f1567; if (i3 < i) { cArr[i3] = (char) ((f1749[i2 + i3] ^ (i3 * f1750)) ^ c); d.f1567 = i3 + 1; } else { str = new String(cArr); } } } catch (Throwable th) { throw th; } } return str; } }