apkfuckery/com.discord/smali_classes2/q/p.smali

103 lines
2.2 KiB
Smali
Raw Normal View History

2019-12-12 08:58:10 +00:00
.class public final Lq/p;
2019-07-24 11:27:29 +00:00
.super Ljava/lang/Object;
2019-11-28 00:30:53 +00:00
.source "Dns.kt"
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
# interfaces
2019-12-12 08:58:10 +00:00
.implements Lq/q;
2019-07-24 11:27:29 +00:00
# direct methods
2019-12-06 03:29:40 +00:00
.method public constructor <init>()V
2019-07-24 11:27:29 +00:00
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
2019-11-28 00:30:53 +00:00
# virtual methods
2019-12-06 03:29:40 +00:00
.method public a(Ljava/lang/String;)Ljava/util/List;
2019-11-28 00:30:53 +00:00
.locals 3
.annotation system Ldalvik/annotation/Signature;
2019-07-24 11:27:29 +00:00
value = {
2019-11-28 00:30:53 +00:00
"(",
"Ljava/lang/String;",
")",
"Ljava/util/List<",
"Ljava/net/InetAddress;",
">;"
2019-07-24 11:27:29 +00:00
}
.end annotation
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_2
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
:try_start_0
invoke-static {p1}, Ljava/net/InetAddress;->getAllByName(Ljava/lang/String;)[Ljava/net/InetAddress;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-11-28 00:30:53 +00:00
const-string v1, "InetAddress.getAllByName(hostname)"
2019-07-24 11:27:29 +00:00
2019-12-12 08:58:10 +00:00
invoke-static {v0, v1}, Lm/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
array-length v1, v0
if-eqz v1, :cond_1
const/4 v2, 0x1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-eq v1, v2, :cond_0
invoke-static {v0}, Le/k/a/b/e/p/g;->toMutableList([Ljava/lang/Object;)Ljava/util/List;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result-object p1
2019-12-06 03:29:40 +00:00
goto :goto_0
:cond_0
const/4 v1, 0x0
aget-object v0, v0, v1
invoke-static {v0}, Le/k/a/b/e/p/g;->listOf(Ljava/lang/Object;)Ljava/util/List;
move-result-object p1
goto :goto_0
:cond_1
2019-12-12 08:58:10 +00:00
sget-object p1, Lm/q/o;->d:Lm/q/o;
2019-07-24 11:27:29 +00:00
:try_end_0
2019-11-28 00:30:53 +00:00
.catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
:goto_0
2019-11-28 00:30:53 +00:00
return-object p1
2019-07-24 11:27:29 +00:00
:catch_0
2019-11-28 00:30:53 +00:00
move-exception v0
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
new-instance v1, Ljava/net/UnknownHostException;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const-string v2, "Broken system behaviour for dns lookup of "
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-static {v2, p1}, Le/e/b/a/a;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result-object p1
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-direct {v1, p1}, Ljava/net/UnknownHostException;-><init>(Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v1, v0}, Ljava/net/UnknownHostException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
throw v1
2019-12-06 03:29:40 +00:00
:cond_2
const-string p1, "hostname"
2019-12-12 08:58:10 +00:00
invoke-static {p1}, Lm/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
throw p1
2019-07-24 11:27:29 +00:00
.end method