package okhttp3; 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.Gravity; 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 java.lang.reflect.Method; import java.security.cert.Certificate; import java.security.cert.X509Certificate; import java.util.ArrayList; import java.util.List; import java.util.Set; import javax.net.ssl.SSLPeerUnverifiedException; import net.sf.scuba.smartcards.ISO7816; import net.sf.scuba.smartcards.ISOFileInfo; import o.C14875gap; import o.C14881gav; import o.C14953gcr; import o.C14957gcv; import o.C15155gij; import o.gdZ; import o.giC; import o.giE; import o.jTb; import o.xzZ; import okhttp3.internal.HostnamesKt; import okhttp3.internal.tls.CertificateChainCleaner; import org.bouncycastle.pqc.jcajce.spec.McElieceCCA2KeyGenParameterSpec; /* loaded from: classes.dex */ public final class CertificatePinner { public static final Companion Companion; public static final CertificatePinner DEFAULT; private static int a; private static char b; private static char c; private static char d; private static char e; private final CertificateChainCleaner certificateChainCleaner; private final Set pins; private static final byte[] $$a = {94, -19, ISOFileInfo.FCP_BYTE, 2}; private static final int $$b = org.bouncycastle.crypto.tls.CipherSuite.TLS_PSK_WITH_3DES_EDE_CBC_SHA; private static int $10 = 0; private static int $11 = 1; private static int j = 1; /* JADX WARN: Removed duplicated region for block: B:10:0x0023 */ /* JADX WARN: Removed duplicated region for block: B:7:0x001b */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0023 -> B:4:0x002c). 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 g(int r6, int r7, int r8, java.lang.Object[] r9) { /* int r6 = r6 * 4 int r6 = 4 - r6 byte[] r0 = okhttp3.CertificatePinner.$$a int r8 = 67 - r8 int r7 = r7 * 3 int r1 = r7 + 1 byte[] r1 = new byte[r1] r2 = 0 if (r0 != 0) goto L15 r8 = r6 r3 = r7 r4 = r2 goto L2c L15: r3 = r2 L16: byte r4 = (byte) r8 r1[r3] = r4 if (r3 != r7) goto L23 java.lang.String r6 = new java.lang.String r6.(r1, r2) r9[r2] = r6 return L23: r4 = r0[r6] int r3 = r3 + 1 r5 = r8 r8 = r6 r6 = r4 r4 = r3 r3 = r5 L2c: int r6 = -r6 int r6 = r6 + r3 int r8 = r8 + 1 r3 = r4 r5 = r8 r8 = r6 r6 = r5 goto L16 */ throw new UnsupportedOperationException("Method not decompiled: okhttp3.CertificatePinner.g(int, int, int, java.lang.Object[]):void"); } /* loaded from: classes.dex */ public static final class Pin { private final C15155gij hash; private final String hashAlgorithm; private final String pattern; private static final byte[] $$a = {93, -104, ISO7816.INS_UPDATE_RECORD, ISO7816.INS_WRITE_RECORD}; private static final int $$b = 235; private static int $10 = 0; private static int $11 = 1; private static int b = 0; private static int h = 1; private static char c = 46769; private static char a = 13176; private static char d = 63184; private static char e = 23565; /* JADX WARN: Removed duplicated region for block: B:10:0x0027 */ /* JADX WARN: Removed duplicated region for block: B:7:0x001f */ /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0027 -> B:4:0x002c). 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 g(int r6, byte r7, short r8, java.lang.Object[] r9) { /* int r6 = r6 + 4 int r7 = r7 * 2 int r0 = r7 + 1 byte[] r1 = okhttp3.CertificatePinner.Pin.$$a int r8 = r8 + 66 byte[] r0 = new byte[r0] r2 = 0 if (r1 != 0) goto L12 r3 = r6 r4 = r2 goto L2c L12: r3 = r2 r5 = r8 r8 = r6 r6 = r5 L16: int r8 = r8 + 1 byte r4 = (byte) r6 r0[r3] = r4 int r4 = r3 + 1 if (r3 != r7) goto L27 java.lang.String r6 = new java.lang.String r6.(r0, r2) r9[r2] = r6 return L27: r3 = r1[r8] r5 = r3 r3 = r8 r8 = r5 L2c: int r6 = r6 + r8 r8 = r3 r3 = r4 goto L16 */ throw new UnsupportedOperationException("Method not decompiled: okhttp3.CertificatePinner.Pin.g(int, byte, short, java.lang.Object[]):void"); } private static void f(char[] cArr, int i, Object[] objArr) { int i2 = 2 % 2; jTb jtb = new jTb(); char[] cArr2 = new char[cArr.length]; int i3 = 0; jtb.b = 0; char[] cArr3 = new char[2]; while (jtb.b < cArr.length) { int i4 = $11 + 97; $10 = i4 % 128; int i5 = i4 % 2; cArr3[i3] = cArr[jtb.b]; cArr3[1] = cArr[jtb.b + 1]; int i6 = 58224; int i7 = i3; while (i7 < 16) { int i8 = $11 + 111; $10 = i8 % 128; int i9 = i8 % 2; char c2 = cArr3[1]; char c3 = cArr3[i3]; int i10 = (c3 + i6) ^ ((c3 << 4) + ((char) (d ^ 41718355337583039L))); int i11 = c3 >>> 5; try { Object[] objArr2 = new Object[4]; objArr2[3] = Integer.valueOf(e); objArr2[2] = Integer.valueOf(i11); objArr2[1] = Integer.valueOf(i10); objArr2[i3] = Integer.valueOf(c2); Object obj = xzZ.y.get(597144044); if (obj == null) { Class cls = (Class) xzZ.c(412 - ExpandableListView.getPackedPositionType(0L), (TypedValue.complexToFloat(i3) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(i3) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 5, (char) (1 - (ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)))); byte b2 = (byte) (-1); byte b3 = (byte) (b2 + 1); Object[] objArr3 = new Object[1]; g(b2, b3, b3, objArr3); String str = (String) objArr3[i3]; Class[] clsArr = new Class[4]; clsArr[i3] = Integer.TYPE; clsArr[1] = Integer.TYPE; clsArr[2] = Integer.TYPE; clsArr[3] = Integer.TYPE; obj = cls.getMethod(str, clsArr); xzZ.y.put(597144044, obj); } char charValue = ((Character) ((Method) obj).invoke(null, objArr2)).charValue(); cArr3[1] = charValue; char[] cArr4 = cArr3; Object[] objArr4 = {Integer.valueOf(cArr3[i3]), Integer.valueOf((charValue + i6) ^ ((charValue << 4) + ((char) (c ^ 41718355337583039L)))), Integer.valueOf(charValue >>> 5), Integer.valueOf(a)}; Object obj2 = xzZ.y.get(597144044); if (obj2 == null) { Class cls2 = (Class) xzZ.c(412 - (ViewConfiguration.getTapTimeout() >> 16), (ViewConfiguration.getScrollBarSize() >> 8) + 5, (char) Color.red(0)); byte b4 = (byte) (-1); byte b5 = (byte) (b4 + 1); Object[] objArr5 = new Object[1]; g(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; i7++; cArr3 = cArr4; i3 = 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((KeyEvent.getMaxKeyCode() >> 16) + 98, 6 - (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1)), (char) (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))); byte b6 = (byte) (-1); byte b7 = (byte) (b6 + 1); Object[] objArr7 = new Object[1]; g(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); int i12 = $11 + 21; $10 = i12 % 128; int i13 = i12 % 2; cArr3 = cArr5; i3 = 0; } objArr[0] = new String(cArr2, 0, i); } public Pin(String str, String str2) { C14957gcv.e(str, ""); C14957gcv.e(str2, ""); if ((!gdZ.e(str, "*.", false) || gdZ.e((CharSequence) str, "*", 1, false) != -1) && ((!gdZ.e(str, "**.", false) || gdZ.e((CharSequence) str, "*", 2, false) != -1) && gdZ.e((CharSequence) str, "*", 0, false) != -1)) { throw new IllegalArgumentException(C14957gcv.c("Unexpected pattern: ", (Object) str).toString()); } String canonicalHost = HostnamesKt.toCanonicalHost(str); if (canonicalHost == null) { throw new IllegalArgumentException(C14957gcv.c("Invalid pattern: ", (Object) str)); } this.pattern = canonicalHost; if (gdZ.e(str2, "sha1/", false)) { int i = h + 65; b = i % 128; int i2 = i % 2; this.hashAlgorithm = "sha1"; C15155gij.LWm lWm = C15155gij.c; String substring = str2.substring(5); C14957gcv.c((Object) substring, ""); C14957gcv.e(substring, ""); byte[] d2 = giC.d(substring); r4 = d2 != null ? new C15155gij(d2) : null; if (r4 == null) { throw new IllegalArgumentException(C14957gcv.c("Invalid pin hash: ", (Object) str2)); } int i3 = h + 37; b = i3 % 128; int i4 = i3 % 2; this.hash = r4; return; } if (!gdZ.e(str2, "sha256/", false)) { throw new IllegalArgumentException(C14957gcv.c("pins must start with 'sha256/' or 'sha1/': ", (Object) str2)); } Object[] objArr = new Object[1]; f(new char[]{27162, 60696, 38107, 53704, 28088, 37120}, 6 - Gravity.getAbsoluteGravity(0, 0), objArr); this.hashAlgorithm = ((String) objArr[0]).intern(); C15155gij.LWm lWm2 = C15155gij.c; String substring2 = str2.substring(7); C14957gcv.c((Object) substring2, ""); C14957gcv.e(substring2, ""); byte[] d3 = giC.d(substring2); if (d3 != null) { r4 = new C15155gij(d3); int i5 = h + 71; b = i5 % 128; if (i5 % 2 == 0) { int i6 = 2 % 2; } } if (r4 == null) { throw new IllegalArgumentException(C14957gcv.c("Invalid pin hash: ", (Object) str2)); } int i7 = b + 29; int i8 = i7 % 128; h = i8; int i9 = i7 % 2; this.hash = r4; int i10 = i8 + 13; b = i10 % 128; int i11 = i10 % 2; } /* JADX WARN: Code restructure failed: missing block: B:10:0x008f, code lost: if (o.gdZ.b((java.lang.CharSequence) r14, '.', (r3 - r1) - 1) != (-1)) goto L27; */ /* JADX WARN: Code restructure failed: missing block: B:14:?, code lost: return false; */ /* JADX WARN: Code restructure failed: missing block: B:15:?, code lost: return false; */ /* JADX WARN: Code restructure failed: missing block: B:16:0x0093, code lost: r5 = o.C14957gcv.b((java.lang.Object) r14, (java.lang.Object) r13.pattern); r14 = okhttp3.CertificatePinner.Pin.h + 33; okhttp3.CertificatePinner.Pin.b = r14 % 128; r14 = r14 % 2; */ /* JADX WARN: Code restructure failed: missing block: B:17:0x00a2, code lost: return r5; */ /* JADX WARN: Code restructure failed: missing block: B:18:0x002d, code lost: r11 = r13.pattern.length() - 3; r0 = r14.length() - r11; */ /* JADX WARN: Code restructure failed: missing block: B:19:0x0049, code lost: if (o.gdZ.e(r14, r14.length() - r11, r13.pattern, 3, r11, false) == false) goto L24; */ /* JADX WARN: Code restructure failed: missing block: B:20:0x004b, code lost: if (r0 == 0) goto L21; */ /* JADX WARN: Code restructure failed: missing block: B:22:0x0052, code lost: if (r14.charAt(r0 - 1) != '.') goto L25; */ /* JADX WARN: Code restructure failed: missing block: B:23:?, code lost: return false; */ /* JADX WARN: Code restructure failed: missing block: B:24:?, code lost: return false; */ /* JADX WARN: Code restructure failed: missing block: B:26:0x002b, code lost: if (o.gdZ.e(r13.pattern, "**.", false) != false) goto L9; */ /* JADX WARN: Code restructure failed: missing block: B:4:0x001f, code lost: if (o.gdZ.e(r13.pattern, "**.", true) != false) goto L9; */ /* JADX WARN: Code restructure failed: missing block: B:6:0x005e, code lost: if ((!o.gdZ.e(r13.pattern, "*.", false)) == true) goto L22; */ /* JADX WARN: Code restructure failed: missing block: B:7:0x0060, code lost: r1 = r13.pattern.length() - 1; r3 = r14.length(); */ /* JADX WARN: Code restructure failed: missing block: B:8:0x007b, code lost: if (o.gdZ.e(r14, r14.length() - r1, r13.pattern, 1, r1, false) == false) goto L26; */ /* JADX WARN: Code restructure failed: missing block: B:9:0x007d, code lost: r4 = okhttp3.CertificatePinner.Pin.b + 45; okhttp3.CertificatePinner.Pin.h = r4 % 128; r4 = r4 % 2; */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public final boolean matchesHostname(java.lang.String r14) { /* r13 = this; r0 = 2 int r1 = r0 % r0 int r1 = okhttp3.CertificatePinner.Pin.h int r1 = r1 + 113 int r2 = r1 % 128 okhttp3.CertificatePinner.Pin.b = r2 int r1 = r1 % r0 r2 = 46 java.lang.String r3 = "**." java.lang.String r4 = "" r5 = 0 r6 = 1 if (r1 == 0) goto L22 o.C14957gcv.e(r14, r4) java.lang.String r1 = r13.pattern boolean r1 = o.gdZ.e(r1, r3, r6) if (r1 == 0) goto L55 goto L2d L22: o.C14957gcv.e(r14, r4) java.lang.String r1 = r13.pattern boolean r1 = o.gdZ.e(r1, r3, r5) if (r1 == 0) goto L55 L2d: java.lang.String r0 = r13.pattern int r0 = r0.length() int r11 = r0 + (-3) int r0 = r14.length() int r0 = r0 - r11 int r1 = r14.length() int r8 = r1 - r11 java.lang.String r9 = r13.pattern r10 = 3 r12 = 0 r7 = r14 boolean r1 = o.gdZ.e(r7, r8, r9, r10, r11, r12) if (r1 == 0) goto La2 if (r0 == 0) goto L91 int r0 = r0 - r6 char r14 = r14.charAt(r0) if (r14 != r2) goto La2 goto L91 L55: java.lang.String r1 = r13.pattern java.lang.String r3 = "*." boolean r1 = o.gdZ.e(r1, r3, r5) r1 = r1 ^ r6 if (r1 == r6) goto L93 java.lang.String r1 = r13.pattern int r1 = r1.length() int r1 = r1 - r6 int r3 = r14.length() int r4 = r14.length() int r8 = r4 - r1 java.lang.String r9 = r13.pattern r10 = 1 r12 = 0 r7 = r14 r11 = r1 boolean r4 = o.gdZ.e(r7, r8, r9, r10, r11, r12) if (r4 == 0) goto La2 int r4 = okhttp3.CertificatePinner.Pin.b int r4 = r4 + 45 int r7 = r4 % 128 okhttp3.CertificatePinner.Pin.h = r7 int r4 = r4 % r0 java.lang.CharSequence r14 = (java.lang.CharSequence) r14 int r3 = r3 - r1 int r3 = r3 - r6 int r14 = o.gdZ.b(r14, r2, r3) r0 = -1 if (r14 != r0) goto La2 L91: r5 = r6 goto La2 L93: java.lang.String r1 = r13.pattern boolean r5 = o.C14957gcv.b(r14, r1) int r14 = okhttp3.CertificatePinner.Pin.h int r14 = r14 + 33 int r1 = r14 % 128 okhttp3.CertificatePinner.Pin.b = r1 int r14 = r14 % r0 La2: return r5 */ throw new UnsupportedOperationException("Method not decompiled: okhttp3.CertificatePinner.Pin.matchesHostname(java.lang.String):boolean"); } /* JADX WARN: Code restructure failed: missing block: B:10:?, code lost: return false; */ /* JADX WARN: Code restructure failed: missing block: B:11:0x005a, code lost: r5 = o.C14957gcv.b(r7.hash, okhttp3.CertificatePinner.Companion.sha256Hash(r8)); r8 = okhttp3.CertificatePinner.Pin.h + 91; okhttp3.CertificatePinner.Pin.b = r8 % 128; r8 = r8 % 2; */ /* JADX WARN: Code restructure failed: missing block: B:12:?, code lost: return r5; */ /* JADX WARN: Code restructure failed: missing block: B:14:0x0058, code lost: if (o.C14957gcv.b((java.lang.Object) r1, (java.lang.Object) ((java.lang.String) r4[0]).intern()) != false) goto L9; */ /* JADX WARN: Code restructure failed: missing block: B:4:0x0034, code lost: if (o.C14957gcv.b((java.lang.Object) r1, (java.lang.Object) ((java.lang.String) r4[0]).intern()) != false) goto L9; */ /* JADX WARN: Code restructure failed: missing block: B:6:0x0076, code lost: if (o.C14957gcv.b((java.lang.Object) r1, (java.lang.Object) "sha1") == false) goto L15; */ /* JADX WARN: Code restructure failed: missing block: B:8:0x0084, code lost: return o.C14957gcv.b(r7.hash, okhttp3.CertificatePinner.Companion.sha1Hash(r8)); */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public final boolean matchesCertificate(java.security.cert.X509Certificate r8) { /* r7 = this; r0 = 2 int r1 = r0 % r0 int r1 = okhttp3.CertificatePinner.Pin.h int r1 = r1 + 71 int r2 = r1 % 128 okhttp3.CertificatePinner.Pin.b = r2 int r1 = r1 % r0 r2 = 6 java.lang.String r3 = "" r4 = 1 r5 = 0 if (r1 == 0) goto L37 o.C14957gcv.e(r8, r3) java.lang.String r1 = r7.hashAlgorithm char[] r2 = new char[r2] r2 = {x0086: FILL_ARRAY_DATA , data: [27162, -4840, -27429, -11832, 28088, -28416} // fill-array r3 = 4 int r6 = android.graphics.ImageFormat.getBitsPerPixel(r4) int r3 = r3 / r6 java.lang.Object[] r4 = new java.lang.Object[r4] f(r2, r3, r4) r2 = r4[r5] java.lang.String r2 = (java.lang.String) r2 java.lang.String r2 = r2.intern() boolean r2 = o.C14957gcv.b(r1, r2) if (r2 == 0) goto L70 goto L5a L37: o.C14957gcv.e(r8, r3) java.lang.String r1 = r7.hashAlgorithm char[] r2 = new char[r2] r2 = {x0090: FILL_ARRAY_DATA , data: [27162, -4840, -27429, -11832, 28088, -28416} // fill-array int r3 = android.graphics.ImageFormat.getBitsPerPixel(r5) int r3 = 5 - r3 java.lang.Object[] r4 = new java.lang.Object[r4] f(r2, r3, r4) r2 = r4[r5] java.lang.String r2 = (java.lang.String) r2 java.lang.String r2 = r2.intern() boolean r2 = o.C14957gcv.b(r1, r2) if (r2 == 0) goto L70 L5a: o.gij r1 = r7.hash okhttp3.CertificatePinner$Companion r2 = okhttp3.CertificatePinner.Companion o.gij r8 = r2.sha256Hash(r8) boolean r5 = o.C14957gcv.b(r1, r8) int r8 = okhttp3.CertificatePinner.Pin.h int r8 = r8 + 91 int r1 = r8 % 128 okhttp3.CertificatePinner.Pin.b = r1 int r8 = r8 % r0 goto L84 L70: java.lang.String r0 = "sha1" boolean r0 = o.C14957gcv.b(r1, r0) if (r0 == 0) goto L84 o.gij r0 = r7.hash okhttp3.CertificatePinner$Companion r1 = okhttp3.CertificatePinner.Companion o.gij r8 = r1.sha1Hash(r8) boolean r5 = o.C14957gcv.b(r0, r8) L84: return r5 */ throw new UnsupportedOperationException("Method not decompiled: okhttp3.CertificatePinner.Pin.matchesCertificate(java.security.cert.X509Certificate):boolean"); } public final String toString() { int i = 2 % 2; StringBuilder sb = new StringBuilder(); sb.append(this.hashAlgorithm); sb.append('/'); sb.append(this.hash.e()); String obj = sb.toString(); int i2 = h + 63; b = i2 % 128; if (i2 % 2 == 0) { return obj; } Object obj2 = null; obj2.hashCode(); throw null; } /* JADX WARN: Code restructure failed: missing block: B:10:0x0028, code lost: if (o.C14957gcv.b((java.lang.Object) r5.pattern, (java.lang.Object) r6.pattern) != false) goto L15; */ /* JADX WARN: Code restructure failed: missing block: B:11:0x002a, code lost: return false; */ /* JADX WARN: Code restructure failed: missing block: B:13:0x0033, code lost: if (o.C14957gcv.b((java.lang.Object) r5.hashAlgorithm, (java.lang.Object) r6.hashAlgorithm) != false) goto L19; */ /* JADX WARN: Code restructure failed: missing block: B:14:0x0035, code lost: r6 = okhttp3.CertificatePinner.Pin.h + 41; okhttp3.CertificatePinner.Pin.b = r6 % 128; r6 = r6 % 2; */ /* JADX WARN: Code restructure failed: missing block: B:15:0x003e, code lost: return false; */ /* JADX WARN: Code restructure failed: missing block: B:17:0x0047, code lost: if (o.C14957gcv.b(r5.hash, r6.hash) != false) goto L25; */ /* JADX WARN: Code restructure failed: missing block: B:18:0x0049, code lost: r6 = okhttp3.CertificatePinner.Pin.b + 115; okhttp3.CertificatePinner.Pin.h = r6 % 128; */ /* JADX WARN: Code restructure failed: missing block: B:19:0x0052, code lost: if ((r6 % 2) != 0) goto L24; */ /* JADX WARN: Code restructure failed: missing block: B:20:0x0054, code lost: r6 = 94 / 0; */ /* JADX WARN: Code restructure failed: missing block: B:21:0x0057, code lost: return false; */ /* JADX WARN: Code restructure failed: missing block: B:22:0x0058, code lost: return true; */ /* JADX WARN: Code restructure failed: missing block: B:23:0x0018, code lost: return true; */ /* JADX WARN: Code restructure failed: missing block: B:24:0x0016, code lost: if (r5 == r6) goto L8; */ /* JADX WARN: Code restructure failed: missing block: B:4:0x0013, code lost: if (r5 == r6) goto L8; */ /* JADX WARN: Code restructure failed: missing block: B:6:0x001b, code lost: if ((r6 instanceof okhttp3.CertificatePinner.Pin) != false) goto L12; */ /* JADX WARN: Code restructure failed: missing block: B:7:0x001d, code lost: return false; */ /* JADX WARN: Code restructure failed: missing block: B:9:0x001e, code lost: r6 = (okhttp3.CertificatePinner.Pin) r6; */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public final boolean equals(java.lang.Object r6) { /* r5 = this; r0 = 2 int r1 = r0 % r0 int r1 = okhttp3.CertificatePinner.Pin.b int r1 = r1 + 115 int r2 = r1 % 128 okhttp3.CertificatePinner.Pin.h = r2 int r1 = r1 % r0 r2 = 1 r3 = 0 if (r1 != 0) goto L16 r1 = 68 int r1 = r1 / r3 if (r5 != r6) goto L19 goto L18 L16: if (r5 != r6) goto L19 L18: return r2 L19: boolean r1 = r6 instanceof okhttp3.CertificatePinner.Pin if (r1 != 0) goto L1e return r3 L1e: java.lang.String r1 = r5.pattern okhttp3.CertificatePinner$Pin r6 = (okhttp3.CertificatePinner.Pin) r6 java.lang.String r4 = r6.pattern boolean r1 = o.C14957gcv.b(r1, r4) if (r1 != 0) goto L2b return r3 L2b: java.lang.String r1 = r5.hashAlgorithm java.lang.String r4 = r6.hashAlgorithm boolean r1 = o.C14957gcv.b(r1, r4) if (r1 != 0) goto L3f int r6 = okhttp3.CertificatePinner.Pin.h int r6 = r6 + 41 int r1 = r6 % 128 okhttp3.CertificatePinner.Pin.b = r1 int r6 = r6 % r0 return r3 L3f: o.gij r1 = r5.hash o.gij r6 = r6.hash boolean r6 = o.C14957gcv.b(r1, r6) if (r6 != 0) goto L58 int r6 = okhttp3.CertificatePinner.Pin.b int r6 = r6 + 115 int r1 = r6 % 128 okhttp3.CertificatePinner.Pin.h = r1 int r6 = r6 % r0 if (r6 != 0) goto L57 r6 = 94 int r6 = r6 / r3 L57: return r3 L58: return r2 */ throw new UnsupportedOperationException("Method not decompiled: okhttp3.CertificatePinner.Pin.equals(java.lang.Object):boolean"); } public final int hashCode() { int hashCode; int i = 2 % 2; int i2 = b + 27; h = i2 % 128; if (i2 % 2 == 0) { int hashCode2 = this.pattern.hashCode(); hashCode = (((hashCode2 >>> 79) * this.hashAlgorithm.hashCode()) % 33) >>> this.hash.hashCode(); } else { int hashCode3 = this.pattern.hashCode(); hashCode = (((hashCode3 * 31) + this.hashAlgorithm.hashCode()) * 31) + this.hash.hashCode(); } int i3 = h + 39; b = i3 % 128; if (i3 % 2 == 0) { return hashCode; } Object obj = null; obj.hashCode(); throw null; } public final String getPattern() { int i = 2 % 2; int i2 = b + 101; h = i2 % 128; if (i2 % 2 != 0) { return this.pattern; } Object obj = null; obj.hashCode(); throw null; } public final String getHashAlgorithm() { int i = 2 % 2; int i2 = b; int i3 = i2 + 9; h = i3 % 128; int i4 = i3 % 2; String str = this.hashAlgorithm; int i5 = i2 + 85; h = i5 % 128; int i6 = i5 % 2; return str; } public final C15155gij getHash() { int i = 2 % 2; int i2 = b + 87; int i3 = i2 % 128; h = i3; int i4 = i2 % 2; C15155gij c15155gij = this.hash; int i5 = i3 + 9; b = i5 % 128; int i6 = i5 % 2; return c15155gij; } } private static void f(char[] cArr, int i, Object[] objArr) { int i2 = 2 % 2; jTb jtb = new jTb(); char[] cArr2 = new char[cArr.length]; jtb.b = 0; char[] cArr3 = new char[2]; while (jtb.b < cArr.length) { int i3 = $10 + 77; $11 = i3 % 128; if (i3 % 2 == 0) { cArr3[1] = cArr[jtb.b]; cArr3[1] = cArr[jtb.b]; } else { cArr3[0] = cArr[jtb.b]; cArr3[1] = cArr[jtb.b + 1]; } int i4 = $11 + 65; $10 = i4 % 128; int i5 = i4 % 2; int i6 = 58224; for (int i7 = 0; i7 < 16; i7++) { int i8 = $10 + 81; $11 = i8 % 128; int i9 = i8 % 2; char c2 = cArr3[1]; char c3 = cArr3[0]; try { Object[] objArr2 = {Integer.valueOf(c2), Integer.valueOf((c3 + i6) ^ ((c3 << 4) + ((char) (e ^ 41718355337583039L)))), Integer.valueOf(c3 >>> 5), Integer.valueOf(b)}; Object obj = xzZ.y.get(597144044); if (obj == null) { Class cls = (Class) xzZ.c((ViewConfiguration.getScrollBarFadeDuration() >> 16) + 412, (TypedValue.complexToFloat(0) > BitmapDescriptorFactory.HUE_RED ? 1 : (TypedValue.complexToFloat(0) == BitmapDescriptorFactory.HUE_RED ? 0 : -1)) + 5, (char) ('0' - AndroidCharacter.getMirror('0'))); byte b2 = (byte) 0; byte b3 = b2; Object[] objArr3 = new Object[1]; g(b2, b3, (byte) (b3 + 1), 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(); cArr3[1] = charValue; Object[] objArr4 = {Integer.valueOf(cArr3[0]), Integer.valueOf((charValue + i6) ^ ((charValue << 4) + ((char) (c ^ 41718355337583039L)))), Integer.valueOf(charValue >>> 5), Integer.valueOf(d)}; Object obj2 = xzZ.y.get(597144044); if (obj2 == null) { Class cls2 = (Class) xzZ.c(412 - (ViewConfiguration.getJumpTapTimeout() >> 16), View.MeasureSpec.getSize(0) + 5, (char) ((ViewConfiguration.getZoomControlsTimeout() > 0L ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0L ? 0 : -1)) - 1)); byte b4 = (byte) 0; byte b5 = b4; Object[] objArr5 = new Object[1]; g(b4, b5, (byte) (b5 + 1), objArr5); obj2 = cls2.getMethod((String) objArr5[0], Integer.TYPE, Integer.TYPE, Integer.TYPE, Integer.TYPE); xzZ.y.put(597144044, obj2); } cArr3[0] = ((Character) ((Method) obj2).invoke(null, objArr4)).charValue(); i6 -= 40503; } catch (Throwable th) { Throwable cause = th.getCause(); if (cause == null) { throw th; } throw cause; } } cArr2[jtb.b] = cArr3[0]; cArr2[jtb.b + 1] = cArr3[1]; Object[] objArr6 = {jtb, jtb}; Object obj3 = xzZ.y.get(943004485); if (obj3 == null) { Class cls3 = (Class) xzZ.c(TextUtils.indexOf((CharSequence) "", '0') + 99, 5 - (ViewConfiguration.getScrollBarSize() >> 8), (char) (Process.myPid() >> 22)); byte b6 = (byte) 0; byte b7 = b6; Object[] objArr7 = new Object[1]; g(b6, b7, b7, objArr7); obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class); xzZ.y.put(943004485, obj3); } ((Method) obj3).invoke(null, objArr6); } objArr[0] = new String(cArr2, 0, i); } public CertificatePinner(Set set, CertificateChainCleaner certificateChainCleaner) { C14957gcv.e(set, ""); this.pins = set; this.certificateChainCleaner = certificateChainCleaner; } /* JADX WARN: Illegal instructions before constructor call */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public /* synthetic */ CertificatePinner(java.util.Set r1, okhttp3.internal.tls.CertificateChainCleaner r2, int r3, o.C14953gcr r4) { /* r0 = this; r4 = 2 r3 = r3 & r4 if (r3 == 0) goto L17 int r2 = okhttp3.CertificatePinner.j int r2 = r2 + 117 int r3 = r2 % 128 okhttp3.CertificatePinner.a = r3 int r2 = r2 % r4 r3 = 0 if (r2 != 0) goto L13 int r4 = r4 % r4 r2 = r3 goto L17 L13: r3.hashCode() throw r3 L17: r0.(r1, r2) return */ throw new UnsupportedOperationException("Method not decompiled: okhttp3.CertificatePinner.(java.util.Set, okhttp3.internal.tls.CertificateChainCleaner, int, o.gcr):void"); } public final void check(String str, List list) throws SSLPeerUnverifiedException { int i = 2 % 2; C14957gcv.e(str, ""); C14957gcv.e(list, ""); check$okhttp(str, new CertificatePinner$check$1(this, list, str)); int i2 = j + 61; a = i2 % 128; if (i2 % 2 == 0) { return; } Object obj = null; obj.hashCode(); throw null; } /* JADX WARN: Removed duplicated region for block: B:19:0x00aa */ /* JADX WARN: Removed duplicated region for block: B:25:0x00ce A[SYNTHETIC] */ /* JADX WARN: Removed duplicated region for block: B:27:0x0041 A[SYNTHETIC] */ /* JADX WARN: Removed duplicated region for block: B:32:0x00d7 */ /* JADX WARN: Removed duplicated region for block: B:39:0x00f3 A[SYNTHETIC] */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public final void check$okhttp(java.lang.String r18, o.InterfaceC14890gbN> r19) { /* Method dump skipped, instructions count: 414 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: okhttp3.CertificatePinner.check$okhttp(java.lang.String, o.gbN):void"); } public final void check(String str, Certificate... certificateArr) throws SSLPeerUnverifiedException { int i = 2 % 2; int i2 = j + 1; a = i2 % 128; int i3 = i2 % 2; C14957gcv.e(str, ""); C14957gcv.e(certificateArr, ""); check(str, C14875gap.d(certificateArr)); int i4 = j + 115; a = i4 % 128; if (i4 % 2 != 0) { throw null; } } public final CertificatePinner withCertificateChainCleaner$okhttp(CertificateChainCleaner certificateChainCleaner) { CertificatePinner certificatePinner; int i = 2 % 2; C14957gcv.e(certificateChainCleaner, ""); if (!C14957gcv.b(this.certificateChainCleaner, certificateChainCleaner)) { certificatePinner = new CertificatePinner(this.pins, certificateChainCleaner); } else { int i2 = j + 79; a = i2 % 128; int i3 = i2 % 2; certificatePinner = this; } int i4 = j + 93; a = i4 % 128; if (i4 % 2 == 0) { return certificatePinner; } throw null; } public final boolean equals(Object obj) { int i = 2 % 2; int i2 = a + 101; j = i2 % 128; Object obj2 = null; if (i2 % 2 != 0) { boolean z = false; if (obj instanceof CertificatePinner) { CertificatePinner certificatePinner = (CertificatePinner) obj; if (C14957gcv.b(certificatePinner.pins, this.pins) && C14957gcv.b(certificatePinner.certificateChainCleaner, this.certificateChainCleaner)) { int i3 = a + 55; j = i3 % 128; if (i3 % 2 != 0) { z = true; } } } int i4 = j + 99; a = i4 % 128; if (i4 % 2 == 0) { return z; } obj2.hashCode(); throw null; } boolean z2 = obj instanceof CertificatePinner; obj2.hashCode(); throw null; } public final int hashCode() { int i; int i2 = 2 % 2; int i3 = a + 73; j = i3 % 128; if (i3 % 2 != 0) { int hashCode = this.pins.hashCode(); CertificateChainCleaner certificateChainCleaner = this.certificateChainCleaner; if (certificateChainCleaner != null) { i = certificateChainCleaner.hashCode(); int i4 = j + 33; a = i4 % 128; int i5 = i4 % 2; } else { i = 0; } return ((hashCode + 1517) * 41) + i; } this.pins.hashCode(); throw null; } /* loaded from: classes.dex */ public static final class Builder { private final List pins = new ArrayList(); public final Builder add(String str, String... strArr) { C14957gcv.e(str, ""); C14957gcv.e(strArr, ""); int length = strArr.length; int i = 0; while (i < length) { String str2 = strArr[i]; i++; getPins().add(new Pin(str, str2)); } return this; } /* JADX WARN: Multi-variable type inference failed */ public final CertificatePinner build() { return new CertificatePinner(C14881gav.h(this.pins), null, 2, 0 == true ? 1 : 0); } public final List getPins() { return this.pins; } } /* loaded from: classes.dex */ public static final class Companion { private Companion() { } public final C15155gij sha1Hash(X509Certificate x509Certificate) { C14957gcv.e(x509Certificate, ""); C15155gij.LWm lWm = C15155gij.c; byte[] encoded = x509Certificate.getPublicKey().getEncoded(); C14957gcv.c(encoded, ""); return C15155gij.LWm.b(encoded, giE.d()).b(McElieceCCA2KeyGenParameterSpec.SHA1); } public final C15155gij sha256Hash(X509Certificate x509Certificate) { C14957gcv.e(x509Certificate, ""); C15155gij.LWm lWm = C15155gij.c; byte[] encoded = x509Certificate.getPublicKey().getEncoded(); C14957gcv.c(encoded, ""); return C15155gij.LWm.b(encoded, giE.d()).b(McElieceCCA2KeyGenParameterSpec.SHA256); } public final String pin(Certificate certificate) { C14957gcv.e(certificate, ""); if (!(certificate instanceof X509Certificate)) { throw new IllegalArgumentException("Certificate pinning requires X509 certificates".toString()); } return C14957gcv.c("sha256/", (Object) sha256Hash((X509Certificate) certificate).e()); } public /* synthetic */ Companion(C14953gcr c14953gcr) { this(); } } static { a = 0; e(); Companion = new Companion(null); DEFAULT = new Builder().build(); int i = j + 71; a = i % 128; int i2 = i % 2; } /* JADX WARN: Code restructure failed: missing block: B:10:0x003a, code lost: if (r2.isEmpty() != false) goto L14; */ /* JADX WARN: Code restructure failed: missing block: B:11:0x004a, code lost: o.gcQ.b(r2).add(r3); r3 = okhttp3.CertificatePinner.j + 123; okhttp3.CertificatePinner.a = r3 % 128; r3 = r3 % 2; */ /* JADX WARN: Code restructure failed: missing block: B:14:0x0043, code lost: r2 = new java.util.ArrayList(); */ /* JADX WARN: Code restructure failed: missing block: B:16:0x0041, code lost: if (r2.isEmpty() != false) goto L14; */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public final java.util.List findMatchingPins(java.lang.String r7) { /* r6 = this; r0 = 2 int r1 = r0 % r0 java.lang.String r1 = "" o.C14957gcv.e(r7, r1) java.util.Set r1 = r6.pins java.lang.Iterable r1 = (java.lang.Iterable) r1 o.gaI r2 = o.C14851gaI.c java.util.List r2 = (java.util.List) r2 java.util.Iterator r1 = r1.iterator() L14: boolean r3 = r1.hasNext() if (r3 == 0) goto L5b java.lang.Object r3 = r1.next() r4 = r3 okhttp3.CertificatePinner$Pin r4 = (okhttp3.CertificatePinner.Pin) r4 boolean r4 = r4.matchesHostname(r7) if (r4 == 0) goto L14 int r4 = okhttp3.CertificatePinner.j int r4 = r4 + 73 int r5 = r4 % 128 okhttp3.CertificatePinner.a = r5 int r4 = r4 % r0 if (r4 == 0) goto L3d boolean r4 = r2.isEmpty() r5 = 71 int r5 = r5 / 0 if (r4 == 0) goto L4a goto L43 L3d: boolean r4 = r2.isEmpty() if (r4 == 0) goto L4a L43: java.util.ArrayList r2 = new java.util.ArrayList r2.() java.util.List r2 = (java.util.List) r2 L4a: java.util.List r4 = o.gcQ.b(r2) r4.add(r3) int r3 = okhttp3.CertificatePinner.j int r3 = r3 + 123 int r4 = r3 % 128 okhttp3.CertificatePinner.a = r4 int r3 = r3 % r0 goto L14 L5b: return r2 */ throw new UnsupportedOperationException("Method not decompiled: okhttp3.CertificatePinner.findMatchingPins(java.lang.String):java.util.List"); } static void e() { c = (char) 50894; d = (char) 22099; e = (char) 41123; b = (char) 42955; } public final Set getPins() { int i = 2 % 2; int i2 = a; int i3 = i2 + 125; j = i3 % 128; int i4 = i3 % 2; Set set = this.pins; int i5 = i2 + 45; j = i5 % 128; if (i5 % 2 != 0) { return set; } Object obj = null; obj.hashCode(); throw null; } public final CertificateChainCleaner getCertificateChainCleaner$okhttp() { int i = 2 % 2; int i2 = a; int i3 = i2 + 7; j = i3 % 128; int i4 = i3 % 2; CertificateChainCleaner certificateChainCleaner = this.certificateChainCleaner; int i5 = i2 + 113; j = i5 % 128; int i6 = i5 % 2; return certificateChainCleaner; } public static final C15155gij sha256Hash(X509Certificate x509Certificate) { C15155gij sha256Hash; int i = 2 % 2; int i2 = j + 59; a = i2 % 128; if (i2 % 2 != 0) { sha256Hash = Companion.sha256Hash(x509Certificate); int i3 = 47 / 0; } else { sha256Hash = Companion.sha256Hash(x509Certificate); } int i4 = j + 115; a = i4 % 128; int i5 = i4 % 2; return sha256Hash; } public static final C15155gij sha1Hash(X509Certificate x509Certificate) { int i = 2 % 2; int i2 = j + 121; a = i2 % 128; int i3 = i2 % 2; C15155gij sha1Hash = Companion.sha1Hash(x509Certificate); int i4 = a + 123; j = i4 % 128; if (i4 % 2 != 0) { return sha1Hash; } Object obj = null; obj.hashCode(); throw null; } public static final String pin(Certificate certificate) { int i = 2 % 2; int i2 = a + 15; j = i2 % 128; int i3 = i2 % 2; Companion companion = Companion; if (i3 != 0) { return companion.pin(certificate); } companion.pin(certificate); Object obj = null; obj.hashCode(); throw null; } }