package com.ironsource.adqualitysdk.sdk.i; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; /* loaded from: classes4.dex */ public class db extends da implements cj { /* renamed from: ﭴ, reason: contains not printable characters */ private static int f1572 = 0; /* renamed from: ﭸ, reason: contains not printable characters */ private static int f1573 = 1; /* renamed from: ﱟ, reason: contains not printable characters */ private static char f1575 = 5; /* renamed from: ﮐ, reason: contains not printable characters */ private hl f1577; /* renamed from: ﱡ, reason: contains not printable characters */ private hl f1578; /* renamed from: ﺙ, reason: contains not printable characters */ private static char[] f1576 = {'g', 'e', 't', 'S', 'o', 'u', 'r', 'c', 'U', 'l', 's', 'I', 'm', 'a', 'E', 'n', 'd', 'C', 'i', 'v', 'T', 'y', 'p', 'V', 'h'}; /* renamed from: ﮌ, reason: contains not printable characters */ private static long f1574 = 8188162223087455565L; /* renamed from: メ, reason: contains not printable characters */ private final List f1584 = new ArrayList(); /* renamed from: k, reason: contains not printable characters */ private final List f1582 = new ArrayList(); /* renamed from: ヌ, reason: contains not printable characters */ private final List f1583 = new ArrayList(); /* renamed from: ﻛ, reason: contains not printable characters */ private final List f1581 = new ArrayList(); /* renamed from: ﻐ, reason: contains not printable characters */ private final List f1580 = new ArrayList(); /* renamed from: ﻏ, reason: contains not printable characters */ private JSONObject f1579 = new JSONObject(); /* renamed from: ヌ, reason: contains not printable characters */ private List m2437() { int i = f1572 + 31; int i2 = i % 128; f1573 = i2; int i3 = i % 2; List list = this.f1584; int i4 = i2 + 53; f1572 = i4 % 128; int i5 = i4 % 2; return list; } /* renamed from: メ, reason: contains not printable characters */ private List m2440() { int i = f1572 + 11; int i2 = i % 128; f1573 = i2; int i3 = i % 2; List list = this.f1582; int i4 = i2 + 29; f1572 = i4 % 128; int i5 = i4 % 2; return list; } /* renamed from: k, reason: contains not printable characters */ private List m2433() { int i = f1573; int i2 = i + 13; f1572 = i2 % 128; if (i2 % 2 != 0) { throw null; } List list = this.f1583; int i3 = i + 111; f1572 = i3 % 128; int i4 = i3 % 2; return list; } /* renamed from: ﻛ, reason: contains not printable characters */ private List m2429() { int i = f1573; int i2 = i + 105; f1572 = i2 % 128; int i3 = i2 % 2; List list = this.f1581; int i4 = i + 83; f1572 = i4 % 128; int i5 = i4 % 2; return list; } /* renamed from: ﻐ, reason: contains not printable characters */ private List m2423() { int i = f1573 + 23; int i2 = i % 128; f1572 = i2; int i3 = i % 2; List list = this.f1580; int i4 = i2 + 87; f1573 = i4 % 128; int i5 = i4 % 2; return list; } /* renamed from: ﱡ, reason: contains not printable characters */ private hl m2417() { int i = f1572; int i2 = i + 119; f1573 = i2 % 128; int i3 = i2 % 2; hl hlVar = this.f1578; int i4 = i + 59; f1573 = i4 % 128; int i5 = i4 % 2; return hlVar; } /* renamed from: ﻏ, reason: contains not printable characters */ private hl m2421() { int i = f1573 + 43; int i2 = i % 128; f1572 = i2; int i3 = i % 2; hl hlVar = this.f1577; int i4 = i2 + 117; f1573 = i4 % 128; if (i4 % 2 != 0) { return hlVar; } throw null; } /* renamed from: メ, reason: contains not printable characters */ private void m2441(String str) { int i = f1573 + 57; f1572 = i % 128; if (i % 2 == 0) { m2442(str, this.f1584); } else { m2442(str, this.f1584); int i2 = 93 / 0; } } /* renamed from: ﻐ, reason: contains not printable characters */ private void m2426(List list) { int i = f1572 + 123; f1573 = i % 128; int i2 = i % 2; m2444(list, this.f1584); int i3 = f1573 + 119; f1572 = i3 % 128; if (i3 % 2 != 0) { int i4 = 28 / 0; } } /* renamed from: ﻐ, reason: contains not printable characters */ private void m2425(String str) { int i = f1573 + 93; f1572 = i % 128; int i2 = i % 2; m2442(str, this.f1582); int i3 = f1572 + 69; f1573 = i3 % 128; int i4 = i3 % 2; } /* renamed from: k, reason: contains not printable characters */ private void m2436(List list) { int i = f1572 + 83; f1573 = i % 128; if (i % 2 != 0) { m2444(list, this.f1582); } else { m2444(list, this.f1582); int i2 = 37 / 0; } } /* renamed from: k, reason: contains not printable characters */ private void m2435(String str) { int i = f1573 + 123; f1572 = i % 128; if (i % 2 == 0) { m2442(str, this.f1583); } else { m2442(str, this.f1583); throw null; } } /* renamed from: ﻛ, reason: contains not printable characters */ private void m2431(List list) { int i = f1572 + 103; f1573 = i % 128; if (i % 2 != 0) { m2444(list, this.f1583); } else { m2444(list, this.f1583); throw null; } } /* renamed from: ヌ, reason: contains not printable characters */ private void m2438(String str) { int i = f1573 + 113; f1572 = i % 128; int i2 = i % 2; m2442(str, this.f1581); int i3 = f1572 + 43; f1573 = i3 % 128; if (i3 % 2 == 0) { int i4 = 75 / 0; } } /* renamed from: メ, reason: contains not printable characters */ private void m2443(List list) { int i = f1572 + 111; f1573 = i % 128; int i2 = i % 2; m2444(list, this.f1581); int i3 = f1573 + 19; f1572 = i3 % 128; if (i3 % 2 != 0) { throw null; } } /* renamed from: ﻛ, reason: contains not printable characters */ private void m2430(String str) { int i = f1572 + 113; f1573 = i % 128; int i2 = i % 2; m2442(str, this.f1580); int i3 = f1572 + 27; f1573 = i3 % 128; if (i3 % 2 == 0) { throw null; } } /* renamed from: ヌ, reason: contains not printable characters */ private void m2439(List list) { int i = f1573 + 11; f1572 = i % 128; if (i % 2 != 0) { m2444(list, this.f1580); int i2 = 93 / 0; } else { m2444(list, this.f1580); } int i3 = f1573 + 37; f1572 = i3 % 128; int i4 = i3 % 2; } /* renamed from: k, reason: contains not printable characters */ private void m2434(hl hlVar) { int i = f1572; int i2 = i + 101; f1573 = i2 % 128; int i3 = i2 % 2; if (hlVar != null) { int i4 = i + 83; f1573 = i4 % 128; int i5 = i4 % 2; this.f1578 = hlVar; } } /* renamed from: ﻐ, reason: contains not printable characters */ private void m2424(hl hlVar) { int i = f1573; int i2 = i + 55; f1572 = i2 % 128; int i3 = i2 % 2; if (hlVar != null) { int i4 = i + 99; f1572 = i4 % 128; int i5 = i4 % 2; this.f1577 = hlVar; if (i5 != 0) { throw null; } } int i6 = f1572 + 83; f1573 = i6 % 128; if (i6 % 2 == 0) { throw null; } } /* renamed from: ﺙ, reason: contains not printable characters */ private String m2419() { int i = f1573 + 15; f1572 = i % 128; if (i % 2 == 0) { return this.f1579.optString(ik.f2420); } this.f1579.optString(ik.f2420); throw null; } /* renamed from: ﱡ, reason: contains not printable characters */ private void m2418(String str) { int i = f1573 + 43; f1572 = i % 128; int i2 = i % 2; try { this.f1579.put(ik.f2420, str); int i3 = f1573 + 35; f1572 = i3 % 128; if (i3 % 2 != 0) { throw null; } } catch (JSONException unused) { } } /* renamed from: ﮐ, reason: contains not printable characters */ private String m2413() { int i = f1573 + 13; f1572 = i % 128; if (i % 2 == 0) { return this.f1579.optString(ik.f2417); } this.f1579.optString(ik.f2417); throw null; } /* renamed from: ﻏ, reason: contains not printable characters */ private void m2422(String str) { int i = f1572 + 111; f1573 = i % 128; int i2 = i % 2; try { this.f1579.put(ik.f2417, str); int i3 = f1573 + 103; f1572 = i3 % 128; if (i3 % 2 != 0) { int i4 = 15 / 0; } } catch (JSONException unused) { } } /* renamed from: ﱟ, reason: contains not printable characters */ private String m2415() { int i = f1573 + 113; f1572 = i % 128; int i2 = i % 2; String optString = this.f1579.optString(ik.f2412); int i3 = f1572 + 23; f1573 = i3 % 128; if (i3 % 2 != 0) { return optString; } throw null; } /* renamed from: ﺙ, reason: contains not printable characters */ private void m2420(String str) { int i = f1573 + 103; f1572 = i % 128; int i2 = i % 2; try { this.f1579.put(ik.f2412, str); int i3 = f1572 + 51; f1573 = i3 % 128; if (i3 % 2 == 0) { throw null; } } catch (JSONException unused) { } } /* renamed from: ﭸ, reason: contains not printable characters */ private String m2409() { int i = f1573 + 39; f1572 = i % 128; int i2 = i % 2; String optString = this.f1579.optString(ik.f2421); int i3 = f1572 + 117; f1573 = i3 % 128; int i4 = i3 % 2; return optString; } /* renamed from: ﮐ, reason: contains not printable characters */ private void m2414(String str) { int i = f1572 + 27; f1573 = i % 128; try { if (i % 2 == 0) { this.f1579.put(ik.f2421, str); int i2 = 11 / 0; } else { this.f1579.put(ik.f2421, str); } int i3 = f1572 + 37; f1573 = i3 % 128; if (i3 % 2 == 0) { throw null; } } catch (JSONException unused) { } } /* renamed from: ﮉ, reason: contains not printable characters */ private String m2410() { int i = f1573 + 119; f1572 = i % 128; if (i % 2 == 0) { return this.f1579.optString(ik.f2416); } int i2 = 2 / 0; return this.f1579.optString(ik.f2416); } /* renamed from: ﱟ, reason: contains not printable characters */ private void m2416(String str) { int i = f1573 + 77; f1572 = i % 128; int i2 = i % 2; try { this.f1579.put(ik.f2416, str); int i3 = f1572 + 39; f1573 = i3 % 128; int i4 = i3 % 2; } catch (JSONException unused) { } } /* renamed from: ﭖ, reason: contains not printable characters */ private JSONObject m2407() { int i = f1573; int i2 = i + 125; f1572 = i2 % 128; int i3 = i2 % 2; JSONObject jSONObject = this.f1579; int i4 = i + 27; f1572 = i4 % 128; if (i4 % 2 != 0) { int i5 = 60 / 0; } return jSONObject; } /* renamed from: ﻐ, reason: contains not printable characters */ private void m2427(JSONObject jSONObject) { int i = f1573 + 3; f1572 = i % 128; int i2 = i % 2; this.f1579 = jx.m3324(jSONObject); if (i2 != 0) { throw null; } } /* renamed from: ﮌ, reason: contains not printable characters */ private void m2412(String str) { int i = f1573 + 83; f1572 = i % 128; int i2 = i % 2; try { this.f1579.put(ik.f2410, str); int i3 = f1573 + 115; f1572 = i3 % 128; int i4 = i3 % 2; } catch (JSONException unused) { } } /* renamed from: ﭴ, reason: contains not printable characters */ private String m2408() { int i = f1572 + 13; f1573 = i % 128; int i2 = i % 2; String optString = this.f1579.optString(ik.f2410); int i3 = f1572 + 33; f1573 = i3 % 128; int i4 = i3 % 2; return optString; } /* JADX WARN: Code restructure failed: missing block: B:10:0x0039, code lost: if (r3.contains(r2) != false) goto L18; */ /* JADX WARN: Code restructure failed: missing block: B:11:0x003b, code lost: r3.add(r2); r2 = com.ironsource.adqualitysdk.sdk.i.db.f1573 + 117; com.ironsource.adqualitysdk.sdk.i.db.f1572 = r2 % 128; r2 = r2 % 2; */ /* JADX WARN: Code restructure failed: missing block: B:12:0x0049, code lost: r3.contains(r2); */ /* JADX WARN: Code restructure failed: missing block: B:13:0x004d, code lost: throw null; */ /* JADX WARN: Code restructure failed: missing block: B:16:0x0027, code lost: if ((!android.text.TextUtils.isEmpty(r2)) != false) goto L11; */ /* JADX WARN: Code restructure failed: missing block: B:6:0x001e, code lost: if (android.text.TextUtils.isEmpty(r2) == false) goto L11; */ /* JADX WARN: Code restructure failed: missing block: B:7:0x0029, code lost: r0 = com.ironsource.adqualitysdk.sdk.i.db.f1572 + 27; com.ironsource.adqualitysdk.sdk.i.db.f1573 = r0 % 128; */ /* JADX WARN: Code restructure failed: missing block: B:8:0x0033, code lost: if ((r0 % 2) == 0) goto L16; */ /* 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 static void m2442(java.lang.String r2, java.util.List r3) { /* int r0 = com.ironsource.adqualitysdk.sdk.i.db.f1573 int r0 = r0 + 101 int r1 = r0 % 128 com.ironsource.adqualitysdk.sdk.i.db.f1572 = r1 int r0 = r0 % 2 if (r3 == 0) goto L4e int r1 = r1 + 115 int r0 = r1 % 128 com.ironsource.adqualitysdk.sdk.i.db.f1573 = r0 int r1 = r1 % 2 if (r1 != 0) goto L21 boolean r0 = android.text.TextUtils.isEmpty(r2) r1 = 59 int r1 = r1 / 0 if (r0 != 0) goto L4e goto L29 L21: boolean r0 = android.text.TextUtils.isEmpty(r2) r0 = r0 ^ 1 if (r0 == 0) goto L4e L29: int r0 = com.ironsource.adqualitysdk.sdk.i.db.f1572 int r0 = r0 + 27 int r1 = r0 % 128 com.ironsource.adqualitysdk.sdk.i.db.f1573 = r1 int r0 = r0 % 2 if (r0 == 0) goto L49 boolean r0 = r3.contains(r2) if (r0 != 0) goto L4e r3.add(r2) int r2 = com.ironsource.adqualitysdk.sdk.i.db.f1573 int r2 = r2 + 117 int r3 = r2 % 128 com.ironsource.adqualitysdk.sdk.i.db.f1572 = r3 int r2 = r2 % 2 goto L4e L49: r3.contains(r2) r2 = 0 throw r2 L4e: int r2 = com.ironsource.adqualitysdk.sdk.i.db.f1573 int r2 = r2 + 73 int r3 = r2 % 128 com.ironsource.adqualitysdk.sdk.i.db.f1572 = r3 int r2 = r2 % 2 return */ throw new UnsupportedOperationException("Method not decompiled: com.ironsource.adqualitysdk.sdk.i.db.m2442(java.lang.String, java.util.List):void"); } /* renamed from: メ, reason: contains not printable characters */ private static void m2444(List list, List list2) { if (list != null) { int i = f1573 + 7; f1572 = i % 128; int i2 = i % 2; Iterator it = list.iterator(); int i3 = f1573 + 121; f1572 = i3 % 128; int i4 = i3 % 2; while (it.hasNext()) { m2442(it.next(), list2); } } int i5 = f1573 + 75; f1572 = i5 % 128; if (i5 % 2 != 0) { int i6 = 65 / 0; } } /* renamed from: ﮌ, reason: contains not printable characters */ private Object m2411() { boolean z; int i = f1573 + 45; f1572 = i % 128; int i2 = i % 2; if (this.f1584.size() <= 0) { int i3 = f1572 + 33; f1573 = i3 % 128; int i4 = i3 % 2; if (this.f1582.size() <= 0 && this.f1580.size() <= 0) { z = false; return Boolean.valueOf(z); } } z = true; return Boolean.valueOf(z); } /* renamed from: טּ, reason: contains not printable characters */ private JSONObject m2406() { JSONObject jSONObject = new JSONObject(); try { hl hlVar = this.f1578; if (hlVar != null) { jSONObject.put(ik.f2422, hlVar.m2822()); int i = f1572 + 41; f1573 = i % 128; int i2 = i % 2; } hl hlVar2 = this.f1577; if (hlVar2 != null) { jSONObject.put(ik.f2419, hlVar2.m2822()); } if (this.f1584.size() > 0) { jSONObject.put(ik.f2420, new JSONArray((Collection) this.f1584)); } if (this.f1582.size() > 0) { jSONObject.put(ik.f2412, new JSONArray((Collection) this.f1582)); } if (this.f1583.size() > 0) { jSONObject.put(ik.f2416, new JSONArray((Collection) this.f1583)); } if (this.f1581.size() > 0) { jSONObject.put(ik.f2421, new JSONArray((Collection) this.f1581)); } if (this.f1580.size() > 0) { jSONObject.put(ik.f2417, new JSONArray((Collection) this.f1580)); } if (this.f1579.length() > 0) { int i3 = f1573 + 25; f1572 = i3 % 128; if (i3 % 2 != 0) { jSONObject.putOpt(ik.f2418, this.f1579.toString()); throw null; } jSONObject.putOpt(ik.f2418, this.f1579.toString()); } } catch (JSONException unused) { } return jSONObject; } /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */ /* JADX WARN: Code restructure failed: missing block: B:150:0x0333, code lost: if (r19.equals(m2428("鼉齨寚ٴ훳\u1c8a\udf36碂꩒餮䧈Ɏ\uf504갺茄촕æ", (android.util.TypedValue.complexToFraction(0, 0.0f, 0.0f) > 0.0f ? 1 : (android.util.TypedValue.complexToFraction(0, 0.0f, 0.0f) == 0.0f ? 0 : -1)) + 1).intern()) != false) goto L120; */ @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 r19, java.util.List r20, com.ironsource.adqualitysdk.sdk.i.ch r21) { /* Method dump skipped, instructions count: 1720 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: com.ironsource.adqualitysdk.sdk.i.db.mo1335(java.lang.String, java.util.List, com.ironsource.adqualitysdk.sdk.i.ch):java.lang.Object"); } /* renamed from: k, reason: contains not printable characters */ private static String m2432(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 = f1576; char c = f1575; 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 m2428(String str, int i) { String str2; char[] cArr = str; if (str != null) { cArr = str.toCharArray(); } char[] cArr2 = cArr; synchronized (i.f2325) { try { char[] m2999 = i.m2999(f1574, cArr2, i); i.f2324 = 4; while (true) { int i2 = i.f2324; if (i2 < m2999.length) { i.f2323 = i2 - 4; m2999[i.f2324] = (char) ((m2999[r1] ^ m2999[r1 % 4]) ^ (i.f2323 * f1574)); i.f2324++; } else { str2 = new String(m2999, 4, m2999.length - 4); } } } catch (Throwable th) { throw th; } } return str2; } }