package com.ironsource.adqualitysdk.sdk.i; import android.content.Context; import android.content.SharedPreferences; import android.graphics.Color; import android.media.AudioTrack; import android.os.Process; import android.os.SystemClock; import android.provider.Settings; import android.text.TextUtils; import android.view.KeyEvent; import android.view.View; import android.view.ViewConfiguration; import android.widget.ExpandableListView; import com.applovin.exoplayer2.common.base.Ascii; import java.util.UUID; /* loaded from: classes4.dex */ public final class ic { /* renamed from: ﻐ, reason: contains not printable characters */ private static int f2336 = 0; /* renamed from: ヌ, reason: contains not printable characters */ private static int f2339 = 1; /* renamed from: k, reason: contains not printable characters */ private static char[] f2338 = {'a', 35425, 5242, 40543, 10323, 45602, 15422, 50742, 20497, 56035, 'I', 35420, 5205, 40552, 10361, 45597, 15387, 50761, 20535, 56037, 25829, 61126, 30913, 689, 36023, 5765, 41123, 10903, 46447, 16239, 51529, 21343, 56602, 26411, 61709, 31505, 1507, 36839, 6593, 41949, 11681, 47028, 16787, 29501, 63774, 26389, 60735, 23334, 49499, 20227, 46435, 8998, 43423, 6029, 40367, 2985, 29141, 65420, 26078, 54208, 22981, 50722, 19500, 47643, 8193, 44651, 5230, 33362, 2087, 30424, 64702, 27305, 53412, 24274, 50376, 12990, 47350, 9957, 37661, 6407, 34599, 3365, 31555, 57667, 28541, 54568, 17298, 51598, 14323, 11418, 42642, 14488, 45750, 1200, 40588, 4312, 60150, 31935, 62986, 18461, 's', 35424, 5233, 40512, 10320, 45610, 15476, 50702, 20509, 56041, 25843, 61143, 30933, 695, 36023, 5765, 41113, 10907}; /* renamed from: ﻛ, reason: contains not printable characters */ private static long f2337 = 4338732512859556367L; /* renamed from: k, reason: contains not printable characters */ public static void m3010(String str, String str2) { int i = f2336 + 55; f2339 = i % 128; int i2 = i % 2; l.m3417(str, str2); if (i2 == 0) { throw null; } } /* renamed from: メ, reason: contains not printable characters */ private static void m3012(String str, String str2) { int i = f2336 + 3; f2339 = i % 128; int i2 = i % 2; l.m3426(str, str2); if (i2 == 0) { throw null; } } /* renamed from: k, reason: contains not printable characters */ public static String m3009(Context context) { String string = Settings.Secure.getString(context.getApplicationContext().getContentResolver(), m3011((char) TextUtils.indexOf("", ""), ((byte) KeyEvent.getModifierMetaStateMask()) + Ascii.VT, TextUtils.lastIndexOf("", '0') + 1).intern()); if (string == null) { int i = f2336 + 121; f2339 = i % 128; int i2 = i % 2; m3012(m3011((char) (ViewConfiguration.getMaximumDrawingCacheSize() >> 24), 33 - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)), 10 - ((Process.getThreadPriority(0) + 20) >> 6)).intern(), m3011((char) (29566 - (Process.myPid() >> 22)), (KeyEvent.getMaxKeyCode() >> 16) + 46, View.combineMeasuredStates(0, 0) + 43).intern()); string = m3008(context); } int i3 = f2336 + 101; f2339 = i3 % 128; int i4 = i3 % 2; return string; } /* renamed from: ﻐ, reason: contains not printable characters */ private static String m3008(Context context) { int i = f2336 + 125; f2339 = i % 128; int i2 = i % 2; SharedPreferences sharedPreferences = context.getSharedPreferences(m3011((char) ((ViewConfiguration.getFadingEdgeLength() >> 16) + 11497), TextUtils.getCapsMode("", 0, 0) + 11, (AudioTrack.getMaxVolume() > 0.0f ? 1 : (AudioTrack.getMaxVolume() == 0.0f ? 0 : -1)) + 88).intern(), 0); String string = sharedPreferences.getString(m3011((char) ((SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) - 1), 18 - (ViewConfiguration.getMaximumFlingVelocity() >> 16), Color.green(0) + 100).intern(), null); if (!TextUtils.isEmpty(string)) { return string; } int i3 = f2339 + 53; f2336 = i3 % 128; int i4 = i3 % 2; String obj = UUID.randomUUID().toString(); sharedPreferences.edit().putString(m3011((char) ((SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) - 1), 18 - TextUtils.indexOf("", "", 0), 100 - TextUtils.indexOf("", "", 0)).intern(), obj).commit(); int i5 = f2336 + 105; f2339 = i5 % 128; int i6 = i5 % 2; return obj; } /* renamed from: ヌ, reason: contains not printable characters */ private static String m3011(char c, int i, int i2) { String str; synchronized (d.f1568) { try { char[] cArr = new char[i]; d.f1567 = 0; while (true) { int i3 = d.f1567; if (i3 < i) { cArr[i3] = (char) ((f2338[i2 + i3] ^ (i3 * f2337)) ^ c); d.f1567 = i3 + 1; } else { str = new String(cArr); } } } catch (Throwable th) { throw th; } } return str; } }