apkfuckery/com.discord/smali_classes2/o0/o$a.smali
2020-09-09 19:21:20 +00:00

641 lines
12 KiB
Smali

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