package com.ironsource.adqualitysdk.sdk.i; import java.lang.reflect.Field; import java.util.Collection; import java.util.Map; /* loaded from: classes4.dex */ public final class ht extends da implements cj, hs { /* renamed from: ﮐ, reason: contains not printable characters */ private static char f2268 = 5; /* renamed from: ﱟ, reason: contains not printable characters */ private static int f2269 = 0; /* renamed from: ﺙ, reason: contains not printable characters */ private static int f2271 = 1; /* renamed from: ﻐ, reason: contains not printable characters */ private Object f2273; /* renamed from: ﻛ, reason: contains not printable characters */ private hs f2274; /* renamed from: k, reason: contains not printable characters */ private Field f2275; /* renamed from: ヌ, reason: contains not printable characters */ private Map f2276; /* renamed from: メ, reason: contains not printable characters */ private Collection f2277; /* renamed from: ﻏ, reason: contains not printable characters */ private static char[] f2272 = {'g', 'e', 't', 'V', 'a', 'l', 'u', 's', 'i', 'F', 'd', 'M', 'p', 'P', 'r', 'n', 'I', 'c', 'h', 'j', 'k', 'm', 'o', 'q', 'v'}; /* renamed from: ﱡ, reason: contains not printable characters */ private static char[] f2270 = {'3', 'f', 'l', ']', 'W', 'g', 'h', 'h', 'S', 171, 152, 150, 170, 169, 165, 161, 168, 171, 169, 171, '7', 'n', 'j', 'f', 'l', '[', 'Y', 'm', 'l', 'h', 'd', 'k', 'n', 139, 277, 283, 271, 262, 279}; public ht(Field field, Object obj, hs hsVar) { this.f2275 = field; this.f2273 = obj; this.f2274 = hsVar; } public ht(Collection collection, Object obj, hs hsVar) { this.f2277 = collection; this.f2273 = obj; this.f2274 = hsVar; } public ht(Map map, Object obj, hs hsVar) { this.f2276 = map; this.f2273 = obj; this.f2274 = hsVar; } @Override // com.ironsource.adqualitysdk.sdk.i.hs /* renamed from: ヌ */ public final T mo2885() { int i = f2269 + 37; f2271 = i % 128; int i2 = i % 2; if (m2891()) { int i3 = f2269 + 9; f2271 = i3 % 128; try { if (i3 % 2 == 0) { this.f2275.get(this.f2273); throw null; } T t = (T) this.f2275.get(this.f2273); int i4 = f2269 + 97; f2271 = i4 % 128; int i5 = i4 % 2; return t; } catch (Exception unused) { } } else if (m2893() || m2895()) { T t2 = (T) this.f2273; int i6 = f2269 + 37; f2271 = i6 % 128; int i7 = i6 % 2; return t2; } return null; } /* JADX WARN: Code restructure failed: missing block: B:14:0x001d, code lost: if (m2891() != false) goto L14; */ /* JADX WARN: Code restructure failed: missing block: B:4:0x0016, code lost: if ((!m2891()) != true) goto L14; */ /* renamed from: ﻛ, reason: contains not printable characters */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private void m2892(T r3) { /* r2 = this; int r0 = com.ironsource.adqualitysdk.sdk.i.ht.f2269 int r0 = r0 + 117 int r1 = r0 % 128 com.ironsource.adqualitysdk.sdk.i.ht.f2271 = r1 int r0 = r0 % 2 if (r0 != 0) goto L19 boolean r0 = r2.m2891() r1 = 62 int r1 = r1 / 0 r1 = 1 r0 = r0 ^ r1 if (r0 == r1) goto L27 goto L1f L19: boolean r0 = r2.m2891() if (r0 == 0) goto L27 L1f: java.lang.reflect.Field r0 = r2.f2275 // Catch: java.lang.Exception -> L27 java.lang.Object r1 = r2.f2273 // Catch: java.lang.Exception -> L27 r0.set(r1, r3) // Catch: java.lang.Exception -> L27 return L27: int r3 = com.ironsource.adqualitysdk.sdk.i.ht.f2271 int r3 = r3 + 41 int r0 = r3 % 128 com.ironsource.adqualitysdk.sdk.i.ht.f2269 = r0 int r3 = r3 % 2 return */ throw new UnsupportedOperationException("Method not decompiled: com.ironsource.adqualitysdk.sdk.i.ht.m2892(java.lang.Object):void"); } @Override // com.ironsource.adqualitysdk.sdk.i.hs /* renamed from: ﻛ */ public final Field mo2884() { int i = f2271 + 61; int i2 = i % 128; f2269 = i2; int i3 = i % 2; Field field = this.f2275; int i4 = i2 + 21; f2271 = i4 % 128; if (i4 % 2 == 0) { int i5 = 24 / 0; } return field; } /* renamed from: ﻐ, reason: contains not printable characters */ private boolean m2891() { int i = f2269; int i2 = i + 3; f2271 = i2 % 128; int i3 = i2 % 2; if (this.f2275 == null) { return false; } int i4 = i + 25; f2271 = i4 % 128; return i4 % 2 != 0; } /* JADX WARN: Code restructure failed: missing block: B:10:0x001a, code lost: r0 = r0 + 29; com.ironsource.adqualitysdk.sdk.i.ht.f2271 = r0 % 128; */ /* JADX WARN: Code restructure failed: missing block: B:11:0x0022, code lost: if ((r0 % 2) == 0) goto L13; */ /* JADX WARN: Code restructure failed: missing block: B:12:0x0024, code lost: return true; */ /* JADX WARN: Code restructure failed: missing block: B:13:0x0026, code lost: throw null; */ /* JADX WARN: Code restructure failed: missing block: B:15:0x0018, code lost: if (r5.f2277 != null) goto L9; */ /* JADX WARN: Code restructure failed: missing block: B:4:0x0013, code lost: if (r5.f2277 != null) goto L9; */ /* JADX WARN: Code restructure failed: missing block: B:5:0x0027, code lost: r0 = r0 + 97; com.ironsource.adqualitysdk.sdk.i.ht.f2271 = r0 % 128; */ /* JADX WARN: Code restructure failed: missing block: B:6:0x002f, code lost: if ((r0 % 2) == 0) goto L17; */ /* JADX WARN: Code restructure failed: missing block: B:7:0x0031, code lost: return false; */ /* JADX WARN: Code restructure failed: missing block: B:9:0x0032, code lost: throw null; */ /* renamed from: k, reason: contains not printable characters */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private boolean m2893() { /* r5 = this; int r0 = com.ironsource.adqualitysdk.sdk.i.ht.f2269 int r1 = r0 + 119 int r2 = r1 % 128 com.ironsource.adqualitysdk.sdk.i.ht.f2271 = r2 int r1 = r1 % 2 r2 = 0 r3 = 0 if (r1 != 0) goto L16 java.util.Collection r1 = r5.f2277 r4 = 16 int r4 = r4 / r3 if (r1 == 0) goto L27 goto L1a L16: java.util.Collection r1 = r5.f2277 if (r1 == 0) goto L27 L1a: int r0 = r0 + 29 int r1 = r0 % 128 com.ironsource.adqualitysdk.sdk.i.ht.f2271 = r1 int r0 = r0 % 2 if (r0 == 0) goto L26 r0 = 1 return r0 L26: throw r2 L27: int r0 = r0 + 97 int r1 = r0 % 128 com.ironsource.adqualitysdk.sdk.i.ht.f2271 = r1 int r0 = r0 % 2 if (r0 == 0) goto L32 return r3 L32: throw r2 */ throw new UnsupportedOperationException("Method not decompiled: com.ironsource.adqualitysdk.sdk.i.ht.m2893():boolean"); } /* renamed from: メ, reason: contains not printable characters */ private boolean m2895() { int i = f2269; int i2 = i + 123; f2271 = i2 % 128; if (i2 % 2 == 0) { throw null; } if (this.f2276 != null) { return true; } int i3 = i + 53; f2271 = i3 % 128; if (i3 % 2 == 0) { int i4 = 74 / 0; } return false; } /* renamed from: ﺙ, reason: contains not printable characters */ private Collection m2888() { int i = f2269 + 49; f2271 = i % 128; if (i % 2 != 0) { return this.f2277; } throw null; } /* renamed from: ﮐ, reason: contains not printable characters */ private Map m2886() { int i = f2269; int i2 = i + 93; f2271 = i2 % 128; if (i2 % 2 == 0) { throw null; } Map map = this.f2276; int i3 = i + 17; f2271 = i3 % 128; int i4 = i3 % 2; return map; } /* renamed from: ﱡ, reason: contains not printable characters */ private hs m2887() { int i = f2271; int i2 = i + 85; f2269 = i2 % 128; int i3 = i2 % 2; hs hsVar = this.f2274; int i4 = i + 67; f2269 = i4 % 128; if (i4 % 2 == 0) { return hsVar; } throw null; } /* renamed from: ﻏ, reason: contains not printable characters */ private Object m2889() { int i = f2271; int i2 = i + 117; f2269 = i2 % 128; int i3 = i2 % 2; Object obj = this.f2273; int i4 = i + 13; f2269 = i4 % 128; int i5 = i4 % 2; return obj; } /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */ /* JADX WARN: Code restructure failed: missing block: B:37:0x00a2, code lost: if ((!r11.equals(m2894(android.text.TextUtils.indexOf("", "", 0) + 8, (byte) ((android.os.SystemClock.elapsedRealtime() > 0 ? 1 : (android.os.SystemClock.elapsedRealtime() == 0 ? 0 : -1)) + 103), "\u0006\u0002\u0003\u0004\u0000\t\u000b\u0006").intern())) != false) goto L35; */ /* JADX WARN: Multi-variable type inference failed */ @Override // com.ironsource.adqualitysdk.sdk.i.cj /* renamed from: ﻛ */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public final java.lang.Object mo1335(java.lang.String r11, java.util.List r12, com.ironsource.adqualitysdk.sdk.i.ch r13) { /* Method dump skipped, instructions count: 512 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: com.ironsource.adqualitysdk.sdk.i.ht.mo1335(java.lang.String, java.util.List, com.ironsource.adqualitysdk.sdk.i.ch):java.lang.Object"); } /* renamed from: ヌ, reason: contains not printable characters */ private static String m2894(int i, byte b, String str) { String str2; char[] cArr = str; if (str != null) { cArr = str.toCharArray(); } char[] cArr2 = cArr; synchronized (h.f2156) { try { char[] cArr3 = f2272; char c = f2268; char[] cArr4 = new char[i]; if (i % 2 != 0) { i--; cArr4[i] = (char) (cArr2[i] - b); } if (i > 1) { h.f2159 = 0; while (true) { int i2 = h.f2159; if (i2 >= i) { break; } h.f2158 = cArr2[i2]; h.f2161 = cArr2[h.f2159 + 1]; if (h.f2158 == h.f2161) { cArr4[h.f2159] = (char) (h.f2158 - b); cArr4[h.f2159 + 1] = (char) (h.f2161 - b); } else { h.f2162 = h.f2158 / c; h.f2157 = h.f2158 % c; h.f2160 = h.f2161 / c; h.f2155 = h.f2161 % c; if (h.f2157 == h.f2155) { h.f2162 = ((h.f2162 + c) - 1) % c; h.f2160 = ((h.f2160 + c) - 1) % c; int i3 = (h.f2162 * c) + h.f2157; int i4 = (h.f2160 * c) + h.f2155; int i5 = h.f2159; cArr4[i5] = cArr3[i3]; cArr4[i5 + 1] = cArr3[i4]; } else if (h.f2162 == h.f2160) { h.f2157 = ((h.f2157 + c) - 1) % c; h.f2155 = ((h.f2155 + c) - 1) % c; int i6 = (h.f2162 * c) + h.f2157; int i7 = (h.f2160 * c) + h.f2155; int i8 = h.f2159; cArr4[i8] = cArr3[i6]; cArr4[i8 + 1] = cArr3[i7]; } else { int i9 = (h.f2162 * c) + h.f2155; int i10 = (h.f2160 * c) + h.f2157; int i11 = h.f2159; cArr4[i11] = cArr3[i9]; cArr4[i11 + 1] = cArr3[i10]; } } h.f2159 += 2; } } str2 = new String(cArr4); } catch (Throwable th) { throw th; } } return str2; } /* renamed from: ﻐ, reason: contains not printable characters */ private static String m2890(String str, boolean z, int[] iArr) { String str2; byte[] bArr = str; if (str != null) { bArr = str.getBytes("ISO-8859-1"); } byte[] bArr2 = bArr; synchronized (g.f2033) { try { int i = iArr[0]; int i2 = iArr[1]; int i3 = iArr[2]; int i4 = iArr[3]; char[] cArr = new char[i2]; System.arraycopy(f2270, i, cArr, 0, i2); if (bArr2 != null) { char[] cArr2 = new char[i2]; g.f2032 = 0; char c = 0; while (true) { int i5 = g.f2032; if (i5 >= i2) { break; } if (bArr2[i5] == 1) { cArr2[i5] = (char) (((cArr[i5] << 1) + 1) - c); } else { cArr2[i5] = (char) ((cArr[i5] << 1) - c); } c = cArr2[i5]; g.f2032 = i5 + 1; } cArr = cArr2; } if (i4 > 0) { char[] cArr3 = new char[i2]; System.arraycopy(cArr, 0, cArr3, 0, i2); int i6 = i2 - i4; System.arraycopy(cArr3, 0, cArr, i6, i4); System.arraycopy(cArr3, i4, cArr, 0, i6); } if (z) { char[] cArr4 = new char[i2]; g.f2032 = 0; while (true) { int i7 = g.f2032; if (i7 >= i2) { break; } cArr4[i7] = cArr[(i2 - i7) - 1]; g.f2032 = i7 + 1; } cArr = cArr4; } if (i3 > 0) { g.f2032 = 0; while (true) { int i8 = g.f2032; if (i8 >= i2) { break; } cArr[i8] = (char) (cArr[i8] - iArr[2]); g.f2032 = i8 + 1; } } str2 = new String(cArr); } catch (Throwable th) { throw th; } } return str2; } }