package o; import android.graphics.Bitmap; import android.os.Build; import android.os.ParcelFileDescriptor; import android.os.SystemClock; import android.text.TextUtils; import android.view.Gravity; import android.view.View; import android.view.ViewConfiguration; import android.widget.ExpandableListView; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import com.huawei.hms.android.SystemUtils; import java.io.IOException; import java.lang.reflect.Method; import net.sf.scuba.smartcards.ISO7816; import o.zSt; import org.bouncycastle.crypto.tls.CipherSuite; /* loaded from: classes.dex */ public final class HnJ implements iYP { private final NLP a; private static final byte[] $$a = {61, 7, ISO7816.INS_READ_RECORD_STAMPED, 119}; private static final int $$b = CipherSuite.TLS_DH_DSS_WITH_AES_128_GCM_SHA256; private static int $10 = 0; private static int $11 = 1; private static int g = 0; private static int j = 1; private static char b = 40035; private static char c = 43207; private static char d = 34562; private static char e = 31893; private static void h(short s, int i, byte b2, Object[] objArr) { byte[] bArr = $$a; int i2 = 4 - (i * 2); int i3 = s * 3; int i4 = b2 + 66; byte[] bArr2 = new byte[i3 + 1]; int i5 = -1; if (bArr == null) { i4 += i3; i2++; } while (true) { i5++; bArr2[i5] = (byte) i4; if (i5 == i3) { objArr[0] = new String(bArr2, 0); return; } else { i4 += bArr[i2]; i2++; } } } @Override // o.iYP public final /* synthetic */ Ezi a(ParcelFileDescriptor parcelFileDescriptor, int i, int i2, unA una) throws IOException { int i3 = 2 % 2; int i4 = j + 65; g = i4 % 128; int i5 = i4 % 2; Ezi EW_ = EW_(parcelFileDescriptor, i, i2, una); int i6 = j + 29; g = i6 % 128; if (i6 % 2 == 0) { return EW_; } throw null; } @Override // o.iYP public final /* synthetic */ boolean a(ParcelFileDescriptor parcelFileDescriptor, unA una) throws IOException { int i = 2 % 2; int i2 = j + 25; g = i2 % 128; int i3 = i2 % 2; System.identityHashCode(this); boolean booleanValue = ((Boolean) b(new Object[]{this, parcelFileDescriptor})).booleanValue(); int i4 = j + 19; g = i4 % 128; if (i4 % 2 == 0) { return booleanValue; } Object obj = null; obj.hashCode(); throw null; } public HnJ(NLP nlp) { this.a = nlp; } /* JADX INFO: Access modifiers changed from: private */ /* JADX WARN: Code restructure failed: missing block: B:6:0x0030, code lost: if (o.NLP.e() != true) goto L12; */ /* JADX WARN: Code restructure failed: missing block: B:7:0x003b, code lost: r0 = true; */ /* JADX WARN: Code restructure failed: missing block: B:9:0x0039, code lost: if (o.NLP.e() != false) goto L11; */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public static /* synthetic */ java.lang.Object b(java.lang.Object[] r6) { /* r0 = 0 r1 = r6[r0] o.HnJ r1 = (o.HnJ) r1 r2 = 1 r6 = r6[r2] android.os.ParcelFileDescriptor r6 = (android.os.ParcelFileDescriptor) r6 r3 = 2 int r4 = r3 % r3 int r4 = o.HnJ.j int r4 = r4 + 61 int r5 = r4 % 128 o.HnJ.g = r5 int r4 = r4 % r3 boolean r6 = EV_(r6) if (r6 == 0) goto L3c int r6 = o.HnJ.j int r6 = r6 + 97 int r4 = r6 % 128 o.HnJ.g = r4 int r6 = r6 % r3 if (r6 == 0) goto L33 o.NLP r6 = r1.a boolean r6 = o.NLP.e() r1 = 43 int r1 = r1 / r0 if (r6 == r2) goto L3b goto L3c L33: o.NLP r6 = r1.a boolean r6 = o.NLP.e() if (r6 == 0) goto L3c L3b: r0 = r2 L3c: int r6 = o.HnJ.g int r6 = r6 + 23 int r1 = r6 % 128 o.HnJ.j = r1 int r6 = r6 % r3 java.lang.Boolean r6 = java.lang.Boolean.valueOf(r0) return r6 */ throw new UnsupportedOperationException("Method not decompiled: o.HnJ.b(java.lang.Object[]):java.lang.Object"); } private static boolean EV_(ParcelFileDescriptor parcelFileDescriptor) { int i = 2 % 2; int i2 = j + 107; g = i2 % 128; int i3 = i2 % 2; Object[] objArr = new Object[1]; f(new char[]{34211, 33460, 61165, 35239, 54056, 46335}, (ViewConfiguration.getTapTimeout() >> 16) + 6, objArr); if (!((String) objArr[0]).intern().equalsIgnoreCase(Build.MANUFACTURER)) { int i4 = g + 9; j = i4 % 128; int i5 = i4 % 2; if (!SystemUtils.PRODUCT_HONOR.equalsIgnoreCase(Build.MANUFACTURER)) { int i6 = j + 111; g = i6 % 128; int i7 = i6 % 2; return true; } } return parcelFileDescriptor.getStatSize() <= 536870912; } private Ezi EW_(ParcelFileDescriptor parcelFileDescriptor, int i, int i2, unA una) throws IOException { int i3 = 2 % 2; NLP nlp = this.a; Ezi e2 = nlp.e(new zSt.RVV(parcelFileDescriptor, nlp.j, nlp.a), i, i2, una, NLP.b); int i4 = j + 83; g = i4 % 128; if (i4 % 2 == 0) { return e2; } Object obj = null; obj.hashCode(); throw null; } private static void f(char[] cArr, int i, Object[] objArr) { int i2; int i3 = 2 % 2; jTb jtb = new jTb(); char[] cArr2 = new char[cArr.length]; int i4 = 0; jtb.b = 0; char[] cArr3 = new char[2]; while (jtb.b < cArr.length) { int i5 = $11 + 85; $10 = i5 % 128; int i6 = 58224; if (i5 % 2 != 0) { cArr3[1] = cArr[jtb.b]; cArr3[1] = cArr[jtb.b]; i2 = 1; } else { cArr3[i4] = cArr[jtb.b]; cArr3[1] = cArr[jtb.b + 1]; i2 = i4; } while (i2 < 16) { int i7 = $11 + 71; $10 = i7 % 128; int i8 = i7 % 2; char c2 = cArr3[1]; char c3 = cArr3[i4]; char[] cArr4 = cArr3; try { Object[] objArr2 = {Integer.valueOf(c2), Integer.valueOf((c3 + i6) ^ ((c3 << 4) + ((char) (d ^ 41718355337583039L)))), Integer.valueOf(c3 >>> 5), Integer.valueOf(e)}; Object obj = xzZ.y.get(597144044); if (obj == null) { Class cls = (Class) xzZ.c(412 - ExpandableListView.getPackedPositionGroup(0L), 6 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)), (char) ((SystemClock.elapsedRealtime() > 0L ? 1 : (SystemClock.elapsedRealtime() == 0L ? 0 : -1)) - 1)); byte b2 = (byte) 0; byte b3 = b2; Object[] objArr3 = new Object[1]; h(b2, b3, b3, objArr3); obj = cls.getMethod((String) objArr3[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE); xzZ.y.put(597144044, obj); } char charValue = ((Character) ((Method) obj).invoke(null, objArr2)).charValue(); cArr4[1] = charValue; Object[] objArr4 = {Integer.valueOf(cArr4[0]), Integer.valueOf((charValue + i6) ^ ((charValue << 4) + ((char) (b ^ 41718355337583039L)))), Integer.valueOf(charValue >>> 5), Integer.valueOf(c)}; Object obj2 = xzZ.y.get(597144044); if (obj2 == null) { Class cls2 = (Class) xzZ.c(View.MeasureSpec.getMode(0) + 412, Gravity.getAbsoluteGravity(0, 0) + 5, (char) ((SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)) - 1)); byte b4 = (byte) 0; byte b5 = b4; Object[] objArr5 = new Object[1]; h(b4, b5, b5, objArr5); obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE); xzZ.y.put(597144044, obj2); } cArr4[0] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue(); i6 -= 40503; i2++; cArr3 = cArr4; i4 = 0; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } char[] cArr5 = cArr3; cArr2[jtb.b] = cArr5[0]; cArr2[jtb.b + 1] = cArr5[1]; Object[] objArr6 = {jtb, jtb}; Object obj3 = xzZ.y.get(943004485); if (obj3 == null) { Class cls3 = (Class) xzZ.c(98 - (ViewConfiguration.getScrollDefaultDelay() >> 16), (ViewConfiguration.getPressedStateDuration() >> 16) + 5, (char) TextUtils.indexOf("", "")); byte b6 = (byte) 0; byte b7 = b6; Object[] objArr7 = new Object[1]; h(b6, b7, (byte) (b7 + 1), objArr7); obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class); xzZ.y.put(943004485, obj3); } ((Method) obj3).invoke(null, objArr6); cArr3 = cArr5; i4 = 0; } String str = new String(cArr2, 0, i); int i9 = $10 + 43; $11 = i9 % 128; int i10 = i9 % 2; objArr[0] = str; } private boolean EX_(ParcelFileDescriptor parcelFileDescriptor) { System.identityHashCode(this); return ((Boolean) b(new Object[]{this, parcelFileDescriptor})).booleanValue(); } }