Initial import of ADIF API reverse-engineering toolkit
This commit is contained in:
66
apk_decompiled/sources/i3/a.java
Normal file
66
apk_decompiled/sources/i3/a.java
Normal file
@@ -0,0 +1,66 @@
|
||||
package i3;
|
||||
|
||||
import e3.F;
|
||||
import e3.O;
|
||||
import e3.x;
|
||||
import e3.y;
|
||||
import java.io.IOException;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class a implements y {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public static final a f6826a = new Object();
|
||||
|
||||
@Override // e3.y
|
||||
public final O intercept(x chain) {
|
||||
Intrinsics.checkNotNullParameter(chain, "chain");
|
||||
j3.g chain2 = (j3.g) chain;
|
||||
j jVar = chain2.f6948a;
|
||||
jVar.getClass();
|
||||
Intrinsics.checkNotNullParameter(chain2, "chain");
|
||||
synchronized (jVar) {
|
||||
if (!jVar.f6870m) {
|
||||
throw new IllegalStateException("released");
|
||||
}
|
||||
if (jVar.f6869l) {
|
||||
throw new IllegalStateException("Check failed.");
|
||||
}
|
||||
if (jVar.f6868k) {
|
||||
throw new IllegalStateException("Check failed.");
|
||||
}
|
||||
Unit unit = Unit.INSTANCE;
|
||||
}
|
||||
f fVar = jVar.f6866g;
|
||||
Intrinsics.checkNotNull(fVar);
|
||||
F client = jVar.f6860a;
|
||||
fVar.getClass();
|
||||
Intrinsics.checkNotNullParameter(client, "client");
|
||||
Intrinsics.checkNotNullParameter(chain2, "chain");
|
||||
try {
|
||||
int i = chain2.f6953f;
|
||||
int i4 = chain2.f6954g;
|
||||
int i5 = chain2.h;
|
||||
client.getClass();
|
||||
e eVar = new e(jVar, fVar, fVar.a(i, client.f6238f, !Intrinsics.areEqual(chain2.f6952e.f6268b, "GET"), i4, i5).j(client, chain2));
|
||||
jVar.f6867j = eVar;
|
||||
jVar.f6872o = eVar;
|
||||
synchronized (jVar) {
|
||||
jVar.f6868k = true;
|
||||
jVar.f6869l = true;
|
||||
}
|
||||
if (jVar.f6871n) {
|
||||
throw new IOException("Canceled");
|
||||
}
|
||||
return j3.g.a(chain2, 0, eVar, null, 61).b(chain2.f6952e);
|
||||
} catch (n e4) {
|
||||
fVar.c(e4.f6891b);
|
||||
throw e4;
|
||||
} catch (IOException e5) {
|
||||
fVar.c(e5);
|
||||
throw new n(e5);
|
||||
}
|
||||
}
|
||||
}
|
||||
155
apk_decompiled/sources/i3/b.java
Normal file
155
apk_decompiled/sources/i3/b.java
Normal file
@@ -0,0 +1,155 @@
|
||||
package i3;
|
||||
|
||||
import e3.C0323i;
|
||||
import e3.C0324j;
|
||||
import e3.C0326l;
|
||||
import java.net.UnknownServiceException;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import javax.net.ssl.SSLSocket;
|
||||
import kotlin.collections.ArraysKt;
|
||||
import kotlin.comparisons.ComparisonsKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class b {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final List f6827a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public int f6828b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public boolean f6829c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public boolean f6830d;
|
||||
|
||||
public b(List connectionSpecs) {
|
||||
Intrinsics.checkNotNullParameter(connectionSpecs, "connectionSpecs");
|
||||
this.f6827a = connectionSpecs;
|
||||
}
|
||||
|
||||
/* JADX WARN: Type inference failed for: r0v8, types: [e3.k, java.lang.Object] */
|
||||
/* JADX WARN: Type inference failed for: r5v1, types: [java.lang.String[], java.io.Serializable] */
|
||||
public final C0326l a(SSLSocket sslSocket) {
|
||||
C0326l connectionSpec;
|
||||
int i;
|
||||
boolean z3;
|
||||
String[] cipherSuitesIntersection;
|
||||
String[] tlsVersionsIntersection;
|
||||
boolean z4 = true;
|
||||
Intrinsics.checkNotNullParameter(sslSocket, "sslSocket");
|
||||
int i4 = this.f6828b;
|
||||
List list = this.f6827a;
|
||||
int size = list.size();
|
||||
while (true) {
|
||||
if (i4 >= size) {
|
||||
connectionSpec = null;
|
||||
break;
|
||||
}
|
||||
connectionSpec = (C0326l) list.get(i4);
|
||||
if (connectionSpec.b(sslSocket)) {
|
||||
this.f6828b = i4 + 1;
|
||||
break;
|
||||
}
|
||||
i4++;
|
||||
}
|
||||
if (connectionSpec == null) {
|
||||
StringBuilder sb = new StringBuilder("Unable to find acceptable protocols. isFallback=");
|
||||
sb.append(this.f6830d);
|
||||
sb.append(", modes=");
|
||||
sb.append(list);
|
||||
sb.append(", supported protocols=");
|
||||
String[] enabledProtocols = sslSocket.getEnabledProtocols();
|
||||
Intrinsics.checkNotNull(enabledProtocols);
|
||||
String arrays = Arrays.toString(enabledProtocols);
|
||||
Intrinsics.checkNotNullExpressionValue(arrays, "toString(this)");
|
||||
sb.append(arrays);
|
||||
throw new UnknownServiceException(sb.toString());
|
||||
}
|
||||
int i5 = this.f6828b;
|
||||
int size2 = list.size();
|
||||
while (true) {
|
||||
i = 0;
|
||||
if (i5 >= size2) {
|
||||
z3 = false;
|
||||
break;
|
||||
}
|
||||
if (((C0326l) list.get(i5)).b(sslSocket)) {
|
||||
z3 = true;
|
||||
break;
|
||||
}
|
||||
i5++;
|
||||
}
|
||||
this.f6829c = z3;
|
||||
boolean z5 = this.f6830d;
|
||||
Intrinsics.checkNotNullParameter(sslSocket, "sslSocket");
|
||||
String[] strArr = connectionSpec.f6374c;
|
||||
if (strArr != null) {
|
||||
String[] enabledCipherSuites = sslSocket.getEnabledCipherSuites();
|
||||
Intrinsics.checkNotNullExpressionValue(enabledCipherSuites, "sslSocket.enabledCipherSuites");
|
||||
cipherSuitesIntersection = f3.c.o(enabledCipherSuites, strArr, C0324j.f6350c);
|
||||
} else {
|
||||
cipherSuitesIntersection = sslSocket.getEnabledCipherSuites();
|
||||
}
|
||||
?? r5 = connectionSpec.f6375d;
|
||||
if (r5 != 0) {
|
||||
String[] enabledProtocols2 = sslSocket.getEnabledProtocols();
|
||||
Intrinsics.checkNotNullExpressionValue(enabledProtocols2, "sslSocket.enabledProtocols");
|
||||
tlsVersionsIntersection = f3.c.o(enabledProtocols2, r5, ComparisonsKt.naturalOrder());
|
||||
} else {
|
||||
tlsVersionsIntersection = sslSocket.getEnabledProtocols();
|
||||
}
|
||||
String[] supportedCipherSuites = sslSocket.getSupportedCipherSuites();
|
||||
Intrinsics.checkNotNullExpressionValue(supportedCipherSuites, "supportedCipherSuites");
|
||||
C0323i comparator = C0324j.f6350c;
|
||||
byte[] bArr = f3.c.f6469a;
|
||||
Intrinsics.checkNotNullParameter(supportedCipherSuites, "<this>");
|
||||
Intrinsics.checkNotNullParameter("TLS_FALLBACK_SCSV", "value");
|
||||
Intrinsics.checkNotNullParameter(comparator, "comparator");
|
||||
int length = supportedCipherSuites.length;
|
||||
while (true) {
|
||||
if (i >= length) {
|
||||
i = -1;
|
||||
break;
|
||||
}
|
||||
boolean z6 = z4;
|
||||
if (comparator.compare(supportedCipherSuites[i], "TLS_FALLBACK_SCSV") == 0) {
|
||||
break;
|
||||
}
|
||||
i++;
|
||||
z4 = z6;
|
||||
}
|
||||
if (z5 && i != -1) {
|
||||
Intrinsics.checkNotNullExpressionValue(cipherSuitesIntersection, "cipherSuitesIntersection");
|
||||
String value = supportedCipherSuites[i];
|
||||
Intrinsics.checkNotNullExpressionValue(value, "supportedCipherSuites[indexOfFallbackScsv]");
|
||||
Intrinsics.checkNotNullParameter(cipherSuitesIntersection, "<this>");
|
||||
Intrinsics.checkNotNullParameter(value, "value");
|
||||
Object[] copyOf = Arrays.copyOf(cipherSuitesIntersection, cipherSuitesIntersection.length + 1);
|
||||
Intrinsics.checkNotNullExpressionValue(copyOf, "copyOf(this, newSize)");
|
||||
cipherSuitesIntersection = (String[]) copyOf;
|
||||
cipherSuitesIntersection[ArraysKt.getLastIndex(cipherSuitesIntersection)] = value;
|
||||
}
|
||||
Intrinsics.checkNotNullParameter(connectionSpec, "connectionSpec");
|
||||
?? obj = new Object();
|
||||
obj.f6366a = connectionSpec.f6372a;
|
||||
obj.f6368c = strArr;
|
||||
obj.f6369d = r5;
|
||||
obj.f6367b = connectionSpec.f6373b;
|
||||
Intrinsics.checkNotNullExpressionValue(cipherSuitesIntersection, "cipherSuitesIntersection");
|
||||
obj.c((String[]) Arrays.copyOf(cipherSuitesIntersection, cipherSuitesIntersection.length));
|
||||
Intrinsics.checkNotNullExpressionValue(tlsVersionsIntersection, "tlsVersionsIntersection");
|
||||
obj.e((String[]) Arrays.copyOf(tlsVersionsIntersection, tlsVersionsIntersection.length));
|
||||
C0326l a2 = obj.a();
|
||||
if (a2.c() != null) {
|
||||
sslSocket.setEnabledProtocols(a2.f6375d);
|
||||
}
|
||||
if (a2.a() != null) {
|
||||
sslSocket.setEnabledCipherSuites(a2.f6374c);
|
||||
}
|
||||
return connectionSpec;
|
||||
}
|
||||
}
|
||||
88
apk_decompiled/sources/i3/c.java
Normal file
88
apk_decompiled/sources/i3/c.java
Normal file
@@ -0,0 +1,88 @@
|
||||
package i3;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.ProtocolException;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import r3.C0576h;
|
||||
import r3.G;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class c extends r3.o {
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final long f6831b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public boolean f6832c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public long f6833d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public boolean f6834e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public final /* synthetic */ e f6835f;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public c(e eVar, G delegate, long j4) {
|
||||
super(delegate);
|
||||
Intrinsics.checkNotNullParameter(delegate, "delegate");
|
||||
this.f6835f = eVar;
|
||||
this.f6831b = j4;
|
||||
}
|
||||
|
||||
@Override // r3.o, r3.G, java.io.Closeable, java.lang.AutoCloseable
|
||||
public final void close() {
|
||||
if (this.f6834e) {
|
||||
return;
|
||||
}
|
||||
this.f6834e = true;
|
||||
long j4 = this.f6831b;
|
||||
if (j4 != -1 && this.f6833d != j4) {
|
||||
throw new ProtocolException("unexpected end of stream");
|
||||
}
|
||||
try {
|
||||
super.close();
|
||||
d(null);
|
||||
} catch (IOException e4) {
|
||||
throw d(e4);
|
||||
}
|
||||
}
|
||||
|
||||
public final IOException d(IOException iOException) {
|
||||
if (this.f6832c) {
|
||||
return iOException;
|
||||
}
|
||||
this.f6832c = true;
|
||||
return this.f6835f.a(false, true, iOException);
|
||||
}
|
||||
|
||||
@Override // r3.o, r3.G, java.io.Flushable
|
||||
public final void flush() {
|
||||
try {
|
||||
super.flush();
|
||||
} catch (IOException e4) {
|
||||
throw d(e4);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // r3.o, r3.G
|
||||
public final void z(C0576h source, long j4) {
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
if (this.f6834e) {
|
||||
throw new IllegalStateException("closed");
|
||||
}
|
||||
long j5 = this.f6831b;
|
||||
if (j5 == -1 || this.f6833d + j4 <= j5) {
|
||||
try {
|
||||
super.z(source, j4);
|
||||
this.f6833d += j4;
|
||||
return;
|
||||
} catch (IOException e4) {
|
||||
throw d(e4);
|
||||
}
|
||||
}
|
||||
throw new ProtocolException("expected " + j5 + " bytes but received " + (this.f6833d + j4));
|
||||
}
|
||||
}
|
||||
105
apk_decompiled/sources/i3/d.java
Normal file
105
apk_decompiled/sources/i3/d.java
Normal file
@@ -0,0 +1,105 @@
|
||||
package i3;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.ProtocolException;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import r3.C0576h;
|
||||
import r3.I;
|
||||
import r3.p;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class d extends p {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final long f6836a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public long f6837b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public boolean f6838c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public boolean f6839d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public boolean f6840e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public final /* synthetic */ e f6841f;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public d(e eVar, I delegate, long j4) {
|
||||
super(delegate);
|
||||
Intrinsics.checkNotNullParameter(delegate, "delegate");
|
||||
this.f6841f = eVar;
|
||||
this.f6836a = j4;
|
||||
this.f6838c = true;
|
||||
if (j4 == 0) {
|
||||
d(null);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // r3.p, java.io.Closeable, java.lang.AutoCloseable
|
||||
public final void close() {
|
||||
if (this.f6840e) {
|
||||
return;
|
||||
}
|
||||
this.f6840e = true;
|
||||
try {
|
||||
super.close();
|
||||
d(null);
|
||||
} catch (IOException e4) {
|
||||
throw d(e4);
|
||||
}
|
||||
}
|
||||
|
||||
public final IOException d(IOException iOException) {
|
||||
if (this.f6839d) {
|
||||
return iOException;
|
||||
}
|
||||
this.f6839d = true;
|
||||
e eVar = this.f6841f;
|
||||
if (iOException == null && this.f6838c) {
|
||||
this.f6838c = false;
|
||||
eVar.getClass();
|
||||
j call = eVar.f6842a;
|
||||
Intrinsics.checkNotNullParameter(call, "call");
|
||||
}
|
||||
return eVar.a(true, false, iOException);
|
||||
}
|
||||
|
||||
@Override // r3.p, r3.I
|
||||
public final long read(C0576h sink, long j4) {
|
||||
Intrinsics.checkNotNullParameter(sink, "sink");
|
||||
if (this.f6840e) {
|
||||
throw new IllegalStateException("closed");
|
||||
}
|
||||
try {
|
||||
long read = delegate().read(sink, j4);
|
||||
if (this.f6838c) {
|
||||
this.f6838c = false;
|
||||
e eVar = this.f6841f;
|
||||
eVar.getClass();
|
||||
j call = eVar.f6842a;
|
||||
Intrinsics.checkNotNullParameter(call, "call");
|
||||
}
|
||||
if (read == -1) {
|
||||
d(null);
|
||||
return -1L;
|
||||
}
|
||||
long j5 = this.f6837b + read;
|
||||
long j6 = this.f6836a;
|
||||
if (j6 == -1 || j5 <= j6) {
|
||||
this.f6837b = j5;
|
||||
if (j5 == j6) {
|
||||
d(null);
|
||||
}
|
||||
return read;
|
||||
}
|
||||
throw new ProtocolException("expected " + j6 + " bytes but received " + j5);
|
||||
} catch (IOException e4) {
|
||||
throw d(e4);
|
||||
}
|
||||
}
|
||||
}
|
||||
149
apk_decompiled/sources/i3/e.java
Normal file
149
apk_decompiled/sources/i3/e.java
Normal file
@@ -0,0 +1,149 @@
|
||||
package i3;
|
||||
|
||||
import a.AbstractC0105a;
|
||||
import e3.C0329o;
|
||||
import e3.I;
|
||||
import e3.M;
|
||||
import e3.N;
|
||||
import e3.O;
|
||||
import e3.Q;
|
||||
import java.io.IOException;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import l3.C0438a;
|
||||
import l3.D;
|
||||
import l3.EnumC0439b;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class e {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final j f6842a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final f f6843b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final j3.e f6844c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public boolean f6845d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public boolean f6846e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public final l f6847f;
|
||||
|
||||
public e(j call, f finder, j3.e codec) {
|
||||
C0329o eventListener = C0329o.f6389d;
|
||||
Intrinsics.checkNotNullParameter(call, "call");
|
||||
Intrinsics.checkNotNullParameter(eventListener, "eventListener");
|
||||
Intrinsics.checkNotNullParameter(finder, "finder");
|
||||
Intrinsics.checkNotNullParameter(codec, "codec");
|
||||
this.f6842a = call;
|
||||
this.f6843b = finder;
|
||||
this.f6844c = codec;
|
||||
this.f6847f = codec.h();
|
||||
}
|
||||
|
||||
public final IOException a(boolean z3, boolean z4, IOException ioe) {
|
||||
if (ioe != null) {
|
||||
e(ioe);
|
||||
}
|
||||
j call = this.f6842a;
|
||||
if (z4) {
|
||||
if (ioe != null) {
|
||||
Intrinsics.checkNotNullParameter(call, "call");
|
||||
Intrinsics.checkNotNullParameter(ioe, "ioe");
|
||||
} else {
|
||||
Intrinsics.checkNotNullParameter(call, "call");
|
||||
}
|
||||
}
|
||||
if (z3) {
|
||||
if (ioe != null) {
|
||||
Intrinsics.checkNotNullParameter(call, "call");
|
||||
Intrinsics.checkNotNullParameter(ioe, "ioe");
|
||||
} else {
|
||||
Intrinsics.checkNotNullParameter(call, "call");
|
||||
}
|
||||
}
|
||||
return call.h(this, z4, z3, ioe);
|
||||
}
|
||||
|
||||
public final c b(I request, boolean z3) {
|
||||
Intrinsics.checkNotNullParameter(request, "request");
|
||||
this.f6845d = z3;
|
||||
M m4 = request.f6270d;
|
||||
Intrinsics.checkNotNull(m4);
|
||||
long contentLength = m4.contentLength();
|
||||
j call = this.f6842a;
|
||||
Intrinsics.checkNotNullParameter(call, "call");
|
||||
return new c(this, this.f6844c.e(request, contentLength), contentLength);
|
||||
}
|
||||
|
||||
public final Q c(O response) {
|
||||
j3.e eVar = this.f6844c;
|
||||
Intrinsics.checkNotNullParameter(response, "response");
|
||||
try {
|
||||
String d4 = O.d(response, "Content-Type");
|
||||
long f2 = eVar.f(response);
|
||||
return new Q(d4, f2, AbstractC0105a.d(new d(this, eVar.b(response), f2)));
|
||||
} catch (IOException ioe) {
|
||||
j call = this.f6842a;
|
||||
Intrinsics.checkNotNullParameter(call, "call");
|
||||
Intrinsics.checkNotNullParameter(ioe, "ioe");
|
||||
e(ioe);
|
||||
throw ioe;
|
||||
}
|
||||
}
|
||||
|
||||
public final N d(boolean z3) {
|
||||
try {
|
||||
N g4 = this.f6844c.g(z3);
|
||||
if (g4 != null) {
|
||||
Intrinsics.checkNotNullParameter(this, "deferredTrailers");
|
||||
g4.f6290m = this;
|
||||
}
|
||||
return g4;
|
||||
} catch (IOException ioe) {
|
||||
j call = this.f6842a;
|
||||
Intrinsics.checkNotNullParameter(call, "call");
|
||||
Intrinsics.checkNotNullParameter(ioe, "ioe");
|
||||
e(ioe);
|
||||
throw ioe;
|
||||
}
|
||||
}
|
||||
|
||||
public final void e(IOException iOException) {
|
||||
this.f6846e = true;
|
||||
this.f6843b.c(iOException);
|
||||
l h = this.f6844c.h();
|
||||
j call = this.f6842a;
|
||||
synchronized (h) {
|
||||
try {
|
||||
Intrinsics.checkNotNullParameter(call, "call");
|
||||
if (!(iOException instanceof D)) {
|
||||
if (!(h.f6878g != null) || (iOException instanceof C0438a)) {
|
||||
h.f6879j = true;
|
||||
if (h.f6882m == 0) {
|
||||
l.d(call.f6860a, h.f6873b, iOException);
|
||||
h.f6881l++;
|
||||
}
|
||||
}
|
||||
} else if (((D) iOException).f7372a == EnumC0439b.REFUSED_STREAM) {
|
||||
int i = h.f6883n + 1;
|
||||
h.f6883n = i;
|
||||
if (i > 1) {
|
||||
h.f6879j = true;
|
||||
h.f6881l++;
|
||||
}
|
||||
} else if (((D) iOException).f7372a != EnumC0439b.CANCEL || !call.f6871n) {
|
||||
h.f6879j = true;
|
||||
h.f6881l++;
|
||||
}
|
||||
} catch (Throwable th) {
|
||||
throw th;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
82
apk_decompiled/sources/i3/f.java
Normal file
82
apk_decompiled/sources/i3/f.java
Normal file
@@ -0,0 +1,82 @@
|
||||
package i3;
|
||||
|
||||
import Z2.D;
|
||||
import e3.C0315a;
|
||||
import e3.C0329o;
|
||||
import e3.U;
|
||||
import e3.w;
|
||||
import java.io.IOException;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import l3.C0438a;
|
||||
import l3.EnumC0439b;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class f {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final m f6848a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final C0315a f6849b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final j f6850c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public D f6851d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public o f6852e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public int f6853f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public int f6854g;
|
||||
public int h;
|
||||
public U i;
|
||||
|
||||
public f(m connectionPool, C0315a address, j call) {
|
||||
C0329o eventListener = C0329o.f6389d;
|
||||
Intrinsics.checkNotNullParameter(connectionPool, "connectionPool");
|
||||
Intrinsics.checkNotNullParameter(address, "address");
|
||||
Intrinsics.checkNotNullParameter(call, "call");
|
||||
Intrinsics.checkNotNullParameter(eventListener, "eventListener");
|
||||
this.f6848a = connectionPool;
|
||||
this.f6849b = address;
|
||||
this.f6850c = call;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:22:0x0391 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:44:0x0390 A[SYNTHETIC] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:69:0x0320 A[EXC_TOP_SPLITTER, SYNTHETIC] */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final i3.l a(int r17, boolean r18, boolean r19, int r20, int r21) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 994
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: i3.f.a(int, boolean, boolean, int, int):i3.l");
|
||||
}
|
||||
|
||||
public final boolean b(w url) {
|
||||
Intrinsics.checkNotNullParameter(url, "url");
|
||||
w wVar = this.f6849b.h;
|
||||
return url.f6417e == wVar.f6417e && Intrinsics.areEqual(url.f6416d, wVar.f6416d);
|
||||
}
|
||||
|
||||
public final void c(IOException e4) {
|
||||
Intrinsics.checkNotNullParameter(e4, "e");
|
||||
this.i = null;
|
||||
if ((e4 instanceof l3.D) && ((l3.D) e4).f7372a == EnumC0439b.REFUSED_STREAM) {
|
||||
this.f6853f++;
|
||||
} else if (e4 instanceof C0438a) {
|
||||
this.f6854g++;
|
||||
} else {
|
||||
this.h++;
|
||||
}
|
||||
}
|
||||
}
|
||||
84
apk_decompiled/sources/i3/g.java
Normal file
84
apk_decompiled/sources/i3/g.java
Normal file
@@ -0,0 +1,84 @@
|
||||
package i3;
|
||||
|
||||
import e3.C0330p;
|
||||
import e3.InterfaceC0320f;
|
||||
import java.io.IOException;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
import kotlin.ExceptionsKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class g implements Runnable {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final InterfaceC0320f f6855a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public volatile AtomicInteger f6856b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ j f6857c;
|
||||
|
||||
public g(j jVar, InterfaceC0320f responseCallback) {
|
||||
Intrinsics.checkNotNullParameter(responseCallback, "responseCallback");
|
||||
this.f6857c = jVar;
|
||||
this.f6855a = responseCallback;
|
||||
this.f6856b = new AtomicInteger(0);
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
C0330p c0330p;
|
||||
String str = "OkHttp " + this.f6857c.f6861b.f6267a.g();
|
||||
j jVar = this.f6857c;
|
||||
Thread currentThread = Thread.currentThread();
|
||||
String name = currentThread.getName();
|
||||
currentThread.setName(str);
|
||||
try {
|
||||
jVar.f6863d.h();
|
||||
boolean z3 = false;
|
||||
try {
|
||||
try {
|
||||
try {
|
||||
this.f6855a.onResponse(jVar, jVar.g());
|
||||
c0330p = jVar.f6860a.f6233a;
|
||||
} catch (IOException e4) {
|
||||
e = e4;
|
||||
z3 = true;
|
||||
if (z3) {
|
||||
m3.n nVar = m3.n.f7829a;
|
||||
m3.n nVar2 = m3.n.f7829a;
|
||||
String str2 = "Callback failure for " + j.a(jVar);
|
||||
nVar2.getClass();
|
||||
m3.n.i(4, str2, e);
|
||||
} else {
|
||||
this.f6855a.onFailure(jVar, e);
|
||||
}
|
||||
c0330p = jVar.f6860a.f6233a;
|
||||
c0330p.b(this);
|
||||
} catch (Throwable th) {
|
||||
th = th;
|
||||
z3 = true;
|
||||
jVar.cancel();
|
||||
if (!z3) {
|
||||
IOException iOException = new IOException("canceled due to " + th);
|
||||
ExceptionsKt.addSuppressed(iOException, th);
|
||||
this.f6855a.onFailure(jVar, iOException);
|
||||
}
|
||||
throw th;
|
||||
}
|
||||
} catch (Throwable th2) {
|
||||
jVar.f6860a.f6233a.b(this);
|
||||
throw th2;
|
||||
}
|
||||
} catch (IOException e5) {
|
||||
e = e5;
|
||||
} catch (Throwable th3) {
|
||||
th = th3;
|
||||
}
|
||||
c0330p.b(this);
|
||||
} finally {
|
||||
currentThread.setName(name);
|
||||
}
|
||||
}
|
||||
}
|
||||
18
apk_decompiled/sources/i3/h.java
Normal file
18
apk_decompiled/sources/i3/h.java
Normal file
@@ -0,0 +1,18 @@
|
||||
package i3;
|
||||
|
||||
import java.lang.ref.WeakReference;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class h extends WeakReference {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final Object f6858a;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public h(j referent, Object obj) {
|
||||
super(referent);
|
||||
Intrinsics.checkNotNullParameter(referent, "referent");
|
||||
this.f6858a = obj;
|
||||
}
|
||||
}
|
||||
19
apk_decompiled/sources/i3/i.java
Normal file
19
apk_decompiled/sources/i3/i.java
Normal file
@@ -0,0 +1,19 @@
|
||||
package i3;
|
||||
|
||||
import r3.C0573e;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class i extends C0573e {
|
||||
|
||||
/* renamed from: m, reason: collision with root package name */
|
||||
public final /* synthetic */ j f6859m;
|
||||
|
||||
public i(j jVar) {
|
||||
this.f6859m = jVar;
|
||||
}
|
||||
|
||||
@Override // r3.C0573e
|
||||
public final void j() {
|
||||
this.f6859m.cancel();
|
||||
}
|
||||
}
|
||||
436
apk_decompiled/sources/i3/j.java
Normal file
436
apk_decompiled/sources/i3/j.java
Normal file
@@ -0,0 +1,436 @@
|
||||
package i3;
|
||||
|
||||
import e3.C0329o;
|
||||
import e3.C0330p;
|
||||
import e3.F;
|
||||
import e3.I;
|
||||
import e3.InterfaceC0319e;
|
||||
import e3.InterfaceC0320f;
|
||||
import e3.O;
|
||||
import java.io.IOException;
|
||||
import java.io.InterruptedIOException;
|
||||
import java.lang.ref.Reference;
|
||||
import java.net.Socket;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.concurrent.ConcurrentLinkedQueue;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.concurrent.atomic.AtomicBoolean;
|
||||
import kotlin.Unit;
|
||||
import kotlin.collections.CollectionsKt__MutableCollectionsKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class j implements InterfaceC0319e {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final F f6860a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final I f6861b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final m f6862c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final i f6863d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final AtomicBoolean f6864e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public Object f6865f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public f f6866g;
|
||||
public l h;
|
||||
public boolean i;
|
||||
|
||||
/* renamed from: j, reason: collision with root package name */
|
||||
public e f6867j;
|
||||
|
||||
/* renamed from: k, reason: collision with root package name */
|
||||
public boolean f6868k;
|
||||
|
||||
/* renamed from: l, reason: collision with root package name */
|
||||
public boolean f6869l;
|
||||
|
||||
/* renamed from: m, reason: collision with root package name */
|
||||
public boolean f6870m;
|
||||
|
||||
/* renamed from: n, reason: collision with root package name */
|
||||
public volatile boolean f6871n;
|
||||
|
||||
/* renamed from: o, reason: collision with root package name */
|
||||
public volatile e f6872o;
|
||||
public volatile l p;
|
||||
|
||||
public j(F client, I originalRequest) {
|
||||
Intrinsics.checkNotNullParameter(client, "client");
|
||||
Intrinsics.checkNotNullParameter(originalRequest, "originalRequest");
|
||||
this.f6860a = client;
|
||||
this.f6861b = originalRequest;
|
||||
this.f6862c = (m) client.f6234b.f7b;
|
||||
client.f6237e.getClass();
|
||||
C0329o this_asFactory = C0329o.f6389d;
|
||||
Intrinsics.checkNotNullParameter(this_asFactory, "$this_asFactory");
|
||||
Intrinsics.checkNotNullParameter(this, "it");
|
||||
i iVar = new i(this);
|
||||
TimeUnit timeUnit = TimeUnit.MILLISECONDS;
|
||||
iVar.g(0);
|
||||
this.f6863d = iVar;
|
||||
this.f6864e = new AtomicBoolean();
|
||||
this.f6870m = true;
|
||||
}
|
||||
|
||||
public static final String a(j jVar) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(jVar.f6871n ? "canceled " : "");
|
||||
sb.append("call");
|
||||
sb.append(" to ");
|
||||
sb.append(jVar.f6861b.f6267a.g());
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public final void b(l connection) {
|
||||
Intrinsics.checkNotNullParameter(connection, "connection");
|
||||
byte[] bArr = f3.c.f6469a;
|
||||
if (this.h != null) {
|
||||
throw new IllegalStateException("Check failed.");
|
||||
}
|
||||
this.h = connection;
|
||||
connection.p.add(new h(this, this.f6865f));
|
||||
}
|
||||
|
||||
public final IOException c(IOException iOException) {
|
||||
IOException ioe;
|
||||
Socket j4;
|
||||
byte[] bArr = f3.c.f6469a;
|
||||
l connection = this.h;
|
||||
if (connection != null) {
|
||||
synchronized (connection) {
|
||||
j4 = j();
|
||||
}
|
||||
if (this.h == null) {
|
||||
if (j4 != null) {
|
||||
f3.c.d(j4);
|
||||
}
|
||||
Intrinsics.checkNotNullParameter(this, "call");
|
||||
Intrinsics.checkNotNullParameter(connection, "connection");
|
||||
} else if (j4 != null) {
|
||||
throw new IllegalStateException("Check failed.");
|
||||
}
|
||||
}
|
||||
if (!this.i && this.f6863d.i()) {
|
||||
ioe = new InterruptedIOException("timeout");
|
||||
if (iOException != null) {
|
||||
ioe.initCause(iOException);
|
||||
}
|
||||
} else {
|
||||
ioe = iOException;
|
||||
}
|
||||
if (iOException == null) {
|
||||
Intrinsics.checkNotNullParameter(this, "call");
|
||||
return ioe;
|
||||
}
|
||||
Intrinsics.checkNotNull(ioe);
|
||||
Intrinsics.checkNotNullParameter(this, "call");
|
||||
Intrinsics.checkNotNullParameter(ioe, "ioe");
|
||||
return ioe;
|
||||
}
|
||||
|
||||
public final void cancel() {
|
||||
Socket socket;
|
||||
if (this.f6871n) {
|
||||
return;
|
||||
}
|
||||
this.f6871n = true;
|
||||
e eVar = this.f6872o;
|
||||
if (eVar != null) {
|
||||
eVar.f6844c.cancel();
|
||||
}
|
||||
l lVar = this.p;
|
||||
if (lVar != null && (socket = lVar.f6874c) != null) {
|
||||
f3.c.d(socket);
|
||||
}
|
||||
Intrinsics.checkNotNullParameter(this, "call");
|
||||
}
|
||||
|
||||
public final Object clone() {
|
||||
return new j(this.f6860a, this.f6861b);
|
||||
}
|
||||
|
||||
public final void d(InterfaceC0320f responseCallback) {
|
||||
g other;
|
||||
Intrinsics.checkNotNullParameter(responseCallback, "responseCallback");
|
||||
if (!this.f6864e.compareAndSet(false, true)) {
|
||||
throw new IllegalStateException("Already Executed");
|
||||
}
|
||||
m3.n nVar = m3.n.f7829a;
|
||||
this.f6865f = m3.n.f7829a.g();
|
||||
Intrinsics.checkNotNullParameter(this, "call");
|
||||
C0330p c0330p = this.f6860a.f6233a;
|
||||
g call = new g(this, responseCallback);
|
||||
c0330p.getClass();
|
||||
Intrinsics.checkNotNullParameter(call, "call");
|
||||
synchronized (c0330p) {
|
||||
c0330p.f6391b.add(call);
|
||||
String str = this.f6861b.f6267a.f6416d;
|
||||
Iterator it = c0330p.f6392c.iterator();
|
||||
while (true) {
|
||||
if (!it.hasNext()) {
|
||||
Iterator it2 = c0330p.f6391b.iterator();
|
||||
while (true) {
|
||||
if (!it2.hasNext()) {
|
||||
other = null;
|
||||
break;
|
||||
} else {
|
||||
other = (g) it2.next();
|
||||
if (Intrinsics.areEqual(other.f6857c.f6861b.f6267a.f6416d, str)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
other = (g) it.next();
|
||||
if (Intrinsics.areEqual(other.f6857c.f6861b.f6267a.f6416d, str)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (other != null) {
|
||||
Intrinsics.checkNotNullParameter(other, "other");
|
||||
call.f6856b = other.f6856b;
|
||||
}
|
||||
Unit unit = Unit.INSTANCE;
|
||||
}
|
||||
c0330p.c();
|
||||
}
|
||||
|
||||
public final O e() {
|
||||
if (!this.f6864e.compareAndSet(false, true)) {
|
||||
throw new IllegalStateException("Already Executed");
|
||||
}
|
||||
this.f6863d.h();
|
||||
m3.n nVar = m3.n.f7829a;
|
||||
this.f6865f = m3.n.f7829a.g();
|
||||
Intrinsics.checkNotNullParameter(this, "call");
|
||||
try {
|
||||
C0330p c0330p = this.f6860a.f6233a;
|
||||
synchronized (c0330p) {
|
||||
Intrinsics.checkNotNullParameter(this, "call");
|
||||
c0330p.f6393d.add(this);
|
||||
}
|
||||
return g();
|
||||
} finally {
|
||||
C0330p c0330p2 = this.f6860a.f6233a;
|
||||
c0330p2.getClass();
|
||||
Intrinsics.checkNotNullParameter(this, "call");
|
||||
c0330p2.a(c0330p2.f6393d, this);
|
||||
}
|
||||
}
|
||||
|
||||
public final void f(boolean z3) {
|
||||
e eVar;
|
||||
synchronized (this) {
|
||||
if (!this.f6870m) {
|
||||
throw new IllegalStateException("released");
|
||||
}
|
||||
Unit unit = Unit.INSTANCE;
|
||||
}
|
||||
if (z3 && (eVar = this.f6872o) != null) {
|
||||
eVar.f6844c.cancel();
|
||||
eVar.f6842a.h(eVar, true, true, null);
|
||||
}
|
||||
this.f6867j = null;
|
||||
}
|
||||
|
||||
public final O g() {
|
||||
ArrayList arrayList = new ArrayList();
|
||||
CollectionsKt__MutableCollectionsKt.addAll(arrayList, this.f6860a.f6235c);
|
||||
arrayList.add(new j3.a(this.f6860a));
|
||||
arrayList.add(new j3.a(this.f6860a.f6240j));
|
||||
this.f6860a.getClass();
|
||||
arrayList.add(new Object());
|
||||
arrayList.add(a.f6826a);
|
||||
CollectionsKt__MutableCollectionsKt.addAll(arrayList, this.f6860a.f6236d);
|
||||
arrayList.add(new Object());
|
||||
I i = this.f6861b;
|
||||
F f2 = this.f6860a;
|
||||
try {
|
||||
try {
|
||||
O b4 = new j3.g(this, arrayList, 0, null, i, f2.f6251v, f2.f6252w, f2.f6253x).b(this.f6861b);
|
||||
if (this.f6871n) {
|
||||
f3.c.c(b4);
|
||||
throw new IOException("Canceled");
|
||||
}
|
||||
i(null);
|
||||
return b4;
|
||||
} catch (IOException e4) {
|
||||
IOException i4 = i(e4);
|
||||
Intrinsics.checkNotNull(i4, "null cannot be cast to non-null type kotlin.Throwable");
|
||||
throw i4;
|
||||
}
|
||||
} catch (Throwable th) {
|
||||
if (0 == 0) {
|
||||
i(null);
|
||||
}
|
||||
throw th;
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:10:0x0022 A[Catch: all -> 0x0018, TryCatch #1 {all -> 0x0018, blocks: (B:49:0x0013, B:10:0x0022, B:12:0x0026, B:13:0x0028, B:15:0x002c, B:19:0x0035, B:21:0x0039, B:25:0x0042, B:7:0x001c), top: B:48:0x0013 }] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:12:0x0026 A[Catch: all -> 0x0018, TryCatch #1 {all -> 0x0018, blocks: (B:49:0x0013, B:10:0x0022, B:12:0x0026, B:13:0x0028, B:15:0x002c, B:19:0x0035, B:21:0x0039, B:25:0x0042, B:7:0x001c), top: B:48:0x0013 }] */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.io.IOException h(i3.e r3, boolean r4, boolean r5, java.io.IOException r6) {
|
||||
/*
|
||||
r2 = this;
|
||||
java.lang.String r0 = "exchange"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r3, r0)
|
||||
i3.e r0 = r2.f6872o
|
||||
boolean r3 = kotlin.jvm.internal.Intrinsics.areEqual(r3, r0)
|
||||
if (r3 != 0) goto Le
|
||||
goto L60
|
||||
Le:
|
||||
monitor-enter(r2)
|
||||
r3 = 1
|
||||
r0 = 0
|
||||
if (r4 == 0) goto L1a
|
||||
boolean r1 = r2.f6868k // Catch: java.lang.Throwable -> L18
|
||||
if (r1 != 0) goto L20
|
||||
goto L1a
|
||||
L18:
|
||||
r3 = move-exception
|
||||
goto L61
|
||||
L1a:
|
||||
if (r5 == 0) goto L41
|
||||
boolean r1 = r2.f6869l // Catch: java.lang.Throwable -> L18
|
||||
if (r1 == 0) goto L41
|
||||
L20:
|
||||
if (r4 == 0) goto L24
|
||||
r2.f6868k = r0 // Catch: java.lang.Throwable -> L18
|
||||
L24:
|
||||
if (r5 == 0) goto L28
|
||||
r2.f6869l = r0 // Catch: java.lang.Throwable -> L18
|
||||
L28:
|
||||
boolean r4 = r2.f6868k // Catch: java.lang.Throwable -> L18
|
||||
if (r4 != 0) goto L32
|
||||
boolean r5 = r2.f6869l // Catch: java.lang.Throwable -> L18
|
||||
if (r5 != 0) goto L32
|
||||
r5 = r3
|
||||
goto L33
|
||||
L32:
|
||||
r5 = r0
|
||||
L33:
|
||||
if (r4 != 0) goto L3e
|
||||
boolean r4 = r2.f6869l // Catch: java.lang.Throwable -> L18
|
||||
if (r4 != 0) goto L3e
|
||||
boolean r4 = r2.f6870m // Catch: java.lang.Throwable -> L18
|
||||
if (r4 != 0) goto L3e
|
||||
r0 = r3
|
||||
L3e:
|
||||
r4 = r0
|
||||
r0 = r5
|
||||
goto L42
|
||||
L41:
|
||||
r4 = r0
|
||||
L42:
|
||||
kotlin.Unit r5 = kotlin.Unit.INSTANCE // Catch: java.lang.Throwable -> L18
|
||||
monitor-exit(r2)
|
||||
if (r0 == 0) goto L59
|
||||
r5 = 0
|
||||
r2.f6872o = r5
|
||||
i3.l r5 = r2.h
|
||||
if (r5 == 0) goto L59
|
||||
monitor-enter(r5)
|
||||
int r0 = r5.f6882m // Catch: java.lang.Throwable -> L56
|
||||
int r0 = r0 + r3
|
||||
r5.f6882m = r0 // Catch: java.lang.Throwable -> L56
|
||||
monitor-exit(r5)
|
||||
goto L59
|
||||
L56:
|
||||
r2 = move-exception
|
||||
monitor-exit(r5) // Catch: java.lang.Throwable -> L56
|
||||
throw r2
|
||||
L59:
|
||||
if (r4 == 0) goto L60
|
||||
java.io.IOException r2 = r2.c(r6)
|
||||
return r2
|
||||
L60:
|
||||
return r6
|
||||
L61:
|
||||
monitor-exit(r2)
|
||||
throw r3
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: i3.j.h(i3.e, boolean, boolean, java.io.IOException):java.io.IOException");
|
||||
}
|
||||
|
||||
public final IOException i(IOException iOException) {
|
||||
boolean z3;
|
||||
synchronized (this) {
|
||||
try {
|
||||
z3 = false;
|
||||
if (this.f6870m) {
|
||||
this.f6870m = false;
|
||||
if (!this.f6868k && !this.f6869l) {
|
||||
z3 = true;
|
||||
}
|
||||
}
|
||||
Unit unit = Unit.INSTANCE;
|
||||
} catch (Throwable th) {
|
||||
throw th;
|
||||
}
|
||||
}
|
||||
return z3 ? c(iOException) : iOException;
|
||||
}
|
||||
|
||||
public final Socket j() {
|
||||
l connection = this.h;
|
||||
Intrinsics.checkNotNull(connection);
|
||||
byte[] bArr = f3.c.f6469a;
|
||||
ArrayList arrayList = connection.p;
|
||||
Iterator it = arrayList.iterator();
|
||||
int i = 0;
|
||||
while (true) {
|
||||
if (!it.hasNext()) {
|
||||
i = -1;
|
||||
break;
|
||||
}
|
||||
if (Intrinsics.areEqual(((Reference) it.next()).get(), this)) {
|
||||
break;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
if (i == -1) {
|
||||
throw new IllegalStateException("Check failed.");
|
||||
}
|
||||
arrayList.remove(i);
|
||||
this.h = null;
|
||||
if (!arrayList.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
connection.f6885q = System.nanoTime();
|
||||
m mVar = this.f6862c;
|
||||
mVar.getClass();
|
||||
Intrinsics.checkNotNullParameter(connection, "connection");
|
||||
byte[] bArr2 = f3.c.f6469a;
|
||||
boolean z3 = connection.f6879j;
|
||||
h3.c cVar = mVar.f6887b;
|
||||
if (!z3) {
|
||||
cVar.c(mVar.f6888c, 0L);
|
||||
return null;
|
||||
}
|
||||
connection.f6879j = true;
|
||||
ConcurrentLinkedQueue concurrentLinkedQueue = mVar.f6889d;
|
||||
concurrentLinkedQueue.remove(connection);
|
||||
if (concurrentLinkedQueue.isEmpty()) {
|
||||
cVar.a();
|
||||
}
|
||||
Socket socket = connection.f6875d;
|
||||
Intrinsics.checkNotNull(socket);
|
||||
return socket;
|
||||
}
|
||||
}
|
||||
21
apk_decompiled/sources/i3/k.java
Normal file
21
apk_decompiled/sources/i3/k.java
Normal file
@@ -0,0 +1,21 @@
|
||||
package i3;
|
||||
|
||||
import java.net.Proxy;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract /* synthetic */ class k {
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
||||
|
||||
static {
|
||||
int[] iArr = new int[Proxy.Type.values().length];
|
||||
try {
|
||||
iArr[Proxy.Type.DIRECT.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused) {
|
||||
}
|
||||
try {
|
||||
iArr[Proxy.Type.HTTP.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused2) {
|
||||
}
|
||||
$EnumSwitchMapping$0 = iArr;
|
||||
}
|
||||
}
|
||||
761
apk_decompiled/sources/i3/l.java
Normal file
761
apk_decompiled/sources/i3/l.java
Normal file
@@ -0,0 +1,761 @@
|
||||
package i3;
|
||||
|
||||
import C.w;
|
||||
import a.AbstractC0105a;
|
||||
import a.AbstractC0106b;
|
||||
import androidx.fragment.app.C0163o;
|
||||
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
||||
import e3.C0315a;
|
||||
import e3.C0322h;
|
||||
import e3.C0326l;
|
||||
import e3.C0329o;
|
||||
import e3.C0332s;
|
||||
import e3.C0333t;
|
||||
import e3.F;
|
||||
import e3.G;
|
||||
import e3.H;
|
||||
import e3.I;
|
||||
import e3.InterfaceC0319e;
|
||||
import e3.N;
|
||||
import e3.O;
|
||||
import e3.Q;
|
||||
import e3.U;
|
||||
import java.io.IOException;
|
||||
import java.io.InterruptedIOException;
|
||||
import java.net.ConnectException;
|
||||
import java.net.InetSocketAddress;
|
||||
import java.net.ProtocolException;
|
||||
import java.net.Proxy;
|
||||
import java.net.Socket;
|
||||
import java.net.SocketTimeoutException;
|
||||
import java.net.UnknownServiceException;
|
||||
import java.security.cert.CertificateException;
|
||||
import java.security.cert.X509Certificate;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
import javax.net.ssl.HostnameVerifier;
|
||||
import javax.net.ssl.SSLException;
|
||||
import javax.net.ssl.SSLHandshakeException;
|
||||
import javax.net.ssl.SSLPeerUnverifiedException;
|
||||
import javax.net.ssl.SSLSession;
|
||||
import javax.net.ssl.SSLSocket;
|
||||
import javax.net.ssl.SSLSocketFactory;
|
||||
import kotlin.ExceptionsKt;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.LongCompanionObject;
|
||||
import kotlin.text.StringsKt__IndentKt;
|
||||
import l3.EnumC0439b;
|
||||
import l3.q;
|
||||
import l3.r;
|
||||
import l3.y;
|
||||
import l3.z;
|
||||
import r3.B;
|
||||
import r3.C;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class l extends l3.i {
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final U f6873b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public Socket f6874c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public Socket f6875d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public C0332s f6876e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public G f6877f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public q f6878g;
|
||||
public C h;
|
||||
public B i;
|
||||
|
||||
/* renamed from: j, reason: collision with root package name */
|
||||
public boolean f6879j;
|
||||
|
||||
/* renamed from: k, reason: collision with root package name */
|
||||
public boolean f6880k;
|
||||
|
||||
/* renamed from: l, reason: collision with root package name */
|
||||
public int f6881l;
|
||||
|
||||
/* renamed from: m, reason: collision with root package name */
|
||||
public int f6882m;
|
||||
|
||||
/* renamed from: n, reason: collision with root package name */
|
||||
public int f6883n;
|
||||
|
||||
/* renamed from: o, reason: collision with root package name */
|
||||
public int f6884o;
|
||||
public final ArrayList p;
|
||||
|
||||
/* renamed from: q, reason: collision with root package name */
|
||||
public long f6885q;
|
||||
|
||||
public l(m connectionPool, U route) {
|
||||
Intrinsics.checkNotNullParameter(connectionPool, "connectionPool");
|
||||
Intrinsics.checkNotNullParameter(route, "route");
|
||||
this.f6873b = route;
|
||||
this.f6884o = 1;
|
||||
this.p = new ArrayList();
|
||||
this.f6885q = LongCompanionObject.MAX_VALUE;
|
||||
}
|
||||
|
||||
public static void d(F client, U failedRoute, IOException failure) {
|
||||
Intrinsics.checkNotNullParameter(client, "client");
|
||||
Intrinsics.checkNotNullParameter(failedRoute, "failedRoute");
|
||||
Intrinsics.checkNotNullParameter(failure, "failure");
|
||||
if (failedRoute.f6312b.type() != Proxy.Type.DIRECT) {
|
||||
C0315a c0315a = failedRoute.f6311a;
|
||||
c0315a.f6327g.connectFailed(c0315a.h.h(), failedRoute.f6312b.address(), failure);
|
||||
}
|
||||
h3.d dVar = client.f6254y;
|
||||
synchronized (dVar) {
|
||||
Intrinsics.checkNotNullParameter(failedRoute, "failedRoute");
|
||||
((LinkedHashSet) dVar.f6791b).add(failedRoute);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // l3.i
|
||||
public final synchronized void a(q connection, l3.C settings) {
|
||||
Intrinsics.checkNotNullParameter(connection, "connection");
|
||||
Intrinsics.checkNotNullParameter(settings, "settings");
|
||||
this.f6884o = (settings.f7370a & 16) != 0 ? settings.f7371b[4] : Integer.MAX_VALUE;
|
||||
}
|
||||
|
||||
@Override // l3.i
|
||||
public final void b(y stream) {
|
||||
Intrinsics.checkNotNullParameter(stream, "stream");
|
||||
stream.c(EnumC0439b.REFUSED_STREAM, null);
|
||||
}
|
||||
|
||||
public final void c(int i, int i4, int i5, boolean z3, InterfaceC0319e call) {
|
||||
U u3;
|
||||
C0329o eventListener = C0329o.f6389d;
|
||||
Intrinsics.checkNotNullParameter(call, "call");
|
||||
Intrinsics.checkNotNullParameter(eventListener, "eventListener");
|
||||
if (this.f6877f != null) {
|
||||
throw new IllegalStateException("already connected");
|
||||
}
|
||||
List list = this.f6873b.f6311a.f6328j;
|
||||
b bVar = new b(list);
|
||||
C0315a c0315a = this.f6873b.f6311a;
|
||||
if (c0315a.f6323c == null) {
|
||||
if (!list.contains(C0326l.f6371f)) {
|
||||
throw new n(new UnknownServiceException("CLEARTEXT communication not enabled for client"));
|
||||
}
|
||||
String str = this.f6873b.f6311a.h.f6416d;
|
||||
m3.n nVar = m3.n.f7829a;
|
||||
if (!m3.n.f7829a.h(str)) {
|
||||
throw new n(new UnknownServiceException(w.o("CLEARTEXT communication to ", str, " not permitted by network security policy")));
|
||||
}
|
||||
} else if (c0315a.i.contains(G.H2_PRIOR_KNOWLEDGE)) {
|
||||
throw new n(new UnknownServiceException("H2_PRIOR_KNOWLEDGE cannot be used with HTTPS"));
|
||||
}
|
||||
n nVar2 = null;
|
||||
do {
|
||||
try {
|
||||
U u4 = this.f6873b;
|
||||
if (u4.f6311a.f6323c != null && u4.f6312b.type() == Proxy.Type.HTTP) {
|
||||
f(i, i4, i5, call);
|
||||
if (this.f6874c == null) {
|
||||
u3 = this.f6873b;
|
||||
if (u3.f6311a.f6323c == null && u3.f6312b.type() == Proxy.Type.HTTP && this.f6874c == null) {
|
||||
throw new n(new ProtocolException("Too many tunnel connections attempted: 21"));
|
||||
}
|
||||
this.f6885q = System.nanoTime();
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
e(i, i4, call);
|
||||
}
|
||||
g(bVar, call);
|
||||
U u5 = this.f6873b;
|
||||
InetSocketAddress inetSocketAddress = u5.f6313c;
|
||||
Proxy proxy = u5.f6312b;
|
||||
Intrinsics.checkNotNullParameter(call, "call");
|
||||
Intrinsics.checkNotNullParameter(inetSocketAddress, "inetSocketAddress");
|
||||
Intrinsics.checkNotNullParameter(proxy, "proxy");
|
||||
u3 = this.f6873b;
|
||||
if (u3.f6311a.f6323c == null) {
|
||||
}
|
||||
this.f6885q = System.nanoTime();
|
||||
return;
|
||||
} catch (IOException e4) {
|
||||
Socket socket = this.f6875d;
|
||||
if (socket != null) {
|
||||
f3.c.d(socket);
|
||||
}
|
||||
Socket socket2 = this.f6874c;
|
||||
if (socket2 != null) {
|
||||
f3.c.d(socket2);
|
||||
}
|
||||
this.f6875d = null;
|
||||
this.f6874c = null;
|
||||
this.h = null;
|
||||
this.i = null;
|
||||
this.f6876e = null;
|
||||
this.f6877f = null;
|
||||
this.f6878g = null;
|
||||
this.f6884o = 1;
|
||||
U u6 = this.f6873b;
|
||||
InetSocketAddress inetSocketAddress2 = u6.f6313c;
|
||||
Proxy proxy2 = u6.f6312b;
|
||||
Intrinsics.checkNotNullParameter(call, "call");
|
||||
Intrinsics.checkNotNullParameter(inetSocketAddress2, "inetSocketAddress");
|
||||
Intrinsics.checkNotNullParameter(proxy2, "proxy");
|
||||
Intrinsics.checkNotNullParameter(e4, "ioe");
|
||||
if (nVar2 == null) {
|
||||
nVar2 = new n(e4);
|
||||
} else {
|
||||
Intrinsics.checkNotNullParameter(e4, "e");
|
||||
ExceptionsKt.addSuppressed(nVar2.f6890a, e4);
|
||||
nVar2.f6891b = e4;
|
||||
}
|
||||
if (!z3) {
|
||||
throw nVar2;
|
||||
}
|
||||
Intrinsics.checkNotNullParameter(e4, "e");
|
||||
bVar.f6830d = true;
|
||||
if (!bVar.f6829c) {
|
||||
throw nVar2;
|
||||
}
|
||||
if (e4 instanceof ProtocolException) {
|
||||
throw nVar2;
|
||||
}
|
||||
if (e4 instanceof InterruptedIOException) {
|
||||
throw nVar2;
|
||||
}
|
||||
if ((e4 instanceof SSLHandshakeException) && (e4.getCause() instanceof CertificateException)) {
|
||||
throw nVar2;
|
||||
}
|
||||
if (e4 instanceof SSLPeerUnverifiedException) {
|
||||
throw nVar2;
|
||||
}
|
||||
}
|
||||
} while (e4 instanceof SSLException);
|
||||
throw nVar2;
|
||||
}
|
||||
|
||||
public final void e(int i, int i4, InterfaceC0319e call) {
|
||||
Socket createSocket;
|
||||
U u3 = this.f6873b;
|
||||
Proxy proxy = u3.f6312b;
|
||||
C0315a c0315a = u3.f6311a;
|
||||
Proxy.Type type = proxy.type();
|
||||
int i5 = type == null ? -1 : k.$EnumSwitchMapping$0[type.ordinal()];
|
||||
if (i5 == 1 || i5 == 2) {
|
||||
createSocket = c0315a.f6322b.createSocket();
|
||||
Intrinsics.checkNotNull(createSocket);
|
||||
} else {
|
||||
createSocket = new Socket(proxy);
|
||||
}
|
||||
this.f6874c = createSocket;
|
||||
InetSocketAddress inetSocketAddress = this.f6873b.f6313c;
|
||||
Intrinsics.checkNotNullParameter(call, "call");
|
||||
Intrinsics.checkNotNullParameter(inetSocketAddress, "inetSocketAddress");
|
||||
Intrinsics.checkNotNullParameter(proxy, "proxy");
|
||||
createSocket.setSoTimeout(i4);
|
||||
try {
|
||||
m3.n nVar = m3.n.f7829a;
|
||||
m3.n.f7829a.e(createSocket, this.f6873b.f6313c, i);
|
||||
try {
|
||||
this.h = AbstractC0105a.d(AbstractC0105a.S(createSocket));
|
||||
this.i = AbstractC0105a.c(AbstractC0105a.Q(createSocket));
|
||||
} catch (NullPointerException e4) {
|
||||
if (Intrinsics.areEqual(e4.getMessage(), "throw with null exception")) {
|
||||
throw new IOException(e4);
|
||||
}
|
||||
}
|
||||
} catch (ConnectException e5) {
|
||||
ConnectException connectException = new ConnectException("Failed to connect to " + this.f6873b.f6313c);
|
||||
connectException.initCause(e5);
|
||||
throw connectException;
|
||||
}
|
||||
}
|
||||
|
||||
public final void f(int i, int i4, int i5, InterfaceC0319e interfaceC0319e) {
|
||||
H h = new H();
|
||||
U u3 = this.f6873b;
|
||||
e3.w url = u3.f6311a.h;
|
||||
Intrinsics.checkNotNullParameter(url, "url");
|
||||
h.f6262a = url;
|
||||
h.d("CONNECT", null);
|
||||
C0315a c0315a = u3.f6311a;
|
||||
h.c("Host", f3.c.v(c0315a.h, true));
|
||||
h.c("Proxy-Connection", "Keep-Alive");
|
||||
h.c("User-Agent", "okhttp/4.12.0");
|
||||
I request = h.a();
|
||||
C0333t c0333t = new C0333t();
|
||||
Intrinsics.checkNotNullParameter(request, "request");
|
||||
G protocol = G.HTTP_1_1;
|
||||
Intrinsics.checkNotNullParameter(protocol, "protocol");
|
||||
Intrinsics.checkNotNullParameter("Preemptive Authenticate", "message");
|
||||
Q q4 = f3.c.f6471c;
|
||||
Intrinsics.checkNotNullParameter("Proxy-Authenticate", AppMeasurementSdk.ConditionalUserProperty.NAME);
|
||||
Intrinsics.checkNotNullParameter("OkHttp-Preemptive", "value");
|
||||
Intrinsics.checkNotNullParameter("Proxy-Authenticate", AppMeasurementSdk.ConditionalUserProperty.NAME);
|
||||
Intrinsics.checkNotNullParameter("OkHttp-Preemptive", "value");
|
||||
AbstractC0105a.g("Proxy-Authenticate");
|
||||
AbstractC0105a.h("OkHttp-Preemptive", "Proxy-Authenticate");
|
||||
c0333t.e("Proxy-Authenticate");
|
||||
c0333t.b("Proxy-Authenticate", "OkHttp-Preemptive");
|
||||
O response = new O(request, protocol, "Preemptive Authenticate", 407, null, c0333t.d(), q4, null, null, null, -1L, -1L, null);
|
||||
c0315a.f6326f.getClass();
|
||||
Intrinsics.checkNotNullParameter(response, "response");
|
||||
e(i, i4, interfaceC0319e);
|
||||
String str = "CONNECT " + f3.c.v(request.f6267a, true) + " HTTP/1.1";
|
||||
C c4 = this.h;
|
||||
Intrinsics.checkNotNull(c4);
|
||||
B b4 = this.i;
|
||||
Intrinsics.checkNotNull(b4);
|
||||
o oVar = new o(null, this, c4, b4);
|
||||
TimeUnit timeUnit = TimeUnit.MILLISECONDS;
|
||||
c4.f8245a.timeout().g(i4);
|
||||
b4.f8242a.timeout().g(i5);
|
||||
oVar.l(request.f6269c, str);
|
||||
oVar.c();
|
||||
N g4 = oVar.g(false);
|
||||
Intrinsics.checkNotNull(g4);
|
||||
g4.getClass();
|
||||
Intrinsics.checkNotNullParameter(request, "request");
|
||||
g4.f6280a = request;
|
||||
O response2 = g4.a();
|
||||
Intrinsics.checkNotNullParameter(response2, "response");
|
||||
long j4 = f3.c.j(response2);
|
||||
if (j4 != -1) {
|
||||
k3.d k4 = oVar.k(j4);
|
||||
f3.c.t(k4, Integer.MAX_VALUE);
|
||||
k4.close();
|
||||
}
|
||||
int i6 = response2.f6294d;
|
||||
if (i6 == 200) {
|
||||
if (!c4.f8246b.x() || !b4.f8243b.x()) {
|
||||
throw new IOException("TLS tunnel buffered too many bytes!");
|
||||
}
|
||||
} else {
|
||||
if (i6 != 407) {
|
||||
throw new IOException(com.google.android.gms.measurement.internal.a.l(i6, "Unexpected response code for CONNECT: "));
|
||||
}
|
||||
c0315a.f6326f.getClass();
|
||||
Intrinsics.checkNotNullParameter(response2, "response");
|
||||
throw new IOException("Failed to authenticate with proxy");
|
||||
}
|
||||
}
|
||||
|
||||
public final void g(b bVar, InterfaceC0319e call) {
|
||||
String trimMargin$default;
|
||||
int i = 2;
|
||||
C0315a c0315a = this.f6873b.f6311a;
|
||||
SSLSocketFactory sSLSocketFactory = c0315a.f6323c;
|
||||
G g4 = G.HTTP_1_1;
|
||||
if (sSLSocketFactory == null) {
|
||||
List list = c0315a.i;
|
||||
G g5 = G.H2_PRIOR_KNOWLEDGE;
|
||||
if (!list.contains(g5)) {
|
||||
this.f6875d = this.f6874c;
|
||||
this.f6877f = g4;
|
||||
return;
|
||||
} else {
|
||||
this.f6875d = this.f6874c;
|
||||
this.f6877f = g5;
|
||||
l();
|
||||
return;
|
||||
}
|
||||
}
|
||||
Intrinsics.checkNotNullParameter(call, "call");
|
||||
C0315a c0315a2 = this.f6873b.f6311a;
|
||||
SSLSocketFactory sSLSocketFactory2 = c0315a2.f6323c;
|
||||
SSLSocket sSLSocket = null;
|
||||
String str = null;
|
||||
try {
|
||||
Intrinsics.checkNotNull(sSLSocketFactory2);
|
||||
Socket socket = this.f6874c;
|
||||
e3.w wVar = c0315a2.h;
|
||||
Socket createSocket = sSLSocketFactory2.createSocket(socket, wVar.f6416d, wVar.f6417e, true);
|
||||
Intrinsics.checkNotNull(createSocket, "null cannot be cast to non-null type javax.net.ssl.SSLSocket");
|
||||
SSLSocket sSLSocket2 = (SSLSocket) createSocket;
|
||||
try {
|
||||
C0326l a2 = bVar.a(sSLSocket2);
|
||||
if (a2.f6373b) {
|
||||
m3.n nVar = m3.n.f7829a;
|
||||
m3.n.f7829a.d(sSLSocket2, c0315a2.h.f6416d, c0315a2.i);
|
||||
}
|
||||
sSLSocket2.startHandshake();
|
||||
SSLSession sslSocketSession = sSLSocket2.getSession();
|
||||
Intrinsics.checkNotNullExpressionValue(sslSocketSession, "sslSocketSession");
|
||||
C0332s o4 = m3.l.o(sslSocketSession);
|
||||
HostnameVerifier hostnameVerifier = c0315a2.f6324d;
|
||||
Intrinsics.checkNotNull(hostnameVerifier);
|
||||
if (hostnameVerifier.verify(c0315a2.h.f6416d, sslSocketSession)) {
|
||||
C0322h c0322h = c0315a2.f6325e;
|
||||
Intrinsics.checkNotNull(c0322h);
|
||||
this.f6876e = new C0332s(o4.f6399a, o4.f6400b, o4.f6401c, new C0163o(c0322h, o4, c0315a2, i));
|
||||
c0322h.a(c0315a2.h.f6416d, new J0.e(this, 10));
|
||||
if (a2.f6373b) {
|
||||
m3.n nVar2 = m3.n.f7829a;
|
||||
str = m3.n.f7829a.f(sSLSocket2);
|
||||
}
|
||||
this.f6875d = sSLSocket2;
|
||||
this.h = AbstractC0105a.d(AbstractC0105a.S(sSLSocket2));
|
||||
this.i = AbstractC0105a.c(AbstractC0105a.Q(sSLSocket2));
|
||||
if (str != null) {
|
||||
g4 = AbstractC0106b.i(str);
|
||||
}
|
||||
this.f6877f = g4;
|
||||
m3.n nVar3 = m3.n.f7829a;
|
||||
m3.n.f7829a.a(sSLSocket2);
|
||||
Intrinsics.checkNotNullParameter(call, "call");
|
||||
if (this.f6877f == G.HTTP_2) {
|
||||
l();
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
List a4 = o4.a();
|
||||
if (a4.isEmpty()) {
|
||||
throw new SSLPeerUnverifiedException("Hostname " + c0315a2.h.f6416d + " not verified (no certificates)");
|
||||
}
|
||||
Object obj = a4.get(0);
|
||||
Intrinsics.checkNotNull(obj, "null cannot be cast to non-null type java.security.cert.X509Certificate");
|
||||
X509Certificate certificate = (X509Certificate) obj;
|
||||
StringBuilder sb = new StringBuilder("\n |Hostname ");
|
||||
sb.append(c0315a2.h.f6416d);
|
||||
sb.append(" not verified:\n | certificate: ");
|
||||
C0322h c0322h2 = C0322h.f6346c;
|
||||
sb.append(m3.d.C(certificate));
|
||||
sb.append("\n | DN: ");
|
||||
sb.append(certificate.getSubjectDN().getName());
|
||||
sb.append("\n | subjectAltNames: ");
|
||||
Intrinsics.checkNotNullParameter(certificate, "certificate");
|
||||
sb.append(CollectionsKt.plus((Collection) q3.c.a(certificate, 7), (Iterable) q3.c.a(certificate, 2)));
|
||||
sb.append("\n ");
|
||||
trimMargin$default = StringsKt__IndentKt.trimMargin$default(sb.toString(), null, 1, null);
|
||||
throw new SSLPeerUnverifiedException(trimMargin$default);
|
||||
} catch (Throwable th) {
|
||||
th = th;
|
||||
sSLSocket = sSLSocket2;
|
||||
if (sSLSocket != null) {
|
||||
m3.n nVar4 = m3.n.f7829a;
|
||||
m3.n.f7829a.a(sSLSocket);
|
||||
}
|
||||
if (sSLSocket != null) {
|
||||
f3.c.d(sSLSocket);
|
||||
}
|
||||
throw th;
|
||||
}
|
||||
} catch (Throwable th2) {
|
||||
th = th2;
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:41:0x00b6, code lost:
|
||||
|
||||
if (q3.c.c(r1, (java.security.cert.X509Certificate) r10) != false) goto L50;
|
||||
*/
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final boolean h(e3.C0315a r9, java.util.ArrayList r10) {
|
||||
/*
|
||||
r8 = this;
|
||||
r0 = 1
|
||||
java.lang.String r1 = "address"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r9, r1)
|
||||
byte[] r1 = f3.c.f6469a
|
||||
java.util.ArrayList r1 = r8.p
|
||||
int r1 = r1.size()
|
||||
int r2 = r8.f6884o
|
||||
r3 = 0
|
||||
if (r1 >= r2) goto Ldc
|
||||
boolean r1 = r8.f6879j
|
||||
if (r1 == 0) goto L19
|
||||
goto Ldc
|
||||
L19:
|
||||
e3.U r1 = r8.f6873b
|
||||
e3.a r2 = r1.f6311a
|
||||
boolean r2 = r2.a(r9)
|
||||
if (r2 != 0) goto L25
|
||||
goto Ldc
|
||||
L25:
|
||||
e3.w r2 = r9.h
|
||||
java.lang.String r4 = r2.f6416d
|
||||
e3.a r5 = r1.f6311a
|
||||
e3.w r6 = r5.h
|
||||
java.lang.String r6 = r6.f6416d
|
||||
boolean r4 = kotlin.jvm.internal.Intrinsics.areEqual(r4, r6)
|
||||
if (r4 == 0) goto L36
|
||||
return r0
|
||||
L36:
|
||||
l3.q r4 = r8.f6878g
|
||||
if (r4 != 0) goto L3c
|
||||
goto Ldc
|
||||
L3c:
|
||||
if (r10 == 0) goto Ldc
|
||||
boolean r4 = r10.isEmpty()
|
||||
if (r4 == 0) goto L46
|
||||
goto Ldc
|
||||
L46:
|
||||
java.util.Iterator r10 = r10.iterator()
|
||||
L4a:
|
||||
boolean r4 = r10.hasNext()
|
||||
if (r4 == 0) goto Ldc
|
||||
java.lang.Object r4 = r10.next()
|
||||
e3.U r4 = (e3.U) r4
|
||||
java.net.Proxy r6 = r4.f6312b
|
||||
java.net.Proxy$Type r6 = r6.type()
|
||||
java.net.Proxy$Type r7 = java.net.Proxy.Type.DIRECT
|
||||
if (r6 != r7) goto L4a
|
||||
java.net.Proxy r6 = r1.f6312b
|
||||
java.net.Proxy$Type r6 = r6.type()
|
||||
if (r6 != r7) goto L4a
|
||||
java.net.InetSocketAddress r4 = r4.f6313c
|
||||
java.net.InetSocketAddress r6 = r1.f6313c
|
||||
boolean r4 = kotlin.jvm.internal.Intrinsics.areEqual(r6, r4)
|
||||
if (r4 == 0) goto L4a
|
||||
q3.c r10 = q3.c.f8192a
|
||||
javax.net.ssl.HostnameVerifier r1 = r9.f6324d
|
||||
if (r1 == r10) goto L79
|
||||
goto Ldc
|
||||
L79:
|
||||
byte[] r10 = f3.c.f6469a
|
||||
e3.w r10 = r5.h
|
||||
int r1 = r10.f6417e
|
||||
int r4 = r2.f6417e
|
||||
if (r4 == r1) goto L84
|
||||
goto Ldc
|
||||
L84:
|
||||
java.lang.String r10 = r10.f6416d
|
||||
java.lang.String r1 = r2.f6416d
|
||||
boolean r10 = kotlin.jvm.internal.Intrinsics.areEqual(r1, r10)
|
||||
if (r10 == 0) goto L8f
|
||||
goto Lb8
|
||||
L8f:
|
||||
boolean r10 = r8.f6880k
|
||||
if (r10 != 0) goto Ldc
|
||||
e3.s r10 = r8.f6876e
|
||||
if (r10 == 0) goto Ldc
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNull(r10)
|
||||
java.util.List r10 = r10.a()
|
||||
r2 = r10
|
||||
java.util.Collection r2 = (java.util.Collection) r2
|
||||
boolean r2 = r2.isEmpty()
|
||||
if (r2 != 0) goto Ldc
|
||||
java.lang.Object r10 = r10.get(r3)
|
||||
java.lang.String r2 = "null cannot be cast to non-null type java.security.cert.X509Certificate"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNull(r10, r2)
|
||||
java.security.cert.X509Certificate r10 = (java.security.cert.X509Certificate) r10
|
||||
boolean r10 = q3.c.c(r1, r10)
|
||||
if (r10 == 0) goto Ldc
|
||||
Lb8:
|
||||
e3.h r9 = r9.f6325e // Catch: javax.net.ssl.SSLPeerUnverifiedException -> Ldc
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNull(r9) // Catch: javax.net.ssl.SSLPeerUnverifiedException -> Ldc
|
||||
e3.s r8 = r8.f6876e // Catch: javax.net.ssl.SSLPeerUnverifiedException -> Ldc
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNull(r8) // Catch: javax.net.ssl.SSLPeerUnverifiedException -> Ldc
|
||||
java.util.List r8 = r8.a() // Catch: javax.net.ssl.SSLPeerUnverifiedException -> Ldc
|
||||
r9.getClass() // Catch: javax.net.ssl.SSLPeerUnverifiedException -> Ldc
|
||||
java.lang.String r10 = "hostname"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r1, r10) // Catch: javax.net.ssl.SSLPeerUnverifiedException -> Ldc
|
||||
java.lang.String r10 = "peerCertificates"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r8, r10) // Catch: javax.net.ssl.SSLPeerUnverifiedException -> Ldc
|
||||
androidx.fragment.app.o r10 = new androidx.fragment.app.o // Catch: javax.net.ssl.SSLPeerUnverifiedException -> Ldc
|
||||
r10.<init>(r9, r8, r1, r0) // Catch: javax.net.ssl.SSLPeerUnverifiedException -> Ldc
|
||||
r9.a(r1, r10) // Catch: javax.net.ssl.SSLPeerUnverifiedException -> Ldc
|
||||
return r0
|
||||
Ldc:
|
||||
return r3
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: i3.l.h(e3.a, java.util.ArrayList):boolean");
|
||||
}
|
||||
|
||||
public final boolean i(boolean z3) {
|
||||
long j4;
|
||||
byte[] bArr = f3.c.f6469a;
|
||||
long nanoTime = System.nanoTime();
|
||||
Socket socket = this.f6874c;
|
||||
Intrinsics.checkNotNull(socket);
|
||||
Socket socket2 = this.f6875d;
|
||||
Intrinsics.checkNotNull(socket2);
|
||||
C source = this.h;
|
||||
Intrinsics.checkNotNull(source);
|
||||
if (socket.isClosed() || socket2.isClosed() || socket2.isInputShutdown() || socket2.isOutputShutdown()) {
|
||||
return false;
|
||||
}
|
||||
q qVar = this.f6878g;
|
||||
if (qVar != null) {
|
||||
synchronized (qVar) {
|
||||
if (qVar.f7434f) {
|
||||
return false;
|
||||
}
|
||||
if (qVar.f7440n < qVar.f7439m) {
|
||||
if (nanoTime >= qVar.f7441o) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
synchronized (this) {
|
||||
j4 = nanoTime - this.f6885q;
|
||||
}
|
||||
if (j4 < 10000000000L || !z3) {
|
||||
return true;
|
||||
}
|
||||
Intrinsics.checkNotNullParameter(socket2, "<this>");
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
try {
|
||||
int soTimeout = socket2.getSoTimeout();
|
||||
try {
|
||||
socket2.setSoTimeout(1);
|
||||
return !source.d();
|
||||
} finally {
|
||||
socket2.setSoTimeout(soTimeout);
|
||||
}
|
||||
} catch (SocketTimeoutException unused) {
|
||||
return true;
|
||||
} catch (IOException unused2) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public final j3.e j(F client, j3.g chain) {
|
||||
Intrinsics.checkNotNullParameter(client, "client");
|
||||
Intrinsics.checkNotNullParameter(chain, "chain");
|
||||
Socket socket = this.f6875d;
|
||||
Intrinsics.checkNotNull(socket);
|
||||
C c4 = this.h;
|
||||
Intrinsics.checkNotNull(c4);
|
||||
B b4 = this.i;
|
||||
Intrinsics.checkNotNull(b4);
|
||||
q qVar = this.f6878g;
|
||||
if (qVar != null) {
|
||||
return new r(client, this, chain, qVar);
|
||||
}
|
||||
int i = chain.f6954g;
|
||||
socket.setSoTimeout(i);
|
||||
TimeUnit timeUnit = TimeUnit.MILLISECONDS;
|
||||
c4.f8245a.timeout().g(i);
|
||||
b4.f8242a.timeout().g(chain.h);
|
||||
return new o(client, this, c4, b4);
|
||||
}
|
||||
|
||||
public final synchronized void k() {
|
||||
this.f6879j = true;
|
||||
}
|
||||
|
||||
/* JADX WARN: Type inference failed for: r4v0, types: [I0.g, java.lang.Object] */
|
||||
public final void l() {
|
||||
Socket socket = this.f6875d;
|
||||
Intrinsics.checkNotNull(socket);
|
||||
C source = this.h;
|
||||
Intrinsics.checkNotNull(source);
|
||||
B sink = this.i;
|
||||
Intrinsics.checkNotNull(sink);
|
||||
socket.setSoTimeout(0);
|
||||
h3.e taskRunner = h3.e.i;
|
||||
Intrinsics.checkNotNullParameter(taskRunner, "taskRunner");
|
||||
?? obj = new Object();
|
||||
obj.f753a = taskRunner;
|
||||
obj.f758f = l3.i.f7407a;
|
||||
String peerName = this.f6873b.f6311a.h.f6416d;
|
||||
Intrinsics.checkNotNullParameter(socket, "socket");
|
||||
Intrinsics.checkNotNullParameter(peerName, "peerName");
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
Intrinsics.checkNotNullParameter(sink, "sink");
|
||||
Intrinsics.checkNotNullParameter(socket, "<set-?>");
|
||||
obj.f754b = socket;
|
||||
String str = f3.c.f6475g + ' ' + peerName;
|
||||
Intrinsics.checkNotNullParameter(str, "<set-?>");
|
||||
obj.f755c = str;
|
||||
Intrinsics.checkNotNullParameter(source, "<set-?>");
|
||||
obj.f756d = source;
|
||||
Intrinsics.checkNotNullParameter(sink, "<set-?>");
|
||||
obj.f757e = sink;
|
||||
Intrinsics.checkNotNullParameter(this, "listener");
|
||||
obj.f758f = this;
|
||||
q qVar = new q(obj);
|
||||
this.f6878g = qVar;
|
||||
l3.C c4 = q.f7428z;
|
||||
this.f6884o = (c4.f7370a & 16) != 0 ? c4.f7371b[4] : Integer.MAX_VALUE;
|
||||
Intrinsics.checkNotNullParameter(taskRunner, "taskRunner");
|
||||
z zVar = qVar.f7448w;
|
||||
synchronized (zVar) {
|
||||
try {
|
||||
if (zVar.f7495d) {
|
||||
throw new IOException("closed");
|
||||
}
|
||||
Logger logger = z.f7491f;
|
||||
if (logger.isLoggable(Level.FINE)) {
|
||||
logger.fine(f3.c.h(">> CONNECTION " + l3.g.f7403a.e(), new Object[0]));
|
||||
}
|
||||
zVar.f7492a.F(l3.g.f7403a);
|
||||
zVar.f7492a.flush();
|
||||
} finally {
|
||||
}
|
||||
}
|
||||
z zVar2 = qVar.f7448w;
|
||||
l3.C settings = qVar.p;
|
||||
synchronized (zVar2) {
|
||||
try {
|
||||
Intrinsics.checkNotNullParameter(settings, "settings");
|
||||
if (zVar2.f7495d) {
|
||||
throw new IOException("closed");
|
||||
}
|
||||
zVar2.s(0, Integer.bitCount(settings.f7370a) * 6, 4, 0);
|
||||
int i = 0;
|
||||
while (i < 10) {
|
||||
boolean z3 = true;
|
||||
if (((1 << i) & settings.f7370a) == 0) {
|
||||
z3 = false;
|
||||
}
|
||||
if (z3) {
|
||||
zVar2.f7492a.m(i != 4 ? i != 7 ? i : 4 : 3);
|
||||
zVar2.f7492a.r(settings.f7371b[i]);
|
||||
}
|
||||
i++;
|
||||
}
|
||||
zVar2.f7492a.flush();
|
||||
} finally {
|
||||
}
|
||||
}
|
||||
if (qVar.p.a() != 65535) {
|
||||
qVar.f7448w.a0(0, r9 - 65535);
|
||||
}
|
||||
taskRunner.e().c(new h3.b(qVar.f7449x, 0, qVar.f7431c), 0L);
|
||||
}
|
||||
|
||||
public final String toString() {
|
||||
Object obj;
|
||||
StringBuilder sb = new StringBuilder("Connection{");
|
||||
U u3 = this.f6873b;
|
||||
sb.append(u3.f6311a.h.f6416d);
|
||||
sb.append(':');
|
||||
sb.append(u3.f6311a.h.f6417e);
|
||||
sb.append(", proxy=");
|
||||
sb.append(u3.f6312b);
|
||||
sb.append(" hostAddress=");
|
||||
sb.append(u3.f6313c);
|
||||
sb.append(" cipherSuite=");
|
||||
C0332s c0332s = this.f6876e;
|
||||
if (c0332s == null || (obj = c0332s.f6400b) == null) {
|
||||
obj = "none";
|
||||
}
|
||||
sb.append(obj);
|
||||
sb.append(" protocol=");
|
||||
sb.append(this.f6877f);
|
||||
sb.append('}');
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
||||
113
apk_decompiled/sources/i3/m.java
Normal file
113
apk_decompiled/sources/i3/m.java
Normal file
@@ -0,0 +1,113 @@
|
||||
package i3;
|
||||
|
||||
import C.w;
|
||||
import java.lang.ref.Reference;
|
||||
import java.util.ArrayList;
|
||||
import java.util.concurrent.ConcurrentLinkedQueue;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class m {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final long f6886a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final h3.c f6887b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final h3.b f6888c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final ConcurrentLinkedQueue f6889d;
|
||||
|
||||
public m(h3.e taskRunner) {
|
||||
TimeUnit timeUnit = TimeUnit.MINUTES;
|
||||
Intrinsics.checkNotNullParameter(taskRunner, "taskRunner");
|
||||
Intrinsics.checkNotNullParameter(timeUnit, "timeUnit");
|
||||
this.f6886a = timeUnit.toNanos(5L);
|
||||
this.f6887b = taskRunner.e();
|
||||
this.f6888c = new h3.b(this, w.r(new StringBuilder(), f3.c.f6475g, " ConnectionPool"));
|
||||
this.f6889d = new ConcurrentLinkedQueue();
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:24:0x002b, code lost:
|
||||
|
||||
if ((r0.f6878g != null) != false) goto L13;
|
||||
*/
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final boolean a(e3.C0315a r5, i3.j r6, java.util.ArrayList r7, boolean r8) {
|
||||
/*
|
||||
r4 = this;
|
||||
java.lang.String r0 = "address"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r5, r0)
|
||||
java.lang.String r0 = "call"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r6, r0)
|
||||
java.util.concurrent.ConcurrentLinkedQueue r4 = r4.f6889d
|
||||
java.util.Iterator r4 = r4.iterator()
|
||||
L10:
|
||||
boolean r0 = r4.hasNext()
|
||||
r1 = 0
|
||||
if (r0 == 0) goto L40
|
||||
java.lang.Object r0 = r4.next()
|
||||
i3.l r0 = (i3.l) r0
|
||||
java.lang.String r2 = "connection"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r0, r2)
|
||||
monitor-enter(r0)
|
||||
r2 = 1
|
||||
if (r8 == 0) goto L2d
|
||||
l3.q r3 = r0.f6878g // Catch: java.lang.Throwable -> L38
|
||||
if (r3 == 0) goto L2b
|
||||
r1 = r2
|
||||
L2b:
|
||||
if (r1 == 0) goto L3a
|
||||
L2d:
|
||||
boolean r1 = r0.h(r5, r7) // Catch: java.lang.Throwable -> L38
|
||||
if (r1 == 0) goto L3a
|
||||
r6.b(r0) // Catch: java.lang.Throwable -> L38
|
||||
monitor-exit(r0)
|
||||
return r2
|
||||
L38:
|
||||
r4 = move-exception
|
||||
goto L3e
|
||||
L3a:
|
||||
kotlin.Unit r1 = kotlin.Unit.INSTANCE // Catch: java.lang.Throwable -> L38
|
||||
monitor-exit(r0)
|
||||
goto L10
|
||||
L3e:
|
||||
monitor-exit(r0)
|
||||
throw r4
|
||||
L40:
|
||||
return r1
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: i3.m.a(e3.a, i3.j, java.util.ArrayList, boolean):boolean");
|
||||
}
|
||||
|
||||
public final int b(l lVar, long j4) {
|
||||
byte[] bArr = f3.c.f6469a;
|
||||
ArrayList arrayList = lVar.p;
|
||||
int i = 0;
|
||||
while (i < arrayList.size()) {
|
||||
Reference reference = (Reference) arrayList.get(i);
|
||||
if (reference.get() != null) {
|
||||
i++;
|
||||
} else {
|
||||
Intrinsics.checkNotNull(reference, "null cannot be cast to non-null type okhttp3.internal.connection.RealCall.CallReference");
|
||||
String str = "A connection to " + lVar.f6873b.f6311a.h + " was leaked. Did you forget to close a response body?";
|
||||
m3.n nVar = m3.n.f7829a;
|
||||
m3.n.f7829a.j(((h) reference).f6858a, str);
|
||||
arrayList.remove(i);
|
||||
lVar.f6879j = true;
|
||||
if (arrayList.isEmpty()) {
|
||||
lVar.f6885q = j4 - this.f6886a;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
return arrayList.size();
|
||||
}
|
||||
}
|
||||
22
apk_decompiled/sources/i3/n.java
Normal file
22
apk_decompiled/sources/i3/n.java
Normal file
@@ -0,0 +1,22 @@
|
||||
package i3;
|
||||
|
||||
import java.io.IOException;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class n extends RuntimeException {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final IOException f6890a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public IOException f6891b;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public n(IOException firstConnectException) {
|
||||
super(firstConnectException);
|
||||
Intrinsics.checkNotNullParameter(firstConnectException, "firstConnectException");
|
||||
this.f6890a = firstConnectException;
|
||||
this.f6891b = firstConnectException;
|
||||
}
|
||||
}
|
||||
303
apk_decompiled/sources/i3/o.java
Normal file
303
apk_decompiled/sources/i3/o.java
Normal file
@@ -0,0 +1,303 @@
|
||||
package i3;
|
||||
|
||||
import a.AbstractC0105a;
|
||||
import androidx.recyclerview.widget.C0221i;
|
||||
import e3.C0315a;
|
||||
import e3.C0329o;
|
||||
import e3.C0334u;
|
||||
import e3.F;
|
||||
import e3.I;
|
||||
import e3.InterfaceC0319e;
|
||||
import e3.M;
|
||||
import e3.N;
|
||||
import e3.O;
|
||||
import e3.w;
|
||||
import java.io.EOFException;
|
||||
import java.io.IOException;
|
||||
import java.net.ProtocolException;
|
||||
import java.net.Proxy;
|
||||
import java.net.Socket;
|
||||
import java.net.URI;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.text.StringsKt__StringsJVMKt;
|
||||
import r3.B;
|
||||
import r3.C;
|
||||
import r3.G;
|
||||
import r3.J;
|
||||
import r3.K;
|
||||
import r3.q;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class o implements j3.e {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f6892a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final Object f6893b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final Object f6894c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final Object f6895d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final Object f6896e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public Object f6897f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public Iterable f6898g;
|
||||
|
||||
public o(C0315a address, h3.d routeDatabase, InterfaceC0319e call) {
|
||||
List proxies;
|
||||
C0329o eventListener = C0329o.f6389d;
|
||||
Intrinsics.checkNotNullParameter(address, "address");
|
||||
Intrinsics.checkNotNullParameter(routeDatabase, "routeDatabase");
|
||||
Intrinsics.checkNotNullParameter(call, "call");
|
||||
Intrinsics.checkNotNullParameter(eventListener, "eventListener");
|
||||
this.f6893b = address;
|
||||
this.f6894c = routeDatabase;
|
||||
this.f6895d = call;
|
||||
this.f6896e = CollectionsKt.emptyList();
|
||||
this.f6897f = CollectionsKt.emptyList();
|
||||
this.f6898g = new ArrayList();
|
||||
Intrinsics.checkNotNullParameter(call, "call");
|
||||
w url = address.h;
|
||||
Intrinsics.checkNotNullParameter(url, "url");
|
||||
URI h = url.h();
|
||||
if (h.getHost() == null) {
|
||||
proxies = f3.c.k(Proxy.NO_PROXY);
|
||||
} else {
|
||||
List<Proxy> proxiesOrNull = address.f6327g.select(h);
|
||||
List<Proxy> list = proxiesOrNull;
|
||||
if (list != null && !list.isEmpty()) {
|
||||
Intrinsics.checkNotNullExpressionValue(proxiesOrNull, "proxiesOrNull");
|
||||
proxies = f3.c.w(proxiesOrNull);
|
||||
} else {
|
||||
proxies = f3.c.k(Proxy.NO_PROXY);
|
||||
}
|
||||
}
|
||||
this.f6896e = proxies;
|
||||
this.f6892a = 0;
|
||||
Intrinsics.checkNotNullParameter(call, "call");
|
||||
Intrinsics.checkNotNullParameter(url, "url");
|
||||
Intrinsics.checkNotNullParameter(proxies, "proxies");
|
||||
}
|
||||
|
||||
public static final void i(o oVar, q qVar) {
|
||||
oVar.getClass();
|
||||
K k4 = qVar.f8301e;
|
||||
J delegate = K.f8261d;
|
||||
Intrinsics.checkNotNullParameter(delegate, "delegate");
|
||||
qVar.f8301e = delegate;
|
||||
k4.a();
|
||||
k4.b();
|
||||
}
|
||||
|
||||
@Override // j3.e
|
||||
public void a(I request) {
|
||||
Intrinsics.checkNotNullParameter(request, "request");
|
||||
Proxy.Type proxyType = ((l) this.f6894c).f6873b.f6312b.type();
|
||||
Intrinsics.checkNotNullExpressionValue(proxyType, "connection.route().proxy.type()");
|
||||
Intrinsics.checkNotNullParameter(request, "request");
|
||||
Intrinsics.checkNotNullParameter(proxyType, "proxyType");
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(request.f6268b);
|
||||
sb.append(' ');
|
||||
w url = request.f6267a;
|
||||
if (url.f6420j || proxyType != Proxy.Type.HTTP) {
|
||||
Intrinsics.checkNotNullParameter(url, "url");
|
||||
String b4 = url.b();
|
||||
String d4 = url.d();
|
||||
if (d4 != null) {
|
||||
b4 = b4 + '?' + d4;
|
||||
}
|
||||
sb.append(b4);
|
||||
} else {
|
||||
sb.append(url);
|
||||
}
|
||||
sb.append(" HTTP/1.1");
|
||||
String sb2 = sb.toString();
|
||||
Intrinsics.checkNotNullExpressionValue(sb2, "StringBuilder().apply(builderAction).toString()");
|
||||
l(request.f6269c, sb2);
|
||||
}
|
||||
|
||||
@Override // j3.e
|
||||
public r3.I b(O response) {
|
||||
boolean equals;
|
||||
Intrinsics.checkNotNullParameter(response, "response");
|
||||
if (!j3.f.a(response)) {
|
||||
return k(0L);
|
||||
}
|
||||
equals = StringsKt__StringsJVMKt.equals("chunked", O.d(response, "Transfer-Encoding"), true);
|
||||
if (equals) {
|
||||
w wVar = response.f6291a.f6267a;
|
||||
if (this.f6892a == 4) {
|
||||
this.f6892a = 5;
|
||||
return new k3.c(this, wVar);
|
||||
}
|
||||
throw new IllegalStateException(("state: " + this.f6892a).toString());
|
||||
}
|
||||
long j4 = f3.c.j(response);
|
||||
if (j4 != -1) {
|
||||
return k(j4);
|
||||
}
|
||||
if (this.f6892a == 4) {
|
||||
this.f6892a = 5;
|
||||
((l) this.f6894c).k();
|
||||
return new k3.a(this);
|
||||
}
|
||||
throw new IllegalStateException(("state: " + this.f6892a).toString());
|
||||
}
|
||||
|
||||
@Override // j3.e
|
||||
public void c() {
|
||||
((B) this.f6896e).flush();
|
||||
}
|
||||
|
||||
@Override // j3.e
|
||||
public void cancel() {
|
||||
Socket socket = ((l) this.f6894c).f6874c;
|
||||
if (socket != null) {
|
||||
f3.c.d(socket);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // j3.e
|
||||
public void d() {
|
||||
((B) this.f6896e).flush();
|
||||
}
|
||||
|
||||
@Override // j3.e
|
||||
public G e(I request, long j4) {
|
||||
boolean equals;
|
||||
Intrinsics.checkNotNullParameter(request, "request");
|
||||
M m4 = request.f6270d;
|
||||
if (m4 != null && m4.isDuplex()) {
|
||||
throw new ProtocolException("Duplex connections are not supported for HTTP/1");
|
||||
}
|
||||
equals = StringsKt__StringsJVMKt.equals("chunked", request.b("Transfer-Encoding"), true);
|
||||
if (equals) {
|
||||
if (this.f6892a == 1) {
|
||||
this.f6892a = 2;
|
||||
return new k3.b(this);
|
||||
}
|
||||
throw new IllegalStateException(("state: " + this.f6892a).toString());
|
||||
}
|
||||
if (j4 == -1) {
|
||||
throw new IllegalStateException("Cannot stream a request body without chunked encoding or a known content length!");
|
||||
}
|
||||
if (this.f6892a == 1) {
|
||||
this.f6892a = 2;
|
||||
return new k3.e(this);
|
||||
}
|
||||
throw new IllegalStateException(("state: " + this.f6892a).toString());
|
||||
}
|
||||
|
||||
@Override // j3.e
|
||||
public long f(O response) {
|
||||
boolean equals;
|
||||
Intrinsics.checkNotNullParameter(response, "response");
|
||||
if (!j3.f.a(response)) {
|
||||
return 0L;
|
||||
}
|
||||
equals = StringsKt__StringsJVMKt.equals("chunked", O.d(response, "Transfer-Encoding"), true);
|
||||
if (equals) {
|
||||
return -1L;
|
||||
}
|
||||
return f3.c.j(response);
|
||||
}
|
||||
|
||||
@Override // j3.e
|
||||
public N g(boolean z3) {
|
||||
C0221i c0221i = (C0221i) this.f6897f;
|
||||
int i = this.f6892a;
|
||||
if (i != 1 && i != 2 && i != 3) {
|
||||
throw new IllegalStateException(("state: " + this.f6892a).toString());
|
||||
}
|
||||
try {
|
||||
String a02 = ((C) c0221i.f3825c).a0(c0221i.f3824b);
|
||||
c0221i.f3824b -= a02.length();
|
||||
B0.G L3 = AbstractC0105a.L(a02);
|
||||
int i4 = L3.f102b;
|
||||
N n4 = new N();
|
||||
e3.G protocol = (e3.G) L3.f103c;
|
||||
Intrinsics.checkNotNullParameter(protocol, "protocol");
|
||||
n4.f6281b = protocol;
|
||||
n4.f6282c = i4;
|
||||
String message = (String) L3.f104d;
|
||||
Intrinsics.checkNotNullParameter(message, "message");
|
||||
n4.f6283d = message;
|
||||
n4.c(c0221i.f());
|
||||
if (z3 && i4 == 100) {
|
||||
return null;
|
||||
}
|
||||
if (i4 == 100) {
|
||||
this.f6892a = 3;
|
||||
return n4;
|
||||
}
|
||||
if (102 > i4 || i4 >= 200) {
|
||||
this.f6892a = 4;
|
||||
return n4;
|
||||
}
|
||||
this.f6892a = 3;
|
||||
return n4;
|
||||
} catch (EOFException e4) {
|
||||
throw new IOException(C.w.z("unexpected end of stream on ", ((l) this.f6894c).f6873b.f6311a.h.g()), e4);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // j3.e
|
||||
public l h() {
|
||||
return (l) this.f6894c;
|
||||
}
|
||||
|
||||
public boolean j() {
|
||||
return this.f6892a < ((List) this.f6896e).size() || !((ArrayList) this.f6898g).isEmpty();
|
||||
}
|
||||
|
||||
public k3.d k(long j4) {
|
||||
if (this.f6892a == 4) {
|
||||
this.f6892a = 5;
|
||||
return new k3.d(this, j4);
|
||||
}
|
||||
throw new IllegalStateException(("state: " + this.f6892a).toString());
|
||||
}
|
||||
|
||||
public void l(C0334u headers, String requestLine) {
|
||||
Intrinsics.checkNotNullParameter(headers, "headers");
|
||||
Intrinsics.checkNotNullParameter(requestLine, "requestLine");
|
||||
if (this.f6892a != 0) {
|
||||
throw new IllegalStateException(("state: " + this.f6892a).toString());
|
||||
}
|
||||
B b4 = (B) this.f6896e;
|
||||
b4.Q(requestLine);
|
||||
b4.Q("\r\n");
|
||||
int size = headers.size();
|
||||
for (int i = 0; i < size; i++) {
|
||||
b4.Q(headers.b(i));
|
||||
b4.Q(": ");
|
||||
b4.Q(headers.f(i));
|
||||
b4.Q("\r\n");
|
||||
}
|
||||
b4.Q("\r\n");
|
||||
this.f6892a = 1;
|
||||
}
|
||||
|
||||
public o(F f2, l connection, C source, B sink) {
|
||||
Intrinsics.checkNotNullParameter(connection, "connection");
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
Intrinsics.checkNotNullParameter(sink, "sink");
|
||||
this.f6893b = f2;
|
||||
this.f6894c = connection;
|
||||
this.f6895d = source;
|
||||
this.f6896e = sink;
|
||||
this.f6897f = new C0221i(source);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user