apkfuckery/com.discord/smali/okhttp3/internal/b/c.smali
2019-02-04 21:08:30 +01:00

1704 lines
41 KiB
Smali

.class public final Lokhttp3/internal/b/c;
.super Lokhttp3/internal/e/g$b;
# interfaces
.implements Lokhttp3/i;
# instance fields
.field private final bZN:Lokhttp3/j;
.field public caF:Lokio/d;
.field private cau:Lokhttp3/u;
.field public cav:Lokhttp3/r;
.field public final cbO:Lokhttp3/y;
.field public cbP:Ljava/net/Socket;
.field public cbQ:Ljava/net/Socket;
.field cbR:Lokhttp3/internal/e/g;
.field public cbS:Lokio/BufferedSink;
.field public cbT:Z
.field public cbU:I
.field public cbV:I
.field public final cbW:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/lang/ref/Reference<",
"Lokhttp3/internal/b/g;",
">;>;"
}
.end annotation
.end field
.field public cbX:J
# direct methods
.method public constructor <init>(Lokhttp3/j;Lokhttp3/y;)V
.locals 2
invoke-direct {p0}, Lokhttp3/internal/e/g$b;-><init>()V
const/4 v0, 0x1
iput v0, p0, Lokhttp3/internal/b/c;->cbV:I
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lokhttp3/internal/b/c;->cbW:Ljava/util/List;
const-wide v0, 0x7fffffffffffffffL
iput-wide v0, p0, Lokhttp3/internal/b/c;->cbX:J
iput-object p1, p0, Lokhttp3/internal/b/c;->bZN:Lokhttp3/j;
iput-object p2, p0, Lokhttp3/internal/b/c;->cbO:Lokhttp3/y;
return-void
.end method
.method private at(II)V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lokhttp3/internal/b/c;->cbO:Lokhttp3/y;
iget-object v0, v0, Lokhttp3/y;->bVw:Ljava/net/Proxy;
iget-object v1, p0, Lokhttp3/internal/b/c;->cbO:Lokhttp3/y;
iget-object v1, v1, Lokhttp3/y;->caH:Lokhttp3/a;
invoke-virtual {v0}, Ljava/net/Proxy;->type()Ljava/net/Proxy$Type;
move-result-object v2
sget-object v3, Ljava/net/Proxy$Type;->DIRECT:Ljava/net/Proxy$Type;
if-eq v2, v3, :cond_1
invoke-virtual {v0}, Ljava/net/Proxy;->type()Ljava/net/Proxy$Type;
move-result-object v2
sget-object v3, Ljava/net/Proxy$Type;->HTTP:Ljava/net/Proxy$Type;
if-ne v2, v3, :cond_0
goto :goto_0
:cond_0
new-instance v1, Ljava/net/Socket;
invoke-direct {v1, v0}, Ljava/net/Socket;-><init>(Ljava/net/Proxy;)V
goto :goto_1
:cond_1
:goto_0
iget-object v0, v1, Lokhttp3/a;->bVs:Ljavax/net/SocketFactory;
invoke-virtual {v0}, Ljavax/net/SocketFactory;->createSocket()Ljava/net/Socket;
move-result-object v1
:goto_1
iput-object v1, p0, Lokhttp3/internal/b/c;->cbP:Ljava/net/Socket;
iget-object v0, p0, Lokhttp3/internal/b/c;->cbP:Ljava/net/Socket;
invoke-virtual {v0, p2}, Ljava/net/Socket;->setSoTimeout(I)V
:try_start_0
invoke-static {}, Lokhttp3/internal/g/f;->IK()Lokhttp3/internal/g/f;
move-result-object p2
iget-object v0, p0, Lokhttp3/internal/b/c;->cbP:Ljava/net/Socket;
iget-object v1, p0, Lokhttp3/internal/b/c;->cbO:Lokhttp3/y;
iget-object v1, v1, Lokhttp3/y;->caI:Ljava/net/InetSocketAddress;
invoke-virtual {p2, v0, v1, p1}, Lokhttp3/internal/g/f;->a(Ljava/net/Socket;Ljava/net/InetSocketAddress;I)V
:try_end_0
.catch Ljava/net/ConnectException; {:try_start_0 .. :try_end_0} :catch_1
:try_start_1
iget-object p1, p0, Lokhttp3/internal/b/c;->cbP:Ljava/net/Socket;
invoke-static {p1}, Lokio/j;->c(Ljava/net/Socket;)Lokio/q;
move-result-object p1
invoke-static {p1}, Lokio/j;->b(Lokio/q;)Lokio/d;
move-result-object p1
iput-object p1, p0, Lokhttp3/internal/b/c;->caF:Lokio/d;
iget-object p1, p0, Lokhttp3/internal/b/c;->cbP:Ljava/net/Socket;
invoke-static {p1}, Lokio/j;->b(Ljava/net/Socket;)Lokio/p;
move-result-object p1
invoke-static {p1}, Lokio/j;->b(Lokio/p;)Lokio/BufferedSink;
move-result-object p1
iput-object p1, p0, Lokhttp3/internal/b/c;->cbS:Lokio/BufferedSink;
:try_end_1
.catch Ljava/lang/NullPointerException; {:try_start_1 .. :try_end_1} :catch_0
return-void
:catch_0
move-exception p1
const-string p2, "throw with null exception"
invoke-virtual {p1}, Ljava/lang/NullPointerException;->getMessage()Ljava/lang/String;
move-result-object v0
invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p2
if-nez p2, :cond_2
return-void
:cond_2
new-instance p2, Ljava/io/IOException;
invoke-direct {p2, p1}, Ljava/io/IOException;-><init>(Ljava/lang/Throwable;)V
throw p2
:catch_1
move-exception p1
new-instance p2, Ljava/net/ConnectException;
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "Failed to connect to "
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object v1, p0, Lokhttp3/internal/b/c;->cbO:Lokhttp3/y;
iget-object v1, v1, Lokhttp3/y;->caI:Ljava/net/InetSocketAddress;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p2, v0}, Ljava/net/ConnectException;-><init>(Ljava/lang/String;)V
invoke-virtual {p2, p1}, Ljava/net/ConnectException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
throw p2
.end method
.method private fd(I)V
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget-object v0, p0, Lokhttp3/internal/b/c;->cbQ:Ljava/net/Socket;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Ljava/net/Socket;->setSoTimeout(I)V
new-instance v0, Lokhttp3/internal/e/g$a;
invoke-direct {v0}, Lokhttp3/internal/e/g$a;-><init>()V
iget-object v1, p0, Lokhttp3/internal/b/c;->cbQ:Ljava/net/Socket;
iget-object v2, p0, Lokhttp3/internal/b/c;->cbO:Lokhttp3/y;
iget-object v2, v2, Lokhttp3/y;->caH:Lokhttp3/a;
iget-object v2, v2, Lokhttp3/a;->bVq:Lokhttp3/s;
iget-object v2, v2, Lokhttp3/s;->bZe:Ljava/lang/String;
iget-object v3, p0, Lokhttp3/internal/b/c;->caF:Lokio/d;
iget-object v4, p0, Lokhttp3/internal/b/c;->cbS:Lokio/BufferedSink;
invoke-virtual {v0, v1, v2, v3, v4}, Lokhttp3/internal/e/g$a;->a(Ljava/net/Socket;Ljava/lang/String;Lokio/d;Lokio/BufferedSink;)Lokhttp3/internal/e/g$a;
move-result-object v0
iput-object p0, v0, Lokhttp3/internal/e/g$a;->cdJ:Lokhttp3/internal/e/g$b;
iput p1, v0, Lokhttp3/internal/e/g$a;->ceg:I
invoke-virtual {v0}, Lokhttp3/internal/e/g$a;->Io()Lokhttp3/internal/e/g;
move-result-object p1
iput-object p1, p0, Lokhttp3/internal/b/c;->cbR:Lokhttp3/internal/e/g;
iget-object p1, p0, Lokhttp3/internal/b/c;->cbR:Lokhttp3/internal/e/g;
invoke-virtual {p1}, Lokhttp3/internal/e/g;->Im()V
return-void
.end method
# virtual methods
.method public final GZ()Lokhttp3/u;
.locals 1
iget-object v0, p0, Lokhttp3/internal/b/c;->cau:Lokhttp3/u;
return-object v0
.end method
.method public final HS()Z
.locals 1
iget-object v0, p0, Lokhttp3/internal/b/c;->cbR:Lokhttp3/internal/e/g;
if-eqz v0, :cond_0
const/4 v0, 0x1
return v0
:cond_0
const/4 v0, 0x0
return v0
.end method
.method public final a(IIIIZLokhttp3/e;Lokhttp3/p;)V
.locals 17
move-object/from16 v1, p0
move/from16 v2, p4
iget-object v0, v1, Lokhttp3/internal/b/c;->cau:Lokhttp3/u;
if-nez v0, :cond_1c
iget-object v0, v1, Lokhttp3/internal/b/c;->cbO:Lokhttp3/y;
iget-object v0, v0, Lokhttp3/y;->caH:Lokhttp3/a;
iget-object v0, v0, Lokhttp3/a;->bVv:Ljava/util/List;
new-instance v3, Lokhttp3/internal/b/b;
invoke-direct {v3, v0}, Lokhttp3/internal/b/b;-><init>(Ljava/util/List;)V
iget-object v4, v1, Lokhttp3/internal/b/c;->cbO:Lokhttp3/y;
iget-object v4, v4, Lokhttp3/y;->caH:Lokhttp3/a;
iget-object v4, v4, Lokhttp3/a;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
if-nez v4, :cond_2
sget-object v4, Lokhttp3/k;->bYs:Lokhttp3/k;
invoke-interface {v0, v4}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
iget-object v0, v1, Lokhttp3/internal/b/c;->cbO:Lokhttp3/y;
iget-object v0, v0, Lokhttp3/y;->caH:Lokhttp3/a;
iget-object v0, v0, Lokhttp3/a;->bVq:Lokhttp3/s;
iget-object v0, v0, Lokhttp3/s;->bZe:Ljava/lang/String;
invoke-static {}, Lokhttp3/internal/g/f;->IK()Lokhttp3/internal/g/f;
move-result-object v4
invoke-virtual {v4, v0}, Lokhttp3/internal/g/f;->isCleartextTrafficPermitted(Ljava/lang/String;)Z
move-result v4
if-eqz v4, :cond_0
goto :goto_0
:cond_0
new-instance v2, Lokhttp3/internal/b/e;
new-instance v3, Ljava/net/UnknownServiceException;
new-instance v4, Ljava/lang/StringBuilder;
const-string v5, "CLEARTEXT communication to "
invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v0, " not permitted by network security policy"
invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {v3, v0}, Ljava/net/UnknownServiceException;-><init>(Ljava/lang/String;)V
invoke-direct {v2, v3}, Lokhttp3/internal/b/e;-><init>(Ljava/io/IOException;)V
throw v2
:cond_1
new-instance v0, Lokhttp3/internal/b/e;
new-instance v2, Ljava/net/UnknownServiceException;
const-string v3, "CLEARTEXT communication not enabled for client"
invoke-direct {v2, v3}, Ljava/net/UnknownServiceException;-><init>(Ljava/lang/String;)V
invoke-direct {v0, v2}, Lokhttp3/internal/b/e;-><init>(Ljava/io/IOException;)V
throw v0
:cond_2
iget-object v0, v1, Lokhttp3/internal/b/c;->cbO:Lokhttp3/y;
iget-object v0, v0, Lokhttp3/y;->caH:Lokhttp3/a;
iget-object v0, v0, Lokhttp3/a;->bVu:Ljava/util/List;
sget-object v4, Lokhttp3/u;->bZZ:Lokhttp3/u;
invoke-interface {v0, v4}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_1b
:goto_0
const/4 v4, 0x0
move-object v5, v4
:goto_1
const/4 v6, 0x0
const/4 v7, 0x1
:try_start_0
iget-object v0, v1, Lokhttp3/internal/b/c;->cbO:Lokhttp3/y;
invoke-virtual {v0}, Lokhttp3/y;->HL()Z
move-result v0
if-eqz v0, :cond_7
new-instance v0, Lokhttp3/w$a;
invoke-direct {v0}, Lokhttp3/w$a;-><init>()V
iget-object v8, v1, Lokhttp3/internal/b/c;->cbO:Lokhttp3/y;
iget-object v8, v8, Lokhttp3/y;->caH:Lokhttp3/a;
iget-object v8, v8, Lokhttp3/a;->bVq:Lokhttp3/s;
invoke-virtual {v0, v8}, Lokhttp3/w$a;->b(Lokhttp3/s;)Lokhttp3/w$a;
move-result-object v0
const-string v8, "Host"
iget-object v9, v1, Lokhttp3/internal/b/c;->cbO:Lokhttp3/y;
iget-object v9, v9, Lokhttp3/y;->caH:Lokhttp3/a;
iget-object v9, v9, Lokhttp3/a;->bVq:Lokhttp3/s;
invoke-static {v9, v7}, Lokhttp3/internal/c;->a(Lokhttp3/s;Z)Ljava/lang/String;
move-result-object v9
invoke-virtual {v0, v8, v9}, Lokhttp3/w$a;->an(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/w$a;
move-result-object v0
const-string v8, "Proxy-Connection"
const-string v9, "Keep-Alive"
invoke-virtual {v0, v8, v9}, Lokhttp3/w$a;->an(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/w$a;
move-result-object v0
const-string v8, "User-Agent"
const-string v9, "okhttp/3.11.0"
invoke-virtual {v0, v8, v9}, Lokhttp3/w$a;->an(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/w$a;
move-result-object v0
invoke-virtual {v0}, Lokhttp3/w$a;->HG()Lokhttp3/w;
move-result-object v0
iget-object v8, v0, Lokhttp3/w;->bVq:Lokhttp3/s;
invoke-direct/range {p0 .. p2}, Lokhttp3/internal/b/c;->at(II)V
new-instance v9, Ljava/lang/StringBuilder;
const-string v10, "CONNECT "
invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-static {v8, v7}, Lokhttp3/internal/c;->a(Lokhttp3/s;Z)Ljava/lang/String;
move-result-object v8
invoke-virtual {v9, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v8, " HTTP/1.1"
invoke-virtual {v9, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v8
new-instance v9, Lokhttp3/internal/d/a;
iget-object v10, v1, Lokhttp3/internal/b/c;->caF:Lokio/d;
iget-object v11, v1, Lokhttp3/internal/b/c;->cbS:Lokio/BufferedSink;
invoke-direct {v9, v4, v4, v10, v11}, Lokhttp3/internal/d/a;-><init>(Lokhttp3/t;Lokhttp3/internal/b/g;Lokio/d;Lokio/BufferedSink;)V
iget-object v10, v1, Lokhttp3/internal/b/c;->caF:Lokio/d;
invoke-interface {v10}, Lokio/d;->timeout()Lokio/r;
move-result-object v10
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_4
move/from16 v11, p2
int-to-long v12, v11
:try_start_1
sget-object v14, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invoke-virtual {v10, v12, v13, v14}, Lokio/r;->d(JLjava/util/concurrent/TimeUnit;)Lokio/r;
iget-object v10, v1, Lokhttp3/internal/b/c;->cbS:Lokio/BufferedSink;
invoke-interface {v10}, Lokio/BufferedSink;->timeout()Lokio/r;
move-result-object v10
:try_end_1
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
move/from16 v12, p3
int-to-long v13, v12
:try_start_2
sget-object v15, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invoke-virtual {v10, v13, v14, v15}, Lokio/r;->d(JLjava/util/concurrent/TimeUnit;)Lokio/r;
iget-object v10, v0, Lokhttp3/w;->bZD:Lokhttp3/Headers;
invoke-virtual {v9, v10, v8}, Lokhttp3/internal/d/a;->a(Lokhttp3/Headers;Ljava/lang/String;)V
invoke-virtual {v9}, Lokhttp3/internal/d/a;->Ib()V
invoke-virtual {v9, v6}, Lokhttp3/internal/d/a;->ah(Z)Lokhttp3/Response$a;
move-result-object v8
iput-object v0, v8, Lokhttp3/Response$a;->cat:Lokhttp3/w;
invoke-virtual {v8}, Lokhttp3/Response$a;->HI()Lokhttp3/Response;
move-result-object v0
invoke-static {v0}, Lokhttp3/internal/c/e;->e(Lokhttp3/Response;)J
move-result-wide v13
const-wide/16 v15, -0x1
cmp-long v8, v13, v15
if-nez v8, :cond_3
const-wide/16 v13, 0x0
:cond_3
invoke-virtual {v9, v13, v14}, Lokhttp3/internal/d/a;->aS(J)Lokio/q;
move-result-object v8
const v9, 0x7fffffff
sget-object v10, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invoke-static {v8, v9, v10}, Lokhttp3/internal/c;->a(Lokio/q;ILjava/util/concurrent/TimeUnit;)Z
invoke-interface {v8}, Lokio/q;->close()V
iget v8, v0, Lokhttp3/Response;->code:I
const/16 v9, 0xc8
if-eq v8, v9, :cond_5
const/16 v9, 0x197
if-eq v8, v9, :cond_4
new-instance v8, Ljava/io/IOException;
new-instance v9, Ljava/lang/StringBuilder;
const-string v10, "Unexpected response code for CONNECT: "
invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget v0, v0, Lokhttp3/Response;->code:I
invoke-virtual {v9, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {v8, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v8
:cond_4
new-instance v0, Ljava/io/IOException;
const-string v8, "Failed to authenticate with proxy"
invoke-direct {v0, v8}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
:cond_5
iget-object v0, v1, Lokhttp3/internal/b/c;->caF:Lokio/d;
invoke-interface {v0}, Lokio/d;->IW()Lokio/c;
move-result-object v0
invoke-virtual {v0}, Lokio/c;->IY()Z
move-result v0
if-eqz v0, :cond_6
iget-object v0, v1, Lokhttp3/internal/b/c;->cbS:Lokio/BufferedSink;
invoke-interface {v0}, Lokio/BufferedSink;->IW()Lokio/c;
move-result-object v0
invoke-virtual {v0}, Lokio/c;->IY()Z
move-result v0
if-eqz v0, :cond_6
iget-object v0, v1, Lokhttp3/internal/b/c;->cbP:Ljava/net/Socket;
if-nez v0, :cond_8
goto/16 :goto_5
:cond_6
new-instance v0, Ljava/io/IOException;
const-string v8, "TLS tunnel buffered too many bytes!"
invoke-direct {v0, v8}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
:catch_0
move-exception v0
goto/16 :goto_9
:cond_7
move/from16 v11, p2
move/from16 v12, p3
invoke-direct/range {p0 .. p2}, Lokhttp3/internal/b/c;->at(II)V
:cond_8
iget-object v0, v1, Lokhttp3/internal/b/c;->cbO:Lokhttp3/y;
iget-object v0, v0, Lokhttp3/y;->caH:Lokhttp3/a;
iget-object v0, v0, Lokhttp3/a;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
if-nez v0, :cond_a
iget-object v0, v1, Lokhttp3/internal/b/c;->cbO:Lokhttp3/y;
iget-object v0, v0, Lokhttp3/y;->caH:Lokhttp3/a;
iget-object v0, v0, Lokhttp3/a;->bVu:Ljava/util/List;
sget-object v8, Lokhttp3/u;->bZZ:Lokhttp3/u;
invoke-interface {v0, v8}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_9
iget-object v0, v1, Lokhttp3/internal/b/c;->cbP:Ljava/net/Socket;
iput-object v0, v1, Lokhttp3/internal/b/c;->cbQ:Ljava/net/Socket;
sget-object v0, Lokhttp3/u;->bZZ:Lokhttp3/u;
iput-object v0, v1, Lokhttp3/internal/b/c;->cau:Lokhttp3/u;
:goto_2
invoke-direct {v1, v2}, Lokhttp3/internal/b/c;->fd(I)V
goto/16 :goto_5
:cond_9
iget-object v0, v1, Lokhttp3/internal/b/c;->cbP:Ljava/net/Socket;
iput-object v0, v1, Lokhttp3/internal/b/c;->cbQ:Ljava/net/Socket;
sget-object v0, Lokhttp3/u;->bZW:Lokhttp3/u;
iput-object v0, v1, Lokhttp3/internal/b/c;->cau:Lokhttp3/u;
goto/16 :goto_5
:cond_a
iget-object v0, v1, Lokhttp3/internal/b/c;->cbO:Lokhttp3/y;
iget-object v0, v0, Lokhttp3/y;->caH:Lokhttp3/a;
iget-object v8, v0, Lokhttp3/a;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
:try_end_2
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_3
:try_start_3
iget-object v9, v1, Lokhttp3/internal/b/c;->cbP:Ljava/net/Socket;
iget-object v10, v0, Lokhttp3/a;->bVq:Lokhttp3/s;
iget-object v10, v10, Lokhttp3/s;->bZe:Ljava/lang/String;
iget-object v13, v0, Lokhttp3/a;->bVq:Lokhttp3/s;
iget v13, v13, Lokhttp3/s;->port:I
invoke-virtual {v8, v9, v10, v13, v7}, Ljavax/net/ssl/SSLSocketFactory;->createSocket(Ljava/net/Socket;Ljava/lang/String;IZ)Ljava/net/Socket;
move-result-object v8
check-cast v8, Ljavax/net/ssl/SSLSocket;
:try_end_3
.catch Ljava/lang/AssertionError; {:try_start_3 .. :try_end_3} :catch_2
.catchall {:try_start_3 .. :try_end_3} :catchall_1
:try_start_4
invoke-virtual {v3, v8}, Lokhttp3/internal/b/b;->c(Ljavax/net/ssl/SSLSocket;)Lokhttp3/k;
move-result-object v9
iget-boolean v10, v9, Lokhttp3/k;->bYu:Z
if-eqz v10, :cond_b
invoke-static {}, Lokhttp3/internal/g/f;->IK()Lokhttp3/internal/g/f;
move-result-object v10
iget-object v13, v0, Lokhttp3/a;->bVq:Lokhttp3/s;
iget-object v13, v13, Lokhttp3/s;->bZe:Ljava/lang/String;
iget-object v14, v0, Lokhttp3/a;->bVu:Ljava/util/List;
invoke-virtual {v10, v8, v13, v14}, Lokhttp3/internal/g/f;->a(Ljavax/net/ssl/SSLSocket;Ljava/lang/String;Ljava/util/List;)V
:cond_b
invoke-virtual {v8}, Ljavax/net/ssl/SSLSocket;->startHandshake()V
invoke-virtual {v8}, Ljavax/net/ssl/SSLSocket;->getSession()Ljavax/net/ssl/SSLSession;
move-result-object v10
invoke-static {v10}, Lokhttp3/r;->a(Ljavax/net/ssl/SSLSession;)Lokhttp3/r;
move-result-object v13
iget-object v14, v0, Lokhttp3/a;->hostnameVerifier:Ljavax/net/ssl/HostnameVerifier;
iget-object v15, v0, Lokhttp3/a;->bVq:Lokhttp3/s;
iget-object v15, v15, Lokhttp3/s;->bZe:Ljava/lang/String;
invoke-interface {v14, v15, v10}, Ljavax/net/ssl/HostnameVerifier;->verify(Ljava/lang/String;Ljavax/net/ssl/SSLSession;)Z
move-result v10
if-eqz v10, :cond_13
iget-object v10, v0, Lokhttp3/a;->bVx:Lokhttp3/g;
iget-object v0, v0, Lokhttp3/a;->bVq:Lokhttp3/s;
iget-object v0, v0, Lokhttp3/s;->bZe:Ljava/lang/String;
iget-object v14, v13, Lokhttp3/r;->bYY:Ljava/util/List;
invoke-virtual {v10, v0, v14}, Lokhttp3/g;->d(Ljava/lang/String;Ljava/util/List;)V
iget-boolean v0, v9, Lokhttp3/k;->bYu:Z
if-eqz v0, :cond_c
invoke-static {}, Lokhttp3/internal/g/f;->IK()Lokhttp3/internal/g/f;
move-result-object v0
invoke-virtual {v0, v8}, Lokhttp3/internal/g/f;->e(Ljavax/net/ssl/SSLSocket;)Ljava/lang/String;
move-result-object v0
goto :goto_3
:cond_c
move-object v0, v4
:goto_3
iput-object v8, v1, Lokhttp3/internal/b/c;->cbQ:Ljava/net/Socket;
iget-object v9, v1, Lokhttp3/internal/b/c;->cbQ:Ljava/net/Socket;
invoke-static {v9}, Lokio/j;->c(Ljava/net/Socket;)Lokio/q;
move-result-object v9
invoke-static {v9}, Lokio/j;->b(Lokio/q;)Lokio/d;
move-result-object v9
iput-object v9, v1, Lokhttp3/internal/b/c;->caF:Lokio/d;
iget-object v9, v1, Lokhttp3/internal/b/c;->cbQ:Ljava/net/Socket;
invoke-static {v9}, Lokio/j;->b(Ljava/net/Socket;)Lokio/p;
move-result-object v9
invoke-static {v9}, Lokio/j;->b(Lokio/p;)Lokio/BufferedSink;
move-result-object v9
iput-object v9, v1, Lokhttp3/internal/b/c;->cbS:Lokio/BufferedSink;
iput-object v13, v1, Lokhttp3/internal/b/c;->cav:Lokhttp3/r;
if-eqz v0, :cond_d
invoke-static {v0}, Lokhttp3/u;->es(Ljava/lang/String;)Lokhttp3/u;
move-result-object v0
goto :goto_4
:cond_d
sget-object v0, Lokhttp3/u;->bZW:Lokhttp3/u;
:goto_4
iput-object v0, v1, Lokhttp3/internal/b/c;->cau:Lokhttp3/u;
:try_end_4
.catch Ljava/lang/AssertionError; {:try_start_4 .. :try_end_4} :catch_1
.catchall {:try_start_4 .. :try_end_4} :catchall_2
if-eqz v8, :cond_e
:try_start_5
invoke-static {}, Lokhttp3/internal/g/f;->IK()Lokhttp3/internal/g/f;
move-result-object v0
invoke-virtual {v0, v8}, Lokhttp3/internal/g/f;->f(Ljavax/net/ssl/SSLSocket;)V
:cond_e
iget-object v0, v1, Lokhttp3/internal/b/c;->cau:Lokhttp3/u;
sget-object v8, Lokhttp3/u;->bZY:Lokhttp3/u;
:try_end_5
.catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_3
if-ne v0, v8, :cond_f
goto/16 :goto_2
:cond_f
:goto_5
iget-object v0, v1, Lokhttp3/internal/b/c;->cbO:Lokhttp3/y;
invoke-virtual {v0}, Lokhttp3/y;->HL()Z
move-result v0
if-eqz v0, :cond_11
iget-object v0, v1, Lokhttp3/internal/b/c;->cbP:Ljava/net/Socket;
if-eqz v0, :cond_10
goto :goto_6
:cond_10
new-instance v0, Ljava/net/ProtocolException;
const-string v2, "Too many tunnel connections attempted: 21"
invoke-direct {v0, v2}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
new-instance v2, Lokhttp3/internal/b/e;
invoke-direct {v2, v0}, Lokhttp3/internal/b/e;-><init>(Ljava/io/IOException;)V
throw v2
:cond_11
:goto_6
iget-object v0, v1, Lokhttp3/internal/b/c;->cbR:Lokhttp3/internal/e/g;
if-eqz v0, :cond_12
iget-object v2, v1, Lokhttp3/internal/b/c;->bZN:Lokhttp3/j;
monitor-enter v2
:try_start_6
iget-object v0, v1, Lokhttp3/internal/b/c;->cbR:Lokhttp3/internal/e/g;
invoke-virtual {v0}, Lokhttp3/internal/e/g;->Ik()I
move-result v0
iput v0, v1, Lokhttp3/internal/b/c;->cbV:I
monitor-exit v2
return-void
:catchall_0
move-exception v0
monitor-exit v2
:try_end_6
.catchall {:try_start_6 .. :try_end_6} :catchall_0
throw v0
:cond_12
return-void
:cond_13
:try_start_7
iget-object v9, v13, Lokhttp3/r;->bYY:Ljava/util/List;
invoke-interface {v9, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v9
check-cast v9, Ljava/security/cert/X509Certificate;
new-instance v10, Ljavax/net/ssl/SSLPeerUnverifiedException;
new-instance v13, Ljava/lang/StringBuilder;
const-string v14, "Hostname "
invoke-direct {v13, v14}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object v0, v0, Lokhttp3/a;->bVq:Lokhttp3/s;
iget-object v0, v0, Lokhttp3/s;->bZe:Ljava/lang/String;
invoke-virtual {v13, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v0, " not verified:\n certificate: "
invoke-virtual {v13, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-static {v9}, Lokhttp3/g;->a(Ljava/security/cert/Certificate;)Ljava/lang/String;
move-result-object v0
invoke-virtual {v13, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v0, "\n DN: "
invoke-virtual {v13, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v9}, Ljava/security/cert/X509Certificate;->getSubjectDN()Ljava/security/Principal;
move-result-object v0
invoke-interface {v0}, Ljava/security/Principal;->getName()Ljava/lang/String;
move-result-object v0
invoke-virtual {v13, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v0, "\n subjectAltNames: "
invoke-virtual {v13, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-static {v9}, Lokhttp3/internal/h/d;->f(Ljava/security/cert/X509Certificate;)Ljava/util/List;
move-result-object v0
invoke-virtual {v13, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v13}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {v10, v0}, Ljavax/net/ssl/SSLPeerUnverifiedException;-><init>(Ljava/lang/String;)V
throw v10
:try_end_7
.catch Ljava/lang/AssertionError; {:try_start_7 .. :try_end_7} :catch_1
.catchall {:try_start_7 .. :try_end_7} :catchall_2
:catch_1
move-exception v0
goto :goto_7
:catchall_1
move-exception v0
move-object v8, v4
goto :goto_8
:catch_2
move-exception v0
move-object v8, v4
:goto_7
:try_start_8
invoke-static {v0}, Lokhttp3/internal/c;->a(Ljava/lang/AssertionError;)Z
move-result v9
if-eqz v9, :cond_14
new-instance v9, Ljava/io/IOException;
invoke-direct {v9, v0}, Ljava/io/IOException;-><init>(Ljava/lang/Throwable;)V
throw v9
:cond_14
throw v0
:try_end_8
.catchall {:try_start_8 .. :try_end_8} :catchall_2
:catchall_2
move-exception v0
:goto_8
if-eqz v8, :cond_15
:try_start_9
invoke-static {}, Lokhttp3/internal/g/f;->IK()Lokhttp3/internal/g/f;
move-result-object v9
invoke-virtual {v9, v8}, Lokhttp3/internal/g/f;->f(Ljavax/net/ssl/SSLSocket;)V
:cond_15
invoke-static {v8}, Lokhttp3/internal/c;->a(Ljava/net/Socket;)V
throw v0
:try_end_9
.catch Ljava/io/IOException; {:try_start_9 .. :try_end_9} :catch_3
:catch_3
move-exception v0
goto :goto_a
:catch_4
move-exception v0
move/from16 v11, p2
:goto_9
move/from16 v12, p3
:goto_a
iget-object v8, v1, Lokhttp3/internal/b/c;->cbQ:Ljava/net/Socket;
invoke-static {v8}, Lokhttp3/internal/c;->a(Ljava/net/Socket;)V
iget-object v8, v1, Lokhttp3/internal/b/c;->cbP:Ljava/net/Socket;
invoke-static {v8}, Lokhttp3/internal/c;->a(Ljava/net/Socket;)V
iput-object v4, v1, Lokhttp3/internal/b/c;->cbQ:Ljava/net/Socket;
iput-object v4, v1, Lokhttp3/internal/b/c;->cbP:Ljava/net/Socket;
iput-object v4, v1, Lokhttp3/internal/b/c;->caF:Lokio/d;
iput-object v4, v1, Lokhttp3/internal/b/c;->cbS:Lokio/BufferedSink;
iput-object v4, v1, Lokhttp3/internal/b/c;->cav:Lokhttp3/r;
iput-object v4, v1, Lokhttp3/internal/b/c;->cau:Lokhttp3/u;
iput-object v4, v1, Lokhttp3/internal/b/c;->cbR:Lokhttp3/internal/e/g;
if-nez v5, :cond_16
new-instance v5, Lokhttp3/internal/b/e;
invoke-direct {v5, v0}, Lokhttp3/internal/b/e;-><init>(Ljava/io/IOException;)V
:goto_b
move-object v8, v5
goto :goto_c
:cond_16
iget-object v8, v5, Lokhttp3/internal/b/e;->firstException:Ljava/io/IOException;
invoke-static {v8, v0}, Lokhttp3/internal/c;->d(Ljava/lang/Throwable;Ljava/lang/Throwable;)V
iput-object v0, v5, Lokhttp3/internal/b/e;->lastException:Ljava/io/IOException;
goto :goto_b
:goto_c
if-eqz p5, :cond_1a
iput-boolean v7, v3, Lokhttp3/internal/b/b;->cbN:Z
iget-boolean v9, v3, Lokhttp3/internal/b/b;->cbM:Z
if-eqz v9, :cond_19
instance-of v9, v0, Ljava/net/ProtocolException;
if-nez v9, :cond_19
instance-of v9, v0, Ljava/io/InterruptedIOException;
if-nez v9, :cond_19
instance-of v9, v0, Ljavax/net/ssl/SSLHandshakeException;
if-eqz v9, :cond_17
invoke-virtual {v0}, Ljava/io/IOException;->getCause()Ljava/lang/Throwable;
move-result-object v10
instance-of v10, v10, Ljava/security/cert/CertificateException;
if-nez v10, :cond_19
:cond_17
instance-of v10, v0, Ljavax/net/ssl/SSLPeerUnverifiedException;
if-nez v10, :cond_19
if-nez v9, :cond_18
instance-of v0, v0, Ljavax/net/ssl/SSLProtocolException;
if-eqz v0, :cond_19
:cond_18
const/4 v6, 0x1
:cond_19
if-eqz v6, :cond_1a
move-object v5, v8
goto/16 :goto_1
:cond_1a
throw v8
:cond_1b
new-instance v0, Lokhttp3/internal/b/e;
new-instance v2, Ljava/net/UnknownServiceException;
const-string v3, "H2_PRIOR_KNOWLEDGE cannot be used with HTTPS"
invoke-direct {v2, v3}, Ljava/net/UnknownServiceException;-><init>(Ljava/lang/String;)V
invoke-direct {v0, v2}, Lokhttp3/internal/b/e;-><init>(Ljava/io/IOException;)V
throw v0
:cond_1c
new-instance v0, Ljava/lang/IllegalStateException;
const-string v2, "already connected"
invoke-direct {v0, v2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public final a(Lokhttp3/internal/e/g;)V
.locals 1
iget-object v0, p0, Lokhttp3/internal/b/c;->bZN:Lokhttp3/j;
monitor-enter v0
:try_start_0
invoke-virtual {p1}, Lokhttp3/internal/e/g;->Ik()I
move-result p1
iput p1, p0, Lokhttp3/internal/b/c;->cbV:I
monitor-exit v0
return-void
:catchall_0
move-exception p1
monitor-exit v0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p1
.end method
.method public final a(Lokhttp3/internal/e/i;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
sget-object v0, Lokhttp3/internal/e/b;->ccK:Lokhttp3/internal/e/b;
invoke-virtual {p1, v0}, Lokhttp3/internal/e/i;->b(Lokhttp3/internal/e/b;)V
return-void
.end method
.method public final a(Lokhttp3/a;Lokhttp3/y;)Z
.locals 4
.param p2 # Lokhttp3/y;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
iget-object v0, p0, Lokhttp3/internal/b/c;->cbW:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
iget v1, p0, Lokhttp3/internal/b/c;->cbV:I
const/4 v2, 0x0
if-ge v0, v1, :cond_a
iget-boolean v0, p0, Lokhttp3/internal/b/c;->cbT:Z
if-eqz v0, :cond_0
goto :goto_0
:cond_0
sget-object v0, Lokhttp3/internal/a;->caP:Lokhttp3/internal/a;
iget-object v1, p0, Lokhttp3/internal/b/c;->cbO:Lokhttp3/y;
iget-object v1, v1, Lokhttp3/y;->caH:Lokhttp3/a;
invoke-virtual {v0, v1, p1}, Lokhttp3/internal/a;->a(Lokhttp3/a;Lokhttp3/a;)Z
move-result v0
if-nez v0, :cond_1
return v2
:cond_1
iget-object v0, p1, Lokhttp3/a;->bVq:Lokhttp3/s;
iget-object v0, v0, Lokhttp3/s;->bZe:Ljava/lang/String;
iget-object v1, p0, Lokhttp3/internal/b/c;->cbO:Lokhttp3/y;
iget-object v1, v1, Lokhttp3/y;->caH:Lokhttp3/a;
iget-object v1, v1, Lokhttp3/a;->bVq:Lokhttp3/s;
iget-object v1, v1, Lokhttp3/s;->bZe:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
const/4 v1, 0x1
if-eqz v0, :cond_2
return v1
:cond_2
iget-object v0, p0, Lokhttp3/internal/b/c;->cbR:Lokhttp3/internal/e/g;
if-nez v0, :cond_3
return v2
:cond_3
if-nez p2, :cond_4
return v2
:cond_4
iget-object v0, p2, Lokhttp3/y;->bVw:Ljava/net/Proxy;
invoke-virtual {v0}, Ljava/net/Proxy;->type()Ljava/net/Proxy$Type;
move-result-object v0
sget-object v3, Ljava/net/Proxy$Type;->DIRECT:Ljava/net/Proxy$Type;
if-eq v0, v3, :cond_5
return v2
:cond_5
iget-object v0, p0, Lokhttp3/internal/b/c;->cbO:Lokhttp3/y;
iget-object v0, v0, Lokhttp3/y;->bVw:Ljava/net/Proxy;
invoke-virtual {v0}, Ljava/net/Proxy;->type()Ljava/net/Proxy$Type;
move-result-object v0
sget-object v3, Ljava/net/Proxy$Type;->DIRECT:Ljava/net/Proxy$Type;
if-eq v0, v3, :cond_6
return v2
:cond_6
iget-object v0, p0, Lokhttp3/internal/b/c;->cbO:Lokhttp3/y;
iget-object v0, v0, Lokhttp3/y;->caI:Ljava/net/InetSocketAddress;
iget-object v3, p2, Lokhttp3/y;->caI:Ljava/net/InetSocketAddress;
invoke-virtual {v0, v3}, Ljava/net/InetSocketAddress;->equals(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_7
return v2
:cond_7
iget-object p2, p2, Lokhttp3/y;->caH:Lokhttp3/a;
iget-object p2, p2, Lokhttp3/a;->hostnameVerifier:Ljavax/net/ssl/HostnameVerifier;
sget-object v0, Lokhttp3/internal/h/d;->cfD:Lokhttp3/internal/h/d;
if-eq p2, v0, :cond_8
return v2
:cond_8
iget-object p2, p1, Lokhttp3/a;->bVq:Lokhttp3/s;
invoke-virtual {p0, p2}, Lokhttp3/internal/b/c;->c(Lokhttp3/s;)Z
move-result p2
if-nez p2, :cond_9
return v2
:cond_9
:try_start_0
iget-object p2, p1, Lokhttp3/a;->bVx:Lokhttp3/g;
iget-object p1, p1, Lokhttp3/a;->bVq:Lokhttp3/s;
iget-object p1, p1, Lokhttp3/s;->bZe:Ljava/lang/String;
iget-object v0, p0, Lokhttp3/internal/b/c;->cav:Lokhttp3/r;
iget-object v0, v0, Lokhttp3/r;->bYY:Ljava/util/List;
invoke-virtual {p2, p1, v0}, Lokhttp3/g;->d(Ljava/lang/String;Ljava/util/List;)V
:try_end_0
.catch Ljavax/net/ssl/SSLPeerUnverifiedException; {:try_start_0 .. :try_end_0} :catch_0
return v1
:catch_0
:cond_a
:goto_0
return v2
.end method
.method public final ag(Z)Z
.locals 4
iget-object v0, p0, Lokhttp3/internal/b/c;->cbQ:Ljava/net/Socket;
invoke-virtual {v0}, Ljava/net/Socket;->isClosed()Z
move-result v0
const/4 v1, 0x0
if-nez v0, :cond_5
iget-object v0, p0, Lokhttp3/internal/b/c;->cbQ:Ljava/net/Socket;
invoke-virtual {v0}, Ljava/net/Socket;->isInputShutdown()Z
move-result v0
if-nez v0, :cond_5
iget-object v0, p0, Lokhttp3/internal/b/c;->cbQ:Ljava/net/Socket;
invoke-virtual {v0}, Ljava/net/Socket;->isOutputShutdown()Z
move-result v0
if-eqz v0, :cond_0
goto :goto_0
:cond_0
iget-object v0, p0, Lokhttp3/internal/b/c;->cbR:Lokhttp3/internal/e/g;
const/4 v2, 0x1
if-eqz v0, :cond_2
iget-object p1, p0, Lokhttp3/internal/b/c;->cbR:Lokhttp3/internal/e/g;
invoke-virtual {p1}, Lokhttp3/internal/e/g;->isShutdown()Z
move-result p1
if-nez p1, :cond_1
return v2
:cond_1
return v1
:cond_2
if-eqz p1, :cond_4
:try_start_0
iget-object p1, p0, Lokhttp3/internal/b/c;->cbQ:Ljava/net/Socket;
invoke-virtual {p1}, Ljava/net/Socket;->getSoTimeout()I
move-result p1
:try_end_0
.catch Ljava/net/SocketTimeoutException; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
:try_start_1
iget-object v0, p0, Lokhttp3/internal/b/c;->cbQ:Ljava/net/Socket;
invoke-virtual {v0, v2}, Ljava/net/Socket;->setSoTimeout(I)V
iget-object v0, p0, Lokhttp3/internal/b/c;->caF:Lokio/d;
invoke-interface {v0}, Lokio/d;->IY()Z
move-result v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
if-eqz v0, :cond_3
:try_start_2
iget-object v0, p0, Lokhttp3/internal/b/c;->cbQ:Ljava/net/Socket;
invoke-virtual {v0, p1}, Ljava/net/Socket;->setSoTimeout(I)V
return v1
:cond_3
iget-object v0, p0, Lokhttp3/internal/b/c;->cbQ:Ljava/net/Socket;
invoke-virtual {v0, p1}, Ljava/net/Socket;->setSoTimeout(I)V
return v2
:catchall_0
move-exception v0
iget-object v3, p0, Lokhttp3/internal/b/c;->cbQ:Ljava/net/Socket;
invoke-virtual {v3, p1}, Ljava/net/Socket;->setSoTimeout(I)V
throw v0
:try_end_2
.catch Ljava/net/SocketTimeoutException; {:try_start_2 .. :try_end_2} :catch_1
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
:catch_0
return v1
:catch_1
:cond_4
return v2
:cond_5
:goto_0
return v1
.end method
.method public final c(Lokhttp3/s;)Z
.locals 4
iget v0, p1, Lokhttp3/s;->port:I
iget-object v1, p0, Lokhttp3/internal/b/c;->cbO:Lokhttp3/y;
iget-object v1, v1, Lokhttp3/y;->caH:Lokhttp3/a;
iget-object v1, v1, Lokhttp3/a;->bVq:Lokhttp3/s;
iget v1, v1, Lokhttp3/s;->port:I
const/4 v2, 0x0
if-eq v0, v1, :cond_0
return v2
:cond_0
iget-object v0, p1, Lokhttp3/s;->bZe:Ljava/lang/String;
iget-object v1, p0, Lokhttp3/internal/b/c;->cbO:Lokhttp3/y;
iget-object v1, v1, Lokhttp3/y;->caH:Lokhttp3/a;
iget-object v1, v1, Lokhttp3/a;->bVq:Lokhttp3/s;
iget-object v1, v1, Lokhttp3/s;->bZe:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
const/4 v1, 0x1
if-nez v0, :cond_2
iget-object v0, p0, Lokhttp3/internal/b/c;->cav:Lokhttp3/r;
if-eqz v0, :cond_1
sget-object v0, Lokhttp3/internal/h/d;->cfD:Lokhttp3/internal/h/d;
iget-object p1, p1, Lokhttp3/s;->bZe:Ljava/lang/String;
iget-object v3, p0, Lokhttp3/internal/b/c;->cav:Lokhttp3/r;
iget-object v3, v3, Lokhttp3/r;->bYY:Ljava/util/List;
invoke-interface {v3, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/security/cert/X509Certificate;
invoke-virtual {v0, p1, v3}, Lokhttp3/internal/h/d;->a(Ljava/lang/String;Ljava/security/cert/X509Certificate;)Z
move-result p1
if-eqz p1, :cond_1
return v1
:cond_1
return v2
:cond_2
return v1
.end method
.method public final toString()Ljava/lang/String;
.locals 2
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "Connection{"
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object v1, p0, Lokhttp3/internal/b/c;->cbO:Lokhttp3/y;
iget-object v1, v1, Lokhttp3/y;->caH:Lokhttp3/a;
iget-object v1, v1, Lokhttp3/a;->bVq:Lokhttp3/s;
iget-object v1, v1, Lokhttp3/s;->bZe:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, ":"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lokhttp3/internal/b/c;->cbO:Lokhttp3/y;
iget-object v1, v1, Lokhttp3/y;->caH:Lokhttp3/a;
iget-object v1, v1, Lokhttp3/a;->bVq:Lokhttp3/s;
iget v1, v1, Lokhttp3/s;->port:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v1, ", proxy="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lokhttp3/internal/b/c;->cbO:Lokhttp3/y;
iget-object v1, v1, Lokhttp3/y;->bVw:Ljava/net/Proxy;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, " hostAddress="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lokhttp3/internal/b/c;->cbO:Lokhttp3/y;
iget-object v1, v1, Lokhttp3/y;->caI:Ljava/net/InetSocketAddress;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, " cipherSuite="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lokhttp3/internal/b/c;->cav:Lokhttp3/r;
if-eqz v1, :cond_0
iget-object v1, p0, Lokhttp3/internal/b/c;->cav:Lokhttp3/r;
iget-object v1, v1, Lokhttp3/r;->bYX:Lokhttp3/h;
goto :goto_0
:cond_0
const-string v1, "none"
:goto_0
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, " protocol="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lokhttp3/internal/b/c;->cau:Lokhttp3/u;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const/16 v1, 0x7d
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method