.class public final Lz5/nr0;
.super Ljava/lang/Object;
.source ""


# instance fields
.field public final a:Lz5/ir0;

.field public final b:Lcom/google/android/gms/internal/ads/h3;

.field public final c:Ljava/lang/Object;

.field public final d:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lz5/mr0;",
            ">;"
        }
    .end annotation
.end field

.field public e:Z


# direct methods
.method public constructor <init>(Lz5/ir0;Lcom/google/android/gms/internal/ads/h3;)V
    .registers 4

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

    new-instance v0, Ljava/lang/Object;

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

    iput-object v0, p0, Lz5/nr0;->c:Ljava/lang/Object;

    iput-object p1, p0, Lz5/nr0;->a:Lz5/ir0;

    iput-object p2, p0, Lz5/nr0;->b:Lcom/google/android/gms/internal/ads/h3;

    new-instance p1, Ljava/util/ArrayList;

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

    iput-object p1, p0, Lz5/nr0;->d:Ljava/util/List;

    return-void
.end method


# virtual methods
.method public final a()Lorg/json/JSONArray;
    .registers 7

    new-instance v0, Lorg/json/JSONArray;

    invoke-direct {v0}, Lorg/json/JSONArray;-><init>()V

    iget-object v1, p0, Lz5/nr0;->c:Ljava/lang/Object;

    monitor-enter v1

    :try_start_8
    iget-boolean v2, p0, Lz5/nr0;->e:Z

    if-nez v2, :cond_2d

    iget-object v2, p0, Lz5/nr0;->a:Lz5/ir0;

    .line 1
    iget-boolean v3, v2, Lz5/ir0;->b:Z

    if-eqz v3, :cond_1a

    .line 2
    invoke-virtual {v2}, Lz5/ir0;->b()Ljava/util/List;

    move-result-object v2

    invoke-virtual {p0, v2}, Lz5/nr0;->b(Ljava/util/List;)V

    goto :goto_2d

    .line 3
    :cond_1a
    new-instance v3, Lz5/jn;

    invoke-direct {v3, p0}, Lz5/jn;-><init>(Lz5/nr0;)V

    .line 4
    iget-object v4, v2, Lz5/ir0;->e:Lcom/google/android/gms/internal/ads/y1;

    new-instance v5, Ll5/l;

    invoke-direct {v5, v2, v3}, Ll5/l;-><init>(Lz5/ir0;Lz5/tv;)V

    iget-object v2, v2, Lz5/ir0;->j:Ljava/util/concurrent/Executor;

    invoke-virtual {v4, v5, v2}, Lcom/google/android/gms/internal/ads/y1;->zze(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)V

    .line 5
    monitor-exit v1

    return-object v0

    :cond_2d
    :goto_2d
    iget-object v2, p0, Lz5/nr0;->d:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

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

    move-result v3

    if-eqz v3, :cond_47

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

    move-result-object v3

    check-cast v3, Lz5/mr0;

    invoke-virtual {v3}, Lz5/mr0;->a()Lorg/json/JSONObject;

    move-result-object v3

    invoke-virtual {v0, v3}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;

    goto :goto_33

    :cond_47
    monitor-exit v1

    return-object v0

    :catchall_49
    move-exception v0

    monitor-exit v1
    :try_end_4b
    .catchall {:try_start_8 .. :try_end_4b} :catchall_49

    throw v0
.end method

.method public final b(Ljava/util/List;)V
    .registers 12
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lz5/nv;",
            ">;)V"
        }
    .end annotation

    iget-object v0, p0, Lz5/nr0;->c:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    iget-boolean v1, p0, Lz5/nr0;->e:Z

    if-eqz v1, :cond_9

    monitor-exit v0

    return-void

    :cond_9
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

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

    move-result v1

    if-eqz v1, :cond_4c

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

    move-result-object v1

    check-cast v1, Lz5/nv;

    iget-object v2, p0, Lz5/nr0;->d:Ljava/util/List;

    new-instance v9, Lz5/mr0;

    iget-object v4, v1, Lz5/nv;->r:Ljava/lang/String;

    iget-object v3, p0, Lz5/nr0;->b:Lcom/google/android/gms/internal/ads/h3;

    .line 1
    monitor-enter v3
    :try_end_22
    .catchall {:try_start_3 .. :try_end_22} :catchall_51

    :try_start_22
    iget-object v5, v3, Lcom/google/android/gms/internal/ads/h3;->a:Ljava/util/Map;

    invoke-interface {v5, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lcom/google/android/gms/internal/ads/g3;
    :try_end_2a
    .catchall {:try_start_22 .. :try_end_2a} :catchall_49

    :try_start_2a
    monitor-exit v3

    if-nez v5, :cond_2e

    goto :goto_32

    .line 2
    :cond_2e
    iget-object v3, v5, Lcom/google/android/gms/internal/ads/g3;->b:Lcom/google/android/gms/internal/ads/z0;

    if-nez v3, :cond_36

    :goto_32
    const-string v3, ""

    :goto_34
    move-object v5, v3

    goto :goto_3b

    :cond_36
    invoke-virtual {v3}, Lcom/google/android/gms/internal/ads/z0;->toString()Ljava/lang/String;

    move-result-object v3

    goto :goto_34

    :goto_3b
    iget-boolean v6, v1, Lz5/nv;->s:Z

    iget-object v7, v1, Lz5/nv;->u:Ljava/lang/String;

    iget v8, v1, Lz5/nv;->t:I

    move-object v3, v9

    invoke-direct/range {v3 .. v8}, Lz5/mr0;-><init>(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;I)V

    invoke-interface {v2, v9}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_d

    :catchall_49
    move-exception p1

    .line 3
    monitor-exit v3

    throw p1

    :cond_4c
    const/4 p1, 0x1

    .line 4
    iput-boolean p1, p0, Lz5/nr0;->e:Z

    monitor-exit v0

    return-void

    :catchall_51
    move-exception p1

    monitor-exit v0
    :try_end_53
    .catchall {:try_start_2a .. :try_end_53} :catchall_51

    throw p1
.end method
