package com.ironsource.adqualitysdk.sdk.i; import android.graphics.Color; import android.graphics.PointF; import android.graphics.drawable.Drawable; import android.os.Process; import android.text.AndroidCharacter; import android.text.TextUtils; import android.view.KeyEvent; import android.view.View; import android.view.ViewConfiguration; import android.widget.ExpandableListView; import com.applovin.exoplayer2.common.base.Ascii; import com.ironsource.adqualitysdk.sdk.i.bb; import io.presage.Presage; import io.presage.common.PresageSdk; import io.presage.interstitial.PresageInterstitial; import io.presage.interstitial.PresageInterstitialCallback; import io.presage.interstitial.optinvideo.PresageOptinVideo; import io.presage.interstitial.optinvideo.PresageOptinVideoCallback; import java.util.HashMap; import java.util.List; import java.util.Map; /* loaded from: classes4.dex */ public final class bw extends bb { /* renamed from: ﭖ, reason: contains not printable characters */ private static int f1042 = 1; /* renamed from: ﻏ, reason: contains not printable characters */ private static int f1047 = 0; /* renamed from: ﻐ, reason: contains not printable characters */ private static int f1048 = 2127097245; /* renamed from: ﻛ, reason: contains not printable characters */ private static short[] f1049 = null; /* renamed from: k, reason: contains not printable characters */ private static int f1050 = 1105679229; /* renamed from: ヌ, reason: contains not printable characters */ private static int f1051 = 92; /* renamed from: メ, reason: contains not printable characters */ private static byte[] f1052 = {5, Ascii.VT, -13, Ascii.CR, -11, 17, 34, -43, Ascii.VT, -8, -11, Ascii.VT, -11, 1, 1, Ascii.CR, -15, 6, 37, Ascii.ESC, -62, Ascii.VT, -8, -11, Ascii.VT, -11, 1, 1, Ascii.CR, -15, 6, 5, 59, -55, -2, 6, -18, Ascii.SO, -13, 2, 66, -65, 6, 5, Ascii.VT, -13, Ascii.CR, -11, 17, 34, -43, Ascii.VT, -8, -11, Ascii.VT, -11, 1, 1, Ascii.CR, -15, 6, 37, Ascii.ESC, -59, -12, 71, -62, Ascii.VT, -8, -11, Ascii.VT, -11, 1, 1, Ascii.CR, -15, 6, 5, 59, -55, -2, 6, -18, Ascii.SO, -13, 2, 66, -65, 6, 7, 17, -18, -2, 6, -18, Ascii.SO, -13, 34, 8, 2, -1, -10, 0, Ascii.VT, Ascii.RS, -41, Ascii.VT, -8, -11, Ascii.VT, -11, 1, 1, Ascii.CR, -15, 6, 37, -28, -2, 6, -18, Ascii.SO, -13, 34, 10, 1, -5, 19, -24, 5, -11, 4, 33, -22, -2, 6, -18, Ascii.SO, -13, 34, 8, -15, 43, -27, -14, 17, -22, Ascii.DC2, 19, 8, 2, -1, -10, 0, Ascii.VT, Ascii.RS, -44, 10, 1, -5, 19, -24, 5, -11, 4, 33, -37, Ascii.SI, -14, 35, -21, -16, 6, -1, 34, -38, 17, -19, 6, 43, -48, -1, Ascii.DC4, -7, -13, 17, -10, 5, -9, Ascii.CR, -3, 5, 2, Ascii.VT, 40, -56, -3, 59, -64, -1, 2, 0, -2, Ascii.FF, 53, -55, -2, 6, -18, Ascii.SO, -13, 2, 66, -65, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0}; /* renamed from: ﮐ, reason: contains not printable characters */ private static boolean f1043 = true; /* renamed from: ﱡ, reason: contains not printable characters */ private static boolean f1045 = true; /* renamed from: ﺙ, reason: contains not printable characters */ private static int f1046 = 102; /* renamed from: ﱟ, reason: contains not printable characters */ private static char[] f1044 = {175, 212, 218, 203, 216, 217, 207, 199, 210, 167, 201, 220, 223, 187, 181, 205, 219, 182, 214, 188, 202, 213, 169, 200, 209, 204, 147}; /* renamed from: ﮐ, reason: contains not printable characters */ public static /* synthetic */ Presage m1837() { int i = f1042 + 1; f1047 = i % 128; int i2 = i % 2; Presage m1838 = m1838(); int i3 = f1047 + 13; f1042 = i3 % 128; int i4 = i3 % 2; return m1838; } /* renamed from: メ, reason: contains not printable characters */ public static /* synthetic */ void m1843(PresageInterstitial presageInterstitial, PresageInterstitialCallback presageInterstitialCallback) { int i = f1042 + 115; f1047 = i % 128; int i2 = i % 2; m1840(presageInterstitial, presageInterstitialCallback); if (i2 != 0) { throw null; } } /* renamed from: メ, reason: contains not printable characters */ public static /* synthetic */ void m1844(PresageOptinVideo presageOptinVideo, PresageOptinVideoCallback presageOptinVideoCallback) { int i = f1042 + 25; f1047 = i % 128; int i2 = i % 2; m1839(presageOptinVideo, presageOptinVideoCallback); int i3 = f1047 + 59; f1042 = i3 % 128; int i4 = i3 % 2; } public bw(String str) { super(str); } /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */ /* JADX WARN: Code restructure failed: missing block: B:47:0x0150, code lost: if (r17.equals(m1841((-2127097139) - (android.media.AudioTrack.getMaxVolume() > 0.0f ? 1 : (android.media.AudioTrack.getMaxVolume() == 0.0f ? 0 : -1)), android.view.KeyEvent.getDeadChar(0, 0) - 1105679229, (-48) - android.text.TextUtils.getTrimmedLength(""), (short) (android.view.ViewConfiguration.getMaximumFlingVelocity() >> 16), (byte) ((-1) - android.text.TextUtils.lastIndexOf("", '0'))).intern()) != false) goto L51; */ @Override // com.ironsource.adqualitysdk.sdk.i.bb /* renamed from: ヌ */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public final java.lang.Class mo1312(java.lang.String r17) { /* Method dump skipped, instructions count: 718 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: com.ironsource.adqualitysdk.sdk.i.bw.mo1312(java.lang.String):java.lang.Class"); } @Override // com.ironsource.adqualitysdk.sdk.i.bb /* renamed from: ﻐ */ public final Map mo1311() { HashMap hashMap = new HashMap(); hashMap.put(m1842(null, null, TextUtils.indexOf((CharSequence) "", '0', 0) + 128, "\u0084\u008b\u0082\u0088\u0083\u0086\u0082\u0081\u0084\u0090\u0088\u0086\u0084\u0085\u0092\u0083\u0084\u0090").intern(), new bb.a() { // from class: com.ironsource.adqualitysdk.sdk.i.bw.3 @Override // com.ironsource.adqualitysdk.sdk.i.bb.a /* renamed from: ヌ */ public final Object mo1342(List list, ch chVar) { return bw.m1837(); } }); hashMap.put(m1842(null, null, 127 - Color.blue(0), "\u0099\u008b\u0088\u0098\u0089\u0089\u0088\u0097\u0089\u0088\u0087\u0083\u0087\u0083\u0086\u0085\u0084\u0083\u0082\u0081\u0083\u0084\u0086").intern(), new bb.a() { // from class: com.ironsource.adqualitysdk.sdk.i.bw.2 @Override // com.ironsource.adqualitysdk.sdk.i.bb.a /* renamed from: ヌ */ public final Object mo1342(List list, ch chVar) { bw.m1843((PresageInterstitial) list.get(0), (PresageInterstitialCallback) list.get(1)); return null; } }); hashMap.put(m1841(((Process.getThreadPriority(0) + 20) >> 6) - 2127097130, (ViewConfiguration.getFadingEdgeLength() >> 16) - 1105679080, (-71) - TextUtils.getTrimmedLength(""), (short) View.combineMeasuredStates(0, 0), (byte) (TextUtils.indexOf((CharSequence) "", '0', 0) + 1)).intern(), new bb.a() { // from class: com.ironsource.adqualitysdk.sdk.i.bw.5 @Override // com.ironsource.adqualitysdk.sdk.i.bb.a /* renamed from: ヌ */ public final Object mo1342(List list, ch chVar) { bw.m1844((PresageOptinVideo) list.get(0), (PresageOptinVideoCallback) list.get(1)); return null; } }); int i = f1042 + 103; f1047 = i % 128; if (i % 2 == 0) { return hashMap; } throw null; } @Override // com.ironsource.adqualitysdk.sdk.i.bb /* renamed from: ヌ */ public final String mo1313() { String mo1338 = mo1338(); if (mo1338 == null) { int i = f1047 + 109; f1042 = i % 128; int i2 = i % 2; return null; } int i3 = f1047 + 67; f1042 = i3 % 128; int i4 = i3 % 2; String str = mo1338.split(m1842(null, null, (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 128, "\u009b").intern())[0]; int i5 = f1047 + 45; f1042 = i5 % 128; if (i5 % 2 != 0) { return str; } throw null; } @Override // com.ironsource.adqualitysdk.sdk.i.bb /* renamed from: k */ public final String mo1338() { int i = f1042 + 103; f1047 = i % 128; int i2 = i % 2; try { try { String str = (String) Class.forName(m1841((ViewConfiguration.getKeyRepeatTimeout() >> 16) - 2127097140, TextUtils.getTrimmedLength("") - 1105679060, (ViewConfiguration.getDoubleTapTimeout() >> 16) - 45, (short) (PointF.length(0.0f, 0.0f) > 0.0f ? 1 : (PointF.length(0.0f, 0.0f) == 0.0f ? 0 : -1)), (byte) KeyEvent.getDeadChar(0, 0)).intern()).getMethod(m1841((-2127097149) - TextUtils.lastIndexOf("", '0', 0, 0), AndroidCharacter.getMirror('0') - 21206, (-91) - KeyEvent.normalizeMetaState(0), (short) (TextUtils.lastIndexOf("", '0') + 1), (byte) Drawable.resolveOpacity(0, 0)).intern(), new Class[0]).invoke(null, new Object[0]); int i3 = f1047 + 15; f1042 = i3 % 128; int i4 = i3 % 2; return str; } catch (Exception unused) { return PresageSdk.getAdsSdkVersion(); } } catch (Throwable unused2) { return null; } } /* renamed from: ﱡ, reason: contains not printable characters */ private static Presage m1838() { int i = f1047 + 39; f1042 = i % 128; int i2 = i % 2; Presage presage = Presage.getInstance(); int i3 = f1042 + 93; f1047 = i3 % 128; int i4 = i3 % 2; return presage; } /* renamed from: k, reason: contains not printable characters */ private static void m1840(PresageInterstitial presageInterstitial, PresageInterstitialCallback presageInterstitialCallback) { int i = f1047 + 29; f1042 = i % 128; int i2 = i % 2; presageInterstitial.setInterstitialCallback(presageInterstitialCallback); if (i2 == 0) { int i3 = 58 / 0; } } /* renamed from: ﻐ, reason: contains not printable characters */ private static void m1839(PresageOptinVideo presageOptinVideo, PresageOptinVideoCallback presageOptinVideoCallback) { int i = f1042 + 5; f1047 = i % 128; int i2 = i % 2; presageOptinVideo.setOptinVideoCallback(presageOptinVideoCallback); int i3 = f1042 + 5; f1047 = i3 % 128; int i4 = i3 % 2; } /* renamed from: メ, reason: contains not printable characters */ private static String m1841(int i, int i2, int i3, short s, byte b) { String obj; synchronized (m.f2834) { try { StringBuilder sb = new StringBuilder(); int i4 = f1051; int i5 = i3 + i4; int i6 = i5 == -1 ? 1 : 0; if (i6 != 0) { byte[] bArr = f1052; if (bArr != null) { i5 = (byte) (bArr[f1050 + i2] + i4); } else { i5 = (short) (f1049[f1050 + i2] + i4); } } if (i5 > 0) { m.f2839 = ((i2 + i5) - 2) + f1050 + i6; m.f2835 = b; char c = (char) (i + f1048); m.f2836 = c; sb.append(c); m.f2838 = m.f2836; m.f2837 = 1; while (m.f2837 < i5) { byte[] bArr2 = f1052; 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 = f1049; 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: メ, reason: contains not printable characters */ private static String m1842(String str, int[] iArr, int i, String str2) { byte[] bArr = str2; if (str2 != null) { bArr = str2.getBytes("ISO-8859-1"); } byte[] bArr2 = bArr; char[] cArr = str; if (str != null) { cArr = str.toCharArray(); } char[] cArr2 = cArr; synchronized (o.f2842) { try { char[] cArr3 = f1044; int i2 = f1046; if (f1045) { int length = bArr2.length; o.f2841 = length; char[] cArr4 = new char[length]; o.f2840 = 0; while (o.f2840 < o.f2841) { int i3 = o.f2840; int i4 = o.f2841 - 1; int i5 = o.f2840; cArr4[i3] = (char) (cArr3[bArr2[i4 - i5] + i] - i2); o.f2840 = i5 + 1; } return new String(cArr4); } if (f1043) { int length2 = cArr2.length; o.f2841 = length2; char[] cArr5 = new char[length2]; o.f2840 = 0; while (o.f2840 < o.f2841) { int i6 = o.f2840; int i7 = o.f2841 - 1; int i8 = o.f2840; cArr5[i6] = (char) (cArr3[cArr2[i7 - i8] - i] - i2); o.f2840 = i8 + 1; } return new String(cArr5); } int length3 = iArr.length; o.f2841 = length3; char[] cArr6 = new char[length3]; o.f2840 = 0; while (o.f2840 < o.f2841) { int i9 = o.f2840; int i10 = o.f2841 - 1; int i11 = o.f2840; cArr6[i9] = (char) (cArr3[iArr[i10 - i11] - i] - i2); o.f2840 = i11 + 1; } return new String(cArr6); } catch (Throwable th) { throw th; } } } }