package o; import android.graphics.Color; 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 com.google.android.gms.maps.model.BitmapDescriptorFactory; import java.lang.reflect.Method; import org.bouncycastle.crypto.tls.CipherSuite; /* loaded from: classes3.dex */ public final class DJB { private final Xky b; private static final byte[] $$a = {13, 13, 103, -97}; private static final int $$b = 209; private static int $10 = 0; private static int $11 = 1; private static int d = 0; private static int a = 1; private static int c = 2015661731; /* JADX WARN: Removed duplicated region for block: B:10:0x0029 */ /* JADX WARN: Removed duplicated region for block: B:7:0x0021 */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0029 -> B:4:0x0031). Please report as a decompilation issue!!! */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private static void f(short r6, short r7, short r8, java.lang.Object[] r9) { /* int r6 = r6 * 2 int r6 = 3 - r6 int r8 = r8 * 4 int r8 = r8 + 1 byte[] r0 = o.DJB.$$a int r7 = r7 * 7 int r7 = r7 + 69 byte[] r1 = new byte[r8] r2 = 0 if (r0 != 0) goto L16 r3 = r6 r4 = r2 goto L31 L16: r3 = r2 r5 = r7 r7 = r6 r6 = r5 L1a: byte r4 = (byte) r6 r1[r3] = r4 int r3 = r3 + 1 if (r3 != r8) goto L29 java.lang.String r6 = new java.lang.String r6.(r1, r2) r9[r2] = r6 return L29: int r7 = r7 + 1 r4 = r0[r7] r5 = r3 r3 = r7 r7 = r4 r4 = r5 L31: int r6 = r6 + r7 r7 = r3 r3 = r4 goto L1a */ throw new UnsupportedOperationException("Method not decompiled: o.DJB.f(short, short, short, java.lang.Object[]):void"); } @InterfaceC13391fZD public DJB(Xky xky) { C14957gcv.e(xky, ""); this.b = xky; } public final boolean d() { String str; int i = 2 % 2; int i2 = d + 51; a = i2 % 128; int i3 = i2 % 2; iKd K = this.b.K(); if (K != null) { int i4 = d + 95; a = i4 % 128; int i5 = i4 % 2; str = K.i; int i6 = d + 59; a = i6 % 128; int i7 = i6 % 2; } else { int i8 = a + 95; d = i8 % 128; int i9 = i8 % 2; str = null; } Object[] objArr = new Object[1]; e(1 - (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)), View.MeasureSpec.makeMeasureSpec(0, 0) + 1, 181 - (ExpandableListView.getPackedPositionForGroup(0) > 0L ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0L ? 0 : -1)), new char[]{0}, false, objArr); return C14957gcv.b((Object) str, (Object) ((String) objArr[0]).intern()); } private static void e(int i, int i2, int i3, char[] cArr, boolean z, Object[] objArr) { int i4 = 2 % 2; zUI zui = new zUI(); char[] cArr2 = new char[i]; zui.d = 0; while (zui.d < i) { int i5 = $11 + 3; $10 = i5 % 128; int i6 = i5 % 2; zui.c = cArr[zui.d]; cArr2[zui.d] = (char) (i3 + zui.c); int i7 = zui.d; try { Object[] objArr2 = {Integer.valueOf(cArr2[i7]), Integer.valueOf(c)}; Object obj = xzZ.y.get(880493502); if (obj == null) { Class cls = (Class) xzZ.c(Color.green(0) + CipherSuite.TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA, 7 - Color.blue(0), (char) (((byte) KeyEvent.getModifierMetaStateMask()) + 1)); byte b = (byte) 0; byte b2 = b; Object[] objArr3 = new Object[1]; f(b, b2, b2, objArr3); obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE); xzZ.y.put(880493502, obj); } cArr2[i7] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue(); Object[] objArr4 = {zui, zui}; Object obj2 = xzZ.y.get(1294990079); if (obj2 == null) { Class cls2 = (Class) xzZ.c(ExpandableListView.getPackedPositionChild(0L) + 343, Color.red(0) + 5, (char) TextUtils.getOffsetAfter("", 0)); byte b3 = (byte) 0; byte b4 = (byte) (b3 + 1); Object[] objArr5 = new Object[1]; f(b3, b4, (byte) (b4 - 1), objArr5); obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class); xzZ.y.put(1294990079, obj2); } ((Method) obj2).invoke(null, objArr4); } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } if (i2 > 0) { int i8 = $10 + 67; $11 = i8 % 128; int i9 = i8 % 2; zui.a = i2; char[] cArr3 = new char[i]; System.arraycopy(cArr2, 0, cArr3, 0, i); System.arraycopy(cArr3, 0, cArr2, i - zui.a, zui.a); System.arraycopy(cArr3, zui.a, cArr2, 0, i - zui.a); } if (z) { int i10 = $10 + 95; $11 = i10 % 128; int i11 = i10 % 2; char[] cArr4 = new char[i]; zui.d = 0; while (zui.d < i) { int i12 = $10 + 73; $11 = i12 % 128; if (i12 % 2 == 0) { cArr4[zui.d] = cArr2[(i << zui.d) % 0]; Object[] objArr6 = {zui, zui}; Object obj3 = xzZ.y.get(1294990079); if (obj3 == null) { Class cls3 = (Class) xzZ.c(TextUtils.indexOf("", "", 0) + 342, 5 - Color.red(0), (char) ((ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) - 1)); byte b5 = (byte) 0; byte b6 = (byte) (b5 + 1); Object[] objArr7 = new Object[1]; f(b5, b6, (byte) (b6 - 1), objArr7); obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class); xzZ.y.put(1294990079, obj3); } ((Method) obj3).invoke(null, objArr6); } else { cArr4[zui.d] = cArr2[(i - zui.d) - 1]; Object[] objArr8 = {zui, zui}; Object obj4 = xzZ.y.get(1294990079); if (obj4 == null) { Class cls4 = (Class) xzZ.c(341 - MotionEvent.axisFromString(""), TextUtils.getCapsMode("", 0, 0) + 5, (char) (ViewConfiguration.getTapTimeout() >> 16)); byte b7 = (byte) 0; byte b8 = (byte) (b7 + 1); Object[] objArr9 = new Object[1]; f(b7, b8, (byte) (b8 - 1), objArr9); obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class); xzZ.y.put(1294990079, obj4); } ((Method) obj4).invoke(null, objArr8); } } cArr2 = cArr4; } objArr[0] = new String(cArr2); } }