package com.ironsource.adqualitysdk.sdk.i; import android.graphics.Color; import android.text.TextUtils; import android.view.View; import android.view.ViewConfiguration; import java.util.UUID; import org.json.JSONException; import org.json.JSONObject; /* loaded from: classes4.dex */ public final class iv { /* renamed from: ﻐ, reason: contains not printable characters */ private static int f2484 = 0; /* renamed from: ﻛ, reason: contains not printable characters */ private static int f2485 = 1; /* renamed from: ヌ, reason: contains not printable characters */ private static int f2486 = 148; /* renamed from: k, reason: contains not printable characters */ private String f2487; /* renamed from: メ, reason: contains not printable characters */ private JSONObject f2488; public iv(JSONObject jSONObject) { this(jSONObject, UUID.randomUUID().toString()); } public iv(JSONObject jSONObject, String str) { this.f2488 = jSONObject; this.f2487 = str; } /* renamed from: ヌ, reason: contains not printable characters */ public final JSONObject m3075() throws JSONException { JSONObject jSONObject = new JSONObject(); jSONObject.put(m3073(false, "\ufff9\f\ufff9\b\u0007\u000b\fᅵ", TextUtils.getTrimmedLength("") + 252, 7 - TextUtils.indexOf((CharSequence) "", '0'), Color.rgb(0, 0, 0) + 16777219).intern(), this.f2488); jSONObject.put(m3073(false, "\b\ufff7\b", 257 - View.MeasureSpec.getSize(0), TextUtils.indexOf((CharSequence) "", '0') + 5, 3 - (ViewConfiguration.getTapTimeout() >> 16)).intern(), this.f2487); int i = f2484 + 31; f2485 = i % 128; if (i % 2 != 0) { return jSONObject; } throw null; } /* renamed from: ﻐ, reason: contains not printable characters */ public final JSONObject m3074() { int i = f2485; int i2 = i + 37; f2484 = i2 % 128; int i3 = i2 % 2; JSONObject jSONObject = this.f2488; int i4 = i + 29; f2484 = i4 % 128; if (i4 % 2 == 0) { return jSONObject; } throw null; } /* renamed from: メ, reason: contains not printable characters */ public final String m3076() { int i = f2485; int i2 = i + 17; f2484 = i2 % 128; if (i2 % 2 != 0) { throw null; } String str = this.f2487; int i3 = i + 91; f2484 = i3 % 128; if (i3 % 2 != 0) { int i4 = 59 / 0; } return str; } /* renamed from: メ, reason: contains not printable characters */ private static String m3073(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] - f2486); 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; } }