package o; import android.graphics.Color; import android.os.Process; import android.os.SystemClock; import android.text.AndroidCharacter; import android.text.TextUtils; import android.util.TypedValue; import android.view.KeyEvent; import android.view.View; import android.view.ViewConfiguration; import android.widget.ExpandableListView; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import com.google.gson.annotations.SerializedName; import java.lang.reflect.Method; import net.sf.scuba.smartcards.ISOFileInfo; /* loaded from: classes3.dex */ public class RSw { @SerializedName("totalGiftCount") private int b; @SerializedName("endOfListFlag") private String c; private static final byte[] $$a = {40, 9, -20, ISOFileInfo.AB}; private static final int $$b = 33; private static int $10 = 0; private static int $11 = 1; private static int h = 0; private static int g = 1; private static char[] d = {15971}; private static int e = 1934310994; private static boolean a = true; private static boolean j = true; private static void i(int i, byte b, int i2, Object[] objArr) { int i3 = (b * 57) + 65; int i4 = 3 - (i * 4); byte[] bArr = $$a; int i5 = i2 * 4; byte[] bArr2 = new byte[1 - i5]; int i6 = 0 - i5; int i7 = -1; if (bArr == null) { i3 = i4 + (-i6); i4 = i4; } while (true) { i7++; bArr2[i7] = (byte) i3; int i8 = i4 + 1; if (i7 == i6) { objArr[0] = new String(bArr2, 0); return; } else { i3 += -bArr[i8]; i4 = i8; } } } public final boolean c() { int i = 2 % 2; int i2 = h + 83; g = i2 % 128; int i3 = i2 % 2; String str = this.c; Object[] objArr = new Object[1]; f(null, new byte[]{ISOFileInfo.DATA_BYTES2}, null, ((byte) KeyEvent.getModifierMetaStateMask()) + 128, objArr); boolean equalsIgnoreCase = ((String) objArr[0]).intern().equalsIgnoreCase(str); int i4 = h + 121; g = i4 % 128; if (i4 % 2 != 0) { return equalsIgnoreCase; } throw null; } private static void f(char[] cArr, byte[] bArr, int[] iArr, int i, Object[] objArr) { int i2 = 2; int i3 = 2 % 2; C3614bBe c3614bBe = new C3614bBe(); char[] cArr2 = d; if (cArr2 != null) { int length = cArr2.length; char[] cArr3 = new char[length]; int i4 = 0; while (i4 < length) { int i5 = $10 + 115; $11 = i5 % 128; if (i5 % i2 == 0) { try { Object[] objArr2 = {Integer.valueOf(cArr2[i4])}; Object obj = xzZ.y.get(-950481649); if (obj == null) { Class cls = (Class) xzZ.c((TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFraction(0, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 337, AndroidCharacter.getMirror('0') - '+', (char) (ViewConfiguration.getJumpTapTimeout() >> 16)); byte b = (byte) 0; byte b2 = b; Object[] objArr3 = new Object[1]; i(b, b2, b2, objArr3); obj = cls.getMethod((String) objArr3[0], Integer.TYPE); xzZ.y.put(-950481649, obj); } cArr3[i4] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue(); } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } else { Object[] objArr4 = {Integer.valueOf(cArr2[i4])}; Object obj2 = xzZ.y.get(-950481649); if (obj2 == null) { Class cls2 = (Class) xzZ.c(337 - View.resolveSize(0, 0), 6 - (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)), (char) Color.alpha(0)); byte b3 = (byte) 0; byte b4 = b3; Object[] objArr5 = new Object[1]; i(b3, b4, b4, objArr5); obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE); xzZ.y.put(-950481649, obj2); } cArr3[i4] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue(); i4++; } i2 = 2; } cArr2 = cArr3; } Object[] objArr6 = {Integer.valueOf(e)}; Object obj3 = xzZ.y.get(-1521625011); if (obj3 == null) { Class cls3 = (Class) xzZ.c(283 - (ViewConfiguration.getLongPressTimeout() >> 16), (ExpandableListView.getPackedPositionForChild(0, 0) > 0L ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0L ? 0 : -1)) + 6, (char) (Color.rgb(0, 0, 0) + 16817029)); byte b5 = (byte) 0; byte b6 = (byte) (b5 + 1); Object[] objArr7 = new Object[1]; i(b5, b6, (byte) (b6 - 1), objArr7); obj3 = cls3.getMethod((String) objArr7[0], Integer.TYPE); xzZ.y.put(-1521625011, obj3); } int intValue = ((Integer) ((Method) obj3).invoke(null, objArr6)).intValue(); if (j) { c3614bBe.c = bArr.length; char[] cArr4 = new char[c3614bBe.c]; c3614bBe.a = 0; while (c3614bBe.a < c3614bBe.c) { cArr4[c3614bBe.a] = (char) (cArr2[bArr[(c3614bBe.c - 1) - c3614bBe.a] + i] - intValue); Object[] objArr8 = {c3614bBe, c3614bBe}; Object obj4 = xzZ.y.get(1779759091); if (obj4 == null) { obj4 = ((Class) xzZ.c((ViewConfiguration.getMaximumFlingVelocity() >> 16) + 40, View.combineMeasuredStates(0, 0) + 5, (char) (ViewConfiguration.getMinimumFlingVelocity() >> 16))).getMethod("D", Object.class, Object.class); xzZ.y.put(1779759091, obj4); } ((Method) obj4).invoke(null, objArr8); } objArr[0] = new String(cArr4); return; } if (!a) { c3614bBe.c = iArr.length; char[] cArr5 = new char[c3614bBe.c]; c3614bBe.a = 0; while (c3614bBe.a < c3614bBe.c) { cArr5[c3614bBe.a] = (char) (cArr2[iArr[(c3614bBe.c - 1) - c3614bBe.a] - i] - intValue); c3614bBe.a++; } objArr[0] = new String(cArr5); return; } int i6 = $11 + 81; $10 = i6 % 128; int i7 = i6 % 2; c3614bBe.c = cArr.length; char[] cArr6 = new char[c3614bBe.c]; c3614bBe.a = 0; while (c3614bBe.a < c3614bBe.c) { int i8 = $11 + 93; $10 = i8 % 128; int i9 = i8 % 2; cArr6[c3614bBe.a] = (char) (cArr2[cArr[(c3614bBe.c - 1) - c3614bBe.a] - i] - intValue); Object[] objArr9 = {c3614bBe, c3614bBe}; Object obj5 = xzZ.y.get(1779759091); if (obj5 == null) { obj5 = ((Class) xzZ.c(TextUtils.getCapsMode("", 0, 0) + 40, 6 - (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)), (char) (1 - (SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1))))).getMethod("D", Object.class, Object.class); xzZ.y.put(1779759091, obj5); } ((Method) obj5).invoke(null, objArr9); } String str = new String(cArr6); int i10 = $10 + 103; $11 = i10 % 128; int i11 = i10 % 2; objArr[0] = str; } public final int b() { int i = 2 % 2; int i2 = g + 75; h = i2 % 128; int i3 = i2 % 2; int i4 = this.b; if (i3 != 0) { int i5 = 70 / 0; } return i4; } }