package com.ironsource.adqualitysdk.sdk.i; import android.graphics.Color; import android.graphics.ImageFormat; import android.graphics.PointF; import android.graphics.drawable.Drawable; import android.media.AudioTrack; import android.os.Process; import android.text.AndroidCharacter; 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 com.applovin.exoplayer2.common.base.Ascii; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Map; /* loaded from: classes4.dex */ public abstract class bb extends da implements cj { /* renamed from: ﭴ, reason: contains not printable characters */ private static int f609 = 1; /* renamed from: ﮉ, reason: contains not printable characters */ private static int f610 = 0; /* renamed from: ﮐ, reason: contains not printable characters */ private static int f611 = 17; /* renamed from: ﱡ, reason: contains not printable characters */ private static int f613 = -551835651; /* renamed from: ﺙ, reason: contains not printable characters */ private static short[] f614 = null; /* renamed from: ヌ, reason: contains not printable characters */ private static int f616 = 1039354965; /* renamed from: ﻐ, reason: contains not printable characters */ private String f617; /* renamed from: ﻛ, reason: contains not printable characters */ private Map f618; /* renamed from: k, reason: contains not printable characters */ private String f619; /* renamed from: メ, reason: contains not printable characters */ private String f620; /* renamed from: ﻏ, reason: contains not printable characters */ private static byte[] f615 = {0, -88, -113, -97, -110, -106, -104, -68, -112, -126, -80, -111, -96, 120, -61, -104, -93, -9, Ascii.EM, 39, Ascii.SO, 50, -44, Ascii.DC4, 3, Ascii.SO, -113, -6, 65, -113, 66, -121, 62, -55, -5, 39, -119, 65, -93, 67, -56, -3, 61, -111, 65, 55, -92, 56, 41, -93, -47, -24, -109, 57, -106, 105, -16, -14, 114, 113, -13, 50, 44, 40, -11, Ascii.SYN, -119, 34, 125, -120, -12, 82, -79, 66, 69, -13, 114, 108, -48, -12, 113, 112, 116, -30, -11, -46, 111, 93, -6, 86, -7, 66, 77, -14, -3, -78, -104, -15, -11, -70, -8, 48, -71, -123, 36, -65, -15, -66, -95}; /* renamed from: ﱟ, reason: contains not printable characters */ private static int[] f612 = {1818116667, -1938434195, 1958546065, 1028171577, 909878810, 1920288154, -1972600456, -183425844, -227112542, -397618036, 1322296758, -1108848933, 243158880, 151336379, 380014112, 1719877593, -2043607218, -889288530}; public interface a { /* renamed from: ヌ */ Object mo1342(List list, ch chVar); } /* renamed from: ﻐ */ public abstract Map mo1311(); /* renamed from: ヌ */ public abstract Class mo1312(String str); /* renamed from: ヌ */ public abstract String mo1313(); /* renamed from: პ, reason: contains not printable characters */ public static /* synthetic */ Object m1326(List list, Class cls) { int i = f610 + 83; f609 = i % 128; int i2 = i % 2; Object m2402 = da.m2402(list, 0, cls); int i3 = f609 + 7; f610 = i3 % 128; if (i3 % 2 == 0) { return m2402; } throw null; } /* renamed from: メ, reason: contains not printable characters */ public static /* synthetic */ Class m1330(bb bbVar, String str) { int i = f610 + 91; f609 = i % 128; Class m1328 = bbVar.m1328(str, i % 2 == 0); int i2 = f610 + 93; f609 = i2 % 128; if (i2 % 2 != 0) { return m1328; } throw null; } /* renamed from: メ, reason: contains not printable characters */ public static /* synthetic */ String m1331(bb bbVar) { int i = f610 + 69; int i2 = i % 128; f609 = i2; int i3 = i % 2; String str = bbVar.f619; int i4 = i2 + 91; f610 = i4 % 128; int i5 = i4 % 2; return str; } public bb(String str) { this.f617 = str; } /* renamed from: メ, reason: contains not printable characters */ public final void m1341() { Map mo1311 = mo1311(); this.f618 = mo1311; mo1311.put(m1327(TextUtils.getCapsMode("", 0, 0) + 551835766, KeyEvent.normalizeMetaState(0) - 1039354965, (-18) - (AudioTrack.getMinVolume() > 0.0f ? 1 : (AudioTrack.getMinVolume() == 0.0f ? 0 : -1)), (short) ((-30) - ExpandableListView.getPackedPositionChild(0L)), (byte) (116 - (ViewConfiguration.getScrollBarFadeDuration() >> 16))).intern(), new a() { // from class: com.ironsource.adqualitysdk.sdk.i.bb.5 @Override // com.ironsource.adqualitysdk.sdk.i.bb.a /* renamed from: ヌ */ public final Object mo1342(List list, ch chVar) { bb.this.m1337((String) bb.m1326(list, String.class)); return bb.m1331(bb.this); } }); this.f618.put(m1329(new int[]{-1149417546, 1847052587, -405491841, -9929838, -460269818, 1722417785, 803704995, -332808322, 1816397591, -664875651}, 19 - TextUtils.indexOf("", "", 0, 0)).intern(), new a() { // from class: com.ironsource.adqualitysdk.sdk.i.bb.4 @Override // com.ironsource.adqualitysdk.sdk.i.bb.a /* renamed from: ヌ */ public final Object mo1342(List list, ch chVar) { return Boolean.valueOf(bb.this.m1332()); } }); this.f618.put(m1327(551835753 - ((byte) KeyEvent.getModifierMetaStateMask()), (-1039354948) - (PointF.length(0.0f, 0.0f) > 0.0f ? 1 : (PointF.length(0.0f, 0.0f) == 0.0f ? 0 : -1)), ImageFormat.getBitsPerPixel(0) - 17, (short) ((-14) - (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1))), (byte) (TextUtils.getTrimmedLength("") + 10)).intern(), new a() { // from class: com.ironsource.adqualitysdk.sdk.i.bb.2 @Override // com.ironsource.adqualitysdk.sdk.i.bb.a /* renamed from: ヌ, reason: contains not printable characters */ public final Object mo1342(List list, ch chVar) { return bb.m1330(bb.this, (String) list.get(0)); } }); int i = f609 + 25; f610 = i % 128; if (i % 2 != 0) { throw null; } } /* renamed from: ﻛ, reason: contains not printable characters */ public final synchronized String m1336() { try { int i = f609 + 101; f610 = i % 128; int i2 = i % 2; if (!TextUtils.isEmpty(this.f620)) { int i3 = f609 + 53; f610 = i3 % 128; int i4 = i3 % 2; if (this.f620.equals(m1329(new int[]{192872903, 586743636, -1712551053, 118336478}, View.combineMeasuredStates(0, 0) + 7).intern())) { } } this.f620 = mo1313(); int i5 = f609 + 41; f610 = i5 % 128; int i6 = i5 % 2; } catch (Throwable th) { throw th; } return this.f620; } /* renamed from: k, reason: contains not printable characters */ public String mo1338() { String str = this.f619; if (str != null) { int i = f609 + 65; f610 = i % 128; int i2 = i % 2; return str; } String m1336 = m1336(); int i3 = f610 + 115; f609 = i3 % 128; if (i3 % 2 != 0) { return m1336; } throw null; } /* renamed from: ﻛ, reason: contains not printable characters */ public final void m1337(String str) { int i = f610 + 57; int i2 = i % 128; f609 = i2; int i3 = i % 2; this.f619 = str; int i4 = i2 + 83; f610 = i4 % 128; int i5 = i4 % 2; } /* renamed from: ﱟ, reason: contains not printable characters */ public final boolean m1332() { int i = f610; int i2 = i + 63; f609 = i2 % 128; if (i2 % 2 == 0) { int i3 = 91 / 0; if (this.f619 != null) { return true; } } else if (this.f619 != null) { return true; } int i4 = i + 81; f609 = i4 % 128; if (i4 % 2 == 0) { int i5 = 93 / 0; } return false; } @Override // com.ironsource.adqualitysdk.sdk.i.cj /* renamed from: ﻛ, reason: contains not printable characters */ public final Object mo1335(String str, List list, ch chVar) { int i = f610 + 119; f609 = i % 128; int i2 = i % 2; a aVar = this.f618.get(str); try { } catch (Exception e) { String str2 = this.f617; StringBuilder sb = new StringBuilder(); sb.append(m1327(551835720 - Color.argb(0, 0, 0, 0), TextUtils.indexOf("", "", 0, 0) - 1039354940, (ViewConfiguration.getScrollFriction() > 0.0f ? 1 : (ViewConfiguration.getScrollFriction() == 0.0f ? 0 : -1)) - 19, (short) ((-103) - Color.argb(0, 0, 0, 0)), (byte) (TextUtils.getOffsetAfter("", 0) + 47)).intern()); sb.append(str); sb.append(m1329(new int[]{-1361423425, -642923138}, (AudioTrack.getMinVolume() > 0.0f ? 1 : (AudioTrack.getMinVolume() == 0.0f ? 0 : -1)) + 1).intern()); cp.m2309(str2, sb.toString(), e); } if (aVar != null) { return aVar.mo1342(list, chVar); } String str3 = this.f617; StringBuilder sb2 = new StringBuilder(); sb2.append(m1327(551835720 - (ViewConfiguration.getJumpTapTimeout() >> 16), (-1039354940) - (ViewConfiguration.getTapTimeout() >> 16), (-19) - ImageFormat.getBitsPerPixel(0), (short) ((-103) - View.resolveSizeAndState(0, 0, 0)), (byte) (Process.getGidForName("") + 48)).intern()); sb2.append(str); sb2.append(m1329(new int[]{657837520, 363897201, 1903174536, 396118733, 1283019567, 1322485466, 753155004, -180673070, 1225451972, 1036838753, 338995166, 1200362691}, TextUtils.lastIndexOf("", '0') + 24).intern()); cp.m2309(str3, sb2.toString(), null); int i3 = f609 + 125; f610 = i3 % 128; int i4 = i3 % 2; return null; } /* renamed from: メ, reason: contains not printable characters */ public final Class m1340(String str) { try { if (Prode.m867()) { Class mo1312 = mo1312(str); int i = f610 + 99; f609 = i % 128; int i2 = i % 2; return mo1312; } int i3 = f609 + 63; f610 = i3 % 128; return i3 % 2 != 0 ? m1328(str, true) : m1328(str, false); } catch (Throwable unused) { return null; } } /* renamed from: ﻐ, reason: contains not printable characters */ public final Class m1334(String str) { int i = f610 + 41; f609 = i % 128; int i2 = i % 2; Class m1328 = m1328(str, true); int i3 = f610 + 75; f609 = i3 % 128; if (i3 % 2 != 0) { return m1328; } throw null; } /* renamed from: ﻛ, reason: contains not printable characters */ private Class m1328(String str, boolean z) { int i = f609 + 87; f610 = i % 128; int i2 = i % 2; try { char c = 6; if (str.contains(m1327(551835697 - TextUtils.getOffsetBefore("", 0), ((Process.getThreadPriority(0) + 20) >> 6) - 1039354909, TextUtils.indexOf((CharSequence) "", '0', 0, 0) - 17, (short) (Color.alpha(0) - 104), (byte) ((-12) - (Process.myTid() >> 22))).intern())) { int i3 = f609 + 103; f610 = i3 % 128; if (i3 % 2 == 0) { return ka.m3354(str, z); } ka.m3354(str, z); throw null; } switch (str.hashCode()) { case -1325958191: if (str.equals(m1327(551835751 - (ViewConfiguration.getMinimumFlingVelocity() >> 16), (-1039354901) - (ViewConfiguration.getScrollDefaultDelay() >> 16), View.combineMeasuredStates(0, 0) - 18, (short) ((-16777162) - Color.rgb(0, 0, 0)), (byte) ((KeyEvent.getMaxKeyCode() >> 16) - 75)).intern())) { c = 2; break; } c = 65535; break; case 104431: if (str.equals(m1327(Color.argb(0, 0, 0, 0) + 551835756, (ViewConfiguration.getWindowTouchSlop() >> 8) - 1039354908, (Process.myPid() >> 22) - 18, (short) (108 - (ViewConfiguration.getLongPressTimeout() >> 16)), (byte) ((ViewConfiguration.getDoubleTapTimeout() >> 16) - 40)).intern())) { c = 0; break; } c = 65535; break; case 3029738: if (!(!str.equals(m1329(new int[]{1197911509, 583690718}, KeyEvent.normalizeMetaState(0) + 4).intern()))) { c = 4; break; } c = 65535; break; case 3039496: if (str.equals(m1327(551835749 - View.MeasureSpec.makeMeasureSpec(0, 0), (-1039354891) - ((byte) KeyEvent.getModifierMetaStateMask()), Color.rgb(0, 0, 0) + 16777198, (short) ((ViewConfiguration.getTapTimeout() >> 16) - 22), (byte) ((-83) - ((Process.getThreadPriority(0) + 20) >> 6))).intern())) { break; } c = 65535; break; case 3052374: if (str.equals(m1329(new int[]{640941786, 918026088}, (Process.myTid() >> 22) + 4).intern())) { c = 5; break; } c = 65535; break; case 3327612: if (!(!str.equals(m1327(551835759 - View.resolveSizeAndState(0, 0, 0), TextUtils.lastIndexOf("", '0') - 1039354904, ((byte) KeyEvent.getModifierMetaStateMask()) - 17, (short) (TextUtils.getCapsMode("", 0, 0) - 43), (byte) ((-3) - TextUtils.lastIndexOf("", '0', 0, 0))).intern()))) { int i4 = f610 + 109; f609 = i4 % 128; int i5 = i4 % 2; c = 1; break; } c = 65535; break; case 3625364: if (str.equals(m1329(new int[]{-448118933, 1529085395}, '4' - AndroidCharacter.getMirror('0')).intern())) { c = 7; break; } c = 65535; break; case 97526364: if (str.equals(m1327(551835753 - TextUtils.indexOf("", "", 0, 0), (ViewConfiguration.getWindowTouchSlop() >> 8) - 1039354895, View.MeasureSpec.getMode(0) - 18, (short) (TextUtils.indexOf("", "", 0) + 1), (byte) (64 - (Process.myPid() >> 22))).intern())) { int i6 = f609 + 101; f610 = i6 % 128; int i7 = i6 % 2; c = 3; break; } c = 65535; break; case 109413500: if (str.equals(m1327(551835766 - Drawable.resolveOpacity(0, 0), TextUtils.lastIndexOf("", '0', 0) - 1039354885, (-18) - (PointF.length(0.0f, 0.0f) > 0.0f ? 1 : (PointF.length(0.0f, 0.0f) == 0.0f ? 0 : -1)), (short) (83 - (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1))), (byte) (TextUtils.getOffsetAfter("", 0) - 63)).intern())) { c = '\b'; break; } c = 65535; break; default: c = 65535; break; } switch (c) { case 0: return Integer.TYPE; case 1: return Long.TYPE; case 2: return Double.TYPE; case 3: return Float.TYPE; case 4: return Boolean.TYPE; case 5: return Character.TYPE; case 6: Class cls = Byte.TYPE; int i8 = f610 + 109; f609 = i8 % 128; if (i8 % 2 != 0) { return cls; } throw null; case 7: return Void.TYPE; case '\b': return Short.TYPE; default: return mo1312(str); } } catch (Throwable th) { if (z) { String str2 = this.f617; StringBuilder sb = new StringBuilder(); sb.append(m1327(551835718 - (TypedValue.complexToFraction(0, 0.0f, 0.0f) > 0.0f ? 1 : (TypedValue.complexToFraction(0, 0.0f, 0.0f) == 0.0f ? 0 : -1)), (-1039354881) - (PointF.length(0.0f, 0.0f) > 0.0f ? 1 : (PointF.length(0.0f, 0.0f) == 0.0f ? 0 : -1)), (-18) - TextUtils.indexOf("", ""), (short) (73 - (AudioTrack.getMaxVolume() > 0.0f ? 1 : (AudioTrack.getMaxVolume() == 0.0f ? 0 : -1))), (byte) ((-73) - (TypedValue.complexToFloat(0) > 0.0f ? 1 : (TypedValue.complexToFloat(0) == 0.0f ? 0 : -1)))).intern()); sb.append(str); sb.append(m1327((ViewConfiguration.getScrollDefaultDelay() >> 16) + 551835683, (-1039354875) - (AudioTrack.getMinVolume() > 0.0f ? 1 : (AudioTrack.getMinVolume() == 0.0f ? 0 : -1)), TextUtils.lastIndexOf("", '0', 0, 0) - 17, (short) ((TypedValue.complexToFraction(0, 0.0f, 0.0f) > 0.0f ? 1 : (TypedValue.complexToFraction(0, 0.0f, 0.0f) == 0.0f ? 0 : -1)) - 32), (byte) ((-44) - KeyEvent.keyCodeFromString(""))).intern()); cp.m2309(str2, sb.toString(), th); } int i9 = f609 + 59; f610 = i9 % 128; int i10 = i9 % 2; return null; } } /* renamed from: k, reason: contains not printable characters */ public final void m1339(gy gyVar, ch chVar, String str, Object... objArr) { try { ArrayList arrayList = new ArrayList(Arrays.asList(objArr)); arrayList.add(0, gyVar); chVar.mo2128(str, arrayList); int i = f609 + 65; f610 = i % 128; if (i % 2 != 0) { throw null; } } catch (Throwable th) { String str2 = this.f617; StringBuilder sb = new StringBuilder(); sb.append(m1327(551835719 - TextUtils.indexOf((CharSequence) "", '0', 0, 0), Color.alpha(0) - 1039354865, (-18) - (ViewConfiguration.getFadingEdgeLength() >> 16), (short) (TextUtils.lastIndexOf("", '0', 0) + 40), (byte) ((-27) - (ViewConfiguration.getDoubleTapTimeout() >> 16))).intern()); sb.append(this); cp.m2309(str2, sb.toString(), th); } } /* renamed from: ﺙ */ public boolean mo1310() { int i = f609 + 125; int i2 = i % 128; f610 = i2; int i3 = i % 2; int i4 = i2 + 63; f609 = i4 % 128; int i5 = i4 % 2; return false; } /* renamed from: ﻏ, reason: contains not printable characters */ public boolean mo1333() { int i = f610; int i2 = i + 83; f609 = i2 % 128; boolean z = i2 % 2 == 0; int i3 = i + 103; f609 = i3 % 128; if (i3 % 2 == 0) { int i4 = 97 / 0; } return z; } /* renamed from: ﻐ, reason: contains not printable characters */ private static String m1327(int i, int i2, int i3, short s, byte b) { String obj; synchronized (m.f2834) { try { StringBuilder sb = new StringBuilder(); int i4 = f611; int i5 = i3 + i4; int i6 = i5 == -1 ? 1 : 0; if (i6 != 0) { byte[] bArr = f615; if (bArr != null) { i5 = (byte) (bArr[f616 + i2] + i4); } else { i5 = (short) (f614[f616 + i2] + i4); } } if (i5 > 0) { m.f2839 = ((i2 + i5) - 2) + f616 + i6; m.f2835 = b; char c = (char) (i + f613); m.f2836 = c; sb.append(c); m.f2838 = m.f2836; m.f2837 = 1; while (m.f2837 < i5) { byte[] bArr2 = f615; if (bArr2 != null) { int i7 = m.f2839; m.f2839 = i7 - 1; m.f2836 = (char) (m.f2838 + (((byte) (bArr2[i7] + s)) ^ m.f2835)); } else { short[] sArr = f614; int i8 = m.f2839; m.f2839 = i8 - 1; m.f2836 = (char) (m.f2838 + (((short) (sArr[i8] + s)) ^ m.f2835)); } sb.append(m.f2836); m.f2838 = m.f2836; m.f2837++; } } obj = sb.toString(); } catch (Throwable th) { throw th; } } return obj; } /* renamed from: k, reason: contains not printable characters */ private static String m1329(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[]) f612.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; } }