.class public final Lq8/g$a;
.super Ln8/w;
.source ""


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lq8/g;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x11
    name = "a"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "<K:",
        "Ljava/lang/Object;",
        "V:",
        "Ljava/lang/Object;",
        ">",
        "Ln8/w<",
        "Ljava/util/Map<",
        "TK;TV;>;>;"
    }
.end annotation


# instance fields
.field public final a:Ln8/w;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ln8/w<",
            "TK;>;"
        }
    .end annotation
.end field

.field public final b:Ln8/w;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ln8/w<",
            "TV;>;"
        }
    .end annotation
.end field

.field public final c:Lp8/s;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lp8/s<",
            "+",
            "Ljava/util/Map<",
            "TK;TV;>;>;"
        }
    .end annotation
.end field

.field public final synthetic d:Lq8/g;


# direct methods
.method public constructor <init>(Lq8/g;Ln8/h;Ljava/lang/reflect/Type;Ln8/w;Ljava/lang/reflect/Type;Ln8/w;Lp8/s;)V
    .registers 8
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ln8/h;",
            "Ljava/lang/reflect/Type;",
            "Ln8/w<",
            "TK;>;",
            "Ljava/lang/reflect/Type;",
            "Ln8/w<",
            "TV;>;",
            "Lp8/s<",
            "+",
            "Ljava/util/Map<",
            "TK;TV;>;>;)V"
        }
    .end annotation

    iput-object p1, p0, Lq8/g$a;->d:Lq8/g;

    invoke-direct {p0}, Ln8/w;-><init>()V

    new-instance p1, Lq8/n;

    invoke-direct {p1, p2, p4, p3}, Lq8/n;-><init>(Ln8/h;Ln8/w;Ljava/lang/reflect/Type;)V

    iput-object p1, p0, Lq8/g$a;->a:Ln8/w;

    new-instance p1, Lq8/n;

    invoke-direct {p1, p2, p6, p5}, Lq8/n;-><init>(Ln8/h;Ln8/w;Ljava/lang/reflect/Type;)V

    iput-object p1, p0, Lq8/g$a;->b:Ln8/w;

    iput-object p7, p0, Lq8/g$a;->c:Lp8/s;

    return-void
.end method


# virtual methods
.method public a(Lu8/a;)Ljava/lang/Object;
    .registers 6

    .line 1
    invoke-virtual {p1}, Lu8/a;->e0()Lu8/b;

    move-result-object v0

    sget-object v1, Lu8/b;->z:Lu8/b;

    if-ne v0, v1, :cond_d

    invoke-virtual {p1}, Lu8/a;->a0()V

    const/4 p1, 0x0

    goto :goto_7a

    :cond_d
    iget-object v1, p0, Lq8/g$a;->c:Lp8/s;

    invoke-interface {v1}, Lp8/s;->a()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/Map;

    sget-object v2, Lu8/b;->r:Lu8/b;

    const-string v3, "duplicate key: "

    if-ne v0, v2, :cond_4b

    invoke-virtual {p1}, Lu8/a;->b()V

    :goto_1e
    invoke-virtual {p1}, Lu8/a;->I()Z

    move-result v0

    if-eqz v0, :cond_47

    invoke-virtual {p1}, Lu8/a;->b()V

    iget-object v0, p0, Lq8/g$a;->a:Ln8/w;

    invoke-virtual {v0, p1}, Ln8/w;->a(Lu8/a;)Ljava/lang/Object;

    move-result-object v0

    iget-object v2, p0, Lq8/g$a;->b:Ln8/w;

    invoke-virtual {v2, p1}, Ln8/w;->a(Lu8/a;)Ljava/lang/Object;

    move-result-object v2

    invoke-interface {v1, v0, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    if-nez v2, :cond_3d

    invoke-virtual {p1}, Lu8/a;->o()V

    goto :goto_1e

    :cond_3d
    new-instance p1, Ln8/u;

    invoke-static {v3, v0}, Lx/d;->a(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {p1, v0}, Ln8/u;-><init>(Ljava/lang/String;)V

    throw p1

    :cond_47
    invoke-virtual {p1}, Lu8/a;->o()V

    goto :goto_79

    :cond_4b
    invoke-virtual {p1}, Lu8/a;->e()V

    :goto_4e
    invoke-virtual {p1}, Lu8/a;->I()Z

    move-result v0

    if-eqz v0, :cond_76

    sget-object v0, Lz5/ka1;->a:Lz5/ka1;

    invoke-virtual {v0, p1}, Lz5/ka1;->a(Lu8/a;)V

    iget-object v0, p0, Lq8/g$a;->a:Ln8/w;

    invoke-virtual {v0, p1}, Ln8/w;->a(Lu8/a;)Ljava/lang/Object;

    move-result-object v0

    iget-object v2, p0, Lq8/g$a;->b:Ln8/w;

    invoke-virtual {v2, p1}, Ln8/w;->a(Lu8/a;)Ljava/lang/Object;

    move-result-object v2

    invoke-interface {v1, v0, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    if-nez v2, :cond_6c

    goto :goto_4e

    :cond_6c
    new-instance p1, Ln8/u;

    invoke-static {v3, v0}, Lx/d;->a(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {p1, v0}, Ln8/u;-><init>(Ljava/lang/String;)V

    throw p1

    :cond_76
    invoke-virtual {p1}, Lu8/a;->p()V

    :goto_79
    move-object p1, v1

    :goto_7a
    return-object p1
.end method

.method public b(Lu8/c;Ljava/lang/Object;)V
    .registers 11

    check-cast p2, Ljava/util/Map;

    if-nez p2, :cond_9

    .line 1
    invoke-virtual {p1}, Lu8/c;->I()Lu8/c;

    goto/16 :goto_148

    :cond_9
    iget-object v0, p0, Lq8/g$a;->d:Lq8/g;

    iget-boolean v0, v0, Lq8/g;->s:Z

    if-nez v0, :cond_3b

    invoke-virtual {p1}, Lu8/c;->g()Lu8/c;

    invoke-interface {p2}, Ljava/util/Map;->entrySet()Ljava/util/Set;

    move-result-object p2

    invoke-interface {p2}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object p2

    :goto_1a
    invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_145

    invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/Map$Entry;

    invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v1

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v1}, Lu8/c;->q(Ljava/lang/String;)Lu8/c;

    iget-object v1, p0, Lq8/g$a;->b:Ln8/w;

    invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v0

    invoke-virtual {v1, p1, v0}, Ln8/w;->b(Lu8/c;Ljava/lang/Object;)V

    goto :goto_1a

    :cond_3b
    new-instance v0, Ljava/util/ArrayList;

    invoke-interface {p2}, Ljava/util/Map;->size()I

    move-result v1

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

    new-instance v1, Ljava/util/ArrayList;

    invoke-interface {p2}, Ljava/util/Map;->size()I

    move-result v2

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

    invoke-interface {p2}, Ljava/util/Map;->entrySet()Ljava/util/Set;

    move-result-object p2

    invoke-interface {p2}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object p2

    const/4 v2, 0x0

    move v3, v2

    :goto_57
    invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-eqz v4, :cond_b9

    invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/util/Map$Entry;

    iget-object v5, p0, Lq8/g$a;->a:Ln8/w;

    invoke-interface {v4}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v6

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

    .line 2
    :try_start_6c
    new-instance v7, Lq8/f;

    invoke-direct {v7}, Lq8/f;-><init>()V

    invoke-virtual {v5, v7, v6}, Ln8/w;->b(Lu8/c;Ljava/lang/Object;)V

    .line 3
    iget-object v5, v7, Lq8/f;->A:Ljava/util/List;

    invoke-interface {v5}, Ljava/util/List;->isEmpty()Z

    move-result v5

    if-eqz v5, :cond_99

    iget-object v5, v7, Lq8/f;->C:Ln8/m;
    :try_end_7e
    .catch Ljava/io/IOException; {:try_start_6c .. :try_end_7e} :catch_b2

    .line 4
    invoke-virtual {v0, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    invoke-interface {v4}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v4

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

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

    .line 5
    instance-of v4, v5, Ln8/j;

    if-nez v4, :cond_96

    .line 6
    instance-of v4, v5, Ln8/p;

    if-eqz v4, :cond_94

    goto :goto_96

    :cond_94
    move v4, v2

    goto :goto_97

    :cond_96
    :goto_96
    const/4 v4, 0x1

    :goto_97
    or-int/2addr v3, v4

    goto :goto_57

    .line 7
    :cond_99
    :try_start_99
    new-instance p1, Ljava/lang/IllegalStateException;

    new-instance p2, Ljava/lang/StringBuilder;

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

    const-string v0, "Expected one JSON element but was "

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v0, v7, Lq8/f;->A:Ljava/util/List;

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw p1
    :try_end_b2
    .catch Ljava/io/IOException; {:try_start_99 .. :try_end_b2} :catch_b2

    :catch_b2
    move-exception p1

    .line 8
    new-instance p2, Ln8/n;

    invoke-direct {p2, p1}, Ln8/n;-><init>(Ljava/lang/Throwable;)V

    throw p2

    :cond_b9
    if-eqz v3, :cond_e5

    .line 9
    invoke-virtual {p1}, Lu8/c;->e()Lu8/c;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result p2

    :goto_c2
    if-ge v2, p2, :cond_e1

    invoke-virtual {p1}, Lu8/c;->e()Lu8/c;

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ln8/m;

    .line 10
    sget-object v4, Lq8/o;->C:Ln8/w;

    invoke-virtual {v4, p1, v3}, Ln8/w;->b(Lu8/c;Ljava/lang/Object;)V

    .line 11
    iget-object v3, p0, Lq8/g$a;->b:Ln8/w;

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    invoke-virtual {v3, p1, v4}, Ln8/w;->b(Lu8/c;Ljava/lang/Object;)V

    invoke-virtual {p1}, Lu8/c;->o()Lu8/c;

    add-int/lit8 v2, v2, 0x1

    goto :goto_c2

    :cond_e1
    invoke-virtual {p1}, Lu8/c;->o()Lu8/c;

    goto :goto_148

    :cond_e5
    invoke-virtual {p1}, Lu8/c;->g()Lu8/c;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result p2

    :goto_ec
    if-ge v2, p2, :cond_145

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ln8/m;

    .line 12
    invoke-static {v3}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    .line 13
    instance-of v4, v3, Ln8/r;

    if-eqz v4, :cond_12a

    .line 14
    invoke-virtual {v3}, Ln8/m;->a()Ln8/r;

    move-result-object v3

    .line 15
    iget-object v4, v3, Ln8/r;->a:Ljava/lang/Object;

    instance-of v5, v4, Ljava/lang/Number;

    if-eqz v5, :cond_10e

    .line 16
    invoke-virtual {v3}, Ln8/r;->e()Ljava/lang/Number;

    move-result-object v3

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    goto :goto_130

    .line 17
    :cond_10e
    instance-of v5, v4, Ljava/lang/Boolean;

    if-eqz v5, :cond_11b

    .line 18
    invoke-virtual {v3}, Ln8/r;->c()Z

    move-result v3

    invoke-static {v3}, Ljava/lang/Boolean;->toString(Z)Ljava/lang/String;

    move-result-object v3

    goto :goto_130

    .line 19
    :cond_11b
    instance-of v4, v4, Ljava/lang/String;

    if-eqz v4, :cond_124

    .line 20
    invoke-virtual {v3}, Ln8/r;->g()Ljava/lang/String;

    move-result-object v3

    goto :goto_130

    :cond_124
    new-instance p1, Ljava/lang/AssertionError;

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

    throw p1

    .line 21
    :cond_12a
    instance-of v3, v3, Ln8/o;

    if-eqz v3, :cond_13f

    const-string v3, "null"

    .line 22
    :goto_130
    invoke-virtual {p1, v3}, Lu8/c;->q(Ljava/lang/String;)Lu8/c;

    iget-object v3, p0, Lq8/g$a;->b:Ln8/w;

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    invoke-virtual {v3, p1, v4}, Ln8/w;->b(Lu8/c;Ljava/lang/Object;)V

    add-int/lit8 v2, v2, 0x1

    goto :goto_ec

    .line 23
    :cond_13f
    new-instance p1, Ljava/lang/AssertionError;

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

    throw p1

    .line 24
    :cond_145
    invoke-virtual {p1}, Lu8/c;->p()Lu8/c;

    :goto_148
    return-void
.end method
