.class public final Lx9/a;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Lv9/x;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lx9/a$a;
    }
.end annotation


# static fields
.field public static final a:Lx9/a$a;


# direct methods
.method public static constructor <clinit>()V
    .registers 2

    new-instance v0, Lx9/a$a;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Lx9/a$a;-><init>(Li9/c;)V

    sput-object v0, Lx9/a;->a:Lx9/a$a;

    return-void
.end method

.method public constructor <init>()V
    .registers 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Lv9/x$a;)Lv9/g0;
    .registers 19

    move-object/from16 v0, p1

    check-cast v0, Laa/g;

    .line 1
    iget-object v1, v0, Laa/g;->b:Lz9/d;

    .line 2
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    .line 3
    iget-object v2, v0, Laa/g;->f:Lv9/c0;

    const-string v3, "request"

    .line 4
    invoke-static {v2, v3}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    .line 5
    new-instance v3, Lx9/b;

    const/4 v4, 0x0

    invoke-direct {v3, v2, v4}, Lx9/b;-><init>(Lv9/c0;Lv9/g0;)V

    .line 6
    invoke-virtual {v2}, Lv9/c0;->a()Lv9/e;

    move-result-object v2

    .line 7
    iget-boolean v2, v2, Lv9/e;->j:Z

    if-eqz v2, :cond_23

    .line 8
    new-instance v3, Lx9/b;

    invoke-direct {v3, v4, v4}, Lx9/b;-><init>(Lv9/c0;Lv9/g0;)V

    .line 9
    :cond_23
    iget-object v2, v3, Lx9/b;->a:Lv9/c0;

    .line 10
    iget-object v3, v3, Lx9/b;->b:Lv9/g0;

    .line 11
    instance-of v5, v1, Lz9/d;

    const-string v5, "call"

    if-nez v2, :cond_5d

    if-nez v3, :cond_5d

    new-instance v2, Lv9/g0$a;

    invoke-direct {v2}, Lv9/g0$a;-><init>()V

    .line 12
    iget-object v0, v0, Laa/g;->f:Lv9/c0;

    .line 13
    invoke-virtual {v2, v0}, Lv9/g0$a;->g(Lv9/c0;)Lv9/g0$a;

    sget-object v0, Lv9/b0;->t:Lv9/b0;

    invoke-virtual {v2, v0}, Lv9/g0$a;->f(Lv9/b0;)Lv9/g0$a;

    const/16 v0, 0x1f8

    .line 14
    iput v0, v2, Lv9/g0$a;->c:I

    const-string v0, "Unsatisfiable Request (only-if-cached)"

    .line 15
    invoke-virtual {v2, v0}, Lv9/g0$a;->e(Ljava/lang/String;)Lv9/g0$a;

    sget-object v0, Lw9/c;->c:Lv9/h0;

    .line 16
    iput-object v0, v2, Lv9/g0$a;->g:Lv9/h0;

    const-wide/16 v3, -0x1

    .line 17
    iput-wide v3, v2, Lv9/g0$a;->k:J

    .line 18
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v3

    .line 19
    iput-wide v3, v2, Lv9/g0$a;->l:J

    .line 20
    invoke-virtual {v2}, Lv9/g0$a;->a()Lv9/g0;

    move-result-object v0

    .line 21
    invoke-static {v1, v5}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    return-object v0

    :cond_5d
    if-nez v2, :cond_78

    .line 22
    invoke-static {v3}, Lx/e;->d(Ljava/lang/Object;)V

    .line 23
    new-instance v0, Lv9/g0$a;

    invoke-direct {v0, v3}, Lv9/g0$a;-><init>(Lv9/g0;)V

    .line 24
    sget-object v2, Lx9/a;->a:Lx9/a$a;

    invoke-static {v2, v3}, Lx9/a$a;->a(Lx9/a$a;Lv9/g0;)Lv9/g0;

    move-result-object v2

    invoke-virtual {v0, v2}, Lv9/g0$a;->b(Lv9/g0;)Lv9/g0$a;

    invoke-virtual {v0}, Lv9/g0$a;->a()Lv9/g0;

    move-result-object v0

    .line 25
    invoke-static {v1, v5}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    return-object v0

    :cond_78
    if-eqz v3, :cond_7d

    .line 26
    invoke-static {v1, v5}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    .line 27
    :cond_7d
    :try_start_7d
    move-object/from16 v0, p1

    check-cast v0, Laa/g;

    invoke-virtual {v0, v2}, Laa/g;->b(Lv9/c0;)Lv9/g0;

    move-result-object v0
    :try_end_85
    .catchall {:try_start_7d .. :try_end_85} :catchall_191

    const-string v1, "networkResponse"

    if-eqz v3, :cond_175

    .line 28
    iget v2, v0, Lv9/g0;->u:I

    const/16 v5, 0x130

    if-ne v2, v5, :cond_16e

    .line 29
    new-instance v2, Lv9/g0$a;

    invoke-direct {v2, v3}, Lv9/g0$a;-><init>(Lv9/g0;)V

    .line 30
    sget-object v5, Lx9/a;->a:Lx9/a$a;

    .line 31
    iget-object v6, v3, Lv9/g0;->w:Lv9/v;

    iget-object v7, v0, Lv9/g0;->w:Lv9/v;

    .line 32
    new-instance v8, Ljava/util/ArrayList;

    const/16 v9, 0x14

    invoke-direct {v8, v9}, Ljava/util/ArrayList;-><init>(I)V

    .line 33
    invoke-virtual {v6}, Lv9/v;->size()I

    move-result v9

    const/4 v11, 0x0

    :goto_a6
    const-string v12, "value"

    const-string v13, "name"

    if-ge v11, v9, :cond_f8

    invoke-virtual {v6, v11}, Lv9/v;->c(I)Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v6, v11}, Lv9/v;->g(I)Ljava/lang/String;

    move-result-object v15

    const-string v4, "Warning"

    const/4 v10, 0x1

    invoke-static {v4, v14, v10}, Lp9/h;->r(Ljava/lang/String;Ljava/lang/String;Z)Z

    move-result v4

    if-eqz v4, :cond_ca

    const/4 v4, 0x2

    const-string v10, "1"

    move-object/from16 v16, v6

    const/4 v6, 0x0

    invoke-static {v15, v10, v6, v4}, Lp9/h;->y(Ljava/lang/String;Ljava/lang/String;ZI)Z

    move-result v4

    if-eqz v4, :cond_cc

    goto :goto_f2

    :cond_ca
    move-object/from16 v16, v6

    :cond_cc
    invoke-virtual {v5, v14}, Lx9/a$a;->b(Ljava/lang/String;)Z

    move-result v4

    if-nez v4, :cond_de

    invoke-virtual {v5, v14}, Lx9/a$a;->c(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_de

    invoke-virtual {v7, v14}, Lv9/v;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    if-nez v4, :cond_f2

    .line 34
    :cond_de
    invoke-static {v14, v13}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-static {v15, v12}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {v8, v14}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    invoke-static {v15}, Lp9/l;->R(Ljava/lang/CharSequence;)Ljava/lang/CharSequence;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v8, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_f2
    :goto_f2
    add-int/lit8 v11, v11, 0x1

    move-object/from16 v6, v16

    const/4 v4, 0x0

    goto :goto_a6

    .line 35
    :cond_f8
    invoke-virtual {v7}, Lv9/v;->size()I

    move-result v4

    const/4 v6, 0x0

    :goto_fd
    if-ge v6, v4, :cond_12a

    invoke-virtual {v7, v6}, Lv9/v;->c(I)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v5, v9}, Lx9/a$a;->b(Ljava/lang/String;)Z

    move-result v10

    if-nez v10, :cond_127

    invoke-virtual {v5, v9}, Lx9/a$a;->c(Ljava/lang/String;)Z

    move-result v10

    if-eqz v10, :cond_127

    invoke-virtual {v7, v6}, Lv9/v;->g(I)Ljava/lang/String;

    move-result-object v10

    .line 36
    invoke-static {v9, v13}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-static {v10, v12}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {v8, v9}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    invoke-static {v10}, Lp9/l;->R(Ljava/lang/CharSequence;)Ljava/lang/CharSequence;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_127
    add-int/lit8 v6, v6, 0x1

    goto :goto_fd

    .line 37
    :cond_12a
    new-instance v4, Lv9/v;

    const/4 v5, 0x0

    new-array v5, v5, [Ljava/lang/String;

    invoke-virtual {v8, v5}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

    move-result-object v5

    const-string v6, "null cannot be cast to non-null type kotlin.Array<T>"

    invoke-static {v5, v6}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;

    check-cast v5, [Ljava/lang/String;

    const/4 v6, 0x0

    invoke-direct {v4, v5, v6}, Lv9/v;-><init>([Ljava/lang/String;Li9/c;)V

    .line 38
    invoke-virtual {v2, v4}, Lv9/g0$a;->d(Lv9/v;)Lv9/g0$a;

    .line 39
    iget-wide v4, v0, Lv9/g0;->B:J

    .line 40
    iput-wide v4, v2, Lv9/g0$a;->k:J

    .line 41
    iget-wide v4, v0, Lv9/g0;->C:J

    .line 42
    iput-wide v4, v2, Lv9/g0$a;->l:J

    .line 43
    sget-object v4, Lx9/a;->a:Lx9/a$a;

    invoke-static {v4, v3}, Lx9/a$a;->a(Lx9/a$a;Lv9/g0;)Lv9/g0;

    move-result-object v3

    invoke-virtual {v2, v3}, Lv9/g0$a;->b(Lv9/g0;)Lv9/g0$a;

    invoke-static {v4, v0}, Lx9/a$a;->a(Lx9/a$a;Lv9/g0;)Lv9/g0;

    move-result-object v3

    .line 44
    invoke-virtual {v2, v1, v3}, Lv9/g0$a;->c(Ljava/lang/String;Lv9/g0;)V

    iput-object v3, v2, Lv9/g0$a;->h:Lv9/g0;

    .line 45
    invoke-virtual {v2}, Lv9/g0$a;->a()Lv9/g0;

    .line 46
    iget-object v0, v0, Lv9/g0;->x:Lv9/h0;

    .line 47
    invoke-static {v0}, Lx/e;->d(Ljava/lang/Object;)V

    invoke-virtual {v0}, Lv9/h0;->close()V

    const/4 v0, 0x0

    invoke-static {v0}, Lx/e;->d(Ljava/lang/Object;)V

    invoke-virtual {v0}, Lv9/d;->b()V

    throw v0

    .line 48
    :cond_16e
    iget-object v2, v3, Lv9/g0;->x:Lv9/h0;

    if-eqz v2, :cond_175

    .line 49
    invoke-static {v2}, Lw9/c;->d(Ljava/io/Closeable;)V

    .line 50
    :cond_175
    new-instance v2, Lv9/g0$a;

    invoke-direct {v2, v0}, Lv9/g0$a;-><init>(Lv9/g0;)V

    .line 51
    sget-object v4, Lx9/a;->a:Lx9/a$a;

    invoke-static {v4, v3}, Lx9/a$a;->a(Lx9/a$a;Lv9/g0;)Lv9/g0;

    move-result-object v3

    invoke-virtual {v2, v3}, Lv9/g0$a;->b(Lv9/g0;)Lv9/g0$a;

    invoke-static {v4, v0}, Lx9/a$a;->a(Lx9/a$a;Lv9/g0;)Lv9/g0;

    move-result-object v0

    .line 52
    invoke-virtual {v2, v1, v0}, Lv9/g0$a;->c(Ljava/lang/String;Lv9/g0;)V

    iput-object v0, v2, Lv9/g0$a;->h:Lv9/g0;

    .line 53
    invoke-virtual {v2}, Lv9/g0$a;->a()Lv9/g0;

    move-result-object v0

    return-object v0

    :catchall_191
    move-exception v0

    throw v0
.end method
