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

263 lines
4.9 KiB
Smali
Raw Normal View History

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