apkfuckery/com.discord/smali_classes2/x/h$b.smali
2020-01-07 03:40:43 +01:00

215 lines
4.7 KiB
Smali

.class public final Lx/h$b;
.super Ljava/lang/Object;
.source "CipherSuite.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lx/h;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "b"
.end annotation
# direct methods
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final a()Ljava/util/Comparator;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Comparator<",
"Ljava/lang/String;",
">;"
}
.end annotation
invoke-static {}, Lx/h;->a()Ljava/util/Comparator;
move-result-object v0
return-object v0
.end method
.method public final declared-synchronized a(Ljava/lang/String;)Lx/h;
.locals 2
monitor-enter p0
:try_start_0
const-string v0, "javaName"
if-eqz p1, :cond_2
sget-object v0, Lx/h;->c:Ljava/util/Map;
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lx/h;
if-nez v0, :cond_1
sget-object v0, Lx/h;->c:Ljava/util/Map;
invoke-virtual {p0, p1}, Lx/h$b;->c(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lx/h;
if-nez v0, :cond_0
new-instance v0, Lx/h;
invoke-direct {v0, p1}, Lx/h;-><init>(Ljava/lang/String;)V
:cond_0
sget-object v1, Lx/h;->c:Ljava/util/Map;
invoke-interface {v1, p1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
:cond_1
monitor-exit p0
return-object v0
:cond_2
:try_start_1
invoke-static {v0}, Lt/u/b/j;->a(Ljava/lang/String;)V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
const/4 p1, 0x0
throw p1
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public final b(Ljava/lang/String;)Lx/h;
.locals 2
new-instance v0, Lx/h;
invoke-direct {v0, p1}, Lx/h;-><init>(Ljava/lang/String;)V
sget-object v1, Lx/h;->c:Ljava/util/Map;
invoke-interface {v1, p1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return-object v0
.end method
.method public final c(Ljava/lang/String;)Ljava/lang/String;
.locals 8
const/4 v0, 0x2
const/4 v1, 0x0
const-string v2, "TLS_"
invoke-static {p1, v2, v1, v0}, Lt/a0/n;->startsWith$default(Ljava/lang/String;Ljava/lang/String;ZI)Z
move-result v3
const-string v4, "null cannot be cast to non-null type java.lang.String"
const-string v5, "(this as java.lang.String).substring(startIndex)"
const/4 v6, 0x4
const-string v7, "SSL_"
if-eqz v3, :cond_1
invoke-static {v7}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
if-eqz p1, :cond_0
invoke-virtual {p1, v6}, Ljava/lang/String;->substring(I)Ljava/lang/String;
move-result-object p1
invoke-static {p1, v5}, Lt/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
goto :goto_0
:cond_0
new-instance p1, Lt/l;
invoke-direct {p1, v4}, Lt/l;-><init>(Ljava/lang/String;)V
throw p1
:cond_1
invoke-static {p1, v7, v1, v0}, Lt/a0/n;->startsWith$default(Ljava/lang/String;Ljava/lang/String;ZI)Z
move-result v0
if-eqz v0, :cond_3
invoke-static {v2}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
if-eqz p1, :cond_2
invoke-virtual {p1, v6}, Ljava/lang/String;->substring(I)Ljava/lang/String;
move-result-object p1
invoke-static {p1, v5}, Lt/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
goto :goto_0
:cond_2
new-instance p1, Lt/l;
invoke-direct {p1, v4}, Lt/l;-><init>(Ljava/lang/String;)V
throw p1
:cond_3
:goto_0
return-object p1
.end method