package com.ironsource.adqualitysdk.sdk.i; import android.graphics.Color; import android.media.AudioTrack; import android.os.SystemClock; import android.text.TextUtils; import android.util.TypedValue; import android.view.KeyEvent; import android.view.View; import android.view.ViewConfiguration; import android.widget.ExpandableListView; import java.util.ArrayList; import java.util.Arrays; import java.util.Iterator; import java.util.List; import org.json.JSONException; import org.json.JSONObject; /* loaded from: classes4.dex */ public final class ap { /* renamed from: ﭴ, reason: contains not printable characters */ private static int f342 = 1; /* renamed from: ﮌ, reason: contains not printable characters */ private static int f343 = 0; /* renamed from: ﮐ, reason: contains not printable characters */ private static char f344 = 43344; /* renamed from: ﱟ, reason: contains not printable characters */ private static char f345 = 63712; /* renamed from: ﱡ, reason: contains not printable characters */ private static char f346 = 11220; /* renamed from: ﺙ, reason: contains not printable characters */ private static char f347 = 34664; /* renamed from: ﻏ, reason: contains not printable characters */ private static int[] f348 = {-844513814, -313718617, 23065764, 614345291, 364712638, -1741319442, -727558737, 1477788180, 1386387079, 1759751369, 3464670, -2110795327, -2107235644, -652814712, 224721279, -1018681781, 1193277100, -845170400}; /* renamed from: ﻐ, reason: contains not printable characters */ private JSONObject f349; /* renamed from: ﻛ, reason: contains not printable characters */ private final List f350; /* renamed from: k, reason: contains not printable characters */ private JSONObject f351; /* renamed from: ヌ, reason: contains not printable characters */ private final List f352 = Arrays.asList(m1146("뇠엟鸃裫ﴸ穥\uf497턙ϯ᪕鶙ᜯ\ued8a빾緑剈爤뜓戢\u0c76", 19 - TextUtils.lastIndexOf("", '0')).intern(), m1146("ﴸ穥\uf497턙ϯ᪕鶙ᜯ\ued8a빾㖮擱쟡䑆汲\uf5f6", (ViewConfiguration.getEdgeSlop() >> 16) + 15).intern(), ""); /* renamed from: メ, reason: contains not printable characters */ private final List f353 = new ArrayList(); /* renamed from: k, reason: contains not printable characters */ public static /* synthetic */ void m1144(ap apVar, String str) { int i = f342 + 21; f343 = i % 128; int i2 = i % 2; apVar.m1145(str); int i3 = f343 + 31; f342 = i3 % 128; int i4 = i3 % 2; } public ap() { List asList = Arrays.asList(m1146("뇠엟鸃裫\ue803ԭ儆䩍圌䞳띰戞ᚯ䀻꒥氐줍鳩龄뙊䙆\u13f7瀛\ue8b3樫꛶㮥\ue0afᭇረ\uefc1柳欛ﱉ쟡䑆郖唪", KeyEvent.normalizeMetaState(0) + 37).intern(), m1146("뇠엟鸃裫\ue803ԭ儆䩍圌䞳橤곉ဪ\uf884띰戞ᚯ䀻꒥氐줍鳩龄뙊䙆\u13f7瀛\ue8b3樫꛶㮥\ue0afᭇረ\uefc1柳欛ﱉ쟡䑆郖唪", 41 - TextUtils.getCapsMode("", 0, 0)).intern(), m1147(new int[]{-576630018, -195477706, -1262167508, 1204285044, 808718001, -880348144, 1898290234, -2140879621, 1214472512, -2038053182, -1468849349, 2095530877, -1900799776, 1258547947, 1952771497, 1821184154, 618924234, 139815414, -910235492, -1275363730, 723779274, 898768931}, 44 - View.getDefaultSize(0, 0)).intern(), m1146("㝚䟡⳧\uec40\uf71b鴻䖜堫퍘\uf295ꨶ泽꿭ᅬ拎\ud916\uf6c3怘쟡䑆潉ꉏ⽌燠濛蟒䙆\u13f7꿭ᅬ拎\ud916\uf6c3怘쟡䑆潉ꉏ\uebed璒\uefc1柳欛ﱉ쟡䑆郖唪", 47 - TextUtils.indexOf("", "", 0, 0)).intern()); this.f350 = asList; m1146("\ue1cf坩蒥⦾", 3 - KeyEvent.normalizeMetaState(0)).intern(); m1146("\ue1cf坩ﱟ釧", 4 - (ViewConfiguration.getDoubleTapTimeout() >> 16)).intern(); m1147(new int[]{-1291279382, 1879286855}, 2 - TextUtils.lastIndexOf("", '0', 0, 0)).intern(); m1146("涝\uf519ﱟ釧", 4 - TextUtils.getCapsMode("", 0, 0)).intern(); m1147(new int[]{-1493264864, -832106849}, (ViewConfiguration.getTapTimeout() >> 16) + 3).intern(); m1147(new int[]{-1566583150, 778600949}, ExpandableListView.getPackedPositionGroup(0L) + 3).intern(); m1147(new int[]{1919248646, -1299252823}, (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) + 3).intern(); this.f349 = new JSONObject(); this.f351 = new JSONObject(); try { Iterator it = asList.iterator(); while (it.hasNext()) { this.f351.put(it.next(), m1146("\uee4aꊭ", (ViewConfiguration.getTouchSlop() >> 8) + 2).intern()); } } catch (JSONException unused) { } } /* renamed from: k, reason: contains not printable characters */ public final void m1155(ix ixVar) { m1145(ixVar.m3102(m1146("ꤺԝ夹랧䃡㯿夹랧༗妁", Color.rgb(0, 0, 0) + 16777225).intern(), m1147(new int[]{-2022485710, 1757774088}, ((byte) KeyEvent.getModifierMetaStateMask()) + 4).intern(), new in() { // from class: com.ironsource.adqualitysdk.sdk.i.ap.5 @Override // com.ironsource.adqualitysdk.sdk.i.in /* renamed from: ﻛ, reason: contains not printable characters */ public final void mo1158(String str) { ap.m1144(ap.this, str); } })); int i = f342 + 35; f343 = i % 128; int i2 = i % 2; } /* renamed from: k, reason: contains not printable characters */ private void m1145(String str) { int i = f342 + 63; f343 = i % 128; int i2 = i % 2; if (TextUtils.isEmpty(str)) { return; } try { this.f349 = new JSONObject(str); int i3 = f343 + 63; f342 = i3 % 128; int i4 = i3 % 2; } catch (JSONException unused) { } } /* renamed from: ﻛ, reason: contains not printable characters */ public final List m1153() { JSONObject jSONObject; String m1146; int i = f343 + 23; f342 = i % 128; if (i % 2 == 0) { jSONObject = this.f349; m1146 = m1146("\ue1cf坩蒥⦾", 4 % (ViewConfiguration.getScrollFriction() > 0.0f ? 1 : (ViewConfiguration.getScrollFriction() == 0.0f ? 0 : -1))); } else { jSONObject = this.f349; m1146 = m1146("\ue1cf坩蒥⦾", (ViewConfiguration.getScrollFriction() > 0.0f ? 1 : (ViewConfiguration.getScrollFriction() == 0.0f ? 0 : -1)) + 2); } List m3331 = jx.m3331(jSONObject, m1146.intern(), this.f352); int i2 = f343 + 63; f342 = i2 % 128; int i3 = i2 % 2; return m3331; } /* renamed from: ヌ, reason: contains not printable characters */ public final int m1156() { JSONObject jSONObject; String intern; int i; int i2 = f342 + 115; f343 = i2 % 128; if (i2 % 2 != 0) { jSONObject = this.f349; intern = m1146("\ue1cf坩ﱟ釧", 2 << (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1))).intern(); i = 32; } else { jSONObject = this.f349; intern = m1146("\ue1cf坩ﱟ釧", (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)) + 3).intern(); i = 7; } return jSONObject.optInt(intern, i); } /* renamed from: k, reason: contains not printable characters */ public final List m1154() { int i = f342 + 125; f343 = i % 128; int i2 = i % 2; List m3331 = jx.m3331(this.f349, m1147(new int[]{-1291279382, 1879286855}, (ViewConfiguration.getMinimumFlingVelocity() >> 16) + 3).intern(), this.f353); int i3 = f343 + 23; f342 = i3 % 128; int i4 = i3 % 2; return m3331; } /* renamed from: ﻐ, reason: contains not printable characters */ public final int m1152() { int i = f343 + 39; f342 = i % 128; int optInt = i % 2 == 0 ? this.f349.optInt(m1146("涝\uf519ﱟ釧", 5 / View.resolveSizeAndState(1, 0, 0)).intern(), 4) : this.f349.optInt(m1146("涝\uf519ﱟ釧", View.resolveSizeAndState(0, 0, 0) + 4).intern(), 2); int i2 = f343 + 61; f342 = i2 % 128; int i3 = i2 % 2; return optInt; } /* renamed from: メ, reason: contains not printable characters */ public final List m1157() { List m3331 = jx.m3331(this.f349, m1147(new int[]{-1493264864, -832106849}, (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)) + 3).intern(), new ArrayList()); int i = f342 + 29; f343 = i % 128; int i2 = i % 2; return m3331; } /* renamed from: ﮐ, reason: contains not printable characters */ public final List m1148() { List m3331 = jx.m3331(this.f349, m1147(new int[]{-1566583150, 778600949}, 3 - (ViewConfiguration.getScrollDefaultDelay() >> 16)).intern(), new ArrayList()); int i = f343 + 65; f342 = i % 128; if (i % 2 != 0) { return m3331; } throw null; } /* renamed from: ﱟ, reason: contains not printable characters */ public final int m1149() { JSONObject jSONObject; String intern; int i; int i2 = f342 + 49; f343 = i2 % 128; if (i2 % 2 != 0) { jSONObject = this.f349; intern = m1147(new int[]{-2093296999, -752882466}, 5 / (ViewConfiguration.getMinimumFlingVelocity() >> 64)).intern(); i = 20615; } else { jSONObject = this.f349; intern = m1147(new int[]{-2093296999, -752882466}, (ViewConfiguration.getMinimumFlingVelocity() >> 16) + 4).intern(); i = 3000; } int optInt = jSONObject.optInt(intern, i); int i3 = f343 + 41; f342 = i3 % 128; if (i3 % 2 == 0) { int i4 = 90 / 0; } return optInt; } /* renamed from: ﱡ, reason: contains not printable characters */ public final String m1150() { int i = f343 + 75; f342 = i % 128; int i2 = i % 2; String optString = this.f349.optString(m1147(new int[]{-1618382816, -1074618972}, 4 - (TypedValue.complexToFraction(0, 0.0f, 0.0f) > 0.0f ? 1 : (TypedValue.complexToFraction(0, 0.0f, 0.0f) == 0.0f ? 0 : -1))).intern(), m1147(new int[]{674028150, 1214353837}, (ViewConfiguration.getScrollDefaultDelay() >> 16) + 3).intern()); int i3 = f343 + 101; f342 = i3 % 128; if (i3 % 2 == 0) { int i4 = 55 / 0; } return optString; } /* renamed from: ﺙ, reason: contains not printable characters */ public final JSONObject m1151() { int i = f343 + 89; f342 = i % 128; int i2 = i % 2; JSONObject optJSONObject = this.f349.optJSONObject(m1147(new int[]{-1154622647, -1265977335}, (AudioTrack.getMinVolume() > 0.0f ? 1 : (AudioTrack.getMinVolume() == 0.0f ? 0 : -1)) + 4).intern()); if (optJSONObject != null) { return optJSONObject; } int i3 = f342 + 19; f343 = i3 % 128; int i4 = i3 % 2; return this.f351; } /* renamed from: メ, reason: contains not printable characters */ private static String m1146(String str, int i) { String str2; char[] cArr = str; if (str != null) { cArr = str.toCharArray(); } char[] cArr2 = cArr; synchronized (k.f2799) { try { char[] cArr3 = new char[cArr2.length]; k.f2798 = 0; char[] cArr4 = new char[2]; while (true) { int i2 = k.f2798; if (i2 < cArr2.length) { cArr4[0] = cArr2[i2]; cArr4[1] = cArr2[i2 + 1]; int i3 = 58224; for (int i4 = 0; i4 < 16; i4++) { char c = cArr4[1]; char c2 = cArr4[0]; char c3 = (char) (c - (((c2 + i3) ^ ((c2 << 4) + f344)) ^ ((c2 >>> 5) + f346))); cArr4[1] = c3; cArr4[0] = (char) (c2 - (((c3 >>> 5) + f345) ^ ((c3 + i3) ^ ((c3 << 4) + f347)))); i3 -= 40503; } int i5 = k.f2798; cArr3[i5] = cArr4[0]; cArr3[i5 + 1] = cArr4[1]; k.f2798 = i5 + 2; } else { str2 = new String(cArr3, 0, i); } } } catch (Throwable th) { throw th; } } return str2; } /* renamed from: メ, reason: contains not printable characters */ private static String m1147(int[] iArr, int i) { String str; synchronized (e.f1827) { try { char[] cArr = new char[4]; char[] cArr2 = new char[iArr.length << 1]; int[] iArr2 = (int[]) f348.clone(); e.f1826 = 0; while (true) { int i2 = e.f1826; if (i2 < iArr.length) { int i3 = iArr[i2]; char c = (char) (i3 >> 16); cArr[0] = c; char c2 = (char) i3; cArr[1] = c2; char c3 = (char) (iArr[i2 + 1] >> 16); cArr[2] = c3; char c4 = (char) iArr[i2 + 1]; cArr[3] = c4; e.f1825 = (c << 16) + c2; e.f1828 = (c3 << 16) + c4; e.m2679(iArr2); for (int i4 = 0; i4 < 16; i4++) { int i5 = e.f1825 ^ iArr2[i4]; e.f1825 = i5; e.f1828 = e.m2678(i5) ^ e.f1828; int i6 = e.f1825; e.f1825 = e.f1828; e.f1828 = i6; } int i7 = e.f1825; e.f1825 = e.f1828; e.f1828 = i7; e.f1828 = i7 ^ iArr2[16]; e.f1825 ^= iArr2[17]; int i8 = e.f1826; int i9 = e.f1825; cArr[0] = (char) (i9 >>> 16); cArr[1] = (char) i9; int i10 = e.f1828; cArr[2] = (char) (i10 >>> 16); cArr[3] = (char) i10; e.m2679(iArr2); int i11 = e.f1826; cArr2[i11 << 1] = cArr[0]; cArr2[(i11 << 1) + 1] = cArr[1]; cArr2[(i11 << 1) + 2] = cArr[2]; cArr2[(i11 << 1) + 3] = cArr[3]; e.f1826 = i11 + 2; } else { str = new String(cArr2, 0, i); } } } catch (Throwable th) { throw th; } } return str; } }