apkfuckery/com.discord/smali_classes2/okhttp3/a.smali
2019-12-04 23:43:03 +01:00

661 lines
15 KiB
Smali

.class public final Lokhttp3/a;
.super Ljava/lang/Object;
.source "Address.kt"
# instance fields
.field public final aXE:Ljavax/net/ssl/HostnameVerifier;
.field public final cjD:Lokhttp3/v;
.field public final cjE:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lokhttp3/x;",
">;"
}
.end annotation
.end field
.field public final cjF:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lokhttp3/l;",
">;"
}
.end annotation
.end field
.field public final cjG:Lokhttp3/q;
.field public final cjH:Ljavax/net/SocketFactory;
.field public final cjI:Lokhttp3/h;
.field public final cjJ:Lokhttp3/b;
.field public final cjK:Ljava/net/Proxy;
.field public final cjL:Ljava/net/ProxySelector;
.field public final sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
# direct methods
.method public constructor <init>(Ljava/lang/String;ILokhttp3/q;Ljavax/net/SocketFactory;Ljavax/net/ssl/SSLSocketFactory;Ljavax/net/ssl/HostnameVerifier;Lokhttp3/h;Lokhttp3/b;Ljava/net/Proxy;Ljava/util/List;Ljava/util/List;Ljava/net/ProxySelector;)V
.locals 12
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"I",
"Lokhttp3/q;",
"Ljavax/net/SocketFactory;",
"Ljavax/net/ssl/SSLSocketFactory;",
"Ljavax/net/ssl/HostnameVerifier;",
"Lokhttp3/h;",
"Lokhttp3/b;",
"Ljava/net/Proxy;",
"Ljava/util/List<",
"+",
"Lokhttp3/x;",
">;",
"Ljava/util/List<",
"Lokhttp3/l;",
">;",
"Ljava/net/ProxySelector;",
")V"
}
.end annotation
move-object v0, p0
move-object v1, p1
move v2, p2
move-object v3, p3
move-object/from16 v4, p4
move-object/from16 v5, p8
move-object/from16 v6, p12
const-string v7, "uriHost"
invoke-static {p1, v7}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v7, "dns"
invoke-static {p3, v7}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v7, "socketFactory"
invoke-static {v4, v7}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v7, "proxyAuthenticator"
invoke-static {v5, v7}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v7, "protocols"
move-object/from16 v8, p10
invoke-static {v8, v7}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v7, "connectionSpecs"
move-object/from16 v9, p11
invoke-static {v9, v7}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v7, "proxySelector"
invoke-static {v6, v7}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object v3, v0, Lokhttp3/a;->cjG:Lokhttp3/q;
iput-object v4, v0, Lokhttp3/a;->cjH:Ljavax/net/SocketFactory;
move-object/from16 v3, p5
iput-object v3, v0, Lokhttp3/a;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
move-object/from16 v3, p6
iput-object v3, v0, Lokhttp3/a;->aXE:Ljavax/net/ssl/HostnameVerifier;
move-object/from16 v3, p7
iput-object v3, v0, Lokhttp3/a;->cjI:Lokhttp3/h;
iput-object v5, v0, Lokhttp3/a;->cjJ:Lokhttp3/b;
move-object/from16 v3, p9
iput-object v3, v0, Lokhttp3/a;->cjK:Ljava/net/Proxy;
iput-object v6, v0, Lokhttp3/a;->cjL:Ljava/net/ProxySelector;
new-instance v3, Lokhttp3/v$a;
invoke-direct {v3}, Lokhttp3/v$a;-><init>()V
iget-object v4, v0, Lokhttp3/a;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
const-string v5, "https"
const-string v6, "http"
if-eqz v4, :cond_0
move-object v4, v5
goto :goto_0
:cond_0
move-object v4, v6
:goto_0
const-string v7, "scheme"
invoke-static {v4, v7}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
check-cast v3, Lokhttp3/v$a;
const/4 v7, 0x1
invoke-static {v4, v6, v7}, Lkotlin/text/l;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
move-result v10
if-eqz v10, :cond_1
iput-object v6, v3, Lokhttp3/v$a;->cod:Ljava/lang/String;
goto :goto_1
:cond_1
invoke-static {v4, v5, v7}, Lkotlin/text/l;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
move-result v6
if-eqz v6, :cond_6
iput-object v5, v3, Lokhttp3/v$a;->cod:Ljava/lang/String;
:goto_1
const-string v4, "host"
invoke-static {p1, v4}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
check-cast v3, Lokhttp3/v$a;
sget-object v4, Lokhttp3/v;->coi:Lokhttp3/v$b;
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v10, 0x0
const/4 v11, 0x7
move-object p3, v4
move-object/from16 p4, p1
move/from16 p5, v5
move/from16 p6, v6
move/from16 p7, v10
move/from16 p8, v11
invoke-static/range {p3 .. p8}, Lokhttp3/v$b;->a(Lokhttp3/v$b;Ljava/lang/String;IIZI)Ljava/lang/String;
move-result-object v4
invoke-static {v4}, Lokhttp3/internal/a;->ft(Ljava/lang/String;)Ljava/lang/String;
move-result-object v4
if-eqz v4, :cond_5
iput-object v4, v3, Lokhttp3/v$a;->coe:Ljava/lang/String;
check-cast v3, Lokhttp3/v$a;
const v1, 0xffff
if-le v7, v2, :cond_2
goto :goto_2
:cond_2
if-lt v1, v2, :cond_3
goto :goto_3
:cond_3
:goto_2
const/4 v7, 0x0
:goto_3
if-eqz v7, :cond_4
iput v2, v3, Lokhttp3/v$a;->port:I
invoke-virtual {v3}, Lokhttp3/v$a;->QB()Lokhttp3/v;
move-result-object v1
iput-object v1, v0, Lokhttp3/a;->cjD:Lokhttp3/v;
invoke-static/range {p10 .. p10}, Lokhttp3/internal/b;->am(Ljava/util/List;)Ljava/util/List;
move-result-object v1
iput-object v1, v0, Lokhttp3/a;->cjE:Ljava/util/List;
invoke-static/range {p11 .. p11}, Lokhttp3/internal/b;->am(Ljava/util/List;)Ljava/util/List;
move-result-object v1
iput-object v1, v0, Lokhttp3/a;->cjF:Ljava/util/List;
return-void
:cond_4
invoke-static {p2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object v1
const-string v2, "unexpected port: "
invoke-virtual {v2, v1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
new-instance v2, Ljava/lang/IllegalArgumentException;
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v2, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
check-cast v2, Ljava/lang/Throwable;
throw v2
:cond_5
new-instance v2, Ljava/lang/IllegalArgumentException;
invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
const-string v3, "unexpected host: "
invoke-virtual {v3, v1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
invoke-direct {v2, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
check-cast v2, Ljava/lang/Throwable;
throw v2
:cond_6
new-instance v1, Ljava/lang/IllegalArgumentException;
const-string v2, "unexpected scheme: "
invoke-virtual {v2, v4}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
invoke-direct {v1, v2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
check-cast v1, Ljava/lang/Throwable;
throw v1
.end method
# virtual methods
.method public final a(Lokhttp3/a;)Z
.locals 2
const-string v0, "that"
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Lokhttp3/a;->cjG:Lokhttp3/q;
iget-object v1, p1, Lokhttp3/a;->cjG:Lokhttp3/q;
invoke-static {v0, v1}, Lkotlin/jvm/internal/l;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lokhttp3/a;->cjJ:Lokhttp3/b;
iget-object v1, p1, Lokhttp3/a;->cjJ:Lokhttp3/b;
invoke-static {v0, v1}, Lkotlin/jvm/internal/l;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lokhttp3/a;->cjE:Ljava/util/List;
iget-object v1, p1, Lokhttp3/a;->cjE:Ljava/util/List;
invoke-static {v0, v1}, Lkotlin/jvm/internal/l;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lokhttp3/a;->cjF:Ljava/util/List;
iget-object v1, p1, Lokhttp3/a;->cjF:Ljava/util/List;
invoke-static {v0, v1}, Lkotlin/jvm/internal/l;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lokhttp3/a;->cjL:Ljava/net/ProxySelector;
iget-object v1, p1, Lokhttp3/a;->cjL:Ljava/net/ProxySelector;
invoke-static {v0, v1}, Lkotlin/jvm/internal/l;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lokhttp3/a;->cjK:Ljava/net/Proxy;
iget-object v1, p1, Lokhttp3/a;->cjK:Ljava/net/Proxy;
invoke-static {v0, v1}, Lkotlin/jvm/internal/l;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lokhttp3/a;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
iget-object v1, p1, Lokhttp3/a;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
invoke-static {v0, v1}, Lkotlin/jvm/internal/l;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lokhttp3/a;->aXE:Ljavax/net/ssl/HostnameVerifier;
iget-object v1, p1, Lokhttp3/a;->aXE:Ljavax/net/ssl/HostnameVerifier;
invoke-static {v0, v1}, Lkotlin/jvm/internal/l;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lokhttp3/a;->cjI:Lokhttp3/h;
iget-object v1, p1, Lokhttp3/a;->cjI:Lokhttp3/h;
invoke-static {v0, v1}, Lkotlin/jvm/internal/l;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lokhttp3/a;->cjD:Lokhttp3/v;
iget v0, v0, Lokhttp3/v;->port:I
iget-object p1, p1, Lokhttp3/a;->cjD:Lokhttp3/v;
iget p1, p1, Lokhttp3/v;->port:I
if-ne v0, p1, :cond_0
const/4 p1, 0x1
return p1
:cond_0
const/4 p1, 0x0
return p1
.end method
.method public final equals(Ljava/lang/Object;)Z
.locals 2
instance-of v0, p1, Lokhttp3/a;
if-eqz v0, :cond_0
iget-object v0, p0, Lokhttp3/a;->cjD:Lokhttp3/v;
check-cast p1, Lokhttp3/a;
iget-object v1, p1, Lokhttp3/a;->cjD:Lokhttp3/v;
invoke-static {v0, v1}, Lkotlin/jvm/internal/l;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
invoke-virtual {p0, p1}, Lokhttp3/a;->a(Lokhttp3/a;)Z
move-result p1
if-eqz p1, :cond_0
const/4 p1, 0x1
return p1
:cond_0
const/4 p1, 0x0
return p1
.end method
.method public final hashCode()I
.locals 2
iget-object v0, p0, Lokhttp3/a;->cjD:Lokhttp3/v;
invoke-virtual {v0}, Lokhttp3/v;->hashCode()I
move-result v0
add-int/lit16 v0, v0, 0x20f
mul-int/lit8 v0, v0, 0x1f
iget-object v1, p0, Lokhttp3/a;->cjG:Lokhttp3/q;
invoke-virtual {v1}, Ljava/lang/Object;->hashCode()I
move-result v1
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
iget-object v1, p0, Lokhttp3/a;->cjJ:Lokhttp3/b;
invoke-virtual {v1}, Ljava/lang/Object;->hashCode()I
move-result v1
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
iget-object v1, p0, Lokhttp3/a;->cjE:Ljava/util/List;
invoke-virtual {v1}, Ljava/lang/Object;->hashCode()I
move-result v1
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
iget-object v1, p0, Lokhttp3/a;->cjF:Ljava/util/List;
invoke-virtual {v1}, Ljava/lang/Object;->hashCode()I
move-result v1
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
iget-object v1, p0, Lokhttp3/a;->cjL:Ljava/net/ProxySelector;
invoke-virtual {v1}, Ljava/net/ProxySelector;->hashCode()I
move-result v1
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
iget-object v1, p0, Lokhttp3/a;->cjK:Ljava/net/Proxy;
invoke-static {v1}, Ljava/util/Objects;->hashCode(Ljava/lang/Object;)I
move-result v1
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
iget-object v1, p0, Lokhttp3/a;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
invoke-static {v1}, Ljava/util/Objects;->hashCode(Ljava/lang/Object;)I
move-result v1
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
iget-object v1, p0, Lokhttp3/a;->aXE:Ljavax/net/ssl/HostnameVerifier;
invoke-static {v1}, Ljava/util/Objects;->hashCode(Ljava/lang/Object;)I
move-result v1
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
iget-object v1, p0, Lokhttp3/a;->cjI:Lokhttp3/h;
invoke-static {v1}, Ljava/util/Objects;->hashCode(Ljava/lang/Object;)I
move-result v1
add-int/2addr v0, v1
return v0
.end method
.method public final toString()Ljava/lang/String;
.locals 3
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "Address{"
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object v1, p0, Lokhttp3/a;->cjD:Lokhttp3/v;
iget-object v1, v1, Lokhttp3/v;->coe:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const/16 v1, 0x3a
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
iget-object v1, p0, Lokhttp3/a;->cjD:Lokhttp3/v;
iget v1, v1, Lokhttp3/v;->port:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)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/a;->cjK:Ljava/net/Proxy;
if-eqz v1, :cond_0
new-instance v1, Ljava/lang/StringBuilder;
const-string v2, "proxy="
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object v2, p0, Lokhttp3/a;->cjK:Ljava/net/Proxy;
goto :goto_0
:cond_0
new-instance v1, Ljava/lang/StringBuilder;
const-string v2, "proxySelector="
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object v2, p0, Lokhttp3/a;->cjL:Ljava/net/ProxySelector;
:goto_0
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
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;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method