package o; import android.os.Process; import android.text.AndroidCharacter; import android.text.TextUtils; import android.view.MotionEvent; import android.view.ViewConfiguration; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import com.google.android.libraries.places.api.model.PlaceTypes; import com.google.common.base.Ascii; import java.lang.reflect.Method; import o.Mqw; import o.WVX; import o.Xnj; import org.jmrtd.lds.CVCAFile; /* loaded from: classes3.dex */ public final class BlO { private final TZa c; private static final byte[] $$a = {CVCAFile.CAR_TAG, 74, -6, Ascii.DEL}; private static final int $$b = 29; private static int $10 = 0; private static int $11 = 1; private static int e = 0; private static int a = 1; private static long d = -87905423634717968L; private static void f(short s, byte b, int i, Object[] objArr) { int i2 = (s * 2) + 119; int i3 = i * 3; int i4 = 3 - (b * 3); byte[] bArr = $$a; byte[] bArr2 = new byte[i3 + 1]; int i5 = -1; if (bArr == null) { int i6 = i4 + i3; i4 = i4; i2 = i6; } while (true) { i5++; bArr2[i5] = (byte) i2; int i7 = i4 + 1; if (i5 == i3) { objArr[0] = new String(bArr2, 0); return; } i4 = i7; i2 += bArr[i7]; } } @InterfaceC13391fZD public BlO(TZa tZa) { C14957gcv.e(tZa, ""); this.c = tZa; } public final Mqw c(Xnj xnj) { String str; String str2; String str3; int i = 2 % 2; C14957gcv.e(xnj, ""); String str4 = xnj.e; String str5 = xnj.a; String str6 = xnj.h; Xnj.Sts sts = xnj.c; GJE gje = null; String str7 = sts != null ? sts.c : null; Object[] objArr = new Object[1]; b(new char[]{48591, 3955, 42906, 50085, 48638}, AndroidCharacter.getMirror('0') - '/', objArr); Mqw.IeS ieS = new Mqw.IeS(C14957gcv.b((Object) str7, (Object) ((String) objArr[0]).intern()), sts != null ? sts.a : null); Xnj.IeS ieS2 = xnj.b; if (ieS2 != null) { int i2 = e + 59; a = i2 % 128; if (i2 % 2 == 0) { String str8 = ieS2.a; gje.hashCode(); throw null; } str = ieS2.a; } else { str = null; } if (ieS2 != null) { str2 = ieS2.c; int i3 = a + 11; e = i3 % 128; int i4 = i3 % 2; } else { str2 = null; } Mqw.Sts sts2 = new Mqw.Sts(str, str2); Xnj.RVV rvv = xnj.d; if (rvv != null) { int i5 = a + 17; e = i5 % 128; int i6 = i5 % 2; str3 = rvv.c; } else { str3 = null; } if ((rvv != null ? rvv.a : null) != null) { int i7 = e + 53; a = i7 % 128; if (i7 % 2 == 0) { TZa.c(rvv.a); gje.hashCode(); throw null; } gje = TZa.c(rvv.a); } return new Mqw(str4, new Mqw.LWm(str3, gje), ieS, sts2, str5, str6); } public final WVX c(lNZ lnz, GJE gje, String str) { int i; int i2 = 2 % 2; int i3 = a + 43; e = i3 % 128; Object obj = null; if (i3 % 2 != 0) { C14957gcv.e(lnz, ""); C14957gcv.e(gje, ""); C14957gcv.e(str, ""); String str2 = lnz.a; obj.hashCode(); throw null; } C14957gcv.e(lnz, ""); C14957gcv.e(gje, ""); C14957gcv.e(str, ""); String str3 = lnz.a; String str4 = str3 == null ? "NULLVALUE" : str3; Integer num = lnz.b.a; int i4 = 0; if (num != null) { int i5 = a + 19; e = i5 % 128; int i6 = i5 % 2; i = num.intValue(); } else { i = 0; } Integer num2 = lnz.b.d; if (num2 != null) { int i7 = a + 39; e = i7 % 128; if (i7 % 2 != 0) { num2.intValue(); throw null; } i4 = num2.intValue(); } WVX.IeS ieS = new WVX.IeS(i, i4); WVX.HBt hBt = new WVX.HBt(String.valueOf(lnz.e.e ? 1 : 0), !(lnz.e.d ^ true) ? PlaceTypes.DOCTOR : lnz.e.a ? PlaceTypes.DENTIST : "NULLVALUE"); String str5 = lnz.c.b; WVX wvx = new WVX(str, str4, new WVX.RVV(str5 != null ? str5 : "NULLVALUE", TZa.d(gje)), hBt, ieS); int i8 = e + 77; a = i8 % 128; int i9 = i8 % 2; return wvx; } private static void b(char[] cArr, int i, Object[] objArr) { int i2 = 2 % 2; GuL guL = new GuL(); char[] a2 = GuL.a(d ^ (-7538262848231253921L), cArr, i); guL.a = 4; while (guL.a < a2.length) { int i3 = $10 + 65; $11 = i3 % 128; int i4 = i3 % 2; guL.c = guL.a - 4; int i5 = guL.a; try { Object[] objArr2 = {Long.valueOf(a2[guL.a] ^ a2[guL.a % 4]), Long.valueOf(guL.c), Long.valueOf(d)}; Object obj = xzZ.y.get(428080616); if (obj == null) { Class cls = (Class) xzZ.c(Process.getGidForName("") + 209, (ViewConfiguration.getFadingEdgeLength() >> 16) + 5, (char) (1706 - TextUtils.getOffsetBefore("", 0))); byte b = (byte) 0; byte b2 = b; Object[] objArr3 = new Object[1]; f(b, b2, b2, objArr3); obj = cls.getMethod((String) objArr3[0], Long.TYPE, Long.TYPE, Long.TYPE); xzZ.y.put(428080616, obj); } a2[i5] = ((Character) ((Method) obj).invoke(null, objArr2)).charValue(); try { Object[] objArr4 = {guL, guL}; Object obj2 = xzZ.y.get(-1875914398); if (obj2 == null) { Class cls2 = (Class) xzZ.c(391 - TextUtils.lastIndexOf("", '0', 0), 4 - MotionEvent.axisFromString(""), (char) (1 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1)))); byte b3 = (byte) (3 & $$b); byte b4 = (byte) (b3 - 1); Object[] objArr5 = new Object[1]; f(b3, b4, b4, objArr5); obj2 = cls2.getMethod((String) objArr5[0], Object.class, Object.class); xzZ.y.put(-1875914398, obj2); } ((Method) obj2).invoke(null, objArr4); } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } catch (Throwable th2) { Throwable cause2 = th2.getCause(); if (cause2 == null) { throw th2; } throw cause2; } } String str = new String(a2, 4, a2.length - 4); int i6 = $11 + 121; $10 = i6 % 128; int i7 = i6 % 2; objArr[0] = str; } }