apkfuckery/com.discord/smali_classes2/a0/l$a.smali

1349 lines
25 KiB
Smali
Raw Normal View History

2020-03-26 23:31:08 +00:00
.class public final La0/l$a;
2020-02-20 19:33:18 +00:00
.super Ljava/lang/Object;
.source "Cookie.kt"
2019-07-24 11:27:29 +00:00
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
2020-03-26 23:31:08 +00:00
value = La0/l;
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
2019-07-24 11:27:29 +00:00
name = "a"
.end annotation
# direct methods
2020-02-20 19:33:18 +00:00
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
2019-07-24 11:27:29 +00:00
.locals 0
2020-02-20 19:33:18 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2019-07-24 11:27:29 +00:00
return-void
.end method
# virtual methods
2020-02-20 19:33:18 +00:00
.method public final a(Ljava/lang/String;IIZ)I
.locals 4
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
:goto_0
if-ge p2, p3, :cond_7
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {p1, p2}, Ljava/lang/String;->charAt(I)C
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
move-result v0
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
const/16 v1, 0x20
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
const/4 v2, 0x1
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
if-ge v0, v1, :cond_0
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
const/16 v1, 0x9
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
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 a(Ljava/lang/String;II)J
.locals 12
const/4 v0, 0x0
2020-03-26 23:31:08 +00:00
invoke-virtual {p0, p1, p2, p3, v0}, La0/l$a;->a(Ljava/lang/String;IIZ)I
2020-02-20 19:33:18 +00:00
move-result p2
2020-03-26 23:31:08 +00:00
sget-object v1, La0/l;->m:Ljava/util/regex/Pattern;
2020-02-20 19:33:18 +00:00
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
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
const/4 v4, -0x1
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
const/4 v5, -0x1
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
const/4 v6, -0x1
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
const/4 v7, -0x1
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
const/4 v8, -0x1
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
:goto_0
const/4 v9, 0x2
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
const/4 v10, 0x1
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
if-ge p2, p3, :cond_4
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
add-int/lit8 v11, p2, 0x1
2020-03-26 23:31:08 +00:00
invoke-virtual {p0, p1, v11, p3, v10}, La0/l$a;->a(Ljava/lang/String;IIZ)I
2020-02-20 19:33:18 +00:00
move-result v11
invoke-virtual {v1, p2, v11}, Ljava/util/regex/Matcher;->region(II)Ljava/util/regex/Matcher;
if-ne v4, v2, :cond_0
2020-03-26 23:31:08 +00:00
sget-object p2, La0/l;->m:Ljava/util/regex/Pattern;
2020-02-20 19:33:18 +00:00
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;
2019-07-24 11:27:29 +00:00
move-result-object p2
2020-02-20 19:33:18 +00:00
invoke-static {p2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
move-result p2
invoke-virtual {v1, v9}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
move-result-object v4
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {v4}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
move-result v4
const/4 v7, 0x3
invoke-virtual {v1, v7}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
move-result-object v7
invoke-static {v7}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
move-result v7
move v8, v7
move v7, v4
move v4, p2
goto :goto_1
2019-07-24 11:27:29 +00:00
:cond_0
2020-02-20 19:33:18 +00:00
if-ne v5, v2, :cond_1
2020-03-26 23:31:08 +00:00
sget-object p2, La0/l;->l:Ljava/util/regex/Pattern;
2020-02-20 19:33:18 +00:00
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 p2
move v5, p2
goto :goto_1
:cond_1
if-ne v6, v2, :cond_2
2020-03-26 23:31:08 +00:00
sget-object p2, La0/l;->k:Ljava/util/regex/Pattern;
2020-02-20 19:33:18 +00:00
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)"
2020-03-26 23:31:08 +00:00
invoke-static {p2, v6}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-02-20 19:33:18 +00:00
sget-object v6, Ljava/util/Locale;->US:Ljava/util/Locale;
const-string v9, "Locale.US"
2020-03-26 23:31:08 +00:00
invoke-static {v6, v9}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-02-20 19:33:18 +00:00
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)"
2020-03-26 23:31:08 +00:00
invoke-static {p2, v6}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-02-20 19:33:18 +00:00
2020-03-26 23:31:08 +00:00
sget-object v6, La0/l;->k:Ljava/util/regex/Pattern;
2020-02-20 19:33:18 +00:00
invoke-virtual {v6}, Ljava/util/regex/Pattern;->pattern()Ljava/lang/String;
move-result-object v6
const-string v9, "MONTH_PATTERN.pattern()"
2020-03-26 23:31:08 +00:00
invoke-static {v6, v9}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-02-20 19:33:18 +00:00
const/4 v9, 0x6
2020-03-26 23:31:08 +00:00
invoke-static {v6, p2, v0, v0, v9}, Lw/a0/u;->indexOf$default(Ljava/lang/CharSequence;Ljava/lang/String;IZI)I
2020-02-20 19:33:18 +00:00
move-result p2
div-int/lit8 p2, p2, 0x4
move v6, p2
goto :goto_1
:cond_2
if-ne v3, v2, :cond_3
2020-03-26 23:31:08 +00:00
sget-object p2, La0/l;->j:Ljava/util/regex/Pattern;
2020-02-20 19:33:18 +00:00
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 p2
move v3, p2
:cond_3
:goto_1
add-int/lit8 v11, v11, 0x1
2020-03-26 23:31:08 +00:00
invoke-virtual {p0, p1, v11, p3, v0}, La0/l$a;->a(Ljava/lang/String;IIZ)I
2020-02-20 19:33:18 +00:00
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;
2020-03-26 23:31:08 +00:00
sget-object p2, La0/c0/a;->e:Ljava/util/TimeZone;
2020-02-20 19:33:18 +00:00
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
2019-07-24 11:27:29 +00:00
new-instance p1, Ljava/lang/IllegalArgumentException;
2020-02-20 19:33:18 +00:00
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p2
2019-07-24 11:27:29 +00:00
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
2020-02-20 19:33:18 +00:00
: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
.method public final a(Ljava/lang/String;)Ljava/lang/String;
.locals 4
const/4 v0, 0x2
const/4 v1, 0x0
const-string v2, "."
2020-03-26 23:31:08 +00:00
invoke-static {p1, v2, v1, v0}, Lw/a0/p;->endsWith$default(Ljava/lang/String;Ljava/lang/String;ZI)Z
2020-02-20 19:33:18 +00:00
move-result v3
xor-int/lit8 v3, v3, 0x1
if-eqz v3, :cond_2
2020-03-26 23:31:08 +00:00
invoke-static {p1, v2, v1, v0}, Lw/a0/p;->startsWith$default(Ljava/lang/String;Ljava/lang/String;ZI)Z
2020-02-20 19:33:18 +00:00
move-result v0
if-eqz v0, :cond_0
invoke-interface {v2}, Ljava/lang/CharSequence;->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)"
2020-03-26 23:31:08 +00:00
invoke-static {p1, v0}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-02-20 19:33:18 +00:00
:cond_0
2020-03-26 23:31:08 +00:00
invoke-static {p1}, Lx/a/a2/w;->a(Ljava/lang/String;)Ljava/lang/String;
2020-02-20 19:33:18 +00:00
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
2020-03-26 23:31:08 +00:00
.method public final a(La0/u;Lokhttp3/Headers;)Ljava/util/List;
2020-02-20 19:33:18 +00:00
.locals 36
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
2020-03-26 23:31:08 +00:00
"La0/u;",
2020-02-20 19:33:18 +00:00
"Lokhttp3/Headers;",
")",
"Ljava/util/List<",
2020-03-26 23:31:08 +00:00
"La0/l;",
2020-02-20 19:33:18 +00:00
">;"
}
.end annotation
move-object/from16 v1, p0
move-object/from16 v2, p1
move-object/from16 v0, p2
if-eqz v2, :cond_21
if-eqz v0, :cond_20
const-string v4, "Set-Cookie"
invoke-virtual {v0, v4}, Lokhttp3/Headers;->b(Ljava/lang/String;)Ljava/util/List;
move-result-object v4
invoke-interface {v4}, Ljava/util/List;->size()I
move-result v5
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x0
:goto_0
if-ge v7, v5, :cond_1e
invoke-interface {v4, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
move-object v9, v0
check-cast v9, Ljava/lang/String;
if-eqz v9, :cond_1d
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v10
const/4 v12, 0x6
const/16 v13, 0x3b
2020-03-26 23:31:08 +00:00
invoke-static {v9, v13, v6, v6, v12}, La0/c0/a;->a(Ljava/lang/String;CIII)I
2020-02-20 19:33:18 +00:00
move-result v0
const/16 v14, 0x3d
const/4 v15, 0x2
2020-03-26 23:31:08 +00:00
invoke-static {v9, v14, v6, v0, v15}, La0/c0/a;->a(Ljava/lang/String;CIII)I
2020-02-20 19:33:18 +00:00
move-result v3
if-ne v3, v0, :cond_1
:cond_0
:goto_1
const/4 v9, 0x0
goto/16 :goto_c
:cond_1
2020-03-26 23:31:08 +00:00
invoke-static {v9, v6, v3}, La0/c0/a;->c(Ljava/lang/String;II)Ljava/lang/String;
2020-02-20 19:33:18 +00:00
move-result-object v17
invoke-interface/range {v17 .. v17}, Ljava/lang/CharSequence;->length()I
move-result v16
if-nez v16, :cond_2
const/16 v16, 0x1
goto :goto_2
:cond_2
const/16 v16, 0x0
:goto_2
if-nez v16, :cond_0
2020-03-26 23:31:08 +00:00
invoke-static/range {v17 .. v17}, La0/c0/a;->b(Ljava/lang/String;)I
2020-02-20 19:33:18 +00:00
move-result v15
const/4 v6, -0x1
if-eq v15, v6, :cond_3
goto :goto_1
:cond_3
add-int/lit8 v3, v3, 0x1
2020-03-26 23:31:08 +00:00
invoke-static {v9, v3, v0}, La0/c0/a;->c(Ljava/lang/String;II)Ljava/lang/String;
2020-02-20 19:33:18 +00:00
move-result-object v18
2020-03-26 23:31:08 +00:00
invoke-static/range {v18 .. v18}, La0/c0/a;->b(Ljava/lang/String;)I
2020-02-20 19:33:18 +00:00
move-result v3
if-eq v3, v6, :cond_4
goto :goto_1
:cond_4
add-int/lit8 v0, v0, 0x1
invoke-virtual {v9}, Ljava/lang/String;->length()I
move-result v3
const-wide v19, 0xe677d21fdbffL
const-wide/16 v21, -0x1
move-wide/from16 v25, v19
move-wide/from16 v23, v21
const/4 v6, 0x0
const/4 v15, 0x0
const/16 v27, 0x0
const/16 v28, 0x0
const/16 v29, 0x0
const/16 v30, 0x1
:goto_3
const-wide v31, 0x7fffffffffffffffL
const-wide/high16 v33, -0x8000000000000000L
if-ge v0, v3, :cond_f
2020-03-26 23:31:08 +00:00
invoke-static {v9, v13, v0, v3}, La0/c0/a;->a(Ljava/lang/String;CII)I
2020-02-20 19:33:18 +00:00
move-result v12
2020-03-26 23:31:08 +00:00
invoke-static {v9, v14, v0, v12}, La0/c0/a;->a(Ljava/lang/String;CII)I
2020-02-20 19:33:18 +00:00
move-result v13
2020-03-26 23:31:08 +00:00
invoke-static {v9, v0, v13}, La0/c0/a;->c(Ljava/lang/String;II)Ljava/lang/String;
2020-02-20 19:33:18 +00:00
move-result-object v0
if-ge v13, v12, :cond_5
add-int/lit8 v13, v13, 0x1
2020-03-26 23:31:08 +00:00
invoke-static {v9, v13, v12}, La0/c0/a;->c(Ljava/lang/String;II)Ljava/lang/String;
2020-02-20 19:33:18 +00:00
move-result-object v13
goto :goto_4
:cond_5
const-string v13, ""
:goto_4
const-string v14, "expires"
move/from16 v35, v3
const/4 v3, 0x1
2020-03-26 23:31:08 +00:00
invoke-static {v0, v14, v3}, Lw/a0/p;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
2020-02-20 19:33:18 +00:00
move-result v14
if-eqz v14, :cond_6
:try_start_0
invoke-virtual {v13}, Ljava/lang/String;->length()I
move-result v0
const/4 v14, 0x0
2020-03-26 23:31:08 +00:00
invoke-virtual {v1, v13, v14, v0}, La0/l$a;->a(Ljava/lang/String;II)J
2020-02-20 19:33:18 +00:00
move-result-wide v25
:try_end_0
.catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_1
goto :goto_6
:cond_6
const-string v14, "max-age"
2020-03-26 23:31:08 +00:00
invoke-static {v0, v14, v3}, Lw/a0/p;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
2020-02-20 19:33:18 +00:00
move-result v14
if-eqz v14, :cond_a
:try_start_1
invoke-static {v13}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J
move-result-wide v23
:try_end_1
.catch Ljava/lang/NumberFormatException; {:try_start_1 .. :try_end_1} :catch_0
const-wide/16 v13, 0x0
cmp-long v0, v23, v13
if-gtz v0, :cond_8
goto :goto_5
:catch_0
move-exception v0
move-object v3, v0
:try_start_2
new-instance v0, Lkotlin/text/Regex;
const-string v14, "-?\\d+"
invoke-direct {v0, v14}, Lkotlin/text/Regex;-><init>(Ljava/lang/String;)V
invoke-virtual {v0, v13}, Lkotlin/text/Regex;->matches(Ljava/lang/CharSequence;)Z
move-result v0
if-eqz v0, :cond_9
const-string v0, "-"
const/4 v3, 0x2
const/4 v14, 0x0
2020-03-26 23:31:08 +00:00
invoke-static {v13, v0, v14, v3}, Lw/a0/p;->startsWith$default(Ljava/lang/String;Ljava/lang/String;ZI)Z
2020-02-20 19:33:18 +00:00
move-result v0
if-eqz v0, :cond_7
:goto_5
move-wide/from16 v23, v33
goto :goto_6
:cond_7
move-wide/from16 v23, v31
:cond_8
:goto_6
const/4 v14, 0x1
const/16 v29, 0x1
goto :goto_7
:cond_9
throw v3
:try_end_2
.catch Ljava/lang/NumberFormatException; {:try_start_2 .. :try_end_2} :catch_1
:catch_1
const/4 v14, 0x1
goto :goto_7
:cond_a
const-string v3, "domain"
const/4 v14, 0x1
2020-03-26 23:31:08 +00:00
invoke-static {v0, v3, v14}, Lw/a0/p;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
2020-02-20 19:33:18 +00:00
move-result v3
if-eqz v3, :cond_b
:try_start_3
2020-03-26 23:31:08 +00:00
invoke-virtual {v1, v13}, La0/l$a;->a(Ljava/lang/String;)Ljava/lang/String;
2020-02-20 19:33:18 +00:00
move-result-object v0
:try_end_3
.catch Ljava/lang/IllegalArgumentException; {:try_start_3 .. :try_end_3} :catch_2
move-object v6, v0
const/16 v30, 0x0
goto :goto_7
:cond_b
const-string v3, "path"
2020-03-26 23:31:08 +00:00
invoke-static {v0, v3, v14}, Lw/a0/p;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
2020-02-20 19:33:18 +00:00
move-result v3
if-eqz v3, :cond_c
move-object v15, v13
goto :goto_7
:cond_c
const-string v3, "secure"
2020-03-26 23:31:08 +00:00
invoke-static {v0, v3, v14}, Lw/a0/p;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
2020-02-20 19:33:18 +00:00
move-result v3
if-eqz v3, :cond_d
const/16 v27, 0x1
goto :goto_7
:cond_d
const-string v3, "httponly"
2020-03-26 23:31:08 +00:00
invoke-static {v0, v3, v14}, Lw/a0/p;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
2020-02-20 19:33:18 +00:00
move-result v0
if-eqz v0, :cond_e
const/16 v28, 0x1
:catch_2
:cond_e
:goto_7
add-int/lit8 v0, v12, 0x1
move/from16 v3, v35
const/16 v13, 0x3b
const/16 v14, 0x3d
goto/16 :goto_3
:cond_f
cmp-long v0, v23, v33
if-nez v0, :cond_10
move-wide/from16 v19, v33
goto :goto_8
:cond_10
cmp-long v0, v23, v21
if-eqz v0, :cond_13
const-wide v12, 0x20c49ba5e353f7L
cmp-long v0, v23, v12
if-gtz v0, :cond_11
const/16 v0, 0x3e8
int-to-long v12, v0
mul-long v31, v23, v12
:cond_11
add-long v31, v10, v31
cmp-long v0, v31, v10
if-ltz v0, :cond_14
cmp-long v0, v31, v19
if-lez v0, :cond_12
goto :goto_8
:cond_12
move-wide/from16 v19, v31
goto :goto_8
:cond_13
move-wide/from16 v19, v25
:cond_14
:goto_8
2020-03-26 23:31:08 +00:00
iget-object v0, v2, La0/u;->e:Ljava/lang/String;
2020-02-20 19:33:18 +00:00
if-nez v6, :cond_15
move-object v6, v0
goto :goto_9
:cond_15
2020-03-26 23:31:08 +00:00
invoke-virtual {v1, v0, v6}, La0/l$a;->a(Ljava/lang/String;Ljava/lang/String;)Z
2020-02-20 19:33:18 +00:00
move-result v3
if-nez v3, :cond_16
goto/16 :goto_1
:cond_16
:goto_9
invoke-virtual {v0}, Ljava/lang/String;->length()I
move-result v0
invoke-virtual {v6}, Ljava/lang/String;->length()I
move-result v3
if-eq v0, v3, :cond_17
sget-object v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->h:Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;
invoke-virtual {v0}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;->a()Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;
move-result-object v0
invoke-virtual {v0, v6}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->a(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
if-nez v0, :cond_17
goto/16 :goto_1
:cond_17
const-string v0, "/"
if-eqz v15, :cond_19
const/4 v3, 0x2
const/4 v9, 0x0
2020-03-26 23:31:08 +00:00
invoke-static {v15, v0, v9, v3}, Lw/a0/p;->startsWith$default(Ljava/lang/String;Ljava/lang/String;ZI)Z
2020-02-20 19:33:18 +00:00
move-result v3
if-nez v3, :cond_18
goto :goto_a
:cond_18
move-object/from16 v22, v15
goto :goto_b
:cond_19
const/4 v9, 0x0
:goto_a
2020-03-26 23:31:08 +00:00
invoke-virtual/range {p1 .. p1}, La0/u;->b()Ljava/lang/String;
2020-02-20 19:33:18 +00:00
move-result-object v3
const/16 v10, 0x2f
const/4 v11, 0x6
2020-03-26 23:31:08 +00:00
invoke-static {v3, v10, v9, v9, v11}, Lw/a0/u;->lastIndexOf$default(Ljava/lang/CharSequence;CIZI)I
2020-02-20 19:33:18 +00:00
move-result v10
if-eqz v10, :cond_1a
invoke-virtual {v3, v9, v10}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object v0
const-string v3, "(this as java.lang.Strin\u2026ing(startIndex, endIndex)"
2020-03-26 23:31:08 +00:00
invoke-static {v0, v3}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-02-20 19:33:18 +00:00
:cond_1a
move-object/from16 v22, v0
:goto_b
2020-03-26 23:31:08 +00:00
new-instance v0, La0/l;
2020-02-20 19:33:18 +00:00
const/4 v3, 0x0
move-object/from16 v16, v0
move-object/from16 v21, v6
move/from16 v23, v27
move/from16 v24, v28
move/from16 v25, v29
move/from16 v26, v30
move-object/from16 v27, v3
2020-03-26 23:31:08 +00:00
invoke-direct/range {v16 .. v27}, La0/l;-><init>(Ljava/lang/String;Ljava/lang/String;JLjava/lang/String;Ljava/lang/String;ZZZZLkotlin/jvm/internal/DefaultConstructorMarker;)V
2020-02-20 19:33:18 +00:00
goto :goto_d
:goto_c
const/4 v0, 0x0
:goto_d
if-eqz v0, :cond_1c
if-nez v8, :cond_1b
new-instance v8, Ljava/util/ArrayList;
invoke-direct {v8}, Ljava/util/ArrayList;-><init>()V
:cond_1b
invoke-interface {v8, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:cond_1c
add-int/lit8 v7, v7, 0x1
const/4 v6, 0x0
goto/16 :goto_0
:cond_1d
const-string v0, "setCookie"
2020-03-26 23:31:08 +00:00
invoke-static {v0}, Lw/u/b/j;->a(Ljava/lang/String;)V
2020-02-20 19:33:18 +00:00
const/4 v2, 0x0
throw v2
:cond_1e
if-eqz v8, :cond_1f
invoke-static {v8}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;
move-result-object v0
const-string v2, "Collections.unmodifiableList(cookies)"
2020-03-26 23:31:08 +00:00
invoke-static {v0, v2}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-02-20 19:33:18 +00:00
goto :goto_e
:cond_1f
2020-03-26 23:31:08 +00:00
sget-object v0, Lw/q/o;->d:Lw/q/o;
2020-02-20 19:33:18 +00:00
:goto_e
return-object v0
:cond_20
const-string v0, "headers"
2020-03-26 23:31:08 +00:00
invoke-static {v0}, Lw/u/b/j;->a(Ljava/lang/String;)V
2020-02-20 19:33:18 +00:00
const/4 v2, 0x0
throw v2
:cond_21
const/4 v2, 0x0
const-string v0, "url"
2020-03-26 23:31:08 +00:00
invoke-static {v0}, Lw/u/b/j;->a(Ljava/lang/String;)V
2020-02-20 19:33:18 +00:00
throw v2
.end method
2020-03-26 23:31:08 +00:00
.method public final a(La0/u;Ljava/lang/String;)Z
2020-02-20 19:33:18 +00:00
.locals 4
2020-03-26 23:31:08 +00:00
invoke-virtual {p1}, La0/u;->b()Ljava/lang/String;
2020-02-20 19:33:18 +00:00
move-result-object p1
2020-03-26 23:31:08 +00:00
invoke-static {p1, p2}, Lw/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
2020-02-20 19:33:18 +00:00
move-result v0
const/4 v1, 0x1
if-eqz v0, :cond_0
return v1
:cond_0
const/4 v0, 0x2
const/4 v2, 0x0
2020-03-26 23:31:08 +00:00
invoke-static {p1, p2, v2, v0}, Lw/a0/p;->startsWith$default(Ljava/lang/String;Ljava/lang/String;ZI)Z
2020-02-20 19:33:18 +00:00
move-result v3
if-eqz v3, :cond_2
const-string v3, "/"
2020-03-26 23:31:08 +00:00
invoke-static {p2, v3, v2, v0}, Lw/a0/p;->endsWith$default(Ljava/lang/String;Ljava/lang/String;ZI)Z
2020-02-20 19:33:18 +00:00
move-result v0
if-eqz v0, :cond_1
return v1
:cond_1
invoke-virtual {p2}, Ljava/lang/String;->length()I
move-result p2
invoke-virtual {p1, p2}, Ljava/lang/String;->charAt(I)C
move-result p1
const/16 p2, 0x2f
if-ne p1, p2, :cond_2
return v1
:cond_2
return v2
.end method
.method public final a(Ljava/lang/String;Ljava/lang/String;)Z
.locals 3
2020-03-26 23:31:08 +00:00
invoke-static {p1, p2}, Lw/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
2020-02-20 19:33:18 +00:00
move-result v0
const/4 v1, 0x1
if-eqz v0, :cond_0
return v1
:cond_0
const/4 v0, 0x2
const/4 v2, 0x0
2020-03-26 23:31:08 +00:00
invoke-static {p1, p2, v2, v0}, Lw/a0/p;->endsWith$default(Ljava/lang/String;Ljava/lang/String;ZI)Z
2020-02-20 19:33:18 +00:00
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
2020-03-26 23:31:08 +00:00
invoke-static {p1}, La0/c0/a;->a(Ljava/lang/String;)Z
2020-02-20 19:33:18 +00:00
move-result p1
if-nez p1, :cond_1
goto :goto_0
:cond_1
const/4 v1, 0x0
:goto_0
return v1
2019-07-24 11:27:29 +00:00
.end method