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

# interfaces
.implements Lz5/v6;


# static fields
.field public static final b:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lz5/m7;",
            ">;"
        }
    .end annotation
.end field


# instance fields
.field public final a:Landroid/os/Handler;


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

    new-instance v0, Ljava/util/ArrayList;

    const/16 v1, 0x32

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

    sput-object v0, Lz5/n7;->b:Ljava/util/List;

    return-void
.end method

.method public constructor <init>(Landroid/os/Handler;)V
    .registers 2

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

    iput-object p1, p0, Lz5/n7;->a:Landroid/os/Handler;

    return-void
.end method

.method public static g()Lz5/m7;
    .registers 3

    sget-object v0, Lz5/n7;->b:Ljava/util/List;

    monitor-enter v0

    :try_start_3
    move-object v1, v0

    check-cast v1, Ljava/util/ArrayList;

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

    move-result v1

    if-eqz v1, :cond_13

    new-instance v1, Lz5/m7;

    const/4 v2, 0x0

    invoke-direct {v1, v2}, Lz5/m7;-><init>(Lcom/google/android/gms/internal/ads/m6;)V

    goto :goto_25

    :cond_13
    move-object v1, v0

    check-cast v1, Ljava/util/ArrayList;

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

    move-result v1

    add-int/lit8 v1, v1, -0x1

    move-object v2, v0

    check-cast v2, Ljava/util/ArrayList;

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

    move-result-object v1

    check-cast v1, Lz5/m7;

    :goto_25
    monitor-exit v0

    return-object v1

    :catchall_27
    move-exception v1

    monitor-exit v0
    :try_end_29
    .catchall {:try_start_3 .. :try_end_29} :catchall_27

    throw v1
.end method


# virtual methods
.method public final a(I)Lz5/m7;
    .registers 4

    invoke-static {}, Lz5/n7;->g()Lz5/m7;

    move-result-object v0

    iget-object v1, p0, Lz5/n7;->a:Landroid/os/Handler;

    invoke-virtual {v1, p1}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;

    move-result-object p1

    .line 1
    iput-object p1, v0, Lz5/m7;->a:Landroid/os/Message;

    return-object v0
.end method

.method public final b(ILjava/lang/Object;)Lz5/m7;
    .registers 5

    invoke-static {}, Lz5/n7;->g()Lz5/m7;

    move-result-object v0

    iget-object v1, p0, Lz5/n7;->a:Landroid/os/Handler;

    invoke-virtual {v1, p1, p2}, Landroid/os/Handler;->obtainMessage(ILjava/lang/Object;)Landroid/os/Message;

    move-result-object p1

    .line 1
    iput-object p1, v0, Lz5/m7;->a:Landroid/os/Message;

    return-object v0
.end method

.method public final c(Lz5/m7;)Z
    .registers 4

    iget-object v0, p0, Lz5/n7;->a:Landroid/os/Handler;

    .line 1
    iget-object v1, p1, Lz5/m7;->a:Landroid/os/Message;

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

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendMessageAtFrontOfQueue(Landroid/os/Message;)Z

    move-result v0

    invoke-virtual {p1}, Lz5/m7;->b()V

    return v0
.end method

.method public final d(I)Z
    .registers 3

    iget-object v0, p0, Lz5/n7;->a:Landroid/os/Handler;

    invoke-virtual {v0, p1}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    move-result p1

    return p1
.end method

.method public final e(I)V
    .registers 3

    iget-object p1, p0, Lz5/n7;->a:Landroid/os/Handler;

    const/4 v0, 0x2

    invoke-virtual {p1, v0}, Landroid/os/Handler;->removeMessages(I)V

    return-void
.end method

.method public final f(Ljava/lang/Runnable;)Z
    .registers 3

    iget-object v0, p0, Lz5/n7;->a:Landroid/os/Handler;

    invoke-virtual {v0, p1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    move-result p1

    return p1
.end method
