package com.ironsource.adqualitysdk.sdk.i; import android.graphics.Color; import android.os.Process; import android.os.SystemClock; 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.ironsource.adqualitysdk.sdk.i.bb; import com.vungle.ads.BuildConfig; import com.vungle.ads.internal.model.AdPayload; import com.vungle.ads.internal.model.AppNode; import com.vungle.ads.internal.model.Placement; import com.vungle.ads.internal.signals.SignalKey; import java.util.HashMap; import java.util.List; import java.util.Map; /* loaded from: classes4.dex */ public final class ce extends bb { /* renamed from: ﱟ, reason: contains not printable characters */ private static int f1227 = 0; /* renamed from: ﱡ, reason: contains not printable characters */ private static int f1228 = 1; /* renamed from: ﻐ, reason: contains not printable characters */ private static int f1229 = 5; /* renamed from: ﻛ, reason: contains not printable characters */ private static int f1230 = 209; /* renamed from: k, reason: contains not printable characters */ private static char[] f1231 = {274, 309, 282, 319, 325, 310, 323, 306, 317, 289, 330, 320, 321, 287, 275, 292, 314, 331, 324, 285, 279, 326, 308, 286, 291, 277, 318, 328, 255, 327, 312, 295, 276, 313, 307, 294}; /* renamed from: ヌ, reason: contains not printable characters */ private static boolean f1232 = true; /* renamed from: メ, reason: contains not printable characters */ private static boolean f1233 = true; /* renamed from: ﻐ, reason: contains not printable characters */ public static /* synthetic */ String m2084(AppNode appNode) { int i = f1227 + 35; f1228 = i % 128; int i2 = i % 2; String m2096 = m2096(appNode); int i3 = f1228 + 125; f1227 = i3 % 128; int i4 = i3 % 2; return m2096; } /* renamed from: ﻛ, reason: contains not printable characters */ public static /* synthetic */ boolean m2089(Placement placement) { int i = f1228 + 95; f1227 = i % 128; int i2 = i % 2; boolean m2086 = m2086(placement); int i3 = f1228 + 3; f1227 = i3 % 128; if (i3 % 2 != 0) { int i4 = 76 / 0; } return m2086; } /* renamed from: k, reason: contains not printable characters */ public static /* synthetic */ AdPayload.TemplateSettings m2090(AdPayload.AdUnit adUnit) { int i = f1228 + 33; f1227 = i % 128; int i2 = i % 2; AdPayload.TemplateSettings m2083 = m2083(adUnit); int i3 = f1227 + 55; f1228 = i3 % 128; int i4 = i3 % 2; return m2083; } /* renamed from: ヌ, reason: contains not printable characters */ public static /* synthetic */ String m2092(AdPayload.AdUnit adUnit) { int i = f1227 + 23; f1228 = i % 128; int i2 = i % 2; String m2087 = m2087(adUnit); int i3 = f1227 + 75; f1228 = i3 % 128; if (i3 % 2 != 0) { return m2087; } throw null; } /* renamed from: ヌ, reason: contains not printable characters */ public static /* synthetic */ String m2093(AdPayload.CacheableReplacement cacheableReplacement) { int i = f1228 + 83; f1227 = i % 128; int i2 = i % 2; String m2088 = m2088(cacheableReplacement); int i3 = f1227 + 47; f1228 = i3 % 128; if (i3 % 2 != 0) { return m2088; } throw null; } /* renamed from: ヌ, reason: contains not printable characters */ public static /* synthetic */ String m2094(Placement placement) { int i = f1227 + 87; f1228 = i % 128; if (i % 2 == 0) { m2097(placement); throw null; } String m2097 = m2097(placement); int i2 = f1228 + 31; f1227 = i2 % 128; if (i2 % 2 != 0) { int i3 = 53 / 0; } return m2097; } /* renamed from: メ, reason: contains not printable characters */ public static /* synthetic */ AdPayload.AdUnit m2095(AdPayload adPayload) { int i = f1227 + 117; f1228 = i % 128; if (i % 2 == 0) { m2091(adPayload); throw null; } AdPayload.AdUnit m2091 = m2091(adPayload); int i2 = f1227 + 125; f1228 = i2 % 128; int i3 = i2 % 2; return m2091; } public ce(String str) { super(str); } @Override // com.ironsource.adqualitysdk.sdk.i.bb /* renamed from: ヌ */ public final String mo1313() { int i = f1228 + 79; f1227 = i % 128; try { String str = i % 2 != 0 ? mo1338().split(m2085(false, "\u0000", 118 << TextUtils.lastIndexOf("", (char) 2, 0, 0), 16777217 >> Color.rgb(0, 1, 1), (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1))).intern())[0] : mo1338().split(m2085(true, "\u0000", TextUtils.lastIndexOf("", '0', 0, 0) + 51, Color.rgb(0, 0, 0) + 16777217, (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1))).intern())[0]; int i2 = f1228 + 125; f1227 = i2 % 128; if (i2 % 2 == 0) { return str; } throw null; } catch (Throwable unused) { return null; } } @Override // com.ironsource.adqualitysdk.sdk.i.bb /* renamed from: k */ public final String mo1338() { int i = f1228 + 15; f1227 = i % 128; int i2 = i % 2; try { String m2976 = hr.m2880().m2882().m2976(BuildConfig.class, m2085(true, "\uffdf\u0011¬\u0018\u0010\u000f\u0018\u0010\u0012\uffd8\uffde¬\u0018\u0010", 81 - TextUtils.getCapsMode("", 0, 0), 14 - View.MeasureSpec.makeMeasureSpec(0, 0), 9 - (ViewConfiguration.getTapTimeout() >> 16)).intern()); int i3 = f1227 + 87; f1228 = i3 % 128; if (i3 % 2 == 0) { int i4 = 24 / 0; } return m2976; } catch (Throwable unused) { return null; } } /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */ /* JADX WARN: Code restructure failed: missing block: B:57:0x011f, code lost: if (r19.equals(m2085(false, "\u0010\t\u0002\u0007\u0000\ufff2\u0000�\uffde\u0007\u0004\u0000\t\u000f\ufff1", 105 - android.text.TextUtils.indexOf((java.lang.CharSequence) "", '0', 0, 0), 15 - android.text.TextUtils.indexOf("", "", 0, 0), android.view.View.MeasureSpec.getMode(0) + 14).intern()) != false) goto L29; */ @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 r19) { /* Method dump skipped, instructions count: 1352 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: com.ironsource.adqualitysdk.sdk.i.ce.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(m2085(false, "\u0010\uffdd\u0000\ufff1\n\u0005\u0010\u0003\u0001", 105 - (ViewConfiguration.getTapTimeout() >> 16), 9 - TextUtils.indexOf("", "", 0, 0), 6 - ExpandableListView.getPackedPositionChild(0L)).intern(), new bb.a() { // from class: com.ironsource.adqualitysdk.sdk.i.ce.5 @Override // com.ironsource.adqualitysdk.sdk.i.bb.a /* renamed from: ヌ */ public final Object mo1342(List list, ch chVar) { return ce.m2095((AdPayload) list.get(0)); } }); hashMap.put(m2085(true, "\u0003│\u000f\u000f¢\u0013\u0004\u0006", 102 - (ViewConfiguration.getLongPressTimeout() >> 16), 8 - KeyEvent.normalizeMetaState(0), 8 - (KeyEvent.getMaxKeyCode() >> 16)).intern(), new bb.a() { // from class: com.ironsource.adqualitysdk.sdk.i.ce.3 @Override // com.ironsource.adqualitysdk.sdk.i.bb.a /* renamed from: ヌ */ public final Object mo1342(List list, ch chVar) { return ce.m2084((AppNode) list.get(0)); } }); hashMap.put(m2098(null, null, 126 - TextUtils.indexOf((CharSequence) "", '0', 0, 0), "\u0089\u0087¤\u0085\u0084\u0086\u009b\u0086\u0097\u0088\u0089\u008d\u0086\u0099\u0086\u0089£\u0088\u0086¢\u0097\u0088¡\u0085\u0086\u009f").intern(), new bb.a() { // from class: com.ironsource.adqualitysdk.sdk.i.ce.1 @Override // com.ironsource.adqualitysdk.sdk.i.bb.a /* renamed from: ヌ */ public final Object mo1342(List list, ch chVar) { return ce.m2093((AdPayload.CacheableReplacement) list.get(0)); } }); hashMap.put(m2098(null, null, 175 - AndroidCharacter.getMirror('0'), "\u0084\u009f\u0091\u0088\u008d\u009b\u0088¡\u0085\u0086\u009f").intern(), new bb.a() { // from class: com.ironsource.adqualitysdk.sdk.i.ce.4 @Override // com.ironsource.adqualitysdk.sdk.i.bb.a /* renamed from: ヌ */ public final Object mo1342(List list, ch chVar) { return ce.m2092((AdPayload.AdUnit) list.get(0)); } }); hashMap.put(m2085(true, "\ufffe\u0007→\u000f\u0000\u0002\uffff¦\u000f\t\u0000\b\u0000", 107 - (ViewConfiguration.getGlobalActionKeyTimeout() > 0L ? 1 : (ViewConfiguration.getGlobalActionKeyTimeout() == 0L ? 0 : -1)), 15 - (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)), '7' - AndroidCharacter.getMirror('0')).intern(), new bb.a() { // from class: com.ironsource.adqualitysdk.sdk.i.ce.2 @Override // com.ironsource.adqualitysdk.sdk.i.bb.a /* renamed from: ヌ */ public final Object mo1342(List list, ch chVar) { return ce.m2094((Placement) list.get(0)); } }); hashMap.put(m2085(false, "\u000b\u0000\u0005\ufffe\n\ufffe\u000b→\u0004\u0007\u0003\ufff8\u000b↑\u000b", (ViewConfiguration.getTouchSlop() >> 8) + 110, 19 - (ViewConfiguration.getMaximumFlingVelocity() >> 16), (Process.myTid() >> 22) + 5).intern(), new bb.a() { // from class: com.ironsource.adqualitysdk.sdk.i.ce.7 @Override // com.ironsource.adqualitysdk.sdk.i.bb.a /* renamed from: ヌ */ public final Object mo1342(List list, ch chVar) { return ce.m2090((AdPayload.AdUnit) list.get(0)); } }); hashMap.put(m2085(false, "\u0003\ufffe\uffff\t\u0003\r↓\uffff\u0011\ufffb\f\ufffe\uffff\ufffe\ufff0", 108 - (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)), 15 - Color.alpha(0), (ViewConfiguration.getScrollBarFadeDuration() >> 16) + 4).intern(), new bb.a() { // from class: com.ironsource.adqualitysdk.sdk.i.ce.8 @Override // com.ironsource.adqualitysdk.sdk.i.bb.a /* renamed from: ヌ */ public final Object mo1342(List list, ch chVar) { return Boolean.valueOf(ce.m2089((Placement) list.get(0))); } }); int i = f1227 + 83; f1228 = i % 128; int i2 = i % 2; return hashMap; } /* renamed from: ヌ, reason: contains not printable characters */ private static AdPayload.AdUnit m2091(AdPayload adPayload) { int i = f1227 + 59; f1228 = i % 128; int i2 = i % 2; AdPayload.AdUnit adUnit = adPayload.adUnit(); int i3 = f1228 + 29; f1227 = i3 % 128; if (i3 % 2 == 0) { return adUnit; } throw null; } /* renamed from: メ, reason: contains not printable characters */ private static String m2096(AppNode appNode) { int i = f1227 + 99; f1228 = i % 128; int i2 = i % 2; String appId = appNode.getAppId(); int i3 = f1227 + 41; f1228 = i3 % 128; int i4 = i3 % 2; return appId; } /* renamed from: ﻛ, reason: contains not printable characters */ private static String m2088(AdPayload.CacheableReplacement cacheableReplacement) { int i = f1228 + 57; f1227 = i % 128; int i2 = i % 2; String url = cacheableReplacement.getUrl(); int i3 = f1228 + 93; f1227 = i3 % 128; if (i3 % 2 == 0) { return url; } throw null; } /* renamed from: ﻛ, reason: contains not printable characters */ private static String m2087(AdPayload.AdUnit adUnit) { int i = f1227 + 13; f1228 = i % 128; int i2 = i % 2; String campaign = adUnit.getCampaign(); if (i2 == 0) { int i3 = 50 / 0; } int i4 = f1227 + 19; f1228 = i4 % 128; int i5 = i4 % 2; return campaign; } /* renamed from: メ, reason: contains not printable characters */ private static String m2097(Placement placement) { int i = f1228 + SignalKey.EVENT_ID; f1227 = i % 128; int i2 = i % 2; String referenceId = placement.getReferenceId(); if (i2 != 0) { int i3 = 51 / 0; } return referenceId; } /* renamed from: ﻐ, reason: contains not printable characters */ private static AdPayload.TemplateSettings m2083(AdPayload.AdUnit adUnit) { int i = f1228 + 41; f1227 = i % 128; if (i % 2 == 0) { return adUnit.getTemplateSettings(); } adUnit.getTemplateSettings(); throw null; } /* renamed from: ﻐ, reason: contains not printable characters */ private static boolean m2086(Placement placement) { int i = f1228 + 53; f1227 = i % 128; int i2 = i % 2; boolean isRewardedVideo = placement.isRewardedVideo(); int i3 = f1227 + 113; f1228 = i3 % 128; if (i3 % 2 != 0) { return isRewardedVideo; } throw null; } /* renamed from: ﻐ, reason: contains not printable characters */ private static String m2085(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] - f1229); 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; } /* renamed from: メ, reason: contains not printable characters */ private static String m2098(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 = f1231; int i2 = f1230; if (f1233) { 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 (f1232) { 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; } } } }