apkfuckery/com.discord/smali_classes2/o0/n$a.smali
2020-09-08 08:16:32 +00:00

676 lines
13 KiB
Smali

.class public final Lo0/n$a;
.super Ljava/lang/Object;
.source "Cookie.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lo0/n;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "a"
.end annotation
# direct methods
.method public 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/lang/String;IIZ)I
.locals 4
:goto_0
if-ge p2, p3, :cond_7
invoke-virtual {p1, p2}, Ljava/lang/String;->charAt(I)C
move-result v0
const/16 v1, 0x20
const/4 v2, 0x1
if-ge v0, v1, :cond_0
const/16 v1, 0x9
if-ne v0, v1, :cond_5
:cond_0
const/16 v1, 0x7f
if-ge v0, v1, :cond_5
const/16 v1, 0x39
const/16 v3, 0x30
if-gt v3, v0, :cond_1
if-ge v1, v0, :cond_5
:cond_1
const/16 v1, 0x7a
const/16 v3, 0x61
if-gt v3, v0, :cond_2
if-ge v1, v0, :cond_5
:cond_2
const/16 v1, 0x5a
const/16 v3, 0x41
if-gt v3, v0, :cond_3
if-ge v1, v0, :cond_5
:cond_3
const/16 v1, 0x3a
if-ne v0, v1, :cond_4
goto :goto_1
:cond_4
const/4 v0, 0x0
goto :goto_2
:cond_5
:goto_1
const/4 v0, 0x1
:goto_2
xor-int/lit8 v1, p4, 0x1
if-ne v0, v1, :cond_6
return p2
:cond_6
add-int/lit8 p2, p2, 0x1
goto :goto_0
:cond_7
return p3
.end method
.method public final b(Ljava/lang/String;Ljava/lang/String;)Z
.locals 3
invoke-static {p1, p2}, Lk0/n/c/h;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
const/4 v1, 0x1
if-eqz v0, :cond_0
return v1
:cond_0
const/4 v0, 0x2
const/4 v2, 0x0
invoke-static {p1, p2, v2, v0}, Lk0/t/k;->endsWith$default(Ljava/lang/String;Ljava/lang/String;ZI)Z
move-result v0
if-eqz v0, :cond_1
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v0
invoke-virtual {p2}, Ljava/lang/String;->length()I
move-result p2
sub-int/2addr v0, p2
sub-int/2addr v0, v1
invoke-virtual {p1, v0}, Ljava/lang/String;->charAt(I)C
move-result p2
const/16 v0, 0x2e
if-ne p2, v0, :cond_1
invoke-static {p1}, Lo0/g0/b;->b(Ljava/lang/String;)Z
move-result p1
if-nez p1, :cond_1
goto :goto_0
:cond_1
const/4 v1, 0x0
:goto_0
return v1
.end method
.method public final c(Ljava/lang/String;)Ljava/lang/String;
.locals 4
const-string v0, "."
const/4 v1, 0x0
const/4 v2, 0x2
invoke-static {p1, v0, v1, v2}, Lk0/t/k;->endsWith$default(Ljava/lang/String;Ljava/lang/String;ZI)Z
move-result v3
xor-int/lit8 v3, v3, 0x1
if-eqz v3, :cond_2
invoke-static {p1, v0, v1, v2}, Lk0/t/k;->startsWith$default(Ljava/lang/String;Ljava/lang/String;ZI)Z
move-result v1
if-eqz v1, :cond_0
invoke-virtual {v0}, Ljava/lang/String;->length()I
move-result v0
invoke-virtual {p1, v0}, Ljava/lang/String;->substring(I)Ljava/lang/String;
move-result-object p1
const-string v0, "(this as java.lang.String).substring(startIndex)"
invoke-static {p1, v0}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
:cond_0
invoke-static {p1}, Lf/n/a/k/a;->i0(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
if-eqz p1, :cond_1
return-object p1
:cond_1
new-instance p1, Ljava/lang/IllegalArgumentException;
invoke-direct {p1}, Ljava/lang/IllegalArgumentException;-><init>()V
throw p1
:cond_2
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "Failed requirement."
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public final d(Ljava/lang/String;II)J
.locals 12
const/4 v0, 0x0
invoke-virtual {p0, p1, p2, p3, v0}, Lo0/n$a;->a(Ljava/lang/String;IIZ)I
move-result p2
sget-object v1, Lo0/n;->m:Ljava/util/regex/Pattern;
invoke-virtual {v1, p1}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
move-result-object v1
const/4 v2, -0x1
const/4 v3, -0x1
const/4 v4, -0x1
const/4 v5, -0x1
const/4 v6, -0x1
const/4 v7, -0x1
const/4 v8, -0x1
:goto_0
const/4 v9, 0x2
const/4 v10, 0x1
if-ge p2, p3, :cond_4
add-int/lit8 v11, p2, 0x1
invoke-virtual {p0, p1, v11, p3, v10}, Lo0/n$a;->a(Ljava/lang/String;IIZ)I
move-result v11
invoke-virtual {v1, p2, v11}, Ljava/util/regex/Matcher;->region(II)Ljava/util/regex/Matcher;
if-ne v4, v2, :cond_0
sget-object p2, Lo0/n;->m:Ljava/util/regex/Pattern;
invoke-virtual {v1, p2}, Ljava/util/regex/Matcher;->usePattern(Ljava/util/regex/Pattern;)Ljava/util/regex/Matcher;
move-result-object p2
invoke-virtual {p2}, Ljava/util/regex/Matcher;->matches()Z
move-result p2
if-eqz p2, :cond_0
invoke-virtual {v1, v10}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
move-result-object p2
invoke-static {p2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
move-result v4
invoke-virtual {v1, v9}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
move-result-object p2
invoke-static {p2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
move-result v7
const/4 p2, 0x3
invoke-virtual {v1, p2}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
move-result-object p2
invoke-static {p2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
move-result v8
goto :goto_1
:cond_0
if-ne v5, v2, :cond_1
sget-object p2, Lo0/n;->l:Ljava/util/regex/Pattern;
invoke-virtual {v1, p2}, Ljava/util/regex/Matcher;->usePattern(Ljava/util/regex/Pattern;)Ljava/util/regex/Matcher;
move-result-object p2
invoke-virtual {p2}, Ljava/util/regex/Matcher;->matches()Z
move-result p2
if-eqz p2, :cond_1
invoke-virtual {v1, v10}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
move-result-object p2
invoke-static {p2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
move-result v5
goto :goto_1
:cond_1
if-ne v6, v2, :cond_2
sget-object p2, Lo0/n;->k:Ljava/util/regex/Pattern;
invoke-virtual {v1, p2}, Ljava/util/regex/Matcher;->usePattern(Ljava/util/regex/Pattern;)Ljava/util/regex/Matcher;
move-result-object p2
invoke-virtual {p2}, Ljava/util/regex/Matcher;->matches()Z
move-result p2
if-eqz p2, :cond_2
invoke-virtual {v1, v10}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
move-result-object p2
const-string v6, "matcher.group(1)"
invoke-static {p2, v6}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
sget-object v6, Ljava/util/Locale;->US:Ljava/util/Locale;
const-string v9, "Locale.US"
invoke-static {v6, v9}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p2, v6}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;
move-result-object p2
const-string v6, "(this as java.lang.String).toLowerCase(locale)"
invoke-static {p2, v6}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
sget-object v6, Lo0/n;->k:Ljava/util/regex/Pattern;
invoke-virtual {v6}, Ljava/util/regex/Pattern;->pattern()Ljava/lang/String;
move-result-object v6
const-string v9, "MONTH_PATTERN.pattern()"
invoke-static {v6, v9}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v9, 0x6
invoke-static {v6, p2, v0, v0, v9}, Lk0/t/p;->indexOf$default(Ljava/lang/CharSequence;Ljava/lang/String;IZI)I
move-result p2
div-int/lit8 v6, p2, 0x4
goto :goto_1
:cond_2
if-ne v3, v2, :cond_3
sget-object p2, Lo0/n;->j:Ljava/util/regex/Pattern;
invoke-virtual {v1, p2}, Ljava/util/regex/Matcher;->usePattern(Ljava/util/regex/Pattern;)Ljava/util/regex/Matcher;
move-result-object p2
invoke-virtual {p2}, Ljava/util/regex/Matcher;->matches()Z
move-result p2
if-eqz p2, :cond_3
invoke-virtual {v1, v10}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
move-result-object p2
invoke-static {p2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
move-result v3
:cond_3
:goto_1
add-int/lit8 v11, v11, 0x1
invoke-virtual {p0, p1, v11, p3, v0}, Lo0/n$a;->a(Ljava/lang/String;IIZ)I
move-result p2
goto/16 :goto_0
:cond_4
const/16 p1, 0x63
const/16 p2, 0x46
if-le p2, v3, :cond_5
goto :goto_2
:cond_5
if-lt p1, v3, :cond_6
add-int/lit16 v3, v3, 0x76c
:cond_6
:goto_2
const/16 p1, 0x45
if-gez v3, :cond_7
goto :goto_3
:cond_7
if-lt p1, v3, :cond_8
add-int/lit16 v3, v3, 0x7d0
:cond_8
:goto_3
const/16 p1, 0x641
if-lt v3, p1, :cond_9
const/4 p1, 0x1
goto :goto_4
:cond_9
const/4 p1, 0x0
:goto_4
const-string p2, "Failed requirement."
if-eqz p1, :cond_18
if-eq v6, v2, :cond_a
const/4 p1, 0x1
goto :goto_5
:cond_a
const/4 p1, 0x0
:goto_5
if-eqz p1, :cond_17
const/16 p1, 0x1f
if-le v10, v5, :cond_b
goto :goto_6
:cond_b
if-lt p1, v5, :cond_c
const/4 p1, 0x1
goto :goto_7
:cond_c
:goto_6
const/4 p1, 0x0
:goto_7
if-eqz p1, :cond_16
const/16 p1, 0x17
if-gez v4, :cond_d
goto :goto_8
:cond_d
if-lt p1, v4, :cond_e
const/4 p1, 0x1
goto :goto_9
:cond_e
:goto_8
const/4 p1, 0x0
:goto_9
if-eqz p1, :cond_15
const/16 p1, 0x3b
if-gez v7, :cond_f
goto :goto_a
:cond_f
if-lt p1, v7, :cond_10
const/4 p3, 0x1
goto :goto_b
:cond_10
:goto_a
const/4 p3, 0x0
:goto_b
if-eqz p3, :cond_14
if-gez v8, :cond_11
goto :goto_c
:cond_11
if-lt p1, v8, :cond_12
const/4 p1, 0x1
goto :goto_d
:cond_12
:goto_c
const/4 p1, 0x0
:goto_d
if-eqz p1, :cond_13
new-instance p1, Ljava/util/GregorianCalendar;
sget-object p2, Lo0/g0/b;->e:Ljava/util/TimeZone;
invoke-direct {p1, p2}, Ljava/util/GregorianCalendar;-><init>(Ljava/util/TimeZone;)V
invoke-virtual {p1, v0}, Ljava/util/GregorianCalendar;->setLenient(Z)V
invoke-virtual {p1, v10, v3}, Ljava/util/GregorianCalendar;->set(II)V
sub-int/2addr v6, v10
invoke-virtual {p1, v9, v6}, Ljava/util/GregorianCalendar;->set(II)V
const/4 p2, 0x5
invoke-virtual {p1, p2, v5}, Ljava/util/GregorianCalendar;->set(II)V
const/16 p2, 0xb
invoke-virtual {p1, p2, v4}, Ljava/util/GregorianCalendar;->set(II)V
const/16 p2, 0xc
invoke-virtual {p1, p2, v7}, Ljava/util/GregorianCalendar;->set(II)V
const/16 p2, 0xd
invoke-virtual {p1, p2, v8}, Ljava/util/GregorianCalendar;->set(II)V
const/16 p2, 0xe
invoke-virtual {p1, p2, v0}, Ljava/util/GregorianCalendar;->set(II)V
invoke-virtual {p1}, Ljava/util/GregorianCalendar;->getTimeInMillis()J
move-result-wide p1
return-wide p1
:cond_13
new-instance p1, Ljava/lang/IllegalArgumentException;
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_14
new-instance p1, Ljava/lang/IllegalArgumentException;
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_15
new-instance p1, Ljava/lang/IllegalArgumentException;
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_16
new-instance p1, Ljava/lang/IllegalArgumentException;
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_17
new-instance p1, Ljava/lang/IllegalArgumentException;
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_18
new-instance p1, Ljava/lang/IllegalArgumentException;
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method