package com.ironsource.adqualitysdk.sdk.i; import android.graphics.Color; import android.text.TextUtils; import android.view.Gravity; import android.view.KeyEvent; import android.view.View; import android.view.ViewConfiguration; import android.widget.ExpandableListView; import com.ironsource.adqualitysdk.sdk.ISAdQualityAdType; import com.vungle.ads.internal.signals.SignalKey; import java.util.ArrayList; import java.util.List; import org.json.JSONObject; /* loaded from: classes4.dex */ public final class dg { /* renamed from: ﮐ, reason: contains not printable characters */ private static int f1624 = 1; /* renamed from: ﱡ, reason: contains not printable characters */ private static int f1625 = 0; /* renamed from: ﻏ, reason: contains not printable characters */ private static int f1626 = 104; /* renamed from: ﺙ, reason: contains not printable characters */ private String f1627; /* renamed from: ﻐ, reason: contains not printable characters */ private JSONObject f1628; /* renamed from: ﻛ, reason: contains not printable characters */ private String f1629; /* renamed from: k, reason: contains not printable characters */ private ISAdQualityAdType f1630; /* renamed from: ヌ, reason: contains not printable characters */ private List f1631; /* renamed from: メ, reason: contains not printable characters */ private String f1632; public dg(JSONObject jSONObject) { this.f1630 = ISAdQualityAdType.UNKNOWN; this.f1629 = ds.m2637(jSONObject.optString(m2509(true, "\u0000\t\u0004\ufff5", (ViewConfiguration.getEdgeSlop() >> 16) + 216, 4 - TextUtils.indexOf("", "", 0, 0), Color.red(0) + 3).intern())); String m2637 = ds.m2637(jSONObject.optString(m2509(false, "\uffff\ufffb\ufffe○\u0013\n", 206 - KeyEvent.keyCodeFromString(""), 5 - (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)), -(ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1))).intern())); if (!TextUtils.isEmpty(m2637)) { this.f1630 = ISAdQualityAdType.fromInt(Integer.parseInt(m2637)); } this.f1628 = jSONObject.optJSONObject(m2509(true, "\u0002\ufff6\u0007\ufff6\u0005\b", 211 - View.getDefaultSize(0, 0), 6 - (ViewConfiguration.getScrollBarSize() >> 8), (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) + 4).intern()); this.f1631 = jx.m3331(jSONObject, m2509(true, "\t\ufffe\u000b\ufffe\t\ufff8\ufff6\b\ufffa\ufffe", View.resolveSize(0, 0) + 211, TextUtils.getOffsetBefore("", 0) + 10, (ViewConfiguration.getWindowTouchSlop() >> 8) + 7).intern(), new ArrayList()); this.f1632 = ds.m2637(jSONObject.optString(m2509(true, "\uffdd\u000e\u0000\r\t\u000b\u0003\u0000", 209 - KeyEvent.getDeadChar(0, 0), 10 - Gravity.getAbsoluteGravity(0, 0), (ViewConfiguration.getPressedStateDuration() >> 16) + 5).intern())); this.f1627 = ds.m2637(jSONObject.optString(m2509(true, "\f�\uffdf\u000b\u000f�\u0001○\ufffa�\u000f\n�\f", (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 209, (ViewConfiguration.getKeyRepeatDelay() >> 16) + 14, KeyEvent.keyCodeFromString("") + 11).intern())); } /* renamed from: メ, reason: contains not printable characters */ public final String m2515() { String str; int i = f1624; int i2 = i + SignalKey.EVENT_ID; f1625 = i2 % 128; if (i2 % 2 != 0) { str = this.f1629; int i3 = 69 / 0; } else { str = this.f1629; } int i4 = i + 57; f1625 = i4 % 128; if (i4 % 2 == 0) { return str; } throw null; } /* renamed from: k, reason: contains not printable characters */ public final ISAdQualityAdType m2513() { int i = f1625; int i2 = i + 97; f1624 = i2 % 128; int i3 = i2 % 2; ISAdQualityAdType iSAdQualityAdType = this.f1630; int i4 = i + 57; f1624 = i4 % 128; if (i4 % 2 != 0) { return iSAdQualityAdType; } throw null; } /* renamed from: ヌ, reason: contains not printable characters */ public final JSONObject m2514() { int i = f1625 + 71; int i2 = i % 128; f1624 = i2; int i3 = i % 2; JSONObject jSONObject = this.f1628; int i4 = i2 + 11; f1625 = i4 % 128; int i5 = i4 % 2; return jSONObject; } /* renamed from: ﻛ, reason: contains not printable characters */ public final List m2512() { int i = f1624 + 23; int i2 = i % 128; f1625 = i2; if (i % 2 != 0) { throw null; } List list = this.f1631; int i3 = i2 + 63; f1624 = i3 % 128; int i4 = i3 % 2; return list; } /* renamed from: ﻐ, reason: contains not printable characters */ public final String m2511() { int i = f1624 + 39; f1625 = i % 128; if (i % 2 == 0) { return this.f1632; } throw null; } /* renamed from: ﺙ, reason: contains not printable characters */ public final String m2510() { int i = f1624 + 81; f1625 = i % 128; if (i % 2 == 0) { return this.f1627; } int i2 = 24 / 0; return this.f1627; } /* renamed from: ﻐ, reason: contains not printable characters */ private static String m2509(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] - f1626); 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; } }