.class public abstract Lz5/pm1;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Lz5/tp1;


# instance fields
.field public final a:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Lz5/sp1;",
            ">;"
        }
    .end annotation
.end field

.field public final b:Ljava/util/HashSet;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashSet<",
            "Lz5/sp1;",
            ">;"
        }
    .end annotation
.end field

.field public final c:Lz5/c31;

.field public final d:Lz5/c31;

.field public e:Landroid/os/Looper;

.field public f:Lz5/r4;


# direct methods
.method public constructor <init>()V
    .registers 3

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

    new-instance v0, Ljava/util/ArrayList;

    const/4 v1, 0x1

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

    iput-object v0, p0, Lz5/pm1;->a:Ljava/util/ArrayList;

    new-instance v0, Ljava/util/HashSet;

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

    iput-object v0, p0, Lz5/pm1;->b:Ljava/util/HashSet;

    new-instance v0, Lz5/c31;

    invoke-direct {v0, v1}, Lz5/c31;-><init>(I)V

    iput-object v0, p0, Lz5/pm1;->c:Lz5/c31;

    new-instance v0, Lz5/c31;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Lz5/c31;-><init>(I)V

    iput-object v0, p0, Lz5/pm1;->d:Lz5/c31;

    return-void
.end method


# virtual methods
.method public final a(Landroid/os/Handler;Lz5/xp1;)V
    .registers 5

    iget-object v0, p0, Lz5/pm1;->c:Lz5/c31;

    .line 1
    iget-object v0, v0, Lz5/c31;->c:Ljava/util/concurrent/CopyOnWriteArrayList;

    new-instance v1, Lz5/wp1;

    invoke-direct {v1, p1, p2}, Lz5/wp1;-><init>(Landroid/os/Handler;Lz5/xp1;)V

    invoke-virtual {v0, v1}, Ljava/util/concurrent/CopyOnWriteArrayList;->add(Ljava/lang/Object;)Z

    return-void
.end method

.method public final d(Lz5/sp1;)V
    .registers 3

    iget-object v0, p0, Lz5/pm1;->a:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z

    iget-object v0, p0, Lz5/pm1;->a:Ljava/util/ArrayList;

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

    move-result v0

    if-eqz v0, :cond_1b

    const/4 p1, 0x0

    iput-object p1, p0, Lz5/pm1;->e:Landroid/os/Looper;

    iput-object p1, p0, Lz5/pm1;->f:Lz5/r4;

    iget-object p1, p0, Lz5/pm1;->b:Ljava/util/HashSet;

    invoke-virtual {p1}, Ljava/util/HashSet;->clear()V

    invoke-virtual {p0}, Lz5/pm1;->n()V

    return-void

    :cond_1b
    invoke-virtual {p0, p1}, Lz5/pm1;->j(Lz5/sp1;)V

    return-void
.end method

.method public final e(Lz5/p31;)V
    .registers 6

    iget-object v0, p0, Lz5/pm1;->d:Lz5/c31;

    .line 1
    iget-object v1, v0, Lz5/c31;->c:Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-virtual {v1}, Ljava/util/concurrent/CopyOnWriteArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_8
    :goto_8
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_1e

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

    move-result-object v2

    check-cast v2, Lz5/v21;

    iget-object v3, v2, Lz5/v21;->a:Lz5/p31;

    if-ne v3, p1, :cond_8

    iget-object v3, v0, Lz5/c31;->c:Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-virtual {v3, v2}, Ljava/util/concurrent/CopyOnWriteArrayList;->remove(Ljava/lang/Object;)Z

    goto :goto_8

    :cond_1e
    return-void
.end method

.method public final f(Lz5/sp1;Lz5/rf;)V
    .registers 6

    invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;

    move-result-object v0

    iget-object v1, p0, Lz5/pm1;->e:Landroid/os/Looper;

    if-eqz v1, :cond_d

    if-ne v1, v0, :cond_b

    goto :goto_d

    :cond_b
    const/4 v1, 0x0

    goto :goto_e

    :cond_d
    :goto_d
    const/4 v1, 0x1

    :goto_e
    invoke-static {v1}, Lcom/google/android/gms/internal/ads/d;->e(Z)V

    iget-object v1, p0, Lz5/pm1;->f:Lz5/r4;

    iget-object v2, p0, Lz5/pm1;->a:Ljava/util/ArrayList;

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

    iget-object v2, p0, Lz5/pm1;->e:Landroid/os/Looper;

    if-nez v2, :cond_27

    iput-object v0, p0, Lz5/pm1;->e:Landroid/os/Looper;

    iget-object v0, p0, Lz5/pm1;->b:Ljava/util/HashSet;

    invoke-virtual {v0, p1}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z

    invoke-virtual {p0, p2}, Lz5/pm1;->l(Lz5/rf;)V

    return-void

    :cond_27
    if-eqz v1, :cond_2f

    invoke-virtual {p0, p1}, Lz5/pm1;->h(Lz5/sp1;)V

    invoke-interface {p1, p0, v1}, Lz5/sp1;->a(Lz5/tp1;Lz5/r4;)V

    :cond_2f
    return-void
.end method

.method public final g(Landroid/os/Handler;Lz5/p31;)V
    .registers 5

    iget-object v0, p0, Lz5/pm1;->d:Lz5/c31;

    .line 1
    iget-object v0, v0, Lz5/c31;->c:Ljava/util/concurrent/CopyOnWriteArrayList;

    new-instance v1, Lz5/v21;

    invoke-direct {v1, p1, p2}, Lz5/v21;-><init>(Landroid/os/Handler;Lz5/p31;)V

    invoke-virtual {v0, v1}, Ljava/util/concurrent/CopyOnWriteArrayList;->add(Ljava/lang/Object;)Z

    return-void
.end method

.method public final h(Lz5/sp1;)V
    .registers 4

    iget-object v0, p0, Lz5/pm1;->e:Landroid/os/Looper;

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

    iget-object v0, p0, Lz5/pm1;->b:Ljava/util/HashSet;

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

    move-result v0

    iget-object v1, p0, Lz5/pm1;->b:Ljava/util/HashSet;

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

    if-eqz v0, :cond_15

    invoke-virtual {p0}, Lz5/pm1;->k()V

    :cond_15
    return-void
.end method

.method public final i(Lz5/xp1;)V
    .registers 6

    iget-object v0, p0, Lz5/pm1;->c:Lz5/c31;

    .line 1
    iget-object v1, v0, Lz5/c31;->c:Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-virtual {v1}, Ljava/util/concurrent/CopyOnWriteArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_8
    :goto_8
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_1e

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

    move-result-object v2

    check-cast v2, Lz5/wp1;

    iget-object v3, v2, Lz5/wp1;->b:Lz5/xp1;

    if-ne v3, p1, :cond_8

    iget-object v3, v0, Lz5/c31;->c:Ljava/util/concurrent/CopyOnWriteArrayList;

    invoke-virtual {v3, v2}, Ljava/util/concurrent/CopyOnWriteArrayList;->remove(Ljava/lang/Object;)Z

    goto :goto_8

    :cond_1e
    return-void
.end method

.method public final j(Lz5/sp1;)V
    .registers 4

    iget-object v0, p0, Lz5/pm1;->b:Ljava/util/HashSet;

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

    move-result v0

    iget-object v1, p0, Lz5/pm1;->b:Ljava/util/HashSet;

    invoke-virtual {v1, p1}, Ljava/util/HashSet;->remove(Ljava/lang/Object;)Z

    xor-int/lit8 p1, v0, 0x1

    if-eqz p1, :cond_1a

    iget-object p1, p0, Lz5/pm1;->b:Ljava/util/HashSet;

    invoke-virtual {p1}, Ljava/util/HashSet;->isEmpty()Z

    move-result p1

    if-eqz p1, :cond_1a

    invoke-virtual {p0}, Lz5/pm1;->m()V

    :cond_1a
    return-void
.end method

.method public k()V
    .registers 1

    return-void
.end method

.method public abstract l(Lz5/rf;)V
.end method

.method public m()V
    .registers 1

    return-void
.end method

.method public abstract n()V
.end method

.method public final o(Lz5/r4;)V
    .registers 6

    iput-object p1, p0, Lz5/pm1;->f:Lz5/r4;

    iget-object v0, p0, Lz5/pm1;->a:Ljava/util/ArrayList;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v1

    const/4 v2, 0x0

    :goto_9
    if-ge v2, v1, :cond_17

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

    move-result-object v3

    check-cast v3, Lz5/sp1;

    invoke-interface {v3, p0, p1}, Lz5/sp1;->a(Lz5/tp1;Lz5/r4;)V

    add-int/lit8 v2, v2, 0x1

    goto :goto_9

    :cond_17
    return-void
.end method

.method public final zzs()Lz5/r4;
    .registers 2

    const/4 v0, 0x0

    return-object v0
.end method

.method public final zzt()Z
    .registers 2

    const/4 v0, 0x1

    return v0
.end method
