apkfuckery/com.discord/smali_classes2/o0/k$b.smali

175 lines
4 KiB
Smali
Raw Normal View History

2020-09-18 16:51:32 +00:00
.class public final Lo0/k$b;
2020-05-17 12:40:10 +00:00
.super Ljava/lang/Object;
.source "CipherSuite.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
2020-09-18 16:51:32 +00:00
value = Lo0/k;
2020-05-17 12:40:10 +00:00
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "b"
.end annotation
# direct methods
2020-07-08 16:44:49 +00:00
.method public constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
2020-05-17 12:40:10 +00:00
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
2020-09-18 16:51:32 +00:00
.method public static final a(Lo0/k$b;Ljava/lang/String;I)Lo0/k;
2020-07-08 16:44:49 +00:00
.locals 0
const/4 p2, 0x0
if-eqz p0, :cond_0
2020-09-18 16:51:32 +00:00
new-instance p0, Lo0/k;
2020-07-08 16:44:49 +00:00
2020-09-18 16:51:32 +00:00
invoke-direct {p0, p1, p2}, Lo0/k;-><init>(Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
2020-07-08 16:44:49 +00:00
2020-09-18 16:51:32 +00:00
sget-object p2, Lo0/k;->c:Ljava/util/Map;
2020-07-08 16:44:49 +00:00
invoke-interface {p2, p1, p0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return-object p0
:cond_0
throw p2
.end method
2020-05-17 12:40:10 +00:00
# virtual methods
2020-09-18 16:51:32 +00:00
.method public final declared-synchronized b(Ljava/lang/String;)Lo0/k;
2020-09-16 23:45:23 +00:00
.locals 2
2020-05-17 12:40:10 +00:00
monitor-enter p0
:try_start_0
const-string v0, "javaName"
2020-09-18 16:51:32 +00:00
invoke-static {p1, v0}, Lk0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-09-18 16:51:32 +00:00
sget-object v0, Lo0/k;->c:Ljava/util/Map;
2020-05-17 12:40:10 +00:00
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
2020-09-18 16:51:32 +00:00
check-cast v0, Lo0/k;
2020-05-17 12:40:10 +00:00
if-nez v0, :cond_1
2020-09-18 16:51:32 +00:00
sget-object v0, Lo0/k;->c:Ljava/util/Map;
2020-05-17 12:40:10 +00:00
2020-09-18 16:51:32 +00:00
invoke-virtual {p0, p1}, Lo0/k$b;->c(Ljava/lang/String;)Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-09-16 23:45:23 +00:00
move-result-object v1
2020-05-17 12:40:10 +00:00
2020-09-16 23:45:23 +00:00
invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
move-result-object v0
2020-09-18 16:51:32 +00:00
check-cast v0, Lo0/k;
2020-05-17 12:40:10 +00:00
if-nez v0, :cond_0
2020-09-18 16:51:32 +00:00
new-instance v0, Lo0/k;
2020-09-16 23:45:23 +00:00
const/4 v1, 0x0
2020-09-02 04:07:20 +00:00
2020-09-18 16:51:32 +00:00
invoke-direct {v0, p1, v1}, Lo0/k;-><init>(Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
2020-05-17 12:40:10 +00:00
:cond_0
2020-09-18 16:51:32 +00:00
sget-object v1, Lo0/k;->c:Ljava/util/Map;
2020-05-17 12:40:10 +00:00
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
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public final c(Ljava/lang/String;)Ljava/lang/String;
.locals 7
2020-07-08 16:44:49 +00:00
const-string v0, "TLS_"
2020-05-17 12:40:10 +00:00
const/4 v1, 0x0
2020-07-08 16:44:49 +00:00
const/4 v2, 0x2
2020-05-17 12:40:10 +00:00
2020-09-18 16:51:32 +00:00
invoke-static {p1, v0, v1, v2}, Lk0/t/k;->startsWith$default(Ljava/lang/String;Ljava/lang/String;ZI)Z
2020-05-17 12:40:10 +00:00
move-result v3
const-string v4, "(this as java.lang.String).substring(startIndex)"
const/4 v5, 0x4
const-string v6, "SSL_"
if-eqz v3, :cond_0
2020-09-16 23:45:23 +00:00
invoke-static {v6}, Lf/e/b/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-05-17 12:40:10 +00:00
move-result-object v0
invoke-virtual {p1, v5}, Ljava/lang/String;->substring(I)Ljava/lang/String;
move-result-object p1
2020-09-18 16:51:32 +00:00
invoke-static {p1, v4}, Lk0/n/c/i;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
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
2020-09-18 16:51:32 +00:00
invoke-static {p1, v6, v1, v2}, Lk0/t/k;->startsWith$default(Ljava/lang/String;Ljava/lang/String;ZI)Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result v1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v1, :cond_1
2020-05-17 12:40:10 +00:00
2020-09-16 23:45:23 +00:00
invoke-static {v0}, Lf/e/b/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-05-17 12:40:10 +00:00
move-result-object v0
invoke-virtual {p1, v5}, Ljava/lang/String;->substring(I)Ljava/lang/String;
move-result-object p1
2020-09-18 16:51:32 +00:00
invoke-static {p1, v4}, Lk0/n/c/i;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
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
:cond_1
:goto_0
return-object p1
.end method