apkfuckery/com.discord/smali_classes2/w/k$a.smali

465 lines
9 KiB
Smali
Raw Normal View History

2019-12-13 02:35:12 +00:00
.class public final Lw/k$a;
2019-12-06 03:29:40 +00:00
.super Ljava/lang/Object;
.source "ConnectionSpec.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
2019-12-13 02:35:12 +00:00
value = Lw/k;
2019-12-06 03:29:40 +00:00
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "a"
.end annotation
# instance fields
.field public a:Z
.field public b:[Ljava/lang/String;
.field public c:[Ljava/lang/String;
.field public d:Z
# direct methods
2019-12-13 02:35:12 +00:00
.method public constructor <init>(Lw/k;)V
2019-12-06 03:29:40 +00:00
.locals 1
if-eqz p1, :cond_0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2019-12-13 02:35:12 +00:00
iget-boolean v0, p1, Lw/k;->a:Z
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
iput-boolean v0, p0, Lw/k$a;->a:Z
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
iget-object v0, p1, Lw/k;->c:[Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
iput-object v0, p0, Lw/k$a;->b:[Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
iget-object v0, p1, Lw/k;->d:[Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
iput-object v0, p0, Lw/k$a;->c:[Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
iget-boolean p1, p1, Lw/k;->b:Z
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
iput-boolean p1, p0, Lw/k$a;->d:Z
2019-12-06 03:29:40 +00:00
return-void
:cond_0
const-string p1, "connectionSpec"
2019-12-13 02:35:12 +00:00
invoke-static {p1}, Ls/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
throw p1
.end method
.method public constructor <init>(Z)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2019-12-13 02:35:12 +00:00
iput-boolean p1, p0, Lw/k$a;->a:Z
2019-12-06 03:29:40 +00:00
return-void
.end method
# virtual methods
2019-12-13 02:35:12 +00:00
.method public final a(Z)Lw/k$a;
2019-12-06 03:29:40 +00:00
.locals 1
2019-12-13 02:35:12 +00:00
iget-boolean v0, p0, Lw/k$a;->a:Z
2019-12-06 03:29:40 +00:00
if-eqz v0, :cond_0
2019-12-13 02:35:12 +00:00
iput-boolean p1, p0, Lw/k$a;->d:Z
2019-12-06 03:29:40 +00:00
return-object p0
:cond_0
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "no TLS extensions for cleartext connections"
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method
2019-12-13 02:35:12 +00:00
.method public final varargs a([Ljava/lang/String;)Lw/k$a;
2019-12-06 03:29:40 +00:00
.locals 2
if-eqz p1, :cond_4
2019-12-13 02:35:12 +00:00
iget-boolean v0, p0, Lw/k$a;->a:Z
2019-12-06 03:29:40 +00:00
if-eqz v0, :cond_3
array-length v0, p1
const/4 v1, 0x1
if-nez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
xor-int/2addr v0, v1
if-eqz v0, :cond_2
invoke-virtual {p1}, Ljava/lang/Object;->clone()Ljava/lang/Object;
move-result-object p1
if-eqz p1, :cond_1
check-cast p1, [Ljava/lang/String;
2019-12-13 02:35:12 +00:00
iput-object p1, p0, Lw/k$a;->b:[Ljava/lang/String;
2019-12-06 03:29:40 +00:00
return-object p0
:cond_1
2019-12-13 02:35:12 +00:00
new-instance p1, Ls/l;
2019-12-06 03:29:40 +00:00
const-string v0, "null cannot be cast to non-null type kotlin.Array<kotlin.String>"
2019-12-13 02:35:12 +00:00
invoke-direct {p1, v0}, Ls/l;-><init>(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
throw p1
:cond_2
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "At least one cipher suite is required"
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_3
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "no cipher suites for cleartext connections"
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_4
const-string p1, "cipherSuites"
2019-12-13 02:35:12 +00:00
invoke-static {p1}, Ls/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
throw p1
.end method
2019-12-13 02:35:12 +00:00
.method public final varargs a([Lw/b0;)Lw/k$a;
2019-12-06 03:29:40 +00:00
.locals 5
if-eqz p1, :cond_3
2019-12-13 02:35:12 +00:00
iget-boolean v0, p0, Lw/k$a;->a:Z
2019-12-06 03:29:40 +00:00
if-eqz v0, :cond_2
new-instance v0, Ljava/util/ArrayList;
array-length v1, p1
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V
array-length v1, p1
const/4 v2, 0x0
const/4 v3, 0x0
:goto_0
if-ge v3, v1, :cond_0
aget-object v4, p1, v3
2019-12-13 02:35:12 +00:00
invoke-virtual {v4}, Lw/b0;->a()Ljava/lang/String;
2019-12-06 03:29:40 +00:00
move-result-object v4
invoke-interface {v0, v4}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
add-int/lit8 v3, v3, 0x1
goto :goto_0
:cond_0
new-array p1, v2, [Ljava/lang/String;
invoke-interface {v0, p1}, Ljava/util/Collection;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object p1
if-eqz p1, :cond_1
check-cast p1, [Ljava/lang/String;
array-length v0, p1
invoke-static {p1, v0}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object p1
check-cast p1, [Ljava/lang/String;
2019-12-13 02:35:12 +00:00
invoke-virtual {p0, p1}, Lw/k$a;->b([Ljava/lang/String;)Lw/k$a;
2019-12-06 03:29:40 +00:00
return-object p0
:cond_1
2019-12-13 02:35:12 +00:00
new-instance p1, Ls/l;
2019-12-06 03:29:40 +00:00
const-string v0, "null cannot be cast to non-null type kotlin.Array<T>"
2019-12-13 02:35:12 +00:00
invoke-direct {p1, v0}, Ls/l;-><init>(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
throw p1
:cond_2
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "no TLS versions for cleartext connections"
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_3
const-string p1, "tlsVersions"
2019-12-13 02:35:12 +00:00
invoke-static {p1}, Ls/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
throw p1
.end method
2019-12-13 02:35:12 +00:00
.method public final varargs a([Lw/h;)Lw/k$a;
2019-12-06 03:29:40 +00:00
.locals 5
if-eqz p1, :cond_3
2019-12-13 02:35:12 +00:00
iget-boolean v0, p0, Lw/k$a;->a:Z
2019-12-06 03:29:40 +00:00
if-eqz v0, :cond_2
new-instance v0, Ljava/util/ArrayList;
array-length v1, p1
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V
array-length v1, p1
const/4 v2, 0x0
const/4 v3, 0x0
:goto_0
if-ge v3, v1, :cond_0
aget-object v4, p1, v3
2019-12-13 02:35:12 +00:00
iget-object v4, v4, Lw/h;->a:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
invoke-interface {v0, v4}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
add-int/lit8 v3, v3, 0x1
goto :goto_0
:cond_0
new-array p1, v2, [Ljava/lang/String;
invoke-interface {v0, p1}, Ljava/util/Collection;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object p1
if-eqz p1, :cond_1
check-cast p1, [Ljava/lang/String;
array-length v0, p1
invoke-static {p1, v0}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object p1
check-cast p1, [Ljava/lang/String;
2019-12-13 02:35:12 +00:00
invoke-virtual {p0, p1}, Lw/k$a;->a([Ljava/lang/String;)Lw/k$a;
2019-12-06 03:29:40 +00:00
return-object p0
:cond_1
2019-12-13 02:35:12 +00:00
new-instance p1, Ls/l;
2019-12-06 03:29:40 +00:00
const-string v0, "null cannot be cast to non-null type kotlin.Array<T>"
2019-12-13 02:35:12 +00:00
invoke-direct {p1, v0}, Ls/l;-><init>(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
throw p1
:cond_2
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "no cipher suites for cleartext connections"
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_3
const-string p1, "cipherSuites"
2019-12-13 02:35:12 +00:00
invoke-static {p1}, Ls/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
throw p1
.end method
2019-12-13 02:35:12 +00:00
.method public final a()Lw/k;
2019-12-06 03:29:40 +00:00
.locals 5
2019-12-13 02:35:12 +00:00
new-instance v0, Lw/k;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
iget-boolean v1, p0, Lw/k$a;->a:Z
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
iget-boolean v2, p0, Lw/k$a;->d:Z
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
iget-object v3, p0, Lw/k$a;->b:[Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
iget-object v4, p0, Lw/k$a;->c:[Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2019-12-13 02:35:12 +00:00
invoke-direct {v0, v1, v2, v3, v4}, Lw/k;-><init>(ZZ[Ljava/lang/String;[Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
return-object v0
.end method
2019-12-13 02:35:12 +00:00
.method public final varargs b([Ljava/lang/String;)Lw/k$a;
2019-12-06 03:29:40 +00:00
.locals 2
if-eqz p1, :cond_4
2019-12-13 02:35:12 +00:00
iget-boolean v0, p0, Lw/k$a;->a:Z
2019-12-06 03:29:40 +00:00
if-eqz v0, :cond_3
array-length v0, p1
const/4 v1, 0x1
if-nez v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
xor-int/2addr v0, v1
if-eqz v0, :cond_2
invoke-virtual {p1}, Ljava/lang/Object;->clone()Ljava/lang/Object;
move-result-object p1
if-eqz p1, :cond_1
check-cast p1, [Ljava/lang/String;
2019-12-13 02:35:12 +00:00
iput-object p1, p0, Lw/k$a;->c:[Ljava/lang/String;
2019-12-06 03:29:40 +00:00
return-object p0
:cond_1
2019-12-13 02:35:12 +00:00
new-instance p1, Ls/l;
2019-12-06 03:29:40 +00:00
const-string v0, "null cannot be cast to non-null type kotlin.Array<kotlin.String>"
2019-12-13 02:35:12 +00:00
invoke-direct {p1, v0}, Ls/l;-><init>(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
throw p1
:cond_2
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "At least one TLS version is required"
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_3
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "no TLS versions for cleartext connections"
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_4
const-string p1, "tlsVersions"
2019-12-13 02:35:12 +00:00
invoke-static {p1}, Ls/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
throw p1
.end method