apkfuckery/com.discord/smali/okhttp3/a.smali
2019-03-16 02:04:31 +01:00

676 lines
15 KiB
Smali

.class public final Lokhttp3/a;
.super Ljava/lang/Object;
.source "Address.java"
# instance fields
.field public final bjq:Lokhttp3/s;
.field public final bjr:Lokhttp3/o;
.field public final bjs:Ljavax/net/SocketFactory;
.field final bjt:Lokhttp3/b;
.field public final bju:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lokhttp3/u;",
">;"
}
.end annotation
.end field
.field public final bjv:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lokhttp3/k;",
">;"
}
.end annotation
.end field
.field public final bjw:Ljava/net/Proxy;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
.field public final bjx:Lokhttp3/g;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
.field public final hostnameVerifier:Ljavax/net/ssl/HostnameVerifier;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
.field public final proxySelector:Ljava/net/ProxySelector;
.field public final sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
# direct methods
.method public constructor <init>(Ljava/lang/String;ILokhttp3/o;Ljavax/net/SocketFactory;Ljavax/net/ssl/SSLSocketFactory;Ljavax/net/ssl/HostnameVerifier;Lokhttp3/g;Lokhttp3/b;Ljava/net/Proxy;Ljava/util/List;Ljava/util/List;Ljava/net/ProxySelector;)V
.locals 3
.param p5 # Ljavax/net/ssl/SSLSocketFactory;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.param p6 # Ljavax/net/ssl/HostnameVerifier;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.param p7 # Lokhttp3/g;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.param p9 # Ljava/net/Proxy;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
"I",
"Lokhttp3/o;",
"Ljavax/net/SocketFactory;",
"Ljavax/net/ssl/SSLSocketFactory;",
"Ljavax/net/ssl/HostnameVerifier;",
"Lokhttp3/g;",
"Lokhttp3/b;",
"Ljava/net/Proxy;",
"Ljava/util/List<",
"Lokhttp3/u;",
">;",
"Ljava/util/List<",
"Lokhttp3/k;",
">;",
"Ljava/net/ProxySelector;",
")V"
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Lokhttp3/s$a;
invoke-direct {v0}, Lokhttp3/s$a;-><init>()V
if-eqz p5, :cond_0
const-string v1, "https"
goto :goto_0
:cond_0
const-string v1, "http"
:goto_0
const-string v2, "http"
invoke-virtual {v1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v2
if-eqz v2, :cond_1
const-string v1, "http"
iput-object v1, v0, Lokhttp3/s$a;->bnj:Ljava/lang/String;
goto :goto_1
:cond_1
const-string v2, "https"
invoke-virtual {v1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v2
if-eqz v2, :cond_b
const-string v1, "https"
iput-object v1, v0, Lokhttp3/s$a;->bnj:Ljava/lang/String;
:goto_1
if-eqz p1, :cond_a
const/4 v1, 0x0
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v2
invoke-static {p1, v1, v2}, Lokhttp3/s$a;->j(Ljava/lang/String;II)Ljava/lang/String;
move-result-object v1
if-eqz v1, :cond_9
iput-object v1, v0, Lokhttp3/s$a;->bnk:Ljava/lang/String;
if-lez p2, :cond_8
const p1, 0xffff
if-gt p2, p1, :cond_8
iput p2, v0, Lokhttp3/s$a;->port:I
invoke-virtual {v0}, Lokhttp3/s$a;->Ao()Lokhttp3/s;
move-result-object p1
iput-object p1, p0, Lokhttp3/a;->bjq:Lokhttp3/s;
if-eqz p3, :cond_7
iput-object p3, p0, Lokhttp3/a;->bjr:Lokhttp3/o;
if-eqz p4, :cond_6
iput-object p4, p0, Lokhttp3/a;->bjs:Ljavax/net/SocketFactory;
if-eqz p8, :cond_5
iput-object p8, p0, Lokhttp3/a;->bjt:Lokhttp3/b;
if-eqz p10, :cond_4
invoke-static {p10}, Lokhttp3/internal/c;->ac(Ljava/util/List;)Ljava/util/List;
move-result-object p1
iput-object p1, p0, Lokhttp3/a;->bju:Ljava/util/List;
if-eqz p11, :cond_3
invoke-static {p11}, Lokhttp3/internal/c;->ac(Ljava/util/List;)Ljava/util/List;
move-result-object p1
iput-object p1, p0, Lokhttp3/a;->bjv:Ljava/util/List;
if-eqz p12, :cond_2
iput-object p12, p0, Lokhttp3/a;->proxySelector:Ljava/net/ProxySelector;
iput-object p9, p0, Lokhttp3/a;->bjw:Ljava/net/Proxy;
iput-object p5, p0, Lokhttp3/a;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
iput-object p6, p0, Lokhttp3/a;->hostnameVerifier:Ljavax/net/ssl/HostnameVerifier;
iput-object p7, p0, Lokhttp3/a;->bjx:Lokhttp3/g;
return-void
:cond_2
new-instance p1, Ljava/lang/NullPointerException;
const-string p2, "proxySelector == null"
invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p1
:cond_3
new-instance p1, Ljava/lang/NullPointerException;
const-string p2, "connectionSpecs == null"
invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p1
:cond_4
new-instance p1, Ljava/lang/NullPointerException;
const-string p2, "protocols == null"
invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p1
:cond_5
new-instance p1, Ljava/lang/NullPointerException;
const-string p2, "proxyAuthenticator == null"
invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p1
:cond_6
new-instance p1, Ljava/lang/NullPointerException;
const-string p2, "socketFactory == null"
invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p1
:cond_7
new-instance p1, Ljava/lang/NullPointerException;
const-string p2, "dns == null"
invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p1
:cond_8
new-instance p1, Ljava/lang/IllegalArgumentException;
invoke-static {p2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
move-result-object p2
const-string p3, "unexpected port: "
invoke-virtual {p3, p2}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_9
new-instance p2, Ljava/lang/IllegalArgumentException;
invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
const-string p3, "unexpected host: "
invoke-virtual {p3, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p2
:cond_a
new-instance p1, Ljava/lang/NullPointerException;
const-string p2, "host == null"
invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p1
:cond_b
new-instance p1, Ljava/lang/IllegalArgumentException;
invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p2
const-string p3, "unexpected scheme: "
invoke-virtual {p3, p2}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method
# virtual methods
.method final a(Lokhttp3/a;)Z
.locals 2
iget-object v0, p0, Lokhttp3/a;->bjr:Lokhttp3/o;
iget-object v1, p1, Lokhttp3/a;->bjr:Lokhttp3/o;
invoke-virtual {v0, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lokhttp3/a;->bjt:Lokhttp3/b;
iget-object v1, p1, Lokhttp3/a;->bjt:Lokhttp3/b;
invoke-virtual {v0, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lokhttp3/a;->bju:Ljava/util/List;
iget-object v1, p1, Lokhttp3/a;->bju:Ljava/util/List;
invoke-interface {v0, v1}, Ljava/util/List;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lokhttp3/a;->bjv:Ljava/util/List;
iget-object v1, p1, Lokhttp3/a;->bjv:Ljava/util/List;
invoke-interface {v0, v1}, Ljava/util/List;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lokhttp3/a;->proxySelector:Ljava/net/ProxySelector;
iget-object v1, p1, Lokhttp3/a;->proxySelector:Ljava/net/ProxySelector;
invoke-virtual {v0, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lokhttp3/a;->bjw:Ljava/net/Proxy;
iget-object v1, p1, Lokhttp3/a;->bjw:Ljava/net/Proxy;
invoke-static {v0, v1}, Lokhttp3/internal/c;->equal(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}, Lokhttp3/internal/c;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lokhttp3/a;->hostnameVerifier:Ljavax/net/ssl/HostnameVerifier;
iget-object v1, p1, Lokhttp3/a;->hostnameVerifier:Ljavax/net/ssl/HostnameVerifier;
invoke-static {v0, v1}, Lokhttp3/internal/c;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lokhttp3/a;->bjx:Lokhttp3/g;
iget-object v1, p1, Lokhttp3/a;->bjx:Lokhttp3/g;
invoke-static {v0, v1}, Lokhttp3/internal/c;->equal(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lokhttp3/a;->bjq:Lokhttp3/s;
iget v0, v0, Lokhttp3/s;->port:I
iget-object p1, p1, Lokhttp3/a;->bjq:Lokhttp3/s;
iget p1, p1, Lokhttp3/s;->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
.param p1 # Ljava/lang/Object;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
instance-of v0, p1, Lokhttp3/a;
if-eqz v0, :cond_0
iget-object v0, p0, Lokhttp3/a;->bjq:Lokhttp3/s;
check-cast p1, Lokhttp3/a;
iget-object v1, p1, Lokhttp3/a;->bjq:Lokhttp3/s;
invoke-virtual {v0, v1}, Lokhttp3/s;->equals(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 3
iget-object v0, p0, Lokhttp3/a;->bjq:Lokhttp3/s;
invoke-virtual {v0}, Lokhttp3/s;->hashCode()I
move-result v0
add-int/lit16 v0, v0, 0x20f
mul-int/lit8 v0, v0, 0x1f
iget-object v1, p0, Lokhttp3/a;->bjr:Lokhttp3/o;
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;->bjt: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;->bju:Ljava/util/List;
invoke-interface {v1}, Ljava/util/List;->hashCode()I
move-result v1
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
iget-object v1, p0, Lokhttp3/a;->bjv:Ljava/util/List;
invoke-interface {v1}, Ljava/util/List;->hashCode()I
move-result v1
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
iget-object v1, p0, Lokhttp3/a;->proxySelector:Ljava/net/ProxySelector;
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;->bjw:Ljava/net/Proxy;
const/4 v2, 0x0
if-eqz v1, :cond_0
invoke-virtual {v1}, Ljava/net/Proxy;->hashCode()I
move-result v1
goto :goto_0
:cond_0
const/4 v1, 0x0
:goto_0
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
iget-object v1, p0, Lokhttp3/a;->sslSocketFactory:Ljavax/net/ssl/SSLSocketFactory;
if-eqz v1, :cond_1
invoke-virtual {v1}, Ljava/lang/Object;->hashCode()I
move-result v1
goto :goto_1
:cond_1
const/4 v1, 0x0
:goto_1
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
iget-object v1, p0, Lokhttp3/a;->hostnameVerifier:Ljavax/net/ssl/HostnameVerifier;
if-eqz v1, :cond_2
invoke-virtual {v1}, Ljava/lang/Object;->hashCode()I
move-result v1
goto :goto_2
:cond_2
const/4 v1, 0x0
:goto_2
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
iget-object v1, p0, Lokhttp3/a;->bjx:Lokhttp3/g;
if-eqz v1, :cond_3
invoke-virtual {v1}, Lokhttp3/g;->hashCode()I
move-result v2
:cond_3
add-int/2addr v0, v2
return v0
.end method
.method public final toString()Ljava/lang/String;
.locals 2
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;->bjq:Lokhttp3/s;
iget-object v1, v1, Lokhttp3/s;->bnk: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/a;->bjq:Lokhttp3/s;
iget v1, v1, Lokhttp3/s;->port:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
iget-object v1, p0, Lokhttp3/a;->bjw:Ljava/net/Proxy;
if-eqz v1, :cond_0
const-string v1, ", proxy="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lokhttp3/a;->bjw:Ljava/net/Proxy;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
goto :goto_0
:cond_0
const-string v1, ", proxySelector="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lokhttp3/a;->proxySelector:Ljava/net/ProxySelector;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
:goto_0
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