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


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

.field public final b:Lz5/dd;

.field public final c:Lz5/fd;

.field public final d:Landroid/os/Handler;

.field public final e:Lz5/h8;

.field public final f:Ljava/util/concurrent/CopyOnWriteArraySet;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/concurrent/CopyOnWriteArraySet<",
            "Lz5/z7;",
            ">;"
        }
    .end annotation
.end field

.field public final g:Lz5/p8;

.field public final h:Lf3/b;

.field public i:Z

.field public j:Z

.field public k:I

.field public l:I

.field public m:I

.field public n:Z

.field public o:Lz5/q8;

.field public p:Ljava/lang/Object;

.field public q:Lz5/uc;

.field public r:Lz5/fd;

.field public s:Lz5/l8;

.field public t:Lz5/e8;

.field public u:J


# direct methods
.method public constructor <init>([Lz5/m8;Lz5/dd;Lz5/r60;[B)V
    .registers 14
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "HandlerLeak"
        }
    .end annotation

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

    sget-object p4, Lz5/be;->e:Ljava/lang/String;

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

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    new-instance v1, Ljava/lang/StringBuilder;

    add-int/lit8 v0, v0, 0x1a

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

    const-string v0, "Init ExoPlayerLib/2.4.2 ["

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

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

    const-string p4, "]"

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

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

    move-result-object p4

    const-string v0, "ExoPlayerImpl"

    invoke-static {v0, p4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    iput-object p1, p0, Lz5/d8;->a:[Lz5/m8;

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

    iput-object p2, p0, Lz5/d8;->b:Lz5/dd;

    const/4 p4, 0x0

    iput-boolean p4, p0, Lz5/d8;->j:Z

    const/4 v0, 0x1

    iput v0, p0, Lz5/d8;->k:I

    new-instance v0, Ljava/util/concurrent/CopyOnWriteArraySet;

    invoke-direct {v0}, Ljava/util/concurrent/CopyOnWriteArraySet;-><init>()V

    iput-object v0, p0, Lz5/d8;->f:Ljava/util/concurrent/CopyOnWriteArraySet;

    new-instance v0, Lz5/fd;

    const/4 v1, 0x2

    new-array v1, v1, [Lz5/xc;

    invoke-direct {v0, v1}, Lz5/fd;-><init>([Lz5/xc;)V

    iput-object v0, p0, Lz5/d8;->c:Lz5/fd;

    sget-object v1, Lz5/q8;->a:Lz5/q8;

    iput-object v1, p0, Lz5/d8;->o:Lz5/q8;

    new-instance v1, Lz5/p8;

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

    iput-object v1, p0, Lz5/d8;->g:Lz5/p8;

    new-instance v1, Lf3/b;

    invoke-direct {v1}, Lf3/b;-><init>()V

    iput-object v1, p0, Lz5/d8;->h:Lf3/b;

    sget-object v1, Lz5/uc;->d:Lz5/uc;

    iput-object v1, p0, Lz5/d8;->q:Lz5/uc;

    iput-object v0, p0, Lz5/d8;->r:Lz5/fd;

    sget-object v0, Lz5/l8;->c:Lz5/l8;

    iput-object v0, p0, Lz5/d8;->s:Lz5/l8;

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

    move-result-object v0

    if-eqz v0, :cond_6f

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

    move-result-object v0

    goto :goto_73

    :cond_6f
    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v0

    :goto_73
    new-instance v6, Lz5/c8;

    invoke-direct {v6, p0, v0}, Lz5/c8;-><init>(Lz5/d8;Landroid/os/Looper;)V

    iput-object v6, p0, Lz5/d8;->d:Landroid/os/Handler;

    new-instance v7, Lz5/e8;

    const-wide/16 v0, 0x0

    invoke-direct {v7, p4, v0, v1}, Lz5/e8;-><init>(IJ)V

    iput-object v7, p0, Lz5/d8;->t:Lz5/e8;

    new-instance p4, Lz5/h8;

    iget-boolean v5, p0, Lz5/d8;->j:Z

    move-object v1, p4

    move-object v2, p1

    move-object v3, p2

    move-object v4, p3

    move-object v8, p0

    invoke-direct/range {v1 .. v8}, Lz5/h8;-><init>([Lz5/m8;Lz5/dd;Lz5/r60;ZLandroid/os/Handler;Lz5/e8;Lz5/d8;)V

    iput-object p4, p0, Lz5/d8;->e:Lz5/h8;

    return-void
.end method


# virtual methods
.method public final varargs a([Lz5/b8;)V
    .registers 4

    iget-object v0, p0, Lz5/d8;->e:Lz5/h8;

    .line 1
    iget-boolean v1, v0, Lz5/h8;->H:Z

    if-eqz v1, :cond_e

    const-string p1, "ExoPlayerImplInternal"

    const-string v0, "Ignoring messages sent after release."

    invoke-static {p1, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_1f

    :cond_e
    iget v1, v0, Lz5/h8;->N:I

    add-int/lit8 v1, v1, 0x1

    iput v1, v0, Lz5/h8;->N:I

    iget-object v0, v0, Lz5/h8;->v:Landroid/os/Handler;

    const/16 v1, 0xb

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

    move-result-object p1

    invoke-virtual {p1}, Landroid/os/Message;->sendToTarget()V

    :goto_1f
    return-void
.end method

.method public final varargs b([Lz5/b8;)V
    .registers 6

    iget-object v0, p0, Lz5/d8;->e:Lz5/h8;

    .line 1
    monitor-enter v0

    :try_start_3
    iget-boolean v1, v0, Lz5/h8;->H:Z

    if-eqz v1, :cond_f

    const-string p1, "ExoPlayerImplInternal"

    const-string v1, "Ignoring messages sent after release."

    invoke-static {p1, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_30

    :cond_f
    iget v1, v0, Lz5/h8;->N:I

    add-int/lit8 v2, v1, 0x1

    iput v2, v0, Lz5/h8;->N:I

    iget-object v2, v0, Lz5/h8;->v:Landroid/os/Handler;

    const/16 v3, 0xb

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

    move-result-object p1

    invoke-virtual {p1}, Landroid/os/Message;->sendToTarget()V

    :goto_20
    iget p1, v0, Lz5/h8;->O:I
    :try_end_22
    .catchall {:try_start_3 .. :try_end_22} :catchall_32

    if-gt p1, v1, :cond_30

    :try_start_24
    invoke-virtual {v0}, Ljava/lang/Object;->wait()V
    :try_end_27
    .catch Ljava/lang/InterruptedException; {:try_start_24 .. :try_end_27} :catch_28
    .catchall {:try_start_24 .. :try_end_27} :catchall_32

    goto :goto_20

    :catch_28
    :try_start_28
    invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;

    move-result-object p1

    invoke-virtual {p1}, Ljava/lang/Thread;->interrupt()V
    :try_end_2f
    .catchall {:try_start_28 .. :try_end_2f} :catchall_32

    goto :goto_20

    :cond_30
    :goto_30
    monitor-exit v0

    return-void

    :catchall_32
    move-exception p1

    monitor-exit v0

    throw p1
.end method

.method public final c()I
    .registers 5

    iget-object v0, p0, Lz5/d8;->o:Lz5/q8;

    invoke-virtual {v0}, Lz5/q8;->f()Z

    move-result v0

    const/4 v1, 0x0

    if-nez v0, :cond_19

    iget v0, p0, Lz5/d8;->l:I

    if-lez v0, :cond_e

    goto :goto_19

    :cond_e
    iget-object v0, p0, Lz5/d8;->o:Lz5/q8;

    iget-object v2, p0, Lz5/d8;->t:Lz5/e8;

    iget v2, v2, Lz5/e8;->a:I

    iget-object v3, p0, Lz5/d8;->h:Lf3/b;

    invoke-virtual {v0, v2, v3, v1}, Lz5/q8;->d(ILf3/b;Z)Lf3/b;

    :cond_19
    :goto_19
    return v1
.end method
