apkfuckery/com.discord/smali_classes2/a0/g$b.smali

263 lines
4.9 KiB
Smali
Raw Normal View History

2019-12-21 01:41:59 +00:00
.class public final La0/g$b;
2019-07-24 11:27:29 +00:00
.super Ljava/lang/Object;
2020-02-20 19:33:18 +00:00
.source "CertificatePinner.kt"
2019-07-24 11:27:29 +00:00
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
2019-12-21 01:41:59 +00:00
value = La0/g;
2019-07-24 11:27:29 +00:00
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
2019-12-06 03:29:40 +00:00
accessFlags = 0x19
name = "b"
2019-07-24 11:27:29 +00:00
.end annotation
# instance fields
2020-02-20 19:33:18 +00:00
.field public final a:Ljava/lang/String;
2019-08-14 23:59:34 +00:00
2020-02-20 19:33:18 +00:00
.field public final b:Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
.field public final c:Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
.field public final d:Lokio/ByteString;
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
# virtual methods
.method public final a(Ljava/lang/String;)Z
.locals 5
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
const-string v0, "hostname"
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {p1, v0}, Lw/u/b/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
iget-object v0, p0, La0/g$b;->a:Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
const/4 v1, 0x0
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
const-string v2, "*."
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
const/4 v3, 0x2
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {v0, v2, v1, v3}, Lw/a0/n;->startsWith$default(Ljava/lang/String;Ljava/lang/String;ZI)Z
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
move-result v0
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
if-eqz v0, :cond_1
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
const/16 v0, 0x2e
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
const/4 v2, 0x6
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {p1, v0, v1, v1, v2}, Lw/a0/s;->indexOf$default(Ljava/lang/CharSequence;CIZI)I
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
move-result v0
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {p1}, Ljava/lang/String;->length()I
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
move-result v2
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
sub-int/2addr v2, v0
2019-12-18 09:41:56 +00:00
2020-02-20 19:33:18 +00:00
const/4 v3, 0x1
2019-12-18 09:41:56 +00:00
2020-02-20 19:33:18 +00:00
sub-int/2addr v2, v3
2019-12-20 07:00:35 +00:00
2020-02-20 19:33:18 +00:00
iget-object v4, p0, La0/g$b;->b:Ljava/lang/String;
2019-12-20 07:00:35 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {v4}, Ljava/lang/String;->length()I
2019-12-20 07:00:35 +00:00
2020-02-20 19:33:18 +00:00
move-result v4
2019-12-20 07:00:35 +00:00
2020-02-20 19:33:18 +00:00
if-ne v2, v4, :cond_0
2019-12-21 01:41:59 +00:00
2020-02-20 19:33:18 +00:00
iget-object v2, p0, La0/g$b;->b:Ljava/lang/String;
2019-12-21 01:41:59 +00:00
2020-02-20 19:33:18 +00:00
add-int/2addr v0, v3
2019-12-21 01:41:59 +00:00
2020-02-20 19:33:18 +00:00
const/4 v4, 0x4
2019-12-21 01:41:59 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {p1, v2, v0, v1, v4}, Lw/a0/n;->startsWith$default(Ljava/lang/String;Ljava/lang/String;IZI)Z
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
move-result p1
if-eqz p1, :cond_0
const/4 v1, 0x1
:cond_0
return v1
:cond_1
iget-object v0, p0, La0/g$b;->b:Ljava/lang/String;
invoke-static {p1, v0}, Lw/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p1
return p1
2019-07-24 11:27:29 +00:00
.end method
2020-02-20 19:33:18 +00:00
.method public equals(Ljava/lang/Object;)Z
.locals 2
if-eq p0, p1, :cond_1
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
instance-of v0, p1, La0/g$b;
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
if-eqz v0, :cond_0
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
check-cast p1, La0/g$b;
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
iget-object v0, p0, La0/g$b;->a:Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
iget-object v1, p1, La0/g$b;->a:Ljava/lang/String;
invoke-static {v0, v1}, Lw/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, La0/g$b;->b:Ljava/lang/String;
iget-object v1, p1, La0/g$b;->b:Ljava/lang/String;
invoke-static {v0, v1}, Lw/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, La0/g$b;->c:Ljava/lang/String;
iget-object v1, p1, La0/g$b;->c:Ljava/lang/String;
invoke-static {v0, v1}, Lw/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, La0/g$b;->d:Lokio/ByteString;
iget-object p1, p1, La0/g$b;->d:Lokio/ByteString;
invoke-static {v0, p1}, Lw/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_0
goto :goto_0
:cond_0
const/4 p1, 0x0
return p1
:cond_1
:goto_0
const/4 p1, 0x1
return p1
2019-07-24 11:27:29 +00:00
.end method
2020-02-20 19:33:18 +00:00
.method public hashCode()I
.locals 3
iget-object v0, p0, La0/g$b;->a:Ljava/lang/String;
const/4 v1, 0x0
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
if-eqz v0, :cond_0
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I
2019-07-24 11:27:29 +00:00
move-result v0
2020-02-20 19:33:18 +00:00
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
mul-int/lit8 v0, v0, 0x1f
iget-object v2, p0, La0/g$b;->b:Ljava/lang/String;
if-eqz v2, :cond_1
invoke-virtual {v2}, Ljava/lang/Object;->hashCode()I
move-result v2
goto :goto_1
:cond_1
const/4 v2, 0x0
:goto_1
add-int/2addr v0, v2
mul-int/lit8 v0, v0, 0x1f
iget-object v2, p0, La0/g$b;->c:Ljava/lang/String;
if-eqz v2, :cond_2
invoke-virtual {v2}, Ljava/lang/Object;->hashCode()I
move-result v2
goto :goto_2
:cond_2
const/4 v2, 0x0
:goto_2
add-int/2addr v0, v2
mul-int/lit8 v0, v0, 0x1f
iget-object v2, p0, La0/g$b;->d:Lokio/ByteString;
if-eqz v2, :cond_3
invoke-virtual {v2}, Lokio/ByteString;->hashCode()I
move-result v1
:cond_3
add-int/2addr v0, v1
2019-07-24 11:27:29 +00:00
return v0
.end method
2020-02-20 19:33:18 +00:00
.method public toString()Ljava/lang/String;
.locals 2
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
iget-object v1, p0, La0/g$b;->c:Ljava/lang/String;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, La0/g$b;->d:Lokio/ByteString;
invoke-virtual {v1}, Lokio/ByteString;->a()Ljava/lang/String;
move-result-object 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