mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-25 16:42:30 -06:00
1674 lines
35 KiB
Smali
1674 lines
35 KiB
Smali
.class public final Lokhttp3/Cookie$Companion;
|
|
.super Ljava/lang/Object;
|
|
.source "Cookie.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lokhttp3/Cookie;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "Companion"
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
bv = {
|
|
0x1,
|
|
0x0,
|
|
0x3
|
|
}
|
|
d1 = {
|
|
"\u0000L\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0005\n\u0002\u0010\u0008\n\u0000\n\u0002\u0010\u000e\n\u0002\u0008\u0003\n\u0002\u0010\u000b\n\u0002\u0008\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\t\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0010 \n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0007\u0008\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\u0008\u0002\u00a2\u0006\u0002\u0010\u0002J(\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\u000c2\u0006\u0010\r\u001a\u00020\n2\u0006\u0010\u000e\u001a\u00020\n2\u0006\u0010\u000f\u001a\u00020\u0010H\u0002J\u0018\u0010\u0011\u001a\u00020\u00102\u0006\u0010\u0012\u001a\u00020\u000c2\u0006\u0010\u0013\u001a\u00020\u000cH\u0002J\'\u0010\u0014\u001a\u0004\u0018\u00010\u00152\u0006\u0010\u0016\u001a\u00020\u00172\u0006\u0010\u0018\u001a\u00020\u00192\u0006\u0010\u001a\u001a\u00020\u000cH\u0000\u00a2\u0006\u0002\u0008\u001bJ\u001a\u0010\u0014\u001a\u0004\u0018\u00010\u00152\u0006\u0010\u0018\u001a\u00020\u00192\u0006\u0010\u001a\u001a\u00020\u000cH\u0007J\u001e\u0010\u001c\u001a\u0008\u0012\u0004\u0012\u00020\u00150\u001d2\u0006\u0010\u0018\u001a\u00020\u00192\u0006\u0010\u001e\u001a\u00020\u001fH\u0007J\u0010\u0010 \u001a\u00020\u000c2\u0006\u0010!\u001a\u00020\u000cH\u0002J \u0010\"\u001a\u00020\u00172\u0006\u0010!\u001a\u00020\u000c2\u0006\u0010\r\u001a\u00020\n2\u0006\u0010\u000e\u001a\u00020\nH\u0002J\u0010\u0010#\u001a\u00020\u00172\u0006\u0010!\u001a\u00020\u000cH\u0002J\u0018\u0010$\u001a\u00020\u00102\u0006\u0010\u0018\u001a\u00020\u00192\u0006\u0010%\u001a\u00020\u000cH\u0002R\u0016\u0010\u0003\u001a\n \u0005*\u0004\u0018\u00010\u00040\u0004X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0016\u0010\u0006\u001a\n \u0005*\u0004\u0018\u00010\u00040\u0004X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0016\u0010\u0007\u001a\n \u0005*\u0004\u0018\u00010\u00040\u0004X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0016\u0010\u0008\u001a\n \u0005*\u0004\u0018\u00010\u00040\u0004X\u0082\u0004\u00a2\u0006\u0002\n\u0000\u00a8\u0006&"
|
|
}
|
|
d2 = {
|
|
"Lokhttp3/Cookie$Companion;",
|
|
"",
|
|
"()V",
|
|
"DAY_OF_MONTH_PATTERN",
|
|
"Ljava/util/regex/Pattern;",
|
|
"kotlin.jvm.PlatformType",
|
|
"MONTH_PATTERN",
|
|
"TIME_PATTERN",
|
|
"YEAR_PATTERN",
|
|
"dateCharacterOffset",
|
|
"",
|
|
"input",
|
|
"",
|
|
"pos",
|
|
"limit",
|
|
"invert",
|
|
"",
|
|
"domainMatch",
|
|
"urlHost",
|
|
"domain",
|
|
"parse",
|
|
"Lokhttp3/Cookie;",
|
|
"currentTimeMillis",
|
|
"",
|
|
"url",
|
|
"Lokhttp3/HttpUrl;",
|
|
"setCookie",
|
|
"parse$okhttp",
|
|
"parseAll",
|
|
"",
|
|
"headers",
|
|
"Lokhttp3/Headers;",
|
|
"parseDomain",
|
|
"s",
|
|
"parseExpires",
|
|
"parseMaxAge",
|
|
"pathMatch",
|
|
"path",
|
|
"okhttp"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x1,
|
|
0x4,
|
|
0x0
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 330
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
.locals 0
|
|
|
|
.line 330
|
|
invoke-direct {p0}, Lokhttp3/Cookie$Companion;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic access$domainMatch(Lokhttp3/Cookie$Companion;Ljava/lang/String;Ljava/lang/String;)Z
|
|
.locals 0
|
|
|
|
.line 330
|
|
invoke-direct {p0, p1, p2}, Lokhttp3/Cookie$Companion;->domainMatch(Ljava/lang/String;Ljava/lang/String;)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static final synthetic access$pathMatch(Lokhttp3/Cookie$Companion;Lokhttp3/HttpUrl;Ljava/lang/String;)Z
|
|
.locals 0
|
|
|
|
.line 330
|
|
invoke-direct {p0, p1, p2}, Lokhttp3/Cookie$Companion;->pathMatch(Lokhttp3/HttpUrl;Ljava/lang/String;)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method private final dateCharacterOffset(Ljava/lang/String;IIZ)I
|
|
.locals 2
|
|
|
|
:goto_0
|
|
if-ge p2, p3, :cond_7
|
|
|
|
.line 555
|
|
invoke-virtual {p1, p2}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result p0
|
|
|
|
const/16 v0, 0x20
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-ge p0, v0, :cond_0
|
|
|
|
const/16 v0, 0x9
|
|
|
|
if-ne p0, v0, :cond_5
|
|
|
|
:cond_0
|
|
const/16 v0, 0x7f
|
|
|
|
if-ge p0, v0, :cond_5
|
|
|
|
const/16 v0, 0x30
|
|
|
|
if-gt v0, p0, :cond_1
|
|
|
|
const/16 v0, 0x39
|
|
|
|
if-ge v0, p0, :cond_5
|
|
|
|
:cond_1
|
|
const/16 v0, 0x61
|
|
|
|
if-gt v0, p0, :cond_2
|
|
|
|
const/16 v0, 0x7a
|
|
|
|
if-ge v0, p0, :cond_5
|
|
|
|
:cond_2
|
|
const/16 v0, 0x41
|
|
|
|
if-gt v0, p0, :cond_3
|
|
|
|
const/16 v0, 0x5a
|
|
|
|
if-ge v0, p0, :cond_5
|
|
|
|
:cond_3
|
|
const/16 v0, 0x3a
|
|
|
|
if-ne p0, v0, :cond_4
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
const/4 p0, 0x0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
:goto_1
|
|
move p0, v1
|
|
|
|
:goto_2
|
|
xor-int/lit8 v0, p4, 0x1
|
|
|
|
if-ne p0, v0, :cond_6
|
|
|
|
return p2
|
|
|
|
:cond_6
|
|
add-int/lit8 p2, p2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_7
|
|
return p3
|
|
.end method
|
|
|
|
.method private final domainMatch(Ljava/lang/String;Ljava/lang/String;)Z
|
|
.locals 3
|
|
|
|
.line 338
|
|
invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x2
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.line 342
|
|
invoke-static {p1, p2, v2, p0, v1}, Lkotlin/text/StringsKt;->endsWith$default(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
.line 343
|
|
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
|
|
|
move-result p0
|
|
|
|
invoke-virtual {p2}, Ljava/lang/String;->length()I
|
|
|
|
move-result p2
|
|
|
|
sub-int/2addr p0, p2
|
|
|
|
sub-int/2addr p0, v0
|
|
|
|
invoke-virtual {p1, p0}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result p0
|
|
|
|
const/16 p2, 0x2e
|
|
|
|
if-ne p0, p2, :cond_1
|
|
|
|
.line 344
|
|
invoke-static {p1}, Lokhttp3/internal/Util;->canParseAsIpAddress(Ljava/lang/String;)Z
|
|
|
|
move-result p0
|
|
|
|
if-nez p0, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move v0, v2
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method private final parseDomain(Ljava/lang/String;)Ljava/lang/String;
|
|
.locals 3
|
|
|
|
const/4 p0, 0x2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const-string v1, "."
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.line 590
|
|
invoke-static {p1, v1, v2, p0, v0}, Lkotlin/text/StringsKt;->endsWith$default(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
xor-int/lit8 p0, p0, 0x1
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
.line 591
|
|
check-cast v1, Ljava/lang/CharSequence;
|
|
|
|
invoke-static {p1, v1}, Lkotlin/text/StringsKt;->removePrefix(Ljava/lang/String;Ljava/lang/CharSequence;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0}, Lokhttp3/internal/HostnamesKt;->toCanonicalHost(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-direct {p0}, Ljava/lang/IllegalArgumentException;-><init>()V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
|
|
.line 590
|
|
:cond_1
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string p1, "Failed requirement."
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method private final parseExpires(Ljava/lang/String;II)J
|
|
.locals 22
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move-object/from16 v1, p1
|
|
|
|
move/from16 v2, p3
|
|
|
|
.line 488
|
|
move-object v3, v0
|
|
|
|
check-cast v3, Lokhttp3/Cookie$Companion;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
move/from16 v4, p2
|
|
|
|
invoke-direct {v0, v1, v4, v2, v3}, Lokhttp3/Cookie$Companion;->dateCharacterOffset(Ljava/lang/String;IIZ)I
|
|
|
|
move-result v4
|
|
|
|
.line 496
|
|
invoke-static {}, Lokhttp3/Cookie;->access$getTIME_PATTERN$cp()Ljava/util/regex/Pattern;
|
|
|
|
move-result-object v5
|
|
|
|
move-object v6, v1
|
|
|
|
check-cast v6, Ljava/lang/CharSequence;
|
|
|
|
invoke-virtual {v5, v6}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
|
|
|
|
move-result-object v5
|
|
|
|
const/4 v6, -0x1
|
|
|
|
move v7, v6
|
|
|
|
move v8, v7
|
|
|
|
move v9, v8
|
|
|
|
move v10, v9
|
|
|
|
move v11, v10
|
|
|
|
move v12, v11
|
|
|
|
:goto_0
|
|
const/4 v13, 0x2
|
|
|
|
const/4 v14, 0x1
|
|
|
|
if-ge v4, v2, :cond_5
|
|
|
|
add-int/lit8 v15, v4, 0x1
|
|
|
|
.line 499
|
|
invoke-direct {v0, v1, v15, v2, v14}, Lokhttp3/Cookie$Companion;->dateCharacterOffset(Ljava/lang/String;IIZ)I
|
|
|
|
move-result v15
|
|
|
|
.line 500
|
|
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
|
|
|
|
.line 503
|
|
invoke-static {}, Lokhttp3/Cookie;->access$getTIME_PATTERN$cp()Ljava/util/regex/Pattern;
|
|
|
|
move-result-object v3
|
|
|
|
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
|
|
|
|
.line 504
|
|
invoke-virtual {v5, v14}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-static {v3, v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {v3}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
|
|
|
|
move-result v8
|
|
|
|
.line 505
|
|
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}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(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
|
|
|
|
.line 506
|
|
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}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {v3}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
|
|
|
|
move-result v12
|
|
|
|
goto/16 :goto_1
|
|
|
|
:cond_0
|
|
if-ne v9, v6, :cond_1
|
|
|
|
.line 508
|
|
invoke-static {}, Lokhttp3/Cookie;->access$getDAY_OF_MONTH_PATTERN$cp()Ljava/util/regex/Pattern;
|
|
|
|
move-result-object v3
|
|
|
|
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
|
|
|
|
.line 509
|
|
invoke-virtual {v5, v14}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-static {v3, v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(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_3
|
|
|
|
.line 511
|
|
invoke-static {}, Lokhttp3/Cookie;->access$getMONTH_PATTERN$cp()Ljava/util/regex/Pattern;
|
|
|
|
move-result-object v3
|
|
|
|
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
|
|
|
|
.line 512
|
|
invoke-virtual {v5, v14}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-static {v3, v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(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}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
if-eqz v3, :cond_2
|
|
|
|
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}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 513
|
|
invoke-static {}, Lokhttp3/Cookie;->access$getMONTH_PATTERN$cp()Ljava/util/regex/Pattern;
|
|
|
|
move-result-object v4
|
|
|
|
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}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
move-object/from16 v16, v4
|
|
|
|
check-cast v16, Ljava/lang/CharSequence;
|
|
|
|
const/16 v18, 0x0
|
|
|
|
const/16 v19, 0x0
|
|
|
|
const/16 v20, 0x6
|
|
|
|
const/16 v21, 0x0
|
|
|
|
move-object/from16 v17, v3
|
|
|
|
invoke-static/range {v16 .. v21}, Lkotlin/text/StringsKt;->indexOf$default(Ljava/lang/CharSequence;Ljava/lang/String;IZILjava/lang/Object;)I
|
|
|
|
move-result v3
|
|
|
|
div-int/lit8 v10, v3, 0x4
|
|
|
|
goto :goto_1
|
|
|
|
.line 512
|
|
:cond_2
|
|
new-instance v0, Ljava/lang/NullPointerException;
|
|
|
|
const-string v1, "null cannot be cast to non-null type java.lang.String"
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_3
|
|
if-ne v7, v6, :cond_4
|
|
|
|
.line 515
|
|
invoke-static {}, Lokhttp3/Cookie;->access$getYEAR_PATTERN$cp()Ljava/util/regex/Pattern;
|
|
|
|
move-result-object v3
|
|
|
|
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_4
|
|
|
|
.line 516
|
|
invoke-virtual {v5, v14}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-static {v3, v4}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {v3}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
|
|
|
|
move-result v7
|
|
|
|
:cond_4
|
|
:goto_1
|
|
add-int/lit8 v15, v15, 0x1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
.line 520
|
|
invoke-direct {v0, v1, v15, v2, v3}, Lokhttp3/Cookie$Companion;->dateCharacterOffset(Ljava/lang/String;IIZ)I
|
|
|
|
move-result v4
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_5
|
|
const/16 v0, 0x46
|
|
|
|
if-le v0, v7, :cond_6
|
|
|
|
goto :goto_2
|
|
|
|
:cond_6
|
|
const/16 v0, 0x63
|
|
|
|
if-lt v0, v7, :cond_7
|
|
|
|
add-int/lit16 v7, v7, 0x76c
|
|
|
|
:cond_7
|
|
:goto_2
|
|
if-gez v7, :cond_8
|
|
|
|
goto :goto_3
|
|
|
|
:cond_8
|
|
const/16 v0, 0x45
|
|
|
|
if-lt v0, v7, :cond_9
|
|
|
|
add-int/lit16 v7, v7, 0x7d0
|
|
|
|
:cond_9
|
|
:goto_3
|
|
const/16 v0, 0x641
|
|
|
|
if-lt v7, v0, :cond_a
|
|
|
|
move v0, v14
|
|
|
|
goto :goto_4
|
|
|
|
:cond_a
|
|
const/4 v0, 0x0
|
|
|
|
:goto_4
|
|
const-string v1, "Failed requirement."
|
|
|
|
if-eqz v0, :cond_19
|
|
|
|
if-eq v10, v6, :cond_b
|
|
|
|
move v0, v14
|
|
|
|
goto :goto_5
|
|
|
|
:cond_b
|
|
const/4 v0, 0x0
|
|
|
|
:goto_5
|
|
if-eqz v0, :cond_18
|
|
|
|
if-le v14, v9, :cond_c
|
|
|
|
goto :goto_6
|
|
|
|
:cond_c
|
|
const/16 v0, 0x1f
|
|
|
|
if-lt v0, v9, :cond_d
|
|
|
|
move v0, v14
|
|
|
|
goto :goto_7
|
|
|
|
:cond_d
|
|
:goto_6
|
|
const/4 v0, 0x0
|
|
|
|
:goto_7
|
|
if-eqz v0, :cond_17
|
|
|
|
if-gez v8, :cond_e
|
|
|
|
goto :goto_8
|
|
|
|
:cond_e
|
|
const/16 v0, 0x17
|
|
|
|
if-lt v0, v8, :cond_f
|
|
|
|
move v0, v14
|
|
|
|
goto :goto_9
|
|
|
|
:cond_f
|
|
:goto_8
|
|
const/4 v0, 0x0
|
|
|
|
:goto_9
|
|
if-eqz v0, :cond_16
|
|
|
|
const/16 v0, 0x3b
|
|
|
|
if-gez v11, :cond_10
|
|
|
|
goto :goto_a
|
|
|
|
:cond_10
|
|
if-lt v0, v11, :cond_11
|
|
|
|
move v2, v14
|
|
|
|
goto :goto_b
|
|
|
|
:cond_11
|
|
:goto_a
|
|
const/4 v2, 0x0
|
|
|
|
:goto_b
|
|
if-eqz v2, :cond_15
|
|
|
|
if-gez v12, :cond_12
|
|
|
|
goto :goto_c
|
|
|
|
:cond_12
|
|
if-lt v0, v12, :cond_13
|
|
|
|
move v0, v14
|
|
|
|
goto :goto_d
|
|
|
|
:cond_13
|
|
:goto_c
|
|
const/4 v0, 0x0
|
|
|
|
:goto_d
|
|
if-eqz v0, :cond_14
|
|
|
|
.line 536
|
|
new-instance v0, Ljava/util/GregorianCalendar;
|
|
|
|
sget-object v1, Lokhttp3/internal/Util;->UTC:Ljava/util/TimeZone;
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/GregorianCalendar;-><init>(Ljava/util/TimeZone;)V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 537
|
|
invoke-virtual {v0, v1}, Ljava/util/GregorianCalendar;->setLenient(Z)V
|
|
|
|
.line 538
|
|
invoke-virtual {v0, v14, v7}, Ljava/util/GregorianCalendar;->set(II)V
|
|
|
|
sub-int/2addr v10, v14
|
|
|
|
.line 539
|
|
invoke-virtual {v0, v13, v10}, Ljava/util/GregorianCalendar;->set(II)V
|
|
|
|
const/4 v1, 0x5
|
|
|
|
.line 540
|
|
invoke-virtual {v0, v1, v9}, Ljava/util/GregorianCalendar;->set(II)V
|
|
|
|
const/16 v1, 0xb
|
|
|
|
.line 541
|
|
invoke-virtual {v0, v1, v8}, Ljava/util/GregorianCalendar;->set(II)V
|
|
|
|
const/16 v1, 0xc
|
|
|
|
.line 542
|
|
invoke-virtual {v0, v1, v11}, Ljava/util/GregorianCalendar;->set(II)V
|
|
|
|
const/16 v1, 0xd
|
|
|
|
.line 543
|
|
invoke-virtual {v0, v1, v12}, Ljava/util/GregorianCalendar;->set(II)V
|
|
|
|
const/16 v1, 0xe
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.line 544
|
|
invoke-virtual {v0, v1, v2}, Ljava/util/GregorianCalendar;->set(II)V
|
|
|
|
.line 545
|
|
invoke-virtual {v0}, Ljava/util/GregorianCalendar;->getTimeInMillis()J
|
|
|
|
move-result-wide v0
|
|
|
|
return-wide v0
|
|
|
|
.line 534
|
|
:cond_14
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
throw v0
|
|
|
|
.line 533
|
|
:cond_15
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
throw v0
|
|
|
|
.line 532
|
|
:cond_16
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
throw v0
|
|
|
|
.line 531
|
|
:cond_17
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
throw v0
|
|
|
|
.line 530
|
|
:cond_18
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
throw v0
|
|
|
|
.line 529
|
|
:cond_19
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method private final parseMaxAge(Ljava/lang/String;)J
|
|
.locals 5
|
|
|
|
const-wide/high16 v0, -0x8000000000000000L
|
|
|
|
.line 574
|
|
:try_start_0
|
|
invoke-static {p1}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J
|
|
|
|
move-result-wide p0
|
|
:try_end_0
|
|
.catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long v2, p0, v2
|
|
|
|
if-gtz v2, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-wide v0, p0
|
|
|
|
:goto_0
|
|
return-wide v0
|
|
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
.line 578
|
|
move-object v2, p1
|
|
|
|
check-cast v2, Ljava/lang/CharSequence;
|
|
|
|
new-instance v3, Lkotlin/text/Regex;
|
|
|
|
const-string v4, "-?\\d+"
|
|
|
|
invoke-direct {v3, v4}, Lkotlin/text/Regex;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v3, v2}, Lkotlin/text/Regex;->matches(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
const/4 p0, 0x2
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const-string v3, "-"
|
|
|
|
const/4 v4, 0x0
|
|
|
|
.line 579
|
|
invoke-static {p1, v3, v4, p0, v2}, Lkotlin/text/StringsKt;->startsWith$default(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const-wide v0, 0x7fffffffffffffffL
|
|
|
|
:goto_1
|
|
return-wide v0
|
|
|
|
.line 581
|
|
:cond_2
|
|
check-cast p0, Ljava/lang/Throwable;
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method private final pathMatch(Lokhttp3/HttpUrl;Ljava/lang/String;)Z
|
|
.locals 4
|
|
|
|
.line 348
|
|
invoke-virtual {p1}, Lokhttp3/HttpUrl;->encodedPath()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
.line 350
|
|
invoke-static {p0, p2}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
const/4 v1, 0x2
|
|
|
|
const/4 v2, 0x0
|
|
|
|
.line 354
|
|
invoke-static {p0, p2, p1, v1, v2}, Lkotlin/text/StringsKt;->startsWith$default(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_2
|
|
|
|
const-string v3, "/"
|
|
|
|
.line 355
|
|
invoke-static {p2, v3, p1, v1, v2}, Lkotlin/text/StringsKt;->endsWith$default(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
return v0
|
|
|
|
.line 356
|
|
:cond_1
|
|
invoke-virtual {p2}, Ljava/lang/String;->length()I
|
|
|
|
move-result p2
|
|
|
|
invoke-virtual {p0, p2}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result p0
|
|
|
|
const/16 p2, 0x2f
|
|
|
|
if-ne p0, p2, :cond_2
|
|
|
|
return v0
|
|
|
|
:cond_2
|
|
return p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final parse(Lokhttp3/HttpUrl;Ljava/lang/String;)Lokhttp3/Cookie;
|
|
.locals 2
|
|
.annotation runtime Lkotlin/jvm/JvmStatic;
|
|
.end annotation
|
|
|
|
const-string v0, "url"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "setCookie"
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 368
|
|
move-object v0, p0
|
|
|
|
check-cast v0, Lokhttp3/Cookie$Companion;
|
|
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
|
|
|
move-result-wide v0
|
|
|
|
invoke-virtual {p0, v0, v1, p1, p2}, Lokhttp3/Cookie$Companion;->parse$okhttp(JLokhttp3/HttpUrl;Ljava/lang/String;)Lokhttp3/Cookie;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public final parse$okhttp(JLokhttp3/HttpUrl;Ljava/lang/String;)Lokhttp3/Cookie;
|
|
.locals 25
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move-object/from16 v7, p4
|
|
|
|
const-string v1, "url"
|
|
|
|
move-object/from16 v8, p3
|
|
|
|
invoke-static {v8, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v1, "setCookie"
|
|
|
|
invoke-static {v7, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/16 v2, 0x3b
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x6
|
|
|
|
const/4 v6, 0x0
|
|
|
|
move-object/from16 v1, p4
|
|
|
|
.line 371
|
|
invoke-static/range {v1 .. v6}, Lokhttp3/internal/Util;->delimiterOffset$default(Ljava/lang/String;CIIILjava/lang/Object;)I
|
|
|
|
move-result v9
|
|
|
|
const/16 v2, 0x3d
|
|
|
|
const/4 v5, 0x2
|
|
|
|
move v4, v9
|
|
|
|
.line 373
|
|
invoke-static/range {v1 .. v6}, Lokhttp3/internal/Util;->delimiterOffset$default(Ljava/lang/String;CIIILjava/lang/Object;)I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-ne v1, v9, :cond_0
|
|
|
|
return-object v2
|
|
|
|
:cond_0
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x1
|
|
|
|
.line 376
|
|
invoke-static {v7, v3, v1, v4, v2}, Lokhttp3/internal/Util;->trimSubstring$default(Ljava/lang/String;IIILjava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v11
|
|
|
|
.line 377
|
|
move-object v5, v11
|
|
|
|
check-cast v5, Ljava/lang/CharSequence;
|
|
|
|
invoke-interface {v5}, Ljava/lang/CharSequence;->length()I
|
|
|
|
move-result v5
|
|
|
|
if-nez v5, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
invoke-static {v11}, Lokhttp3/internal/Util;->indexOfControlOrNonAscii(Ljava/lang/String;)I
|
|
|
|
move-result v5
|
|
|
|
const/4 v6, -0x1
|
|
|
|
if-eq v5, v6, :cond_2
|
|
|
|
:goto_0
|
|
return-object v2
|
|
|
|
:cond_2
|
|
add-int/2addr v1, v4
|
|
|
|
.line 379
|
|
invoke-static {v7, v1, v9}, Lokhttp3/internal/Util;->trimSubstring(Ljava/lang/String;II)Ljava/lang/String;
|
|
|
|
move-result-object v12
|
|
|
|
.line 380
|
|
invoke-static {v12}, Lokhttp3/internal/Util;->indexOfControlOrNonAscii(Ljava/lang/String;)I
|
|
|
|
move-result v1
|
|
|
|
if-eq v1, v6, :cond_3
|
|
|
|
return-object v2
|
|
|
|
.line 384
|
|
:cond_3
|
|
move-object v1, v2
|
|
|
|
check-cast v1, Ljava/lang/String;
|
|
|
|
add-int/2addr v9, v4
|
|
|
|
.line 392
|
|
invoke-virtual/range {p4 .. p4}, Ljava/lang/String;->length()I
|
|
|
|
move-result v1
|
|
|
|
const-wide/16 v5, -0x1
|
|
|
|
move-object v10, v2
|
|
|
|
move-object/from16 v22, v10
|
|
|
|
move/from16 v17, v3
|
|
|
|
move/from16 v18, v17
|
|
|
|
move/from16 v19, v18
|
|
|
|
move/from16 v20, v4
|
|
|
|
move-wide v15, v5
|
|
|
|
const-wide v23, 0xe677d21fdbffL
|
|
|
|
:goto_1
|
|
if-ge v9, v1, :cond_b
|
|
|
|
const/16 v2, 0x3b
|
|
|
|
.line 394
|
|
invoke-static {v7, v2, v9, v1}, Lokhttp3/internal/Util;->delimiterOffset(Ljava/lang/String;CII)I
|
|
|
|
move-result v2
|
|
|
|
const/16 v13, 0x3d
|
|
|
|
.line 396
|
|
invoke-static {v7, v13, v9, v2}, Lokhttp3/internal/Util;->delimiterOffset(Ljava/lang/String;CII)I
|
|
|
|
move-result v13
|
|
|
|
.line 397
|
|
invoke-static {v7, v9, v13}, Lokhttp3/internal/Util;->trimSubstring(Ljava/lang/String;II)Ljava/lang/String;
|
|
|
|
move-result-object v9
|
|
|
|
if-ge v13, v2, :cond_4
|
|
|
|
add-int/lit8 v13, v13, 0x1
|
|
|
|
.line 399
|
|
invoke-static {v7, v13, v2}, Lokhttp3/internal/Util;->trimSubstring(Ljava/lang/String;II)Ljava/lang/String;
|
|
|
|
move-result-object v13
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
const-string v13, ""
|
|
|
|
:goto_2
|
|
const-string v14, "expires"
|
|
|
|
.line 405
|
|
invoke-static {v9, v14, v4}, Lkotlin/text/StringsKt;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
|
|
|
|
move-result v14
|
|
|
|
if-eqz v14, :cond_5
|
|
|
|
.line 407
|
|
:try_start_0
|
|
move-object v9, v0
|
|
|
|
check-cast v9, Lokhttp3/Cookie$Companion;
|
|
|
|
invoke-virtual {v13}, Ljava/lang/String;->length()I
|
|
|
|
move-result v9
|
|
|
|
invoke-direct {v0, v13, v3, v9}, Lokhttp3/Cookie$Companion;->parseExpires(Ljava/lang/String;II)J
|
|
|
|
move-result-wide v23
|
|
:try_end_0
|
|
.catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_3
|
|
|
|
:cond_5
|
|
const-string v14, "max-age"
|
|
|
|
.line 413
|
|
invoke-static {v9, v14, v4}, Lkotlin/text/StringsKt;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
|
|
|
|
move-result v14
|
|
|
|
if-eqz v14, :cond_6
|
|
|
|
.line 415
|
|
:try_start_1
|
|
move-object v9, v0
|
|
|
|
check-cast v9, Lokhttp3/Cookie$Companion;
|
|
|
|
invoke-direct {v0, v13}, Lokhttp3/Cookie$Companion;->parseMaxAge(Ljava/lang/String;)J
|
|
|
|
move-result-wide v15
|
|
:try_end_1
|
|
.catch Ljava/lang/NumberFormatException; {:try_start_1 .. :try_end_1} :catch_0
|
|
|
|
:goto_3
|
|
move/from16 v19, v4
|
|
|
|
goto :goto_4
|
|
|
|
:cond_6
|
|
const-string v14, "domain"
|
|
|
|
.line 421
|
|
invoke-static {v9, v14, v4}, Lkotlin/text/StringsKt;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
|
|
|
|
move-result v14
|
|
|
|
if-eqz v14, :cond_7
|
|
|
|
.line 423
|
|
:try_start_2
|
|
move-object v9, v0
|
|
|
|
check-cast v9, Lokhttp3/Cookie$Companion;
|
|
|
|
invoke-direct {v0, v13}, Lokhttp3/Cookie$Companion;->parseDomain(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v10
|
|
:try_end_2
|
|
.catch Ljava/lang/IllegalArgumentException; {:try_start_2 .. :try_end_2} :catch_0
|
|
|
|
move/from16 v20, v3
|
|
|
|
goto :goto_4
|
|
|
|
:cond_7
|
|
const-string v14, "path"
|
|
|
|
.line 429
|
|
invoke-static {v9, v14, v4}, Lkotlin/text/StringsKt;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
|
|
|
|
move-result v14
|
|
|
|
if-eqz v14, :cond_8
|
|
|
|
move-object/from16 v22, v13
|
|
|
|
goto :goto_4
|
|
|
|
:cond_8
|
|
const-string v13, "secure"
|
|
|
|
.line 432
|
|
invoke-static {v9, v13, v4}, Lkotlin/text/StringsKt;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
|
|
|
|
move-result v13
|
|
|
|
if-eqz v13, :cond_9
|
|
|
|
move/from16 v17, v4
|
|
|
|
goto :goto_4
|
|
|
|
:cond_9
|
|
const-string v13, "httponly"
|
|
|
|
.line 435
|
|
invoke-static {v9, v13, v4}, Lkotlin/text/StringsKt;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
|
|
|
|
move-result v9
|
|
|
|
if-eqz v9, :cond_a
|
|
|
|
move/from16 v18, v4
|
|
|
|
:catch_0
|
|
:cond_a
|
|
:goto_4
|
|
add-int/lit8 v9, v2, 0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_b
|
|
const-wide/high16 v1, -0x8000000000000000L
|
|
|
|
cmp-long v4, v15, v1
|
|
|
|
if-nez v4, :cond_d
|
|
|
|
:cond_c
|
|
move-wide v13, v1
|
|
|
|
goto :goto_7
|
|
|
|
:cond_d
|
|
cmp-long v1, v15, v5
|
|
|
|
if-eqz v1, :cond_10
|
|
|
|
const-wide v1, 0x20c49ba5e353f7L
|
|
|
|
cmp-long v1, v15, v1
|
|
|
|
if-gtz v1, :cond_e
|
|
|
|
const/16 v1, 0x3e8
|
|
|
|
int-to-long v1, v1
|
|
|
|
mul-long/2addr v15, v1
|
|
|
|
goto :goto_5
|
|
|
|
:cond_e
|
|
const-wide v15, 0x7fffffffffffffffL
|
|
|
|
:goto_5
|
|
add-long v1, p1, v15
|
|
|
|
cmp-long v4, v1, p1
|
|
|
|
if-ltz v4, :cond_f
|
|
|
|
const-wide v4, 0xe677d21fdbffL
|
|
|
|
cmp-long v6, v1, v4
|
|
|
|
if-lez v6, :cond_c
|
|
|
|
goto :goto_6
|
|
|
|
:cond_f
|
|
const-wide v4, 0xe677d21fdbffL
|
|
|
|
:goto_6
|
|
move-wide v13, v4
|
|
|
|
goto :goto_7
|
|
|
|
:cond_10
|
|
move-wide/from16 v13, v23
|
|
|
|
.line 460
|
|
:goto_7
|
|
invoke-virtual/range {p3 .. p3}, Lokhttp3/HttpUrl;->host()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
if-nez v10, :cond_11
|
|
|
|
move-object v15, v1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_8
|
|
|
|
.line 463
|
|
:cond_11
|
|
move-object v2, v0
|
|
|
|
check-cast v2, Lokhttp3/Cookie$Companion;
|
|
|
|
invoke-direct {v0, v1, v10}, Lokhttp3/Cookie$Companion;->domainMatch(Ljava/lang/String;Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_12
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return-object v0
|
|
|
|
:cond_12
|
|
const/4 v0, 0x0
|
|
|
|
move-object v15, v10
|
|
|
|
.line 469
|
|
:goto_8
|
|
invoke-virtual {v1}, Ljava/lang/String;->length()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v15}, Ljava/lang/String;->length()I
|
|
|
|
move-result v2
|
|
|
|
if-eq v1, v2, :cond_13
|
|
|
|
sget-object v1, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->Companion:Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$Companion;
|
|
|
|
invoke-virtual {v1}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$Companion;->get()Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v15}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->getEffectiveTldPlusOne(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
if-nez v1, :cond_13
|
|
|
|
return-object v0
|
|
|
|
:cond_13
|
|
const-string v1, "/"
|
|
|
|
move-object/from16 v2, v22
|
|
|
|
if-eqz v2, :cond_15
|
|
|
|
const/4 v4, 0x2
|
|
|
|
.line 475
|
|
invoke-static {v2, v1, v3, v4, v0}, Lkotlin/text/StringsKt;->startsWith$default(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_14
|
|
|
|
goto :goto_9
|
|
|
|
:cond_14
|
|
move-object/from16 v16, v2
|
|
|
|
goto :goto_b
|
|
|
|
.line 476
|
|
:cond_15
|
|
:goto_9
|
|
invoke-virtual/range {p3 .. p3}, Lokhttp3/HttpUrl;->encodedPath()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
.line 477
|
|
move-object v4, v0
|
|
|
|
check-cast v4, Ljava/lang/CharSequence;
|
|
|
|
const/16 v5, 0x2f
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v8, 0x6
|
|
|
|
const/4 v9, 0x0
|
|
|
|
invoke-static/range {v4 .. v9}, Lkotlin/text/StringsKt;->lastIndexOf$default(Ljava/lang/CharSequence;CIZILjava/lang/Object;)I
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_17
|
|
|
|
if-eqz v0, :cond_16
|
|
|
|
.line 478
|
|
invoke-virtual {v0, v3, v2}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v0, "(this as java.lang.Strin\u2026ing(startIndex, endIndex)"
|
|
|
|
invoke-static {v1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
goto :goto_a
|
|
|
|
:cond_16
|
|
new-instance v0, Ljava/lang/NullPointerException;
|
|
|
|
const-string v1, "null cannot be cast to non-null type java.lang.String"
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_17
|
|
:goto_a
|
|
move-object/from16 v16, v1
|
|
|
|
.line 481
|
|
:goto_b
|
|
new-instance v0, Lokhttp3/Cookie;
|
|
|
|
const/16 v21, 0x0
|
|
|
|
move-object v10, v0
|
|
|
|
invoke-direct/range {v10 .. v21}, Lokhttp3/Cookie;-><init>(Ljava/lang/String;Ljava/lang/String;JLjava/lang/String;Ljava/lang/String;ZZZZLkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final parseAll(Lokhttp3/HttpUrl;Lokhttp3/Headers;)Ljava/util/List;
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lokhttp3/HttpUrl;",
|
|
"Lokhttp3/Headers;",
|
|
")",
|
|
"Ljava/util/List<",
|
|
"Lokhttp3/Cookie;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/jvm/JvmStatic;
|
|
.end annotation
|
|
|
|
const-string v0, "url"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "headers"
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "Set-Cookie"
|
|
|
|
.line 597
|
|
invoke-virtual {p2, v0}, Lokhttp3/Headers;->values(Ljava/lang/String;)Ljava/util/List;
|
|
|
|
move-result-object p2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 598
|
|
move-object v1, v0
|
|
|
|
check-cast v1, Ljava/util/List;
|
|
|
|
.line 600
|
|
invoke-interface {p2}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
if-ge v2, v1, :cond_2
|
|
|
|
.line 601
|
|
move-object v3, p0
|
|
|
|
check-cast v3, Lokhttp3/Cookie$Companion;
|
|
|
|
invoke-interface {p2, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Ljava/lang/String;
|
|
|
|
invoke-virtual {p0, p1, v3}, Lokhttp3/Cookie$Companion;->parse(Lokhttp3/HttpUrl;Ljava/lang/String;)Lokhttp3/Cookie;
|
|
|
|
move-result-object v3
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 602
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
check-cast v0, Ljava/util/List;
|
|
|
|
.line 603
|
|
:cond_0
|
|
invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
:cond_1
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 607
|
|
invoke-static {v0}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;
|
|
|
|
move-result-object p0
|
|
|
|
const-string p1, "Collections.unmodifiableList(cookies)"
|
|
|
|
invoke-static {p0, p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 609
|
|
:cond_3
|
|
invoke-static {}, Lkotlin/collections/CollectionsKt;->emptyList()Ljava/util/List;
|
|
|
|
move-result-object p0
|
|
|
|
:goto_1
|
|
return-object p0
|
|
.end method
|