.class public final Lcom/google/android/gms/internal/ads/e5;
.super Ljava/lang/Object;
.source ""


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<R::",
        "Lz5/pf0<",
        "TAdT;>;AdT:",
        "Lz5/ke0;",
        ">",
        "Ljava/lang/Object;"
    }
.end annotation


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

.field public final b:Lz5/ex0;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lz5/ex0;"
        }
    .end annotation
.end field

.field public final c:Ljava/util/ArrayDeque;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayDeque<",
            "Lz5/n41<",
            "TR;TAdT;>;>;"
        }
    .end annotation

    .annotation build Ljavax/annotation/concurrent/GuardedBy;
        value = "this"
    .end annotation
.end field

.field public d:Lcom/google/android/gms/internal/ads/f5;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/google/android/gms/internal/ads/f5<",
            "TR;TAdT;>;"
        }
    .end annotation

    .annotation build Ljavax/annotation/concurrent/GuardedBy;
        value = "this"
    .end annotation
.end field

.field public e:I
    .annotation build Ljavax/annotation/concurrent/GuardedBy;
        value = "this"
    .end annotation
.end field


# direct methods
.method public constructor <init>(Lz5/b41;Lz5/y31;Lz5/ex0;)V
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lz5/b41;",
            "Lz5/y31;",
            "Lz5/ex0;",
            ")V"
        }
    .end annotation

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

    const/4 v0, 0x1

    iput v0, p0, Lcom/google/android/gms/internal/ads/e5;->e:I

    iput-object p1, p0, Lcom/google/android/gms/internal/ads/e5;->a:Lz5/b41;

    iput-object p3, p0, Lcom/google/android/gms/internal/ads/e5;->b:Lz5/ex0;

    new-instance p1, Ljava/util/ArrayDeque;

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

    iput-object p1, p0, Lcom/google/android/gms/internal/ads/e5;->c:Ljava/util/ArrayDeque;

    new-instance p1, Lz5/xa0;

    invoke-direct {p1, p0}, Lz5/xa0;-><init>(Lcom/google/android/gms/internal/ads/e5;)V

    .line 1
    iput-object p1, p2, Lz5/y31;->a:Lz5/xa0;

    return-void
.end method


# virtual methods
.method public final declared-synchronized a()V
    .registers 6

    monitor-enter p0

    :try_start_1
    sget-object v0, Lz5/so;->a4:Lz5/no;

    .line 1
    sget-object v1, Lz5/xk;->d:Lz5/xk;

    iget-object v1, v1, Lz5/xk;->c:Lcom/google/android/gms/internal/ads/g0;

    .line 2
    invoke-virtual {v1, v0}, Lcom/google/android/gms/internal/ads/g0;->a(Lz5/no;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_2b

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzg()Lcom/google/android/gms/internal/ads/u1;

    move-result-object v0

    invoke-virtual {v0}, Lcom/google/android/gms/internal/ads/u1;->f()Lcom/google/android/gms/ads/internal/util/zzg;

    move-result-object v0

    invoke-interface {v0}, Lcom/google/android/gms/ads/internal/util/zzg;->zzn()Lz5/s40;

    move-result-object v0

    .line 3
    iget-boolean v0, v0, Lz5/s40;->j:Z

    if-eqz v0, :cond_24

    goto :goto_2b

    .line 4
    :cond_24
    iget-object v0, p0, Lcom/google/android/gms/internal/ads/e5;->c:Ljava/util/ArrayDeque;

    invoke-virtual {v0}, Ljava/util/ArrayDeque;->clear()V
    :try_end_29
    .catchall {:try_start_1 .. :try_end_29} :catchall_8a

    monitor-exit p0

    return-void

    :cond_2b
    :goto_2b
    :try_start_2b
    invoke-virtual {p0}, Lcom/google/android/gms/internal/ads/e5;->b()Z

    move-result v0

    if-eqz v0, :cond_88

    :cond_31
    iget-object v0, p0, Lcom/google/android/gms/internal/ads/e5;->c:Ljava/util/ArrayDeque;

    invoke-virtual {v0}, Ljava/util/ArrayDeque;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_86

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/e5;->c:Ljava/util/ArrayDeque;

    invoke-virtual {v0}, Ljava/util/ArrayDeque;->pollFirst()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lz5/n41;

    if-eqz v0, :cond_71

    invoke-interface {v0}, Lz5/n41;->zzb()Lz5/g41;

    move-result-object v1

    if-eqz v1, :cond_31

    iget-object v1, p0, Lcom/google/android/gms/internal/ads/e5;->a:Lz5/b41;

    invoke-interface {v0}, Lz5/n41;->zzb()Lz5/g41;

    move-result-object v2

    check-cast v1, Lcom/google/android/gms/internal/ads/b5;

    .line 5
    monitor-enter v1
    :try_end_52
    .catchall {:try_start_2b .. :try_end_52} :catchall_8a

    :try_start_52
    iget-object v3, v1, Lcom/google/android/gms/internal/ads/b5;->a:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v3, v2}, Ljava/util/concurrent/ConcurrentHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lz5/a41;

    const/4 v3, 0x1

    if-eqz v2, :cond_67

    invoke-virtual {v2}, Lz5/a41;->b()I

    move-result v2

    iget-object v4, v1, Lcom/google/android/gms/internal/ads/b5;->b:Lcom/google/android/gms/internal/ads/d5;

    iget v4, v4, Lcom/google/android/gms/internal/ads/d5;->v:I
    :try_end_65
    .catchall {:try_start_52 .. :try_end_65} :catchall_6e

    if-ge v2, v4, :cond_69

    :cond_67
    :try_start_67
    monitor-exit v1

    goto :goto_6b

    :cond_69
    const/4 v3, 0x0

    monitor-exit v1

    :goto_6b
    if-eqz v3, :cond_31

    goto :goto_71

    :catchall_6e
    move-exception v0

    monitor-exit v1

    throw v0

    .line 6
    :cond_71
    :goto_71
    new-instance v1, Lcom/google/android/gms/internal/ads/f5;

    iget-object v2, p0, Lcom/google/android/gms/internal/ads/e5;->a:Lz5/b41;

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

    invoke-direct {v1, v2, v3, v0}, Lcom/google/android/gms/internal/ads/f5;-><init>(Lz5/b41;Lz5/ex0;Lz5/n41;)V

    iput-object v1, p0, Lcom/google/android/gms/internal/ads/e5;->d:Lcom/google/android/gms/internal/ads/f5;

    new-instance v2, Lz5/ll0;

    invoke-direct {v2, p0, v0}, Lz5/ll0;-><init>(Lcom/google/android/gms/internal/ads/e5;Lz5/n41;)V

    invoke-virtual {v1, v2}, Lcom/google/android/gms/internal/ads/f5;->a(Lz5/zb1;)V
    :try_end_84
    .catchall {:try_start_67 .. :try_end_84} :catchall_8a

    monitor-exit p0

    return-void

    :cond_86
    monitor-exit p0

    return-void

    :cond_88
    monitor-exit p0

    return-void

    :catchall_8a
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public final declared-synchronized b()Z
    .registers 2

    monitor-enter p0

    :try_start_1
    iget-object v0, p0, Lcom/google/android/gms/internal/ads/e5;->d:Lcom/google/android/gms/internal/ads/f5;
    :try_end_3
    .catchall {:try_start_1 .. :try_end_3} :catchall_a

    if-nez v0, :cond_8

    const/4 v0, 0x1

    :goto_6
    monitor-exit p0

    return v0

    :cond_8
    const/4 v0, 0x0

    goto :goto_6

    :catchall_a
    move-exception v0

    monitor-exit p0

    throw v0
.end method
