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

549 lines
9.3 KiB
Smali

.class public final Lo0/e$a;
.super Ljava/lang/Object;
.source "CacheControl.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lo0/e;
.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;Ljava/lang/String;I)I
.locals 4
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v0
:goto_0
if-ge p3, v0, :cond_1
invoke-virtual {p1, p3}, Ljava/lang/String;->charAt(I)C
move-result v1
const/4 v2, 0x0
const/4 v3, 0x2
invoke-static {p2, v1, v2, v3}, Lk0/t/p;->contains$default(Ljava/lang/CharSequence;CZI)Z
move-result v1
if-eqz v1, :cond_0
return p3
:cond_0
add-int/lit8 p3, p3, 0x1
goto :goto_0
:cond_1
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result p1
return p1
.end method
.method public final b(Lokhttp3/Headers;)Lo0/e;
.locals 26
move-object/from16 v0, p0
move-object/from16 v1, p1
if-eqz v1, :cond_16
invoke-virtual/range {p1 .. p1}, Lokhttp3/Headers;->size()I
move-result v3
const/4 v6, 0x1
const/4 v7, 0x0
const/4 v8, 0x1
const/4 v9, 0x0
const/4 v10, 0x0
const/4 v11, 0x0
const/4 v12, -0x1
const/4 v13, -0x1
const/4 v14, 0x0
const/4 v15, 0x0
const/16 v16, 0x0
const/16 v17, -0x1
const/16 v18, -0x1
const/16 v19, 0x0
const/16 v20, 0x0
const/16 v21, 0x0
:goto_0
if-ge v7, v3, :cond_14
invoke-virtual {v1, v7}, Lokhttp3/Headers;->h(I)Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v7}, Lokhttp3/Headers;->k(I)Ljava/lang/String;
move-result-object v4
const-string v5, "Cache-Control"
invoke-static {v2, v5, v6}, Lk0/t/k;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
move-result v5
if-eqz v5, :cond_1
if-eqz v9, :cond_0
goto :goto_1
:cond_0
move-object v9, v4
goto :goto_2
:cond_1
const-string v5, "Pragma"
invoke-static {v2, v5, v6}, Lk0/t/k;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
move-result v2
if-eqz v2, :cond_13
:goto_1
const/4 v8, 0x0
:goto_2
const/4 v2, 0x0
:goto_3
invoke-virtual {v4}, Ljava/lang/String;->length()I
move-result v5
if-ge v2, v5, :cond_12
const-string v5, "=,;"
invoke-virtual {v0, v4, v5, v2}, Lo0/e$a;->a(Ljava/lang/String;Ljava/lang/String;I)I
move-result v5
invoke-virtual {v4, v2, v5}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object v2
const-string v6, "(this as java.lang.Strin\u2026ing(startIndex, endIndex)"
invoke-static {v2, v6}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {v2}, Lk0/t/p;->trim(Ljava/lang/CharSequence;)Ljava/lang/CharSequence;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v2
invoke-virtual {v4}, Ljava/lang/String;->length()I
move-result v1
if-eq v5, v1, :cond_4
invoke-virtual {v4, v5}, Ljava/lang/String;->charAt(I)C
move-result v1
move/from16 v24, v3
const/16 v3, 0x2c
if-eq v1, v3, :cond_5
invoke-virtual {v4, v5}, Ljava/lang/String;->charAt(I)C
move-result v1
const/16 v3, 0x3b
if-ne v1, v3, :cond_2
goto :goto_4
:cond_2
add-int/lit8 v5, v5, 0x1
invoke-static {v4, v5}, Lo0/g0/b;->u(Ljava/lang/String;I)I
move-result v1
invoke-virtual {v4}, Ljava/lang/String;->length()I
move-result v3
if-ge v1, v3, :cond_3
invoke-virtual {v4, v1}, Ljava/lang/String;->charAt(I)C
move-result v3
const/16 v5, 0x22
if-ne v3, v5, :cond_3
add-int/lit8 v1, v1, 0x1
const/4 v3, 0x4
move-object/from16 v25, v9
const/4 v9, 0x0
invoke-static {v4, v5, v1, v9, v3}, Lk0/t/p;->indexOf$default(Ljava/lang/CharSequence;CIZI)I
move-result v3
invoke-virtual {v4, v1, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object v1
invoke-static {v1, v6}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v5, 0x1
add-int/2addr v3, v5
goto :goto_5
:cond_3
move-object/from16 v25, v9
const/4 v9, 0x0
const-string v3, ",;"
invoke-virtual {v0, v4, v3, v1}, Lo0/e$a;->a(Ljava/lang/String;Ljava/lang/String;I)I
move-result v3
invoke-virtual {v4, v1, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object v1
invoke-static {v1, v6}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {v1}, Lk0/t/p;->trim(Ljava/lang/CharSequence;)Ljava/lang/CharSequence;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
goto :goto_5
:cond_4
move/from16 v24, v3
:cond_5
:goto_4
move-object/from16 v25, v9
const/4 v9, 0x0
add-int/lit8 v5, v5, 0x1
move v3, v5
const/4 v1, 0x0
:goto_5
const-string v5, "no-cache"
const/4 v6, 0x1
invoke-static {v5, v2, v6}, Lk0/t/k;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
move-result v5
if-eqz v5, :cond_6
const/4 v5, -0x1
const/4 v10, 0x1
goto/16 :goto_6
:cond_6
const-string v5, "no-store"
invoke-static {v5, v2, v6}, Lk0/t/k;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
move-result v5
if-eqz v5, :cond_7
const/4 v5, -0x1
const/4 v11, 0x1
goto/16 :goto_6
:cond_7
const-string v5, "max-age"
invoke-static {v5, v2, v6}, Lk0/t/k;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
move-result v5
if-eqz v5, :cond_8
const/4 v5, -0x1
invoke-static {v1, v5}, Lo0/g0/b;->G(Ljava/lang/String;I)I
move-result v12
goto/16 :goto_6
:cond_8
const/4 v5, -0x1
const-string v9, "s-maxage"
invoke-static {v9, v2, v6}, Lk0/t/k;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
move-result v9
if-eqz v9, :cond_9
invoke-static {v1, v5}, Lo0/g0/b;->G(Ljava/lang/String;I)I
move-result v13
goto :goto_6
:cond_9
const-string v5, "private"
invoke-static {v5, v2, v6}, Lk0/t/k;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
move-result v5
if-eqz v5, :cond_a
const/4 v5, -0x1
const/4 v14, 0x1
goto :goto_6
:cond_a
const-string v5, "public"
invoke-static {v5, v2, v6}, Lk0/t/k;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
move-result v5
if-eqz v5, :cond_b
const/4 v5, -0x1
const/4 v15, 0x1
goto :goto_6
:cond_b
const-string v5, "must-revalidate"
invoke-static {v5, v2, v6}, Lk0/t/k;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
move-result v5
if-eqz v5, :cond_c
const/4 v5, -0x1
const/16 v16, 0x1
goto :goto_6
:cond_c
const-string v5, "max-stale"
invoke-static {v5, v2, v6}, Lk0/t/k;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
move-result v5
if-eqz v5, :cond_d
const v2, 0x7fffffff
invoke-static {v1, v2}, Lo0/g0/b;->G(Ljava/lang/String;I)I
move-result v17
const/4 v5, -0x1
goto :goto_6
:cond_d
const-string v5, "min-fresh"
invoke-static {v5, v2, v6}, Lk0/t/k;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
move-result v5
if-eqz v5, :cond_e
const/4 v5, -0x1
invoke-static {v1, v5}, Lo0/g0/b;->G(Ljava/lang/String;I)I
move-result v18
goto :goto_6
:cond_e
const/4 v5, -0x1
const-string v1, "only-if-cached"
invoke-static {v1, v2, v6}, Lk0/t/k;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
move-result v1
if-eqz v1, :cond_f
const/16 v19, 0x1
goto :goto_6
:cond_f
const-string v1, "no-transform"
invoke-static {v1, v2, v6}, Lk0/t/k;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
move-result v1
if-eqz v1, :cond_10
const/16 v20, 0x1
goto :goto_6
:cond_10
const-string v1, "immutable"
invoke-static {v1, v2, v6}, Lk0/t/k;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
move-result v1
if-eqz v1, :cond_11
const/16 v21, 0x1
:cond_11
:goto_6
move-object/from16 v1, p1
move v2, v3
move/from16 v3, v24
move-object/from16 v9, v25
goto/16 :goto_3
:cond_12
move/from16 v24, v3
move-object/from16 v25, v9
goto :goto_7
:cond_13
move/from16 v24, v3
move-object v2, v9
:goto_7
const/4 v5, -0x1
add-int/lit8 v7, v7, 0x1
move-object/from16 v1, p1
move/from16 v3, v24
goto/16 :goto_0
:cond_14
move-object v2, v9
if-nez v8, :cond_15
const/16 v22, 0x0
goto :goto_8
:cond_15
move-object/from16 v22, v2
:goto_8
new-instance v1, Lo0/e;
const/16 v23, 0x0
move-object v9, v1
invoke-direct/range {v9 .. v23}, Lo0/e;-><init>(ZZIIZZZIIZZZLjava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
return-object v1
:cond_16
const-string v1, "headers"
invoke-static {v1}, Lk0/n/c/h;->c(Ljava/lang/String;)V
const/4 v1, 0x0
throw v1
.end method