package com.ironsource.adqualitysdk.sdk.i; import android.graphics.Color; import android.graphics.drawable.Drawable; import android.os.Process; import android.text.AndroidCharacter; import android.view.Gravity; import android.view.KeyEvent; import android.view.MotionEvent; import android.view.View; import android.view.ViewConfiguration; import android.widget.ExpandableListView; import com.inmobi.ads.AdContainer; import com.inmobi.ads.AdUnit; import com.inmobi.sdk.InMobiSdk; import com.ironsource.adqualitysdk.sdk.i.bb; import java.util.HashMap; import java.util.List; import java.util.Map; /* loaded from: classes4.dex */ public final class bo extends bb { /* renamed from: ﻐ, reason: contains not printable characters */ private static int f911 = 1; /* renamed from: ﻛ, reason: contains not printable characters */ private static int f912; /* renamed from: ヌ, reason: contains not printable characters */ private static char[] f914 = {'I', 13978, 28069, 42163, 56242, 4781, 18937, 32968, 47073, 61175, 9724, 23573, 37638, 51725, 300, 14389, 52932, 63511, 41768, 27198, 5439, 56352, 34676, 20037, 31084, 8314, 60273, 37528, 23947, 1152, 53153, 63160, 41371, 26753, 'N', 13973, 28060, 42165, 56230, 4769, 18926, 32965, 47044, 61169, 9703, 23594, 37657, 51713, 303, 'A', 13968, 28069, 42173, 56226, 4783, 18893, 32988, 47092, 61165, 9720, 23577, 'A', 13968, 28075, 42163, 56254, 4784, 18905, 32965, 47054, 61169, 9722, 'I', 13978, 28069, 42163, 56242, 4781, 18938, 32973, 47054, 61178, 9709, 23566, 'I', 13978, 28069, 42163, 56242, 4781, 18923, 32968, 47051, 22406, 24919, 14970, 62325, 35966, 17783, 'I', 13978, 28060, 42169, 56226, 4791, 18892, 32965, 47060, 61181, 9705, 23568, 37681, 51712, 285, 14394, 28453, 42586, 56668, 5200, 19321, 33399, 47244, 61321, 9870, 23985, 38074, 'V', 13981, 28044, 42169, 56255, 4737, 18894, 32969, 47054, 61152, 9668, 23573, 37635, 51728, 317, 14370, 28453, 42566, 58185, 54719, 36530, 18355, 14490, 61865, 43748, 25575, 21743, 3534, 50895, 48932, 28731, 10526, 57871, 56082, 35851, 'P', 14008, 28073, 42143, 56213, 4745, 18941, 32994, 47092, 61131, 9692, 23589, 37664, 51745, 263, 14341, 28430, 42616, 56673, 5202, 19285, 'A', 14000, 28087, 42129, 56209, 4758, 18931, 33017, 47088, 61131, 9692, 23589, 37664, 51745, 263, 14341, 28430, 42617, 56695, 5204, 19268, 33353, 47284, 60499, 55970, 33189, 18563, 14211, 65156, 42465, 27883, 23522, 729, 51662, 45111, 32562, 9779, 60693, 54295, 33564, 19051, 12645, 63556, 42833, 28249, 21668, 35292, 48941, 58410, 11532, 21004, 39691, 49262, 2404, 15981, 26454, 44097, 54712, 6845, 17340, 34970, 45444, 59027, 12258, 21755, 40398, 49882, 3031, 'A', 14000, 28087, 42143, 56194, 4737, 18937, 33016, 47081, 61122, 9677, 23587, 37668, 51773, 264, 14345, 28447, 42594, 56673, 5208, 19285, 33355}; /* renamed from: k, reason: contains not printable characters */ private static long f913 = 7475016061176592116L; /* renamed from: メ, reason: contains not printable characters */ private static long f915 = 5046759346928193068L; /* renamed from: ﺙ, reason: contains not printable characters */ public static /* synthetic */ Enum m1678(String str) { int i = f911 + 25; f912 = i % 128; if (i % 2 != 0) { m1677(str); throw null; } Enum m1677 = m1677(str); int i2 = f911 + 39; f912 = i2 % 128; if (i2 % 2 == 0) { return m1677; } throw null; } /* renamed from: ﻏ, reason: contains not printable characters */ public static /* synthetic */ Enum m1679(String str) { int i = f912 + 99; f911 = i % 128; if (i % 2 != 0) { return m1676(str); } m1676(str); throw null; } /* renamed from: ﻐ, reason: contains not printable characters */ public static /* synthetic */ Object m1680(AdContainer adContainer) { int i = f911 + 73; f912 = i % 128; if (i % 2 != 0) { m1683(adContainer); throw null; } Object m1683 = m1683(adContainer); int i2 = f912 + 117; f911 = i2 % 128; if (i2 % 2 == 0) { int i3 = 54 / 0; } return m1683; } /* renamed from: k, reason: contains not printable characters */ public static /* synthetic */ Enum m1681(String str) { int i = f912 + 111; f911 = i % 128; int i2 = i % 2; Enum m1675 = m1675(str); if (i2 == 0) { int i3 = 55 / 0; } int i4 = f912 + 7; f911 = i4 % 128; if (i4 % 2 != 0) { return m1675; } throw null; } public bo(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:60:0x01ba, code lost: if (r18.equals(m1682((char) (android.view.KeyEvent.getMaxKeyCode() >> 16), 17 - (android.os.SystemClock.currentThreadTimeMillis() > (-1) ? 1 : (android.os.SystemClock.currentThreadTimeMillis() == (-1) ? 0 : -1)), android.view.ViewConfiguration.getEdgeSlop() >> 16).intern()) != false) goto L42; */ /* JADX WARN: Code restructure failed: missing block: B:61:0x01bc, code lost: r4 = 0; */ /* JADX WARN: Code restructure failed: missing block: B:76:0x0258, code lost: if (r18.equals(m1684("蹏꓀\udb47\uf18b⑉嫍煓Ꟗ\uda56\uf0de✜巿灭ꛥ\udd62\uf3e4♮島獴꧲\udc3e\uf2da⤀徤爋ꢅ\udf0b\uf5bc⠜庺甕ꮅ\ude25\uf4b9⬣䆱琹", (android.view.ViewConfiguration.getScrollDefaultDelay() >> 16) + 10883).intern()) != false) goto L81; */ /* JADX WARN: Code restructure failed: missing block: B:92:0x0314, code lost: if ((r0 % 2) != 0) goto L42; */ @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 r18) { /* Method dump skipped, instructions count: 1022 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: com.ironsource.adqualitysdk.sdk.i.bo.mo1312(java.lang.String):java.lang.Class"); } @Override // com.ironsource.adqualitysdk.sdk.i.bb /* renamed from: ヌ */ public final String mo1313() { int i = f912 + 119; f911 = i % 128; int i2 = i % 2; String version = InMobiSdk.getVersion(); int i3 = f911 + 111; f912 = i3 % 128; int i4 = i3 % 2; return version; } @Override // com.ironsource.adqualitysdk.sdk.i.bb /* renamed from: ﻐ */ public final Map mo1311() { HashMap hashMap = new HashMap(); hashMap.put(m1684("蹋禆懆椑兼奆䂕䣠〹㠎⁔⮽Ꮜᯖ̎୨\uf299\ufafd\ue2d7\uea1c", 63440 - (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1))).intern(), new bb.a() { // from class: com.ironsource.adqualitysdk.sdk.i.bo.2 @Override // com.ironsource.adqualitysdk.sdk.i.bb.a /* renamed from: ヌ */ public final Object mo1342(List list, ch chVar) { return bo.m1681((String) list.get(0)); } }); hashMap.put(m1684("蹋輂賎趌譤蠖規蝓萟藺芲聁臑麓鱓鴌髲鮢餇", 331 - Color.red(0)).intern(), new bb.a() { // from class: com.ironsource.adqualitysdk.sdk.i.bo.4 @Override // com.ironsource.adqualitysdk.sdk.i.bb.a /* renamed from: ヌ */ public final Object mo1342(List list, ch chVar) { return bo.m1678((String) list.get(0)); } }); hashMap.put(m1684("蹋驦ꘆ닥\udef1\ueab3\uf757̨⼻㯯䞟偅", 5167 - (ViewConfiguration.getMinimumFlingVelocity() >> 16)).intern(), new bb.a() { // from class: com.ironsource.adqualitysdk.sdk.i.bo.5 @Override // com.ironsource.adqualitysdk.sdk.i.bb.a /* renamed from: ヌ */ public final Object mo1342(List list, ch chVar) { return bo.m1680((AdContainer) list.get(0)); } }); hashMap.put(m1682((char) (MotionEvent.axisFromString("") + 58159), 16 - ExpandableListView.getPackedPositionChild(0L), (ViewConfiguration.getEdgeSlop() >> 16) + 144).intern(), new bb.a() { // from class: com.ironsource.adqualitysdk.sdk.i.bo.3 @Override // com.ironsource.adqualitysdk.sdk.i.bb.a /* renamed from: ヌ */ public final Object mo1342(List list, ch chVar) { return bo.m1679((String) list.get(0)); } }); int i = f912 + 103; f911 = i % 128; if (i % 2 == 0) { int i2 = 24 / 0; } return hashMap; } /* renamed from: ﮐ, reason: contains not printable characters */ private static Enum m1675(String str) { int i = f911 + 11; f912 = i % 128; int i2 = i % 2; int hashCode = str.hashCode(); char c = 0; if (hashCode != -1097819034) { if (hashCode == 1554700484 && str.equals(m1682((char) (Process.myPid() >> 22), (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)) + 21, 161 - Drawable.resolveOpacity(0, 0)).intern())) { int i3 = f912 + 19; f911 = i3 % 128; int i4 = i3 % 2; } c = 65535; } else { if (str.equals(m1684("蹼\u1ccdꬷ㙨쓝匀\ufe67賙ᬐꙦ㒺쌚湠ﲠ謅ᙉ꒩㌝\ude4a沨ﯫ虏ᒷꏢ乚", 37549 - Gravity.getAbsoluteGravity(0, 0)).intern())) { int i5 = f911 + 67; f912 = i5 % 128; int i6 = i5 % 2; c = 1; } c = 65535; } if (c == 0) { return AdContainer.RenderingProperties.PlacementType.PLACEMENT_TYPE_INLINE; } if (c != 1) { return null; } return AdContainer.RenderingProperties.PlacementType.PLACEMENT_TYPE_FULLSCREEN; } /* renamed from: ﱡ, reason: contains not printable characters */ private static Enum m1677(String str) { int i = f912 + 111; f911 = i % 128; int i2 = i % 2; int hashCode = str.hashCode(); char c = 0; if (hashCode == 556003820) { if (str.equals(m1682((char) View.MeasureSpec.getMode(0), 23 - ExpandableListView.getPackedPositionType(0L), (ViewConfiguration.getLongPressTimeout() >> 16) + 182).intern())) { int i3 = f911 + 65; f912 = i3 % 128; int i4 = i3 % 2; } c = 65535; } else if (hashCode != 556062505) { if (hashCode == 1382961856 && str.equals(m1682((char) (View.resolveSizeAndState(0, 0, 0) + 35229), ((Process.getThreadPriority(0) + 20) >> 6) + 22, (ViewConfiguration.getScrollFriction() > 0.0f ? 1 : (ViewConfiguration.getScrollFriction() == 0.0f ? 0 : -1)) + 227).intern())) { c = 2; } c = 65535; } else { if (str.equals(m1682((char) (60434 - KeyEvent.keyCodeFromString("")), (ViewConfiguration.getWindowTouchSlop() >> 8) + 23, (ViewConfiguration.getMaximumFlingVelocity() >> 16) + 205).intern())) { c = 1; } c = 65535; } if (c == 0) { return AdUnit.AdMarkupType.AD_MARKUP_TYPE_INM_HTML; } if (c == 1) { return AdUnit.AdMarkupType.AD_MARKUP_TYPE_INM_JSON; } if (c != 2) { return null; } return AdUnit.AdMarkupType.AD_MARKUP_TYPE_UNKNOWN; } /* renamed from: ﱟ, reason: contains not printable characters */ private static Enum m1676(String str) { int i = f911 + 71; f912 = i % 128; if (i % 2 == 0) { int hashCode = str.hashCode(); char c = 65535; if (hashCode != -2102692847) { if (hashCode != -1357644918) { if (hashCode == 235669401 && str.equals(m1684("蹭诏蔽麚飢鈪꾇ꧩꍝ벥뛯끞춬윎셞\udaa0퐃\uee6e\uebdc\ue502ョ\uf8d0\uf221ౣ", 1447 - ExpandableListView.getPackedPositionType(0L)).intern())) { int i2 = f912 + 1; f911 = i2 % 128; int i3 = i2 % 2; c = 0; } } else if (str.equals(m1682((char) (Process.myPid() >> 22), (ViewConfiguration.getScrollBarFadeDuration() >> 16) + 22, 250 - View.MeasureSpec.getMode(0)).intern())) { c = 1; } } else if (str.equals(m1684("蹭찕ઉ䤘螊수\u0083弓鶍\ud81fᚋ唬鎤\uee2cⲪ欺ꦣ\ue425⊯愸뾸﨡㣓睎", 17069 - AndroidCharacter.getMirror('0')).intern())) { c = 2; } if (c == 0) { return AdUnit.AdCreativeType.AD_CREATIVE_TYPE_UNSUPPORTED_OR_UNKNOWN; } if (c == 1) { return AdUnit.AdCreativeType.AD_CREATIVE_TYPE_VIDEO; } if (c != 2) { return null; } return AdUnit.AdCreativeType.AD_CREATIVE_TYPE_DISPLAY; } str.hashCode(); throw null; } /* renamed from: ヌ, reason: contains not printable characters */ private static Object m1683(AdContainer adContainer) { int i = f911 + 113; f912 = i % 128; int i2 = i % 2; Object dataModel = adContainer.getDataModel(); int i3 = f912 + 81; f911 = i3 % 128; if (i3 % 2 != 0) { return dataModel; } throw null; } /* renamed from: k, reason: contains not printable characters */ private static String m1682(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) ((f914[i2 + i3] ^ (i3 * f913)) ^ c); d.f1567 = i3 + 1; } else { str = new String(cArr); } } } catch (Throwable th) { throw th; } } return str; } /* renamed from: メ, reason: contains not printable characters */ private static String m1684(String str, int i) { String str2; char[] cArr = str; if (str != null) { cArr = str.toCharArray(); } char[] cArr2 = cArr; synchronized (f.f1920) { try { f.f1919 = i; char[] cArr3 = new char[cArr2.length]; f.f1921 = 0; while (true) { int i2 = f.f1921; if (i2 < cArr2.length) { cArr3[i2] = (char) ((cArr2[i2] ^ (f.f1919 * i2)) ^ f915); f.f1921++; } else { str2 = new String(cArr3); } } } catch (Throwable th) { throw th; } } return str2; } }