package com.ironsource.adqualitysdk.sdk.i; import android.graphics.drawable.Drawable; import android.os.Process; import android.text.TextUtils; import android.util.TypedValue; import android.view.KeyEvent; import android.view.MotionEvent; import android.view.View; import android.view.ViewConfiguration; import android.widget.ExpandableListView; import java.util.Arrays; import java.util.List; import org.json.JSONException; import org.json.JSONObject; /* loaded from: classes4.dex */ public final class ah implements Comparable { /* renamed from: ﻐ, reason: contains not printable characters */ private static int f227 = 0; /* renamed from: ヌ, reason: contains not printable characters */ private static int f228 = 1; /* renamed from: メ, reason: contains not printable characters */ private static int f229 = 66; /* renamed from: k, reason: contains not printable characters */ private iv f230; @Override // java.lang.Comparable public final /* synthetic */ int compareTo(ah ahVar) { int i = f227 + 17; f228 = i % 128; ah ahVar2 = ahVar; if (i % 2 == 0) { m1027(ahVar2); throw null; } int m1027 = m1027(ahVar2); int i2 = f227 + 63; f228 = i2 % 128; if (i2 % 2 != 0) { return m1027; } throw null; } public ah(iv ivVar) { this.f230 = ivVar; } /* renamed from: ﻐ, reason: contains not printable characters */ public final synchronized JSONObject m1031() { JSONObject m3074; int i = f228 + 99; f227 = i % 128; int i2 = i % 2; m3074 = this.f230.m3074(); int i3 = f228 + 33; f227 = i3 % 128; int i4 = i3 % 2; return m3074; } /* renamed from: ヌ, reason: contains not printable characters */ public final synchronized void m1035(int i) { try { int i2 = f228 + 23; f227 = i2 % 128; int i3 = i2 % 2; if (this.f230.m3074() != null) { int i4 = f227 + 3; f228 = i4 % 128; if (i4 % 2 == 0) { jx.m3327(this.f230.m3074(), i, m1030()); throw null; } jx.m3327(this.f230.m3074(), i, m1030()); } } catch (Throwable th) { throw th; } } /* renamed from: ヌ, reason: contains not printable characters */ private static List m1030() { int i = f228 + 103; f227 = i % 128; if (i % 2 == 0) { return Arrays.asList(ik.f2403); } String[] strArr = new String[0]; strArr[0] = ik.f2403; return Arrays.asList(strArr); } /* renamed from: メ, reason: contains not printable characters */ public final iv m1036() { int i = f227 + 95; int i2 = i % 128; f228 = i2; int i3 = i % 2; iv ivVar = this.f230; int i4 = i2 + 103; f227 = i4 % 128; int i5 = i4 % 2; return ivVar; } /* renamed from: ﺙ, reason: contains not printable characters */ private long m1026() { int i = f227 + 21; f228 = i % 128; int i2 = i % 2; long optLong = m1031().optLong(m1029(false, "\u0001\u0000", (ViewConfiguration.getWindowTouchSlop() >> 8) + 181, 2 - (KeyEvent.getMaxKeyCode() >> 16), 2 - TextUtils.indexOf("", "", 0, 0)).intern()); int i3 = f227 + 41; f228 = i3 % 128; int i4 = i3 % 2; return optLong; } /* renamed from: ﱟ, reason: contains not printable characters */ private long m1024() { int i = f228 + 11; f227 = i % 128; int i2 = i % 2; long optInt = m1031().optInt(m1029(false, "\u0005", 172 - (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)), 1 - (TypedValue.complexToFloat(0) > 0.0f ? 1 : (TypedValue.complexToFloat(0) == 0.0f ? 0 : -1)), (TypedValue.complexToFloat(0) > 0.0f ? 1 : (TypedValue.complexToFloat(0) == 0.0f ? 0 : -1)) + 2).intern()); int i3 = f227 + 21; f228 = i3 % 128; if (i3 % 2 != 0) { return optInt; } throw null; } /* renamed from: ﱡ, reason: contains not printable characters */ private String m1025() { int i = f227 + 51; f228 = i % 128; int i2 = i % 2; String m3076 = this.f230.m3076(); int i3 = f227 + 53; f228 = i3 % 128; int i4 = i3 % 2; return m3076; } /* renamed from: k, reason: contains not printable characters */ public final String m1034() { JSONObject m1031; String m1029; int i = f227 + 37; f228 = i % 128; if (i % 2 == 0) { m1031 = m1031(); m1029 = m1029(false, "\ufffb\u0002\u0004\u0000", 24451 / View.getDefaultSize(0, 1), 5 >> TextUtils.indexOf((CharSequence) "", (char) 23), 2 - (Process.myTid() * 33)); } else { m1031 = m1031(); m1029 = m1029(false, "\ufffb\u0002\u0004\u0000", 174 - View.getDefaultSize(0, 0), TextUtils.indexOf((CharSequence) "", '0') + 3, (Process.myTid() >> 22) + 4); } String optString = m1031.optString(m1029.intern()); int i2 = f228 + 27; f227 = i2 % 128; int i3 = i2 % 2; return optString; } /* renamed from: ﻛ, reason: contains not printable characters */ public final String m1033() { JSONObject m1031; String m1029; int i = f228 + 43; f227 = i % 128; if (i % 2 != 0) { m1031 = m1031(); m1029 = m1029(false, "\ufffe\ufff9\n", 1091 << (KeyEvent.getMaxKeyCode() % 87), 2 / (ViewConfiguration.getScrollDefaultDelay() >> 12), 5 >> TextUtils.indexOf((CharSequence) "", 'F')); } else { m1031 = m1031(); m1029 = m1029(false, "\ufffe\ufff9\n", 173 - (KeyEvent.getMaxKeyCode() >> 16), (ViewConfiguration.getScrollDefaultDelay() >> 16) + 2, 2 - TextUtils.indexOf((CharSequence) "", '0')); } return m1031.optString(m1029.intern(), null); } /* renamed from: ﻐ, reason: contains not printable characters */ public final void m1032(String str) { int i = f228 + 5; f227 = i % 128; int i2 = i % 2; try { m1031().put(m1029(false, "\ufffe\ufff9\n", Drawable.resolveOpacity(0, 0) + 173, 1 - MotionEvent.axisFromString(""), (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 4).intern(), str); int i3 = f228 + 65; f227 = i3 % 128; int i4 = i3 % 2; } catch (JSONException unused) { } } public final String toString() { int i = f227 + 81; f228 = i % 128; int i2 = i % 2; String jSONObject = m1031().toString(); int i3 = f227 + 23; f228 = i3 % 128; if (i3 % 2 == 0) { int i4 = 5 / 0; } return jSONObject; } public final boolean equals(Object obj) { if (this == obj) { return true; } if (obj != null) { int i = f227 + 79; f228 = i % 128; if (i % 2 == 0) { obj.getClass(); throw null; } if (ah.class == obj.getClass()) { return m1025().equals(((ah) obj).m1025()); } } int i2 = f228 + 95; f227 = i2 % 128; if (i2 % 2 == 0) { return false; } throw null; } public final int hashCode() { if (m1031() == null) { int i = f228 + 11; f227 = i % 128; int i2 = i % 2; return 0; } int hashCode = m1031().hashCode(); int i3 = f228 + 67; f227 = i3 % 128; if (i3 % 2 == 0) { return hashCode; } throw null; } /* renamed from: ﻐ, reason: contains not printable characters */ private int m1027(ah ahVar) { long m1026; long m10262; int i = f227 + 99; f228 = i % 128; if (i % 2 == 0) { m1026 = m1026(); m10262 = ahVar.m1026(); int i2 = 7 / 0; if (m1026 < m10262) { return -1; } } else { m1026 = m1026(); m10262 = ahVar.m1026(); if (m1026 < m10262) { return -1; } } if (m1026 != m10262) { return 1; } int i3 = f227 + 35; f228 = i3 % 128; if (i3 % 2 != 0) { return m1028(ahVar); } m1028(ahVar); throw null; } /* renamed from: k, reason: contains not printable characters */ private int m1028(ah ahVar) { int i = f227 + 15; f228 = i % 128; int i2 = i % 2; long m1024 = m1024(); long m10242 = ahVar.m1024(); if (m1024 >= m10242) { if (m1024 != m10242) { return 1; } int i3 = f227 + 25; f228 = i3 % 128; int i4 = i3 % 2; return 0; } int i5 = f227; int i6 = i5 + 99; f228 = i6 % 128; int i7 = i6 % 2; int i8 = i5 + 93; f228 = i8 % 128; int i9 = i8 % 2; return -1; } /* renamed from: k, reason: contains not printable characters */ private static String m1029(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[i3]; a.f56 = 0; while (true) { int i4 = a.f56; if (i4 >= i3) { break; } a.f54 = cArr2[i4]; cArr3[a.f56] = (char) (a.f54 + i); int i5 = a.f56; cArr3[i5] = (char) (cArr3[i5] - f229); a.f56 = i5 + 1; } if (i2 > 0) { a.f55 = i2; char[] cArr4 = new char[i3]; System.arraycopy(cArr3, 0, cArr4, 0, i3); int i6 = a.f55; System.arraycopy(cArr4, 0, cArr3, i3 - i6, i6); int i7 = a.f55; System.arraycopy(cArr4, i7, cArr3, 0, i3 - i7); } if (z) { char[] cArr5 = new char[i3]; a.f56 = 0; while (true) { int i8 = a.f56; if (i8 >= i3) { break; } cArr5[i8] = cArr3[(i3 - i8) - 1]; a.f56 = i8 + 1; } cArr3 = cArr5; } str2 = new String(cArr3); } catch (Throwable th) { throw th; } } return str2; } }